]> git.localhorst.tv Git - blobs.git/blobdiff - src/io/TokenStreamReader.hpp
randomize creature properties a bit
[blobs.git] / src / io / TokenStreamReader.hpp
index e2945c40cc2b60880261d7b525f8d852844ae753..ccdad90a376c66f321d08b3d92ead3bb8bd404b9 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "Token.hpp"
 #include "Tokenizer.hpp"
-#include "../graphics/glm.hpp"
+#include "../math/glm.hpp"
 
 #include <iosfwd>
 #include <string>
@@ -25,6 +25,7 @@ public:
 
        void ReadBoolean(bool &);
        void ReadIdentifier(std::string &);
+       void ReadNumber(double &);
        void ReadNumber(float &);
        void ReadNumber(int &);
        void ReadNumber(unsigned long &);
@@ -34,11 +35,16 @@ public:
        void ReadVec(glm::vec3 &);
        void ReadVec(glm::vec4 &);
 
+       void ReadVec(glm::dvec2 &);
+       void ReadVec(glm::dvec3 &);
+       void ReadVec(glm::dvec4 &);
+
        void ReadVec(glm::ivec2 &);
        void ReadVec(glm::ivec3 &);
        void ReadVec(glm::ivec4 &);
 
        void ReadQuat(glm::quat &);
+       void ReadQuat(glm::dquat &);
 
        // the Get* functions advance to the next token
        // the As* functions try to cast the current token
@@ -46,6 +52,8 @@ public:
 
        bool GetBool();
        bool AsBool() const;
+       double GetDouble();
+       double AsDouble() const;
        float GetFloat();
        float AsFloat() const;
        int GetInt();