logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct ProceduralContext

    Context passed to all procedural animation evaluation logic. Contains state reader for accessing state values and time information.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.ProceduralExpression.Domain.Entities
    Assembly: Serenity.ProceduralExpression.Domain.dll
    Syntax
    public readonly struct ProceduralContext

    Constructors

    ProceduralContext(IStateReader, TimeInfo)

    Creates a new ProceduralContext.

    Declaration
    public ProceduralContext(IStateReader stateReader, TimeInfo timeInfo)
    Parameters
    Type Name Description
    IStateReader stateReader

    The state reader for accessing state values.

    TimeInfo timeInfo

    Time information for the current frame.

    Fields

    StateReader

    Reader for accessing state values from the state bus.

    Declaration
    public readonly IStateReader StateReader
    Field Value
    Type Description
    IStateReader

    TimeInfo

    Time information for frame-independent calculations.

    Declaration
    public readonly TimeInfo TimeInfo
    Field Value
    Type Description
    TimeInfo

    Properties

    DeltaTime

    Shorthand for TimeInfo.DeltaTime.

    Declaration
    public float DeltaTime { get; }
    Property Value
    Type Description
    float

    Time

    Shorthand for TimeInfo.Time.

    Declaration
    public float Time { get; }
    Property Value
    Type Description
    float

    Methods

    GetState(StateKeyId, float)

    Gets a state value by key with optional default.

    Declaration
    public float GetState(StateKeyId key, float defaultValue = 0)
    Parameters
    Type Name Description
    StateKeyId key
    float defaultValue
    Returns
    Type Description
    float
    In this article
    © 2026 Serenity. All Rights Reserved