Load map descriptions from their XML file.

Add basic hold-fire stance, and use it for some test maps.
Add JSON data container to map XML files, to simplify the interaction
between scripts and maps.
Fix fixed-point printing so it roundtrips safely through map files.
Fix camera startup positions in old-format maps.

This was SVN commit r7844.
This commit is contained in:
Ykkrosh
2010-08-04 21:15:41 +00:00
parent a5171d9145
commit 65bcedb9fc
21 changed files with 415 additions and 28 deletions
@@ -23,6 +23,7 @@
#include "lib/secure_crt.h"
#include "lib/utf8.h"
#include "ps/CStr.h"
#include <sstream>
#include <iomanip>
@@ -106,7 +107,7 @@ void CDebugSerializer::PutNumber(const char* name, double value)
void CDebugSerializer::PutNumber(const char* name, fixed value)
{
m_Stream << INDENT << name << ": " << canonfloat(value.ToDouble(), 11) << "\n";
m_Stream << INDENT << name << ": " << value.ToString() << "\n";
}
void CDebugSerializer::PutBool(const char* name, bool value)