mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 06:35:45 +00:00
moved AnimTriggerMessage to messaging
This commit is contained in:
parent
5c0debd2d4
commit
c5efc60571
@ -20,6 +20,7 @@
|
||||
new PlayerJoinEvent();
|
||||
new PlayerLeaveEvent();
|
||||
new PlayerDeathEvent();
|
||||
new PlayerStatesRequestEvent();
|
||||
|
||||
Ready = true;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user