mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 03:40:46 +00:00
26 lines
579 B
C#
26 lines
579 B
C#
using QSB.Messaging;
|
|
using QuantumUNET.Transport;
|
|
|
|
namespace QSB.ConversationSync.Events
|
|
{
|
|
public class DialogueConditionMessage : PlayerMessage
|
|
{
|
|
public string ConditionName { get; set; }
|
|
public bool ConditionState { get; set; }
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
ConditionName = reader.ReadString();
|
|
ConditionState = reader.ReadBoolean();
|
|
}
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(ConditionName);
|
|
writer.Write(ConditionState);
|
|
}
|
|
}
|
|
}
|