Nimbin[12]?SDL & Graphics / sdl_runtime_compiler / src/levels/progression.hpp

sdl_runtime_compiler git · main

SDL3 game for running and compiling code at runtime

sdl3 c++ compiler dlopen cmake · first commit 2026-04-19 · last commit 2026-07-03 (3 months ago) · synced 3 days ago · upstream: git.ide3.de/hsnr/sdl-runtime-compiler

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.gz
src/levels/progression.hpp 755 B · 38 lines raw
#pragma once

#include "levels/level.hpp"

namespace
Nimbin
{

namespace Level
{

class Progression
{
    const Data*
           _level;

    size_t _current_step{0};
public:
    explicit Progression(const Data& _level);

    bool   advance ();

    bool   is_Complete   () const { return _current_step >= _level->steps.size(); }
    bool   is_DynamicLib () const { return _level->dynamic_lib; }

    size_t get_Step      () const { return _current_step; }
    const Level::Step&   
           get_Current   () const { return _level->steps[_current_step]; }
    const std::string&
           get_SourceFile() const { return _level->source_file; }
    DynArray<std::string>
           get_GarantsForStep() const;
};


} // namespace

} // namespace Nimbin