using System.Collections.Generic; using System.Linq; using Content.Server.Objectives.Interfaces; using Robust.Shared.Prototypes; using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.Serialization.TypeSerializers.Implementations; using Robust.Shared.Utility; using Robust.Shared.ViewVariables; namespace Content.Server.Salvage { [Prototype("salvageMap")] public sealed class SalvageMapPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] public string ID { get; } = default!; /// /// Relative directory path to the given map, i.e. `Maps/Salvage/test.yml` /// [ViewVariables] [DataField("mapPath", required: true)] public ResourcePath MapPath { get; } = default!; /// /// Size *from 0,0* in units of the map (used to determine if it fits) /// [ViewVariables] [DataField("size", required: true)] public float Size { get; } = 1.0f; // TODO: Find a way to figure out the size automatically /// /// Name for admin use /// [ViewVariables] [DataField("name")] public string Name { get; } = ""; } }