Skip to content

Commit 3306fd4

Browse files
committed
up
1 parent bfeb33a commit 3306fd4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

kbe/src/server/cellapp/entity.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,11 @@ class Entity : public script::ScriptObject
539539

540540
void addMoveHandlerToStream(KBEngine::MemoryStream& s);
541541
void createMoveHandlerFromStream(KBEngine::MemoryStream& s);
542+
543+
/**
544+
获得实体控制器管理器
545+
*/
546+
INLINE Controllers* pControllers()const;
542547
private:
543548
/**
544549
发送teleport结果到base端

kbe/src/server/cellapp/entity.ipp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ INLINE void Entity::pWitness(Witness* w)
205205
pWitness_ = w;
206206
}
207207

208+
//-------------------------------------------------------------------------------------
209+
INLINE Controllers* Entity::pControllers()const
210+
{
211+
return pControllers_;
212+
}
213+
208214
//-------------------------------------------------------------------------------------
209215
INLINE EntityCoordinateNode* Entity::pEntityCoordinateNode()const
210216
{

0 commit comments

Comments
 (0)