quantum-space-buddies/QSB/Messaging/AnimTriggerMessage.cs

24 lines
528 B
C#
Raw Normal View History

using QSB.Messaging;
using UnityEngine.Networking;
2020-08-10 16:36:55 +01:00
namespace QSB.Messaging
{
2020-08-10 16:36:55 +01:00
public class AnimTriggerMessage : PlayerMessage
{
public short TriggerId;
2020-07-28 01:14:32 +02:00
public float Value;
public override void Deserialize(NetworkReader reader)
{
2020-07-28 01:14:32 +02:00
Value = reader.ReadSingle();
TriggerId = reader.ReadInt16();
}
public override void Serialize(NetworkWriter writer)
{
2020-07-28 01:14:32 +02:00
writer.Write(Value);
writer.Write(TriggerId);
}
}
}