Initializing the HiroClient #

To use Hiro in Unreal, you first need to create a NakamaClient. After that, you can initialize Hiro and create a HiroClient by passing in the previously created NakamaClient.

1
2
3
4
5
#include "NakamaClient.h"
#include "HiroClient.h"

UNakamaClient* NakamaClient = UNakamaClient::CreateDefaultClient(TEXT("defaultkey"), TEXT("localhost"), 7350, false, true);
UHiroClient* HiroClient = UHiroClient::CreateDefaultClient(NakamaClient);