Пример #1
0
        private static TreesArea GetArea(byte[] entrie)
        {
            var Area = new TreesArea();

            Area.ReadAreaRawData(entrie);
            Area.GenerateAreaTreeIndex();
            Area.GenerateAreaTrainerEncounters();
            return(Area);
        }
Пример #2
0
        internal static TreesArea[] GetArray(byte[][] entries)
        {
            if (entries == null)
            {
                return(null);
            }
            TrainerModerateTreeIndex = GenerateTrainersTreeIndex();
            var Areas = new TreesArea[entries.Length];

            for (int i = 0; i < entries.Length; i++)
            {
                Areas[i] = GetArea(entries[i]);
            }
            return(Areas);
        }