#ifndef EDITSCENE_GOAP_BLACKBOARD_COMPONENT_EDITOR_HPP
#define EDITSCENE_GOAP_BLACKBOARD_COMPONENT_EDITOR_HPP
#pragma once

#include "ComponentEditor.hpp"
#include "GoapBlackboardEditor.hpp"
#include "../components/GoapBlackboard.hpp"

/**
 * Component editor wrapper for GoapBlackboard.
 */
class GoapBlackboardComponentEditor : public ComponentEditor<GoapBlackboard> {
public:
	const char *getName() const override { return "Blackboard"; }

protected:
	bool renderComponent(flecs::entity entity,
			     GoapBlackboard &bb) override
	{
		(void)entity;
		return GoapBlackboardEditor::render(bb, "bb");
	}
};

#endif // EDITSCENE_GOAP_BLACKBOARD_COMPONENT_EDITOR_HPP
