Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
Example::App Class Reference
Inheritance diagram for Example::App:
Engine::APlugin Engine::APlugin Engine::APlugin Engine::APlugin Engine::IPlugin Engine::IPlugin Engine::IPlugin Engine::IPlugin

Public Member Functions

void Bind (void) override
 Pure virtual method that must be implemented by derived plugin classes. This method is called when the plugin is added to the engine, and is where the plugin should register its systems, resources, and any other functionality it provides to the engine.
 ~App ()=default
void Bind (void) override
 Pure virtual method that must be implemented by derived plugin classes. This method is called when the plugin is added to the engine, and is where the plugin should register its systems, resources, and any other functionality it provides to the engine.
 ~App ()=default
void Bind (void) override
 Pure virtual method that must be implemented by derived plugin classes. This method is called when the plugin is added to the engine, and is where the plugin should register its systems, resources, and any other functionality it provides to the engine.
 ~App ()=default
void Bind (void) override
 Pure virtual method that must be implemented by derived plugin classes. This method is called when the plugin is added to the engine, and is where the plugin should register its systems, resources, and any other functionality it provides to the engine.
 APlugin (Core &core)
 Constructor for APlugin. It takes a reference to the Core, which is used to register systems and resources in the Bind method.
Public Member Functions inherited from Engine::APlugin
 APlugin (Core &core)
 Constructor for APlugin. It takes a reference to the Core, which is used to register systems and resources in the Bind method.
template<CScheduler TScheduler, typename... Systems>
decltype(auto) RegisterSystems (Systems... systems)
 Register systems to a scheduler.
template<typename TResource>
TResource & RegisterResource (TResource &&resource)
 Register a resource in the core.
template<CPlugin... TPlugins>
void RequirePlugins ()
 Add a plugin to the core.
template<CScheduler TScheduler, typename... Args>
TScheduler & RegisterScheduler (Args &&...args)
 Register a scheduler in the core.
CoreGetCore ()
 Get a reference to the core. This can be used to register systems and resources in the Bind method.
Public Member Functions inherited from Engine::IPlugin
virtual ~IPlugin ()=default
 Virtual destructor for IPlugin.

Constructor & Destructor Documentation

◆ ~App() [1/3]

Example::App::~App ( )
default

◆ ~App() [2/3]

Example::App::~App ( )
default

◆ ~App() [3/3]

Example::App::~App ( )
default

Member Function Documentation

◆ APlugin()

Engine::APlugin::APlugin ( Core & core)
explicit

Constructor for APlugin. It takes a reference to the Core, which is used to register systems and resources in the Bind method.

Parameters
coreReference to the Core, which is used to register systems and resources in the Bind method.

◆ Bind() [1/4]

void Example::App::Bind ( void )
inlineoverridevirtual

Pure virtual method that must be implemented by derived plugin classes. This method is called when the plugin is added to the engine, and is where the plugin should register its systems, resources, and any other functionality it provides to the engine.

See also
Engine::Core
Engine::APlugin

Implements Engine::APlugin.

◆ Bind() [2/4]

void Example::App::Bind ( void )
inlineoverridevirtual

Pure virtual method that must be implemented by derived plugin classes. This method is called when the plugin is added to the engine, and is where the plugin should register its systems, resources, and any other functionality it provides to the engine.

See also
Engine::Core
Engine::APlugin

Implements Engine::APlugin.

◆ Bind() [3/4]

void Example::App::Bind ( void )
inlineoverridevirtual

Pure virtual method that must be implemented by derived plugin classes. This method is called when the plugin is added to the engine, and is where the plugin should register its systems, resources, and any other functionality it provides to the engine.

See also
Engine::Core
Engine::APlugin

Implements Engine::APlugin.

◆ Bind() [4/4]

void Example::App::Bind ( void )
inlineoverridevirtual

Pure virtual method that must be implemented by derived plugin classes. This method is called when the plugin is added to the engine, and is where the plugin should register its systems, resources, and any other functionality it provides to the engine.

See also
Engine::Core
Engine::APlugin

Implements Engine::APlugin.


The documentation for this class was generated from the following files: