quantum-space-buddies/QuantumUNET/Messages/QAnimationTriggerMessage.cs
2020-12-23 12:58:45 +00:00

23 lines
486 B
C#

using QuantumUNET.Transport;
using UnityEngine.Networking;
namespace QuantumUNET.Messages
{
internal class QAnimationTriggerMessage : QMessageBase
{
public NetworkInstanceId 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);
}
}
}