using UnityEngine; using NeonTea.Quakeball.TeaNet.Packets; namespace NeonTea.Quakeball.Net.Packets { public class PlayerUpdatePckt : Packet { public Vector3 MoveDirection; public byte MoveStyle; public bool Jumping; public float Pitch; public float Yaw; public PlayerUpdatePckt() { } /// Creates a (fake) new packet. Only for testing! Real packets should be made with the parameterless constructor + Write()! public PlayerUpdatePckt(Vector3 moveDirection, byte moveStyle, bool jumping, float pitch, float yaw) { MoveDirection = moveDirection; MoveStyle = moveStyle; Jumping = jumping; Pitch = pitch; Yaw = yaw; } public override void Read(ByteBuffer buffer) { } public override void Write(ByteBuffer buffer) { } } }