Trigger Reference of GS2-Dictionary Script
entry
Event trigger to call GS2-Script before entry registration.
Request
Type | Description | |
---|
namespace | Namespace | Namespace |
entryModels | EntryModel[] | List of Entry Models |
userId | string | User Id |
Result
Type | Require | Default | Limitation | Description | |
---|
permit | bool | ✓ | | | Allow entry registration |
Implementation Example
namespace = args.namespace
entryModels = args.entryModels
userId = args.userId
result = {
permit=permit
}
entryDone
GS2-Script called after entry registration.
Request
Type | Description | |
---|
namespace | Namespace | Namespace |
entryModels | EntryModel[] | List of Entry Models |
userId | string | User Id |
Result
Type | Require | Default | Limitation | Description | |
---|
Implementation Example
namespace = args.namespace
entryModels = args.entryModels
userId = args.userId
result = {
}
duplicateEntry
Event trigger to call GS2-Script when GS2-Script executed when an attempt is made to re-register an entry that has already been registered..
Request
Type | Description | |
---|
namespace | Namespace | Namespace |
entryModel | EntryModel | Entry Model |
userId | string | User Id |
Result
Type | Require | Default | Limitation | Description | |
---|
Implementation Example
namespace = args.namespace
entryModel = args.entryModel
userId = args.userId
result = {
}