project-kyoku/include/core/editorcallback.h

26 lines
375 B
C
Raw Permalink Normal View History

2022-02-23 23:45:43 +01:00
#pragma once
#include <string>
namespace kku
{
class EditorCallback
{
public:
2022-02-23 23:45:43 +01:00
virtual ~EditorCallback() = default;
struct Metadata
{
const std::string group_title;
const std::string title;
};
virtual bool isEnabled() const = 0;
virtual void run() const = 0;
virtual Metadata getMetadata() const = 0;
};
} // namespace kku