mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-15 03:31:30 +01:00
21 lines
512 B
C#
21 lines
512 B
C#
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Shared.Emoting
|
|
{
|
|
public class EmoteSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<SharedEmotingComponent, EmoteAttemptEvent>(OnEmoteAttempt);
|
|
}
|
|
|
|
private void OnEmoteAttempt(EntityUid entity, SharedEmotingComponent component, EmoteAttemptEvent ev)
|
|
{
|
|
if (!component.Enabled)
|
|
ev.Cancel();
|
|
}
|
|
}
|
|
}
|