quantum-space-buddies/QuantumUNET/Messages/QAnimationTriggerMessage.cs
2021-12-02 19:41:19 -08:00

22 lines
457 B
C#

using QuantumUNET.Transport;
namespace QuantumUNET.Messages
{
internal class QAnimationTriggerMessage : QMessageBase
{
public QNetworkInstanceId netId;
public int hash;
public override void Deserialize(QNetworkReader reader)
{
netId = reader.ReadNetworkId();
hash = (int)reader.ReadPackedUInt32();
}
public override void Serialize(QNetworkWriter writer)
{
writer.Write(netId);
writer.WritePackedUInt32((uint)hash);
}
}
}