To get the logged-in user information on the STOVE launcher, request the user information by calling the superclass's Super:: StoveSDKGetUser function in the UMyStoveSDKObject::StoveSDKGetUser function in the calling code below. When you call the Super::StoveSDKGetUser function, it passes user information to the callback OnUser function.
MyStoveSDKObject.cpp
FStoveResult UMyStoveSDKObject::StoveSDKGetUser()
{
/*Add the 'walkthrough' codes here.*/
FStoveResult ErrorResult = Super::StoveSDKGetUser();
if (ErrorResult.Result == STOVE_PC_NO_ERROR)
{
OnLog("[Success] StovePC_GetUser");
}
else
{
OnLog("[Error] StovePC_GetUser, ErrorResult %d", ErrorResult.Result);
}
return ErrorResult;
}
C++
복사
You obtain user information through the FStoveUser structure, which is an argument of the callback OnUser when you call the UMyStoveSDKObject::StoveSDKGetUser function usually. You can check how to obtain user information through the code below.
MyStoveSDKObject.cpp
void UMyStoveSDKObject::OnUser(FStoveUser User)
{
/*Add the 'walkthrough' codes here.*/
OnLog("[User]");
OnLog("MemberNo : %u", User.MemberNo);
OnLog("Nickname : %s", *(User.Nickname));
OnLog("GameUserId: %s", *(User.GameUserId));
}
C++
복사