A timeout that executes a callback after a specific game time delay.
Creates a new GameTimeout.
the time duration [ms] after which the callback should be run.
The callback to execute.
Optional
should the timeout restart after it is finished (i.e. should it run periodically?).
time (in milliseconds) for how long the object already exists in the game
optional duration in milliseconds for how long the object should still exist in the game
Marks the object as deleted.
Is the object marked as deleted?
Check if the timeout exceeds its finish time and if so, call the callback
A timeout that executes a callback after a specific game time delay.