Trigger Reference of GS2-LoginReward Script

receive

Event trigger to call GS2-Script before Receive.

Request

TypeDescription
namespaceNamespaceNamespace
bonusModelBonusModelBonus model
userIdstringUser ID performing the loginReward
configConfig[]Set values to be applied to stamp sheet variables

Result

TypeRequireDefaultLimitationDescription
permitboolAllow buy

Implementation Example

namespace = args.namespace
bonusModel = args.bonusModel
userId = args.userId
config = args.config

result = {
  permit=permit
}

receiveDone

GS2-Script called after Receive.

Request

TypeDescription
namespaceNamespaceNamespace
bonusModelBonusModelBonus model
userIdstringUser ID performing the loginReward
configConfig[]Set values to be applied to stamp sheet variables

Result

TypeRequireDefaultLimitationDescription

Implementation Example

namespace = args.namespace
bonusModel = args.bonusModel
userId = args.userId
config = args.config

result = {
}