Esempio n. 1
0
 public static byte[] MakeEntityMove(UInt32 id, Coordinate coords)
 {
     return(BuildPacket(0x59, Connections.GenericDispatcher.one, BitConverter.GetBytes(id),
                        BitConverter.GetBytes(coords.X), Connections.GenericDispatcher.zero, Connections.GenericDispatcher.zero,
                        BitConverter.GetBytes(coords.Y), Connections.GenericDispatcher.zero, Connections.GenericDispatcher.zero));
 }
Esempio n. 2
0
 public static byte[] Relocate(Coordinate coords)
 {
     return(BuildPacket(0x5f, BitConverter.GetBytes((UInt16)coords.X), BitConverter.GetBytes((UInt16)coords.Y)));
 }