1
0

OwnedDebrisComponent.cs 761 B

123456789101112131415161718192021222324
  1. using System.Numerics;
  2. using Content.Server.Worldgen.Systems.Debris;
  3. namespace Content.Server.Worldgen.Components.Debris;
  4. /// <summary>
  5. /// This is used for attaching a piece of debris to it's owning controller.
  6. /// Mostly just syncs deletion.
  7. /// </summary>
  8. [RegisterComponent]
  9. [Access(typeof(DebrisFeaturePlacerSystem))]
  10. public sealed partial class OwnedDebrisComponent : Component
  11. {
  12. /// <summary>
  13. /// The last location in the controller's internal structure for this debris.
  14. /// </summary>
  15. [DataField("lastKey")] public Vector2 LastKey;
  16. /// <summary>
  17. /// The DebrisFeaturePlacerController-having entity that owns this.
  18. /// </summary>
  19. [DataField("owningController")] public EntityUid OwningController;
  20. }