示例#1
0
        /// <summary>
        /// Gets all entries of a specific type.
        /// </summary>
        /// <param name="Type">The Type of the entry.</param>
        /// <returns>The entry data, paired with its instance id.</returns>
        public List <KeyValuePair <uint, byte[]> > GetItemsByType(DBPFTypeID Type)
        {
            var result = new List <KeyValuePair <uint, byte[]> >();

            var entries = m_EntriesByType[Type];

            for (int i = 0; i < entries.Count; i++)
            {
                result.Add(new KeyValuePair <uint, byte[]>(entries[i].InstanceID, GetEntry(entries[i])));
            }
            return(result);
        }
示例#2
0
        /// <summary>
        /// Gets all entries of a specific type.
        /// </summary>
        /// <param name="Type">The Type of the entry.</param>
        /// <returns>The entry data, paired with its instance id.</returns>
        public List<KeyValuePair<uint, byte[]>> GetItemsByType(DBPFTypeID Type)
        {
            var result = new List<KeyValuePair<uint, byte[]>>();

            var entries = m_EntriesByType[Type];
            for (int i = 0; i < entries.Count; i++)
            {
                result.Add(new KeyValuePair<uint, byte[]>(entries[i].InstanceID, GetEntry(entries[i])));
            }
            return result;
        }