quantum-space-buddies/QSB/ConversationSync/Events/DialogueConditionMessage.cs

26 lines
579 B
C#
Raw Normal View History

2020-12-14 16:28:03 +00:00
using QSB.Messaging;
using QuantumUNET.Transport;
2020-12-11 12:54:19 +00:00
2020-12-18 21:00:22 +00:00
namespace QSB.ConversationSync.Events
2020-12-11 12:54:19 +00:00
{
public class DialogueConditionMessage : PlayerMessage
{
public string ConditionName { get; set; }
public bool ConditionState { get; set; }
2020-12-23 12:58:45 +00:00
public override void Deserialize(QNetworkReader reader)
2020-12-11 12:54:19 +00:00
{
base.Deserialize(reader);
ConditionName = reader.ReadString();
ConditionState = reader.ReadBoolean();
}
2020-12-23 12:58:45 +00:00
public override void Serialize(QNetworkWriter writer)
2020-12-11 12:54:19 +00:00
{
base.Serialize(writer);
writer.Write(ConditionName);
writer.Write(ConditionState);
}
}
}