diff options
Diffstat (limited to 'src/ai/ai_info.hpp')
-rw-r--r-- | src/ai/ai_info.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ai/ai_info.hpp b/src/ai/ai_info.hpp index 223fbeaf3..9708eb545 100644 --- a/src/ai/ai_info.hpp +++ b/src/ai/ai_info.hpp @@ -101,7 +101,7 @@ public: /** * Process the creation of a FileInfo object. */ - static SQInteger Constructor(HSQUIRRELVM vm, AIFileInfo *info); + static SQInteger Constructor(HSQUIRRELVM vm, AIFileInfo *info, bool library); private: class Squirrel *engine; @@ -155,12 +155,22 @@ private: class AILibrary : public AIFileInfo { public: + AILibrary() : AIFileInfo(), category(NULL) {}; + /** * Create an AI, using this AIInfo as start-template. */ static SQInteger Constructor(HSQUIRRELVM vm); static SQInteger Import(HSQUIRRELVM vm); + + /** + * Get the category this library is in. + */ + const char *GetCategory(); + +private: + const char *category; }; #endif /* AI_INFO */ |