class re
ScriptCallbacks
re.ScriptCallbacks
- 0 properties
- 2 functions
Properties
None.
Functions
ScriptCallback Create(Action handler, InternalClass? owner = null, bool once = false)staticextensionCreates an object the engine calls back by name, for engine functions that take an object and a function name. The callback lives until it is disposed, its owner is gone, its first call for a once callback, or the bundle stops. Throws when the host refuses the signature or the bundle has too many live callbacks, and the client log says why
- handler
- Called with the arguments the engine passes
- owner
- The callback is released once this object is gone
- once
- Releases the callback after its first call
4 more overloads
ScriptCallback Create<T1>(Action<T1> handler, InternalClass? owner = null, bool once = false)ScriptCallback Create<T1, T2>(Action<T1, T2> handler, InternalClass? owner = null, bool once = false)ScriptCallback Create<T1, T2, T3>(Action<T1, T2, T3> handler, InternalClass? owner = null, bool once = false)ScriptCallback Create<T1, T2, T3, T4>(Action<T1, T2, T3, T4> handler, InternalClass? owner = null, bool once = false)void ScriptCallback.Dispose()staticextensionReleases a callback of this bundle, so the engine stops calling it. Safe to call more than once and from inside the callback