add xml definitions for all textures (#3161)

This commit is contained in:
Adam Bird
2023-09-10 19:22:24 +02:00
committed by GitHub
parent 024c5e0b5f
commit 90af84601a
655 changed files with 16183 additions and 71 deletions

View File

@@ -27,6 +27,13 @@ ZTexture::ZTexture(ZFile* nParent) : ZResource(nParent)
RegisterOptionalAttribute("ExternalTlut");
RegisterOptionalAttribute("ExternalTlutOffset");
RegisterOptionalAttribute("SplitTlut");
// Dummy property added by https://github.com/HarbourMasters/Shipwright/pull/3161
// Used to indicate if a resource definition was added through a script
// and to enable easy removal/re-add of the definitions when introducing new rom support
// Can be removed once we feel it is no longer useful
// This is not used in ZAPD itself, the registration is to prevent missing attribute errors
RegisterOptionalAttribute("AddedByScript");
}
void ZTexture::ExtractFromBinary(uint32_t nRawDataIndex, int32_t nWidth, int32_t nHeight,