quantum-space-buddies/QSB/Animation/NPC/Messages/NpcAnimationMessage.cs
2022-02-25 23:18:46 -08:00

21 lines
401 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) => Value = start;
public override void OnReceiveRemote()
{
if (Value)
{
WorldObject.StartConversation();
}
else
{
WorldObject.EndConversation();
}
}
}