Progression #

Read more about the Progression system in Hiro here.

Get all progressions #

Get progressions.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
FHiroOnProgressionsGet OnProgressionsGet;
OnProgressionsGet.AddDynamic(this, &AMyActor::OnProgressionsGet);
FOnError OnError;

HiroClient->ProgressionsGet(Session, OnProgressionsGet, OnError);

void AMyActor::OnProgressionsGet(const FHiroProgressionList& ProgressionList)
{
    UE_LOG(LogTemp, Log, TEXT("%s"), *ProgressionList.ToJson());
}

Purchase progression #

Purchase a progression for permanent unlock, if supported.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
FHiroProgressionPurchaseRequest Request;
Request.Id = TEXT("progression_1");

FHiroOnProgressionsPurchase OnProgressionsPurchase;
OnProgressionsPurchase.AddDynamic(this, &AMyActor::OnProgressionsPurchase);
FOnError OnError;

HiroClient->ProgressionsPurchase(Session, Request, OnProgressionsPurchase, OnError);

void AMyActor::OnProgressionsPurchase(const FHiroProgressionList& ProgressionList)
{
    UE_LOG(LogTemp, Log, TEXT("%s"), *ProgressionList.ToJson());
}