HMR for blockly blocks
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
export * from './applyImpulseAction';
|
||||
export * from './moveInDirectionAction';
|
||||
export * from './moveToPositionAction';
|
||||
export * from './stopGameAction';
|
||||
export * from './waitConditionAction';
|
||||
export * from './waitFramesAction';
|
||||
export * from './waitSecondsAction';
|
||||
export * from './applyImpulseAction';
|
||||
export * from './moveToPositionAction';
|
||||
export * from './moveInDirectionAction';
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import { state } from "../../state";
|
||||
import { ScriptAction, type ScriptCoroutineContext } from "../../types";
|
||||
|
||||
export class StopGameScriptAction extends ScriptAction {
|
||||
|
||||
constructor(coroutine: ScriptCoroutineContext) {
|
||||
super(coroutine);
|
||||
}
|
||||
|
||||
public tick(_deltaTime: number): boolean {
|
||||
state.stopGame();
|
||||
|
||||
return true; // one shot
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user