quantum-space-buddies/QSB/LogSync/Events/RevealFactMessage.cs

29 lines
648 B
C#
Raw Normal View History

2020-12-19 10:56:25 +00:00
using QSB.Messaging;
using QuantumUNET.Transport;
namespace QSB.LogSync.Events
{
public class RevealFactMessage : PlayerMessage
{
public string FactId { get; set; }
public bool SaveGame { get; set; }
public bool ShowNotification { get; set; }
2020-12-23 12:58:45 +00:00
public override void Deserialize(QNetworkReader reader)
2020-12-19 10:56:25 +00:00
{
base.Deserialize(reader);
FactId = reader.ReadString();
SaveGame = reader.ReadBoolean();
ShowNotification = reader.ReadBoolean();
}
2020-12-23 12:58:45 +00:00
public override void Serialize(QNetworkWriter writer)
2020-12-19 10:56:25 +00:00
{
base.Serialize(writer);
writer.Write(FactId);
writer.Write(SaveGame);
writer.Write(ShowNotification);
}
}
}