Skip to main content

Resource

Shared Functions

NameDescription
GetStateReturns the state of the specified resource.
CallCalls an exported function in the specified resource.

GetState

Returns the state of the specified resource.

string state = Resource.GetState(string resource)

info

Possible states are:
"unknown"
"started"
"loaded"
"stopped"


Call

Calls an exported function in the specified resource.

Resource.Call(string resource, string function, list arguments)

Example:

Resource.Call("myResource", "myFunction", { 8, 16 })