Skip to content

Commit

Permalink
nf iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
mqole committed Feb 27, 2025
1 parent ca0eb34 commit 530459a
Show file tree
Hide file tree
Showing 7 changed files with 503 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Content.Server/_EE/Carrying/BeingCarriedComponent.cs
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!;
}
}
40 changes: 40 additions & 0 deletions Content.Server/_EE/Carrying/CarriableComponent.cs
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
}
}
11 changes: 11 additions & 0 deletions Content.Server/_EE/Carrying/CarryingComponent.cs
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!;
}
}
Loading

0 comments on commit 530459a

Please sign in to comment.