Game.ts 572 B

12345678910111213141516171819202122232425
  1. import { ecs } from "db://oops-framework/libs/ecs/ECS";
  2. import { GameModelComp } from "./model/GameModelComp";
  3. import { EliminateViewComp } from "./view/EliminateViewComp";
  4. /*
  5. * @Author: mojunshou 1637302775@qq.com
  6. * @Date: 2025-04-10 15:19:17
  7. * @LastEditors: mojunshou 1637302775@qq.com
  8. * @LastEditTime: 2025-04-14 16:31:24
  9. * @Description:
  10. */
  11. @ecs.register('Game')
  12. export class Game extends ecs.Entity {
  13. GameModel!: GameModelComp;
  14. eliminateView!: EliminateViewComp;
  15. protected init() {
  16. this.addComponents<ecs.Comp>(GameModelComp);
  17. }
  18. }