wavelength
1.0.0
Loading...
Searching...
No Matches
waittimetask.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
os/task.h
"
4
10
class
WaitTimeTask
:
public
Task
{
11
public
:
18
~WaitTimeTask
()
override
=
default
;
19
27
explicit
WaitTimeTask
(
float
fSeconds);
28
29
protected
:
36
void
OnStart
()
override
;
37
44
void
OnPoll
()
override
;
45
46
private
:
47
float
mDuration;
48
float
mEndTime;
49
};
Task::Task
Task()
Construct an idle task.
Definition
task.h:24
WaitTimeTask::~WaitTimeTask
~WaitTimeTask() override=default
Destroy the object.
WaitTimeTask::WaitTimeTask
WaitTimeTask(float fSeconds)
Construct a task that waits for a time.
WaitTimeTask::OnStart
void OnStart() override
Set the end time from the song clock.
WaitTimeTask::OnPoll
void OnPoll() override
Finish the task once the song clock reaches the end time.
task.h
src
game
waittimetask.h
Generated by
1.15.0