#include <s_server.h>
|
bool | on_chat_message (const std::string &name, const std::string &message) |
|
void | on_mods_loaded () |
|
void | on_shutdown () |
|
std::string | formatChatMessage (const std::string &name, const std::string &message) |
|
bool | getAuth (const std::string &playername, std::string *dst_password, std::set< std::string > *dst_privs, s64 *dst_last_login=nullptr) |
|
void | createAuth (const std::string &playername, const std::string &password) |
|
bool | setPassword (const std::string &playername, const std::string &password) |
|
void | freeDynamicMediaCallback (u32 token) |
|
void | on_dynamic_media_added (u32 token, const char *playername) |
|
| ScriptApiBase (ScriptingType type) |
|
| ScriptApiBase () |
|
virtual | ~ScriptApiBase () |
|
| DISABLE_CLASS_COPY (ScriptApiBase) |
|
void | loadMod (const std::string &script_path, const std::string &mod_name) |
|
void | loadScript (const std::string &script_path) |
|
void | loadModFromMemory (const std::string &mod_name) |
|
void | runCallbacksRaw (int nargs, RunCallbacksMode mode, const char *fxn) |
|
void | addObjectReference (ServerActiveObject *cobj) |
|
void | removeObjectReference (ServerActiveObject *cobj) |
|
ScriptingType | getType () |
|
IGameDef * | getGameDef () |
|
Server * | getServer () |
|
Client * | getClient () |
|
const std::string & | getOrigin () |
|
void | setOriginDirect (const char *origin) |
|
void | setOriginFromTableRaw (int index, const char *fxn) |
|
void | clientOpenLibs (lua_State *L) |
|
void | checkSetByBuiltin () |
|
◆ allocateDynamicMediaCallback()
u32 ScriptApiServer::allocateDynamicMediaCallback |
( |
lua_State * |
L, |
|
|
int |
f_idx |
|
) |
| |
|
static |
◆ createAuth()
void ScriptApiServer::createAuth |
( |
const std::string & |
playername, |
|
|
const std::string & |
password |
|
) |
| |
◆ formatChatMessage()
std::string ScriptApiServer::formatChatMessage |
( |
const std::string & |
name, |
|
|
const std::string & |
message |
|
) |
| |
◆ freeDynamicMediaCallback()
void ScriptApiServer::freeDynamicMediaCallback |
( |
u32 |
token | ) |
|
◆ getAuth()
bool ScriptApiServer::getAuth |
( |
const std::string & |
playername, |
|
|
std::string * |
dst_password, |
|
|
std::set< std::string > * |
dst_privs, |
|
|
s64 * |
dst_last_login = nullptr |
|
) |
| |
◆ getAuthHandler()
void ScriptApiServer::getAuthHandler |
( |
| ) |
|
|
private |
◆ on_chat_message()
bool ScriptApiServer::on_chat_message |
( |
const std::string & |
name, |
|
|
const std::string & |
message |
|
) |
| |
◆ on_dynamic_media_added()
void ScriptApiServer::on_dynamic_media_added |
( |
u32 |
token, |
|
|
const char * |
playername |
|
) |
| |
◆ on_mods_loaded()
void ScriptApiServer::on_mods_loaded |
( |
| ) |
|
◆ on_shutdown()
void ScriptApiServer::on_shutdown |
( |
| ) |
|
◆ readPrivileges()
void ScriptApiServer::readPrivileges |
( |
int |
index, |
|
|
std::set< std::string > & |
result |
|
) |
| |
|
private |
◆ setPassword()
bool ScriptApiServer::setPassword |
( |
const std::string & |
playername, |
|
|
const std::string & |
password |
|
) |
| |
The documentation for this class was generated from the following files: