File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
kbe/res/client/sdk_templates
ue4/Source/KBEnginePlugins/Engine Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 5
5
#include " MemoryStream.h"
6
6
7
7
EntityComponent::EntityComponent ():
8
+ entityComponentPropertyID(0 ),
8
9
componentType(0 ),
9
10
ownerID(0 ),
10
11
pOwner(NULL )
Original file line number Diff line number Diff line change @@ -14,6 +14,16 @@ class KBENGINEPLUGINS_API EntityComponent
14
14
virtual ~EntityComponent ();
15
15
16
16
public:
17
+ virtual void onAttached (Entity* pOwner)
18
+ {
19
+
20
+ }
21
+
22
+ virtual void onDetached (Entity* pOwner)
23
+ {
24
+
25
+ }
26
+
17
27
virtual void onRemoteMethodCall (uint16 methodUtype, MemoryStream& stream)
18
28
{
19
29
// 动态生成
@@ -32,6 +42,7 @@ class KBENGINEPLUGINS_API EntityComponent
32
42
virtual void createFromStream (MemoryStream& stream);
33
43
34
44
public:
45
+ uint16 entityComponentPropertyID;
35
46
uint16 componentType;
36
47
ENTITY_ID ownerID;
37
48
Entity* pOwner;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ namespace KBEngine
11
11
*/
12
12
public class EntityComponent
13
13
{
14
+ public UInt16 entityComponentPropertyID = 0 ;
14
15
public UInt16 componentType = 0 ;
15
16
public Int32 ownerID = 0 ;
16
17
public Entity owner = null ;
You can’t perform that action at this time.
0 commit comments