Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Rat.cpp
Go to the documentation of this file.
1#include "Engine/Entity/Rat.h"
3#include "Engine/Files/Path.h"
4
5namespace EngineCore {
6 Rat::Rat(const std::shared_ptr<SceneNode> &node, Scene* owningScene) : Actor(node, owningScene) {
7 Asset::Path meshAsset(Path::engineGeometry() / "rat.gltf", "rat");
8
9 // Add the component with Scene* as first argument
11 owningScene, // Scene pointer (first arg for LogicComponent base)
12 data, // entt::entity from Entity base class
13 meshAsset, // Asset::Path
14 node // SceneNode
15 );
16 }
17
19 }
20}
friend class Scene
Definition Actor.h:25
Actor(std::shared_ptr< SceneNode > sceneNode, Scene *owningScene)
Definition Actor.cpp:13
Scene * owningScene
Definition Actor.h:149
entt::entity data
Definition Entity.h:177
T * addComponent(Args &&... args)
Adds a component to the entity. Checks for uniqueness if the component defines 'static constexpr bool...
Definition Entity.h:44
A component which can be attached as many times to an actor as one wants. It makes it possible to ren...
static constexpr ConstexprPath engineGeometry()
Path to engine geometry assets @lsp_source_path Engine/geometry/Defaults @lsp_source_path Engine/geom...
Definition Path.h:45
~Rat() override
Definition Rat.cpp:18
Rat(const std::shared_ptr< SceneNode > &node, Scene *owningScene)
Definition Rat.cpp:6
Log category system implementation.