2011-12-04 17:38:08 -05:00
|
|
|
package org.moparscape.msc.gs.persistence;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
import org.moparscape.msc.gs.external.*;
|
|
|
|
import org.moparscape.msc.gs.model.InvItem;
|
|
|
|
import org.moparscape.msc.gs.model.Point;
|
|
|
|
import org.moparscape.msc.gs.model.Shop;
|
|
|
|
import org.moparscape.msc.gs.model.TelePoint;
|
|
|
|
import org.moparscape.msc.gs.npchandler.NpcHandlerDef;
|
|
|
|
import org.moparscape.msc.gs.phandler.PacketHandlerDef;
|
|
|
|
|
|
|
|
/**
|
2011-12-04 20:59:24 -05:00
|
|
|
* Any retrieval of unchanging data should be done through this interface. All
|
|
|
|
* implementations should be only accessable by the
|
|
|
|
* org.moparscape.msc.gs.persistence.impl package.<br>
|
2011-12-05 10:26:31 -05:00
|
|
|
* Implementations should also use JCIP annotations to specify their degree of
|
|
|
|
* thread saftey.
|
2011-12-04 17:38:08 -05:00
|
|
|
*
|
|
|
|
* @author Joe Pritzel
|
|
|
|
*
|
|
|
|
*/
|
2011-12-04 20:59:24 -05:00
|
|
|
public abstract interface DataStore {
|
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public PacketHandlerDef[] loadPacketHandlerDefs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void savePacketHandlerDefs(PacketHandlerDef[] defs) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public PacketHandlerDef[] loadLSPacketHandlerDefs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveLSPacketHandlerDefs(PacketHandlerDef[] defs)
|
|
|
|
throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public NpcHandlerDef[] loadNpcHandlers() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveNpcHandlers(NpcHandlerDef[] defs) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public Map<Point, TelePoint> loadTelePoints() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveTelePoints(Map<Point, TelePoint> points) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public List<Shop> loadShops() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveShops(List<Shop> shops) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public Map<Integer, CerterDef> loadCerterDefs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveCerterDefs(Map<Integer, CerterDef> certers)
|
|
|
|
throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public List<GameObjectLoc> loadGameObjectLocs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveGameObjectLocs(List<GameObjectLoc> locs) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public List<ItemLoc> loadItemLocs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveItemLocs(List<ItemLoc> locs) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public List<NPCLoc> loadNPCLocs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveNPCLocs(List<NPCLoc> locs) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public TileDef[] loadTileDefs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveTileDefs(TileDef[] defs) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public GameObjectDef[] loadGameObjectDefs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveGameObjectDefs(GameObjectDef[] defs) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public DoorDef[] loadDoorDefs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveDoorDefs(DoorDef[] defs) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public ItemDef[] loadItemDefs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveItemDefs(ItemDef[] defs) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public PrayerDef[] loadPrayerDefs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void savePrayerDefs(PrayerDef[] defs) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public SpellDef[] loadSpellDefs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveSpellDefs(SpellDef[] defs) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public NPCDef[] loadNPCDefs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveNPCDefs(NPCDef[] defs) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public ItemCraftingDef[] loadItemCraftingDefs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveItemCraftingDefs(ItemCraftingDef[] defs) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public ItemHerbSecond[] loadItemHerbSeconds() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveItemHerbSeconds(ItemHerbSecond[] seconds) throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public Map<Integer, ItemDartTipDef> loadItemDartTipDefs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveItemDartTipDefs(Map<Integer, ItemDartTipDef> defs)
|
|
|
|
throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public Map<Integer, ItemGemDef> loadGemDefs() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
2011-12-05 10:26:31 -05:00
|
|
|
public void saveGemDefs(Map<Integer, ItemGemDef> defs) throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, ItemLogCutDef> loadItemLogCutDefs() throws Exception;
|
|
|
|
|
|
|
|
public void saveItemLogCutDefs(Map<Integer, ItemLogCutDef> defs)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, ItemBowStringDef> loadItemBowStringDefs()
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
public void saveItemBowStringDefs(Map<Integer, ItemBowStringDef> defs)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, ItemArrowHeadDef> loadItemArrowHeadDefs()
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
public void saveItemArrowHeadDefs(Map<Integer, ItemArrowHeadDef> defs)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, FiremakingDef> loadFiremakingDefs() throws Exception;
|
|
|
|
|
|
|
|
public void saveFiremakingDefs(Map<Integer, FiremakingDef> defs)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, int[]> loadItemAffectedTypes() throws Exception;
|
|
|
|
|
|
|
|
public void saveItemAffectedTypes(Map<Integer, int[]> types) throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, ItemWieldableDef> loadItemWieldableDefs()
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
public void saveItemWieldableDefs(Map<Integer, ItemWieldableDef> defs) throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, ItemUnIdentHerbDef> loadItemUnIdentHerbDefs()
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
public void saveItemUnIdentHerbDefs(Map<Integer, ItemUnIdentHerbDef> defs) throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, ItemHerbDef> loadItemHerbDefs() throws Exception;
|
|
|
|
|
|
|
|
public void saveItemHerbDefs(Map<Integer, ItemHerbDef> defs) throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, Integer> loadItemEdibleHeals() throws Exception;
|
|
|
|
|
|
|
|
public void saveItemEdibleHeals(Map<Integer, Integer> defs) throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, ItemCookingDef> loadItemCookingDefs() throws Exception;
|
|
|
|
|
|
|
|
public void saveItemCookingDefs(Map<Integer, ItemCookingDef> defs) throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, ItemSmeltingDef> loadItemSmeltingDefs()
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
public void saveItemSmeltingDefs(Map<Integer, ItemSmeltingDef> defs) throws Exception;
|
|
|
|
|
|
|
|
public ItemSmithingDef[] loadItemSmithingDefs() throws Exception;
|
|
|
|
|
|
|
|
public void saveItemSmithingDefs(ItemSmithingDef[] defs) throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, ObjectMiningDef> loadObjectMiningDefs()
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
public void saveObjectMiningDefs(Map<Integer, ObjectMiningDef> defs) throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, ObjectWoodcuttingDef> loadObjectWoodcuttingDefs()
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
public void saveObjectWoodcuttingDefs(Map<Integer, ObjectWoodcuttingDef> defs) throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, ObjectFishingDef[]> loadObjectFishDefs()
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
public void saveObjectFishingDefs(Map<Integer, ObjectFishingDef> defs) throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, Integer> loadSpellAgressiveLevel() throws Exception;
|
|
|
|
|
|
|
|
public void saveSpellAgressiveLevel(Map<Integer, Integer> defs) throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, AgilityDef> loadAgilityDefs() throws Exception;
|
|
|
|
|
|
|
|
public void saveAgilityDefs(Map<Integer, AgilityDef> defs) throws Exception;
|
|
|
|
|
|
|
|
public Map<Integer, AgilityCourseDef> loadAgilityCourseDefs()
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
public void saveAgilityCourseDef(Map<Integer, AgilityCourseDef> defs) throws Exception;
|
|
|
|
|
|
|
|
public List<InvItem>[] loadKeyChestLoots() throws Exception;
|
|
|
|
|
|
|
|
public void saveKeyChestLoots(List<InvItem>[] loots) throws Exception;
|
|
|
|
|
2011-12-05 17:13:21 -05:00
|
|
|
public Map<Integer, ItemDartTipDef> loadDartTips() throws Exception;
|
2011-12-04 17:38:08 -05:00
|
|
|
|
|
|
|
public void dispose();
|
|
|
|
|
|
|
|
}
|