mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-07 13:05:41 +00:00
29 lines
650 B
C#
29 lines
650 B
C#
using QSB.Messaging;
|
|
using QuantumUNET.Transport;
|
|
|
|
namespace QSB.LogSync.Messages
|
|
{
|
|
public class RevealFactMessage : PlayerMessage
|
|
{
|
|
public string FactId { get; set; }
|
|
public bool SaveGame { get; set; }
|
|
public bool ShowNotification { get; set; }
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
FactId = reader.ReadString();
|
|
SaveGame = reader.ReadBoolean();
|
|
ShowNotification = reader.ReadBoolean();
|
|
}
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(FactId);
|
|
writer.Write(SaveGame);
|
|
writer.Write(ShowNotification);
|
|
}
|
|
}
|
|
}
|