Files
wwdpublic/Content.Shared/Warps/WarpPointComponent.cs
keronshb 83d95e0b21 Wizard Teleport Scroll (Teleport Location ECS) (#36424)
(cherry picked from commit 0a394d4af5b3b5320a011ae2bbe0542f41fe22dc)
2025-11-20 14:52:37 +03:00

28 lines
728 B
C#

using Content.Shared.Whitelist;
using Robust.Shared.GameStates;
namespace Content.Shared.Warps;
/// <summary>
/// Allows ghosts etc to warp to this entity by name.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class WarpPointComponent : Component
{
[ViewVariables(VVAccess.ReadWrite), DataField]
public string? Location;
/// <summary>
/// If true, ghosts warping to this entity will begin following it.
/// </summary>
[DataField]
public bool Follow;
/// <summary>
/// What points should be excluded?
/// Useful where you want things like a ghost to reach only like CentComm
/// </summary>
[DataField]
public EntityWhitelist? Blacklist;
}