gs2 1.3.188 → 1.3.189

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",
3
- "version": "1.3.188",
3
+ "version": "1.3.189",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -0,0 +1,18 @@
1
+ import IModel from '../../core/interface/IModel';
2
+ import RandomUsed from './RandomUsed';
3
+ export default class RandomStatus implements IModel {
4
+ private seed;
5
+ private used;
6
+ getSeed(): number | null;
7
+ setSeed(seed: number | null): this;
8
+ withSeed(seed: number | null): this;
9
+ getUsed(): RandomUsed[] | null;
10
+ setUsed(used: RandomUsed[] | null): this;
11
+ withUsed(used: RandomUsed[] | null): this;
12
+ static fromDict(data: {
13
+ [key: string]: any;
14
+ }): RandomStatus | null;
15
+ toDict(): {
16
+ [key: string]: any;
17
+ };
18
+ }
@@ -0,0 +1,70 @@
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
+ var tslib_1 = require("tslib");
19
+ var RandomUsed_1 = tslib_1.__importDefault(require("./RandomUsed"));
20
+ var RandomStatus = /** @class */ (function () {
21
+ function RandomStatus() {
22
+ this.seed = null;
23
+ this.used = null;
24
+ }
25
+ RandomStatus.prototype.getSeed = function () {
26
+ return this.seed;
27
+ };
28
+ RandomStatus.prototype.setSeed = function (seed) {
29
+ this.seed = seed;
30
+ return this;
31
+ };
32
+ RandomStatus.prototype.withSeed = function (seed) {
33
+ this.seed = seed;
34
+ return this;
35
+ };
36
+ RandomStatus.prototype.getUsed = function () {
37
+ return this.used;
38
+ };
39
+ RandomStatus.prototype.setUsed = function (used) {
40
+ this.used = used;
41
+ return this;
42
+ };
43
+ RandomStatus.prototype.withUsed = function (used) {
44
+ this.used = used;
45
+ return this;
46
+ };
47
+ RandomStatus.fromDict = function (data) {
48
+ if (data == undefined || data == null) {
49
+ return null;
50
+ }
51
+ return new RandomStatus()
52
+ .withSeed(data["seed"])
53
+ .withUsed(data.used ?
54
+ data.used.map(function (item) {
55
+ return RandomUsed_1.default.fromDict(item);
56
+ }) : []);
57
+ };
58
+ RandomStatus.prototype.toDict = function () {
59
+ return {
60
+ "seed": this.getSeed(),
61
+ "used": this.getUsed() ?
62
+ this.getUsed().map(function (item) {
63
+ return item.toDict();
64
+ }) : [],
65
+ };
66
+ };
67
+ return RandomStatus;
68
+ }());
69
+ exports.default = RandomStatus;
70
+ //# sourceMappingURL=RandomStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RandomStatus.js","sourceRoot":"","sources":["RandomStatus.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,oEAAsC;AAEtC;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,SAAI,GAAsB,IAAI,CAAC;IA+C3C,CAAC;IA9CU,8BAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,8BAAO,GAAd,UAAe,IAAiB;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,+BAAQ,GAAf,UAAgB,IAAiB;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,8BAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,8BAAO,GAAd,UAAe,IAAuB;QAClC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,+BAAQ,GAAf,UAAgB,IAAuB;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,qBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,YAAY,EAAE;aACpB,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACjB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACrC,OAAO,oBAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrC,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,6BAAM,GAAb;QACI,OAAO;YACH,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;gBACpB,IAAI,CAAC,OAAO,EAAG,CAAC,GAAG,CAAC,UAAC,IAAgB;oBACjC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,mBAAC;AAAD,CAAC,AAjDD,IAiDC"}
@@ -0,0 +1,69 @@
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
+ import IModel from '../../core/interface/IModel';
18
+ import RandomUsed from './RandomUsed';
19
+
20
+ export default class RandomStatus implements IModel {
21
+ private seed: number|null = null;
22
+ private used: RandomUsed[]|null = null;
23
+ public getSeed(): number|null {
24
+ return this.seed;
25
+ }
26
+ public setSeed(seed: number|null) {
27
+ this.seed = seed;
28
+ return this;
29
+ }
30
+ public withSeed(seed: number|null): this {
31
+ this.seed = seed;
32
+ return this;
33
+ }
34
+ public getUsed(): RandomUsed[]|null {
35
+ return this.used;
36
+ }
37
+ public setUsed(used: RandomUsed[]|null) {
38
+ this.used = used;
39
+ return this;
40
+ }
41
+ public withUsed(used: RandomUsed[]|null): this {
42
+ this.used = used;
43
+ return this;
44
+ }
45
+
46
+ public static fromDict(data: {[key: string]: any}): RandomStatus|null {
47
+ if (data == undefined || data == null) {
48
+ return null;
49
+ }
50
+ return new RandomStatus()
51
+ .withSeed(data["seed"])
52
+ .withUsed(data.used ?
53
+ data.used.map((item: {[key: string]: any}) => {
54
+ return RandomUsed.fromDict(item);
55
+ }
56
+ ) : []);
57
+ }
58
+
59
+ public toDict(): {[key: string]: any} {
60
+ return {
61
+ "seed": this.getSeed(),
62
+ "used": this.getUsed() ?
63
+ this.getUsed()!.map((item: RandomUsed) => {
64
+ return item.toDict();
65
+ }
66
+ ) : [],
67
+ };
68
+ }
69
+ }
@@ -0,0 +1,17 @@
1
+ import IModel from '../../core/interface/IModel';
2
+ export default class RandomUsed implements IModel {
3
+ private category;
4
+ private used;
5
+ getCategory(): number | null;
6
+ setCategory(category: number | null): this;
7
+ withCategory(category: number | null): this;
8
+ getUsed(): number | null;
9
+ setUsed(used: number | null): this;
10
+ withUsed(used: number | null): this;
11
+ static fromDict(data: {
12
+ [key: string]: any;
13
+ }): RandomUsed | null;
14
+ toDict(): {
15
+ [key: string]: any;
16
+ };
17
+ }
@@ -0,0 +1,62 @@
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
+ var RandomUsed = /** @class */ (function () {
19
+ function RandomUsed() {
20
+ this.category = null;
21
+ this.used = null;
22
+ }
23
+ RandomUsed.prototype.getCategory = function () {
24
+ return this.category;
25
+ };
26
+ RandomUsed.prototype.setCategory = function (category) {
27
+ this.category = category;
28
+ return this;
29
+ };
30
+ RandomUsed.prototype.withCategory = function (category) {
31
+ this.category = category;
32
+ return this;
33
+ };
34
+ RandomUsed.prototype.getUsed = function () {
35
+ return this.used;
36
+ };
37
+ RandomUsed.prototype.setUsed = function (used) {
38
+ this.used = used;
39
+ return this;
40
+ };
41
+ RandomUsed.prototype.withUsed = function (used) {
42
+ this.used = used;
43
+ return this;
44
+ };
45
+ RandomUsed.fromDict = function (data) {
46
+ if (data == undefined || data == null) {
47
+ return null;
48
+ }
49
+ return new RandomUsed()
50
+ .withCategory(data["category"])
51
+ .withUsed(data["used"]);
52
+ };
53
+ RandomUsed.prototype.toDict = function () {
54
+ return {
55
+ "category": this.getCategory(),
56
+ "used": this.getUsed(),
57
+ };
58
+ };
59
+ return RandomUsed;
60
+ }());
61
+ exports.default = RandomUsed;
62
+ //# sourceMappingURL=RandomUsed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RandomUsed.js","sourceRoot":"","sources":["RandomUsed.ts"],"names":[],"mappings":";AAAA;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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
+ import IModel from '../../core/interface/IModel';
18
+
19
+ export default class RandomUsed implements IModel {
20
+ private category: number|null = null;
21
+ private used: number|null = null;
22
+ public getCategory(): number|null {
23
+ return this.category;
24
+ }
25
+ public setCategory(category: number|null) {
26
+ this.category = category;
27
+ return this;
28
+ }
29
+ public withCategory(category: number|null): this {
30
+ this.category = category;
31
+ return this;
32
+ }
33
+ public getUsed(): number|null {
34
+ return this.used;
35
+ }
36
+ public setUsed(used: number|null) {
37
+ this.used = used;
38
+ return this;
39
+ }
40
+ public withUsed(used: number|null): this {
41
+ this.used = used;
42
+ return this;
43
+ }
44
+
45
+ public static fromDict(data: {[key: string]: any}): RandomUsed|null {
46
+ if (data == undefined || data == null) {
47
+ return null;
48
+ }
49
+ return new RandomUsed()
50
+ .withCategory(data["category"])
51
+ .withUsed(data["used"]);
52
+ }
53
+
54
+ public toDict(): {[key: string]: any} {
55
+ return {
56
+ "category": this.getCategory(),
57
+ "used": this.getUsed(),
58
+ };
59
+ }
60
+ }