mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-08 09:41:07 +00:00
22 lines
456 B
C#
22 lines
456 B
C#
using UnityEngine.Networking;
|
|
|
|
namespace QuantumUNET
|
|
{
|
|
internal class QSBAnimationTriggerMessage : QSBMessageBase
|
|
{
|
|
public NetworkInstanceId netId;
|
|
public int hash;
|
|
|
|
public override void Deserialize(QSBNetworkReader reader)
|
|
{
|
|
netId = reader.ReadNetworkId();
|
|
hash = (int)reader.ReadPackedUInt32();
|
|
}
|
|
|
|
public override void Serialize(QSBNetworkWriter writer)
|
|
{
|
|
writer.Write(netId);
|
|
writer.WritePackedUInt32((uint)hash);
|
|
}
|
|
}
|
|
} |