reload server
This commit is contained in:
1 parent
c7f65abccf
commit
130aec7363
7 files changed
+203
-35
No files matched your search
@@ -6,6 +6,7 @@ import * as path from "path";
|
||||
|
||||
import "antd/dist/antd.dark.css";
|
||||
import MainEventType from "../common/MainEventType";
|
||||
import { BehaviorTreeModel } from "../common/BehaviorTreeModel";
|
||||
|
||||
const { TabPane } = Tabs;
|
||||
|
||||
@@ -63,6 +64,15 @@ export default class TreeTabs extends Component<TreeTabsProps, TreeTabsState> {
|
||||
});
|
||||
}
|
||||
|
||||
getOpenTreesModel() {
|
||||
const trees: BehaviorTreeModel[] = []
|
||||
for (let k in this.editors) {
|
||||
let editor = this.editors[k];
|
||||
trees.push(editor.save());
|
||||
}
|
||||
return trees;
|
||||
}
|
||||
|
||||
getCurEditor() {
|
||||
const { curPath } = this.state;
|
||||
if (!curPath) {
|
||||
|
||||
Reference in new issue
Block a user