#include "CharacterSlots.hpp"
#include "../ui/ComponentRegistration.hpp"
#include "../ui/CharacterSlotsEditor.hpp"
#include "../systems/CharacterSlotSystem.hpp"
#include "Transform.hpp"

REGISTER_COMPONENT_GROUP("Character Slots", "Rendering",
				 CharacterSlotsComponent, CharacterSlotsEditor)
{
	CharacterSlotSystem::loadCatalog();

	registry.registerComponent<CharacterSlotsComponent>(
		"Character Slots",
		"Rendering",
		std::make_unique<CharacterSlotsEditor>(sceneMgr),
		/* Adder: disabled; this component is deprecated and cannot be
		 * created from the editor. */
		nullptr,
		/* Remover */
		[sceneMgr](flecs::entity e) {
			(void)sceneMgr;
			e.remove<CharacterSlotsComponent>();
		}
	);
}
