using Content.Server.Worldgen.Systems;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Worldgen.Components;
///
/// This is used for controlling overall world loading, containing an index of all chunks in the map.
///
[RegisterComponent]
[Access(typeof(WorldControllerSystem))]
public sealed partial class WorldControllerComponent : Component
{
///
/// The prototype to use for chunks on this world map.
///
[DataField("chunkProto", customTypeSerializer: typeof(PrototypeIdSerializer))]
public string ChunkProto = "WorldChunk";
///
/// An index of chunks owned by the controller.
///
[DataField("chunks")] public Dictionary Chunks = new();
}