Commit Graph

57 Commits

Author SHA1 Message Date
d2ed14fcab Port 3 more tables. 2021-12-18 20:37:50 +01:00
d49775b907 Mark the weather table in the original sql dump. 2021-12-18 11:37:25 +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
da02282ef0 Added .cache folder to the gitignore. 2021-11-15 11:00:27 +01:00
e0fe6ca1d4 Added .clangd config file so you don't have to rely on old vscode behaviour to find compile commands.json. 2021-11-15 11:00:03 +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
c65bc0d6b7 Improved admin.css a bit. 2021-11-14 22:37:31 +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
aa2664c200 Ran a code formatter on most of the old php to fix indents in vscode. 2021-11-14 11:02:22 +01:00
8cd215e0f1 Use -m for migrations, and call the new create_test_users method if -u also present. Also updated the engine. 2021-11-14 02:38:29 +01:00
01dbdb6aa1 Initialize platforms, and check whether to run migrations using the arg parser. 2021-11-14 02:28:56 +01:00
62d0d59cc9 Updated the engine to the latest. 2021-11-14 02:21:43 +01:00
12cd5a9b72 Fix RCPP_OBJECT declaration. 2021-10-31 14:33:22 +01:00
ce22bde08f Remove unecessary module folder entry. 2021-10-31 14:30:06 +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
050e9bf0d0 Updated the engine. 2021-10-31 10:19:02 +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
71d0366681 Don't try to load settings.json. 2021-10-30 23:55:53 +02:00
40b0850a47 Also update the framework. 2021-10-30 23:34:11 +02:00
5881f4bbf0 Ported the menu. 2021-10-30 23:33:37 +02:00