Example #1
0
 def _on_connection_success(self):
     print('Connected!')
     proto = game_pb2.EnterRoomRequest()
     proto.room_id = 12361
     proto.player = self.uuid
     proto.info = '1'
     self.send(proto, ENTER_ROOM)
Example #2
0
def enter_room(string, session):
    # print 'enter_room'
    proto = game_pb2.EnterRoomRequest()
    proto.ParseFromString(string)
    TableMgr().enter(proto.room_id, proto.player, proto.info, session)