37 static server sendToClients(
string command,
string commandStr,
bool removable=
true,
string key=
"",
string keyStr=
"");
52 static server setKey(conditional<string, int> user,
string key,
string keyVal);
66 static server addKey(conditional<string, int> user,
string key,
string keyVal);
83 static server removeKey(conditional<string, int> user,
string key,
string keyVal=
"");
94 static conditional<multiReturn<element*, string>, multiReturn<mesh*,string>, multiReturn<ServerObject*,string>, nil>
getObjectFromCommand(
string command);
121 static server sendScript(
string scriptName,
string scriptCont=
game:getScript(scriptName),
function func=
null, ...);
154 static server sendFile(
string filePath,
string serverFilePath,
function func=
null, ...);
172 static server sendFile(
string serverFilePath,
string fileContent,
bool anyVal,
function func=
null, ...);
185 static server appendFile(
string serverFilePath,
string content,
function func=
null, ...);
199 static server getFile(
string serverFilePath,
function func=
null, ...);
229 static server renameFile(
string serverFilePath, sring newServerFilePath,
function func=
null, ...);
265 static server getFilePaths(
string serverFolderPath,
string find=
"",
bool recursive=
false,
int maxResults=100,
int page=0,
function func, ...);
356 static server addPermission(
string account,
string permission,
string permissionStr,
bool enabled=
true,
function func=
null, ...);
430 static server addWorldProperty(
string property,
string propertyStr,
bool enabled=
true,
function func=
null, ...);
517 static server getVar(
string textFilePath,
string variable,
function func, ...);
534 static server setVar(
string textFilePath,
string variable,
string value,
function func=
null, ...);
552 static server ping(
string message,
function func, ...);
566 static server getSQL(
string dbFile,
string SQL,
function func, ...);
580 static server sendGit(
string command,
string location=
"",
function func=
null, ...);
static server getOnlineList(function func,...)
gets a list of all connected user accounts.
static server setNPCServerFaultTolerant(string name, bool faultTolerant=true, function func=null,...)
sets whether or not the NPCServer is fault-tolerant.
static server getWorldProperties(function func,...)
get the world's properties.
static server removeKey(conditional< string, int > user, string key, string keyVal="")
removes a key or keyVal from the client.
static server getObjects(string location)
get objects saved on the server.
the game program/application.
Definition: game.h:5
static server sendScript(string scriptName, string scriptCont=game:getScript(scriptName), function func=null,...)
sends the script to the server.
static server appendFile(string serverFilePath, string content, function func=null,...)
appends content to the end of a server file.
static server setVar(string textFilePath, string variable, string value, function func=null,...)
sets a stored value to the server.
static server getNPCServers(function func,...)
gets a list of NPC servers and their status
static server sendFile(string filePath, function func=null,...)
sends a file to the server.
static server removePermission(string account, string permission, string permissionStr="", bool enabled=true, function func=null,...)
Removes a permission from the client.
static server getFile(string serverFilePath, function func=null,...)
get a file from the server.
static server downloadFile(string serverFilePath, function func=null,...)
downloads a file from the server and lets the user pick a save location.
static server getScriptPaths(string serverFilePath, function func,...)
gets a list of scripts from the server that the user is also running.
static server getAccountPermissions(string accountName, function func,...)
get and account's permissions.
static server getAccountIsStaff(string account, function func,...)
gets whether the client is a staff member or not.
static server startNPCServer(string name, bool onServer=true, function func=null,...)
starts an NPCServer.
static server removeNPCServer(string name, function func=null,...)
removes an NPCServer.
static bool isConnected()
checks if the user is online or offline.
used for anything related to the server.
Definition: server.h:11
static server getClientsWithKeys(string key, string valVal, function func,...)
gets a list of clients who have the given keys.
static server getServerList(function func,...)
gets a list of all worlds.
static server getVar(string textFilePath, string variable, function func,...)
gets a stored value from the server.
static server findAccounts(string name, int max, int page, function func,...)
gets a list of accounts that may match a given name.
static server getSQL(string dbFile, string SQL, function func,...)
sends an SQL command to the server to receive the results.
static server sendGit(string command, string location="", function func=null,...)
sends a git command to be ran on the server.
static server addPermission(string account, string permission, string permissionStr, bool enabled=true, function func=null,...)
Adds a permission to the client.
static conditional< multiReturn< element *, string >, multiReturn< mesh *, string >, multiReturn< ServerObject *, string >, nil > getObjectFromCommand(string command)
gets an object based on the server command.
static server addKey(conditional< string, int > user, string key, string keyVal)
adds a user variable key for sending data to clients.
static server getAccountsByName(string name, int maxResults=100, int page=0, function func,...)
gets a list of accounts by name.
static server createNPCServer(string name, function func=null,...)
creates a new NPCServer.
static server sendToClients(string command, string commandStr, bool removable=true, string key="", string keyStr="")
send a command to clients.
static int getSendMessageCount(string command)
get the amount of messages being sent for a command.
static server renameFile(string serverFilePath, sring newServerFilePath, function func=null,...)
renames a server file to a new name.
static server addWorldProperty(string property, string propertyStr, bool enabled=true, function func=null,...)
adds a world property to the world.
static server ping(string message, function func,...)
pings the server to grab a response.
static server setAccountIsStaff(string account, bool isStaff=true, function func=null,...)
sets whether the client is a staff member or not,
static server getAccountsWithPermissions(string permission, string permissionStr, function func,...)
gets a list of accounts who have the provided permissions.
static server deleteFile(string serverFilePath, function func=null,...)
deletes a file from the server.
static server setKey(conditional< string, int > user, string key, string keyVal)
set a user variable key for receiving certain data.
static server setNPCServerBootOnInit(string name, bool bootOnInit=true, function func=null,...)
sets whether or not the NPCServer boots when the world is initialized.
static server stopNPCServer(string name, function func=null,...)
stops an NPCServer.
the user (client) account.
Definition: account.h:7
static server getFilePaths(string serverFolderPath, string find="", bool recursive=false, int maxResults=100, int page=0, function func,...)
gets a list of files in a server's world directory.
static server removeWorldProperty(string property, string propertyStr="", bool enabled=true, function func=null,...)
removes a world property from the world.