Slight trigger refactor (#4320)
* Trigger tweaks * Finish trigger refactor * Clusterflash too
This commit is contained in:
19
Content.Server/Flash/Components/FlashOnTriggerComponent.cs
Normal file
19
Content.Server/Flash/Components/FlashOnTriggerComponent.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
|
||||
namespace Content.Server.Flash.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Upon being triggered will flash in an area around it.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
internal sealed class FlashOnTriggerComponent : Component
|
||||
{
|
||||
public override string Name => "FlashOnTrigger";
|
||||
|
||||
[DataField("range")] internal float Range = 1.0f;
|
||||
[DataField("duration")] internal float Duration = 8.0f;
|
||||
|
||||
internal bool Flashed;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user