#1 - ClientWorldController refactoring

This commit is contained in:
Martin Slachta
2026-08-03 23:30:18 +02:00
parent f4174eb0c7
commit a097f4d4b0
35 changed files with 899 additions and 1010 deletions
@@ -0,0 +1,33 @@
#pragma once
#include "draw/WorldRenderer.hpp"
#include "io/InputState.hpp"
#include "world/CharacterBody.hpp"
#include "world/JoltPhysicsWorld.hpp"
#include "world/ThirdPersonPlayerController.hpp"
#include "world/World.hpp"
namespace tw {
class LocalWorldController {
private:
io::InputManager* m_input_manager;
World* m_world;
JoltPhysicsWorld* m_physics_world;
drw::WorldRenderer* m_world_renderer;
CharacterBody* m_player_body;
ThirdPersonPlayerController m_player_controller;
public:
LocalWorldController(
io::InputManager* inputs,
World* world,
JoltPhysicsWorld* physics_world,
drw::WorldRenderer* world_renderer);
void update(double delta_time);
};
}