273ff07a00
App now adds already constructed Timers Timer is now an Invoker that takes a weak_ptr to a steppable with a request()rather than a bool callback. should eventually be changed to composition
15 lines
207 B
C++
15 lines
207 B
C++
#ifndef STEPPABLE_HPP
|
|
#define STEPPABLE_HPP
|
|
|
|
#include <cstddef>
|
|
|
|
class Steppable {
|
|
public:
|
|
virtual ~Steppable() = default;
|
|
bool is_finished = 0;
|
|
size_t stepcount = 0;
|
|
virtual void step() = 0;
|
|
};
|
|
|
|
#endif
|