SceneDef.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { ModuleDef } from "./ModuleDef";
  2. export class SceneDef {
  3. /**
  4. * @en start scene, must be loaded from this scene
  5. * @zh 首场景,必须从这个场景启动
  6. */
  7. public static START = { name: 'start', bundle: 'main' };
  8. /**
  9. * @en login scene
  10. * @zh 登录场景
  11. * */
  12. public static LOGIN = { name: 'login', bundle: ModuleDef.BASIC };
  13. /**
  14. * @en login scene , after login, will jump to this scene
  15. * @zh 主大厅场景,登录成功后会首先进入这个场景
  16. */
  17. public static LOBBY = { name: 'lobby_new', bundle: ModuleDef.BALL };
  18. // public static LOBBY = { name: 'lobby', bundle: ModuleDef.BASIC };
  19. /**
  20. * @en create role scene, after login, if user has no role, will jump to this scene
  21. * @zh 创建角色场景,登录成功后如果没有创建过角色,会跳转到此场景
  22. **/
  23. public static CREATE_ROLE = { name: 'create_role', bundle: ModuleDef.BASIC };
  24. /**
  25. * @en game scene
  26. * @zh 游戏场景
  27. **/
  28. public static GAME = { name: 'game_normal', bundle: ModuleDef.GAME };
  29. /**
  30. * @en test scene
  31. * @zh 测试场景
  32. */
  33. public static GAME_LOCAL = { name: 'game_local', bundle: ModuleDef.GAME };
  34. }