RigsofRods
Soft-body Physics Simulation
ServerScriptClass.h
Go to the documentation of this file.
1 
2 
11 namespace Script2Server {
12 
17 {
18 public:
19 
22 
25  void Log(const string &in);
26 
29  int getNumClients();
30 
33  int getTime();
34 
37  int getStartTime();
38 
40 
43 
46  void say(const string &in, int uid, int type);
47 
50  void kick(int kuid, const string &in);
51 
54  void ban(int buid, const string &in);
55 
58  bool unban(int buid);
59 
62  int cmd(int uid, string cmd);
63 
66  string getUserName(int uid);
67 
70  void setUserName(int uid, const string &in);
71 
74  string getUserAuth(int uid);
75 
78  int getUserAuthRaw(int uid);
79 
82  void setUserAuthRaw(int uid, int);
83 
86  int getUserColourNum(int uid);
87 
90  void setUserColourNum(int uid, int);
91 
94  void broadcastUserInfo(int);
95 
98  string getUserToken(int uid);
99 
102  string getUserVersion(int uid);
103 
106  string getUserIPAddress(int uid);
107 
109 
112 
115  void setCallback(const string &in, const string &in, ?&in);
116 
119  void deleteCallback(const string &in, const string &in, ?&in);
120 
123  void throwException(const string &in);
124 
126 
129 
132  uint get_maxClients();
133 
136  string get_serverName();
137 
140  string get_IPAddr();
141 
144  uint get_listenPort();
145 
148  int get_serverMode();
149 
152  string get_owner();
153 
156  string get_website();
157 
160  string get_ircServ();
161 
164  string get_voipServ();
165 
168  string getServerTerrain();
169 
171 
174 
177  string get_version();
178 
181  string get_asVersion();
182 
185  string get_protocolVersion();
186 
188 
191 
194  int rangeRandomInt(int, int);
195 
197 
198 };
199 
200 } // namespace Script2Server
201 
Script2Server::ServerScriptClass::get_serverName
string get_serverName()
Script2Server::ServerScriptClass::get_asVersion
string get_asVersion()
Returns ANGELSCRIPT_VERSION_STRING, for example "2.29.2".
Script2Server::ServerScriptClass::getUserAuth
string getUserAuth(int uid)
Script2Server::ServerScriptClass::getTime
int getTime()
Script2Server
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.
Definition: globals.h:11
Script2Server::ServerScriptClass::get_ircServ
string get_ircServ()
Script2Server::ServerScriptClass::get_IPAddr
string get_IPAddr()
Script2Server::ServerScriptClass::unban
bool unban(int buid)
Script2Server::ServerScriptClass::get_owner
string get_owner()
Script2Server::ServerScriptClass::getUserToken
string getUserToken(int uid)
Script2Server::ServerScriptClass::throwException
void throwException(const string &in)
Script2Server::ServerScriptClass::getUserVersion
string getUserVersion(int uid)
Script2Server::ServerScriptClass
A global server object.
Definition: ServerScriptClass.h:16
Script2Server::ServerScriptClass::getUserColourNum
int getUserColourNum(int uid)
Script2Server::ServerScriptClass::setCallback
void setCallback(const string &in, const string &in, ?&in)
Script2Server::ServerScriptClass::broadcastUserInfo
void broadcastUserInfo(int)
Script2Server::ServerScriptClass::get_version
string get_version()
Returns build date, for example "Feb 13 2023".
Script2Server::ServerScriptClass::rangeRandomInt
int rangeRandomInt(int, int)
Script2Server::ServerScriptClass::get_maxClients
uint get_maxClients()
Script2Server::ServerScriptClass::deleteCallback
void deleteCallback(const string &in, const string &in, ?&in)
Script2Server::ServerScriptClass::get_listenPort
uint get_listenPort()
Script2Server::ServerScriptClass::getUserIPAddress
string getUserIPAddress(int uid)
Script2Server::ServerScriptClass::getStartTime
int getStartTime()
Script2Server::ServerScriptClass::say
void say(const string &in, int uid, int type)
Script2Server::ServerScriptClass::Log
void Log(const string &in)
Script2Server::ServerScriptClass::getNumClients
int getNumClients()
Script2Server::ServerScriptClass::cmd
int cmd(int uid, string cmd)
Script2Server::ServerScriptClass::getUserName
string getUserName(int uid)
Script2Server::ServerScriptClass::setUserAuthRaw
void setUserAuthRaw(int uid, int)
Script2Server::ServerScriptClass::get_voipServ
string get_voipServ()
Script2Server::ServerScriptClass::get_website
string get_website()
Script2Server::ServerScriptClass::getUserAuthRaw
int getUserAuthRaw(int uid)
Script2Server::ServerScriptClass::ban
void ban(int buid, const string &in)
Script2Server::ServerScriptClass::setUserColourNum
void setUserColourNum(int uid, int)
Script2Server::ServerScriptClass::setUserName
void setUserName(int uid, const string &in)
Script2Server::ServerScriptClass::get_serverMode
int get_serverMode()
Script2Server::ServerScriptClass::getServerTerrain
string getServerTerrain()
Script2Server::ServerScriptClass::kick
void kick(int kuid, const string &in)
Script2Server::ServerScriptClass::get_protocolVersion
string get_protocolVersion()
Returns RORNET_VERSION, for example "RoRnet_2.44".