Transaction Action of GS2-SkillTree
VerifyAction
ConsumeAction
Gs2SkillTree:MarkRestrainByUserId
Mark an status as unrestrained by specified user ID
Actions for which quantity can be specified: NO
Reversible action: YES
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | |
Set #{userId} to replace the currently logged in user ID. | ||
propertyId | string | Property ID |
nodeModelNames | string[] | List of node model names |
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"
}
}
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 an status as released by user ID
Actions for which quantity can be specified: NO
Reversible action: YES
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
propertyId | string | Property ID |
nodeModelNames | string[] | List of node model names |
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"
}
}
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",
})