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

26 lines
602 B
C#
Raw Normal View History

2020-08-13 21:46:16 +02:00
using QSB.Messaging;
using UnityEngine.Networking;
2020-08-13 21:46:16 +02:00
namespace QSB.Animation
{
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-08-10 18:17:54 +02:00
base.Deserialize(reader);
2020-07-28 01:14:32 +02:00
Value = reader.ReadSingle();
TriggerId = reader.ReadInt16();
}
public override void Serialize(NetworkWriter writer)
{
2020-08-10 18:17:54 +02:00
base.Serialize(writer);
2020-07-28 01:14:32 +02:00
writer.Write(Value);
writer.Write(TriggerId);
}
}
}