public int m_HeroViewId; // 英雄外观 public void Copy(GNET.OtherHero _data) { this.m_HeroId = _data.heroid; this.m_Exp = _data.exp; this.m_HeroLevel = _data.herolevel; this.m_Hp = _data.hp; this.m_PysicalAttack = _data.physicalattack; this.m_Physicaldefence = _data.physicaldefence; this.m_MagicAttack = _data.magicattack; this.m_MagicDefence = _data.magicdefence; this.m_Skill1 = _data.skill1; this.m_Skill2 = _data.skill2; this.m_Skill3 = _data.skill3; this.m_HeroViewId = _data.heroviewid; }
public override OctetsStream unmarshal(OctetsStream _os_) { roleid = _os_.unmarshal_long(); rolename = _os_.unmarshal_String(); level = _os_.unmarshal_int(); groupnum = _os_.unmarshal_int(); trooptype = _os_.unmarshal_int(); alldropnum = _os_.unmarshal_int(); for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_) { int key; key = _os_.unmarshal_int(); OtherHero _v_ = new OtherHero(); _v_.unmarshal(_os_); heroattribute.Add(key, _v_); } onranknum = _os_.unmarshal_int(); return(_os_); }