TPStashEvent.DepositCurrency

public int DepositCurrency(
    string player_uuid,
    string character_uuid,
    string currency_slug,
    float currency_quantity,
    [storageType storage_type = storageType.Unknown],
    [string storage_slug = null],
    [string storage_category_slug = null]
);

설명

창고에 재화(Currency)를 저장한 이벤트 데이터를 수집합니다.

호출이 성공한 경우 1이, 실패한 경우 -1이 반환됩니다. 호출에 실패할 경우 유니티 에디터 콘솔 TentuPlay debug mode에서 다음과 같은 메시지가 출력됩니다.

TPError||ERROR inserting table_name: exception_error_message

파라미터

이름 설명 필수 여부

player_uuid

플레이어의 고유 ID(캐릭터 ID가 아닌)로 Steam 사용자 ID나 Google Play 사용자 ID를 말함

필수

character_uuid

플레이어 캐릭터의 고유 ID

게임에 캐릭터가 없거나, 캐릭터가 아닌 플레이어를 가리킬 경우 character_uuid를 TentuPlayKeyword._DUMMY_CHARACTER_ID_로 설정합니다.

필수

currency_slug

재화의 고유 구분자(예: 'gold', 'diamond', 'crystal')

필수

currency_quantity

저장한 재화의 갯수 또는 양

필수

storage_type

플레이어 창고의 유형 (예: "개인 창고", "길드 창고")

public enum storageType {
    Unknown,
    Personal,
    Guild
}

선택

storage_slug

플레이어 창고의 고유 구분자

선택

storage_category_slug

플레이어 창고 종류의 고유 구분자

선택