2021-04-24 00:10:29 +01:00
|
|
|
|
using QSB.Messaging;
|
|
|
|
|
using QuantumUNET.Transport;
|
|
|
|
|
|
2021-12-23 16:26:31 -08:00
|
|
|
|
namespace QSB.Animation.Player.Messages
|
2021-04-24 00:10:29 +01:00
|
|
|
|
{
|
|
|
|
|
public class AnimationTriggerMessage : PlayerMessage
|
|
|
|
|
{
|
|
|
|
|
public uint AttachedNetId { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
|
|
|
|
{
|
|
|
|
|
base.Deserialize(reader);
|
|
|
|
|
AttachedNetId = reader.ReadUInt32();
|
|
|
|
|
Name = reader.ReadString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
|
|
|
|
{
|
|
|
|
|
base.Serialize(writer);
|
|
|
|
|
writer.Write(AttachedNetId);
|
|
|
|
|
writer.Write(Name);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|