GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Singleton class managing all the platforms available. More...
#include <PlatformManager.h>
Public Member Functions | |
bool | AddPlatform (std::shared_ptr< gd::Platform > newPlatform) |
Add a new platform to be used by the IDE. | |
gd::Platform * | GetPlatform (const gd::String &platformName) const |
Get a pointer to the platform called platformName. More... | |
const std::vector< std::shared_ptr< gd::Platform > > & | GetAllPlatforms () const |
Get a list of all platforms available. | |
Static Public Member Functions | |
static PlatformManager * | Get () |
static void | DestroySingleton () |
Destroy the global platform manager. More... | |
Singleton class managing all the platforms available.
Platforms can be added thanks to gd::PlatformManager::AddPlatform.
See gd::PlatformLoader::LoadPlatformInManager to load a platform from a file.
|
inlinestatic |
Destroy the global platform manager.
This is called by the IDE before shutting down. ( Otherwise, platforms won't get notified that the IDE closed. )
gd::Platform * gd::PlatformManager::GetPlatform | ( | const gd::String & | platformName | ) | const |
Get a pointer to the platform called platformName.