44 lines
1 KiB
C#
44 lines
1 KiB
C#
using Robust.Shared.Serialization;
|
|
using Robust.Shared.Map;
|
|
|
|
namespace Content.Shared._Starlight.Actions.Stasis;
|
|
|
|
/// <summary>
|
|
/// The type of stasis animation to play
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public enum StasisAnimationType
|
|
{
|
|
/// <summary>
|
|
/// Animation played when preparing stasis
|
|
/// </summary>
|
|
Prepare,
|
|
|
|
/// <summary>
|
|
/// Animation played when entering stasis
|
|
/// </summary>
|
|
Enter,
|
|
|
|
/// <summary>
|
|
/// Animation played when exiting stasis
|
|
/// </summary>
|
|
Exit
|
|
}
|
|
|
|
/// <summary>
|
|
/// Network event for playing the stasis animation on all clients
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class StasisAnimationEvent : EntityEventArgs
|
|
{
|
|
public NetEntity Entity;
|
|
public NetCoordinates Coordinates;
|
|
public StasisAnimationType AnimationType;
|
|
|
|
public StasisAnimationEvent(NetEntity entity, NetCoordinates coordinates, StasisAnimationType animationType)
|
|
{
|
|
Entity = entity;
|
|
Coordinates = coordinates;
|
|
AnimationType = animationType;
|
|
}
|
|
}
|