|
Keewano Unity SDK
|
Keewano tracks game balance by defining the concept of an "item". An item is any countable element that can be given or taken within the game. Examples include:
Items are identified by their name across all item-related SDK methods. Use the same item name whether the player earns it from gameplay, purchases it with real money, or receives it from watching ads.
To set or reset a specific item for the user, use KeewanoSDK.ReportItemsReset.
KeewanoSDK.ReportItemsReset is designed to both initialize items with default values and override existing values. This function is typically used during initial setup or in response to a support command to ensure the user's items are accurate and up-to-date.
To track game balance, rewards, or lost items, use the KeewanoSDK.ReportItemsExchange. For example, a player spends 5 gold coins and a healing potion to get 1 vial of eternal life. Passing null as the to parameter means that the user lost the items (e.g., a broken sword or payment to pass a bridge), while passing null to the from parameter means the user gets a reward, such as collecting an item on the road or level win rewards.
When the player enters a Match3 level, they lose 1 attempt and 1 bomb booster, their moves are reset to 5, they perform 3 moves (each reducing the moves count by 1), and finally win 50 gold coins and a rainbow booster.
In this scenario, the support team issues a command to fix a user's balance, resetting it to a predefined default state.
A coffee can be paid with EITHER a Drink Voucher OR 5 Cafe Credits.
Every purchase adds +1 to a simple stamp card. At 10 stamps, the next coffee is free.