TPStashEvent.EquipInfrastructure
public int EquipInfrastructure(
string player_uuid,
string character_uuid,
string item_slug,
equipStatus equip_status,
[int? character_level = null],
[int? item_level = null]
);
Description
EquipInfrastructure collects the events that occur when a character equips or unequips an infrastructure.
|
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_uuid |
Player’s character’s unique lD
|
Required |
||
item_slug |
Unique identifier of the item (for example, "weapon_sword_dagger" and "shield_kite_rare") |
Required |
||
equip_status |
Status code that represents whether the infrastructure is equipped or not
|
Required |
||
item_level |
The level of the item which was equipped |
Optional |
||
character_level |
The level of the character when equipping the infrastructure |
Optional |