2021-11-11 02:08:03 -08:00
|
|
|
|
using QSB.WorldSync.Events;
|
|
|
|
|
using QuantumUNET.Transport;
|
|
|
|
|
|
|
|
|
|
namespace QSB.MeteorSync.Events
|
|
|
|
|
{
|
|
|
|
|
public class MeteorLaunchMessage : WorldObjectMessage
|
|
|
|
|
{
|
2021-11-12 02:24:27 -08:00
|
|
|
|
public bool Flag;
|
|
|
|
|
public int PoolIndex;
|
2021-11-11 02:08:03 -08:00
|
|
|
|
public float LaunchSpeed;
|
|
|
|
|
|
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
|
|
|
|
{
|
|
|
|
|
base.Deserialize(reader);
|
2021-11-12 02:24:27 -08:00
|
|
|
|
Flag = reader.ReadBoolean();
|
|
|
|
|
PoolIndex = reader.ReadInt32();
|
2021-11-11 02:08:03 -08:00
|
|
|
|
LaunchSpeed = reader.ReadSingle();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
|
|
|
|
{
|
|
|
|
|
base.Serialize(writer);
|
2021-11-12 02:24:27 -08:00
|
|
|
|
writer.Write(Flag);
|
|
|
|
|
writer.Write(PoolIndex);
|
2021-11-11 02:08:03 -08:00
|
|
|
|
writer.Write(LaunchSpeed);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|