[nostalgia] Change Claw type IDs to domain based namespaces

This commit is contained in:
Gary Talent 2020-06-15 23:15:49 -05:00
parent 20f4d50ad6
commit f8fb458e32
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;
} }