RavEngine
Loading...
Searching...
No Matches
ComponentWithOwner.hpp
1#pragma once
2#include "Entity.hpp"
3#include "CTTI.hpp"
4
5namespace RavEngine {
7protected:
8 Entity owner;
9public:
10 ComponentWithOwner(const decltype(owner) o) : owner(o){}
11 Entity GetOwner() const {
12 return owner;
13 }
14};
15}
16
18 bool Enabled = true;
19public:
20 decltype(Enabled) GetEnabled() const {return Enabled; }
21 void SetEnabled(decltype(Enabled) in ) {Enabled = in; }
22};
Definition ComponentWithOwner.hpp:17
Definition ComponentWithOwner.hpp:6
Definition Animation.hpp:6
Definition CTTI.hpp:14
Definition Entity.hpp:11