Definition at line 37 of file ServerScript.h.
|
| | ServerScript (ServerScriptEngine *se, ServerScriptSequencer *sequencer) |
| |
| | ~ServerScript () |
| |
| void | log (std::string &msg) |
| |
| void | say (std::string &msg, int uid=-1, int type=0) |
| |
| void | kick (int kuid, std::string &msg) |
| |
| void | ban (int kuid, std::string &msg) |
| |
| bool | unban (int kuid) |
| |
| int | playerChat (int uid, char *str) |
| |
| std::string | getServerTerrain () |
| |
| int | sendGameCommand (int uid, std::string cmd) |
| |
| std::string | getUserName (int uid) |
| |
| void | setUserName (int uid, const std::string &username) |
| |
| std::string | getUserAuth (int uid) |
| |
| int | getUserAuthRaw (int uid) |
| |
| void | setUserAuthRaw (int uid, int authmode) |
| |
| int | getUserColourNum (int uid) |
| |
| void | setUserColourNum (int uid, int num) |
| |
| std::string | getUserToken (int uid) |
| |
| std::string | getUserVersion (int uid) |
| |
| std::string | getUserIPAddress (int uid) |
| |
| int | getUserPosition (int uid, Ogre::Vector3 &v) |
| |
| int | getNumClients () |
| |
| int | getStartTime () |
| |
| int | getTime () |
| |
| std::string | get_version () |
| |
| std::string | get_asVersion () |
| |
| std::string | get_protocolVersion () |
| |
| void | setCallback (const std::string &type, const std::string &func, void *obj, int refTypeId) |
| |
| void | deleteCallback (const std::string &type, const std::string &func, void *obj, int refTypeId) |
| |
| void | throwException (const std::string &message) |
| |
| unsigned int | get_maxClients () |
| |
| std::string | get_serverName () |
| |
| std::string | get_IPAddr () |
| |
| unsigned int | get_listenPort () |
| |
| int | get_serverMode () |
| |
| std::string | get_owner () |
| |
| std::string | get_website () |
| |
| std::string | get_ircServ () |
| |
| std::string | get_voipServ () |
| |
| int | rangeRandomInt (int from, int to) |
| |
| void | broadcastUserInfo (int uid) |
| |
| void | curlRequestAsync (std::string url, std::string displayname) |
| |
◆ ServerScript()
◆ ~ServerScript()
| ServerScript::~ServerScript |
( |
| ) |
|
◆ ban()
| void ServerScript::ban |
( |
int |
kuid, |
|
|
std::string & |
msg |
|
) |
| |
◆ broadcastUserInfo()
| void ServerScript::broadcastUserInfo |
( |
int |
uid | ) |
|
◆ curlRequestAsync()
| void ServerScript::curlRequestAsync |
( |
std::string |
url, |
|
|
std::string |
displayname |
|
) |
| |
Launches a background task, use curlStatus callback to monitor progress and receive result.
- Parameters
-
| displayname | The "correlation ID" - the label passed to the callback to identify the transfer. |
Definition at line 168 of file ServerScript.cpp.
◆ deleteCallback()
| void ServerScript::deleteCallback |
( |
const std::string & |
type, |
|
|
const std::string & |
func, |
|
|
void * |
obj, |
|
|
int |
refTypeId |
|
) |
| |
◆ get_asVersion()
| std::string ServerScript::get_asVersion |
( |
| ) |
|
◆ get_IPAddr()
| std::string ServerScript::get_IPAddr |
( |
| ) |
|
◆ get_ircServ()
| std::string ServerScript::get_ircServ |
( |
| ) |
|
◆ get_listenPort()
| unsigned int ServerScript::get_listenPort |
( |
| ) |
|
◆ get_maxClients()
| unsigned int ServerScript::get_maxClients |
( |
| ) |
|
◆ get_owner()
| std::string ServerScript::get_owner |
( |
| ) |
|
◆ get_protocolVersion()
| std::string ServerScript::get_protocolVersion |
( |
| ) |
|
◆ get_serverMode()
| int ServerScript::get_serverMode |
( |
| ) |
|
◆ get_serverName()
| std::string ServerScript::get_serverName |
( |
| ) |
|
◆ get_version()
| std::string ServerScript::get_version |
( |
| ) |
|
◆ get_voipServ()
| std::string ServerScript::get_voipServ |
( |
| ) |
|
◆ get_website()
| std::string ServerScript::get_website |
( |
| ) |
|
◆ getNumClients()
| int ServerScript::getNumClients |
( |
| ) |
|
◆ getServerTerrain()
| std::string ServerScript::getServerTerrain |
( |
| ) |
|
◆ getStartTime()
| int ServerScript::getStartTime |
( |
| ) |
|
◆ getTime()
| int ServerScript::getTime |
( |
| ) |
|
◆ getUserAuth()
| std::string ServerScript::getUserAuth |
( |
int |
uid | ) |
|
◆ getUserAuthRaw()
| int ServerScript::getUserAuthRaw |
( |
int |
uid | ) |
|
◆ getUserColourNum()
| int ServerScript::getUserColourNum |
( |
int |
uid | ) |
|
◆ getUserIPAddress()
| std::string ServerScript::getUserIPAddress |
( |
int |
uid | ) |
|
◆ getUserName()
| std::string ServerScript::getUserName |
( |
int |
uid | ) |
|
◆ getUserPosition()
| int RoR::ServerScript::getUserPosition |
( |
int |
uid, |
|
|
Ogre::Vector3 & |
v |
|
) |
| |
◆ getUserToken()
| std::string ServerScript::getUserToken |
( |
int |
uid | ) |
|
◆ getUserVersion()
| std::string ServerScript::getUserVersion |
( |
int |
uid | ) |
|
◆ kick()
| void ServerScript::kick |
( |
int |
kuid, |
|
|
std::string & |
msg |
|
) |
| |
◆ log()
| void ServerScript::log |
( |
std::string & |
msg | ) |
|
◆ playerChat()
| int RoR::ServerScript::playerChat |
( |
int |
uid, |
|
|
char * |
str |
|
) |
| |
◆ rangeRandomInt()
| int ServerScript::rangeRandomInt |
( |
int |
from, |
|
|
int |
to |
|
) |
| |
◆ say()
| void ServerScript::say |
( |
std::string & |
msg, |
|
|
int |
uid = -1, |
|
|
int |
type = 0 |
|
) |
| |
◆ sendGameCommand()
| int ServerScript::sendGameCommand |
( |
int |
uid, |
|
|
std::string |
cmd |
|
) |
| |
◆ setCallback()
| void ServerScript::setCallback |
( |
const std::string & |
type, |
|
|
const std::string & |
func, |
|
|
void * |
obj, |
|
|
int |
refTypeId |
|
) |
| |
◆ setUserAuthRaw()
| void ServerScript::setUserAuthRaw |
( |
int |
uid, |
|
|
int |
authmode |
|
) |
| |
◆ setUserColourNum()
| void ServerScript::setUserColourNum |
( |
int |
uid, |
|
|
int |
num |
|
) |
| |
◆ setUserName()
| void ServerScript::setUserName |
( |
int |
uid, |
|
|
const std::string & |
username |
|
) |
| |
◆ throwException()
| void ServerScript::throwException |
( |
const std::string & |
message | ) |
|
◆ unban()
| bool ServerScript::unban |
( |
int |
kuid | ) |
|
◆ mse
local script engine pointer, used as proxy mostly
Definition at line 39 of file ServerScript.h.
◆ seq
The documentation for this class was generated from the following files: