GS2-Idle マスターデータリファレンス
マスターデータのフォーマットと インポートする各種モデルのリファレンス
マスターデータのフォーマット
{
"version": "2023-06-06",
"categoryModels": [
{
"name": "[string]カテゴリーモデル名",
"metadata": "[string?]メタデータ",
"rewardIntervalMinutes": "[int]待機報酬が得られる間隔(分)",
"defaultMaximumIdleMinutes": "[int]待機報酬が得られる最大時間(分)",
"rewardResetMode": "[string]報酬受け取り後の待機時間のリセット方針",
"acquireActions": [
{
"acquireActions": [
{
"action": "[string]入手アクションで実行するアクションの種類",
"request": "[string]アクション実行時に使用されるリクエストのJSON文字列"
}
]
}
],
"idlePeriodScheduleId": "[string?]放置報酬計算に使用される期間を設定した GS2-Schedule イベントGRN",
"receivePeriodScheduleId": "[string?]放置報酬を受け取れる期間を設定した GS2-Schedule イベントGRN"
}
]
}
| 型 | 有効化条件 | 必須 | デフォルト | 値の制限 | 説明 |
|---|
| version | string | | ✓ | 2023-06-06 | | マスターデータのフォーマットバージョン |
| categoryModels | List<CategoryModel> | | | | ~ 100 items | カテゴリーモデル カテゴリーモデルとは、放置報酬を得られる待機カテゴリーの設定するエンティティです。 設定には、待機時間ごとの報酬や、最大待機時間などの情報が含まれます。 |
モデル
CategoryModel
カテゴリーモデル
カテゴリーモデルとは、放置報酬を得られる待機カテゴリーの設定するエンティティです。
設定には、待機時間ごとの報酬や、最大待機時間などの情報が含まれます。
| 型 | 有効化条件 | 必須 | デフォルト | 値の制限 | 説明 |
|---|
| categoryModelId | string | | ✓* | | ~ 1024文字 | カテゴリーモデル
GRN ※ サーバー側で自動的に設定 |
| name | string | | ✓ | | ~ 128文字 | カテゴリーモデル名 |
| metadata | string | | | | ~ 2048文字 | メタデータ |
| rewardIntervalMinutes | int | | ✓ | | 0 ~ 2147483646 | 待機報酬が得られる間隔(分) |
| defaultMaximumIdleMinutes | int | | ✓ | | 0 ~ 2147483646 | 待機報酬が得られる最大時間(分) |
| rewardResetMode | 文字列列挙型 enum { “Reset”, “CarryOver” }
| | ✓ | “Reset” | | 報酬受け取り後の待機時間のリセット方針| 定義 | 説明 |
|---|
| “Reset” | 待機時間を0にリセット | | “CarryOver” | 報酬を得るまでいたらなかった時間を持ち越す |
|
| acquireActions | List<AcquireActionList> | | ✓ | [] | 1 ~ 100 items | 待機時間ごとに得られる入手アクションリスト 待機時間を「X分」だと仮定すると 「X / rewardIntervalMinutes」が報酬を受け取れる数になりますが、ここで指定した配列の要素をループすることで、待機時間ごとに異なる報酬を付与できます。 |
| idlePeriodScheduleId | string | | | | ~ 1024文字 | 放置報酬計算に使用される期間を設定した GS2-Schedule イベント
GRN |
| receivePeriodScheduleId | string | | | | ~ 1024文字 | 放置報酬を受け取れる期間を設定した GS2-Schedule イベント
GRN |
AcquireActionList
入手アクションリスト
AcquireAction
入手アクション
| 型 | 有効化条件 | 必須 | デフォルト | 値の制限 | 説明 |
|---|
| action | 文字列列挙型 enum { "Gs2AdReward:AcquirePointByUserId", "Gs2Dictionary:AddEntriesByUserId", "Gs2Enchant:ReDrawBalanceParameterStatusByUserId", "Gs2Enchant:SetBalanceParameterStatusByUserId", "Gs2Enchant:ReDrawRarityParameterStatusByUserId", "Gs2Enchant:AddRarityParameterStatusByUserId", "Gs2Enchant:SetRarityParameterStatusByUserId", "Gs2Enhance:DirectEnhanceByUserId", "Gs2Enhance:UnleashByUserId", "Gs2Enhance:CreateProgressByUserId", "Gs2Exchange:ExchangeByUserId", "Gs2Exchange:IncrementalExchangeByUserId", "Gs2Exchange:CreateAwaitByUserId", "Gs2Exchange:AcquireForceByUserId", "Gs2Exchange:SkipByUserId", "Gs2Experience:AddExperienceByUserId", "Gs2Experience:SetExperienceByUserId", "Gs2Experience:AddRankCapByUserId", "Gs2Experience:SetRankCapByUserId", "Gs2Experience:MultiplyAcquireActionsByUserId", "Gs2Formation:AddMoldCapacityByUserId", "Gs2Formation:SetMoldCapacityByUserId", "Gs2Formation:AcquireActionsToFormProperties", "Gs2Formation:SetFormByUserId", "Gs2Formation:AcquireActionsToPropertyFormProperties", "Gs2Friend:UpdateProfileByUserId", "Gs2Grade:AddGradeByUserId", "Gs2Grade:ApplyRankCapByUserId", "Gs2Grade:MultiplyAcquireActionsByUserId", "Gs2Guild:IncreaseMaximumCurrentMaximumMemberCountByGuildName", "Gs2Guild:SetMaximumCurrentMaximumMemberCountByGuildName", "Gs2Idle:IncreaseMaximumIdleMinutesByUserId", "Gs2Idle:SetMaximumIdleMinutesByUserId", "Gs2Idle:ReceiveByUserId", "Gs2Inbox:SendMessageByUserId", "Gs2Inventory:AddCapacityByUserId", "Gs2Inventory:SetCapacityByUserId", "Gs2Inventory:AcquireItemSetByUserId", "Gs2Inventory:AcquireItemSetWithGradeByUserId", "Gs2Inventory:AddReferenceOfByUserId", "Gs2Inventory:DeleteReferenceOfByUserId", "Gs2Inventory:AcquireSimpleItemsByUserId", "Gs2Inventory:SetSimpleItemsByUserId", "Gs2Inventory:AcquireBigItemByUserId", "Gs2Inventory:SetBigItemByUserId", "Gs2JobQueue:PushByUserId", "Gs2Limit:CountDownByUserId", "Gs2Limit:DeleteCounterByUserId", "Gs2LoginReward:DeleteReceiveStatusByUserId", "Gs2LoginReward:UnmarkReceivedByUserId", "Gs2Lottery:DrawByUserId", "Gs2Lottery:ResetBoxByUserId", "Gs2Mission:RevertReceiveByUserId", "Gs2Mission:IncreaseCounterByUserId", "Gs2Mission:SetCounterByUserId", "Gs2Money:DepositByUserId", "Gs2Money:RevertRecordReceipt", "Gs2Money2:DepositByUserId", "Gs2Quest:CreateProgressByUserId", "Gs2Schedule:TriggerByUserId", "Gs2Schedule:ExtendTriggerByUserId", "Gs2Script:InvokeScript", "Gs2SerialKey:RevertUseByUserId", "Gs2SerialKey:IssueOnce", "Gs2Showcase:DecrementPurchaseCountByUserId", "Gs2Showcase:ForceReDrawByUserId", "Gs2SkillTree:MarkReleaseByUserId", "Gs2Stamina:RecoverStaminaByUserId", "Gs2Stamina:RaiseMaxValueByUserId", "Gs2Stamina:SetMaxValueByUserId", "Gs2Stamina:SetRecoverIntervalByUserId", "Gs2Stamina:SetRecoverValueByUserId", "Gs2StateMachine:StartStateMachineByUserId", }
| | ✓ | | | 入手アクションで実行するアクションの種類 |
| request | string | | ✓ | | ~ 524288文字 | アクション実行時に使用されるリクエストのJSON文字列 |