Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
SortingGroup.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
23#pragma once
24
25#include "../../core/Types.hpp"
27
28namespace esengine::ecs {
29
33ES_COMPONENT(stability=beta)
36 ES_PROPERTY(step=1, enum_source=sortingLayers,
37 tooltip="Sorting layer for the entire group — members no longer state their own.")
39
41 ES_PROPERTY(step=1, min=-128, max=127,
42 tooltip="Draw order of the whole group inside its sorting layer — higher draws on top.")
44
47 bool enabled{true};
48};
49
50} // namespace esengine::ecs
Reflection and metadata system for automatic binding generation.
#define ES_COMPONENT(...)
Mark a struct/class as a component that should be exposed to scripts.
#define ES_PROPERTY(...)
Mark a field as a property that should be exposed to scripts.
Core type definitions and utilities for ESEngine.
std::int32_t i32
Signed 32-bit integer.
Definition Types.hpp:54
One sorting identity for an entity and everything under it.
bool enabled
A disabled group is not a group: members sort on their own again.
i32 order
Where the group sits inside that layer; higher draws on top.
i32 layer
The sorting layer the whole group presents outward.