32 lines
1017 B
C#
32 lines
1017 B
C#
|
|
using Robust.Shared.GameStates;
|
||
|
|
using Robust.Shared.Map;
|
||
|
|
using Robust.Shared.Prototypes;
|
||
|
|
using Robust.Shared.Utility;
|
||
|
|
|
||
|
|
namespace Content.Shared._CP14.MagicVision;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Controls the visibility of this entity to the client, based on the length of time it has existed and the client's ability to see the magic
|
||
|
|
/// </summary>
|
||
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true), AutoGenerateComponentPause]
|
||
|
|
public sealed partial class CP14MagicVisionMarkerComponent : Component
|
||
|
|
{
|
||
|
|
[DataField, AutoPausedField, AutoNetworkedField]
|
||
|
|
public TimeSpan SpawnTime = TimeSpan.Zero;
|
||
|
|
|
||
|
|
[DataField, AutoPausedField, AutoNetworkedField]
|
||
|
|
public TimeSpan EndTime = TimeSpan.Zero;
|
||
|
|
|
||
|
|
[DataField, AutoNetworkedField]
|
||
|
|
public EntityCoordinates? TargetCoordinates;
|
||
|
|
|
||
|
|
[DataField, AutoNetworkedField]
|
||
|
|
public SpriteSpecifier? Icon;
|
||
|
|
|
||
|
|
[DataField]
|
||
|
|
public string? AuraImprint;
|
||
|
|
|
||
|
|
[DataField, AutoNetworkedField]
|
||
|
|
public EntProtoId PointerProto = "CP14ManaVisionPointer";
|
||
|
|
}
|