Sinespace Client 2025.3.19431
Client-side scripting for Sinespace
SineSpace.Scripting.Components.SScriptingEvents Class Reference
Inheritance diagram for SineSpace.Scripting.Components.SScriptingEvents:
ScriptClassComponent< T > ScriptClass< T > ScriptClassWrapper< T > ScriptClass

Public Member Functions

void InvokeEvent (string name)
 Invoke the event with its name.
 
- Public Member Functions inherited from ScriptClassWrapper< T >
override void Initialise (SScript runtime, object wrapper)
 
- Public Member Functions inherited from ScriptClass
void ReportError (string error, bool fatal, UnityEngine.Object target=null)
 
void Initialise (SScript runtime, object wrapper)
 

Properties

bool Enabled [get, set]
 Whether the scriptingEvents component is enabled or not.
 
string ComponentName [get]
 Return the component name of the scripting events.
 
string[] Events [get]
 Returns a list of events.
 
- Properties inherited from ScriptClassComponent< T >
SGameObject GameObject [get]
 Return the GameObject which component added.
 
- Properties inherited from ScriptClass< T >
override bool Alive [get]
 Return if the component is alive.
 
- Properties inherited from ScriptClassWrapper< T >
_wrap [get]
 
- Properties inherited from ScriptClass
virtual bool Alive [get]
 
DynValue CachedData [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from ScriptClass
void Initialise (SScript runtime)
 

Member Function Documentation

◆ InvokeEvent()

void SineSpace.Scripting.Components.SScriptingEvents.InvokeEvent ( string name)

Invoke the event with its name.

local thisObject=Space.Host.ExecutingObject
local no1Name="no1"
thisObject.Events.InvokeEvent(no1Name)
&ndash;invoke theĦ°no1Ħħevent.

param name="name">The name of event

Property Documentation

◆ ComponentName

string SineSpace.Scripting.Components.SScriptingEvents.ComponentName
get

Return the component name of the scripting events.

local thisObject=Space.Host.ExecutingObject
local events=thisObject.Events
Space.Log(events.ComponentName)

◆ Enabled

bool SineSpace.Scripting.Components.SScriptingEvents.Enabled
getset

Whether the scriptingEvents component is enabled or not.

local thisObject=Space.Host.ExecutingObject
local thisObjectScriptingEvents=thisObject.Events
Space.Log(thisObjectScriptingEvents.Enabled)

◆ Events

string [] SineSpace.Scripting.Components.SScriptingEvents.Events
get

Returns a list of events.

local thisObject=Space.Host.ExecutingObject
local events=thisObject.Events.Events
&ndash;return a list of Objects
for i=1, #events do
Space.Log(events[i])
end
&ndash;display the name of all events