First commit

This commit is contained in:
Shoghi Cervantes Pueyo
2012-10-19 02:21:54 +02:00
commit c2de8094b2
17 changed files with 1778 additions and 0 deletions

90
pstruct/RakNet.php Normal file
View File

@ -0,0 +1,90 @@
<?php
/*
-
/ \
/ \
/ POCKET \
/ MINECRAFT PHP \
|\ @shoghicp /|
|. \ / .|
| .. \ / .. |
| .. | .. |
| .. | .. |
\ | /
\ | /
\ | /
\ | /
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
*/
$pstruct = array(
0x02 => array(
"double",
"magic",
),
0x05 => array(
"magic",
"byte",
"special1",
),
0x06 => array(
"magic",
"double",
"byte",
"short",
),
0x07 => array(
"magic",
5,
"short",
"short",
"int",
"int",
),
0x08 => array(
"magic",
"int",
"int",
5,
"short",
"short",
"byte",
),
0x1c => array(
"double",
"double",
"magic",
"string",
),
0x1d => array(
"double",
"double",
"magic",
"string",
),
0x84 => array(
"byte",
9,
"int",
"int",
5,
3,
"byte",
),
);

37
pstruct/packetName.php Normal file
View File

@ -0,0 +1,37 @@
<?php
/*
-
/ \
/ \
/ POCKET \
/ MINECRAFT PHP \
|\ @shoghicp /|
|. \ / .|
| .. \ / .. |
| .. | .. |
| .. | .. |
\ | /
\ | /
\ | /
\ | /
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
*/
$packetName = array(
0x02 => "ID_UNCONNECTED_PING_OPEN_CONNECTIONS",
0x05 => "ID_OPEN_CONNECTION_REQUEST_1",
0x06 => "ID_OPEN_CONNECTION_REPLY_1",
0x07 => "ID_OPEN_CONNECTION_REQUEST_2",
0x08 => "ID_OPEN_CONNECTION_REPLY_2",
0x1c => "ID_UNCONNECTED_PONG",
0x1d => "ID_ADVERTISE_SYSTEM",
);