]> git.localhorst.tv Git - l2e.git/blobdiff - src/loader/TypeDescription.h
removed stupid file headers that eclipse put in
[l2e.git] / src / loader / TypeDescription.h
index ab8c1bf1ba13328b399d721c46fb26cb2053af65..cc00662a6855ad893c754181a30812afddbe3596 100644 (file)
@@ -1,10 +1,3 @@
-/*
- * TypeDescription.h
- *
- *  Created on: Sep 4, 2012
- *      Author: holy
- */
-
 #ifndef LOADER_TYPEDESCRIPTION_H_
 #define LOADER_TYPEDESCRIPTION_H_
 
@@ -70,7 +63,7 @@ public:
        FieldIterator FieldsBegin() const { return fields.begin(); }
        FieldIterator FieldsEnd() const { return fields.end(); }
 
-       static TypeDescription &CreateOrGet(const std::string &name);
+       static TypeDescription &Create(int id, const std::string &name);
        static int GetTypeId(const std::string &);
        static const TypeDescription &Get(int id);
 
@@ -89,7 +82,8 @@ private:
        int id;
        int size;
 
-       static std::vector<TypeDescription> typeDescriptions;
+       static std::map<int, TypeDescription> typeDescriptions;
+       static std::map<std::string, int> typeName2ID;
 
 };