示例#1
0
 def joinroom(self,roomid=-1, tableid=3):
     res=Buffer()
     res.write_ushort(1032)
     res.write_short(roomid)
     res.write_byte(tableid)
     res.write_string('')
     self.ro.sendData(res.getValue())
示例#2
0
文件: admin.py 项目: TTXDM/firstGame
def GM_register(u):
    res=Buffer()
    res.write_ushort(1024)
    res.write_string(u.id)
    res.write_string(u.pwd)
    res.write_string(u.nick)
    res.write_string(u.mail)
    res.write_short(u.sex)
    res.write_short(u.avata)
    print 'GM_register_request:'
    gm.ro.sendData(res.getValue())
示例#3
0
 def register(self):
     res=Buffer()
     res.write_ushort(1024)
     res.write_string(self.id)
     res.write_string(self.pwd)
     res.write_string(self.nick)
     res.write_string(self.mail)
     res.write_short(self.sex)
     res.write_short(self.avata)
     print 'register_request:', self.id, self.pwd
     self.ro.sendData(res.getValue())
示例#4
0
文件: admin.py 项目: TTXDM/firstGame
def GM_list_rooms():
    res=Buffer()
    res.write_ushort(1030)
    res.write_short(1)
    res.write_short(1)
    gm.ro.sendData(res.getValue())
示例#5
0
 def lobby(self):
     res=Buffer()
     res.write_ushort(1030)
     res.write_short(1)
     res.write_short(1)
     self.ro.sendData(res.getValue())