1234567891011121314151617181920212223242526 |
- #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);
- ItemModifier* loadModifier(Framework::JSON::JSONObject* zModifier);
- Framework::JSON::Validator::JSONValidator* zRecipieValidator();
- };
|