Commit Graph

32 Commits

Author SHA1 Message Date
3042f4e37b Simplified admin_render_building_list with the new helper methods. 2021-11-16 17:14:35 +01:00
fc4f384170 Handle the "new" segment. Started work on admin_render_building. 2021-11-16 17:01:32 +01:00
376bcc93b5 Added ids to the BuildingModel::add_default_data's queries. 2021-11-14 23:09:16 +01:00
88961d7005 Now the admin and gm menuentries will show up when logged in with an account which has the necessary privileges. 2021-11-14 22:55:25 +01:00
ec4ac1b3bc Created a new UserModel, that creates the test admin account with the proper userlevel. 2021-11-14 22:54:29 +01:00
be495e2031 Updated the engine to the latest. 2021-11-14 22:25:53 +01:00
5037e01417 Set up a back link to the main admin panel. 2021-11-14 22:18:20 +01:00
aa1822e20e Set up css links for the admin panel. Also updated the engine. 2021-11-14 22:12:32 +01:00
1fb2680c6f Ported the old admin building list. 2021-11-14 21:45:25 +01:00
629ab517aa BuildingController is now inherited from AdminController, and set up the admin panel module. 2021-11-14 21:37:04 +01:00
a9080e05c3 Implemented basic building queries to Building Model. 2021-11-14 21:05:52 +01:00
6e853e86b9 Now my test data is inserted in BuildingModel::add_default_data(). Also updated the engine. 2021-11-14 19:25:37 +01:00
28d88335e6 Added an another setter to Building, and fixed a parameter's type. 2021-11-14 19:24:42 +01:00
37532f6275 Also drop the village reosurces table in VillageModel::drop_table(). 2021-11-14 19:24:07 +01:00
e3c95dce3f Added parameters for the Building class. 2021-11-14 18:38:56 +01:00
5eed408012 Ported the buildings table. 2021-11-14 18:27:49 +01:00
c47a55892f Ported the resources table to the village model. 2021-11-14 16:53:05 +01:00
946b0b5acc Added base classes for buildings. 2021-11-14 14:19:13 +01:00
165d0d5d70 Initialize villages, and also call the relevant methods during migration. 2021-11-14 13:59:02 +01:00
be2a4a93f9 Ported villages, village_buildings, village_technologies, and the village_units table. Also updated the engine. 2021-11-14 13:58:26 +01:00
e49b8613e6 Added VillageInitializer helper. 2021-11-14 13:56:56 +01:00
731f45f63d Village management skeleton classes. 2021-11-14 11:45:34 +01:00
12cd5a9b72 Fix RCPP_OBJECT declaration. 2021-10-31 14:33:22 +01:00
8472e10d23 Redirect to / on login success. 2021-10-31 10:28:19 +01:00
c19a796782 Add call the RCPP_OBJECT macro for the user controller. 2021-10-31 10:19:41 +01:00
0f7f337517 Check whether the session is set in is_logged_in. 2021-10-31 10:19:23 +01:00
deb3a6dd08 Small improvements. 2021-10-31 02:11:47 +01:00
9aa2e64199 Updated the engine, and added a redirect to the login page from index if the user is not logged in. 2021-10-31 02:07:50 +01:00
fd37c75c47 Added register link to the login page. 2021-10-31 02:22:04 +02:00
5b31cb7df8 Added a new UserController and added the new render methods from the core USerController. 2021-10-31 02:13:01 +02:00
5881f4bbf0 Ported the menu. 2021-10-30 23:33:37 +02:00
96d8c1fcf2 Initial project setup. 2021-10-30 22:48:02 +02:00