перенос общих файлов из папки White в _White
This commit is contained in:
32
Content.Shared/_White/Animations/EmoteAnimationComponent.cs
Normal file
32
Content.Shared/_White/Animations/EmoteAnimationComponent.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using Content.Shared.Actions;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared._White.Animations;
|
||||
|
||||
/// <summary>
|
||||
/// Event for playing animations
|
||||
/// </summary>
|
||||
public sealed partial class EmoteActionEvent : InstantActionEvent
|
||||
{
|
||||
[ViewVariables, DataField("emote", readOnly: true, required: true)]
|
||||
public string Emote = default!;
|
||||
};
|
||||
|
||||
[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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user