mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
* when the emotes are animated * hopefully untouched * INCORRECT * can this work. * flipping out
19 lines
476 B
C#
19 lines
476 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Emoting;
|
|
|
|
public abstract class SharedAnimatedEmotesSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<AnimatedEmotesComponent, ComponentGetState>(OnGetState);
|
|
}
|
|
|
|
private void OnGetState(Entity<AnimatedEmotesComponent> ent, ref ComponentGetState args)
|
|
{
|
|
args.State = new AnimatedEmotesComponentState(ent.Comp.Emote);
|
|
}
|
|
}
|