public PetData(scene_entourage _data) { serverInstanceID = (int)_data.eid; type = (int)_data.type; camp = (int)_data.camp; baseValueDic[ActorBaseTag.Level] = _data.level; startPosX = _data.x; startPosY = _data.y; startPosZ = _data.z; dir = (int)_data.dir; ownerInstanceID = (int)_data.owner; propertyValueDic[ActorPropertyTag.HPLIMIT] = (int)_data.max_hp; propertyValueDic[ActorPropertyTag.MPLIMIT] = (int)_data.max_mp; baseValueDic[ActorBaseTag.CurHP] = _data.hp; baseValueDic[ActorBaseTag.CurMP] = _data.mp; grow_up = _data.pet_grow_up; aptitude = _data.pet_aptitude_lev; ownerName = _data.owner_name; pet_name = _data.pet_name; }
public void Update(scene_entourage _data) { //Debug.Log("*************************scene_entourage " + _data.pet_grow_up + " , type : " + _data.type + " , peteidid : " + _data.eid); //serverData = new PetData(_data); serverData.serverInstanceID = (int)_data.eid; serverData.type = (int)_data.type; serverData.camp = (int)_data.camp; serverData.baseValueDic[ActorBaseTag.Level] = _data.level; serverData.startPosX = _data.x; serverData.startPosY = _data.y; serverData.startPosZ = _data.z; serverData.dir = (int)_data.dir; serverData.ownerInstanceID = (int)_data.owner; serverData.propertyValueDic[ActorPropertyTag.HPLIMIT] = (int)_data.max_hp; serverData.propertyValueDic[ActorPropertyTag.MPLIMIT] = (int)_data.max_mp; serverData.baseValueDic[ActorBaseTag.CurHP] = _data.hp; serverData.baseValueDic[ActorBaseTag.CurMP] = _data.mp; serverData.grow_up = _data.pet_grow_up; serverData.ownerName = _data.owner_name; Aptitude = _data.pet_aptitude_lev; PetName = _data.pet_name; SetTitle(); }
public MercenaryInfo(scene_entourage _data, bool _isInFight) { //Debug.Log("*************************scene_entourage " + _data.pet_grow_up + " , type : " + _data.type + " , peteidid : " + _data.eid + " , aptitude : " + _data.pet_aptitude_lev); serverData = new PetData(_data); SetTitle(); }