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