Add initial serialization test mode.

Reduce some dependencies on CSimulation2 to provide more flexibility.

This was SVN commit r10426.
This commit is contained in:
Ykkrosh
2011-10-24 14:31:05 +00:00
parent 0f3119e36a
commit 29e4f633f1
14 changed files with 368 additions and 114 deletions
@@ -51,9 +51,9 @@ void DeserializeRNG(const std::string& str, boost::rand48& rng)
s >> rng;
}
bool CComponentManager::DumpDebugState(std::ostream& stream)
bool CComponentManager::DumpDebugState(std::ostream& stream, bool includeDebugInfo)
{
CDebugSerializer serializer(m_ScriptInterface, stream);
CDebugSerializer serializer(m_ScriptInterface, stream, includeDebugInfo);
serializer.StringASCII("rng", SerializeRNG(m_RNG), 0, 32);