forked from Rxup/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
47 additions
and
17 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
27 changes: 25 additions & 2 deletions
27
Content.Shared/VentCraw/Components/BeingVentCrawComponent.cs
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,8 +1,31 @@ | ||
namespace Content.Shared.VentCraw.Components; | ||
|
||
/// <summary> | ||
/// A component indicating that the entity is in the process of moving through the venting process | ||
/// </summary> | ||
[RegisterComponent] | ||
public sealed partial class BeingVentCrawComponent : Component | ||
{ | ||
[ViewVariables] | ||
public EntityUid Holder; | ||
/// <summary> | ||
/// The entity that contains this object in the vent | ||
/// </summary> | ||
[DataField("holder")] | ||
private EntityUid _holder; | ||
/// <summary> | ||
/// Gets or sets up a holder entity | ||
/// </summary> | ||
public EntityUid Holder | ||
{ | ||
get => _holder; | ||
set | ||
{ | ||
if (_holder == value) | ||
return; | ||
|
||
if (value == default) | ||
throw new ArgumentException("Holder cannot be default EntityUid"); | ||
|
||
_holder = value; | ||
} | ||
} | ||
} |
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