-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Возможность брать людей на руки (#31)
* carry * fix * carriable update * Removed carriable from vox, slime --------- Co-authored-by: Vigers Ray <[email protected]>
- Loading branch information
1 parent
34ec132
commit f51d4ae
Showing
17 changed files
with
814 additions
and
1 deletion.
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
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,17 @@ | ||
using System.Threading; | ||
|
||
namespace Content.Server.Carrying | ||
{ | ||
[RegisterComponent] | ||
public sealed partial class CarriableComponent : Component | ||
{ | ||
/// <summary> | ||
/// необходимое количество свободных рук | ||
/// что-бы взять сущность | ||
/// </summary> | ||
[DataField("freeHandsRequired")] | ||
public int FreeHandsRequired = 2; | ||
|
||
public CancellationTokenSource? CancelToken; | ||
} | ||
} |
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.