mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 21:59:16 +00:00
27 lines
617 B
C#
27 lines
617 B
C#
using QSB.WorldSync.Events;
|
|
using QuantumUNET.Transport;
|
|
using UnityEngine;
|
|
|
|
namespace QSB.Anglerfish.Events
|
|
{
|
|
public class AnglerChangeStateMessage : EnumWorldObjectMessage<AnglerfishController.AnglerState>
|
|
{
|
|
public uint TargetId;
|
|
public Vector3 LocalDisturbancePos;
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
TargetId = reader.ReadUInt32();
|
|
LocalDisturbancePos = reader.ReadVector3();
|
|
}
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(TargetId);
|
|
writer.Write(LocalDisturbancePos);
|
|
}
|
|
}
|
|
}
|