public void RefeashArtifact(GNET.Artifact _info) { if (m_ArtifactMap.ContainsKey(_info.artifacttype)) { m_ArtifactMap[_info.artifacttype].InitArtifactData(_info); } }
public void Copy(GNET.Artifact _db) { m_ArtifactTableID = _db.artifactid; m_IntoRecord[0] = _db.heronum1; m_IntoRecord[1] = _db.heronum2; m_IntoRecord[2] = _db.heronum3; m_IntoRecord[3] = _db.heronum4; m_IntoRecord[4] = _db.heronum5; }
public void InitArtifactData(GNET.Artifact pInit) { m_nArtifactType = pInit.artifacttype; m_pArtifactData.Copy(pInit); m_pRowData = (ArtifactTemplate)DataTemplate.GetInstance().m_ArtifactTable.getTableData(pInit.artifactid); UpdateActivateState(); }
public void InitArtifactMap(int nType, GNET.Artifact _info) { if (_info == null) { LogManager.LogError("!!!!!Error:InitArtifactMap is null ,The ArtifactType:" + nType); LogManager.LogToFile("!!!!!Error:InitArtifactMap is null ,The ArtifactType:" + nType); return; } Artifact _data = new Artifact(); _data.InitArtifactData(_info); m_ArtifactMap.Add(nType, _data); }
public override OctetsStream unmarshal(OctetsStream _os_) { roleid = _os_.unmarshal_long(); name = _os_.unmarshal_String(); isgm = _os_.unmarshal_byte(); level = _os_.unmarshal_short(); exp = _os_.unmarshal_int(); viplv = _os_.unmarshal_byte(); vipexp = _os_.unmarshal_int(); ti = _os_.unmarshal_short(); titime = _os_.unmarshal_int(); money = _os_.unmarshal_long(); yuanbao = _os_.unmarshal_int(); battlenum = _os_.unmarshal_int(); servertime = _os_.unmarshal_long(); timezone = _os_.unmarshal_byte(); for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_) { Hero _v_ = new Hero(); _v_.unmarshal(_os_); heroes.AddFirst(_v_); } for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_) { Troop _v_ = new Troop(); _v_.unmarshal(_os_); troops.AddFirst(_v_); } for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_) { int key; key = _os_.unmarshal_int(); Bag _v_ = new Bag(); _v_.unmarshal(_os_); baginfo.Add(key, _v_); } hammer = _os_.unmarshal_int(); freegoldtime = _os_.unmarshal_int(); freeybtime = _os_.unmarshal_int(); goldbuynum = _os_.unmarshal_int(); tibuynum = _os_.unmarshal_int(); signnum7 = _os_.unmarshal_int(); signnum28 = _os_.unmarshal_int(); mailsize = _os_.unmarshal_byte(); buybagnum = _os_.unmarshal_short(); buyherobagnum = _os_.unmarshal_short(); smid = _os_.unmarshal_int(); smtime = _os_.unmarshal_int(); smzhangjie = _os_.unmarshal_int(); shenglingzq = _os_.unmarshal_int(); ronglian = _os_.unmarshal_int(); huangjinxz = _os_.unmarshal_int(); baijinxz = _os_.unmarshal_int(); qingtongxz = _os_.unmarshal_int(); chitiexz = _os_.unmarshal_int(); jyjiejing = _os_.unmarshal_int(); troopnum = _os_.unmarshal_byte(); for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_) { int _v_ = _os_.unmarshal_int(); heroskins.AddFirst(_v_); } //神器 for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_) { int key; key = _os_.unmarshal_int(); Artifact _v_ = new Artifact(); _v_.unmarshal(_os_); artifacts.Add(key, _v_); } //商城 for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_) { int key; key = _os_.unmarshal_int(); Shopbuy _v_ = new Shopbuy(); _v_.unmarshal(_os_); shopbuys.Add(key, _v_); } sweepnum = _os_.unmarshal_int(); sweepbuynum = _os_.unmarshal_int(); mszqgetnum = _os_.unmarshal_int(); qiyuannum = _os_.unmarshal_int(); qiyuanallnum = _os_.unmarshal_int(); isqiyuantoday = _os_.unmarshal_int(); txti = _os_.unmarshal_short(); txtitime = _os_.unmarshal_int(); for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_) { int _v_ = _os_.unmarshal_int(); newyindao.AddLast(_v_); } //神秘商店 for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_) { int key; key = _os_.unmarshal_int(); Smshopdata _v_ = new Smshopdata(); _v_.unmarshal(_os_); smshop.Add(key, _v_); } return(_os_); }
public SRefreshArtifact() : base(PROTOCOL_TYPE) { artifactinfo = new Artifact(); }