quakeball/Assets/Scripts/Net/Packets/PlayerUpdatePckt.cs

31 lines
916 B
C#

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() { }
/// <summary>Creates a (fake) new packet. Only for testing! Real packets should be made with the parameterless constructor + Write()!</summary>
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) {
}
}
}