DamageModifierSetPrototype.cs 657 B

12345678910111213141516171819
  1. using Robust.Shared.Prototypes;
  2. namespace Content.Shared.Damage.Prototypes
  3. {
  4. /// <summary>
  5. /// A version of DamageModifierSet that can be serialized as a prototype, but is functionally identical.
  6. /// </summary>
  7. /// <remarks>
  8. /// Done to avoid removing the 'required' tag on the ID and passing around a 'prototype' when we really
  9. /// just want normal data to be deserialized.
  10. /// </remarks>
  11. [Prototype]
  12. public sealed partial class DamageModifierSetPrototype : DamageModifierSet, IPrototype
  13. {
  14. [ViewVariables]
  15. [IdDataField]
  16. public string ID { get; private set; } = default!;
  17. }
  18. }