2021-12-20 11:48:50 +00:00
|
|
|
|
using QSB.WorldSync.Events;
|
|
|
|
|
using QuantumUNET.Transport;
|
|
|
|
|
|
2021-12-24 00:26:31 +00:00
|
|
|
|
namespace QSB.ConversationSync.Messages
|
2021-12-20 11:48:50 +00:00
|
|
|
|
{
|
|
|
|
|
public class EnterRemoteDialogueMessage : WorldObjectMessage
|
|
|
|
|
{
|
|
|
|
|
public int ActivatedDialogueIndex { get; set; }
|
|
|
|
|
public int ListDialoguesIndex { get; set; }
|
|
|
|
|
|
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
|
|
|
|
{
|
|
|
|
|
base.Deserialize(reader);
|
|
|
|
|
ActivatedDialogueIndex = reader.ReadInt32();
|
|
|
|
|
ListDialoguesIndex = reader.ReadInt32();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
|
|
|
|
{
|
|
|
|
|
base.Serialize(writer);
|
|
|
|
|
writer.Write(ActivatedDialogueIndex);
|
|
|
|
|
writer.Write(ListDialoguesIndex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|