Public Repository for the Magicbane Shadowbane Emulator
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
|
|
|
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
|
|
|
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
|
|
|
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
|
|
|
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
|
|
|
// Magicbane Emulator Project © 2013 - 2022
|
|
|
|
// www.magicbane.com
|
|
|
|
|
|
|
|
|
|
|
|
package engine.db.handlers;
|
|
|
|
|
|
|
|
import engine.objects.BuildingLocation;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
public class dbBuildingLocationHandler extends dbHandlerBase {
|
|
|
|
|
|
|
|
public dbBuildingLocationHandler() {
|
|
|
|
this.localClass = BuildingLocation.class;
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|