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BO7WEXPHAT3EQQJEUCJITQC
PEQNQJYNX7QOEM67QH2UF7VZ43AXHUBO76DN77L43MEFRHVDBO5QC
DHO4JCJIELKX4R42XXAMAHVQTTE6OWULLP2QF4BXO3UWC5UTMSMAC
QUT2VGNOS2XSDLSYCSMILCKF343M56MRPRSUWN4GXWPGCK6APK2QC
3UFL673QX2JG7KHTAM7DFH4BBYVHDNMXBS2RW45G3JBNFZFLSRRQC
// const childProps = {
// delta: 0,
// args: {
// pointNodeTexture: this.state.pointNodeTexture.get(),
// z: 0,
// },
// updaters: props.updaters,
// position: props.appSize.multiply(0.5),
// zLevelGen: new ZLevelGenFactory({}).create({ seed: props.gameState.worldGen.seed, z: 0 }),
// selectedPointNode: props.gameState.playerUI.selectedPointNode,
// allocatedPointNodeSubset: props.gameState.playerSave.allocatedPointNodeSet,
// };
// this.zLevel = new ZLevelComponent(childProps);
// this.actionStage.addChild(this.zLevel.container);
shouldUpdate(prevProps: Props, props: Props): boolean {
return true;
// for (let key of (Object.keys(prevProps) as (keyof Props)[])) {
// if (key === 'delta' || key === 'args' || key === 'updaters') { continue; }
// if (key === 'allocatedPointNodeSubset') {
// // subsets could be different objects but have the same contents
// if (prevProps[key].hash() !== props[key].hash()) {
// return true;
// } else {
// continue;
// }
// }
// if (prevProps[key] !== props[key]) {
// return true;
// }
// }
// return false;
}
shouldUpdate(prevProps: Props, props: Props): boolean {
for (let key of (Object.keys(prevProps) as (keyof Props)[])) {
if (key === 'delta' || key === 'args' || key === 'updaters') { continue; }
if (key === 'position') {
if (!prevProps[key].equals(props[key])) {
return true;
} else {
continue;
}
}
if (prevProps[key] !== props[key]) {
return true;
}
}
return false;
}