LevelUp

Introduction

  • Backend Name: level_up

  • Description: The player leveled up. Note: this is for “player levels”. These are traditionally linked to “XP points” earned during gameplay. This is different from completing “game levels”, which is tracked by Mission Event

  • Event Type: Game

  • Priority: P5

Parameters

Name Type Select Backend name Description
additionalData Dictionary Optional additional_data Any additional information
gift Reward Required reward The reward object which contains the name, type, amount and such.
levelUpName string Required level_up_name The level up name
reward Reward Required reward If rewards are given to the player at the time of the event, the reward object is used to track the items (e.g., boosters, coins, gems, etc) or currencies gifted or earned by the player to the player.

Code example

Product product = new Product();
product.virtualCurrencies = new List<VirtualCurrency>
    { new VirtualCurrency("coins", "gold", 100) };
LionAnalytics.LevelUp("sword_level_upgrade", new Reward(product));