fish-station/Content.Shared/_Sunrise/Animations/EmoteAnimationComponent.cs
haiwwkes 5192d120ea
Новая панель эмоутов. (#891)
* wacky

* work

* work

* work

* work

* eff

* a
2024-12-24 23:27:09 +03:00

29 lines
809 B
C#

using Content.Shared.Actions;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared._Sunrise.Animations;
[RegisterComponent, NetworkedComponent]
public sealed partial class EmoteAnimationComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
public string AnimationId = "none";
[Serializable, NetSerializable]
public partial class EmoteAnimationComponentState : ComponentState
{
public string AnimationId { get; init; }
public EmoteAnimationComponentState(string animationId)
{
AnimationId = animationId;
}
}
}
public sealed partial class EmoteActionEvent : InstantActionEvent
{
[ViewVariables, DataField("emote", readOnly: true, required: true)]
public string Emote = default!;
};