mirror of
https://github.com/Relintai/mourne_rcpp_fw.git
synced 2025-01-13 07:41:12 +01:00
Initialize assignments.
This commit is contained in:
parent
4367a167e5
commit
485abda9f6
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include "buildings/building_initializer.h"
|
#include "buildings/building_initializer.h"
|
||||||
#include "village/village_initializer.h"
|
#include "village/village_initializer.h"
|
||||||
|
#include "assignments/assignment_initializer.h"
|
||||||
|
|
||||||
bool MourneApplication::is_logged_in(Request *request) {
|
bool MourneApplication::is_logged_in(Request *request) {
|
||||||
if (!request->session) {
|
if (!request->session) {
|
||||||
@ -300,6 +301,7 @@ MourneApplication::MourneApplication() :
|
|||||||
|
|
||||||
BuildingInitializer::allocate_all();
|
BuildingInitializer::allocate_all();
|
||||||
VillageInitializer::allocate_all();
|
VillageInitializer::allocate_all();
|
||||||
|
AssignmentInitializer::allocate_all();
|
||||||
|
|
||||||
_admin_panel = new AdminPanel();
|
_admin_panel = new AdminPanel();
|
||||||
_admin_panel->register_admin_controller("buildings", BuildingController::get_singleton());
|
_admin_panel->register_admin_controller("buildings", BuildingController::get_singleton());
|
||||||
@ -325,6 +327,7 @@ MourneApplication::~MourneApplication() {
|
|||||||
|
|
||||||
VillageInitializer::free_all();
|
VillageInitializer::free_all();
|
||||||
BuildingInitializer::free_all();
|
BuildingInitializer::free_all();
|
||||||
|
AssignmentInitializer::free_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
String MourneApplication::menu_head = "";
|
String MourneApplication::menu_head = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user