2021-07-10 17:35:33 +02:00
|
|
|
using Content.Shared.Sound;
|
2021-07-12 01:32:10 -07:00
|
|
|
using Robust.Shared.GameStates;
|
2021-06-27 19:02:46 +10:00
|
|
|
|
|
|
|
|
namespace Content.Shared.Standing
|
|
|
|
|
{
|
2022-06-07 15:26:28 +02:00
|
|
|
[Access(typeof(StandingStateSystem))]
|
2021-10-10 12:47:26 +02:00
|
|
|
[RegisterComponent, NetworkedComponent]
|
2021-10-24 23:43:49 -07:00
|
|
|
public sealed class StandingStateComponent : Component
|
2021-06-27 19:02:46 +10:00
|
|
|
{
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2022-05-21 17:30:38 +10:00
|
|
|
[DataField("downSound")]
|
|
|
|
|
public SoundSpecifier DownSound { get; } = new SoundCollectionSpecifier("BodyFall");
|
2021-06-27 19:02:46 +10:00
|
|
|
|
|
|
|
|
[DataField("standing")]
|
|
|
|
|
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>
|
2022-05-10 17:57:20 -07:00
|
|
|
[DataField("changedFixtures")]
|
|
|
|
|
public List<string> ChangedFixtures = new();
|
2021-06-27 19:02:46 +10:00
|
|
|
}
|
|
|
|
|
}
|