[Alephmodular-devel] Serializing Terminals
Status: Pre-Alpha
Brought to you by:
brefin
From: Br'fin <br...@ma...> - 2005-06-09 17:00:28
|
I'm looking over serializing those items that need to be serialized. Most of these things are weapon and player state which are completely based off internal structures. Hence writing them out unserialized now and working with serialization later is is a problem. The other aspect of unserialized items is Terminal structure. Now the funny thing about Terminals is that they are read in from the original map file. They should be unpacked for internal use to be proper. (Being a mix of ints and chars, it managed to fit within PowerPC alignment issues, so never went through the unserialization process before.) Now, save files still have a complete map file in them (The current level and all states). Should we save memory most of the time by unpacking the terminals, then repacking them during the save. Or Do we just use more memory by holding onto the original packed data and handing that back to the save system when it is asked for? -Jeremy Parsons http://alephmodular.sourceforge.net/ |