| 77 | } |
| 78 | |
| 79 | EntityWorld * GetEntityWorld() |
| 80 | { |
| 81 | auto charFactory = gOsirisProxy->GetLibraryManager().GetCharacterFactory(); |
| 82 | if (charFactory != nullptr) { |
| 83 | return charFactory->Entities; |
| 84 | } |
| 85 | |
| 86 | auto itemFactory = gOsirisProxy->GetLibraryManager().GetItemFactory(); |
| 87 | if (itemFactory != nullptr) { |
| 88 | return itemFactory->Entities; |
| 89 | } |
| 90 | |
| 91 | OsiError("EntityWorld not available!"); |
| 92 | return nullptr; |
| 93 | } |
| 94 | |
| 95 | void * FindComponentByNameGuid(ComponentType componentType, std::string const & nameGuid, bool logError) |
| 96 | { |
no test coverage detected