Files
tbd-station-14/Content.Server/Maps/GameMapPoolPrototype.cs
Rane 88186f2106 Map pool cvar (#12313)
* it just works

* nuke votable

* whoops
2022-11-01 20:17:35 -05:00

23 lines
725 B
C#

using JetBrains.Annotations;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
namespace Content.Server.Maps;
/// <summary>
/// Prototype that holds a pool of maps that can be indexed based on the map pool CCVar.
/// </summary>
[Prototype("gameMapPool"), PublicAPI]
public sealed class GameMapPoolPrototype : IPrototype
{
/// <inheritdoc/>
[IdDataField]
public string ID { get; } = default!;
/// <summary>
/// Which maps are in this pool.
/// </summary>
[DataField("maps", customTypeSerializer:typeof(PrototypeIdHashSetSerializer<GameMapPrototype>), required: true)]
public readonly HashSet<string> Maps = new(0);
}