Set a custom reward function which will run after an auction’s reward is claimed by the winning bidder.
1
2
3
4
5
6
systems.GetAuctionsSystem().SetOnClaimBid(OnClaimBid)funcOnClaimBid(ctxcontext.Context,loggerruntime.Logger,nkruntime.NakamaModule,userID,sourceIDstring,source*hiro.Auction,reward*hiro.AuctionReward)(*hiro.AuctionReward,error){// Modify reward or take additional actions.
returnreward,nil}
Set a custom reward function which will run after an auction’s winning bid is claimed by the auction creator.
1
2
3
4
5
6
systems.GetAuctionsSystem().SetOnClaimCreated(OnClaimCreated)funcOnClaimCreated(ctxcontext.Context,loggerruntime.Logger,nkruntime.NakamaModule,userID,sourceIDstring,source*hiro.Auction,reward*hiro.AuctionBidAmount)(*hiro.AuctionBidAmount,error){// Modify reward or take additional actions.
returnreward,nil}
Set a custom reward function which will run after a failed auction is claimed by the auction creator.
1
2
3
4
5
6
systems.GetAuctionsSystem().SetOnClaimCreatedFailed(OnClaimCreatedFailed)funcOnClaimCreatedFailed(ctxcontext.Context,loggerruntime.Logger,nkruntime.NakamaModule,userID,sourceIDstring,source*hiro.Auction,reward*hiro.AuctionReward)(*hiro.AuctionReward,error){// Modify reward or take additional actions.
returnreward,nil}