[nostalgia/core/studio] Cleanup module
This commit is contained in:
@ -12,12 +12,7 @@
|
|||||||
namespace nostalgia::core {
|
namespace nostalgia::core {
|
||||||
|
|
||||||
class StudioModule: public studio::Module {
|
class StudioModule: public studio::Module {
|
||||||
public:
|
ox::Vector<studio::EditorMaker> editors(turbine::Context *ctx) const noexcept final {
|
||||||
ox::Vector<studio::EditorMaker> editors(turbine::Context *ctx) const noexcept override;
|
|
||||||
ox::Vector<ox::UniquePtr<studio::ItemMaker>> itemMakers(turbine::Context*) const noexcept override;
|
|
||||||
};
|
|
||||||
|
|
||||||
ox::Vector<studio::EditorMaker> StudioModule::editors(turbine::Context *ctx) const noexcept {
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
{FileExt_ng},
|
{FileExt_ng},
|
||||||
@ -38,12 +33,13 @@ ox::Vector<studio::EditorMaker> StudioModule::editors(turbine::Context *ctx) con
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
ox::Vector<ox::UniquePtr<studio::ItemMaker>> StudioModule::itemMakers(turbine::Context*) const noexcept {
|
ox::Vector<ox::UniquePtr<studio::ItemMaker>> itemMakers(turbine::Context*) const noexcept final {
|
||||||
ox::Vector<ox::UniquePtr<studio::ItemMaker>> out;
|
ox::Vector<ox::UniquePtr<studio::ItemMaker>> out;
|
||||||
out.emplace_back(ox::make<studio::ItemMakerT<core::TileSheet>>("Tile Sheet", "TileSheets", "ng"));
|
out.emplace_back(ox::make<studio::ItemMakerT<core::TileSheet>>("Tile Sheet", "TileSheets", "ng"));
|
||||||
out.emplace_back(ox::make<studio::ItemMakerT<core::Palette>>("Palette", "Palettes", "npal"));
|
out.emplace_back(ox::make<studio::ItemMakerT<core::Palette>>("Palette", "Palettes", "npal"));
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
static StudioModule mod;
|
static StudioModule mod;
|
||||||
const studio::Module *studioModule() noexcept {
|
const studio::Module *studioModule() noexcept {
|
||||||
|
Reference in New Issue
Block a user