* Use std::function as callback (methods, lamdas & std::bind).
* Uses std::chrono::duration as duration type (Milliseconds, Seconds...)
- With c++11 user defined literals we could just write "11s" for example (MSVS 2015, gcc & clang).
* Provides a lot of overloads for easier usage:
- Static durations or random durations between min and max.
- Named (with group ids - group id 0 is possible) or anonymous tasks.
- Asynchronous tasks.
* Is adapted to the current needs of scripting:
- Repeat tasks through the TaskContext
- Schedule new tasks from the context.
- Provides access to the times repeat counter of a task,
this will help to schedule multi step events (dialogs for example).
See https://gist.github.com/Naios/6d143538abdc3d32fd2b for usage examples.
10 lines
237 B
C
10 lines
237 B
C
//add here most rarely modified headers to speed up debug build compilation
|
|
|
|
#include "Common.h"
|
|
#include "Log.h"
|
|
#include "DatabaseWorker.h"
|
|
#include "SQLOperation.h"
|
|
#include "Errors.h"
|
|
#include "TypeList.h"
|
|
#include "TaskScheduler.h"
|