sdl_runtime_compiler git · main
SDL3 game for running and compiling code at runtime
C++ 72.3% C 26.2%git clone https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler.gitwget https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler/archive/sdl_runtime_compiler.tar.gzsrc/states/game_context.hpp raw
#pragma once
#include <string>
#include "entities/game_object.hpp"
#include "text/token.hpp"
#include "utils/globals.hpp"
#include "wall/wall.hpp"
namespace
Nimbin
{
class Camera;
class Player;
class World;
struct Light;
struct PultButton;
namespace Text { class Handler; }
struct GameContext
{
DynArray<Text::TokenPtr>words;
DynArray<GameObjectPtr> scenery;
DynArray<PultButton*> buttons;
cpputils::unique_ptr<Player> player;
cpputils::unique_ptr<Camera> camera;
cpputils::unique_ptr<World> world;
cpputils::unique_ptr<Light> light;
Text::Handler* editor_wall { nullptr };
Text::Handler* info_wall { nullptr };
void drop_WordToFloor(Text::TokenPtr word, const Vec3& vel);
};
} // namespace Nimbin