mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-11 09:38:48 +00:00
22 lines
540 B
C#
22 lines
540 B
C#
using UnityEngine.Networking;
|
|
|
|
namespace QSB.Animation.Events
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
} |