同步代码
This commit is contained in:
parent
45ee7bae26
commit
a42a3e79c7
@ -1 +1 @@
|
||||
Subproject commit 4ea207ebba3bce4ff022de42d8fbd5235f172a81
|
||||
Subproject commit cff3d23475a6352e560e27f7b006727b3b884217
|
@ -1 +1 @@
|
||||
Subproject commit 023c84c4ccf7f38e477253e1b49856bfb50aca18
|
||||
Subproject commit 8550a458fccb2171a7b0889c9853f4716a48823d
|
@ -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;
|
||||
},
|
||||
});
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user