2024-05-10 14:35:59 +03:00
|
|
|
using Content.Shared.Preferences.Loadouts;
|
2023-08-05 14:25:47 +10:00
|
|
|
using Content.Shared.Roles;
|
|
|
|
|
using Robust.Shared.GameStates;
|
2024-05-10 14:35:59 +03:00
|
|
|
using Robust.Shared.Prototypes;
|
2023-08-05 14:25:47 +10:00
|
|
|
|
|
|
|
|
namespace Content.Shared.Clothing.Components;
|
|
|
|
|
|
2024-01-03 17:24:02 +11:00
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class LoadoutComponent : Component
|
2023-08-05 14:25:47 +10:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2024-08-07 11:26:40 +02:00
|
|
|
/// A list of starting gears, of which one will be given, before RoleLoadouts are equipped.
|
2023-08-05 14:25:47 +10:00
|
|
|
/// All elements are weighted the same in the list.
|
|
|
|
|
/// </summary>
|
2024-05-10 14:35:59 +03:00
|
|
|
[DataField("prototypes")]
|
|
|
|
|
[AutoNetworkedField]
|
|
|
|
|
public List<ProtoId<StartingGearPrototype>>? StartingGear;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A list of role loadouts, of which one will be given.
|
|
|
|
|
/// All elements are weighted the same in the list.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
[AutoNetworkedField]
|
|
|
|
|
public List<ProtoId<RoleLoadoutPrototype>>? RoleLoadout;
|
2023-08-05 14:25:47 +10:00
|
|
|
}
|