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

NameTypeSelectBackend nameDescription
additionalDataDictionaryOptionaladditional_dataAny additional information
giftRewardRequiredrewardThe reward object which contains the name, type, amount and such.
levelUpNamestringRequiredlevel_up_nameThe level up name
rewardRewardRequiredrewardIf 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));