同步代码

This commit is contained in:
fan 2023-10-19 16:52:41 +08:00
parent 45ee7bae26
commit a42a3e79c7
4 changed files with 13 additions and 13 deletions

@ -1 +1 @@
Subproject commit 4ea207ebba3bce4ff022de42d8fbd5235f172a81
Subproject commit cff3d23475a6352e560e27f7b006727b3b884217

@ -1 +1 @@
Subproject commit 023c84c4ccf7f38e477253e1b49856bfb50aca18
Subproject commit 8550a458fccb2171a7b0889c9853f4716a48823d

View File

@ -67,16 +67,16 @@ function handleSubscribe(pslScene: IGraphicScene) {
messageConverter: (message: Uint8Array) => {
console.log('收到消息', message);
const states: GraphicState[] = [];
const storage = state.PushedDevicesStatus.deserialize(message);
if (storage.all) {
storage.allStatus.buttonState.forEach((item) => {
// 道岔
if (item.id) {
states.push(new PslButtonState(item));
}
});
}
console.log(states, 'states');
// const storage = state.PushedDevicesStatus.deserialize(message);
// if (storage.all) {
// storage.allStatus.buttonState.forEach((item) => {
// // 道岔
// if (item.id) {
// states.push(new PslButtonState(item));
// }
// });
// }
// console.log(states, 'states');
return states;
},
});

View File

@ -42,7 +42,7 @@ export class AnimationManager {
}
destroy() {
this.app.pixi.ticker.remove(this.run, this);
this.app.pixi?.ticker.remove(this.run, this);
}
/**
* map