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 37
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 #112 from FireNameFN/Executions
Executions
- Loading branch information
Showing
28 changed files
with
633 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Content.Shared.DoAfter; | ||
using Robust.Shared.Serialization; | ||
|
||
namespace Content.Shared.Execution; | ||
|
||
[Serializable, NetSerializable] | ||
public sealed partial class ExecutionDoAfterEvent : SimpleDoAfterEvent | ||
{ | ||
} |
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,26 @@ | ||
using Robust.Shared.GameStates; | ||
|
||
namespace Content.Shared.Execution; | ||
|
||
/// <summary> | ||
/// Added to entities that can be used to execute another target. | ||
/// </summary> | ||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState] | ||
public sealed partial class ExecutionComponent : Component | ||
{ | ||
/// <summary> | ||
/// How long the execution duration lasts. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public float DoAfterDuration = 5f; | ||
|
||
[DataField, AutoNetworkedField] | ||
public float DamageModifier = 9f; | ||
|
||
// Not networked because this is transient inside of a tick. | ||
/// <summary> | ||
/// True if it is currently executing for handlers. | ||
/// </summary> | ||
[DataField] | ||
public bool Executing = true; | ||
} |
Oops, something went wrong.