-----------get entity manager--------------
| 2111 | |
| 2112 | // -----------get entity manager-------------- |
| 2113 | std::shared_ptr<AFNodeManager> AFCKernelModule::GetNodeManager(std::shared_ptr<AFIStaticEntity> pStaticEntity) const |
| 2114 | { |
| 2115 | if (pStaticEntity == nullptr) |
| 2116 | { |
| 2117 | return nullptr; |
| 2118 | } |
| 2119 | |
| 2120 | auto pCStaticEntity = std::dynamic_pointer_cast<AFCStaticEntity>(pStaticEntity); |
| 2121 | if (pCStaticEntity == nullptr) |
| 2122 | { |
| 2123 | return nullptr; |
| 2124 | } |
| 2125 | |
| 2126 | return pCStaticEntity->GetNodeManager(); |
| 2127 | } |
| 2128 | |
| 2129 | std::shared_ptr<AFNodeManager> AFCKernelModule::GetNodeManager(std::shared_ptr<AFIEntity> pEntity) const |
| 2130 | { |