quantum-space-buddies/QSB/ConversationSync/Messages/EnterRemoteDialogueMessage.cs

25 lines
626 B
C#
Raw Normal View History

2021-12-20 11:48:50 +00:00
using QSB.WorldSync.Events;
using QuantumUNET.Transport;
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);
}
}
}