WorldChunkComponent.cs 592 B

12345678910111213141516171819202122
  1. using Content.Server.Worldgen.Systems;
  2. namespace Content.Server.Worldgen.Components;
  3. /// <summary>
  4. /// This is used for marking an entity as being a world chunk.
  5. /// </summary>
  6. [RegisterComponent]
  7. [Access(typeof(WorldControllerSystem))]
  8. public sealed partial class WorldChunkComponent : Component
  9. {
  10. /// <summary>
  11. /// The coordinates of the chunk, in chunk space.
  12. /// </summary>
  13. [DataField("coordinates")] public Vector2i Coordinates;
  14. /// <summary>
  15. /// The map this chunk belongs to.
  16. /// </summary>
  17. [DataField("map")] public EntityUid Map;
  18. }