[nostalgia] Change Claw type IDs to domain based namespaces
This commit is contained in:
parent
20f4d50ad6
commit
f8fb458e32
@ -28,14 +28,14 @@ using Color16 = uint16_t;
|
|||||||
using Color32 = uint32_t;
|
using Color32 = uint32_t;
|
||||||
|
|
||||||
struct NostalgiaPalette {
|
struct NostalgiaPalette {
|
||||||
static constexpr auto TypeName = "nostalgia::core::NostalgiaPalette";
|
static constexpr auto TypeName = "net.drinkingtea.nostalgia.core.NostalgiaPalette";
|
||||||
static constexpr auto Fields = 1;
|
static constexpr auto Fields = 1;
|
||||||
static constexpr auto TypeVersion = 1;
|
static constexpr auto TypeVersion = 1;
|
||||||
ox::Vector<Color16> colors;
|
ox::Vector<Color16> colors;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct NostalgiaGraphic {
|
struct NostalgiaGraphic {
|
||||||
static constexpr auto TypeName = "nostalgia::core::NostalgiaGraphic";
|
static constexpr auto TypeName = "net.drinkingtea.nostalgia.core.NostalgiaGraphic";
|
||||||
static constexpr auto Fields = 6;
|
static constexpr auto Fields = 6;
|
||||||
static constexpr auto TypeVersion = 1;
|
static constexpr auto TypeVersion = 1;
|
||||||
int8_t bpp = 0;
|
int8_t bpp = 0;
|
||||||
|
@ -66,7 +66,7 @@ struct Zone {
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
ox::Error modelRead(T *io, Zone *obj) {
|
ox::Error modelRead(T *io, Zone *obj) {
|
||||||
auto err = OxError(0);
|
auto err = OxError(0);
|
||||||
io->setTypeInfo("nostalgia::world::Zone", Zone::Fields);
|
io->setTypeInfo("net.drinkingtea.nostalgia.world.Zone", Zone::Fields);
|
||||||
err |= io->field("bounds", &obj->m_bounds);
|
err |= io->field("bounds", &obj->m_bounds);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
@ -74,7 +74,7 @@ ox::Error modelRead(T *io, Zone *obj) {
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
ox::Error modelWrite(T *io, Zone *obj) {
|
ox::Error modelWrite(T *io, Zone *obj) {
|
||||||
auto err = OxError(0);
|
auto err = OxError(0);
|
||||||
io->setTypeInfo("nostalgia::world::Zone", Zone::Fields);
|
io->setTypeInfo("net.drinkingtea.nostalgia.world.Zone", Zone::Fields);
|
||||||
err |= io->field("bounds", &obj->m_bounds);
|
err |= io->field("bounds", &obj->m_bounds);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
@ -99,14 +99,14 @@ struct Region {
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
ox::Error modelRead(T *io, Region*) {
|
ox::Error modelRead(T *io, Region*) {
|
||||||
auto err = OxError(0);
|
auto err = OxError(0);
|
||||||
io->setTypeInfo("nostalgia::World::Region", Region::Fields);
|
io->setTypeInfo("net.drinkingtea.nostalgia.world.Region", Region::Fields);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
ox::Error modelWrite(T *io, Region*) {
|
ox::Error modelWrite(T *io, Region*) {
|
||||||
auto err = OxError(0);
|
auto err = OxError(0);
|
||||||
io->setTypeInfo("nostalgia::World::Region", Region::Fields);
|
io->setTypeInfo("net.drinkingtea.nostalgia.world.Region", Region::Fields);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user