SShared

Index

Functions Index

Function Name

void SetGlobal(string ns, string key, DynValue value)

void SetSuperGlobal(string ns, string key, DynValue value)

DynValue GetGlobal(string ns, string key)

DynValue GetSuperGlobal(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)

void 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.

Parameter
Type
Description

ns

string

key

string

value

DynValue

SetSuperGlobal

void SetSuperGlobal(string ns, string key, DynValue value)

Function Description

Parameter
Type
Description

GetGlobal

DynValue GetGlobal(string ns, string key)

Retrieves a previously set global variable, or returns nil.

Parameter
Type
Description

GetSuperGlobal

DynValue GetSuperGlobal(string ns, string key)

Retrieves a previously set super global variable, or returns nil.

Parameter
Type
Description

RegisterFunction

void RegisterFunction(string ns, string func, Closure reference)

Makes func into a global function that can be accessed anywhere.

Parameter
Type
Description

RegisterBroadcastFunction

void RegisterBroadcastFunction(string ns, string func, Closure reference)

Makes func into a global function that can be accessed anywhere.

Parameter
Type
Description

UnregisterBroadcastFunction

void UnregisterBroadcastFunction(string ns, string func, Closure reference) void UnregisterBroadcastFunction(string ns, string func)

Function Description

Parameter
Type
Description

CallFunction

void CallFunction(string ns, string func, IEnumerable< DynValue > args)

Calls the registered function with the specified arguments.

Parameter
Type
Description

CallBroadcastFunction

void CallBroadcastFunction(string ns, string func, IEnumerable< DynValue > args)

Makes func into a global function that can be accessed anywhere.

Parameter
Type
Description

Last updated

Was this helpful?