mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
23 lines
524 B
C#
23 lines
524 B
C#
using QuantumUNET.Transport;
|
|
using UnityEngine.Networking;
|
|
|
|
namespace QuantumUNET.Messages
|
|
{
|
|
internal class QAnimationParametersMessage : QMessageBase
|
|
{
|
|
public NetworkInstanceId netId;
|
|
public byte[] parameters;
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
|
{
|
|
netId = reader.ReadNetworkId();
|
|
parameters = reader.ReadBytesAndSize();
|
|
}
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
|
{
|
|
writer.Write(netId);
|
|
writer.WriteBytesAndSize(parameters, parameters?.Length ?? 0);
|
|
}
|
|
}
|
|
} |