Finish up package class

This commit is contained in:
Dennis Schoepf 2021-07-30 23:42:17 +02:00
parent 1b68510ce0
commit e04ad2ac47
2 changed files with 85 additions and 9 deletions

View file

@ -21,7 +21,9 @@ export class DetailScene {
(contributor) => new Contributor(100, 200, 100)
);
this.legacy = state.currLegacy.map((legacy) => new Legacy(200, 300, 100));
this.packages = state.currPackages.map((currPackage) => new Package(400, 300, 50));
this.packages = state.currPackages.map(
(currPackage) => new Package(400, 300, 50, 'react', '<h3>Test</h3>')
);
});
}
@ -47,5 +49,9 @@ export class DetailScene {
onSceneClick() {
// store.setState({ currentScene: Scenes.OVERVIEW });
this.player.reveal();
this.packages.forEach((packageObj) => {
packageObj.onClick();
});
}
}