level = 1; // $this->quality = 1; // } // /** // * 设置 // * @param string $heroID // * @param int $instanceID // * @param int $level // * @param int $quality // */ // public function reInit($heroID, $instanceID, $level = 1, $quality = 1) // { // $this->heroId = $heroID; // $this->uid = $instanceID; // $this->level = $level; // $this->quality = $quality; // $this->skills = new HeroSkillModel; // } // /** // * 从一个对象中序列化 // * @param type $value // */ // function initialize($value) // { // CommUtil::loadObject($value, $this); // $skills = new HeroSkillModel; // CommUtil::loadObject($value->skills, $skills); // $this->skills = $skills; // } }