1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Ouch. Thing was for branch only.

This commit is contained in:
Michał W. Urbańczyk
2011-09-27 22:03:43 +00:00
parent bdd66b6537
commit 623325ca61
21 changed files with 82 additions and 588 deletions

View File

@@ -28,7 +28,7 @@ private:
union JsonData
{
bool Bool;
double Float;
float Float;
std::string* String;
JsonVector* Vector;
JsonMap* Struct;
@@ -60,14 +60,14 @@ public:
//non-const accessors, node will change type on type mismatch
bool & Bool();
double & Float();
float & Float();
std::string & String();
JsonVector & Vector();
JsonMap & Struct();
//const accessors, will cause assertion failure on type mismatch
const bool & Bool() const;
const double & Float() const;
const float & Float() const;
const std::string & String() const;
const JsonVector & Vector() const;
const JsonMap & Struct() const;