GS2-Exchange Script トリガーリファレンス
exchange
交換実行前にGS2-Scriptを呼び出すイベントトリガー
Request
型 | 説明 | |
---|
namespace | Namespace | ネームスペース |
rateModel | RateModel | 交換レートモデル |
userId | string | 交換を実行しているユーザID |
count | int | 交換量 |
config | Config[] | スタンプシートの変数に適用する設定値 |
Result
型 | 必須 | デフォルト | 値の制限 | 説明 | |
---|
permit | bool | ✓ | | | 交換を許可するか |
実装例
namespace = args.namespace
rateModel = args.rateModel
userId = args.userId
count = args.count
config = args.config
result = {
permit=permit
}
exchangeDone
交換実行後にGS2-Scriptを呼び出すイベントトリガー
Request
型 | 説明 | |
---|
namespace | Namespace | ネームスペース |
rateModel | RateModel | 交換レートモデル |
userId | string | 交換を実行しているユーザID |
count | int | 交換量 |
config | Config[] | スタンプシートの変数に適用する設定値 |
Result
実装例
namespace = args.namespace
rateModel = args.rateModel
userId = args.userId
count = args.count
config = args.config
result = {
}