holoride
Search Results for

    Show / Hide Table of Contents

    Class ReplayStateReceiverBackend

    Receives .holo file state.

    Inheritance
    object
    Object
    ScriptableObject
    StateReceiverBackend
    ReplayStateReceiverBackend
    Inherited Members
    StateReceiverBackend.State
    StateReceiverBackend.AllListeners
    StateReceiverBackend.LocalizationListeners
    StateReceiverBackend.AddListener(IStateReceiverListener)
    StateReceiverBackend.RemoveListener(IStateReceiverListener)
    StateReceiverBackend.NotifyListenerConfigurationChanged()
    StateReceiverBackend.Pivot
    StateReceiverBackend.IsEnabled
    StateReceiverBackend.OnListenerAdded(IStateReceiverListener)
    StateReceiverBackend.OnListenerRemoved(IStateReceiverListener)
    StateReceiverBackend.OnStateUpdated()
    StateReceiverBackend.OnStateReceivedAsync(VehicleSensorState)
    StateReceiverBackend.OnRouteChanged()
    StateReceiverBackend.OnMapAccessTokenReceived(string)
    StateReceiverBackend.UpdatePivot(GeoCoordinate)
    Namespace: Holoride.ElasticSDK
    Assembly: Holoride.ElasticSDK.StateReceivers.dll
    Syntax
    [PublicAPI]
    public sealed class ReplayStateReceiverBackend : StateReceiverBackend

    Properties

    InterpolationFrameSize

    Gets or sets the interpolation frame size controls the delay data is presented at, where this delay window is used to interpolate underlying data, to ensure it is played back at the same rate the underlying records represent. Disabling interpolation by setting it to zero may result in rubber-banding.

    The window size is specified in seconds.

    Declaration
    public float InterpolationFrameSize { get; set; }
    Property Value
    Type Description
    float

    IsPaused

    Gets or sets a value indicating whether playback of the underlying data is paused. This differs from disabling and re-enabling this component in that it will not reset the playback state, but resume playback where it was previously paused.

    Declaration
    public bool IsPaused { get; set; }
    Property Value
    Type Description
    bool

    Loop

    Gets or sets a value indicating whether the playback of the underlying recording should loop.

    Note that playback is stopped by disabling this component. Setting this to true will not automatically enable this component.

    Declaration
    public bool Loop { get; set; }
    Property Value
    Type Description
    bool

    Replay

    Gets or sets the underlying replay that is currently used for playback. Setting this to a new value will cause playback to be re-started.

    Declaration
    public Replay Replay { get; set; }
    Property Value
    Type Description
    Replay
    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if the specified value is null.

    Route

    Gets or sets the current route set in the replay.

    Declaration
    public override Route Route { get; protected set; }
    Property Value
    Type Description
    Route
    Overrides
    StateReceiverBackend.Route
    Exceptions
    Type Condition
    NotSupportedException

    Thrown when trying to set the route.

    TravelInformationState

    Declaration
    public override TravelInformationState TravelInformationState { get; }
    Property Value
    Type Description
    TravelInformationState
    Overrides
    StateReceiverBackend.TravelInformationState

    VehicleSensorState

    Declaration
    public override VehicleSensorState VehicleSensorState { get; protected set; }
    Property Value
    Type Description
    VehicleSensorState
    Overrides
    StateReceiverBackend.VehicleSensorState

    Methods

    Disable()

    Declaration
    public override void Disable()
    Overrides
    StateReceiverBackend.Disable()

    Enable()

    Declaration
    public override void Enable()
    Overrides
    StateReceiverBackend.Enable()

    OnApplicationResume()

    Declaration
    public override void OnApplicationResume()
    Overrides
    StateReceiverBackend.OnApplicationResume()

    OnDestroy()

    Declaration
    protected override void OnDestroy()
    Overrides
    StateReceiverBackend.OnDestroy()

    Seek(float)

    Declaration
    public void Seek(float deltaInSeconds)
    Parameters
    Type Name Description
    float deltaInSeconds

    Seek(TimeSpan)

    Tries to seek by the specified amount of seconds. Advances playback by the specified amount of time if the specified number is positive, rewinds playback for negative values. This will fire OnVehicleLocalizationReset(). Note that this will cause the player position to interpolate towards the position after the seek. Also note that this does not cause generation state to be re-evaluated. For content generation, a seek is originally just a potentially large jump in player position. In particular when rewinding it is strongly suggested to manually stop and restart generation to avoid unexpected results.

    Declaration
    public void Seek(TimeSpan delta)
    Parameters
    Type Name Description
    TimeSpan delta

    The time delta to apply, in seconds.

    Update()

    Declaration
    public override void Update()
    Overrides
    StateReceiverBackend.Update()
    In This Article

    Back to top
    ©   holoride
    Privacy   Imprint