23 lines
419 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
namespace QSB.Animation.NPC.Messages
2021-04-29 18:30:45 +01:00
{
2022-01-26 20:35:43 -08:00
internal class NpcAnimationMessage : QSBWorldObjectMessage<INpcAnimController, bool>
2021-04-29 18:30:45 +01:00
{
public NpcAnimationMessage(bool start) => Value = start;
2021-04-29 18:30:45 +01:00
2021-12-25 23:03:23 -08:00
public override void OnReceiveRemote()
2021-04-29 18:30:45 +01:00
{
if (Value)
2021-12-25 23:03:23 -08:00
{
WorldObject.StartConversation();
}
else
{
WorldObject.EndConversation();
2021-12-25 23:03:23 -08:00
}
2021-04-29 18:30:45 +01:00
}
}
}