mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 21:32:47 +00:00
19 lines
531 B
C#
19 lines
531 B
C#
using QSB.ConversationSync.Messages;
|
|
using QSB.Messaging;
|
|
using QSB.WorldSync;
|
|
|
|
namespace QSB.ConversationSync.WorldObjects;
|
|
|
|
public class QSBCharacterDialogueTree : WorldObject<CharacterDialogueTree>
|
|
{
|
|
public override void SendInitialState(uint to)
|
|
{
|
|
var playerId = ConversationManager.Instance.GetPlayerTalkingToTree(AttachedObject);
|
|
if (playerId != uint.MaxValue)
|
|
{
|
|
this.SendMessage(new ConversationStartEndMessage(playerId, true) { To = to });
|
|
}
|
|
// TODO: maybe also sync the dialogue box and player box?
|
|
}
|
|
}
|