2021-04-23 23:10:29 +00:00
|
|
|
|
using QSB.Messaging;
|
|
|
|
|
using QuantumUNET.Transport;
|
|
|
|
|
|
2021-04-26 13:30:21 +00:00
|
|
|
|
namespace QSB.Animation.Player.Events
|
2021-04-23 23:10:29 +00: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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|