diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-12-01 15:34:02 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-12-01 15:34:02 +0100 |
| commit | 8430183d1e2b9e6d66188e364f8acf08d1ddb9c4 (patch) | |
| tree | 0872eb27e5ba3053f6476d1ff83a13041d245b37 /src/include/world.h | |
| parent | cebbaa91a9a57a411736b4148706b6bad621140e (diff) | |
close #21
Diffstat (limited to 'src/include/world.h')
| -rw-r--r-- | src/include/world.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/world.h b/src/include/world.h index 46e2f65..58d9a2f 100644 --- a/src/include/world.h +++ b/src/include/world.h @@ -331,6 +331,7 @@ typedef struct t_money_data float expenses_from_trucks;
float expenses_from_utility;
+ float expenses_from_loans;
float expenses_from_healthcare;
float expenses_from_repairs;
float expenses_from_fuel;
@@ -352,12 +353,29 @@ typedef struct t_company_investments u32 legal;
} company_investments;
+typedef struct t_bank_loan
+{
+ s32 amount;
+ float interest;
+ s32 days_left;
+ float monthly_payment;
+ bool is_active;
+} bank_loan;
+
+typedef struct t_bank
+{
+ bank_loan loan1;
+ bank_loan loan2;
+ bank_loan loan3;
+} bank;
+
typedef struct t_world
{
// Save State
s64 simulation_time;
u16 start_year;
float money;
+ bank bank_info;
u32 next_id;
u8 simulation_speed;
array active_jobs;
|
