Transaction Action of GS2-SkillTree
Specification of verify/consume/acquire transaction actions
ConsumeAction
Gs2SkillTree:MarkRestrainByUserId
Revert a node to unreleased state by specified a user ID
Whether the action allows quantity specification: NO
Whether the action is reversible: YES
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| namespaceName | string | ✓ | ~ 128 chars | Namespace name Namespace-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.). | ||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||
| nodeModelNames | List<string> | ✓ | 1 ~ 1000 items | List of node model names | ||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2SkillTree:MarkRestrainByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"propertyId": "[string]Property ID",
"nodeModelNames": [
"[string]Node Model name"
],
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2SkillTree:MarkRestrainByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
propertyId: "[string]Property ID"
nodeModelNames:
- "[string]Node Model name"
timeOffsetToken: "[string]Time offset token"transaction.service("skillTree").consume.mark_restrain_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
propertyId="[string]Property ID",
nodeModelNames={
"[string]Node Model name"
},
timeOffsetToken="[string]Time offset token",
})AcquireAction
Gs2SkillTree:MarkReleaseByUserId
Mark a node as released by specifying a user ID
Whether the action allows quantity specification: NO
Whether the action is reversible: YES
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| namespaceName | string | ✓ | ~ 128 chars | Namespace name Namespace-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.). | ||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||
| nodeModelNames | List<string> | ✓ | 1 ~ 1000 items | List of Node Model names | ||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2SkillTree:MarkReleaseByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"propertyId": "[string]Property ID",
"nodeModelNames": [
"[string]Node Model name"
],
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2SkillTree:MarkReleaseByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
propertyId: "[string]Property ID"
nodeModelNames:
- "[string]Node Model name"
timeOffsetToken: "[string]Time offset token"transaction.service("skillTree").acquire.mark_release_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
propertyId="[string]Property ID",
nodeModelNames={
"[string]Node Model name"
},
timeOffsetToken="[string]Time offset token",
})