mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-29 07:29:12 -04:00
WIP
This commit is contained in:
parent
655556273a
commit
f9f47ed103
20 changed files with 2113 additions and 13 deletions
src/engine
29
src/engine/sequencer.js
Normal file
29
src/engine/sequencer.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
var Timer = require('../util/timer');
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
function Sequencer (runtime) {
|
||||
// Bi-directional binding for runtime
|
||||
this.runtime = runtime;
|
||||
|
||||
// State
|
||||
this.runningThreads = [];
|
||||
this.workTime = 30;
|
||||
this.timer = new Timer();
|
||||
this.currentTime = 0;
|
||||
}
|
||||
|
||||
Sequencer.prototype.stepAllThreads = function () {
|
||||
|
||||
};
|
||||
|
||||
Sequencer.prototype.stepThread = function (thread) {
|
||||
|
||||
};
|
||||
|
||||
Sequencer.prototype.startSubstack = function (thread) {
|
||||
|
||||
};
|
||||
|
||||
module.exports = Sequencer;
|
Loading…
Add table
Add a link
Reference in a new issue