mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 15:53:19 +00:00
23 lines
419 B
C#
23 lines
419 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();
|
|
}
|
|
}
|
|
}
|
|
}
|