Helper to build Actors in VirtualCore. More...
#include <qb/main.h>
Public Types | |
using | ActorIdList = std::vector< ActorId > |
Public Member Functions | |
CoreBuilder (CoreBuilder const &rhs) | |
template<typename _Actor , typename ... _Args> | |
CoreBuilder & | addActor (_Args &&...args) |
Create new _Actor. More... | |
bool | valid () const |
operator bool () const | |
ActorIdList const & | idList () const |
Get list of created ActorId by the CoreBuilder. More... | |
Helper to build Actors in VirtualCore.
CoreBuilder& qb::Main::CoreBuilder::addActor | ( | _Args &&... | args | ) |
Create new _Actor.
_Actor | DerivedActor type |
args | arguments to forward to the constructor of the _Actor |
create new _Actor on attached VirtualCore, function can be chained.
example:
ActorIdList const& qb::Main::CoreBuilder::idList | ( | ) | const |
Get list of created ActorId by the CoreBuilder.