logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ActionRuntimeState

    Runtime state for a procedural action instance. Stores timing and custom data that persists across ticks.

    Inheritance
    object
    ActionRuntimeState
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.ProceduralExpression.Infrastructure.ProceduralActions
    Assembly: Serenity.UnityProceduralExpression.Infrastructure.dll
    Syntax
    public class ActionRuntimeState

    Constructors

    ActionRuntimeState()

    Declaration
    public ActionRuntimeState()

    Fields

    CustomData

    Custom data storage for action-specific state.

    Declaration
    public object CustomData
    Field Value
    Type Description
    object

    ElapsedTime

    Time elapsed since action started.

    Declaration
    public float ElapsedTime
    Field Value
    Type Description
    float

    LastActivationTime

    Last time the action was activated (for cooldown tracking).

    Declaration
    public float LastActivationTime
    Field Value
    Type Description
    float

    StartTime

    Time when the action started.

    Declaration
    public float StartTime
    Field Value
    Type Description
    float

    Methods

    Reset(float)

    Resets the runtime state for a new action start.

    Declaration
    public void Reset(float currentTime)
    Parameters
    Type Name Description
    float currentTime
    In this article
    © 2026 Serenity. All Rights Reserved