| 123456789101112131415161718192021222324252627282930313233343536373839 |
- using Content.Shared.Decals;
- using Content.Shared.Maps;
- using Robust.Shared.Prototypes;
- namespace Content.Client.Mapping;
- /// <summary>
- /// Used to represent a button's data in the mapping editor.
- /// </summary>
- public sealed class MappingPrototype
- {
- /// <summary>
- /// The prototype instance, if any.
- /// Can be one of <see cref="EntityPrototype"/>, <see cref="ContentTileDefinition"/> or <see cref="DecalPrototype"/>
- /// If null, this is a top-level button (such as Entities, Tiles or Decals)
- /// </summary>
- public readonly IPrototype? Prototype;
- /// <summary>
- /// The text to display on the UI for this button.
- /// </summary>
- public readonly string Name;
- /// <summary>
- /// Which other prototypes (buttons) this one is nested inside of.
- /// </summary>
- public List<MappingPrototype>? Parents;
- /// <summary>
- /// Which other prototypes (buttons) are nested inside this one.
- /// </summary>
- public List<MappingPrototype>? Children;
- public MappingPrototype(IPrototype? prototype, string name)
- {
- Prototype = prototype;
- Name = name;
- }
- }
|