summaryrefslogtreecommitdiff
path: root/src/include/world.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-12-03 18:56:44 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-12-03 18:56:44 +0100
commit7c889d5a80a59d3281775c3ea731f4e640295353 (patch)
tree46523346f725e5491cb7d1b8f374d84e9d4713a4 /src/include/world.h
parente953d6fc634ed445332f9fdc47c9c4a6a205ea75 (diff)
working on save load
Diffstat (limited to 'src/include/world.h')
-rw-r--r--src/include/world.h5
1 files changed, 4 insertions, 1 deletions
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