Search Results for

    Show / Hide Table of Contents

    Class EventLASM

    event: Handle configuring, subscribing to, and running events.

    Inheritance
    System.Object
    Danmokou.SM.StateMachine
    LineActionSM
    ReflectableLASM
    EventLASM
    Inherited Members
    ReflectableLASM.Start(SMHandoff)
    Namespace: Danmokou.SM
    Assembly: cs.temp.dll.dll
    Syntax
    public class EventLASM : ReflectableLASM

    Constructors

    EventLASM(EventLASM.EventTask)

    Declaration
    public EventLASM(EventLASM.EventTask rs)
    Parameters
    Type Name Description
    EventLASM.EventTask rs

    Fields

    BossExplodeWait

    Declaration
    public const float BossExplodeWait = 1.8F
    Field Value
    Type Description
    System.Single

    Methods

    BossExplode()

    Declaration
    public static EventLASM.EventTask BossExplode()
    Returns
    Type Description
    EventLASM.EventTask

    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 Description
    EventLASM.EventTask
    Type Parameters
    Name Description
    T

    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 Description
    EventLASM.EventTask
    Type Parameters
    Name Description
    T

    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
    Type Description
    EventLASM.EventTask

    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
    Type Description
    EventLASM.EventTask

    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
    Type Description
    EventLASM.EventTask
    In This Article
    Back to top Generated by DocFX