Re-organize all projects (#4166)
This commit is contained in:
36
Content.Server/Flash/Components/FlashComponent.cs
Normal file
36
Content.Server/Flash/Components/FlashComponent.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.Flash.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
public class FlashComponent : Component
|
||||
{
|
||||
public override string Name => "Flash";
|
||||
|
||||
[DataField("duration")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public int FlashDuration { get; set; } = 5000;
|
||||
|
||||
[DataField("uses")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public int Uses { get; set; } = 5;
|
||||
|
||||
[DataField("range")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float Range { get; set; } = 7f;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("aoeFlashDuration")]
|
||||
public int AoeFlashDuration { get; set; } = 2000;
|
||||
|
||||
[DataField("slowTo")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float SlowTo { get; set; } = 0.5f;
|
||||
|
||||
public bool Flashing;
|
||||
|
||||
public bool HasUses => Uses > 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user