Begin refactor location collections.

This commit is contained in:
2023-04-24 15:37:30 -04:00
parent d729fbb287
commit 7c079c3998
4 changed files with 48 additions and 0 deletions
@@ -20,8 +20,17 @@ public class dbBuildingLocationHandler extends dbHandlerBase {
this.localObjectType = engine.Enum.GameObjectType.valueOf(this.localClass.getSimpleName());
}
public ArrayList<BuildingLocation> LOAD_BUILDING_LOCATIONS() {
prepareCallable("select * from static_building_location " +
"where type = 6 or type = 8 " +
"GROUP BY buildingID, slot " +
"ORDER BY buildingID, slot ASC;");
return getObjectList();
}
public ArrayList<BuildingLocation> LOAD_ALL_BUILDING_LOCATIONS() {
prepareCallable("SELECT * FROM `static_building_location`;");
return getObjectList();
}
}