![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Simple time keeping systems. Tracks in game time and date based on real elapsed play time. More...
#include <Clock.hpp>
Classes | |
struct | Time |
Simple struct representing a point in time. More... | |
Public Member Functions | |
Clock (Systems &owner) | |
Initializes the clock system. More... | |
virtual | ~Clock ()=default |
Destroys the system. More... | |
const Time & | now () const |
Returns the current in game time. More... | |
void | set (const Time &time) |
Sets the current time. More... | |
virtual void | observe (const event::GameSaveInitializing &save) override |
Adds saved clock data to the save file. More... | |
virtual void | observe (const event::GameSaveLoaded &load) override |
Initializes clock state from the loading game save. More... | |
Simple time keeping systems. Tracks in game time and date based on real elapsed play time.
core::system::Clock::Clock | ( | Systems & | owner | ) |
|
virtualdefault |
Destroys the system.
const Clock::Time & core::system::Clock::now | ( | ) | const |
|
overridevirtual |
|
overridevirtual |
void core::system::Clock::set | ( | const Time & | time | ) |