2015-07-01 23:50:39 +00:00
|
|
|
#ifndef SPECBASE_HPP
|
|
|
|
#define SPECBASE_HPP
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
|
|
|
|
#include <NODLib.hpp>
|
|
|
|
#include <HECLDatabase.hpp>
|
|
|
|
|
|
|
|
namespace Retro
|
|
|
|
{
|
|
|
|
|
|
|
|
struct SpecBase : public HECL::Database::IDataSpec
|
|
|
|
{
|
2015-07-02 20:41:40 +00:00
|
|
|
bool canExtract(const ExtractPassInfo& info, HECL::SystemString& reasonNo);
|
2015-07-01 23:50:39 +00:00
|
|
|
void doExtract(const HECL::Database::Project& project, const ExtractPassInfo& info);
|
|
|
|
|
|
|
|
bool canCook(const HECL::Database::Project& project, const CookTaskInfo& info,
|
|
|
|
HECL::SystemString& reasonNo);
|
|
|
|
void doCook(const HECL::Database::Project& project, const CookTaskInfo& info);
|
|
|
|
|
|
|
|
bool canPackage(const HECL::Database::Project& project, const PackagePassInfo& info,
|
|
|
|
HECL::SystemString& reasonNo);
|
|
|
|
void gatherDependencies(const HECL::Database::Project& project, const PackagePassInfo& info,
|
|
|
|
std::unordered_set<HECL::ProjectPath>& implicitsOut);
|
|
|
|
void doPackage(const HECL::Database::Project& project, const PackagePassInfo& info);
|
|
|
|
|
|
|
|
virtual bool checkFromGCNDisc(const NOD::DiscGCN& disc)=0;
|
|
|
|
virtual bool readFromGCNDisc(const NOD::DiscGCN& disc)=0;
|
|
|
|
|
|
|
|
virtual bool checkFromWiiDisc(const NOD::DiscWii& disc)=0;
|
|
|
|
virtual bool readFromWiiDisc(const NOD::DiscWii& disc)=0;
|
|
|
|
|
|
|
|
virtual bool checkFromProject(const HECL::Database::Project& proj)=0;
|
|
|
|
virtual bool readFromProject(const HECL::Database::Project& proj)=0;
|
|
|
|
|
|
|
|
virtual bool visitGameObjects(std::function<bool(const HECL::Database::ObjectBase&)>)=0;
|
|
|
|
struct ILevelSpec
|
|
|
|
{
|
|
|
|
virtual bool visitLevelObjects(std::function<bool(const HECL::Database::ObjectBase&)>)=0;
|
|
|
|
struct IAreaSpec
|
|
|
|
{
|
|
|
|
virtual bool visitAreaObjects(std::function<bool(const HECL::Database::ObjectBase&)>)=0;
|
|
|
|
};
|
|
|
|
virtual bool visitAreas(std::function<bool(const IAreaSpec&)>)=0;
|
|
|
|
};
|
|
|
|
virtual bool visitLevels(std::function<bool(const ILevelSpec&)>)=0;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // SPECBASE_HPP
|
|
|
|
|