Skip to content

Commit 6e03b6e

Browse files
committed
up
1 parent ef431f2 commit 6e03b6e

File tree

126 files changed

+633
-90
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+633
-90
lines changed

Plugins/kbengine_ue4_plugins/Source/KBEnginePlugins/Engine/AccountBase.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
#include "CustomDataTypes.h"
99
#include "MemoryStream.h"
1010
#include "EntityComponent.h"
11+
namespace KBEngine
12+
{
13+
1114

1215

1316
void AccountBase::onComponentsEnterworld()
@@ -303,3 +306,4 @@ void AccountBase::detachComponents()
303306
{
304307
}
305308

309+
}

Plugins/kbengine_ue4_plugins/Source/KBEnginePlugins/Engine/AccountBase.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
#include "KBETypes.h"
1212
#include "EntityCallAccountBase.h"
1313

14+
namespace KBEngine
15+
{
16+
1417
class Method;
1518
class Property;
1619
class MemoryStream;
@@ -53,3 +56,4 @@ class KBENGINEPLUGINS_API AccountBase : public Entity
5356

5457
};
5558

59+
}

Plugins/kbengine_ue4_plugins/Source/KBEnginePlugins/Engine/AvatarBase.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@
99
#include "MemoryStream.h"
1010
#include "EntityComponent.h"
1111
#include "Scripts/Components/Test.h"
12+
1213
#include "Scripts/Components/TestNoBase.h"
1314

15+
namespace KBEngine
16+
{
17+
18+
1419

1520
void AvatarBase::onComponentsEnterworld()
1621
{
@@ -1010,3 +1015,4 @@ void AvatarBase::detachComponents()
10101015
component3->onDetached(this);
10111016
}
10121017

1018+
}

Plugins/kbengine_ue4_plugins/Source/KBEnginePlugins/Engine/AvatarBase.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
#include "KBETypes.h"
1212
#include "EntityCallAvatarBase.h"
1313

14+
namespace KBEngine
15+
{
16+
1417
class Method;
1518
class Property;
1619
class MemoryStream;
@@ -95,3 +98,4 @@ class KBENGINEPLUGINS_API AvatarBase : public Entity
9598

9699
};
97100

101+
}

Plugins/kbengine_ue4_plugins/Source/KBEnginePlugins/Engine/Bundle.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
#include "KBDebug.h"
77
#include "ObjectPool.h"
88

9+
namespace KBEngine
10+
{
11+
912
static ObjectPool<Bundle> _g_bundlePool;
1013

1114
Bundle::Bundle():
@@ -292,4 +295,6 @@ void Bundle::writeVector4(const FVector4& v)
292295
{
293296
checkStream(16);
294297
(*pCurrPacket_).writeVector4(v);
298+
}
299+
295300
}

Plugins/kbengine_ue4_plugins/Source/KBEnginePlugins/Engine/Bundle.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
#include "KBECommon.h"
66

7+
namespace KBEngine
8+
{
9+
710
class MemoryStream;
811
class NetworkInterfaceBase;
912
class Message;
@@ -145,3 +148,5 @@ class KBENGINEPLUGINS_API Bundle
145148
Message* pMsgtype_;
146149
int curMsgStreamIndex_;
147150
};
151+
152+
}

Plugins/kbengine_ue4_plugins/Source/KBEnginePlugins/Engine/ClientSDKUpdateUI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ FReply SClientSDKUpdateUI::UpdateSDKClicked()
5757

5858
UKBEventData_onDownloadSDK* pEventData = NewObject<UKBEventData_onDownloadSDK>();
5959
pEventData->isDownload = true;
60-
KBENGINE_EVENT_FIRE(KBEventTypes::onDownloadSDK, pEventData);
60+
KBENGINE_EVENT_FIRE(KBEngine::KBEventTypes::onDownloadSDK, pEventData);
6161
return FReply::Handled();
6262
}

Plugins/kbengine_ue4_plugins/Source/KBEnginePlugins/Engine/ClientSDKUpdater.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#include "FileHelper.h"
1010
#include "OutPutDeviceDebug.h"
1111

12-
using namespace std;
13-
12+
namespace KBEngine
13+
{
1414

1515
ClientSDKUpdater::ClientSDKUpdater()
1616
{
@@ -246,11 +246,12 @@ void ClientSDKUpdater::moveToFile(FString fromFileName, FString toFileName)
246246
PlatformFile.MoveFile(*toFileName, *fromFileName);
247247
}
248248

249-
void ClientSDKUpdater::copyDirectory(FString fromDicPath, FString toDicPath)
249+
void ClientSDKUpdater::copyDirectory(FString fromDicPath, FString toDicPath)
250250
{
251251
FPaths::NormalizeDirectoryName(fromDicPath);
252252
FPaths::NormalizeDirectoryName(toDicPath);
253253
IPlatformFile& PlatformFile = FPlatformFileManager::Get().GetPlatformFile();
254254
PlatformFile.CopyDirectoryTree(*toDicPath, *fromDicPath, true);
255255
}
256256

257+
}

Plugins/kbengine_ue4_plugins/Source/KBEnginePlugins/Engine/ClientSDKUpdater.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
/**
1919
*
2020
*/
21+
namespace KBEngine
22+
{
23+
2124
class KBENGINEPLUGINS_API ClientSDKUpdater
2225
{
2326
public:
@@ -53,3 +56,5 @@ class KBENGINEPLUGINS_API ClientSDKUpdater
5356

5457
MemoryStream* pSdkFileStream = nullptr;
5558
};
59+
60+
}

Plugins/kbengine_ue4_plugins/Source/KBEnginePlugins/Engine/CustomDataTypes.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
#include "DataTypes.h"
55
#include "Runtime/Core/Public/Misc/Variant.h"
66

7+
namespace KBEngine
8+
{
9+
710
void DATATYPE_ENTITY_FORBID_COUNTER::createFromStreamEx(MemoryStream& stream, ENTITY_FORBID_COUNTER& datas)
811
{
912
uint32 size = stream.readUint32();
@@ -126,3 +129,5 @@ void DATATYPE_AnonymousArray_32::addToStreamEx(Bundle& stream, const TArray<int3
126129
};
127130
}
128131

132+
133+
}

0 commit comments

Comments
 (0)