LoadoutComponent.cs 876 B

1234567891011121314151617181920212223242526
  1. using Content.Shared.Preferences.Loadouts;
  2. using Content.Shared.Roles;
  3. using Robust.Shared.GameStates;
  4. using Robust.Shared.Prototypes;
  5. namespace Content.Shared.Clothing.Components;
  6. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  7. public sealed partial class LoadoutComponent : Component
  8. {
  9. /// <summary>
  10. /// A list of starting gears, of which one will be given, before RoleLoadouts are equipped.
  11. /// All elements are weighted the same in the list.
  12. /// </summary>
  13. [DataField("prototypes")]
  14. [AutoNetworkedField]
  15. public List<ProtoId<StartingGearPrototype>>? StartingGear;
  16. /// <summary>
  17. /// A list of role loadouts, of which one will be given.
  18. /// All elements are weighted the same in the list.
  19. /// </summary>
  20. [DataField]
  21. [AutoNetworkedField]
  22. public List<ProtoId<RoleLoadoutPrototype>>? RoleLoadout;
  23. }