コード例 #1
0
        /// <summary>
        /// Adds the passed biome to <see cref="_biomeDetails"/> if it is
        /// not in there already. Returns the associated
        /// <see cref="DetailSubList" />.
        /// </summary>
        private DetailSubList AddSubListIfNeeded(BiomeData biome)
        {
            var subList = GetDetailListsFor(biome);

            if (subList.Equals(default(DetailSubList)))
            {
                subList = new DetailSubList(_config, biome.Details);
                _biomeDetails.Add(new KeyValuePair <BiomeData, DetailSubList>(biome, subList));
            }

            return(subList);
        }
コード例 #2
0
 public bool Equals(DetailSubList other)
 {
     return(Equals(MaterialsList, other.MaterialsList) && Equals(ObjectsList, other.ObjectsList));
 }