diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2021-09-13 11:29:46 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-13 10:29:46 -0400 |
| commit | 4d051c0fa036d245027a211bc7fd6a4afdce207f (patch) | |
| tree | eb1697990e40e60343971b777cbfe99c6eee548c /ZAPD/ZResource.h | |
| parent | 90662f3cbade844c8edc3943ab8252e334b6166a (diff) | |
ZRoom cleaning 3 (#140)
* Remove redundant scene member
* altheaders clean
* it is broken and I don't know why
* fix VTXs
* Fix the stuff I broke in SetRoomList
* Add RoomAltHeader and SceneAltHeader
* fix syotes again and set the size of each ZRoomCommand
* Add SCENE_CMD_UNK_09 todo
* Nuke HintSystem
* run format
* Remove `canHaveInner` from ZRoom since the HintSystem doesn't exists anymore
* Remove sourceOutput member from ZResource
* Update docs
* run format
* Add non 64-bits aligned textures warning
* remove unused json library
* Update SCENE_CMD_UNK_09
* Fix merge issues
* run format
* Clean up actorlist output
* Fix merge conflicts
* format
* Fix actorlist extraction
* Unify AltHeader
* fix merge conflicts
* Run formatter
* minor style changes
* fix using wrong symbols for extracted vtxs from overlays
* format
* fix makefile stuff
* fix merge issue
Diffstat (limited to 'ZAPD/ZResource.h')
| -rw-r--r-- | ZAPD/ZResource.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ZAPD/ZResource.h b/ZAPD/ZResource.h index db961e3..7f7aaa9 100644 --- a/ZAPD/ZResource.h +++ b/ZAPD/ZResource.h @@ -30,6 +30,7 @@ enum class ZResourceType Error, Animation, Array, + AltHeader, Background, Blob, CollisionHeader, @@ -42,6 +43,7 @@ enum class ZResourceType Room, RoomCommand, Scalar, + Scene, Skeleton, String, Symbol, @@ -77,18 +79,19 @@ public: virtual void ParseXML(tinyxml2::XMLElement* reader); virtual void ParseRawData(); virtual void DeclareReferences(const std::string& prefix); + virtual void ParseRawDataLate(); + virtual void DeclareReferencesLate(const std::string& prefix); virtual std::string GetBodySourceCode() const; virtual std::string GetSourceOutputCode(const std::string& prefix); virtual std::string GetSourceOutputHeader(const std::string& prefix); - virtual void PreGenSourceFiles(); virtual void CalcHash(); virtual void Save(const fs::path& outFolder); // Properties virtual bool IsExternalResource() const; virtual bool DoesSupportArray() const; // Can this type be wrapped in an <Array> node? - virtual std::string GetSourceTypeName() const; + virtual std::string GetSourceTypeName() const = 0; virtual ZResourceType GetResourceType() const = 0; virtual std::string GetExternalExtension() const; |
