2023-07-08 14:08:32 +10:00
|
|
|
|
using System.Numerics;
|
|
|
|
|
|
using Content.Server.Worldgen.Systems.Debris;
|
2023-05-16 06:36:45 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Worldgen.Components.Debris;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This is used for attaching a piece of debris to it's owning controller.
|
|
|
|
|
|
/// Mostly just syncs deletion.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
|
[Access(typeof(DebrisFeaturePlacerSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class OwnedDebrisComponent : Component
|
2023-05-16 06:36:45 -05:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The last location in the controller's internal structure for this debris.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("lastKey")] public Vector2 LastKey;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The DebrisFeaturePlacerController-having entity that owns this.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("owningController")] public EntityUid OwningController;
|
|
|
|
|
|
}
|
|
|
|
|
|
|