This commit is contained in:
parent
0d8ba1b154
commit
74cf055610
@ -16,23 +16,6 @@
|
|||||||
|
|
||||||
namespace nostalgia::gfx {
|
namespace nostalgia::gfx {
|
||||||
|
|
||||||
struct SubSheetTemplate {
|
|
||||||
static constexpr auto TypeName = "net.drinkingtea.nostalgia.gfx.SubSheetTemplate";
|
|
||||||
static constexpr auto TypeVersion = 1;
|
|
||||||
ox::String name;
|
|
||||||
int32_t width{};
|
|
||||||
int32_t height{};
|
|
||||||
ox::Vector<SubSheetTemplate> subsheets;
|
|
||||||
};
|
|
||||||
|
|
||||||
OX_MODEL_BEGIN(SubSheetTemplate)
|
|
||||||
OX_MODEL_FIELD(name)
|
|
||||||
OX_MODEL_FIELD(width)
|
|
||||||
OX_MODEL_FIELD(height)
|
|
||||||
OX_MODEL_FIELD(subsheets)
|
|
||||||
OX_MODEL_END()
|
|
||||||
|
|
||||||
|
|
||||||
// Predecessor to TileSheet, kept for backward compatibility
|
// Predecessor to TileSheet, kept for backward compatibility
|
||||||
struct TileSheetV1 {
|
struct TileSheetV1 {
|
||||||
static constexpr auto TypeName = "net.drinkingtea.nostalgia.core.NostalgiaGraphic";
|
static constexpr auto TypeName = "net.drinkingtea.nostalgia.core.NostalgiaGraphic";
|
||||||
|
@ -129,7 +129,7 @@ ox::Error run(
|
|||||||
[[maybe_unused]] ox::StringView project,
|
[[maybe_unused]] ox::StringView project,
|
||||||
[[maybe_unused]] ox::StringView appName,
|
[[maybe_unused]] ox::StringView appName,
|
||||||
[[maybe_unused]] ox::StringView projectDataDir,
|
[[maybe_unused]] ox::StringView projectDataDir,
|
||||||
ox::SpanView<char const*> args) noexcept {
|
ox::SpanView<ox::CString> args) noexcept {
|
||||||
if (args.size() < 2) {
|
if (args.size() < 2) {
|
||||||
return ox::Error{1, "Please provide path to project directory or OxFS file."};
|
return ox::Error{1, "Please provide path to project directory or OxFS file."};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user