quantum-space-buddies/QSB/MeteorSync/Events/MeteorLaunchMessage.cs
2021-11-13 20:41:46 -08:00

26 lines
526 B
C#

using QSB.WorldSync.Events;
using QuantumUNET.Transport;
namespace QSB.MeteorSync.Events
{
public class MeteorLaunchMessage : WorldObjectMessage
{
public int MeteorId;
public float LaunchSpeed;
public override void Deserialize(QNetworkReader reader)
{
base.Deserialize(reader);
MeteorId = reader.ReadInt32();
LaunchSpeed = reader.ReadSingle();
}
public override void Serialize(QNetworkWriter writer)
{
base.Serialize(writer);
writer.Write(MeteorId);
writer.Write(LaunchSpeed);
}
}
}