Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
TestComponent.h
Go to the documentation of this file.
1#pragma once
3
4namespace EngineCore {
5 class Scene;
6
8 public:
9 static constexpr bool IsUnique = false; // Allow multiple by default
10
11 explicit TestComponent(Scene* scene, int id);
12 ~TestComponent() override;
13
14 void beginPlay() override;
15 void tick(double deltaTime) override;
16 void endPlay() override;
17
18 int getId() const { return id; }
19
20 private:
21 int id;
22 };
23
25 public:
26 static constexpr bool IsUnique = true; // Only one allowed
27
29 };
30}
31
32
33
34
35
36
37
38
39
40
41
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.
static constexpr bool IsUnique
void beginPlay() override
Called when the component is added to the scene or the game starts.
TestComponent(Scene *scene, int id)
static constexpr bool IsUnique
Log category system implementation.