Class EventLASM
event
: Handle configuring, subscribing to, and running events.
Inheritance
System.Object
Danmokou.SM.StateMachine
EventLASM
Assembly: cs.temp.dll.dll
Syntax
public class EventLASM : ReflectableLASM
Constructors
EventLASM(EventLASM.EventTask)
Declaration
public EventLASM(EventLASM.EventTask rs)
Parameters
Fields
BossExplodeWait
Declaration
public const float BossExplodeWait = 1.8F
Field Value
Type |
Description |
System.Single |
|
Methods
BossExplode()
Declaration
public static EventLASM.EventTask BossExplode()
Returns
Listen<T>(String, Func<T, StateMachine>)
Subscribe to a runtime event and run a StateMachine when a value is provided.
Declaration
public static EventLASM.EventTask Listen<T>(string evName, Func<T, StateMachine> exec)
Parameters
Type |
Name |
Description |
System.String |
evName |
Runtime event name
|
System.Func<T, Danmokou.SM.StateMachine> |
exec |
StateMachine to execute with event
|
Returns
Type Parameters
OnNext<T>(String, GCXF<T>)
Push a value to a runtime event.
Declaration
public static EventLASM.EventTask OnNext<T>(string evName, GCXF<T> val)
Parameters
Type |
Name |
Description |
System.String |
evName |
|
GCXF<T> |
val |
|
Returns
Type Parameters
OnNext0(String)
Push to a unit-typed runtime event.
Declaration
public static EventLASM.EventTask OnNext0(string evName)
Parameters
Type |
Name |
Description |
System.String |
evName |
|
Returns
PlayerInvuln(Int32)
Make the player invulnerable for some number of frames.
Declaration
public static EventLASM.EventTask PlayerInvuln(int frames)
Parameters
Type |
Name |
Description |
System.Int32 |
frames |
Invulnerability frames (120 frames per second)
|
Returns
ResetTrigger(String, String)
Set a trigger event to reset when a given reset event is dispatched.
Declaration
public static EventLASM.EventTask ResetTrigger(string trigger, string resetter)
Parameters
Type |
Name |
Description |
System.String |
trigger |
|
System.String |
resetter |
|
Returns