diff --git a/QSB/Events/EventList.cs b/QSB/Events/EventList.cs index f312b77b..426d1ff3 100644 --- a/QSB/Events/EventList.cs +++ b/QSB/Events/EventList.cs @@ -20,6 +20,7 @@ new PlayerJoinEvent(); new PlayerLeaveEvent(); new PlayerDeathEvent(); + new PlayerStatesRequestEvent(); Ready = true; } diff --git a/QSB/Animation/AnimTriggerMessage.cs b/QSB/Messaging/AnimTriggerMessage.cs similarity index 70% rename from QSB/Animation/AnimTriggerMessage.cs rename to QSB/Messaging/AnimTriggerMessage.cs index 501ff749..e9cabfdf 100644 --- a/QSB/Animation/AnimTriggerMessage.cs +++ b/QSB/Messaging/AnimTriggerMessage.cs @@ -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); } } }