MissionCompleted

The player completed a mission

Name
Type
Select
Backend name
Description

isTutorial

bool

Required

is_tutorial

Is it a tutorial?

missionType

string

Optional

mission_type

Indicate the type of the mission, level, task, quests etc.

missionName

string

Optional

mission_name

missionID

string

Required

mission_id

The unique ID for the mission.

userScore

int

Required

user_score

The player’s score

missionAttempt

int

Required

mission_attempt

Number of times user has played Game Level N (second play of Game Level N = 2)

additionalData

Dictionary<string, object>

Optional

additional_data

Any additional information

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 examples:

Product product = new Product();
List<VirtualCurrency> virtualCurrencies = new List<VirtualCurrency>
{ new VirtualCurrency("coins", "gold", 100) };
product.virtualCurrencies = virtualCurrencies;
Reward reward = new Reward(product);
LionAnalytics.MissionCompleted(
isTutorial: false, 
missionType: "bossFight",
missionName: "fight_level_12",
missionID: "boss_fight_2", 
userScore: 67, 
missionAttempt: 4, 
reward: reward);

Last updated