Optmi renderer model

This commit is contained in:
2022-04-09 15:07:45 +08:00
parent 8ced3d82f3
commit ed8269ff50
6 changed files with 92 additions and 85 deletions
+2 -2
View File
@@ -35,9 +35,9 @@ class SimulatorWeb extends Component {
(window as any).setting = (this.setting as any);
// TODO: 这里要读取存档
const classicRender = new ClassicRenderer().onLoad();
this.status = new Status();
this.status.renderer = new ClassicRenderer({ className: "canvas" }).onLoad();
this.status.bindRenderer(this.status.renderer);
this.status.bindRenderer(classicRender);
this.status.setting = this.setting;
// 测试代码