keytops-game-framework 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,6 @@
1
1
  import type { OnlineConfig, ServerParamStruct, ServerResponseStruct } from "../net/server/IServer";
2
2
  export type RemoteConfigRequest = ServerParamStruct | undefined;
3
3
  export declare class BaseOnlineConfig<TRequest extends RemoteConfigRequest = ServerParamStruct> implements OnlineConfig {
4
- static KEY: string;
5
4
  protected mergeConfigField(target: OnlineConfig, key: string, payload: unknown): void;
6
5
  protected mergeObjectConfig<T extends OnlineConfig>(target: T, payloads?: Record<string, any>): T;
7
6
  buildRequestData(request?: TRequest): ServerParamStruct | undefined;
@@ -3,7 +3,6 @@ type LevelConfigRequest = {
3
3
  id: string;
4
4
  };
5
5
  export declare class LevelOnlineConfig extends BaseOnlineConfig<LevelConfigRequest> {
6
- static KEY: string;
7
6
  info: {
8
7
  id: string;
9
8
  repeat: 0 | 1;
@@ -7,7 +7,6 @@ export type RelayAnalyticsConfig = Partial<AliAnalyticsConfig> & KeytopsAnalytic
7
7
  * system 端口默认配置,承载 SDK 基础运行时能力。
8
8
  */
9
9
  export declare class SystemOnlineConfig extends BaseOnlineConfig {
10
- static KEY: string;
11
10
  url: {
12
11
  domain: string;
13
12
  configAPI: string;
package/dist/index.js CHANGED
@@ -2953,7 +2953,6 @@ class BaseOnlineConfig {
2953
2953
  return this.mergeObjectConfig(target, payloads);
2954
2954
  }
2955
2955
  }
2956
- BaseOnlineConfig.KEY = "OnlineConfig_config_default_class";
2957
2956
 
2958
2957
  class RemoteConfigRegistry {
2959
2958
  constructor() {
@@ -3007,7 +3006,7 @@ function remoteConfig(method, gameFlag = "default", injectorKey) {
3007
3006
  remoteConfigRegistry.register(target, method, gameFlag, injectorKey);
3008
3007
  };
3009
3008
  }
3010
- remoteConfigRegistry.register(BaseOnlineConfig, "config", "default", BaseOnlineConfig.KEY);
3009
+ remoteConfigRegistry.register(BaseOnlineConfig, "config", "default");
3011
3010
 
3012
3011
  /**
3013
3012
  * system 端口默认配置,承载 SDK 基础运行时能力。
@@ -3099,9 +3098,8 @@ let SystemOnlineConfig = class SystemOnlineConfig extends BaseOnlineConfig {
3099
3098
  return `${normalizedDomain}${normalizedPath}`;
3100
3099
  }
3101
3100
  };
3102
- SystemOnlineConfig.KEY = "OnlineConfig_system_default_class";
3103
3101
  SystemOnlineConfig = __decorate([
3104
- remoteConfig("system", "default", "OnlineConfig_system_default_class")
3102
+ remoteConfig("system")
3105
3103
  ], SystemOnlineConfig);
3106
3104
  function resolveSystemUrl(path = "", config = new SystemOnlineConfig()) {
3107
3105
  const urlConfig = config.url;
@@ -3294,9 +3292,8 @@ let LevelOnlineConfig = class LevelOnlineConfig extends BaseOnlineConfig {
3294
3292
  return (payloads || {});
3295
3293
  }
3296
3294
  };
3297
- LevelOnlineConfig.KEY = "OnlineConfig_level_level_class";
3298
3295
  LevelOnlineConfig = __decorate([
3299
- remoteConfig("level", "level", "OnlineConfig_level_level_class")
3296
+ remoteConfig("level")
3300
3297
  ], LevelOnlineConfig);
3301
3298
 
3302
3299
  var GameLeaveType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keytops-game-framework",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "cocos creator game framework library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",