Show / Hide Table of Contents

    Interface IPlotPointController

    This class is responsible for the visual representation of the IPlotPointSequenceData.

    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IPlotPointController

    Properties

    ActiveSequence

    The current loaded IPlotPointSequenceData and can be or is being Play(IPlotPointSequenceData).

    Declaration
    IPlotPointSequenceData ActiveSequence { get; }
    Property Value
    Type Description
    IPlotPointSequenceData

    CurrentFrameIndex

    Return the index of the current IPlotPointFrameData that is being played.

    Declaration
    int CurrentFrameIndex { get; }
    Property Value
    Type Description
    Int32

    IsPlaying

    Is the IPlotPointController currently playing a IPlotPointSequenceData.

    Declaration
    bool IsPlaying { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Cleanup()

    Clear all the IPlotPointSequenceData and related assets such as IPlotPointFrameData, and IPlotPointAction that were loaded.

    Declaration
    void Cleanup()

    Pause()

    Pause the IPlotPointController from playing the ActiveSequence so it can be resumed later with Play(IPlotPointSequenceData).

    Declaration
    void Pause()

    Play(IPlotPointSequenceData)

    To queue the sequenceData and play the current ActiveSequence or the IPlotPointSequenceData that is on top of the queue.

    Declaration
    void Play(IPlotPointSequenceData sequenceData = null)
    Parameters
    Type Name Description
    IPlotPointSequenceData sequenceData

    The IPlotPointSequenceData to be queued to play.

    Resume()

    Resume the IPlotPointController from Pause(). This needs to be called if Pause() is invoked and we wish to enable Play(IPlotPointSequenceData) again.

    Declaration
    void Resume()

    SetFrameIndex(Int32)

    Set the current IPlotPointFrameData to be played on by providing an index.

    Declaration
    void SetFrameIndex(int index)
    Parameters
    Type Name Description
    Int32 index

    The index of the IPlotPointFrameData specified in the FrameIds

    Stop()

    Stop() the IPlotPointController from playing any IPlotPointSequenceData and reset all the parameters of the IPlotPointController that is related to the playback.

    Declaration
    void Stop()

    Events

    OnFramePlayed

    The C# event called when ActiveSequence plays the IPlotPointFrameData.

    Declaration
    event FramePlayedHandler OnFramePlayed
    Event Type
    Type Description
    FramePlayedHandler

    OnFrameSet

    The C# event called when ActiveSequence sets the IPlotPointFrameData

    Declaration
    event FrameSetHandler OnFrameSet
    Event Type
    Type Description
    FrameSetHandler

    OnSequenceCompleted

    Thw C# event called when ActiveSequence has finished playback.

    Declaration
    event SequenceCompletedHandler OnSequenceCompleted
    Event Type
    Type Description
    SequenceCompletedHandler

    OnSequenceEnded

    The C# event called when ActiveSequence playback has been ended with or without finishing playback.

    Declaration
    event SequenceEndedHandler OnSequenceEnded
    Event Type
    Type Description
    SequenceEndedHandler

    OnSequenceLoaded

    The C# event called when ActiveSequence is loaded and ready to Play(IPlotPointSequenceData)

    Declaration
    event SequenceLoadedHandler OnSequenceLoaded
    Event Type
    Type Description
    SequenceLoadedHandler

    OnSequenceQueued

    The C# event called when a IPlotPointSequenceData is queued with Play(IPlotPointSequenceData)

    Declaration
    event SequenceQueuedHandler OnSequenceQueued
    Event Type
    Type Description
    SequenceQueuedHandler

    OnSequenceStarted

    The C# event called when ActiveSequence playback is started with Play(IPlotPointSequenceData)

    Declaration
    event SequenceStartedHandler OnSequenceStarted
    Event Type
    Type Description
    SequenceStartedHandler
    Back to top Copyright © 2020 East Side Games Inc.