def read_from_buf(self, ba): #坐标x single object_pos_t x self.x = share.object_pos_t(); if( not self.x.read_from_buf(ba)): return False; #坐标y list object_pos_t y y_list_cnt__ = ba.read_uint32(); if(y_list_cnt__ == None): return False; self.y = []; for i in range(y_list_cnt__): self.y.append(share.object_pos_t()); if( not self.y[i].read_from_buf(ba)): return False; #坐标y array char ys self.ys = ba.read_buf(100); if(self.ys == None): return False; return True;
def read_from_buf(self, ba): #x位置 single object_pos_t pos self.pos = share.object_pos_t(); if( not self.pos.read_from_buf(ba)): return False; return True;