quantum-space-buddies/QSB/ConversationSync/WorldObjects/QSBRemoteDialogueTrigger.cs
JohnCorby daba499d90 - rename
- apparently weaver weave arrays correctly, so be explicit
2022-01-26 00:12:44 -08:00

27 lines
693 B
C#

using QSB.ConversationSync.Messages;
using QSB.Messaging;
using QSB.WorldSync;
namespace QSB.ConversationSync.WorldObjects
{
internal class QSBRemoteDialogueTrigger : WorldObject<RemoteDialogueTrigger>
{
public override void SendInitialState(uint to)
{
if (QSBCore.IsHost)
{
this.SendMessage(new RemoteDialogueInitialStateMessage(AttachedObject));
}
}
public void RemoteEnterDialogue(int dialogueIndex)
{
var dialogueCondition = AttachedObject._listDialogues[dialogueIndex];
AttachedObject._activeRemoteDialogue = dialogueCondition.dialogue;
AttachedObject._inRemoteDialogue = true;
AttachedObject._activatedDialogues[dialogueIndex] = true;
}
}
}