Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
|
#include <entity_factory.h>
Static Public Member Functions | |
static SharedPtr< Entity > | CreateEntity (const String &name) |
static SharedPtr< Entity > | CreateEntity (const String &name, SharedPtr< Entity > parent) |
static void | AddChildToEntity (SharedPtr< Entity > entity, SharedPtr< Entity > child) |
static void | RemoveChildFromEntity (SharedPtr< Entity > entity, SharedPtr< Entity > child) |
Factory for creating Entity instances and managing Entity children.
A Factory pattern for creating Entity instances and creating parental links between entities.
|
static |
Adds a child to an Entity.
[in] | entity | The entity to which you want to add a child |
[in] | child | The child you want to add to the entity |
|
static |
Remove a child from an Entity.
[in] | entity | The entity from which you want to remove a child |
[in] | child | The child you want to remove from the entity |