GPR5100 - Rollback
Loading...
Searching...
No Matches
system.h
1#pragma once
2
3#include <SFML/System/Time.hpp>
4#include <SFML/Window/Event.hpp>
5
6namespace core
7{
13{
14public:
15 virtual ~SystemInterface() = default;
16 virtual void Begin() = 0;
17 virtual void Update(sf::Time dt) = 0;
18 virtual void End() = 0;
19};
20
26{
27public:
28 virtual ~OnEventInterface() = default;
29 virtual void OnEvent(const sf::Event& event) = 0;
30};
31
32}
OnEventInterface is an interface to a class that needs to read events from the Engine....
Definition: system.h:26
SystemInterface is an interface to a game system that needs to begin, update and end by the Engine....
Definition: system.h:13