Show / Hide Table of Contents

Class ReplaySpectatorSystem

This system handles spawning replay observer ghosts and maintaining their positions when traveling through time. It also blocks most normal interactions, just in case.

Inheritance
System.Object
ReplaySpectatorSystem
Namespace: Content.Client.Replay.Spectator
Assembly: Content.Client.dll
Syntax
public sealed class ReplaySpectatorSystem : EntitySystem
Remarks

E.g., if an observer is on a grid, and then jumps forward or backward in time to a point where the grid does not exist, where should the observer go? This attempts to maintain their position and eye rotation or just re-spawns them as needed.

Fields

| Improve this Doc View Source

DefaultSpeed

Fallback speed if the observer ghost has no MovementSpeedModifierComponent.

Declaration
public const float DefaultSpeed = null
Field Value
Type Description
System.Single
| Improve this Doc View Source

Direction

Declaration
public DirectionFlag Direction
Field Value
Type Description
DirectionFlag
| Improve this Doc View Source

SpectateCmd

Declaration
public const string SpectateCmd = null
Field Value
Type Description
System.String

Methods

| Improve this Doc View Source

FrameUpdate(Single)

Declaration
public override void FrameUpdate(float frameTime)
Parameters
Type Name Description
System.Single frameTime
| Improve this Doc View Source

GetSpectatorData()

Declaration
public ReplaySpectatorSystem.SpectatorData GetSpectatorData()
Returns
Type Description
ReplaySpectatorSystem.SpectatorData
| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
| Improve this Doc View Source

SetSpectatorPosition(ReplaySpectatorSystem.SpectatorData)

Declaration
public void SetSpectatorPosition(ReplaySpectatorSystem.SpectatorData data)
Parameters
Type Name Description
ReplaySpectatorSystem.SpectatorData data
| Improve this Doc View Source

Shutdown()

Declaration
public override void Shutdown()
| Improve this Doc View Source

SpawnSpectatorGhost(EntityCoordinates, Boolean)

Declaration
public TransformComponent SpawnSpectatorGhost(EntityCoordinates coords, bool gridAttach)
Parameters
Type Name Description
Robust.Shared.Map.EntityCoordinates coords
System.Boolean gridAttach
Returns
Type Description
TransformComponent
| Improve this Doc View Source

SpectateEntity(EntityUid)

Declaration
public void SpectateEntity(EntityUid target)
Parameters
Type Name Description
EntityUid target
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾