mirror of https://github.com/axmolengine/axmol.git
Add comment for new API Director::setChildrenIndexerEnabled [skip ci]
This commit is contained in:
parent
402f106d7f
commit
8e2c6f2ceb
|
@ -503,7 +503,15 @@ public:
|
|||
*/
|
||||
const std::thread::id& getCocos2dThreadId() const { return _cocos2d_thread_id; }
|
||||
|
||||
/** Enable node tree children indexer map, the concept is like database INDEX
|
||||
* Notes:
|
||||
* If enable is true: will cost more memory to speed up getChildByTag & getChildByName
|
||||
*/
|
||||
void setChildrenIndexerEnabled(bool enable) { _childrenIndexerEnabled = enable; }
|
||||
|
||||
/**
|
||||
* returns whether or not node tree children indexer map enabled
|
||||
*/
|
||||
bool isChildrenIndexerEnabled() const { return _childrenIndexerEnabled; }
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue