SShared
Index
Functions Index
void SetGlobal (string ns, string key, DynValue value)
DynValue GetGlobal (string ns, string key)
void RegisterFunction (string ns, string func, Closure reference)
void RegisterBroadcastFunction (string ns, string func, Closure reference)
void UnregisterBroadcastFunction (string ns, string func, Closure reference) void UnregisterBroadcastFunction (string ns, string func)
void CallFunction (string ns, string func, IEnumerable< DynValue > args)
int CallBroadcastFunction (string ns, string func, IEnumerable< DynValue > args)
Functions
SetGlobal
void SetGlobal (string ns, string key, DynValue value)
Sets a global key to a value. The value can be any object type.
GetGlobal
DynValue GetGlobal (string ns, string key)
Retrieves a previously set global variable, or returns nil.
RegisterFunction
void RegisterFunction (string ns, string func, Closure reference)
Makes func into a global function that can be accessed anywhere.
RegisterBroadcastFunction
void RegisterBroadcastFunction (string ns, string func, Closure reference)
Makes func into a global function that can be accessed anywhere.
UnregisterBroadcastFunction
void UnregisterBroadcastFunction (string ns, string func, Closure reference) void UnregisterBroadcastFunction (string ns, string func)
Unregister Broadcast Function.
CallFunction
void CallFunction (string ns, string func, IEnumerable< DynValue > args)
Calls the registered function with the specified arguments.
CallBroadcastFunction
int CallBroadcastFunction (string ns, string func, IEnumerable< DynValue > args)
Calls every registered broadcast function with the specified arguments, and returns the number of calls queued.
Last updated