SharePanelViewMediator.ts 904 B

1234567891011121314151617181920212223242526272829303132333435
  1. import BaseMediator from "../../../lightMVC/core/base/BaseMediator";
  2. import SharePanel from "./SharePanel";
  3. import Notification from "../../Notification";
  4. export default class SharePanelViewMediator extends BaseMediator {
  5. public view: SharePanel;
  6. public init(data?: any): void {
  7. console.log(data+"跳转。。。");
  8. this.view.drawView();
  9. // let playerModel = this.getModel(PlayerModel);
  10. // this.view.setLevelDisplay(playerModel.getPlayerLv());
  11. // 监听修改经验事件
  12. // this.bindEvent(PopAView.UPDATE_LEVEL, (exp)=>{
  13. // this.sendCmd(UpdateExpCommand, exp);
  14. // }, this);
  15. // this.registerNoti(Notification.UPDATE_EXP_FINISH, ()=>{
  16. // this.view.setLevelDisplay(playerModel.getPlayerLv());
  17. // }, this);
  18. }
  19. public viewDidAppear(): void {
  20. }
  21. public destroy(): void {
  22. }
  23. }