mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
22 lines
495 B
C#
22 lines
495 B
C#
using QuantumUNET.Transport;
|
|
|
|
namespace QuantumUNET.Messages
|
|
{
|
|
internal class QAnimationParametersMessage : QMessageBase
|
|
{
|
|
public QNetworkInstanceId 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);
|
|
}
|
|
}
|
|
} |