FHiroStatUpdateRequestRequest;FHiroStatUpdateStatUpdate1;StatUpdate1.Name="public_stat_1";StatUpdate1.Value=100;StatUpdate1.Operator=EHiroStatUpdateOperator::STAT_UPDATE_OPERATOR_SET;// Replace SomeEnumValue with the actual enum value
Request.Public.Add(StatUpdate1);FHiroStatUpdateStatUpdate2;StatUpdate2.Name="private_stat_1";StatUpdate2.Value=100;StatUpdate2.Operator=EHiroStatUpdateOperator::STAT_UPDATE_OPERATOR_SET;// Replace SomeEnumValue with the actual enum value
Request.Private.Add(StatUpdate2);FHiroOnStatsUpdateOnStatsUpdate;OnStatsUpdate.AddDynamic(this,&AMyActor::OnStatsUpdate);FOnErrorOnError;HiroClient->StatsUpdate(Session,Request,OnStatsUpdate,OnError);voidAMyActor::OnStatsUpdate(constFHiroStatList&StatList){UE_LOG(LogTemp,Log,TEXT("%s"),*StatList.ToJson());}