Files
armorpaint/Sources/arm/node/LogicTree.hx
T

31 lines
657 B
Haxe
Raw Normal View History

2019-11-13 15:17:10 +01:00
package arm.node;
2019-06-22 00:21:47 +02:00
class LogicTree extends iron.Trait {
public var loopBreak = false; // Trigger break from loop nodes
public function new() {
super();
}
public function add() {}
var paused = false;
public function pause() {
if (paused) return;
paused = true;
if (_update != null) for (f in _update) iron.App.removeUpdate(f);
if (_lateUpdate != null) for (f in _lateUpdate) iron.App.removeLateUpdate(f);
}
public function resume() {
if (!paused) return;
paused = false;
if (_update != null) for (f in _update) iron.App.notifyOnUpdate(f);
if (_lateUpdate != null) for (f in _lateUpdate) iron.App.notifyOnLateUpdate(f);
}
}