mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
20 lines
651 B
C#
20 lines
651 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) =>
|
|
this.SendMessage(new RemoteDialogueInitialStateMessage(AttachedObject) { To = to });
|
|
|
|
public void RemoteEnterDialogue(int dialogueIndex)
|
|
{
|
|
var dialogueCondition = AttachedObject._listDialogues[dialogueIndex];
|
|
AttachedObject._activeRemoteDialogue = dialogueCondition.dialogue;
|
|
AttachedObject._inRemoteDialogue = true;
|
|
|
|
AttachedObject._activatedDialogues[dialogueIndex] = true;
|
|
}
|
|
} |