Game of Ur
0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Toggle main menu visibility
Loading...
Searching...
No Matches
ur_ui_navigation.hpp
Go to the documentation of this file.
1
11
12
#ifndef ZOAPPUINAVIGATION_H
13
#define ZOAPPUINAVIGATION_H
14
15
#define GLM_ENABLE_EXPERIMENTAL
16
#include <glm/gtx/string_cast.hpp>
17
#include <toymaker/engine/sim_system.hpp>
18
19
25
class
UrUINavigation:
public
ToyMaker::SimObjectAspect<UrUINavigation> {
26
public
:
27
UrUINavigation(): ToyMaker::SimObjectAspect<UrUINavigation>{0} {}
28
inline
static
std::string getSimObjectAspectTypeName() {
return
"UrUINavigation"
; }
29
static
std::shared_ptr<BaseSimObjectAspect> create(
const
nlohmann::json& jsonAspectProperties);
30
std::shared_ptr<BaseSimObjectAspect> clone()
const override
;
31
32
void
loadScene(
const
std::string& sceneResourceName);
33
34
private
:
35
std::string mSceneManagerPath {};
36
37
void
onButtonClicked(
const
std::string& button);
38
39
public
:
40
ToyMaker::SignalObserver<const std::string&> mObserveButtonClicked {
41
*
this
,
"ButtonClickedObserved"
,
42
[
this
](
const
std::string& button) { this->onButtonClicked(button); }
43
};
44
};
45
46
#endif
src
app
ur_ui_navigation.hpp
Generated on
for Game of Ur by
1.17.0