/// <summary> /// 加载数据 /// </summary> public override void LoadData(UnitAOIInfo info) { base.LoadData(info); PlayerAOIInfo data = (PlayerAOIInfo)info; m_char_name = data.char_name; m_char_type = data.char_type; m_pos.x = data.pos_x; m_pos.y = data.pos_y; m_flags = data.flags; m_model_idx = data.model_idx; m_job = data.job; m_level = data.level; m_exp = data.exp; m_energy = data.energy; m_gold = data.gold; m_coin = data.coin; m_hp = data.hp; m_hp_max = data.hp_max; m_hurt = data.hurt; m_range = data.range; m_run_speed = data.run_speed; m_vip_grade = data.vip_grade; m_vip_flags = data.vip_flags; }
public override void Read(ByteArray by) { base.Read(by); unit_idx.Read(by); pos.Read(by); dir = (eDirection)by.ReadByte(); flags = by.ReadUInt(); unit_info = unit.GetUnitInfo(unit_idx.type); if (unit_info != null) { unit_info.Read(by); } }
/// <summary> /// 拷贝数据到unitinfo /// </summary> /// <param name="info"></param> public virtual void CopyUnitInfo(UnitAOIInfo info) { }
/// <summary> /// 加载数据 /// </summary> public virtual void LoadData(UnitAOIInfo info) { }