private static TreesArea GetArea(byte[] entrie) { var Area = new TreesArea(); Area.ReadAreaRawData(entrie); Area.GenerateAreaTreeIndex(); Area.GenerateAreaTrainerEncounters(); return(Area); }
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); }