2022-07-29 14:13:12 +12:00
|
|
|
using Robust.Shared.Audio;
|
2021-07-12 01:32:10 -07:00
|
|
|
using Robust.Shared.GameStates;
|
2021-06-27 19:02:46 +10:00
|
|
|
|
|
|
|
|
namespace Content.Shared.Standing
|
|
|
|
|
{
|
2023-09-28 16:20:29 -07:00
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
2022-06-07 15:26:28 +02:00
|
|
|
[Access(typeof(StandingStateSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class StandingStateComponent : Component
|
2021-06-27 19:02:46 +10:00
|
|
|
{
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2023-09-28 16:20:29 -07:00
|
|
|
[DataField]
|
2024-05-19 15:35:22 -07:00
|
|
|
public SoundSpecifier? DownSound { get; private set; } = new SoundCollectionSpecifier("BodyFall");
|
2021-06-27 19:02:46 +10:00
|
|
|
|
2023-09-28 16:20:29 -07:00
|
|
|
[DataField, AutoNetworkedField]
|
2021-06-27 19:02:46 +10:00
|
|
|
public bool Standing { get; set; } = true;
|
|
|
|
|
|
2022-04-14 14:31:07 +12:00
|
|
|
/// <summary>
|
2022-05-10 17:57:20 -07:00
|
|
|
/// List of fixtures that had their collision mask changed when the entity was downed.
|
|
|
|
|
/// Required for re-adding the collision mask.
|
2022-04-14 14:31:07 +12:00
|
|
|
/// </summary>
|
2023-09-29 22:14:16 -07:00
|
|
|
[DataField, AutoNetworkedField]
|
2022-05-10 17:57:20 -07:00
|
|
|
public List<string> ChangedFixtures = new();
|
2021-06-27 19:02:46 +10:00
|
|
|
}
|
|
|
|
|
}
|