[nostalgia] Change Claw type IDs to domain based namespaces
This commit is contained in:
		@@ -28,14 +28,14 @@ using Color16 = uint16_t;
 | 
			
		||||
using Color32 = uint32_t;
 | 
			
		||||
 | 
			
		||||
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 TypeVersion = 1;
 | 
			
		||||
	ox::Vector<Color16> colors;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
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 TypeVersion = 1;
 | 
			
		||||
	int8_t bpp = 0;
 | 
			
		||||
 
 | 
			
		||||
@@ -66,7 +66,7 @@ struct Zone {
 | 
			
		||||
template<typename T>
 | 
			
		||||
ox::Error modelRead(T *io, Zone *obj) {
 | 
			
		||||
	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);
 | 
			
		||||
	return err;
 | 
			
		||||
}
 | 
			
		||||
@@ -74,7 +74,7 @@ ox::Error modelRead(T *io, Zone *obj) {
 | 
			
		||||
template<typename T>
 | 
			
		||||
ox::Error modelWrite(T *io, Zone *obj) {
 | 
			
		||||
	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);
 | 
			
		||||
	return err;
 | 
			
		||||
}
 | 
			
		||||
@@ -99,14 +99,14 @@ struct Region {
 | 
			
		||||
template<typename T>
 | 
			
		||||
ox::Error modelRead(T *io, Region*) {
 | 
			
		||||
	auto err = OxError(0);
 | 
			
		||||
	io->setTypeInfo("nostalgia::World::Region", Region::Fields);
 | 
			
		||||
	io->setTypeInfo("net.drinkingtea.nostalgia.world.Region", Region::Fields);
 | 
			
		||||
	return err;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template<typename T>
 | 
			
		||||
ox::Error modelWrite(T *io, Region*) {
 | 
			
		||||
	auto err = OxError(0);
 | 
			
		||||
	io->setTypeInfo("nostalgia::World::Region", Region::Fields);
 | 
			
		||||
	io->setTypeInfo("net.drinkingtea.nostalgia.world.Region", Region::Fields);
 | 
			
		||||
	return err;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user