Nymph Game Engine
Chaiscript based Game Engine
|
A container holding a base transform, a vector of components, and a vector of entities. More...
#include <scene.h>
Public Member Functions | |
Scene ()=delete | |
Scene (const std::string scene_name) | |
Scene constructor. More... | |
void | setTransform (std::shared_ptr< Transform > transform) noexcept |
Sets the transform. More... | |
std::shared_ptr< Transform > | getTransform () const noexcept |
Gets the transform. More... | |
void | addComponent (std::shared_ptr< Component > component) |
Adds a component. More... | |
void | addComponent (std::shared_ptr< Physics::CollisionData > collision_data) |
Adds a collision data component. More... | |
void | addComponents (std::vector< std::shared_ptr< Component >> components) |
Adds components. More... | |
std::vector< std::shared_ptr < Component > > | getComponents () const noexcept |
Gets all components. More... | |
std::shared_ptr < Physics::CollisionData > | getCollisionData () const noexcept |
Gets the collision data. More... | |
void | addEntity (std::shared_ptr< Entity > entity) noexcept |
Adds an entity. More... | |
void | addEntities (std::vector< std::shared_ptr< Entity >> entities) noexcept |
Adds entities. More... | |
std::vector< std::shared_ptr < Entity > > | getEntities () const noexcept |
Gets all entities. More... | |
void | setName (const std::string name) noexcept |
Sets the name. More... | |
std::string | getName () const noexcept |
Gets the name. More... | |
std::string | to_string () const noexcept |
Returns a string representation of the object, mostly for use in chaiscript. More... | |
A container holding a base transform, a vector of components, and a vector of entities.
|
delete |
Game::Scene::Scene | ( | const std::string | scene_name | ) |
Scene constructor.
[in] | scene_name | The name of the scene. |
void Game::Scene::addComponent | ( | std::shared_ptr< Component > | component | ) |
void Game::Scene::addComponent | ( | std::shared_ptr< Physics::CollisionData > | collision_data | ) |
Adds a collision data component.
[in] | collision_data | The collision data |
void Game::Scene::addComponents | ( | std::vector< std::shared_ptr< Component >> | components | ) |
|
noexcept |
|
noexcept |
|
noexcept |
Gets the collision data.
Referenced by generated::getSceneModule(), and to_string().
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Sets the transform.
[in] | transform | The transform |
Referenced by generated::getSceneModule().
|
noexcept |
Returns a string representation of the object, mostly for use in chaiscript.
References getCollisionData(), and getName().
Referenced by generated::getSceneModule().