TPStashEvent.PlayStage
public int PlayStage(
string player_uuid,
string[] character_uuids,
stageType stage_type,
string stage_slug,
[string stage_category_slug = null],
[string stage_level = null],
[int? stage_score = null],
[stageStatus stage_status = stageStatus.Unknown],
[int? stage_playtime = null]
);
Description
PlayStage collects the data of various stages that the character plays in the game. It needs to be called when an stage begins or ends. It can be used for the analysis of personas about stage playing.
It returns 1 for success and -1 for failure. If -1 is returned, you can see the following message in the Unity editor console in TentuPlay debug mode:
|
|
Parameters
Name | Description | Required | ||
---|---|---|---|---|
player_uuid |
Player’s unique ID (not a character’s ID) such as Steam user ID and Google Play user ID |
Required |
||
character_uuids |
A list of unique character IDs of a player
|
Required |
||
stage_type |
Stage type
|
Required |
||
stage_slug |
Unique identifier of the stage |
Required |
||
stage_category_slug |
Category of the stage type |
Optional |
||
stage_level |
String of the stage level |
Optional |
||
stage_score |
Stage score when the stage ends |
Optional |
||
stage_status |
Stage status
|
Optional |
||
stage_playtime |
Stage play time until the stage ends |
Optional |