mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-24 09:08:52 -05:00
f31a841789
* git subrepo clone --force --branch=rebase2 C:/ZeldaStuff/ZAPDTR ZAPDTR/ subrepo: subdir: "ZAPDTR" merged: "6aa54a551" upstream: origin: "C:/ZeldaStuff/ZAPDTR" branch: "rebase2" commit: "6aa54a551" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * git subrepo clone --force --branch=rebase2 C:/ZeldaStuff/ZAPDTR ZAPDTR/ subrepo: subdir: "ZAPDTR" merged: "88b012240" upstream: origin: "C:/ZeldaStuff/ZAPDTR" branch: "rebase2" commit: "88b012240" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * Update (its broken) * fix the enum * git subrepo push --remote=C:/ZeldaStuff/ZAPDTR/ ZAPDTR subrepo: subdir: "ZAPDTR" merged: "b7b6e1c82" upstream: origin: "C:/ZeldaStuff/ZAPDTR/" branch: "rebase2" commit: "b7b6e1c82" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * New names for LUS actions * git subrepo push --remote=C:/ZeldaStuff/ZAPDTR/ ZAPDTR subrepo: subdir: "ZAPDTR" merged: "c5cfebeee" upstream: origin: "C:/ZeldaStuff/ZAPDTR/" branch: "rebase2" commit: "c5cfebeee" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * git subrepo clone (merge) --force --branch=rebase2 C:/ZeldaStuff/ZAPDTR ZAPDTR/ subrepo: subdir: "ZAPDTR" merged: "d5f4769b8" upstream: origin: "C:/ZeldaStuff/ZAPDTR" branch: "rebase2" commit: "d5f4769b8" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * Fix missing commands in the exporter. * Cleanups. * git subrepo pull --force --remote=https://github.com/harbourmasters/ZAPDTR --branch=master ZAPDTR subrepo: subdir: "ZAPDTR" merged: "d4c35b90a" upstream: origin: "https://github.com/harbourmasters/ZAPDTR" branch: "master" commit: "d4c35b90a" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * Add unordered_map include to fix MacOS * fix string_view * Update Main.cpp * fix string view * So close I can almost taste it * So close * Fix missed git marker. * Fix surface types and * Update ZFile.cpp * Delete Jenkinsfile --------- Co-authored-by: Christopher Leggett <chris@leggett.dev> Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
63 lines
1.7 KiB
C++
63 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <map>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "Utils/Directory.h"
|
|
#include "tinyxml2.h"
|
|
|
|
struct TexturePoolEntry
|
|
{
|
|
fs::path path = ""; // Path to Shared Texture
|
|
};
|
|
|
|
class ExternalFile
|
|
{
|
|
public:
|
|
fs::path xmlPath, outPath;
|
|
|
|
ExternalFile(fs::path nXmlPath, fs::path nOutPath);
|
|
};
|
|
|
|
class ZFile;
|
|
|
|
class GameConfig
|
|
{
|
|
public:
|
|
std::string configFilePath;
|
|
std::map<int32_t, std::vector<ZFile*>> segmentRefFiles;
|
|
std::map<uint32_t, std::string> symbolMap;
|
|
std::vector<std::string> actorList;
|
|
std::vector<std::string> objectList;
|
|
std::vector<std::string> entranceList;
|
|
std::vector<std::string> specialEntranceList;
|
|
std::map<uint32_t, TexturePoolEntry> texturePool; // Key = CRC
|
|
|
|
// ZBackground
|
|
uint32_t bgScreenWidth = 320, bgScreenHeight = 240;
|
|
|
|
// ExternalFile
|
|
fs::path externalXmlFolder;
|
|
std::vector<ExternalFile> externalFiles;
|
|
|
|
GameConfig() = default;
|
|
~GameConfig();
|
|
|
|
void ReadTexturePool(const fs::path& texturePoolXmlPath);
|
|
void GenSymbolMap(const fs::path& symbolMapPath);
|
|
|
|
void ConfigFunc_SymbolMap(const tinyxml2::XMLElement& element);
|
|
void ConfigFunc_ActorList(const tinyxml2::XMLElement& element);
|
|
void ConfigFunc_ObjectList(const tinyxml2::XMLElement& element);
|
|
void ConfigFunc_EntranceList(const tinyxml2::XMLElement& element);
|
|
void ConfigFunc_specialEntranceList(const tinyxml2::XMLElement& element);
|
|
void ConfigFunc_TexturePool(const tinyxml2::XMLElement& element);
|
|
void ConfigFunc_BGConfig(const tinyxml2::XMLElement& element);
|
|
void ConfigFunc_ExternalXMLFolder(const tinyxml2::XMLElement& element);
|
|
void ConfigFunc_ExternalFile(const tinyxml2::XMLElement& element);
|
|
|
|
void ReadConfigFile(const fs::path& configFilePath);
|
|
};
|