gs2-cdk 1.0.20 → 1.0.22
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/account/model/Namespace.js +1 -1
- package/account/model/Namespace.js.map +1 -1
- package/account/model/Namespace.ts +2 -2
- package/auth/model/AccessToken.d.ts +1 -2
- package/auth/model/AccessToken.js +1 -5
- package/auth/model/AccessToken.js.map +1 -1
- package/auth/model/AccessToken.ts +0 -6
- package/chat/model/Namespace.js +1 -1
- package/chat/model/Namespace.js.map +1 -1
- package/chat/model/Namespace.ts +2 -2
- package/datastore/model/Namespace.js +1 -1
- package/datastore/model/Namespace.js.map +1 -1
- package/datastore/model/Namespace.ts +2 -2
- package/dictionary/model/Namespace.js +1 -1
- package/dictionary/model/Namespace.js.map +1 -1
- package/dictionary/model/Namespace.ts +2 -2
- package/distributor/model/Namespace.js +1 -1
- package/distributor/model/Namespace.js.map +1 -1
- package/distributor/model/Namespace.ts +2 -2
- package/distributor/model/StampSheetResult.d.ts +1 -3
- package/distributor/model/StampSheetResult.js +1 -9
- package/distributor/model/StampSheetResult.js.map +1 -1
- package/distributor/model/StampSheetResult.ts +0 -12
- package/enchant/index.d.ts +12 -0
- package/enchant/index.js +32 -0
- package/enchant/index.js.map +1 -0
- package/enchant/index.ts +36 -0
- package/enchant/model/BalanceParameterModel.d.ts +14 -0
- package/enchant/model/BalanceParameterModel.js +34 -0
- package/enchant/model/BalanceParameterModel.js.map +1 -0
- package/enchant/model/BalanceParameterModel.ts +64 -0
- package/enchant/model/BalanceParameterValue.d.ts +9 -0
- package/enchant/model/BalanceParameterValue.js +20 -0
- package/enchant/model/BalanceParameterValue.js.map +1 -0
- package/enchant/model/BalanceParameterValue.ts +44 -0
- package/enchant/model/BalanceParameterValueModel.d.ts +9 -0
- package/enchant/model/BalanceParameterValueModel.js +22 -0
- package/enchant/model/BalanceParameterValueModel.js.map +1 -0
- package/enchant/model/BalanceParameterValueModel.ts +43 -0
- package/enchant/model/CurrentMasterData.d.ts +15 -0
- package/enchant/model/CurrentMasterData.js +54 -0
- package/enchant/model/CurrentMasterData.js.map +1 -0
- package/enchant/model/CurrentMasterData.ts +78 -0
- package/enchant/model/Namespace.d.ts +23 -0
- package/enchant/model/Namespace.js +71 -0
- package/enchant/model/Namespace.js.map +1 -0
- package/enchant/model/Namespace.ts +119 -0
- package/enchant/model/RarityParameterCountModel.d.ts +9 -0
- package/enchant/model/RarityParameterCountModel.js +20 -0
- package/enchant/model/RarityParameterCountModel.js.map +1 -0
- package/enchant/model/RarityParameterCountModel.ts +44 -0
- package/enchant/model/RarityParameterModel.d.ts +14 -0
- package/enchant/model/RarityParameterModel.js +34 -0
- package/enchant/model/RarityParameterModel.js.map +1 -0
- package/enchant/model/RarityParameterModel.ts +65 -0
- package/enchant/model/RarityParameterValue.d.ts +10 -0
- package/enchant/model/RarityParameterValue.js +24 -0
- package/enchant/model/RarityParameterValue.js.map +1 -0
- package/enchant/model/RarityParameterValue.ts +50 -0
- package/enchant/model/RarityParameterValueModel.d.ts +12 -0
- package/enchant/model/RarityParameterValueModel.js +34 -0
- package/enchant/model/RarityParameterValueModel.js.map +1 -0
- package/enchant/model/RarityParameterValueModel.ts +61 -0
- package/enchant/model/enum/BalanceParameterModelInitialValueStrategy.d.ts +5 -0
- package/enchant/model/enum/BalanceParameterModelInitialValueStrategy.js +23 -0
- package/enchant/model/enum/BalanceParameterModelInitialValueStrategy.js.map +1 -0
- package/enchant/model/enum/BalanceParameterModelInitialValueStrategy.ts +23 -0
- package/enchant/model/index.d.ts +19 -0
- package/enchant/model/index.js +40 -0
- package/enchant/model/index.js.map +1 -0
- package/enchant/model/index.ts +54 -0
- package/enchant/model/options/BalanceParameterModelOptions.d.ts +3 -0
- package/enchant/model/options/BalanceParameterModelOptions.js +3 -0
- package/enchant/model/options/BalanceParameterModelOptions.js.map +1 -0
- package/enchant/model/options/BalanceParameterModelOptions.ts +22 -0
- package/enchant/model/options/BalanceParameterValueModelOptions.d.ts +3 -0
- package/enchant/model/options/BalanceParameterValueModelOptions.js +18 -0
- package/enchant/model/options/BalanceParameterValueModelOptions.js.map +1 -0
- package/enchant/model/options/BalanceParameterValueModelOptions.ts +20 -0
- package/enchant/model/options/BalanceParameterValueOptions.d.ts +2 -0
- package/enchant/model/options/BalanceParameterValueOptions.js +18 -0
- package/enchant/model/options/BalanceParameterValueOptions.js.map +1 -0
- package/enchant/model/options/BalanceParameterValueOptions.ts +19 -0
- package/enchant/model/options/NamespaceOptions.d.ts +5 -0
- package/enchant/model/options/NamespaceOptions.js +3 -0
- package/enchant/model/options/NamespaceOptions.js.map +1 -0
- package/enchant/model/options/NamespaceOptions.ts +23 -0
- package/enchant/model/options/RarityParameterCountModelOptions.d.ts +2 -0
- package/enchant/model/options/RarityParameterCountModelOptions.js +18 -0
- package/enchant/model/options/RarityParameterCountModelOptions.js.map +1 -0
- package/enchant/model/options/RarityParameterCountModelOptions.ts +19 -0
- package/enchant/model/options/RarityParameterModelOptions.d.ts +3 -0
- package/enchant/model/options/RarityParameterModelOptions.js +3 -0
- package/enchant/model/options/RarityParameterModelOptions.js.map +1 -0
- package/enchant/model/options/RarityParameterModelOptions.ts +22 -0
- package/enchant/model/options/RarityParameterValueModelOptions.d.ts +3 -0
- package/enchant/model/options/RarityParameterValueModelOptions.js +18 -0
- package/enchant/model/options/RarityParameterValueModelOptions.js.map +1 -0
- package/enchant/model/options/RarityParameterValueModelOptions.ts +20 -0
- package/enchant/model/options/RarityParameterValueOptions.d.ts +2 -0
- package/enchant/model/options/RarityParameterValueOptions.js +18 -0
- package/enchant/model/options/RarityParameterValueOptions.js.map +1 -0
- package/enchant/model/options/RarityParameterValueOptions.ts +19 -0
- package/enchant/ref/BalanceParameterModelRef.d.ts +6 -0
- package/enchant/ref/BalanceParameterModelRef.js +39 -0
- package/enchant/ref/BalanceParameterModelRef.js.map +1 -0
- package/enchant/ref/BalanceParameterModelRef.ts +53 -0
- package/enchant/ref/NamespaceRef.d.ts +17 -0
- package/enchant/ref/NamespaceRef.js +60 -0
- package/enchant/ref/NamespaceRef.js.map +1 -0
- package/enchant/ref/NamespaceRef.ts +135 -0
- package/enchant/ref/RarityParameterModelRef.d.ts +6 -0
- package/enchant/ref/RarityParameterModelRef.js +39 -0
- package/enchant/ref/RarityParameterModelRef.js.map +1 -0
- package/enchant/ref/RarityParameterModelRef.ts +53 -0
- package/enchant/ref/index.d.ts +4 -0
- package/enchant/ref/index.js +26 -0
- package/enchant/ref/index.js.map +1 -0
- package/enchant/ref/index.ts +24 -0
- package/enchant/stampSheet/AddRarityParameterStatusByUserId.d.ts +4 -0
- package/enchant/stampSheet/AddRarityParameterStatusByUserId.js +31 -0
- package/enchant/stampSheet/AddRarityParameterStatusByUserId.js.map +1 -0
- package/enchant/stampSheet/AddRarityParameterStatusByUserId.ts +41 -0
- package/enchant/stampSheet/ReDrawBalanceParameterStatusByUserId.d.ts +4 -0
- package/enchant/stampSheet/ReDrawBalanceParameterStatusByUserId.js +31 -0
- package/enchant/stampSheet/ReDrawBalanceParameterStatusByUserId.js.map +1 -0
- package/enchant/stampSheet/ReDrawBalanceParameterStatusByUserId.ts +41 -0
- package/enchant/stampSheet/ReDrawRarityParameterStatusByUserId.d.ts +4 -0
- package/enchant/stampSheet/ReDrawRarityParameterStatusByUserId.js +31 -0
- package/enchant/stampSheet/ReDrawRarityParameterStatusByUserId.js.map +1 -0
- package/enchant/stampSheet/ReDrawRarityParameterStatusByUserId.ts +41 -0
- package/enchant/stampSheet/VerifyRarityParameterStatusByUserId.d.ts +4 -0
- package/enchant/stampSheet/VerifyRarityParameterStatusByUserId.js +33 -0
- package/enchant/stampSheet/VerifyRarityParameterStatusByUserId.js.map +1 -0
- package/enchant/stampSheet/VerifyRarityParameterStatusByUserId.ts +45 -0
- package/enchant/stampSheet/index.d.ts +5 -0
- package/enchant/stampSheet/index.js +28 -0
- package/enchant/stampSheet/index.js.map +1 -0
- package/enchant/stampSheet/index.ts +26 -0
- package/enhance/model/Namespace.js +1 -1
- package/enhance/model/Namespace.js.map +1 -1
- package/enhance/model/Namespace.ts +2 -2
- package/exchange/model/Namespace.js +1 -1
- package/exchange/model/Namespace.js.map +1 -1
- package/exchange/model/Namespace.ts +2 -2
- package/experience/model/AcquireActionRate.d.ts +9 -0
- package/experience/model/AcquireActionRate.js +20 -0
- package/experience/model/AcquireActionRate.js.map +1 -0
- package/experience/model/AcquireActionRate.ts +44 -0
- package/experience/model/ExperienceModel.d.ts +1 -0
- package/experience/model/ExperienceModel.js +6 -1
- package/experience/model/ExperienceModel.js.map +1 -1
- package/experience/model/ExperienceModel.ts +7 -0
- package/experience/model/Namespace.d.ts +1 -0
- package/experience/model/Namespace.js +19 -14
- package/experience/model/Namespace.js.map +1 -1
- package/experience/model/Namespace.ts +9 -2
- package/experience/model/index.d.ts +3 -1
- package/experience/model/index.js +3 -1
- package/experience/model/index.js.map +1 -1
- package/experience/model/index.ts +4 -0
- package/experience/model/options/AcquireActionRateOptions.d.ts +2 -0
- package/experience/model/options/AcquireActionRateOptions.js +18 -0
- package/experience/model/options/AcquireActionRateOptions.js.map +1 -0
- package/experience/model/options/AcquireActionRateOptions.ts +19 -0
- package/experience/model/options/ExperienceModelOptions.d.ts +2 -0
- package/experience/model/options/ExperienceModelOptions.ts +2 -0
- package/experience/model/options/NamespaceOptions.d.ts +2 -0
- package/experience/model/options/NamespaceOptions.ts +2 -0
- package/experience/ref/NamespaceRef.d.ts +3 -0
- package/experience/ref/NamespaceRef.js +4 -0
- package/experience/ref/NamespaceRef.js.map +1 -1
- package/experience/ref/NamespaceRef.ts +19 -0
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.d.ts +4 -0
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.js +32 -0
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.js.map +1 -0
- package/experience/stampSheet/MultiplyAcquireActionsByUserId.ts +43 -0
- package/experience/stampSheet/index.d.ts +2 -1
- package/experience/stampSheet/index.js +3 -1
- package/experience/stampSheet/index.js.map +1 -1
- package/experience/stampSheet/index.ts +2 -0
- package/formation/model/Namespace.js +1 -1
- package/formation/model/Namespace.js.map +1 -1
- package/formation/model/Namespace.ts +2 -2
- package/friend/model/Namespace.js +1 -1
- package/friend/model/Namespace.js.map +1 -1
- package/friend/model/Namespace.ts +2 -2
- package/gateway/model/Namespace.js +1 -1
- package/gateway/model/Namespace.js.map +1 -1
- package/gateway/model/Namespace.ts +2 -2
- package/identifier/model/Identifier.js +2 -2
- package/identifier/model/Identifier.js.map +1 -1
- package/identifier/model/Identifier.ts +4 -4
- package/identifier/model/Password.js +1 -1
- package/identifier/model/Password.js.map +1 -1
- package/identifier/model/Password.ts +2 -2
- package/identifier/model/SecurityPolicy.js +1 -1
- package/identifier/model/SecurityPolicy.js.map +1 -1
- package/identifier/model/SecurityPolicy.ts +2 -2
- package/identifier/model/User.js +1 -1
- package/identifier/model/User.js.map +1 -1
- package/identifier/model/User.ts +2 -2
- package/idle/model/Namespace.js +1 -1
- package/idle/model/Namespace.js.map +1 -1
- package/idle/model/Namespace.ts +2 -2
- package/inbox/model/Namespace.js +1 -1
- package/inbox/model/Namespace.js.map +1 -1
- package/inbox/model/Namespace.ts +2 -2
- package/inventory/model/Namespace.js +1 -1
- package/inventory/model/Namespace.js.map +1 -1
- package/inventory/model/Namespace.ts +2 -2
- package/jobQueue/model/JobResultBody.d.ts +1 -2
- package/jobQueue/model/JobResultBody.js +1 -5
- package/jobQueue/model/JobResultBody.js.map +1 -1
- package/jobQueue/model/JobResultBody.ts +0 -6
- package/jobQueue/model/Namespace.js +1 -1
- package/jobQueue/model/Namespace.js.map +1 -1
- package/jobQueue/model/Namespace.ts +2 -2
- package/key/model/GitHubApiKey.d.ts +1 -3
- package/key/model/GitHubApiKey.js +1 -9
- package/key/model/GitHubApiKey.js.map +1 -1
- package/key/model/GitHubApiKey.ts +0 -12
- package/key/model/Key.js +1 -1
- package/key/model/Key.js.map +1 -1
- package/key/model/Key.ts +2 -2
- package/key/model/Namespace.js +1 -1
- package/key/model/Namespace.js.map +1 -1
- package/key/model/Namespace.ts +2 -2
- package/limit/model/Namespace.js +1 -1
- package/limit/model/Namespace.js.map +1 -1
- package/limit/model/Namespace.ts +2 -2
- package/lock/model/Namespace.js +1 -1
- package/lock/model/Namespace.js.map +1 -1
- package/lock/model/Namespace.ts +2 -2
- package/log/model/Namespace.js +1 -1
- package/log/model/Namespace.js.map +1 -1
- package/log/model/Namespace.ts +2 -2
- package/loginReward/model/Namespace.js +1 -1
- package/loginReward/model/Namespace.js.map +1 -1
- package/loginReward/model/Namespace.ts +2 -2
- package/lottery/model/Namespace.js +1 -1
- package/lottery/model/Namespace.js.map +1 -1
- package/lottery/model/Namespace.ts +2 -2
- package/lottery/model/PrizeLimit.d.ts +1 -3
- package/lottery/model/PrizeLimit.js +1 -9
- package/lottery/model/PrizeLimit.js.map +1 -1
- package/lottery/model/PrizeLimit.ts +0 -12
- package/matchmaking/model/Namespace.js +1 -1
- package/matchmaking/model/Namespace.js.map +1 -1
- package/matchmaking/model/Namespace.ts +2 -2
- package/megaField/model/Layer.d.ts +1 -2
- package/megaField/model/Layer.js +1 -5
- package/megaField/model/Layer.js.map +1 -1
- package/megaField/model/Layer.ts +0 -6
- package/megaField/model/Namespace.js +1 -1
- package/megaField/model/Namespace.js.map +1 -1
- package/megaField/model/Namespace.ts +2 -2
- package/mission/model/CurrentMasterData.d.ts +3 -3
- package/mission/model/CurrentMasterData.js +7 -7
- package/mission/model/CurrentMasterData.js.map +1 -1
- package/mission/model/CurrentMasterData.ts +10 -10
- package/mission/model/MissionTaskModel.d.ts +1 -0
- package/mission/model/MissionTaskModel.js +9 -4
- package/mission/model/MissionTaskModel.js.map +1 -1
- package/mission/model/MissionTaskModel.ts +6 -0
- package/mission/model/Namespace.d.ts +1 -1
- package/mission/model/Namespace.js +3 -3
- package/mission/model/Namespace.js.map +1 -1
- package/mission/model/Namespace.ts +6 -6
- package/mission/model/enum/MissionTaskModelTargetResetType.d.ts +7 -0
- package/mission/model/enum/MissionTaskModelTargetResetType.js +25 -0
- package/mission/model/enum/MissionTaskModelTargetResetType.js.map +1 -0
- package/mission/model/enum/MissionTaskModelTargetResetType.ts +25 -0
- package/mission/model/index.d.ts +2 -1
- package/mission/model/index.js +3 -1
- package/mission/model/index.js.map +1 -1
- package/mission/model/index.ts +2 -0
- package/mission/model/options/MissionTaskModelOptions.d.ts +2 -0
- package/mission/model/options/MissionTaskModelOptions.ts +2 -0
- package/money/model/Namespace.js +1 -1
- package/money/model/Namespace.js.map +1 -1
- package/money/model/Namespace.ts +2 -2
- package/news/model/Namespace.js +1 -1
- package/news/model/Namespace.js.map +1 -1
- package/news/model/Namespace.ts +2 -2
- package/news/model/Output.d.ts +1 -3
- package/news/model/Output.js +1 -9
- package/news/model/Output.js.map +1 -1
- package/news/model/Output.ts +0 -12
- package/news/model/Progress.d.ts +1 -3
- package/news/model/Progress.js +1 -9
- package/news/model/Progress.js.map +1 -1
- package/news/model/Progress.ts +0 -12
- package/package.json +1 -1
- package/quest/model/Namespace.js +1 -1
- package/quest/model/Namespace.js.map +1 -1
- package/quest/model/Namespace.ts +2 -2
- package/ranking/model/Namespace.js +1 -1
- package/ranking/model/Namespace.js.map +1 -1
- package/ranking/model/Namespace.ts +2 -2
- package/realtime/model/Namespace.js +1 -1
- package/realtime/model/Namespace.js.map +1 -1
- package/realtime/model/Namespace.ts +2 -2
- package/realtime/model/Room.js +1 -1
- package/realtime/model/Room.js.map +1 -1
- package/realtime/model/Room.ts +2 -2
- package/schedule/model/Namespace.js +1 -1
- package/schedule/model/Namespace.js.map +1 -1
- package/schedule/model/Namespace.ts +2 -2
- package/script/model/Script.js +1 -1
- package/script/model/Script.js.map +1 -1
- package/script/model/Script.ts +2 -2
- package/serialKey/model/IssueJob.d.ts +1 -2
- package/serialKey/model/IssueJob.js +1 -5
- package/serialKey/model/IssueJob.js.map +1 -1
- package/serialKey/model/IssueJob.ts +0 -6
- package/serialKey/model/Namespace.js +1 -1
- package/serialKey/model/Namespace.js.map +1 -1
- package/serialKey/model/Namespace.ts +2 -2
- package/showcase/model/CurrentMasterData.d.ts +3 -1
- package/showcase/model/CurrentMasterData.js +5 -1
- package/showcase/model/CurrentMasterData.js.map +1 -1
- package/showcase/model/CurrentMasterData.ts +8 -0
- package/showcase/model/Namespace.d.ts +2 -1
- package/showcase/model/Namespace.js +3 -3
- package/showcase/model/Namespace.js.map +1 -1
- package/showcase/model/Namespace.ts +5 -2
- package/showcase/model/PurchaseCount.d.ts +9 -0
- package/showcase/model/PurchaseCount.js +20 -0
- package/showcase/model/PurchaseCount.js.map +1 -0
- package/showcase/model/PurchaseCount.ts +44 -0
- package/showcase/model/RandomDisplayItemModel.d.ts +14 -0
- package/showcase/model/RandomDisplayItemModel.js +39 -0
- package/showcase/model/RandomDisplayItemModel.js.map +1 -0
- package/showcase/model/RandomDisplayItemModel.ts +70 -0
- package/showcase/model/RandomShowcase.d.ts +15 -0
- package/showcase/model/RandomShowcase.js +43 -0
- package/showcase/model/RandomShowcase.js.map +1 -0
- package/showcase/model/RandomShowcase.ts +76 -0
- package/showcase/model/index.d.ts +7 -1
- package/showcase/model/index.js +7 -1
- package/showcase/model/index.js.map +1 -1
- package/showcase/model/index.ts +12 -0
- package/showcase/model/options/PurchaseCountOptions.d.ts +2 -0
- package/showcase/model/options/PurchaseCountOptions.js +18 -0
- package/showcase/model/options/PurchaseCountOptions.js.map +1 -0
- package/showcase/model/options/PurchaseCountOptions.ts +19 -0
- package/showcase/model/options/RandomDisplayItemModelOptions.d.ts +5 -0
- package/showcase/model/options/RandomDisplayItemModelOptions.js +3 -0
- package/showcase/model/options/RandomDisplayItemModelOptions.js.map +1 -0
- package/showcase/model/options/RandomDisplayItemModelOptions.ts +23 -0
- package/showcase/model/options/RandomShowcaseOptions.d.ts +4 -0
- package/showcase/model/options/RandomShowcaseOptions.js +3 -0
- package/showcase/model/options/RandomShowcaseOptions.js.map +1 -0
- package/showcase/model/options/RandomShowcaseOptions.ts +24 -0
- package/showcase/ref/NamespaceRef.d.ts +4 -0
- package/showcase/ref/NamespaceRef.js +9 -0
- package/showcase/ref/NamespaceRef.js.map +1 -1
- package/showcase/ref/NamespaceRef.ts +28 -0
- package/showcase/stampSheet/ForceReDrawByUserId.d.ts +4 -0
- package/showcase/stampSheet/ForceReDrawByUserId.js +29 -0
- package/showcase/stampSheet/ForceReDrawByUserId.js.map +1 -0
- package/showcase/stampSheet/ForceReDrawByUserId.ts +37 -0
- package/showcase/stampSheet/IncrementPurchaseCountByUserId.d.ts +4 -0
- package/showcase/stampSheet/IncrementPurchaseCountByUserId.js +31 -0
- package/showcase/stampSheet/IncrementPurchaseCountByUserId.js.map +1 -0
- package/showcase/stampSheet/IncrementPurchaseCountByUserId.ts +41 -0
- package/showcase/stampSheet/index.d.ts +3 -1
- package/showcase/stampSheet/index.js +7 -1
- package/showcase/stampSheet/index.js.map +1 -1
- package/showcase/stampSheet/index.ts +4 -0
- package/stamina/model/Namespace.js +1 -1
- package/stamina/model/Namespace.js.map +1 -1
- package/stamina/model/Namespace.ts +2 -2
- package/version/model/Namespace.js +1 -1
- package/version/model/Namespace.js.map +1 -1
- package/version/model/Namespace.ts +2 -2
|
@@ -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 { BalanceParameterValueOptions } from "./options/BalanceParameterValueOptions";
|
|
17
|
+
|
|
18
|
+
export default class BalanceParameterValue {
|
|
19
|
+
private readonly name: string;
|
|
20
|
+
private readonly value: number;
|
|
21
|
+
|
|
22
|
+
public constructor(
|
|
23
|
+
name: string,
|
|
24
|
+
value: number,
|
|
25
|
+
options: BalanceParameterValueOptions|null = null,
|
|
26
|
+
) {
|
|
27
|
+
this.name = name;
|
|
28
|
+
this.value = value;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public properties(
|
|
32
|
+
): {[name: string]: any} {
|
|
33
|
+
let properties: {[name: string]: any} = {};
|
|
34
|
+
|
|
35
|
+
if (this.name != null) {
|
|
36
|
+
properties["name"] = this.name;
|
|
37
|
+
}
|
|
38
|
+
if (this.value != null) {
|
|
39
|
+
properties["value"] = this.value;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return properties;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BalanceParameterValueModelOptions } from "./options/BalanceParameterValueModelOptions";
|
|
2
|
+
export default class BalanceParameterValueModel {
|
|
3
|
+
private readonly name;
|
|
4
|
+
private readonly metadata;
|
|
5
|
+
constructor(name: string, options?: BalanceParameterValueModelOptions | 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 BalanceParameterValueModel {
|
|
4
|
+
constructor(name, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.metadata = null;
|
|
7
|
+
this.name = name;
|
|
8
|
+
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
9
|
+
}
|
|
10
|
+
properties() {
|
|
11
|
+
let properties = {};
|
|
12
|
+
if (this.name != null) {
|
|
13
|
+
properties["name"] = this.name;
|
|
14
|
+
}
|
|
15
|
+
if (this.metadata != null) {
|
|
16
|
+
properties["metadata"] = this.metadata;
|
|
17
|
+
}
|
|
18
|
+
return properties;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = BalanceParameterValueModel;
|
|
22
|
+
//# sourceMappingURL=BalanceParameterValueModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BalanceParameterValueModel.js","sourceRoot":"","sources":["BalanceParameterValueModel.ts"],"names":[],"mappings":";;AAiBA,MAAqB,0BAA0B;IAI3C,YACI,IAAY,EACZ,UAAkD,IAAI;;QAJzC,aAAQ,GAAgB,IAAI,CAAC;QAM1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,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,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAzBD,6CAyBC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { BalanceParameterValueModelOptions } from "./options/BalanceParameterValueModelOptions";
|
|
17
|
+
|
|
18
|
+
export default class BalanceParameterValueModel {
|
|
19
|
+
private readonly name: string;
|
|
20
|
+
private readonly metadata: string|null = null;
|
|
21
|
+
|
|
22
|
+
public constructor(
|
|
23
|
+
name: string,
|
|
24
|
+
options: BalanceParameterValueModelOptions|null = null,
|
|
25
|
+
) {
|
|
26
|
+
this.name = name;
|
|
27
|
+
this.metadata = options?.metadata ?? null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public properties(
|
|
31
|
+
): {[name: string]: any} {
|
|
32
|
+
let properties: {[name: string]: any} = {};
|
|
33
|
+
|
|
34
|
+
if (this.name != null) {
|
|
35
|
+
properties["name"] = this.name;
|
|
36
|
+
}
|
|
37
|
+
if (this.metadata != null) {
|
|
38
|
+
properties["metadata"] = this.metadata;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return properties;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CdkResource, Stack } from "../../core/model";
|
|
2
|
+
import BalanceParameterModel from "./BalanceParameterModel";
|
|
3
|
+
import RarityParameterModel from "./RarityParameterModel";
|
|
4
|
+
export default class CurrentMasterData extends CdkResource {
|
|
5
|
+
private readonly version;
|
|
6
|
+
private readonly namespaceName;
|
|
7
|
+
private readonly balanceParameterModels;
|
|
8
|
+
private readonly rarityParameterModels;
|
|
9
|
+
constructor(stack: Stack, namespaceName: string, balanceParameterModels: BalanceParameterModel[], rarityParameterModels: RarityParameterModel[]);
|
|
10
|
+
alternateKeys(): string;
|
|
11
|
+
resourceType(): string;
|
|
12
|
+
properties(): {
|
|
13
|
+
[name: string]: any;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/*
|
|
4
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
5
|
+
* Reserved.
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
8
|
+
* You may not use this file except in compliance with the License.
|
|
9
|
+
* A copy of the License is located at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
14
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
15
|
+
* express or implied. See the License for the specific language governing
|
|
16
|
+
* permissions and limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class CurrentMasterData extends model_1.CdkResource {
|
|
20
|
+
constructor(stack, namespaceName, balanceParameterModels, rarityParameterModels) {
|
|
21
|
+
super("Enchant_CurrentParameterMaster_" + namespaceName);
|
|
22
|
+
this.version = "2023-07-18";
|
|
23
|
+
this.namespaceName = namespaceName;
|
|
24
|
+
this.balanceParameterModels = balanceParameterModels;
|
|
25
|
+
this.rarityParameterModels = rarityParameterModels;
|
|
26
|
+
stack.addResource(this);
|
|
27
|
+
}
|
|
28
|
+
alternateKeys() {
|
|
29
|
+
return this.namespaceName;
|
|
30
|
+
}
|
|
31
|
+
resourceType() {
|
|
32
|
+
return "GS2::Enchant::CurrentParameterMaster";
|
|
33
|
+
}
|
|
34
|
+
properties() {
|
|
35
|
+
let properties = {};
|
|
36
|
+
let settings = {};
|
|
37
|
+
settings["version"] = this.version;
|
|
38
|
+
if (this.balanceParameterModels != null) {
|
|
39
|
+
settings["balanceParameterModels"] = this.balanceParameterModels.map(v => v.properties());
|
|
40
|
+
}
|
|
41
|
+
if (this.rarityParameterModels != null) {
|
|
42
|
+
settings["rarityParameterModels"] = this.rarityParameterModels.map(v => v.properties());
|
|
43
|
+
}
|
|
44
|
+
if (this.namespaceName != null) {
|
|
45
|
+
properties["NamespaceName"] = this.namespaceName;
|
|
46
|
+
}
|
|
47
|
+
if (settings != null) {
|
|
48
|
+
properties["Settings"] = settings;
|
|
49
|
+
}
|
|
50
|
+
return properties;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.default = CurrentMasterData;
|
|
54
|
+
//# sourceMappingURL=CurrentMasterData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentMasterData.js","sourceRoot":"","sources":["CurrentMasterData.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AACH,4CAAoD;AAIpD,MAAqB,iBAAkB,SAAQ,mBAAW;IAMtD,YACI,KAAY,EACZ,aAAqB,EACrB,sBAA+C,EAC/C,qBAA6C;QAE7C,KAAK,CACD,iCAAiC,GAAG,aAAa,CACpD,CAAC;QAbW,YAAO,GAAU,YAAY,CAAC;QAe3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAEM,aAAa;QAEhB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAEM,YAAY;QAEf,OAAO,sCAAsC,CAAC;IAClD,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAC3C,IAAI,QAAQ,GAA0B,EAAE,CAAC;QAEzC,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAA;QAClC,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;YACrC,QAAQ,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACjF,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,qBAAqB,IAAI,IAAI,EAAE;YACpC,QAAQ,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC/E,CAAC,CAAC;SACV;QAED,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,QAAQ,IAAI,IAAI,EAAE;YAClB,UAAU,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC;SACrC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1DD,oCA0DC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
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 {CdkResource, Stack} from "../../core/model";
|
|
17
|
+
import BalanceParameterModel from "./BalanceParameterModel";
|
|
18
|
+
import RarityParameterModel from "./RarityParameterModel";
|
|
19
|
+
|
|
20
|
+
export default class CurrentMasterData extends CdkResource {
|
|
21
|
+
private readonly version: string= "2023-07-18";
|
|
22
|
+
private readonly namespaceName: string;
|
|
23
|
+
private readonly balanceParameterModels: BalanceParameterModel[];
|
|
24
|
+
private readonly rarityParameterModels: RarityParameterModel[];
|
|
25
|
+
|
|
26
|
+
public constructor(
|
|
27
|
+
stack: Stack,
|
|
28
|
+
namespaceName: string,
|
|
29
|
+
balanceParameterModels: BalanceParameterModel[],
|
|
30
|
+
rarityParameterModels: RarityParameterModel[],
|
|
31
|
+
) {
|
|
32
|
+
super(
|
|
33
|
+
"Enchant_CurrentParameterMaster_" + namespaceName
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
this.namespaceName = namespaceName;
|
|
37
|
+
this.balanceParameterModels = balanceParameterModels;
|
|
38
|
+
this.rarityParameterModels = rarityParameterModels;
|
|
39
|
+
stack.addResource(
|
|
40
|
+
this,
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public alternateKeys(
|
|
45
|
+
) {
|
|
46
|
+
return this.namespaceName;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public resourceType(
|
|
50
|
+
): string {
|
|
51
|
+
return "GS2::Enchant::CurrentParameterMaster";
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public properties(
|
|
55
|
+
): {[name: string]: any} {
|
|
56
|
+
let properties: {[name: string]: any} = {};
|
|
57
|
+
let settings: {[name: string]: any} = {};
|
|
58
|
+
|
|
59
|
+
settings["version"] = this.version
|
|
60
|
+
if (this.balanceParameterModels != null) {
|
|
61
|
+
settings["balanceParameterModels"] = this.balanceParameterModels.map(v => v.properties(
|
|
62
|
+
));
|
|
63
|
+
}
|
|
64
|
+
if (this.rarityParameterModels != null) {
|
|
65
|
+
settings["rarityParameterModels"] = this.rarityParameterModels.map(v => v.properties(
|
|
66
|
+
));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (this.namespaceName != null) {
|
|
70
|
+
properties["NamespaceName"] = this.namespaceName;
|
|
71
|
+
}
|
|
72
|
+
if (settings != null) {
|
|
73
|
+
properties["Settings"] = settings;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return properties;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CdkResource, Stack } from "../../core/model";
|
|
2
|
+
import { GetAttr } from "../../core/func";
|
|
3
|
+
import TransactionSetting from "../../core/model/TransactionSetting";
|
|
4
|
+
import NamespaceRef from "../ref/NamespaceRef";
|
|
5
|
+
import BalanceParameterModel from "./BalanceParameterModel";
|
|
6
|
+
import RarityParameterModel from "./RarityParameterModel";
|
|
7
|
+
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
8
|
+
export default class Namespace extends CdkResource {
|
|
9
|
+
private readonly stack;
|
|
10
|
+
private readonly name;
|
|
11
|
+
private readonly transactionSetting;
|
|
12
|
+
private readonly description;
|
|
13
|
+
private readonly logSetting;
|
|
14
|
+
constructor(stack: Stack, name: string, transactionSetting: TransactionSetting, options?: NamespaceOptions | null);
|
|
15
|
+
alternateKeys(): string;
|
|
16
|
+
resourceType(): string;
|
|
17
|
+
properties(): {
|
|
18
|
+
[name: string]: any;
|
|
19
|
+
};
|
|
20
|
+
ref(): NamespaceRef;
|
|
21
|
+
getAttrNamespaceId(): GetAttr;
|
|
22
|
+
masterData(balanceParameterModels: BalanceParameterModel[], rarityParameterModels: RarityParameterModel[]): Namespace;
|
|
23
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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, transactionSetting, options = null) {
|
|
25
|
+
var _a, _b;
|
|
26
|
+
super("Enchant_Namespace_" + name);
|
|
27
|
+
this.description = null;
|
|
28
|
+
this.logSetting = null;
|
|
29
|
+
this.stack = stack;
|
|
30
|
+
this.name = name;
|
|
31
|
+
this.transactionSetting = transactionSetting;
|
|
32
|
+
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
33
|
+
this.logSetting = (_b = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _b !== void 0 ? _b : null;
|
|
34
|
+
stack.addResource(this);
|
|
35
|
+
}
|
|
36
|
+
alternateKeys() {
|
|
37
|
+
return "name";
|
|
38
|
+
}
|
|
39
|
+
resourceType() {
|
|
40
|
+
return "GS2::Enchant::Namespace";
|
|
41
|
+
}
|
|
42
|
+
properties() {
|
|
43
|
+
var _a, _b;
|
|
44
|
+
let properties = {};
|
|
45
|
+
if (this.name != null) {
|
|
46
|
+
properties["Name"] = this.name;
|
|
47
|
+
}
|
|
48
|
+
if (this.description != null) {
|
|
49
|
+
properties["Description"] = this.description;
|
|
50
|
+
}
|
|
51
|
+
if (this.transactionSetting != null) {
|
|
52
|
+
properties["TransactionSetting"] = (_a = this.transactionSetting) === null || _a === void 0 ? void 0 : _a.properties();
|
|
53
|
+
}
|
|
54
|
+
if (this.logSetting != null) {
|
|
55
|
+
properties["LogSetting"] = (_b = this.logSetting) === null || _b === void 0 ? void 0 : _b.properties();
|
|
56
|
+
}
|
|
57
|
+
return properties;
|
|
58
|
+
}
|
|
59
|
+
ref() {
|
|
60
|
+
return new NamespaceRef_1.default(this.name);
|
|
61
|
+
}
|
|
62
|
+
getAttrNamespaceId() {
|
|
63
|
+
return new func_1.GetAttr(this, "Item.NamespaceId", null);
|
|
64
|
+
}
|
|
65
|
+
masterData(balanceParameterModels, rarityParameterModels) {
|
|
66
|
+
new CurrentMasterData_1.default(this.stack, this.name, balanceParameterModels, rarityParameterModels).addDependsOn(this);
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.default = Namespace;
|
|
71
|
+
//# 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;AAIxC,+EAA+C;AAC/C,oFAAoD;AAMpD,MAAqB,SAAU,SAAQ,mBAAW;IAO9C,YACI,KAAY,EACZ,IAAY,EACZ,kBAAsC,EACtC,UAAiC,IAAI;;QAErC,KAAK,CACD,oBAAoB,GAAG,IAAI,CAC9B,CAAC;QAXW,gBAAW,GAAgB,IAAI,CAAC;QAChC,eAAU,GAAoB,IAAI,CAAC;QAYhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,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,yBAAyB,CAAC;IACrC,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,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,sBAA+C,EAC/C,qBAA6C;QAE7C,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,sBAAsB,EACtB,qBAAqB,CACxB,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA1FD,4BA0FC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
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 LogSetting from "../../core/model/LogSetting";
|
|
21
|
+
|
|
22
|
+
import NamespaceRef from "../ref/NamespaceRef";
|
|
23
|
+
import CurrentMasterData from "./CurrentMasterData";
|
|
24
|
+
import BalanceParameterModel from "./BalanceParameterModel";
|
|
25
|
+
import RarityParameterModel from "./RarityParameterModel";
|
|
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 transactionSetting: TransactionSetting;
|
|
33
|
+
private readonly description: string|null = null;
|
|
34
|
+
private readonly logSetting: LogSetting|null = null;
|
|
35
|
+
|
|
36
|
+
public constructor(
|
|
37
|
+
stack: Stack,
|
|
38
|
+
name: string,
|
|
39
|
+
transactionSetting: TransactionSetting,
|
|
40
|
+
options: NamespaceOptions|null = null,
|
|
41
|
+
) {
|
|
42
|
+
super(
|
|
43
|
+
"Enchant_Namespace_" + name
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
this.stack = stack;
|
|
47
|
+
this.name = name;
|
|
48
|
+
this.transactionSetting = transactionSetting;
|
|
49
|
+
this.description = options?.description ?? null;
|
|
50
|
+
this.logSetting = options?.logSetting ?? null;
|
|
51
|
+
stack.addResource(
|
|
52
|
+
this,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
public alternateKeys(
|
|
58
|
+
) {
|
|
59
|
+
return "name";
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
public resourceType(
|
|
63
|
+
): string {
|
|
64
|
+
return "GS2::Enchant::Namespace";
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
public properties(
|
|
68
|
+
): {[name: string]: any} {
|
|
69
|
+
let properties: {[name: string]: any} = {};
|
|
70
|
+
|
|
71
|
+
if (this.name != null) {
|
|
72
|
+
properties["Name"] = this.name;
|
|
73
|
+
}
|
|
74
|
+
if (this.description != null) {
|
|
75
|
+
properties["Description"] = this.description;
|
|
76
|
+
}
|
|
77
|
+
if (this.transactionSetting != null) {
|
|
78
|
+
properties["TransactionSetting"] = this.transactionSetting?.properties(
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
if (this.logSetting != null) {
|
|
82
|
+
properties["LogSetting"] = this.logSetting?.properties(
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return properties;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
public ref(
|
|
90
|
+
): NamespaceRef {
|
|
91
|
+
return new NamespaceRef(
|
|
92
|
+
this.name!,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
public getAttrNamespaceId(
|
|
97
|
+
): GetAttr {
|
|
98
|
+
return new GetAttr(
|
|
99
|
+
this,
|
|
100
|
+
"Item.NamespaceId",
|
|
101
|
+
null,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
public masterData(
|
|
106
|
+
balanceParameterModels: BalanceParameterModel[],
|
|
107
|
+
rarityParameterModels: RarityParameterModel[],
|
|
108
|
+
): Namespace {
|
|
109
|
+
new CurrentMasterData(
|
|
110
|
+
this.stack,
|
|
111
|
+
this.name,
|
|
112
|
+
balanceParameterModels,
|
|
113
|
+
rarityParameterModels,
|
|
114
|
+
).addDependsOn(
|
|
115
|
+
this,
|
|
116
|
+
);
|
|
117
|
+
return this;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RarityParameterCountModelOptions } from "./options/RarityParameterCountModelOptions";
|
|
2
|
+
export default class RarityParameterCountModel {
|
|
3
|
+
private readonly count;
|
|
4
|
+
private readonly weight;
|
|
5
|
+
constructor(count: number, weight: number, options?: RarityParameterCountModelOptions | 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 RarityParameterCountModel {
|
|
4
|
+
constructor(count, weight, options = null) {
|
|
5
|
+
this.count = count;
|
|
6
|
+
this.weight = weight;
|
|
7
|
+
}
|
|
8
|
+
properties() {
|
|
9
|
+
let properties = {};
|
|
10
|
+
if (this.count != null) {
|
|
11
|
+
properties["count"] = this.count;
|
|
12
|
+
}
|
|
13
|
+
if (this.weight != null) {
|
|
14
|
+
properties["weight"] = this.weight;
|
|
15
|
+
}
|
|
16
|
+
return properties;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = RarityParameterCountModel;
|
|
20
|
+
//# sourceMappingURL=RarityParameterCountModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RarityParameterCountModel.js","sourceRoot":"","sources":["RarityParameterCountModel.ts"],"names":[],"mappings":";;AAiBA,MAAqB,yBAAyB;IAI1C,YACI,KAAa,EACb,MAAc,EACd,UAAiD,IAAI;QAErD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,4CA0BC"}
|
|
@@ -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 { RarityParameterCountModelOptions } from "./options/RarityParameterCountModelOptions";
|
|
17
|
+
|
|
18
|
+
export default class RarityParameterCountModel {
|
|
19
|
+
private readonly count: number;
|
|
20
|
+
private readonly weight: number;
|
|
21
|
+
|
|
22
|
+
public constructor(
|
|
23
|
+
count: number,
|
|
24
|
+
weight: number,
|
|
25
|
+
options: RarityParameterCountModelOptions|null = null,
|
|
26
|
+
) {
|
|
27
|
+
this.count = count;
|
|
28
|
+
this.weight = weight;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public properties(
|
|
32
|
+
): {[name: string]: any} {
|
|
33
|
+
let properties: {[name: string]: any} = {};
|
|
34
|
+
|
|
35
|
+
if (this.count != null) {
|
|
36
|
+
properties["count"] = this.count;
|
|
37
|
+
}
|
|
38
|
+
if (this.weight != null) {
|
|
39
|
+
properties["weight"] = this.weight;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return properties;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import RarityParameterCountModel from "./RarityParameterCountModel";
|
|
2
|
+
import RarityParameterValueModel from "./RarityParameterValueModel";
|
|
3
|
+
import { RarityParameterModelOptions } from "./options/RarityParameterModelOptions";
|
|
4
|
+
export default class RarityParameterModel {
|
|
5
|
+
private readonly name;
|
|
6
|
+
private readonly maximumParameterCount;
|
|
7
|
+
private readonly parameterCounts;
|
|
8
|
+
private readonly parameters;
|
|
9
|
+
private readonly metadata;
|
|
10
|
+
constructor(name: string, maximumParameterCount: number, parameterCounts: RarityParameterCountModel[], parameters: RarityParameterValueModel[], options?: RarityParameterModelOptions | null);
|
|
11
|
+
properties(): {
|
|
12
|
+
[name: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class RarityParameterModel {
|
|
4
|
+
constructor(name, maximumParameterCount, parameterCounts, parameters, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.metadata = null;
|
|
7
|
+
this.name = name;
|
|
8
|
+
this.maximumParameterCount = maximumParameterCount;
|
|
9
|
+
this.parameterCounts = parameterCounts;
|
|
10
|
+
this.parameters = parameters;
|
|
11
|
+
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
12
|
+
}
|
|
13
|
+
properties() {
|
|
14
|
+
let properties = {};
|
|
15
|
+
if (this.name != null) {
|
|
16
|
+
properties["name"] = this.name;
|
|
17
|
+
}
|
|
18
|
+
if (this.metadata != null) {
|
|
19
|
+
properties["metadata"] = this.metadata;
|
|
20
|
+
}
|
|
21
|
+
if (this.maximumParameterCount != null) {
|
|
22
|
+
properties["maximumParameterCount"] = this.maximumParameterCount;
|
|
23
|
+
}
|
|
24
|
+
if (this.parameterCounts != null) {
|
|
25
|
+
properties["parameterCounts"] = this.parameterCounts.map(v => v.properties());
|
|
26
|
+
}
|
|
27
|
+
if (this.parameters != null) {
|
|
28
|
+
properties["parameters"] = this.parameters.map(v => v.properties());
|
|
29
|
+
}
|
|
30
|
+
return properties;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.default = RarityParameterModel;
|
|
34
|
+
//# sourceMappingURL=RarityParameterModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RarityParameterModel.js","sourceRoot":"","sources":["RarityParameterModel.ts"],"names":[],"mappings":";;AAmBA,MAAqB,oBAAoB;IAOrC,YACI,IAAY,EACZ,qBAA6B,EAC7B,eAA4C,EAC5C,UAAuC,EACvC,UAA4C,IAAI;;QAPnC,aAAQ,GAAgB,IAAI,CAAC;QAS1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,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,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,qBAAqB,IAAI,IAAI,EAAE;YACpC,UAAU,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC;SACpE;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACrE,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC3D,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA7CD,uCA6CC"}
|