Merge remote-tracking branch 'origin'

This commit is contained in:
2025-10-05 16:51:59 +01:00
8 changed files with 131 additions and 80 deletions

View File

@@ -3,17 +3,21 @@
#include "../player.h"
#include <SDL3/SDL_events.h>
void UpdateWorld(F32 delta, World *world) {
void UpdateWorld(F32 delta, World *world)
{
UpdateNPCs(delta, world);
}
void UpdateNPCs(F32 delta, World *world) {
for(U32 i = 0; i < world->npcCount; i++) {
void UpdateNPCs(F32 delta, World *world)
{
for (U32 i = 0; i < world->npcCount; i++)
{
updateNPC(delta, &world->npcs[i], world);
}
}
void ProcessEvents(SDL_Event *event, World *world) {
void ProcessEvents(SDL_Event *event, World *world)
{
PlayerUpdate(event, &world->player);
}