wavelength 1.0.0
Loading...
Searching...
No Matches
scripttask.h
Go to the documentation of this file.
1#pragma once
2
3#include "os/task.h"
4#include "script/dataarray.h"
5
12class ScriptTask : public Task {
13public:
20 ~ScriptTask() override = default;
21
29 explicit ScriptTask(DataArray *pCommand);
30
31protected:
38 void OnStart() override;
39
40private:
41 DataArray *mCommand;
42};
Reference-counted array of script data nodes.
Definition dataarray.h:20
void OnStart() override
Run the command and finish the task.
~ScriptTask() override=default
Destroy the object.
ScriptTask(DataArray *pCommand)
Construct a task that runs a command.
Task()
Construct an idle task.
Definition task.h:24