Add model archive function

This commit is contained in:
2022-04-23 19:52:56 +08:00
parent 74bda21072
commit 430d8a7254
7 changed files with 213 additions and 49 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ function randomColor(unNormal: boolean = false) {
}
interface IStatusEvent {
fileChange: void;
fileSave: void;
renderLoop: number;
physicsLoop: number;
mouseModChange: void;
@@ -145,7 +145,7 @@ class Status extends Emitter<IStatusEvent> {
this.on("behaviorAttrChange", updateBehaviorParameter);
// 映射文件状态改变事件
this.archive.on("fileChange", () => this.emit("fileChange"));
this.archive.on("fileSave", () => this.emit("fileSave"));
}
public bindRenderer(renderer: AbstractRenderer) {