TPStashEvent.GetInfrastructure

public int GetInfrastructure(
    string player_uuid,
    string character_uuid,
    string item_slug,
    float item_quantity,
    [entity from_entity = entity.None],
    [string from_category_slug = null],
    [string from_slug = null]
);

説明

ゲームでインフラ(Infrastructure)を獲得したデータを収集します。

アイテムの区分け
  • Equipment: 武器・防具・アクセサリー・その他装備アイテム

  • Consumable: ポーション・包帯など使用すると数が減る消費アイテム

  • Cosmetic: 装備しても能力向上とは関係のないコスチュームなど

  • Token: 特定の期間やコンテンツで貨幣として通用されるアイテム・入場券などを含む

  • Material: 原材料。装備のアップグレードやキャラクターのランクアップなどに消費される素材アイテム

  • Infrastructure: ゲーム全体に間接的に影響を与えるアイテム(固定資産)

  • Pet: ペット

  • RandomBox: 開封すると他のアイテムをランダムで獲得できるアイテム

データのアップロードに成功した場合1をリターンし、成功できなかった場合には-1をリターンします。-1リターンとなった場合TentuPlay debug modeに設定されている状態でUnity Editorを使用している場合、Unity Editorコンソールから以下のメッセージが表示されます。

TPError||ERROR inserting table_name: exception_error_message

パラメータ

名前 説明 必須か

player_uuid

プレイヤーの固有ID

必須

character_uuid

プレイヤー内キャラクターの固有ID

ゲームにキャラクターがない、もしくはキャラクターではなくプレイヤーを示す場合にはTentuPlayKeyword._DUMMY_CHARACTER_ID_に設定します。

必須

item_slug

アイテムの固有識別子

必須

item_quantity

獲得したインフラの数・量

必須

from_entity

インフラを獲得した経路。どのような行動によりインフラを獲得したのかを表す

エンティティー
public enum entity {
    None,
    Etc,
    Join,
    LoginApp,
    LoginAsCharacter,
    InAppPurchase,
    ShopPurchase,
    Trade,
    WatchAd,
    PlayQuest,
    GetBonus,
    ChangeCharacterArchetype,
    ChangeStat,
    ChangeCustomAbility,
    PlayStage,
    GetCharacter,
    GetCurrency,
    GetInfrastructure,
    GetPet,
    GetToken,
    GetConsumable,
    GetMaterial,
    GetEquipment,
    GetCostume,
    GetRandomBox,
    UseCurrency,
    EquipInfrastructure,
    EquipPet,
    UseToken,
    UseConsumable,
    UseMaterial,
    EquipEquipment,
    EquipCostume,
    OpenRandomBox,
    EquipSkill,
    DismissCharacter,
    DismissInfrastructure,
    DismissPet,
    DismissToken,
    DismissConsumable,
    DismissMaterial,
    DismissEquipment,
    DismissCostume,
    DismissRandomBox,
    LevelUpCharacter,
    LevelUpInfrastructure,
    LevelUpPet,
    LevelUpConsumable,
    LevelUpMaterial,
    LevelUpEquipment,
    LevelUpCostume,
    LevelUpSkill,
    Deposit,
    Withdraw,
    FinishedTutorial,
}

オプション

from_category_slug

インフラを獲得した経路に対するカテゴリー(大分類)名

オプション

from_slug

インフラを獲得した経路に対する詳細

オプション