12345678910111213141516171819202122232425 |
- #pragma once
- #include <Array.h>
- #include "RecipieList.h"
- class RecipieLoader : public virtual Framework::ReferenceCounter
- {
- private:
- Framework::RCArray<RecipieList> lists;
- Framework::RCArray<ShapedRecipieList> shapedLists;
- Framework::JSON::Validator::JSONValidator* validator;
- public:
- RecipieLoader();
- ~RecipieLoader();
- void loadRecipies(const char* path);
- RecipieList* zRecipieList(const char* name) const;
- ShapedRecipieList* zShapedRecipieList(const char* name) const;
- void registerRecipieList(const char* name);
- void registerShapedRecipieList(const char* name);
- private:
- void loadRecipie(Framework::JSON::JSONObject* zRecipie);
- ItemFilter* loadFilter(Framework::JSON::JSONObject* zFilter);
- Framework::JSON::Validator::JSONValidator* zRecipieValidator();
- };
|