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