mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 22:18:52 +03:00
# Description IPCs were ported from a codebase that didn't necessarily follow all of our repo's coding standards. And while I had done my part to cleanup as much of the system as was practical within the bounds of a Maintainer Review, there were a lot of things that I felt were inappropriate to leave to review, and wished to go over with a fine lense. Thus, here is my Refactor of IPC code. Do not merge this without first testing that nothing was broken. Because I haven't tested it myself yet.
29 lines
823 B
C#
29 lines
823 B
C#
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Shared.Silicon.DeadStartupButton;
|
|
|
|
/// <summary>
|
|
/// This is used for Silicon entities such as IPCs, Cyborgs, Androids, anything "living" with a button people can touch.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class DeadStartupButtonComponent : Component
|
|
{
|
|
[DataField]
|
|
public string VerbText = "dead-startup-button-verb";
|
|
|
|
[DataField]
|
|
public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Effects/Arcade/newgame.ogg");
|
|
|
|
[DataField]
|
|
public SoundSpecifier ButtonSound = new SoundPathSpecifier("/Audio/Machines/button.ogg");
|
|
|
|
[DataField]
|
|
public float DoAfterInterval = 1f;
|
|
|
|
[DataField]
|
|
public SoundSpecifier BuzzSound = new SoundCollectionSpecifier("buzzes");
|
|
|
|
[DataField]
|
|
public int VerbPriority = 1;
|
|
}
|