FrameworkConf.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. export namespace FrameworkConf {
  2. //数据加密,如果不需要将key和iv设置为"",该模块在浏览器下不生效
  3. export const storage_key = "__(iIwqTS8dA7&mWD(q&&__"; //数据加密key
  4. export const storage_iv = "__j@Q*B3LNAzgP0uR@Q__"; //数据加密key的偏移量
  5. export const frame_load_count = 1; //每帧加载数量
  6. export const frame_preload_count = 1;
  7. export const WebEvent = {
  8. //关闭窗口
  9. CLOSE:"Close subgame!",
  10. OPEN:"Open subgame!",
  11. }
  12. //系统事件
  13. export const Event = {
  14. INIT_FINISH: "FW_INIT_FINISH",
  15. GAME_SHOW: "FW_GAME_SHOW",
  16. GAME_HIDE: "FW_GAME_HIDE",
  17. GAME_RESIZE: "FW_GAME_RESIZE",
  18. NET_ERROR: "FW_NET_ERROR",
  19. NET_CLOSE: "FW_NET_CLOSE",
  20. OPEND_UI: "FW_OPEND_UI",
  21. CLOSE_UI: "FW_CLOSE_UI",
  22. NET_MSG: "FW_NET_MSG",
  23. NET_RECONNECT: "FW_NET_RECONNECT", //重连成功
  24. NET_HANDSHAKE_ERROR: "FW_NET_HANDSHAKE_ERROR", //握手错误码
  25. }
  26. }