2021-01-03 09:52:34 +00:00
|
|
|
|
using QSB.Messaging;
|
|
|
|
|
using QuantumUNET.Transport;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
2021-12-23 16:26:31 -08:00
|
|
|
|
namespace QSB.QuantumSync.Messages
|
2021-01-03 09:52:34 +00:00
|
|
|
|
{
|
|
|
|
|
public class MoonStateChangeMessage : PlayerMessage
|
|
|
|
|
{
|
|
|
|
|
public int StateIndex { get; set; }
|
|
|
|
|
public Vector3 OnUnitSphere { get; set; }
|
|
|
|
|
public int OrbitAngle { get; set; }
|
|
|
|
|
|
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
|
|
|
|
{
|
|
|
|
|
base.Deserialize(reader);
|
|
|
|
|
StateIndex = reader.ReadInt32();
|
|
|
|
|
OnUnitSphere = reader.ReadVector3();
|
|
|
|
|
OrbitAngle = reader.ReadInt32();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
|
|
|
|
{
|
|
|
|
|
base.Serialize(writer);
|
|
|
|
|
writer.Write(StateIndex);
|
|
|
|
|
writer.Write(OnUnitSphere);
|
|
|
|
|
writer.Write(OrbitAngle);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|