SleepZoneComponent.cs 714 B

123456789101112131415161718192021
  1. using Robust.Shared.GameStates;
  2. using Robust.Shared.Map;
  3. namespace Content.Shared.Civ14.SleepZone;
  4. /// <summary>
  5. /// Enables an entity to go to sleep in the safezone.
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent]
  8. public sealed partial class SleepZoneComponent : Component
  9. {
  10. /// <summary>
  11. /// The original coordinates the entity was teleported from.
  12. /// </summary>
  13. [DataField("origin"), NeverPushInheritance] // Prevent prototype system from copying this during creation
  14. public EntityCoordinates? Origin; // Needs to be nullable
  15. /// <summary>
  16. /// Is the entity currently in the sleep zone?
  17. /// </summary>
  18. [DataField("isSleeping")]
  19. public bool IsSleeping = false;
  20. }