2026-07-26 19:08:44 -04:00
|
|
|
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
|
|
|
|
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
|
|
|
|
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
|
|
|
|
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
|
|
|
|
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
|
|
|
|
// Magicbane Emulator Project © 2013 - 2026
|
|
|
|
|
// https://www.magicbane.com
|
2022-04-30 09:41:17 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
package engine.db.handlers;
|
|
|
|
|
|
|
|
|
|
import engine.gameManager.DbManager;
|
2024-04-05 07:59:44 -04:00
|
|
|
import engine.mbEnums;
|
|
|
|
|
import engine.mbEnums.GameObjectType;
|
2022-04-30 09:41:17 -04:00
|
|
|
import engine.objects.BaseClass;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class dbBaseClassHandler extends dbHandlerBase {
|
|
|
|
|
|
2023-05-23 10:27:03 -04:00
|
|
|
public dbBaseClassHandler() {
|
|
|
|
|
this.localClass = BaseClass.class;
|
2024-04-05 07:59:44 -04:00
|
|
|
this.localObjectType = mbEnums.GameObjectType.BaseClass;
|
2023-05-23 10:27:03 -04:00
|
|
|
}
|
2022-04-30 09:41:17 -04:00
|
|
|
|
2023-05-23 10:27:03 -04:00
|
|
|
public BaseClass GET_BASE_CLASS(final int id) {
|
2022-04-30 09:41:17 -04:00
|
|
|
|
2023-05-23 10:27:03 -04:00
|
|
|
if (id == 0)
|
|
|
|
|
return null;
|
2023-05-20 19:02:56 -04:00
|
|
|
|
2026-10-22 12:41:06 -04:00
|
|
|
return (BaseClass) DbManager.getFromCache(GameObjectType.BaseClass, id);
|
2023-05-23 10:27:03 -04:00
|
|
|
}
|
2022-04-30 09:41:17 -04:00
|
|
|
}
|