mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
7a4149bee6
This reverts commit 661c04a98784a50011cfdaafc62e424095399678.
23 lines
494 B
C#
23 lines
494 B
C#
using QuantumUNET.Transport;
|
|
using UnityEngine.Networking;
|
|
|
|
namespace QuantumUNET.Messages
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
} |