PreloadedGridPrototype.cs 702 B

123456789101112131415161718192021
  1. using Robust.Shared.Prototypes;
  2. using Robust.Shared.Utility;
  3. namespace Content.Shared.GridPreloader.Prototypes;
  4. /// <summary>
  5. /// Creating this prototype will automatically load the grid at the specified path at the beginning of the round,
  6. /// and allow the GridPreloader system to load them in the middle of the round. This is needed for optimization,
  7. /// because loading grids in the middle of a round causes the server to lag.
  8. /// </summary>
  9. [Prototype]
  10. public sealed partial class PreloadedGridPrototype : IPrototype
  11. {
  12. [IdDataField] public string ID { get; private set; } = string.Empty;
  13. [DataField(required: true)]
  14. public ResPath Path;
  15. [DataField]
  16. public int Copies = 1;
  17. }