Skip to content

Commit 3ab0bb6

Browse files
stevenLizano29Copilot
authored andcommitted
rename TestGameInstance class to TestGameInstanceGSDK to avoid name collition with Unreal engine TestGameInstance class (#199)
1 parent 7eae720 commit 3ab0bb6

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

UnrealPlugin/TestingProject/Source/SlateUGS/Private/TestGameInstance.cpp renamed to UnrealPlugin/TestingProject/Source/SlateUGS/Private/TestGameInstanceGSDK.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
// Fill out your copyright notice in the Description page of Project Settings.
22

33

4-
#include "TestGameInstance.h"
4+
#include "TestGameInstanceGSDK.h"
55

66
DEFINE_LOG_CATEGORY(LogPlayFabGSDKGameInstance);
77

8-
void UTestGameInstance::Init()
8+
void UTestGameInstanceGSDK::Init()
99
{
1010
FOnGSDKShutdown_Dyn OnGsdkShutdown;
11-
OnGsdkShutdown.BindDynamic(this, &UTestGameInstance::OnGSDKShutdown);
11+
OnGsdkShutdown.BindDynamic(this, &UTestGameInstanceGSDK::OnGSDKShutdown);
1212
FOnGSDKHealthCheck_Dyn OnGsdkHealthCheck;
13-
OnGsdkHealthCheck.BindDynamic(this, &UTestGameInstance::OnGSDKHealthCheck);
13+
OnGsdkHealthCheck.BindDynamic(this, &UTestGameInstanceGSDK::OnGSDKHealthCheck);
1414
FOnGSDKServerActive_Dyn OnGSDKServerActive;
15-
OnGSDKServerActive.BindDynamic(this, &UTestGameInstance::OnGSDKServerActive);
15+
OnGSDKServerActive.BindDynamic(this, &UTestGameInstanceGSDK::OnGSDKServerActive);
1616
FOnGSDKReadyForPlayers_Dyn OnGSDKReadyForPlayers;
17-
OnGSDKReadyForPlayers.BindDynamic(this, &UTestGameInstance::OnGSDKReadyForPlayers);
17+
OnGSDKReadyForPlayers.BindDynamic(this, &UTestGameInstanceGSDK::OnGSDKReadyForPlayers);
1818
FOnGSDKMaintenanceV2_Dyn OnGSDKMaintenanceV2;
19-
OnGSDKMaintenanceV2.BindDynamic(this, &UTestGameInstance::OnGSDKMaintenanceV2);
19+
OnGSDKMaintenanceV2.BindDynamic(this, &UTestGameInstanceGSDK::OnGSDKMaintenanceV2);
2020

2121
UGSDKUtils::RegisterGSDKShutdownDelegate(OnGsdkShutdown);
2222
UGSDKUtils::RegisterGSDKHealthCheckDelegate(OnGsdkHealthCheck);
@@ -30,25 +30,25 @@ void UTestGameInstance::Init()
3030
#endif
3131
}
3232

33-
void UTestGameInstance::OnStart()
33+
void UTestGameInstanceGSDK::OnStart()
3434
{
3535
UE_LOG(LogPlayFabGSDKGameInstance, Warning, TEXT("Reached onStart!"));
3636
UGSDKUtils::ReadyForPlayers();
3737
}
3838

39-
void UTestGameInstance::OnGSDKShutdown()
39+
void UTestGameInstanceGSDK::OnGSDKShutdown()
4040
{
4141
UE_LOG(LogPlayFabGSDKGameInstance, Warning, TEXT("Shutdown!"));
4242
FPlatformMisc::RequestExit(false);
4343
}
4444

45-
bool UTestGameInstance::OnGSDKHealthCheck()
45+
bool UTestGameInstanceGSDK::OnGSDKHealthCheck()
4646
{
4747
UE_LOG(LogPlayFabGSDKGameInstance, Warning, TEXT("Healthy!"));
4848
return true;
4949
}
5050

51-
void UTestGameInstance::OnGSDKServerActive()
51+
void UTestGameInstanceGSDK::OnGSDKServerActive()
5252
{
5353
/**
5454
* Server is transitioning to an active state.
@@ -58,7 +58,7 @@ void UTestGameInstance::OnGSDKServerActive()
5858
UE_LOG(LogPlayFabGSDKGameInstance, Warning, TEXT("Active!"));
5959
}
6060

61-
void UTestGameInstance::OnGSDKReadyForPlayers()
61+
void UTestGameInstanceGSDK::OnGSDKReadyForPlayers()
6262
{
6363
/**
6464
* Server is transitioning to a StandBy state. Game initialization is complete and the game is ready
@@ -69,7 +69,7 @@ void UTestGameInstance::OnGSDKReadyForPlayers()
6969
UE_LOG(LogPlayFabGSDKGameInstance, Warning, TEXT("Finished Initialization - Moving to StandBy!"));
7070
}
7171

72-
void UTestGameInstance::OnGSDKMaintenanceV2(const FMaintenanceSchedule& schedule)
72+
void UTestGameInstanceGSDK::OnGSDKMaintenanceV2(const FMaintenanceSchedule& schedule)
7373
{
7474
/**
7575
* Server recieved a maintenance event.

UnrealPlugin/TestingProject/Source/SlateUGS/Public/TestGameInstance.h renamed to UnrealPlugin/TestingProject/Source/SlateUGS/Public/TestGameInstanceGSDK.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
#include "CoreMinimal.h"
66
#include "Engine/GameInstance.h"
77
#include "GSDKUtils.h"
8-
#include "TestGameInstance.generated.h"
8+
#include "TestGameInstanceGSDk.generated.h"
99

1010
DECLARE_LOG_CATEGORY_EXTERN(LogPlayFabGSDKGameInstance, Log, All);
1111

1212
/**
1313
*
1414
*/
1515
UCLASS()
16-
class SLATEUGS_API UTestGameInstance : public UGameInstance
16+
class SLATEUGS_API UTestGameInstanceGSDK : public UGameInstance
1717
{
1818
GENERATED_BODY()
1919

0 commit comments

Comments
 (0)