fish-station/Content.Shared/_Sunrise/Animations/EmoteAnimationComponent.cs
iertis d5ec9f0e5b
Фиксы апстрима (#2778)
Co-authored-by: Vigers Ray <vigersray@gmail.com>
2025-08-15 12:45:53 +03:00

30 lines
847 B
C#

using Content.Shared.Actions;
using Content.Shared.Chat.Prototypes;
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!;
};