BootySets generated with cache data loaded at bootstrap.

This commit is contained in:
2023-03-28 18:01:46 -04:00
parent 00d0048fd0
commit 8e236d0780
4 changed files with 83 additions and 0 deletions
+8
View File
@@ -1,15 +1,19 @@
package engine.gameManager;
import engine.objects.BootySetEntry;
import engine.objects.EquipmentSetEntry;
import java.util.ArrayList;
import java.util.HashMap;
public enum NPCManager {
NPC_MANAGER;
public static HashMap<Integer, ArrayList<EquipmentSetEntry>> _equipmentSetMap = new HashMap<>();
public static HashMap<Integer, ArrayList<Integer>> _runeSetMap = new HashMap<>();
public static HashMap<Integer, ArrayList<BootySetEntry>> _bootySetMap = new HashMap<>();
public static void LoadAllEquipmentSets() {
_equipmentSetMap = DbManager.ItemBaseQueries.LOAD_EQUIPMENT_FOR_NPC_AND_MOBS();
@@ -18,4 +22,8 @@ public enum NPCManager {
public static void LoadAllRuneSets() {
_runeSetMap = DbManager.ItemBaseQueries.LOAD_RUNES_FOR_NPC_AND_MOBS();
}
public static void LoadAllBootySets() {
_bootySetMap = DbManager.ItemBaseQueries.LOAD_BOOTY_FOR_MOBS();
}
}