using Content.Shared.Maps; using Robust.Shared.GameStates; using Robust.Shared.Prototypes; namespace Content.Shared.Tiles; /// /// Replaces floor tiles around this entity when it spawns /// [RegisterComponent, NetworkedComponent, Access(typeof(ReplaceFloorOnSpawnSystem))] public sealed partial class ReplaceFloorOnSpawnComponent : Component { /// /// The floor tiles that will be replaced. If null, will replace all. /// [DataField] public List>? ReplaceableTiles = new(); /// /// The tiles that it will replace. Randomly picked from the list. /// [DataField] public List> ReplacementTiles = new(); /// /// Whether or not there has to be a tile in the location to be replaced. /// [DataField] public bool ReplaceSpace = true; /// /// List of offsets from the base tile, used to determine which tiles will be replaced. /// [DataField] public List Offsets = new() { Vector2i.Up, Vector2i.Down, Vector2i.Left, Vector2i.Right, Vector2i.Zero }; }