コード例 #1
0
ファイル: user_manager.py プロジェクト: TTXDM/firstGame
 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
ファイル: user_manager.py プロジェクト: TTXDM/firstGame
 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
ファイル: user_manager.py プロジェクト: TTXDM/firstGame
 def lobby(self):
     res=Buffer()
     res.write_ushort(1030)
     res.write_short(1)
     res.write_short(1)
     self.ro.sendData(res.getValue())