moved AnimTriggerMessage to messaging

This commit is contained in:
Mister_Nebula 2020-08-10 16:36:55 +01:00
parent 5c0debd2d4
commit c5efc60571
2 changed files with 3 additions and 5 deletions

View File

@ -20,6 +20,7 @@
new PlayerJoinEvent();
new PlayerLeaveEvent();
new PlayerDeathEvent();
new PlayerStatesRequestEvent();
Ready = true;
}

View File

@ -1,26 +1,23 @@
using QSB.Messaging;
using UnityEngine.Networking;
namespace QSB.Animation
namespace QSB.Messaging
{
public class AnimTriggerMessage : MessageBase
public class AnimTriggerMessage : PlayerMessage
{
public short TriggerId;
public uint SenderId;
public float Value;
public override void Deserialize(NetworkReader reader)
{
Value = reader.ReadSingle();
TriggerId = reader.ReadInt16();
SenderId = reader.ReadPackedUInt32();
}
public override void Serialize(NetworkWriter writer)
{
writer.Write(Value);
writer.Write(TriggerId);
writer.Write(SenderId);
}
}
}