* 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
41 lines
961 B
C#
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,
|
|
}
|
|
}
|