forked from space-wizards/space-station-14
-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
7 changed files
with
503 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Content.Server.Carrying | ||
{ | ||
/// <summary> | ||
/// Stores the carrier of an entity being carried. | ||
/// </summary> | ||
[RegisterComponent] | ||
public sealed partial class BeingCarriedComponent : Component | ||
{ | ||
public EntityUid Carrier = default!; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System.Threading; | ||
|
||
namespace Content.Server.Carrying | ||
{ | ||
[RegisterComponent] | ||
public sealed partial class CarriableComponent : Component | ||
{ | ||
/// <summary> | ||
/// Number of free hands required | ||
/// to carry the entity | ||
/// </summary> | ||
[DataField] | ||
public int FreeHandsRequired = 2; | ||
|
||
public CancellationTokenSource? CancelToken; | ||
|
||
/// <summary> | ||
/// The base duration (In Seconds) of how long it should take to pick up this entity | ||
/// before Contests are considered. | ||
/// </summary> | ||
[DataField] | ||
public float PickupDuration = 3; | ||
|
||
// Frontier: min/max sanitization | ||
/// <summary> | ||
/// The minimum duration (in seconds) of how long it should take to pick up this entity. | ||
/// When the strongest, heaviest entity picks this up, it should roughly take this long. | ||
/// </summary> | ||
[DataField] | ||
public float MinPickupDuration = 1.5f; | ||
|
||
/// <summary> | ||
/// The maximum duration (in seconds) of how long it should take to pick up this entity. | ||
/// When an object picks up the heaviest object it can lift, it should be at most this. | ||
/// </summary> | ||
[DataField] | ||
public float MaxPickupDuration = 6.0f; | ||
// End Frontier | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Content.Server.Carrying | ||
{ | ||
/// <summary> | ||
/// Added to an entity when they are carrying somebody. | ||
/// </summary> | ||
[RegisterComponent] | ||
public sealed partial class CarryingComponent : Component | ||
{ | ||
public EntityUid Carried = default!; | ||
} | ||
} |
Oops, something went wrong.