This commit is contained in:
Connor
2026-02-20 18:24:20 +09:00
parent c081aa868f
commit fc3192cd1e
8 changed files with 449 additions and 567 deletions

View File

@@ -20,6 +20,12 @@ struct TilePosition
Vector2 Position;
};
struct Bounds
{
Vector2 Min;
Vector2 Max;
};
struct Level
{
Level() = default;
@@ -59,6 +65,10 @@ inline void Flecs_Misc(flecs::world& world)
world.component<TilePosition>()
.member<Vector2>("Position");
world.component<Bounds>()
.member<Vector2>("Min")
.member<Vector2>("Max");
world.component<Level>()
.member<uint8_t>("Val");
}

View File

@@ -1,33 +0,0 @@
// #pragma once
// #include "core/object/ref_counted.h"
// struct Sync
// { };
// class FactoryEntity;
// struct NodePtr
// {
// NodePtr() = default;
// NodePtr(FactoryEntity* node) : Node{ node } {}
// template <typename T>
// T* AsNode() const
// {
// static_assert(std::is_base_of_v<FactoryEntity, T>);
// DEV_ASSERT(Object::cast_to<T>(Node));
// return static_cast<T*>(Node);
// }
// FactoryEntity* Node{};
// };
// class Archetype;
// struct ArchetypePtr
// {
// ArchetypePtr() = default;
// ArchetypePtr(Ref<Archetype>& archetpye) : Archetype{ archetpye } {}
// Ref<Archetype> Archetype;
// };