quantum-space-buddies/QSB/Animation/Events/QSBAnimationTriggerMessage.cs

22 lines
540 B
C#
Raw Normal View History

2020-11-08 14:41:16 +00:00
using UnityEngine.Networking;
2020-11-08 16:10:10 +00:00
namespace QSB.Animation.Events
2020-11-08 14:41:16 +00:00
{
class QSBAnimationTriggerMessage : MessageBase
{
public NetworkInstanceId netId;
public int hash;
public override void Deserialize(NetworkReader reader)
{
netId = reader.ReadNetworkId();
hash = (int)reader.ReadPackedUInt32();
}
public override void Serialize(NetworkWriter writer)
{
writer.Write(netId);
writer.WritePackedUInt32((uint)hash);
}
}
}