quantum-space-buddies/QSB/Animation/NPC/Events/NpcAnimationMessage.cs
Mister_Nebula 200e344064 cleanup
2021-04-29 21:00:02 +01:00

26 lines
616 B
C#

using QSB.Messaging;
using QuantumUNET.Transport;
namespace QSB.Animation.NPC.Events
{
internal class NpcAnimationMessage : PlayerMessage
{
public AnimationEvent AnimationEvent { get; set; }
public int AnimControllerIndex { get; set; }
public override void Deserialize(QNetworkReader reader)
{
base.Deserialize(reader);
AnimationEvent = (AnimationEvent)reader.ReadInt32();
AnimControllerIndex = reader.ReadInt32();
}
public override void Serialize(QNetworkWriter writer)
{
base.Serialize(writer);
writer.Write((int)AnimationEvent);
writer.Write(AnimControllerIndex);
}
}
}