This repository has been archived by the owner on Nov 1, 2024. It is now read-only.
forked from new-frontiers-14/frontier-station-14
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #335 from Corvax-Frontier/revert-325-lie-down-2
Revert "Ляжания вторая попытка - ДОДЕЛАННОЕ, РАБОЧЕЕ ГАВНО"
- Loading branch information
Showing
12 changed files
with
21 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,24 @@ | ||
using Robust.Shared.Audio; | ||
using Robust.Shared.GameStates; | ||
using Content.Shared.Actions; | ||
using Robust.Shared.Prototypes; | ||
using Robust.Shared.Serialization; | ||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; | ||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; | ||
|
||
namespace Content.Shared.Standing; | ||
|
||
|
||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState] | ||
[Access(typeof(StandingStateSystem))] | ||
public sealed partial class StandingStateComponent : Component | ||
namespace Content.Shared.Standing | ||
{ | ||
[ViewVariables(VVAccess.ReadWrite)] | ||
[DataField] | ||
public SoundSpecifier DownSound { get; private set; } = new SoundCollectionSpecifier("BodyFall"); | ||
|
||
[DataField, AutoNetworkedField] | ||
public bool Standing = true; | ||
|
||
/// <summary> | ||
/// List of fixtures that had their collision mask changed when the entity was downed. | ||
/// Required for re-adding the collision mask. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public List<string> ChangedFixtures = new(); | ||
|
||
[DataField] | ||
public EntProtoId LieDownAction = "ActionLieDown"; | ||
|
||
[DataField, AutoNetworkedField] | ||
public EntityUid? LieDownActionEntity; | ||
|
||
[DataField("stand-up-action")] | ||
public EntProtoId StandUpAction = "ActionStandUp"; | ||
|
||
[DataField, AutoNetworkedField] | ||
public EntityUid? StandUpActionEntity; | ||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState] | ||
[Access(typeof(StandingStateSystem))] | ||
public sealed partial class StandingStateComponent : Component | ||
{ | ||
[ViewVariables(VVAccess.ReadWrite)] | ||
[DataField] | ||
public SoundSpecifier DownSound { get; private set; } = new SoundCollectionSpecifier("BodyFall"); | ||
|
||
[DataField, AutoNetworkedField] | ||
public bool Standing { get; set; } = true; | ||
|
||
/// <summary> | ||
/// List of fixtures that had their collision mask changed when the entity was downed. | ||
/// Required for re-adding the collision mask. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public List<string> ChangedFixtures = new(); | ||
} | ||
} | ||
|
||
public sealed partial class LieDownActionEvent : InstantActionEvent {} | ||
public sealed partial class StandUpActionEvent : InstantActionEvent {} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters