R-Type 0.1
Loading...
Searching...
No Matches
Game.hpp
1#pragma once
2
3#include <concepts>
4
5namespace rtk {
11struct EngineContext;
12
21template <typename T>
22concept Game = requires(T &game, EngineContext &context) {
23 { game.onLoad(context) } -> std::same_as<void>;
24};
25
27} // namespace rtk
Requirements for a type that GameEngine::run() can drive.
Definition Game.hpp:22