-
Notifications
You must be signed in to change notification settings - Fork 0
Protocol
curufinwe edited this page Sep 13, 2010
·
3 revisions
jedes object hat:
short ID
byte[3] color
float[2] pos
float[2] vel //world coordinates per ms
short gfxID;
byte status;
Messages:
Server => client
update // 0x23
{
ID
vel
pos
gfxID
color
}
updatePos //0x24
{
ID
vel
pos
}
updateGfx //0x25
{
ID
gfxID
color
}
delete //0x26
{
short ID
}
loginAck //0x27
{
byte status
} //later = 0 jow = 1
status //0x28
{
byte statStrings
{short length
char* data}[statSrings]
}
Message //0x29
{
short length
char *data
}
GTFO //0x2A
{}
Client => server
prayerLogin //0x42
{
name[16]
serverpw[16]
userpw[16]
}
keyStatus //0x43
{
byte key
byte status
}
KEYS:
KEY_UP : 0x0
KEY_DOWN : 0x1
KEY_LEFT : 0x2
KEY_RIGTH : 0x3
KEY_SPACE : 0x4
KEY_ENTER : 0x5
KEY_LSHIFT : 0x6
KEY_RSHIFT : 0x7
KEY_ALT : 0x8
KEY_STRG : 0x9
KEY_TAB : 0xA
KEY_ESC : 0xB
ascii(a-z) : "alpha"
0x30 - 0x39 : "nummerics"
mouseStatus //0x44
{
float posx
float posy
float velx
float vely
}
//HEADERs
update // 0x23
updatePos //0x24
updateGfx //0x25
delete //0x26
loginAck //0x27
statusAck //0x28
Message //0x29
GTFO //0x2A
prayerLogin //0x42
keyStatus //0x43
mouseStatus //0x44
packet
{
MAGIC = 0x21
HEADER
CONTENT
}