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