2021-12-26 18:55:54 -08:00

23 lines
417 B
C#

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