Skip to content

Commit

Permalink
Allow claiming donation counts from specific donors. (#76)
Browse files Browse the repository at this point in the history
* Allow claiming donation counts from specific donors.

* Add support for additional properties in incentives.
  • Loading branch information
zyro authored Feb 1, 2025
1 parent d3c1868 commit 13e186a
Show file tree
Hide file tree
Showing 5 changed files with 3,464 additions and 3,314 deletions.
2 changes: 1 addition & 1 deletion economy.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ type EconomySystem interface {
RewardGrant(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, reward *Reward, metadata map[string]interface{}, ignoreLimits bool) (newItems map[string]*InventoryItem, updatedItems map[string]*InventoryItem, notGrantedItemIDs map[string]int64, err error)

// DonationClaim will claim donation rewards for a user and the given donation IDs.
DonationClaim(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, donationIDs []string) (donationsList *EconomyDonationsList, err error)
DonationClaim(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userID string, donationClaims map[string]*EconomyDonationClaimRequestDetails) (donationsList *EconomyDonationsList, err error)

// DonationGet will get all donations for the given list of user IDs.
DonationGet(ctx context.Context, logger runtime.Logger, nk runtime.NakamaModule, userIDs []string) (donationsList *EconomyDonationsByUserList, err error)
Expand Down
Loading

0 comments on commit 13e186a

Please sign in to comment.