Artemis Artemis
Artemis Artemis

Search Results for

    Class PlayOnceCondition

    Represents a condition that plays once when its script evaluates to true.

    Inheritance
    object
    PlayOnceCondition
    Implements
    ICondition
    IDisposable
    IStorageModel
    Namespace: Artemis.Core
    Assembly: Artemis.Core.dll
    Syntax
    public class PlayOnceCondition : ICondition, IDisposable, IStorageModel

    Constructors

    PlayOnceCondition(RenderProfileElement)

    Creates a new instance of the PlayOnceCondition class.

    Declaration
    public PlayOnceCondition(RenderProfileElement profileElement)
    Parameters
    Type Name Description
    RenderProfileElement profileElement

    The profile element this condition applies to.

    PlayOnceCondition(PlayOnceConditionEntity, RenderProfileElement)

    Creates a new instance of the PlayOnceCondition class.

    Declaration
    public PlayOnceCondition(PlayOnceConditionEntity entity, RenderProfileElement profileElement)
    Parameters
    Type Name Description
    PlayOnceConditionEntity entity

    The entity used to store this condition.

    RenderProfileElement profileElement

    The profile element this condition applies to.

    Properties

    Entity

    Gets the entity used to store this condition

    Declaration
    public IConditionEntity Entity { get; }
    Property Value
    Type Description
    IConditionEntity

    IsMet

    Gets a boolean indicating whether the condition is currently met

    Declaration
    public bool IsMet { get; }
    Property Value
    Type Description
    bool

    ProfileElement

    Gets the profile element this condition applies to

    Declaration
    public RenderProfileElement ProfileElement { get; }
    Property Value
    Type Description
    RenderProfileElement

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Load()

    Loads the model from its associated entity

    Declaration
    public void Load()

    OverrideTimeline(TimeSpan)

    Overrides the timeline to the provided position as the display condition sees fit.

    Declaration
    public void OverrideTimeline(TimeSpan position)
    Parameters
    Type Name Description
    TimeSpan position

    Save()

    Saves the model to its associated entity

    Declaration
    public void Save()

    Update()

    Updates the condition

    Declaration
    public void Update()

    UpdateTimeline(double)

    Updates the timeline according to the provided deltaTime as the display condition sees fit.

    Declaration
    public void UpdateTimeline(double deltaTime)
    Parameters
    Type Name Description
    double deltaTime

    Implements

    ICondition
    IDisposable
    IStorageModel
    Content is available under the PolyForm Noncommercial License, by Artemis RGB.