21 lines
400 B
C#
Raw Normal View History

2021-12-25 23:03:23 -08:00
using QSB.Animation.NPC.WorldObjects;
using QSB.Messaging;
2021-04-29 18:30:45 +01:00
2022-03-02 19:46:33 -08:00
namespace QSB.Animation.NPC.Messages;
internal class NpcAnimationMessage : QSBWorldObjectMessage<INpcAnimController, bool>
2021-04-29 18:30:45 +01:00
{
2022-03-10 17:57:50 -08:00
public NpcAnimationMessage(bool start) : base(start) { }
2022-03-02 19:46:33 -08:00
public override void OnReceiveRemote()
{
if (Data)
{
WorldObject.StartConversation();
}
else
2021-04-29 18:30:45 +01:00
{
2022-03-02 19:46:33 -08:00
WorldObject.EndConversation();
2021-04-29 18:30:45 +01:00
}
}
}