feat: save world written

This commit is contained in:
2025-10-06 01:10:44 +01:00
parent 64a84e3a8d
commit 2f52bb3097
3 changed files with 24 additions and 0 deletions

View File

@@ -16,6 +16,8 @@ typedef struct World World;
#include "bandit.h"
struct World {
//// Utils
M_Arena *arena;
//// Static stuff
NavMesh *navMesh;
Random random;
@@ -43,4 +45,7 @@ function void UpdateNPCs(F32 delta, World *world);
function void UpdateNPC(F32 delta, NPC *npc, World *world);
function void UpdateBandit(F32 delta, Bandit *bandit, World *world);
function World *LoadWorld(Str8 levelData);
function void SaveWorld(M_Arena *arena, World *world);
#endif // LD_GAME_WORLD_H_