Beispiel #1
0
        public ResMiShuInfo[] GetResList(int TabIndex)
        {
            List <ResMiShuInfo> list = new List <ResMiShuInfo>();

            Dictionary <long, object> .Enumerator enumerator = GameDataMgr.miShuLib.GetEnumerator();
            while (enumerator.MoveNext())
            {
                KeyValuePair <long, object> current = enumerator.Current;
                ResMiShuInfo item = (ResMiShuInfo)current.Value;
                if (item.bType == TabIndex)
                {
                    list.Add(item);
                }
            }
            return(list.ToArray());
        }
Beispiel #2
0
        public ResMiShuInfo[] GetResList(int TabIndex)
        {
            List <ResMiShuInfo> list = new List <ResMiShuInfo>();

            GameDataMgr.miShuLib.Reload();
            Dictionary <long, object> .Enumerator enumerator = GameDataMgr.miShuLib.GetEnumerator();
            while (enumerator.MoveNext())
            {
                KeyValuePair <long, object> current = enumerator.get_Current();
                ResMiShuInfo resMiShuInfo           = (ResMiShuInfo)current.get_Value();
                if ((int)resMiShuInfo.bType == TabIndex)
                {
                    list.Add(resMiShuInfo);
                }
            }
            return(list.ToArray());
        }