From 7c889d5a80a59d3281775c3ea731f4e640295353 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Tue, 3 Dec 2024 18:56:44 +0100 Subject: working on save load --- src/include/world.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include/world.h') diff --git a/src/include/world.h b/src/include/world.h index 4f11c5d..c4864fc 100644 --- a/src/include/world.h +++ b/src/include/world.h @@ -401,7 +401,7 @@ typedef struct t_world struct tm current_time; } world; -world* world_create_new(); +world* world_create_new(bool create_default_state); void world_report_event(world* world, char* msg, event_type type, void* data); world_location* get_world_location_by_id(world* world, s32 id); world_location* get_world_location_by_name(world* world, char* str); @@ -409,5 +409,8 @@ float world_location_get_price(world_location* location); void add_truck_to_world_location(world* world, world_location* location, truck* tr); void world_update(platform_window* window, world* world); world_update_result world_render(platform_window* window, world* world); +company* world_get_company_by_name(world* world, char* str); +company* world_get_product_by_name(world* world, char* str); +truck* world_get_truck_by_type(world* world, s32 type); #endif \ No newline at end of file -- cgit v1.2.3-70-g09d2