v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
29
source/game/scripting/StarUniverseServerLuaBindings.hpp
Normal file
29
source/game/scripting/StarUniverseServerLuaBindings.hpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#ifndef STAR_UNIVERSE_SERVER_LUA_BINDINGS_HPP
|
||||
#define STAR_UNIVERSE_SERVER_LUA_BINDINGS_HPP
|
||||
|
||||
#include "StarLua.hpp"
|
||||
#include "StarGameTypes.hpp"
|
||||
|
||||
namespace Star {
|
||||
|
||||
STAR_CLASS(UniverseServer);
|
||||
|
||||
namespace LuaBindings {
|
||||
LuaCallbacks makeUniverseServerCallbacks(UniverseServer* universe);
|
||||
|
||||
namespace UniverseServerCallbacks {
|
||||
List<ConnectionId> clientIds(UniverseServer* universe);
|
||||
size_t numberOfClients(UniverseServer* universe);
|
||||
bool isConnectedClient(UniverseServer* universe, ConnectionId arg1);
|
||||
String clientNick(UniverseServer* universe, ConnectionId arg1);
|
||||
Maybe<ConnectionId> findNick(UniverseServer* universe, String const& arg1);
|
||||
void adminBroadcast(UniverseServer* universe, String const& arg1);
|
||||
void adminWhisper(UniverseServer* universe, ConnectionId arg1, String const& arg2);
|
||||
bool isAdmin(UniverseServer* universe, ConnectionId arg1);
|
||||
bool isPvp(UniverseServer* universe, ConnectionId arg1);
|
||||
void setPvp(UniverseServer* universe, ConnectionId arg1, Maybe<bool> arg2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue