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/levels/progression.cpp raw
#include "progression.hpp"
namespace
Nimbin
{
namespace
Level
{
Progression::Progression(const Level::Data& l) : _level(&l)
{}
bool Level::Progression::advance()
{
_current_step++;
return !is_Complete();
}
DynArray<std::string>
Progression::get_GarantsForStep() const
{
DynArray<std::string> result;
for (const Level::TokenGrant& grant : get_Current().grants)
for (const std::string& c : grant.choices)
result.push_back(c);
return result;
}
} // namespace
} // namespace Nimbin