Commit Graph

54 Commits

Author SHA1 Message Date
fb001d621d Remove duplicate defines. 2022-02-18 16:35:35 +01:00
a444ac1463 More setup work. 2022-02-18 16:30:56 +01:00
eb93589e88 Added more skeleton classes. 2022-02-18 16:20:35 +01:00
69dd1e1dfe Fix string. 2022-02-18 00:29:22 +01:00
c1918e505b Added the rest of the nodes. 2022-02-18 00:14:29 +01:00
2aeb1712b9 Added alliance node. 2022-02-18 00:01:19 +01:00
c553d1c850 Update Weather node's include guard. 2022-02-17 23:53:36 +01:00
a998bfbc23 Same change to the weathers. 2022-02-17 23:37:02 +01:00
d174286f1a Same change to assignments. 2022-02-17 23:09:06 +01:00
ced07f3bb7 Reworked building controller and building model to the new style. 2022-02-17 22:59:27 +01:00
517402e87e Reworked the village related classes to the new style. 2022-02-17 22:44:36 +01:00
c9aa742137 Updated the engine. Also fix routing. 2022-02-10 17:20:23 +01:00
4f1e8ea1c1 Updated the engine. 2022-02-05 23:02:06 +01:00
960dda09f2 More cleanups to the Root. 2022-01-09 17:08:25 +01:00
dbced4e371 Updated the engine and fixed compile. It still needs changes to work again though. 2022-01-09 17:05:04 +01:00
d2ed14fcab Port 3 more tables. 2021-12-18 20:37:50 +01:00
3fc63d1a9f Implemented weather data. 2021-12-18 11:36:51 +01:00
379657ced7 Weather initial setup. 2021-12-18 11:23:59 +01:00
2f25fe9320 Implemented assignment data, and set up the admin panel and migrations for them. 2021-12-18 11:19:29 +01:00
485abda9f6 Initialize assignments. 2021-12-18 10:56:07 +01:00
4367a167e5 Added assignment related classes. (They are the copy of building for now.) 2021-12-18 10:55:46 +01:00
c85911b12a Ported the building editor's ui (at least what I could for now). 2021-11-16 18:55:29 +01:00
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