gs2-cdk 1.0.39 → 1.0.40

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -0,0 +1,9 @@
1
+ import { RandomStatusOptions } from "./options/RandomStatusOptions";
2
+ export default class RandomStatus {
3
+ private readonly seed;
4
+ private readonly used;
5
+ constructor(seed: number, options?: RandomStatusOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class RandomStatus {
4
+ constructor(seed, options = null) {
5
+ var _a;
6
+ this.used = null;
7
+ this.seed = seed;
8
+ this.used = (_a = options === null || options === void 0 ? void 0 : options.used) !== null && _a !== void 0 ? _a : null;
9
+ }
10
+ properties() {
11
+ let properties = {};
12
+ if (this.seed != null) {
13
+ properties["seed"] = this.seed;
14
+ }
15
+ if (this.used != null) {
16
+ properties["used"] = this.used.map(v => v.properties());
17
+ }
18
+ return properties;
19
+ }
20
+ }
21
+ exports.default = RandomStatus;
22
+ //# sourceMappingURL=RandomStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RandomStatus.js","sourceRoot":"","sources":["RandomStatus.ts"],"names":[],"mappings":";;AAkBA,MAAqB,YAAY;IAI7B,YACI,IAAY,EACZ,UAAoC,IAAI;;QAJ3B,SAAI,GAAsB,IAAI,CAAC;QAM5C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,IAAI,CAAC;IACtC,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC/C,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,+BA0BC"}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import RandomUsed from "./RandomUsed";
17
+ import { RandomStatusOptions } from "./options/RandomStatusOptions";
18
+
19
+ export default class RandomStatus {
20
+ private readonly seed: number;
21
+ private readonly used: RandomUsed[]|null = null;
22
+
23
+ public constructor(
24
+ seed: number,
25
+ options: RandomStatusOptions|null = null,
26
+ ) {
27
+ this.seed = seed;
28
+ this.used = options?.used ?? null;
29
+ }
30
+
31
+ public properties(
32
+ ): {[name: string]: any} {
33
+ let properties: {[name: string]: any} = {};
34
+
35
+ if (this.seed != null) {
36
+ properties["seed"] = this.seed;
37
+ }
38
+ if (this.used != null) {
39
+ properties["used"] = this.used.map(v => v.properties(
40
+ ));
41
+ }
42
+
43
+ return properties;
44
+ }
45
+ }
@@ -0,0 +1,9 @@
1
+ import { RandomUsedOptions } from "./options/RandomUsedOptions";
2
+ export default class RandomUsed {
3
+ private readonly category;
4
+ private readonly used;
5
+ constructor(category: number, used: number, options?: RandomUsedOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class RandomUsed {
4
+ constructor(category, used, options = null) {
5
+ this.category = category;
6
+ this.used = used;
7
+ }
8
+ properties() {
9
+ let properties = {};
10
+ if (this.category != null) {
11
+ properties["category"] = this.category;
12
+ }
13
+ if (this.used != null) {
14
+ properties["used"] = this.used;
15
+ }
16
+ return properties;
17
+ }
18
+ }
19
+ exports.default = RandomUsed;
20
+ //# sourceMappingURL=RandomUsed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RandomUsed.js","sourceRoot":"","sources":["RandomUsed.ts"],"names":[],"mappings":";;AAiBA,MAAqB,UAAU;IAI3B,YACI,QAAgB,EAChB,IAAY,EACZ,UAAkC,IAAI;QAEtC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,6BA0BC"}
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import { RandomUsedOptions } from "./options/RandomUsedOptions";
17
+
18
+ export default class RandomUsed {
19
+ private readonly category: number;
20
+ private readonly used: number;
21
+
22
+ public constructor(
23
+ category: number,
24
+ used: number,
25
+ options: RandomUsedOptions|null = null,
26
+ ) {
27
+ this.category = category;
28
+ this.used = used;
29
+ }
30
+
31
+ public properties(
32
+ ): {[name: string]: any} {
33
+ let properties: {[name: string]: any} = {};
34
+
35
+ if (this.category != null) {
36
+ properties["category"] = this.category;
37
+ }
38
+ if (this.used != null) {
39
+ properties["used"] = this.used;
40
+ }
41
+
42
+ return properties;
43
+ }
44
+ }
@@ -2,4 +2,8 @@ import Namespace from "./Namespace";
2
2
  import { NamespaceOptions } from "./options/NamespaceOptions";
3
3
  import Script from "./Script";
4
4
  import { ScriptOptions } from "./options/ScriptOptions";
5
- export { Namespace, NamespaceOptions, Script, ScriptOptions, };
5
+ import RandomStatus from "./RandomStatus";
6
+ import { RandomStatusOptions } from "./options/RandomStatusOptions";
7
+ import RandomUsed from "./RandomUsed";
8
+ import { RandomUsedOptions } from "./options/RandomUsedOptions";
9
+ export { Namespace, NamespaceOptions, Script, ScriptOptions, RandomStatus, RandomStatusOptions, RandomUsed, RandomUsedOptions, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Script = exports.Namespace = void 0;
3
+ exports.RandomUsed = exports.RandomStatus = exports.Script = exports.Namespace = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /*
6
6
  * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
@@ -21,4 +21,8 @@ const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
21
21
  exports.Namespace = Namespace_1.default;
22
22
  const Script_1 = tslib_1.__importDefault(require("./Script"));
23
23
  exports.Script = Script_1.default;
24
+ const RandomStatus_1 = tslib_1.__importDefault(require("./RandomStatus"));
25
+ exports.RandomStatus = RandomStatus_1.default;
26
+ const RandomUsed_1 = tslib_1.__importDefault(require("./RandomUsed"));
27
+ exports.RandomUsed = RandomUsed_1.default;
24
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAMhC,oBANG,mBAAS,CAMH;AAJb,8DAA8B;AAM1B,iBANG,gBAAM,CAMH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAUhC,oBAVG,mBAAS,CAUH;AARb,8DAA8B;AAU1B,iBAVG,gBAAM,CAUH;AARV,0EAA0C;AAUtC,uBAVG,sBAAY,CAUH;AARhB,sEAAsC;AAUlC,qBAVG,oBAAU,CAUH"}
@@ -17,10 +17,18 @@ import Namespace from "./Namespace";
17
17
  import { NamespaceOptions } from "./options/NamespaceOptions";
18
18
  import Script from "./Script";
19
19
  import { ScriptOptions } from "./options/ScriptOptions";
20
+ import RandomStatus from "./RandomStatus";
21
+ import { RandomStatusOptions } from "./options/RandomStatusOptions";
22
+ import RandomUsed from "./RandomUsed";
23
+ import { RandomUsedOptions } from "./options/RandomUsedOptions";
20
24
 
21
25
  export {
22
26
  Namespace,
23
27
  NamespaceOptions,
24
28
  Script,
25
29
  ScriptOptions,
30
+ RandomStatus,
31
+ RandomStatusOptions,
32
+ RandomUsed,
33
+ RandomUsedOptions,
26
34
  }
@@ -0,0 +1,4 @@
1
+ import RandomUsed from "../RandomUsed";
2
+ export interface RandomStatusOptions {
3
+ used?: RandomUsed[] | null;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=RandomStatusOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RandomStatusOptions.js","sourceRoot":"","sources":["RandomStatusOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import RandomUsed from "../RandomUsed";
17
+
18
+ export interface RandomStatusOptions {
19
+ used?: RandomUsed[]|null;
20
+ }
21
+
@@ -0,0 +1,2 @@
1
+ export interface RandomUsedOptions {
2
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
4
+ * Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License").
7
+ * You may not use this file except in compliance with the License.
8
+ * A copy of the License is located at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed
13
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ //# sourceMappingURL=RandomUsedOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RandomUsedOptions.js","sourceRoot":"","sources":["RandomUsedOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+ export interface RandomUsedOptions {
18
+ }
19
+