TPStashEvent.OpenRandomBox
public int OpenRandomBox(
string player_uuid,
string character_uuid,
string item_slug,
float item_quantity,
[entity where_to_entity = entity.None],
[string where_to_category_slug = null],
[string where_to_slug = null]
);
설명
캐릭터가 게임 내 랜덤박스(RandomBox)를 개봉한 이벤트 데이터를 수집합니다.
|
호출이 성공한 경우 1이, 실패한 경우 -1이 반환됩니다. 호출에 실패할 경우 유니티 에디터 콘솔 TentuPlay debug mode에서 다음과 같은 메시지가 출력됩니다.
|
파라미터
이름 | 설명 | 필수 여부 | ||
---|---|---|---|---|
player_uuid |
플레이어의 고유 ID(캐릭터 ID가 아닌)로 Steam 사용자 ID나 Google Play 사용자 ID를 말함 |
필수 |
||
character_uuid |
플레이어 캐릭터의 고유 ID
|
필수 |
||
item_slug |
아이템의 고유 구분자 (예: "weapon_sword_dagger", "shield_kite_rare") |
필수 |
||
item_quantity |
개봉한 랜덤박스 갯수 또는 양 |
필수 |
||
where_to_entity |
랜덤박스를 개봉한 결과를 나타내는 개체 개체
|
선택 |
||
where_to_category_slug |
랜덤박스를 개봉한 장소, 상황, 결과에 대한 카테고리(대분류) |
선택 |
||
where_to_slug |
랜덤박스를 개봉한 장소, 상황, 결과에 대한 상세명 |
선택 |