How Does SerializeObjectPtr() Work?Forum Home > Construct Classic > Construct Classic Discussion > Construct engineering
Topic: How Does SerializeObjectPtr() Work?
Posted: 18 Sep 2009 at 3:10am
I'm working on the serialization portion of a plugin I'm working on and I need to serialize some pointers to CRunObjects. I've stumbled across this plugin, but I'm not sure how to use it correctly. My thought at the moment is something along these lines:
void ExtObject::Serialize(bin& ar)
obj = tempObj;
Unfortunately, this doesn't seem to work quite right.
I have an expression that returns the X coordinate of "obj". If I do a quicksave and then a quickload, the returned X coordinate is equal to what it was before the load, but if I move around the object that's being pointed to, the returned X coordinate no longer changes.
Scratch the stuff in italics, the SerializeObjectPtr() function doesn't seem to be returning anything when I call it in the load portion of serialization. My pointers remain NULL.
|Forum Jump||Forum Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum