Hi,
I'm using Helium::Persist for saving and loading data.
I have a case where the type translator is deducing an Object as a bool (I think).
Here's a simplified example of what's happening:
class Foo: public Helium::Reflect::Object
{
public:
// Helium declare class ( Foo, Object )
// populate meta type { type.AddField<Foo, float> etc }
};
// Helium define class
class Bar: public Helium::Reflect::Object
{
public:
// Helium declare class (Bar, Object)
// populate meta type { type.AddField<Bar, Foo*> etc }
};
// Helium define class
// To write
{
// Fill values
ObjectPtr* objPtr = new ObjectPtr(bar);
WriteToFile(filePath, *objPtr);
}
Now when it's being serialized, it's serializing Foo* as a bool, and not as class.
I know I'm doing something wrong...
Maybe Foo needs to be a struct?
Any help/insight will be a great help. :)