Skip to content

Commit e25ab1f

Browse files
committed
up
1 parent 660425a commit e25ab1f

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

Config/DefaultEngine.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[/Script/EngineSettings.GameMapsSettings]
22
GameDefaultMap=/Game/LoginScene/LoginMap.LoginMap
33
EditorStartupMap=/Game/LoginScene/LoginMap.LoginMap
4-
GlobalDefaultGameMode=/Script/kbengine_ue4_demo.GameModeBase
4+
GlobalDefaultGameMode=/Script/kbengine_ue4_demo.GameModeDemoBase
55

66

77
[/Script/Engine.Engine]
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
// Fill out your copyright notice in the Description page of Project Settings.
22

33
#include "kbengine_ue4_demo.h"
4-
#include "GameModeBase.h"
4+
#include "GameModeDemoBase.h"
55
#include "KBEngine.h"
66

7-
AGameModeBase::AGameModeBase(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
7+
AGameModeDemoBase::AGameModeDemoBase(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
88
{
99
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it.
1010
PrimaryActorTick.bCanEverTick = true;
1111
}
1212

13-
void AGameModeBase::InitGame(const FString& MapName, const FString& Options, FString& ErrorMessage)
13+
void AGameModeDemoBase::InitGame(const FString& MapName, const FString& Options, FString& ErrorMessage)
1414
{
1515
Super::InitGame(MapName, Options, ErrorMessage);
1616
}
1717

1818
// Called when the game starts or when spawned
19-
void AGameModeBase::BeginPlay()
19+
void AGameModeDemoBase::BeginPlay()
2020
{
2121
Super::BeginPlay();
2222
installEvents();
2323
}
2424

25-
void AGameModeBase::Destroyed()
25+
void AGameModeDemoBase::Destroyed()
2626
{
2727
KBENGINE_DEREGISTER_ALL_EVENT();
2828
Super::Destroyed();
2929
}
3030

31-
void AGameModeBase::Logout(AController* Exiting)
31+
void AGameModeDemoBase::Logout(AController* Exiting)
3232
{
3333
Super::Logout(Exiting);
3434

@@ -39,27 +39,27 @@ void AGameModeBase::Logout(AController* Exiting)
3939
}
4040
}
4141

42-
void AGameModeBase::installEvents()
42+
void AGameModeDemoBase::installEvents()
4343
{
4444
// common
4545
KBENGINE_REGISTER_EVENT("onKicked", onKicked);
4646
KBENGINE_REGISTER_EVENT("onDisableConnect", onDisableConnect);
4747
KBENGINE_REGISTER_EVENT("onConnectStatus", onConnectStatus);
4848
}
4949

50-
void AGameModeBase::fire(const FString& eventName, UKBEventData* pEventData)
50+
void AGameModeDemoBase::fire(const FString& eventName, UKBEventData* pEventData)
5151
{
5252
KBENGINE_EVENT_FIRE(eventName, pEventData);
5353
}
5454

55-
void AGameModeBase::onKicked_Implementation(const UKBEventData* pEventData)
55+
void AGameModeDemoBase::onKicked_Implementation(const UKBEventData* pEventData)
5656
{
5757
}
5858

59-
void AGameModeBase::onDisableConnect_Implementation(const UKBEventData* pEventData)
59+
void AGameModeDemoBase::onDisableConnect_Implementation(const UKBEventData* pEventData)
6060
{
6161
}
6262

63-
void AGameModeBase::onConnectStatus_Implementation(const UKBEventData* pEventData)
63+
void AGameModeDemoBase::onConnectStatus_Implementation(const UKBEventData* pEventData)
6464
{
6565
}

Source/kbengine_ue4_demo/ue4_scripts/GameModeBase.h renamed to Source/kbengine_ue4_demo/ue4_scripts/GameModeDemoBase.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
#include "KBEvent.h"
66
#include "kbe_scripts/LogicEvents.h"
77
#include "GameFramework/GameMode.h"
8-
#include "GameModeBase.generated.h"
8+
#include "GameModeDemoBase.generated.h"
99

1010
/**
1111
*
1212
*/
1313
UCLASS()
14-
class KBENGINE_UE4_DEMO_API AGameModeBase : public AGameMode
14+
class KBENGINE_UE4_DEMO_API AGameModeDemoBase : public AGameMode
1515
{
1616
GENERATED_UCLASS_BODY()
1717

Source/kbengine_ue4_demo/ue4_scripts/GameModeLogin.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
#pragma once
44

5-
#include "ue4_scripts/GameModeBase.h"
5+
#include "ue4_scripts/GameModeDemoBase.h"
66
#include "GameModeLogin.generated.h"
77

88

99
/**
1010
*
1111
*/
1212
UCLASS()
13-
class KBENGINE_UE4_DEMO_API AGameModeLogin : public AGameModeBase
13+
class KBENGINE_UE4_DEMO_API AGameModeLogin : public AGameModeDemoBase
1414
{
1515
GENERATED_UCLASS_BODY()
1616

Source/kbengine_ue4_demo/ue4_scripts/GameModeSelectAvatar.h

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

33
#pragma once
4-
#include "ue4_scripts/GameModeBase.h"
4+
#include "ue4_scripts/GameModeDemoBase.h"
55
#include "GameModeSelectAvatar.generated.h"
66

77
/**
88
*
99
*/
1010
UCLASS()
11-
class KBENGINE_UE4_DEMO_API AGameModeSelectAvatar : public AGameModeBase
11+
class KBENGINE_UE4_DEMO_API AGameModeSelectAvatar : public AGameModeDemoBase
1212
{
1313
GENERATED_UCLASS_BODY()
1414

Source/kbengine_ue4_demo/ue4_scripts/GameModeWorld.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#pragma once
44

5-
#include "ue4_scripts/GameModeBase.h"
5+
#include "ue4_scripts/GameModeDemoBase.h"
66
#include "GameModeWorld.generated.h"
77

88
class AGameEntity;
@@ -12,7 +12,7 @@ class APlayerCharacter;
1212
*
1313
*/
1414
UCLASS()
15-
class KBENGINE_UE4_DEMO_API AGameModeWorld : public AGameModeBase
15+
class KBENGINE_UE4_DEMO_API AGameModeWorld : public AGameModeDemoBase
1616
{
1717
GENERATED_UCLASS_BODY()
1818

0 commit comments

Comments
 (0)