Class ROT.Engine
Asynchronous main loop
Defined in: <rot.js>.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
ROT.Engine(scheduler)
|
| Method Attributes | Method Name and Description |
|---|---|
|
lock()
Interrupt the engine by an asynchronous action
|
|
|
start()
Start the main loop.
|
|
|
unlock()
Resume execution (paused by a previous lock)
|
Method Detail
lock()
Interrupt the engine by an asynchronous action
start()
Start the main loop. When this call returns, the loop is locked.
unlock()
Resume execution (paused by a previous lock)