Skip to content

Commit 030fc3f

Browse files
committed
up
1 parent 35e442c commit 030fc3f

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

kbe/res/client/sdk_templates/ue4/Source/KBEnginePlugins/Engine/EntityComponent.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "MemoryStream.h"
66

77
EntityComponent::EntityComponent():
8+
entityComponentPropertyID(0),
89
componentType(0),
910
ownerID(0),
1011
pOwner(NULL)

kbe/res/client/sdk_templates/ue4/Source/KBEnginePlugins/Engine/EntityComponent.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ class KBENGINEPLUGINS_API EntityComponent
1414
virtual ~EntityComponent();
1515

1616
public:
17+
virtual void onAttached(Entity* pOwner)
18+
{
19+
20+
}
21+
22+
virtual void onDetached(Entity* pOwner)
23+
{
24+
25+
}
26+
1727
virtual void onRemoteMethodCall(uint16 methodUtype, MemoryStream& stream)
1828
{
1929
// 动态生成
@@ -32,6 +42,7 @@ class KBENGINEPLUGINS_API EntityComponent
3242
virtual void createFromStream(MemoryStream& stream);
3343

3444
public:
45+
uint16 entityComponentPropertyID;
3546
uint16 componentType;
3647
ENTITY_ID ownerID;
3748
Entity* pOwner;

kbe/res/client/sdk_templates/unity/EntityComponent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace KBEngine
1111
*/
1212
public class EntityComponent
1313
{
14+
public UInt16 entityComponentPropertyID = 0;
1415
public UInt16 componentType = 0;
1516
public Int32 ownerID = 0;
1617
public Entity owner = null;

0 commit comments

Comments
 (0)