Files
tbd-station-14/Content.Shared/Flash/FlashableComponent.cs
Ed ae321151ca Shadow anomaly returns (#24629)
* content

* add cat

* ambient

* I FORGOT HEARTS!

* fix ambient

* some fixes

* canCollide: false

* connect to damageable

* pi

* remove fx

* some fixes

* *sad bruh*

* hazed

* Update base_shadow.yml
2024-02-13 17:12:32 -05:00

41 lines
961 B
C#

using Content.Shared.Physics;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared.Flash
{
[RegisterComponent, NetworkedComponent]
public sealed partial class FlashableComponent : Component
{
public float Duration;
public TimeSpan LastFlash;
[DataField]
public CollisionGroup CollisionGroup = CollisionGroup.Opaque;
public override bool SendOnlyToOwner => true;
}
[Serializable, NetSerializable]
public sealed class FlashableComponentState : ComponentState
{
public float Duration { get; }
public TimeSpan Time { get; }
public FlashableComponentState(float duration, TimeSpan time)
{
Duration = duration;
Time = time;
}
}
[Serializable, NetSerializable]
public enum FlashVisuals : byte
{
BaseLayer,
LightLayer,
Burnt,
Flashing,
}
}