diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-12-01 19:31:10 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-12-01 19:31:10 +0100 |
| commit | 496fb467ef596b73fc3eab4593881567aad832da (patch) | |
| tree | 8504226cd16f123735cf4cce09a67a71ed9091d9 /src/include/world.h | |
| parent | 0d9dbbfcef52bd821e84055b4d6a9f875d4edd3d (diff) | |
working on save file
Diffstat (limited to 'src/include/world.h')
| -rw-r--r-- | src/include/world.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/include/world.h b/src/include/world.h index 58d9a2f..06a6d11 100644 --- a/src/include/world.h +++ b/src/include/world.h @@ -151,8 +151,8 @@ typedef struct t_employee s16 days_below_happiness_treshold;
u32 current_location_id;
u32 original_location_id;
- truck* assigned_truck;
u32 active_job_id;
+ truck* assigned_truck;
// Portrait
u8 portrait_hair_type;
@@ -236,14 +236,15 @@ typedef struct t_world_location // Save State
bool is_owned;
+ float score; // 0-1
+ u16 purchase_year;
+
array employees; // Contains internal and external employees. Employee can be at 2 locations at any given time.
array job_offers;
array resumes;
array trucks;
- schedule schedule;
- u16 purchase_year;
array insights;
- float score; // 0-1
+ schedule schedule;
// Dynamic
array connections;
@@ -375,17 +376,19 @@ typedef struct t_world s64 simulation_time;
u16 start_year;
float money;
- bank bank_info;
u32 next_id;
u8 simulation_speed;
- array active_jobs;
+ u16 days_since_last_random_event;
+
+ bank bank_info;
+ company_investments investments;
event_log log;
+
+ array active_jobs;
array insights;
- company_investments investments;
- u16 days_since_last_random_event;
+ array locations;
// Dynamic
- array locations;
array companies;
array firstnames;
array lastnames;
|
