UNPKG

owl-bt

Version:

owl-bt is editor for Behavior trees. It has been inspired by Unreal engine behavior trees in a way, that it supports special node items like decorators and services. This makes trees smaller and much more readable.

22 lines (18 loc) 417 B
'use strict'; (function () { class UndoAction { constructor(ActionExecutor, UndoRedoManager) { this._ActionExecutor = ActionExecutor; this._undoRedoManager = UndoRedoManager; } exec() { this._ActionExecutor.exec({ exec: () => { this._undoRedoManager.undo(); } }); } } angular.module('editorApp') .service('UndoAction', UndoAction); })();