cleanup
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
// };
|
||||
Reference in New Issue
Block a user