Estella
0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
Interactable.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
3
#pragma once
4
5
#include "
../../core/Types.hpp
"
6
#include "
../../core/Reflection.hpp
"
7
8
namespace
esengine::ecs
{
9
10
ES_COMPONENT
()
11
struct
Interactable
{
12
ES_PROPERTY
()
13
bool
enabled
{
true
};
14
ES_PROPERTY
()
15
bool
blockRaycast
{
true
};
16
ES_PROPERTY
()
17
bool
raycastTarget
{
true
};
18
};
19
20
}
// namespace esengine::ecs
Reflection.hpp
Reflection and metadata system for automatic binding generation.
ES_COMPONENT
#define ES_COMPONENT(...)
Mark a struct/class as a component that should be exposed to scripts.
Definition
Reflection.hpp:46
ES_PROPERTY
#define ES_PROPERTY(...)
Mark a field as a property that should be exposed to scripts.
Definition
Reflection.hpp:95
Types.hpp
Core type definitions and utilities for ESEngine.
esengine::ecs
Definition
AotComponents.generated.hpp:8
esengine::ecs::Interactable
Definition
Interactable.hpp:11
esengine::ecs::Interactable::raycastTarget
bool raycastTarget
Definition
Interactable.hpp:17
esengine::ecs::Interactable::blockRaycast
bool blockRaycast
Definition
Interactable.hpp:15
esengine::ecs::Interactable::enabled
bool enabled
Definition
Interactable.hpp:13
src
esengine
ecs
components
Interactable.hpp
Generated by
1.15.0