private static void LoadLists() { m_Monster = new ArrayList(); m_Animal = new ArrayList(); m_Sea = new ArrayList(); m_Human = new ArrayList(); List <BodyEntry> entries = Docs.LoadBodies(); for (int i = 0; i < entries.Count; ++i) { BodyEntry oldEntry = (BodyEntry)entries[i]; int bodyID = oldEntry.Body.BodyID; if (((Body)bodyID).IsEmpty) { continue; } ArrayList list = null; switch (oldEntry.BodyType) { case ModelBodyType.Monsters: list = m_Monster; break; case ModelBodyType.Animals: list = m_Animal; break; case ModelBodyType.Sea: list = m_Sea; break; case ModelBodyType.Human: list = m_Human; break; } if (list == null) { continue; } int itemID = ShrinkTable.Lookup(bodyID, -1); if (itemID != -1) { list.Add(new InternalEntry(bodyID, itemID, oldEntry.Name)); } } m_Monster.Sort(); m_Animal.Sort(); m_Sea.Sort(); m_Human.Sort(); }
private static void LoadLists() { m_Monster = new List <InternalEntry>(); m_Animal = new List <InternalEntry>(); m_Sea = new List <InternalEntry>(); m_Human = new List <InternalEntry>(); var entries = Docs.LoadBodies(); for (var i = 0; i < entries.Count; ++i) { var oldEntry = entries[i]; var bodyID = oldEntry.Body.BodyID; if (((Body)bodyID).IsEmpty) { continue; } List <InternalEntry> list; switch (oldEntry.BodyType) { default: continue; case ModelBodyType.Monsters: list = m_Monster; break; case ModelBodyType.Animals: list = m_Animal; break; case ModelBodyType.Sea: list = m_Sea; break; case ModelBodyType.Human: list = m_Human; break; } var itemID = ShrinkTable.Lookup(bodyID, -1); if (itemID != -1) { list.Add(new InternalEntry(bodyID, itemID, oldEntry.Name)); } } m_Monster.Sort(); m_Animal.Sort(); m_Sea.Sort(); m_Human.Sort(); }