quantum-space-buddies/QSB/MeteorSync/Events/MeteorLaunchMessage.cs

29 lines
604 B
C#
Raw Normal View History

2021-11-11 02:08:03 -08:00
using QSB.WorldSync.Events;
using QuantumUNET.Transport;
namespace QSB.MeteorSync.Events
{
public class MeteorLaunchMessage : WorldObjectMessage
{
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);
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);
writer.Write(Flag);
writer.Write(PoolIndex);
2021-11-11 02:08:03 -08:00
writer.Write(LaunchSpeed);
}
}
}