mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 06:51:36 +00:00
22 lines
416 B
C#
22 lines
416 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) => Data = start;
|
|
|
|
public override void OnReceiveRemote()
|
|
{
|
|
if (Data)
|
|
{
|
|
WorldObject.StartConversation();
|
|
}
|
|
else
|
|
{
|
|
WorldObject.EndConversation();
|
|
}
|
|
}
|
|
}
|
|
} |