Cry::IPluginManager

Main source of plug-in management, from loading to querying of existing plug-ins. More...

#include

Public Types

enum EType { Native = 0, Managed }
Determines the type of a plug-in.
using EPluginType = EType
Alias for backwards compatibility.

Public Member Functions

template
void RegisterEventListener (IEventListener *pListener)
Registers a listener that is notified when a specific plug-in is loaded and unloaded.
template
void RemoveEventListener (IEventListener *pListener)
Removes a listener registered with RegisterEventListener.
template
T * QueryPlugin () const

Protected Member Functions

virtual void OnPluginUpdateFlagsChanged (IEnginePlugin &plugin, uint8 newFlags, uint8 changedStep)=0
virtual std::shared_ptr< Cry::IEnginePlugin > QueryPluginById (const CryClassID &classID) const =0
virtual void RegisterEventListener (const CryClassID &pluginClassId, IEventListener *pListener)=0
virtual void RemoveEventListener (const CryClassID &pluginClassId, IEventListener *pListener)=0

Protected Attributes

friend IEnginePlugin

Detailed Description

Main source of plug-in management, from loading to querying of existing plug-ins.

Member Function Documentation

◆ QueryPlugin()

template
T* Cry::IPluginManager::QueryPlugin ( ) const
inline

Queries a plug-in by implementation (T has to implement Cry::IEnginePlugin) This call can only succeed if the plug-in was specified in the running project's .cryproject file