Show / Hide Table of Contents

    Class LoadAssetsPhase

    This ILoadPhase will call LoadAssets(String, Action<List<Object>>) with the provided asset key. Once the assets have been loaded, an optional callback with a list of the loaded assets will be broadcast. This phase is only required if you are using an implementation of IAssetService that requires loading. It can be a nice way to manage preloading assets so they can be synchronously accessed later.

    Inheritance
    Object
    SequenceableBase
    LoadPhaseBase
    LoadAssetsPhase
    LoadDataPhase
    Implements
    ILoadPhase
    ISequenceable
    IProgressCompletable
    IProgressable
    ICompletable
    IInjectable
    Inherited Members
    LoadPhaseBase._resolver
    LoadPhaseBase.Inject(IResolver)
    SequenceableBase.OnCompleted
    SequenceableBase.OnProgress
    SequenceableBase.OnSequenceableStarted
    SequenceableBase.OnSequenceableCanceled
    SequenceableBase.OnSequenceableReverted
    SequenceableBase.OnSequenceableCompleted
    SequenceableBase.OnSequenceableException
    SequenceableBase._isStarted
    SequenceableBase.IsStarted
    SequenceableBase._isCanceled
    SequenceableBase.IsCanceled
    SequenceableBase._isComplete
    SequenceableBase.IsComplete
    SequenceableBase.SendOnComplete(IProgressCompletable)
    SequenceableBase._normalizedProgress
    SequenceableBase.NormalizedProgress
    SequenceableBase.SendOnProgress(IProgressable, Single)
    SequenceableBase._reportBuilder
    SequenceableBase.Report
    SequenceableBase.Start()
    SequenceableBase.Cancel()
    SequenceableBase.Revert()
    SequenceableBase.Complete()
    SequenceableBase.ThrowException(Exception)
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: IdleKit.Core
    Assembly: cs.temp.dll.dll
    Syntax
    public class LoadAssetsPhase : LoadPhaseBase, ILoadPhase, ISequenceable, IProgressCompletable, IProgressable, ICompletable, IInjectable

    Fields

    _assetKey

    Declaration
    protected string _assetKey
    Field Value
    Type Description
    String

    _onAssetsLoadedCallback

    Declaration
    protected Action<List<object>> _onAssetsLoadedCallback
    Field Value
    Type Description
    Action<List<Object>>

    Methods

    Cleanup()

    Declaration
    public override void Cleanup()
    Overrides
    SequenceableBase.Cleanup()

    HandleAssetsLoaded(IEnumerable<Object>)

    Declaration
    protected virtual void HandleAssetsLoaded(IEnumerable<object> assets)
    Parameters
    Type Name Description
    IEnumerable<Object> assets

    Initialize(String, Action<List<Object>>)

    Declaration
    public virtual ILoadPhase Initialize(string assetKey, Action<List<object>> onAssetsLoaded = null)
    Parameters
    Type Name Description
    String assetKey
    Action<List<Object>> onAssetsLoaded
    Returns
    Type Description
    ILoadPhase

    RunCancelLogic()

    Declaration
    protected override void RunCancelLogic()
    Overrides
    SequenceableBase.RunCancelLogic()

    RunCompleteLogic()

    Declaration
    protected override void RunCompleteLogic()
    Overrides
    SequenceableBase.RunCompleteLogic()

    RunRevertLogic()

    Declaration
    protected override void RunRevertLogic()
    Overrides
    SequenceableBase.RunRevertLogic()

    RunStartLogic()

    Declaration
    protected override void RunStartLogic()
    Overrides
    SequenceableBase.RunStartLogic()

    Implements

    ILoadPhase
    ISequenceable
    IProgressCompletable
    IProgressable
    ICompletable
    IInjectable
    Back to top Copyright © 2020 East Side Games Inc.