| 420 | } |
| 421 | |
| 422 | Plugin* PluginManager::GetPlugin(const StringView& name) |
| 423 | { |
| 424 | #if USE_EDITOR |
| 425 | for (Plugin* p : EditorPlugins) |
| 426 | { |
| 427 | if (p->GetDescription().Name == name) |
| 428 | return p; |
| 429 | } |
| 430 | #endif |
| 431 | for (GamePlugin* gp : GamePlugins) |
| 432 | { |
| 433 | if (gp->GetDescription().Name == name) |
| 434 | return gp; |
| 435 | } |
| 436 | return nullptr; |
| 437 | } |
| 438 | |
| 439 | Plugin* PluginManager::GetPlugin(const MClass* type) |
| 440 | { |
nothing calls this directly
no test coverage detected