Clears all lists of game data.
()
| 590 | * Clears all lists of game data. |
| 591 | */ |
| 592 | public static void emptyLists() |
| 593 | { |
| 594 | // These lists do not need cleared; they are tied to game mode |
| 595 | // alignmentList |
| 596 | // checkList |
| 597 | // gameModeList |
| 598 | // campaignList |
| 599 | // statList |
| 600 | // All other lists should be cleared!!! |
| 601 | ////////////////////////////////////// |
| 602 | // DO NOT CLEAR THESE HERE!!! |
| 603 | // They only get loaded once. |
| 604 | // |
| 605 | //birthplaceList.clear(); |
| 606 | //cityList.clear(); |
| 607 | //hairStyleList.clear(); |
| 608 | //helpContextFileList.clear(); |
| 609 | //interestsList.clear(); |
| 610 | //locationList.clear(); |
| 611 | //paperInfo.clear(); |
| 612 | //phobiaList.clear(); |
| 613 | //phraseList.clear(); |
| 614 | //schoolsList.clear(); |
| 615 | //sizeAdjustmentList.clear(); |
| 616 | //specialsList.clear(); |
| 617 | //speechList.clear(); |
| 618 | //traitList.clear(); |
| 619 | //unitSet.clear(); |
| 620 | ////////////////////////////////////// |
| 621 | |
| 622 | // Clear Maps (not strictly necessary, but done for consistency) |
| 623 | VisionType.clearConstants(); |
| 624 | FactKey.clearConstants(); |
| 625 | FactSetKey.clearConstants(); |
| 626 | |
| 627 | // Perform other special cleanup |
| 628 | Equipment.clearEquipmentTypes(); |
| 629 | SettingsHandler.getGameAsProperty().get().clearLoadContext(); |
| 630 | |
| 631 | RaceType.clearConstants(); |
| 632 | CNAbilityFactory.reset(); |
| 633 | MovementType.clearConstants(); |
| 634 | } |
| 635 | |
| 636 | /** |
| 637 | * Execute post export commands for standard files |