Not logged inOpenClonk Forum
Up Topic Development / Scenario & Object Development / (De)serializing Meshinstances
- By Günther [de] Date 2010-03-22 01:37
So, a Meshinstance wants to have the mesh as a constructor parameter, but CompileNewFunc doesn't seem to get enough information to get it from the C4Object that is being compiled. We could duplicate the StdPtrAdapt to make it pass through an additional parameter to the constructor, open-code the necessary bits in C4Object::CompileFunc, duplicate the information in the serialized MeshInstance, or replace the Mesh reference in the Meshinstance with a Mesh pointer. None of this strikes me as particularly elegant, but I can't think of a better solution. Am I simply too tired?
Reply
Up Topic Development / Scenario & Object Development / (De)serializing Meshinstances

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill