rename myaction to callback

This commit is contained in:
2026-08-20 00:45:52 +02:00
parent 6e71aeebb4
commit b5309278cf
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -11,13 +11,14 @@
class Timer {
public:
size_t triggeramount;
bool isexpired = false;
bool isinfinite = false;
size_t triggercount = 0;
std::function<bool()> timeraction;
std::function<bool()> callback;
Timer(size_t triggeramount, std::function<bool()> myaction, std::chrono::milliseconds triggerinterval);
void add_time(std::chrono::milliseconds deltatime);
private: