mirror of
https://github.com/zeldaret/mm.git
synced 2026-08-19 05:22:32 -04:00
bbfbc4073e
* git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "cb0342425" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "cb0342425" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "110b9eb" * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "505024b33" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "505024b33" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "110b9eb" * Disable Wno-hardcoded-pointer for `make assets`
24 lines
853 B
C++
24 lines
853 B
C++
#pragma once
|
|
|
|
typedef void (*ExporterSetFunc)(ZFile*);
|
|
typedef bool (*ExporterSetFuncBool)(ZFileMode fileMode);
|
|
typedef void (*ExporterSetFuncVoid)(int argc, char* argv[], int& i);
|
|
typedef void (*ExporterSetFuncVoid2)(const std::string& buildMode, ZFileMode& fileMode);
|
|
typedef void (*ExporterSetFuncVoid3)();
|
|
typedef void (*ExporterSetResSave)(ZResource* res, BinaryWriter& writer);
|
|
|
|
class ExporterSet
|
|
{
|
|
public:
|
|
~ExporterSet();
|
|
|
|
std::map<ZResourceType, ZResourceExporter*> exporters;
|
|
ExporterSetFuncVoid parseArgsFunc = nullptr;
|
|
ExporterSetFuncVoid2 parseFileModeFunc = nullptr;
|
|
ExporterSetFuncBool processFileModeFunc = nullptr;
|
|
ExporterSetFunc beginFileFunc = nullptr;
|
|
ExporterSetFunc endFileFunc = nullptr;
|
|
ExporterSetFuncVoid3 beginXMLFunc = nullptr;
|
|
ExporterSetFuncVoid3 endXMLFunc = nullptr;
|
|
ExporterSetResSave resSaveFunc = nullptr;
|
|
}; |