-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into brain-eat-delay
- Loading branch information
Showing
17 changed files
with
287 additions
and
58 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
10 changes: 10 additions & 0 deletions
10
Content.Shared/Bed/Cryostorage/CanEnterCryostorageComponent.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Robust.Shared.GameStates; | ||
|
||
namespace Content.Shared.Bed.Cryostorage; | ||
|
||
/// <summary> | ||
/// Serves as a whitelist that allows an entity with this component to enter cryostorage. | ||
/// It will also require MindContainerComponent. | ||
/// </summary> | ||
[RegisterComponent, NetworkedComponent] | ||
public sealed partial class CanEnterCryostorageComponent : Component { } |
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
39 changes: 39 additions & 0 deletions
39
Content.Shared/Intellicard/Components/IntellicardComponent.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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using Robust.Shared.Audio; | ||
using Robust.Shared.GameStates; | ||
|
||
namespace Content.Shared.Intellicard; | ||
|
||
/// <summary> | ||
/// Allows this entity to download the station AI onto an AiHolderComponent. | ||
/// </summary> | ||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState] | ||
public sealed partial class IntellicardComponent : Component | ||
{ | ||
/// <summary> | ||
/// The duration it takes to download the AI from an AiHolder. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public int DownloadTime = 15; | ||
|
||
/// <summary> | ||
/// The duration it takes to upload the AI to an AiHolder. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public int UploadTime = 3; | ||
|
||
/// <summary> | ||
/// The sound that plays for the AI | ||
/// when they are being downloaded | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public SoundSpecifier? WarningSound = new SoundPathSpecifier("/Audio/Misc/notice2.ogg"); | ||
|
||
/// <summary> | ||
/// The delay before allowing the warning to play again in seconds. | ||
/// </summary> | ||
[DataField, AutoNetworkedField] | ||
public TimeSpan WarningDelay = TimeSpan.FromSeconds(8); | ||
|
||
[ViewVariables] | ||
public TimeSpan NextWarningAllowed = TimeSpan.Zero; | ||
} |
Oops, something went wrong.