mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
Packet refactoring.
This commit is contained in:
parent
96641865bc
commit
0ec9c5576c
22 changed files with 115 additions and 109 deletions
|
@ -28,7 +28,7 @@ namespace Meteor.Map.packets.receive
|
|||
{
|
||||
bool invalidPacket = false;
|
||||
|
||||
public ulong time;
|
||||
public ulong timestamp;
|
||||
public float x, y, z, rot;
|
||||
public ushort moveState; //0: Standing, 1: Walking, 2: Running
|
||||
|
||||
|
@ -39,7 +39,7 @@ namespace Meteor.Map.packets.receive
|
|||
using (BinaryReader binReader = new BinaryReader(mem))
|
||||
{
|
||||
try{
|
||||
time = binReader.ReadUInt64();
|
||||
timestamp = binReader.ReadUInt64();
|
||||
x = binReader.ReadSingle();
|
||||
y = binReader.ReadSingle();
|
||||
z = binReader.ReadSingle();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue