quantum-space-buddies/QuantumUNET/Messages/QAnimationParametersMessage.cs
2021-12-02 18:55:55 -08:00

22 lines
494 B
C#

using QuantumUNET.Transport;
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);
}
}
}