Loading...
Searching...
No Matches
UIController.h
Go to the documentation of this file.
1#ifndef GAMELOGIC_H
2#define GAMELOGIC_H
3
4#pragma once
5
8
9namespace ml
10{
66 class UIController : public Controller//, public virtual Updatable
67 {
68 CoreAdapter proxy;
69
70 public:
71 using Controller::Controller;
72
73 void initialization() override = 0;
74
75 void registerEvents() override = 0;
76
87 void onUpdate(std::function<void()> f);
88
89 ~UIController() override = default;
90 };
91
92} // namespace ml
93
94#endif // GAMELOGIC_H
Abstract interface for application initialization and event registration.
Definition Controller.h:36
Concrete adapter that gives Core a default virtual interface.
Definition CoreAdapter.h:35
Concrete Controller base with a per-frame update hook.
void initialization() override=0
Create and register all components and resources.
~UIController() override=default
void registerEvents() override=0
Attach event callbacks to components and framework objects.
void onUpdate(std::function< void()> f)
Register a callback invoked every frame during the update tick.
Definition Component.h:18