From 496fb467ef596b73fc3eab4593881567aad832da Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 1 Dec 2024 19:31:10 +0100 Subject: working on save file --- src/include/world.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'src/include') 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; -- cgit v1.2.3-70-g09d2