Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
TestComponent.cpp
Go to the documentation of this file.
2#include <plog/Log.h>
3
4namespace EngineCore {
5
7 PLOGI << "TestComponent [" << id << "] Constructed";
8 setCanTick(true);
9 }
10
12 PLOGI << "TestComponent [" << id << "] Destructed";
13 }
14
16 PLOGI << "TestComponent [" << id << "] beginPlay";
17 }
18
19 void TestComponent::tick(double deltaTime) {
20 // PLOGI << "TestComponent [" << id << "] tick: " << deltaTime;
21 }
22
24 PLOGI << "TestComponent [" << id << "] endPlay";
25 }
26
28 PLOGI << "UniqueTestComponent Constructed";
29 }
30
31}
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
void setCanTick(bool enable)
Enables or disables ticking for this component.
LogicComponent(Scene *owningScene)
A scene is the overarching structure which can spawn actors.
Definition Scene.h:17
void tick(double deltaTime) override
Called every frame if ticking is enabled.
void endPlay() override
Called when the component is removed or the game ends.
void beginPlay() override
Called when the component is added to the scene or the game starts.
TestComponent(Scene *scene, int id)
Log category system implementation.