gs2-cdk 1.0.50 → 1.0.51
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/grade/index.d.ts +12 -0
- package/grade/index.js +32 -0
- package/grade/index.js.map +1 -0
- package/grade/index.ts +36 -0
- package/grade/model/AcquireActionRate.d.ts +16 -0
- package/grade/model/AcquireActionRate.js +42 -0
- package/grade/model/AcquireActionRate.js.map +1 -0
- package/grade/model/AcquireActionRate.ts +85 -0
- package/grade/model/CurrentMasterData.d.ts +13 -0
- package/grade/model/CurrentMasterData.js +50 -0
- package/grade/model/CurrentMasterData.js.map +1 -0
- package/grade/model/CurrentMasterData.ts +70 -0
- package/grade/model/DefaultGradeModel.d.ts +9 -0
- package/grade/model/DefaultGradeModel.js +20 -0
- package/grade/model/DefaultGradeModel.js.map +1 -0
- package/grade/model/DefaultGradeModel.ts +44 -0
- package/grade/model/GradeEntryModel.d.ts +11 -0
- package/grade/model/GradeEntryModel.js +31 -0
- package/grade/model/GradeEntryModel.js.map +1 -0
- package/grade/model/GradeEntryModel.ts +54 -0
- package/grade/model/GradeModel.d.ts +14 -0
- package/grade/model/GradeModel.js +40 -0
- package/grade/model/GradeModel.js.map +1 -0
- package/grade/model/GradeModel.ts +71 -0
- package/grade/model/Namespace.d.ts +22 -0
- package/grade/model/Namespace.js +77 -0
- package/grade/model/Namespace.js.map +1 -0
- package/grade/model/Namespace.ts +122 -0
- package/grade/model/enum/AcquireActionRateMode.d.ts +5 -0
- package/grade/model/enum/AcquireActionRateMode.js +23 -0
- package/grade/model/enum/AcquireActionRateMode.js.map +1 -0
- package/grade/model/enum/AcquireActionRateMode.ts +23 -0
- package/grade/model/index.d.ts +15 -0
- package/grade/model/index.js +34 -0
- package/grade/model/index.js.map +1 -0
- package/grade/model/index.ts +46 -0
- package/grade/model/options/AcquireActionRateModeIsBigOptions.d.ts +2 -0
- package/grade/model/options/AcquireActionRateModeIsBigOptions.js +3 -0
- package/grade/model/options/AcquireActionRateModeIsBigOptions.js.map +1 -0
- package/grade/model/options/AcquireActionRateModeIsBigOptions.ts +19 -0
- package/grade/model/options/AcquireActionRateModeIsDoubleOptions.d.ts +2 -0
- package/grade/model/options/AcquireActionRateModeIsDoubleOptions.js +3 -0
- package/grade/model/options/AcquireActionRateModeIsDoubleOptions.js.map +1 -0
- package/grade/model/options/AcquireActionRateModeIsDoubleOptions.ts +19 -0
- package/grade/model/options/AcquireActionRateOptions.d.ts +4 -0
- package/grade/model/options/AcquireActionRateOptions.js +3 -0
- package/grade/model/options/AcquireActionRateOptions.js.map +1 -0
- package/grade/model/options/AcquireActionRateOptions.ts +22 -0
- package/grade/model/options/DefaultGradeModelOptions.d.ts +2 -0
- package/grade/model/options/DefaultGradeModelOptions.js +18 -0
- package/grade/model/options/DefaultGradeModelOptions.js.map +1 -0
- package/grade/model/options/DefaultGradeModelOptions.ts +19 -0
- package/grade/model/options/GradeEntryModelOptions.d.ts +4 -0
- package/grade/model/options/GradeEntryModelOptions.js +18 -0
- package/grade/model/options/GradeEntryModelOptions.js.map +1 -0
- package/grade/model/options/GradeEntryModelOptions.ts +21 -0
- package/grade/model/options/GradeModelOptions.d.ts +7 -0
- package/grade/model/options/GradeModelOptions.js +3 -0
- package/grade/model/options/GradeModelOptions.js.map +1 -0
- package/grade/model/options/GradeModelOptions.ts +25 -0
- package/grade/model/options/NamespaceOptions.d.ts +9 -0
- package/grade/model/options/NamespaceOptions.js +3 -0
- package/grade/model/options/NamespaceOptions.js.map +1 -0
- package/grade/model/options/NamespaceOptions.ts +26 -0
- package/grade/ref/GradeModelRef.d.ts +6 -0
- package/grade/ref/GradeModelRef.js +38 -0
- package/grade/ref/GradeModelRef.js.map +1 -0
- package/grade/ref/GradeModelRef.ts +52 -0
- package/grade/ref/NamespaceRef.d.ts +21 -0
- package/grade/ref/NamespaceRef.js +64 -0
- package/grade/ref/NamespaceRef.js.map +1 -0
- package/grade/ref/NamespaceRef.ts +159 -0
- package/grade/ref/index.d.ts +3 -0
- package/grade/ref/index.js +24 -0
- package/grade/ref/index.js.map +1 -0
- package/grade/ref/index.ts +22 -0
- package/grade/stampSheet/AddGradeByUserId.d.ts +13 -0
- package/grade/stampSheet/AddGradeByUserId.js +53 -0
- package/grade/stampSheet/AddGradeByUserId.js.map +1 -0
- package/grade/stampSheet/AddGradeByUserId.ts +69 -0
- package/grade/stampSheet/ApplyRankCapByUserId.d.ts +12 -0
- package/grade/stampSheet/ApplyRankCapByUserId.js +48 -0
- package/grade/stampSheet/ApplyRankCapByUserId.js.map +1 -0
- package/grade/stampSheet/ApplyRankCapByUserId.ts +63 -0
- package/grade/stampSheet/MultiplyAcquireActionsByUserId.d.ts +14 -0
- package/grade/stampSheet/MultiplyAcquireActionsByUserId.js +57 -0
- package/grade/stampSheet/MultiplyAcquireActionsByUserId.js.map +1 -0
- package/grade/stampSheet/MultiplyAcquireActionsByUserId.ts +76 -0
- package/grade/stampSheet/SubGradeByUserId.d.ts +13 -0
- package/grade/stampSheet/SubGradeByUserId.js +53 -0
- package/grade/stampSheet/SubGradeByUserId.js.map +1 -0
- package/grade/stampSheet/SubGradeByUserId.ts +69 -0
- package/grade/stampSheet/VerifyGradeByUserId.d.ts +15 -0
- package/grade/stampSheet/VerifyGradeByUserId.js +57 -0
- package/grade/stampSheet/VerifyGradeByUserId.js.map +1 -0
- package/grade/stampSheet/VerifyGradeByUserId.ts +76 -0
- package/grade/stampSheet/VerifyGradeUpMaterialByUserId.d.ts +15 -0
- package/grade/stampSheet/VerifyGradeUpMaterialByUserId.js +56 -0
- package/grade/stampSheet/VerifyGradeUpMaterialByUserId.js.map +1 -0
- package/grade/stampSheet/VerifyGradeUpMaterialByUserId.ts +76 -0
- package/grade/stampSheet/enum/StatusVerifyType.d.ts +5 -0
- package/grade/stampSheet/enum/StatusVerifyType.js +23 -0
- package/grade/stampSheet/enum/StatusVerifyType.js.map +1 -0
- package/grade/stampSheet/enum/StatusVerifyType.ts +23 -0
- package/grade/stampSheet/index.d.ts +7 -0
- package/grade/stampSheet/index.js +32 -0
- package/grade/stampSheet/index.js.map +1 -0
- package/grade/stampSheet/index.ts +30 -0
- package/package.json +1 -1
- package/stateMachine/ref/NamespaceRef.d.ts +1 -2
- package/stateMachine/ref/NamespaceRef.js +2 -2
- package/stateMachine/ref/NamespaceRef.js.map +1 -1
- package/stateMachine/ref/NamespaceRef.ts +0 -3
- package/stateMachine/stampSheet/StartStateMachineByUserId.d.ts +1 -3
- package/stateMachine/stampSheet/StartStateMachineByUserId.js +1 -6
- package/stateMachine/stampSheet/StartStateMachineByUserId.js.map +1 -1
- package/stateMachine/stampSheet/StartStateMachineByUserId.ts +0 -7
|
@@ -0,0 +1,71 @@
|
|
|
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 DefaultGradeModel from "./DefaultGradeModel";
|
|
17
|
+
import GradeEntryModel from "./GradeEntryModel";
|
|
18
|
+
import AcquireActionRate from "./AcquireActionRate";
|
|
19
|
+
import { GradeModelOptions } from "./options/GradeModelOptions";
|
|
20
|
+
|
|
21
|
+
export default class GradeModel {
|
|
22
|
+
private readonly name: string;
|
|
23
|
+
private readonly experienceModelId: string;
|
|
24
|
+
private readonly gradeEntries: GradeEntryModel[];
|
|
25
|
+
private readonly metadata: string|null = null;
|
|
26
|
+
private readonly defaultGrades: DefaultGradeModel[]|null = null;
|
|
27
|
+
private readonly acquireActionRates: AcquireActionRate[]|null = null;
|
|
28
|
+
|
|
29
|
+
public constructor(
|
|
30
|
+
name: string,
|
|
31
|
+
experienceModelId: string,
|
|
32
|
+
gradeEntries: GradeEntryModel[],
|
|
33
|
+
options: GradeModelOptions|null = null,
|
|
34
|
+
) {
|
|
35
|
+
this.name = name;
|
|
36
|
+
this.experienceModelId = experienceModelId;
|
|
37
|
+
this.gradeEntries = gradeEntries;
|
|
38
|
+
this.metadata = options?.metadata ?? null;
|
|
39
|
+
this.defaultGrades = options?.defaultGrades ?? null;
|
|
40
|
+
this.acquireActionRates = options?.acquireActionRates ?? null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public properties(
|
|
44
|
+
): {[name: string]: any} {
|
|
45
|
+
let properties: {[name: string]: any} = {};
|
|
46
|
+
|
|
47
|
+
if (this.name != null) {
|
|
48
|
+
properties["name"] = this.name;
|
|
49
|
+
}
|
|
50
|
+
if (this.metadata != null) {
|
|
51
|
+
properties["metadata"] = this.metadata;
|
|
52
|
+
}
|
|
53
|
+
if (this.defaultGrades != null) {
|
|
54
|
+
properties["defaultGrades"] = this.defaultGrades.map(v => v.properties(
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
if (this.experienceModelId != null) {
|
|
58
|
+
properties["experienceModelId"] = this.experienceModelId;
|
|
59
|
+
}
|
|
60
|
+
if (this.gradeEntries != null) {
|
|
61
|
+
properties["gradeEntries"] = this.gradeEntries.map(v => v.properties(
|
|
62
|
+
));
|
|
63
|
+
}
|
|
64
|
+
if (this.acquireActionRates != null) {
|
|
65
|
+
properties["acquireActionRates"] = this.acquireActionRates.map(v => v.properties(
|
|
66
|
+
));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return properties;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CdkResource, Stack } from "../../core/model";
|
|
2
|
+
import { GetAttr } from "../../core/func";
|
|
3
|
+
import NamespaceRef from "../ref/NamespaceRef";
|
|
4
|
+
import GradeModel from "./GradeModel";
|
|
5
|
+
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
6
|
+
export default class Namespace extends CdkResource {
|
|
7
|
+
private readonly stack;
|
|
8
|
+
private readonly name;
|
|
9
|
+
private readonly description;
|
|
10
|
+
private readonly transactionSetting;
|
|
11
|
+
private readonly changeGradeScript;
|
|
12
|
+
private readonly logSetting;
|
|
13
|
+
constructor(stack: Stack, name: string, options?: NamespaceOptions | null);
|
|
14
|
+
alternateKeys(): string;
|
|
15
|
+
resourceType(): string;
|
|
16
|
+
properties(): {
|
|
17
|
+
[name: string]: any;
|
|
18
|
+
};
|
|
19
|
+
ref(): NamespaceRef;
|
|
20
|
+
getAttrNamespaceId(): GetAttr;
|
|
21
|
+
masterData(gradeModels: GradeModel[]): Namespace;
|
|
22
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
const tslib_1 = require("tslib");
|
|
19
|
+
const model_1 = require("../../core/model");
|
|
20
|
+
const func_1 = require("../../core/func");
|
|
21
|
+
const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
|
|
22
|
+
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
23
|
+
class Namespace extends model_1.CdkResource {
|
|
24
|
+
constructor(stack, name, options = null) {
|
|
25
|
+
var _a, _b, _c, _d;
|
|
26
|
+
super("Grade_Namespace_" + name);
|
|
27
|
+
this.description = null;
|
|
28
|
+
this.transactionSetting = null;
|
|
29
|
+
this.changeGradeScript = null;
|
|
30
|
+
this.logSetting = null;
|
|
31
|
+
this.stack = stack;
|
|
32
|
+
this.name = name;
|
|
33
|
+
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
34
|
+
this.transactionSetting = (_b = options === null || options === void 0 ? void 0 : options.transactionSetting) !== null && _b !== void 0 ? _b : null;
|
|
35
|
+
this.changeGradeScript = (_c = options === null || options === void 0 ? void 0 : options.changeGradeScript) !== null && _c !== void 0 ? _c : null;
|
|
36
|
+
this.logSetting = (_d = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _d !== void 0 ? _d : null;
|
|
37
|
+
stack.addResource(this);
|
|
38
|
+
}
|
|
39
|
+
alternateKeys() {
|
|
40
|
+
return "name";
|
|
41
|
+
}
|
|
42
|
+
resourceType() {
|
|
43
|
+
return "GS2::Grade::Namespace";
|
|
44
|
+
}
|
|
45
|
+
properties() {
|
|
46
|
+
var _a, _b, _c;
|
|
47
|
+
let properties = {};
|
|
48
|
+
if (this.name != null) {
|
|
49
|
+
properties["Name"] = this.name;
|
|
50
|
+
}
|
|
51
|
+
if (this.description != null) {
|
|
52
|
+
properties["Description"] = this.description;
|
|
53
|
+
}
|
|
54
|
+
if (this.transactionSetting != null) {
|
|
55
|
+
properties["TransactionSetting"] = (_a = this.transactionSetting) === null || _a === void 0 ? void 0 : _a.properties();
|
|
56
|
+
}
|
|
57
|
+
if (this.changeGradeScript != null) {
|
|
58
|
+
properties["ChangeGradeScript"] = (_b = this.changeGradeScript) === null || _b === void 0 ? void 0 : _b.properties();
|
|
59
|
+
}
|
|
60
|
+
if (this.logSetting != null) {
|
|
61
|
+
properties["LogSetting"] = (_c = this.logSetting) === null || _c === void 0 ? void 0 : _c.properties();
|
|
62
|
+
}
|
|
63
|
+
return properties;
|
|
64
|
+
}
|
|
65
|
+
ref() {
|
|
66
|
+
return new NamespaceRef_1.default(this.name);
|
|
67
|
+
}
|
|
68
|
+
getAttrNamespaceId() {
|
|
69
|
+
return new func_1.GetAttr(this, "Item.NamespaceId", null);
|
|
70
|
+
}
|
|
71
|
+
masterData(gradeModels) {
|
|
72
|
+
new CurrentMasterData_1.default(this.stack, this.name, gradeModels).addDependsOn(this);
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.default = Namespace;
|
|
77
|
+
//# sourceMappingURL=Namespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;AAC/C,oFAAoD;AAKpD,MAAqB,SAAU,SAAQ,mBAAW;IAQ9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,kBAAkB,GAAG,IAAI,CAC5B,CAAC;QAZW,gBAAW,GAAgB,IAAI,CAAC;QAChC,uBAAkB,GAA4B,IAAI,CAAC;QACnD,sBAAiB,GAAuB,IAAI,CAAC;QAC7C,eAAU,GAAoB,IAAI,CAAC;QAWhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,IAAI,CAAC;QAC9D,IAAI,CAAC,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,mCAAI,IAAI,CAAC;QAC5D,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAC9C,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAGM,aAAa;QAEhB,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,YAAY;QAEf,OAAO,uBAAuB,CAAC;IACnC,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,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,MAAA,IAAI,CAAC,kBAAkB,0CAAE,UAAU,EACrE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,MAAA,IAAI,CAAC,iBAAiB,0CAAE,UAAU,EACnE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;IAEM,UAAU,CACb,WAAyB;QAEzB,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,WAAW,CACd,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA7FD,4BA6FC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
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 {CdkResource, Stack} from "../../core/model";
|
|
18
|
+
import {GetAttr} from "../../core/func";
|
|
19
|
+
import TransactionSetting from "../../core/model/TransactionSetting";
|
|
20
|
+
import ScriptSetting from "../../core/model/ScriptSetting";
|
|
21
|
+
import LogSetting from "../../core/model/LogSetting";
|
|
22
|
+
|
|
23
|
+
import NamespaceRef from "../ref/NamespaceRef";
|
|
24
|
+
import CurrentMasterData from "./CurrentMasterData";
|
|
25
|
+
import GradeModel from "./GradeModel";
|
|
26
|
+
|
|
27
|
+
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
28
|
+
|
|
29
|
+
export default class Namespace extends CdkResource {
|
|
30
|
+
private readonly stack: Stack;
|
|
31
|
+
private readonly name: string;
|
|
32
|
+
private readonly description: string|null = null;
|
|
33
|
+
private readonly transactionSetting: TransactionSetting|null = null;
|
|
34
|
+
private readonly changeGradeScript: ScriptSetting|null = null;
|
|
35
|
+
private readonly logSetting: LogSetting|null = null;
|
|
36
|
+
|
|
37
|
+
public constructor(
|
|
38
|
+
stack: Stack,
|
|
39
|
+
name: string,
|
|
40
|
+
options: NamespaceOptions|null = null,
|
|
41
|
+
) {
|
|
42
|
+
super(
|
|
43
|
+
"Grade_Namespace_" + name
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
this.stack = stack;
|
|
47
|
+
this.name = name;
|
|
48
|
+
this.description = options?.description ?? null;
|
|
49
|
+
this.transactionSetting = options?.transactionSetting ?? null;
|
|
50
|
+
this.changeGradeScript = options?.changeGradeScript ?? null;
|
|
51
|
+
this.logSetting = options?.logSetting ?? null;
|
|
52
|
+
stack.addResource(
|
|
53
|
+
this,
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
public alternateKeys(
|
|
59
|
+
) {
|
|
60
|
+
return "name";
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
public resourceType(
|
|
64
|
+
): string {
|
|
65
|
+
return "GS2::Grade::Namespace";
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
public properties(
|
|
69
|
+
): {[name: string]: any} {
|
|
70
|
+
let properties: {[name: string]: any} = {};
|
|
71
|
+
|
|
72
|
+
if (this.name != null) {
|
|
73
|
+
properties["Name"] = this.name;
|
|
74
|
+
}
|
|
75
|
+
if (this.description != null) {
|
|
76
|
+
properties["Description"] = this.description;
|
|
77
|
+
}
|
|
78
|
+
if (this.transactionSetting != null) {
|
|
79
|
+
properties["TransactionSetting"] = this.transactionSetting?.properties(
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
if (this.changeGradeScript != null) {
|
|
83
|
+
properties["ChangeGradeScript"] = this.changeGradeScript?.properties(
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
if (this.logSetting != null) {
|
|
87
|
+
properties["LogSetting"] = this.logSetting?.properties(
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return properties;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
public ref(
|
|
95
|
+
): NamespaceRef {
|
|
96
|
+
return new NamespaceRef(
|
|
97
|
+
this.name!,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
public getAttrNamespaceId(
|
|
102
|
+
): GetAttr {
|
|
103
|
+
return new GetAttr(
|
|
104
|
+
this,
|
|
105
|
+
"Item.NamespaceId",
|
|
106
|
+
null,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
public masterData(
|
|
111
|
+
gradeModels: GradeModel[],
|
|
112
|
+
): Namespace {
|
|
113
|
+
new CurrentMasterData(
|
|
114
|
+
this.stack,
|
|
115
|
+
this.name,
|
|
116
|
+
gradeModels,
|
|
117
|
+
).addDependsOn(
|
|
118
|
+
this,
|
|
119
|
+
);
|
|
120
|
+
return this;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
exports.AcquireActionRateMode = void 0;
|
|
19
|
+
exports.AcquireActionRateMode = {
|
|
20
|
+
DOUBLE: "double",
|
|
21
|
+
BIG: "big",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=AcquireActionRateMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcquireActionRateMode.js","sourceRoot":"","sources":["AcquireActionRateMode.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,qBAAqB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;CACJ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
|
|
18
|
+
|
|
19
|
+
export const AcquireActionRateMode = {
|
|
20
|
+
DOUBLE: "double",
|
|
21
|
+
BIG: "big",
|
|
22
|
+
} as const;
|
|
23
|
+
export type AcquireActionRateMode = typeof AcquireActionRateMode[keyof typeof AcquireActionRateMode];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Namespace from "./Namespace";
|
|
2
|
+
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
3
|
+
import GradeModel from "./GradeModel";
|
|
4
|
+
import { GradeModelOptions } from "./options/GradeModelOptions";
|
|
5
|
+
import DefaultGradeModel from "./DefaultGradeModel";
|
|
6
|
+
import { DefaultGradeModelOptions } from "./options/DefaultGradeModelOptions";
|
|
7
|
+
import GradeEntryModel from "./GradeEntryModel";
|
|
8
|
+
import { GradeEntryModelOptions } from "./options/GradeEntryModelOptions";
|
|
9
|
+
import AcquireActionRate from "./AcquireActionRate";
|
|
10
|
+
import { AcquireActionRateOptions } from "./options/AcquireActionRateOptions";
|
|
11
|
+
import { AcquireActionRateMode } from "./enum/AcquireActionRateMode";
|
|
12
|
+
import { AcquireActionRateModeIsDoubleOptions } from "./options/AcquireActionRateModeIsDoubleOptions";
|
|
13
|
+
import { AcquireActionRateModeIsBigOptions } from "./options/AcquireActionRateModeIsBigOptions";
|
|
14
|
+
import CurrentMasterData from "./CurrentMasterData";
|
|
15
|
+
export { Namespace, NamespaceOptions, GradeModel, GradeModelOptions, DefaultGradeModel, DefaultGradeModelOptions, GradeEntryModel, GradeEntryModelOptions, AcquireActionRate, AcquireActionRateOptions, AcquireActionRateMode, AcquireActionRateModeIsDoubleOptions, AcquireActionRateModeIsBigOptions, CurrentMasterData, };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CurrentMasterData = exports.AcquireActionRateMode = exports.AcquireActionRate = exports.GradeEntryModel = exports.DefaultGradeModel = exports.GradeModel = exports.Namespace = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/*
|
|
6
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
7
|
+
* Reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
10
|
+
* You may not use this file except in compliance with the License.
|
|
11
|
+
* A copy of the License is located at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
16
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
17
|
+
* express or implied. See the License for the specific language governing
|
|
18
|
+
* permissions and limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
|
|
21
|
+
exports.Namespace = Namespace_1.default;
|
|
22
|
+
const GradeModel_1 = tslib_1.__importDefault(require("./GradeModel"));
|
|
23
|
+
exports.GradeModel = GradeModel_1.default;
|
|
24
|
+
const DefaultGradeModel_1 = tslib_1.__importDefault(require("./DefaultGradeModel"));
|
|
25
|
+
exports.DefaultGradeModel = DefaultGradeModel_1.default;
|
|
26
|
+
const GradeEntryModel_1 = tslib_1.__importDefault(require("./GradeEntryModel"));
|
|
27
|
+
exports.GradeEntryModel = GradeEntryModel_1.default;
|
|
28
|
+
const AcquireActionRate_1 = tslib_1.__importDefault(require("./AcquireActionRate"));
|
|
29
|
+
exports.AcquireActionRate = AcquireActionRate_1.default;
|
|
30
|
+
const AcquireActionRateMode_1 = require("./enum/AcquireActionRateMode");
|
|
31
|
+
Object.defineProperty(exports, "AcquireActionRateMode", { enumerable: true, get: function () { return AcquireActionRateMode_1.AcquireActionRateMode; } });
|
|
32
|
+
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
33
|
+
exports.CurrentMasterData = CurrentMasterData_1.default;
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAgBhC,oBAhBG,mBAAS,CAgBH;AAdb,sEAAsC;AAgBlC,qBAhBG,oBAAU,CAgBH;AAdd,oFAAoD;AAgBhD,4BAhBG,2BAAiB,CAgBH;AAdrB,gFAAgD;AAgB5C,0BAhBG,yBAAe,CAgBH;AAdnB,oFAAoD;AAgBhD,4BAhBG,2BAAiB,CAgBH;AAdrB,wEAAqE;AAgBjE,sGAhBK,6CAAqB,OAgBL;AAbzB,oFAAoD;AAgBhD,4BAhBG,2BAAiB,CAgBH"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 Namespace from "./Namespace";
|
|
17
|
+
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
18
|
+
import GradeModel from "./GradeModel";
|
|
19
|
+
import { GradeModelOptions } from "./options/GradeModelOptions";
|
|
20
|
+
import DefaultGradeModel from "./DefaultGradeModel";
|
|
21
|
+
import { DefaultGradeModelOptions } from "./options/DefaultGradeModelOptions";
|
|
22
|
+
import GradeEntryModel from "./GradeEntryModel";
|
|
23
|
+
import { GradeEntryModelOptions } from "./options/GradeEntryModelOptions";
|
|
24
|
+
import AcquireActionRate from "./AcquireActionRate";
|
|
25
|
+
import { AcquireActionRateOptions } from "./options/AcquireActionRateOptions";
|
|
26
|
+
import { AcquireActionRateMode } from "./enum/AcquireActionRateMode";
|
|
27
|
+
import { AcquireActionRateModeIsDoubleOptions } from "./options/AcquireActionRateModeIsDoubleOptions"
|
|
28
|
+
import { AcquireActionRateModeIsBigOptions } from "./options/AcquireActionRateModeIsBigOptions"
|
|
29
|
+
import CurrentMasterData from "./CurrentMasterData";
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
Namespace,
|
|
33
|
+
NamespaceOptions,
|
|
34
|
+
GradeModel,
|
|
35
|
+
GradeModelOptions,
|
|
36
|
+
DefaultGradeModel,
|
|
37
|
+
DefaultGradeModelOptions,
|
|
38
|
+
GradeEntryModel,
|
|
39
|
+
GradeEntryModelOptions,
|
|
40
|
+
AcquireActionRate,
|
|
41
|
+
AcquireActionRateOptions,
|
|
42
|
+
AcquireActionRateMode,
|
|
43
|
+
AcquireActionRateModeIsDoubleOptions,
|
|
44
|
+
AcquireActionRateModeIsBigOptions,
|
|
45
|
+
CurrentMasterData,
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcquireActionRateModeIsBigOptions.js","sourceRoot":"","sources":["AcquireActionRateModeIsBigOptions.ts"],"names":[],"mappings":""}
|
|
@@ -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
|
+
import { AcquireActionRateMode } from "../enum/AcquireActionRateMode";
|
|
17
|
+
|
|
18
|
+
export interface AcquireActionRateModeIsBigOptions {
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcquireActionRateModeIsDoubleOptions.js","sourceRoot":"","sources":["AcquireActionRateModeIsDoubleOptions.ts"],"names":[],"mappings":""}
|
|
@@ -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
|
+
import { AcquireActionRateMode } from "../enum/AcquireActionRateMode";
|
|
17
|
+
|
|
18
|
+
export interface AcquireActionRateModeIsDoubleOptions {
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcquireActionRateOptions.js","sourceRoot":"","sources":["AcquireActionRateOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { AcquireActionRateMode } from "../enum/AcquireActionRateMode";
|
|
17
|
+
|
|
18
|
+
export interface AcquireActionRateOptions {
|
|
19
|
+
rates?: number[]|null;
|
|
20
|
+
bigRates?: string[]|null;
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -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=DefaultGradeModelOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultGradeModelOptions.js","sourceRoot":"","sources":["DefaultGradeModelOptions.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 DefaultGradeModelOptions {
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -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=GradeEntryModelOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GradeEntryModelOptions.js","sourceRoot":"","sources":["GradeEntryModelOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|