viotecs
1.1.0
Loading...
Searching...
No Matches
component.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
// Author: Giovanni Santini
3
// Mail: giovanni.santini@proton.me
4
// Github: @San7o
5
6
#pragma once
7
8
#include <
viotecs/types.hpp
>
9
10
namespace
viotecs
11
{
12
36
class
Component
37
{
38
public
:
39
EntityId
entity
;
40
41
bool
operator==
(
const
Component
&other)
const
42
{
43
return
(
entity
== other.
entity
);
44
}
45
};
46
47
}
// namespace viotecs
viotecs::Component
Component class.
Definition
component.hpp:37
viotecs::Component::operator==
bool operator==(const Component &other) const
Definition
component.hpp:41
viotecs::Component::entity
EntityId entity
Definition
component.hpp:39
viotecs
Definition
component.hpp:11
viotecs::EntityId
int EntityId
Definition
types.hpp:41
types.hpp
include
viotecs
component.hpp
Generated by
1.9.8