quantum-space-buddies/QSB/Animation/NPC/Messages/NpcAnimationMessage.cs
2022-03-10 17:57:50 -08:00

21 lines
400 B
C#

using QSB.Animation.NPC.WorldObjects;
using QSB.Messaging;
namespace QSB.Animation.NPC.Messages;
internal class NpcAnimationMessage : QSBWorldObjectMessage<INpcAnimController, bool>
{
public NpcAnimationMessage(bool start) : base(start) { }
public override void OnReceiveRemote()
{
if (Data)
{
WorldObject.StartConversation();
}
else
{
WorldObject.EndConversation();
}
}
}