From 1c7d6876c5593e205792e27fd543332e5165085f Mon Sep 17 00:00:00 2001 From: Luzifix Date: Fri, 19 Jul 2024 15:22:47 +0200 Subject: [PATCH] Fix autodoc generation for adt --- Docs/ADT.md | 107 +++++------------- Warcraft.NET.Docs/ChunkAvailability.cs | 19 ++-- Warcraft.NET/Files/ADT/Chunks/MoP/MTXP.cs | 2 +- Warcraft.NET/Files/ADT/Terrain/BfA/MCNK.cs | 2 +- Warcraft.NET/Files/ADT/Terrain/BfA/Terrain.cs | 2 +- Warcraft.NET/Files/ADT/Terrain/Wotlk/MCNK.cs | 2 +- .../Files/ADT/Terrain/Wotlk/Terrain.cs | 2 +- .../Files/ADT/TerrainLOD/Legion/TerrainLOD.cs | 2 +- .../ADT/TerrainObject/One/TerrainObjectOne.cs | 2 +- .../Files/ADT/TerrainObject/Zero/MCNK.cs | 2 +- .../TerrainObject/Zero/TerrainObjectZero.cs | 2 +- .../ADT/TerrainTexture/BfA/TerrainTexture.cs | 2 +- Warcraft.NET/Files/ADT/TerrainTexture/MCNK.cs | 2 +- .../TerrainTexture/MapChunk/SubChunks/MCAL.cs | 2 + .../TerrainTexture/MapChunk/SubChunks/MCMT.cs | 2 + .../TerrainTexture/MapChunk/SubChunks/MCSH.cs | 2 + .../ADT/TerrainTexture/TerrainTextureBase.cs | 5 +- 17 files changed, 63 insertions(+), 96 deletions(-) diff --git a/Docs/ADT.md b/Docs/ADT.md index 49de350..d45bb3f 100644 --- a/Docs/ADT.md +++ b/Docs/ADT.md @@ -3,7 +3,7 @@ R = Read Only
N/A = Not in this file for this expansion
**NYI** = Not Yet Implemented / TODO -### Root ADT +### ADT |Chunk|LK|WoD|Legion|BfA|SL|DF|TWW| |-----|-----|-----|-----|-----|-----|-----|-----| |MVER|✔|✔|✔|✔|✔|✔|✔| @@ -26,123 +26,78 @@ N/A = Not in this file for this expansion
|MFBO|✔|✔|✔|✔|✔|✔|✔| |MTXF|N/A|✔|✔|✔|✔|✔|✔| |MCRF|✔|N/A|N/A|N/A|N/A|N/A|N/A| +|MCSH|✔|✔|✔|✔|✔|✔|✔| +|MCAL|✔|✔|✔|✔|✔|✔|✔| ### _tex0 ADT |Chunk|LK|WoD|Legion|BfA|SL|DF|TWW| |-----|-----|-----|-----|-----|-----|-----|-----| -|MVER|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MTEX|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MDID|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MHID|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MCNK|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MCSH|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MCAL|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| +|MVER|✔|✔|✔|✔|✔|✔|✔| +|MTEX|✔|✔|✔|N/A|N/A|N/A|N/A| +|MDID|N/A|N/A|N/A|✔|✔|✔|✔| +|MHID|N/A|N/A|N/A|✔|✔|✔|✔| +|MCNK|N/A|✔|✔|✔|✔|✔|✔| +|MCSH|✔|✔|✔|✔|✔|✔|✔| +|MCAL|✔|✔|✔|✔|✔|✔|✔| |MCLY|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MCMT|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MAMP|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MTXP|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MTXF|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| +|MCMT|N/A|✔|✔|✔|✔|✔|✔| +|MAMP|N/A|✔|✔|✔|✔|✔|✔| +|MTXP|N/A|✔|✔|✔|✔|✔|✔| +|MTXF|N/A|✔|✔|✔|✔|✔|✔| |MTCG|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| ### _obj0 ADT |Chunk|LK|WoD|Legion|BfA|SL|DF|TWW| |-----|-----|-----|-----|-----|-----|-----|-----| -|MVER|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MCNK|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MCRD|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MCRW|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MMDX|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MMID|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MWMO|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MWID|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MDDF|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MODF|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MWDR|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MWDS|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLMB|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| - -### _obj1 ADT -|Chunk|LK|WoD|Legion|BfA|SL|DF|TWW| -|-----|-----|-----|-----|-----|-----|-----|-----| -|MVER|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLDL|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLFD|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLDD|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLDX|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLMD|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLMX|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLDB|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLMB|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| - -### _lod ADT -|Chunk|LK|WoD|Legion|BfA|SL|DF|TWW| -|-----|-----|-----|-----|-----|-----|-----|-----| -|MVER|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLDL|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLFD|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLDD|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLDX|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLMD|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLMX|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLDB|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -|MLMB|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| - -### Tex ADT -|Chunk|LK|WoD|Legion|BfA|SL|DF|TWW| -|-----|-----|-----|-----|-----|-----|-----|-----| -|MDID|N/A|N/A|N/A|✔|✔|✔|✔| -|MHID|N/A|N/A|N/A|✔|✔|✔|✔| |MVER|✔|✔|✔|✔|✔|✔|✔| -|MAMP|N/A|✔|✔|✔|✔|✔|✔| -|MTEX|✔|✔|✔|N/A|N/A|N/A|N/A| |MCNK|N/A|✔|✔|✔|✔|✔|✔| -|MTXP|**NYI**|✔|✔|✔|✔|✔|✔| - -### Obj0 ADT -|Chunk|LK|WoD|Legion|BfA|SL|DF|TWW| -|-----|-----|-----|-----|-----|-----|-----|-----| |MCRD|N/A|✔|✔|✔|✔|✔|✔| |MCRW|N/A|✔|✔|✔|✔|✔|✔| -|MDDF|✔|✔|✔|✔|✔|✔|✔| -|MODF|✔|✔|✔|✔|✔|✔|✔| -|MCNK|N/A|✔|✔|✔|✔|✔|✔| -|MVER|✔|✔|✔|✔|✔|✔|✔| |MMDX|✔|✔|✔|✔|N/A|N/A|N/A| |MMID|✔|✔|✔|N/A|N/A|N/A|N/A| |MWMO|✔|✔|✔|✔|N/A|N/A|N/A| |MWID|✔|✔|✔|✔|N/A|N/A|N/A| +|MDDF|✔|✔|✔|✔|✔|✔|✔| +|MODF|✔|✔|✔|✔|✔|✔|✔| +|MWDR|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| +|MWDS|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| +|MLMB|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| -### Obj1 ADT +### _obj1 ADT |Chunk|LK|WoD|Legion|BfA|SL|DF|TWW| |-----|-----|-----|-----|-----|-----|-----|-----| +|MVER|✔|✔|✔|✔|✔|✔|✔| +|MLDL|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| |MLFD|N/A|✔|✔|✔|✔|✔|✔| |MLDD|N/A|✔|✔|✔|✔|✔|✔| |MLDX|N/A|✔|✔|✔|✔|✔|✔| |MLMD|N/A|✔|✔|✔|✔|✔|✔| |MLMX|N/A|✔|✔|✔|✔|✔|✔| -|MVER|✔|✔|✔|✔|✔|✔|✔| +|MLDB|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| +|MLMB|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| |MMDX|✔|✔|✔|✔|N/A|N/A|N/A| |MMID|✔|✔|✔|N/A|N/A|N/A|N/A| |MWMO|✔|✔|✔|✔|N/A|N/A|N/A| |MWID|✔|✔|✔|✔|N/A|N/A|N/A| -### Lod ADT +### _lod ADT |Chunk|LK|WoD|Legion|BfA|SL|DF|TWW| |-----|-----|-----|-----|-----|-----|-----|-----| +|MVER|✔|✔|✔|✔|✔|✔|✔| |MLHD|N/A|✔|✔|✔|✔|✔|✔| |MLVH|N/A|✔|✔|✔|✔|✔|✔| |MLLL|N/A|✔|✔|✔|✔|✔|✔| |MLND|N/A|✔|✔|✔|✔|✔|✔| |MLVI|N/A|✔|✔|✔|✔|✔|✔| |MLSI|N/A|✔|✔|✔|✔|✔|✔| +|MLLD|N/A|✔|✔|✔|✔|✔|✔| +|MLLN|N/A|✔|✔|✔|✔|✔|✔| +|MLLI|N/A|✔|✔|✔|✔|✔|✔| +|MLLV|N/A|✔|✔|✔|✔|✔|✔| +|MLMB|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**|**NYI**| |MBMH|N/A|✔|✔|✔|✔|✔|✔| |MBBB|N/A|✔|✔|✔|✔|✔|✔| |MBMI|N/A|✔|✔|✔|✔|✔|✔| |MBNV|N/A|✔|✔|✔|✔|✔|✔| |MBMB|N/A|✔|✔|✔|✔|✔|✔| -|MLLD|N/A|✔|✔|✔|✔|✔|✔| -|MLLN|N/A|✔|✔|✔|✔|✔|✔| -|MLLI|N/A|✔|✔|✔|✔|✔|✔| -|MLLV|N/A|✔|✔|✔|✔|✔|✔| -|MVER|✔|✔|✔|✔|✔|✔|✔| diff --git a/Warcraft.NET.Docs/ChunkAvailability.cs b/Warcraft.NET.Docs/ChunkAvailability.cs index b6f336e..65483b4 100644 --- a/Warcraft.NET.Docs/ChunkAvailability.cs +++ b/Warcraft.NET.Docs/ChunkAvailability.cs @@ -8,7 +8,7 @@ internal static class ChunkAvailability "adt", new () { { - "Root ADT", new() + "ADT", new() { "MVER", "MHDR", @@ -85,13 +85,16 @@ internal static class ChunkAvailability "_lod ADT", new() { "MVER", - "MLDL", - "MLFD", - "MLDD", - "MLDX", - "MLMD", - "MLMX", - "MLDB", + "MLHD", + "MLVH", + "MLLL", + "MLND", + "MLVI", + "MLSI", + "MLLD", + "MLLN", + "MLLI", + "MLLV", "MLMB", } }, diff --git a/Warcraft.NET/Files/ADT/Chunks/MoP/MTXP.cs b/Warcraft.NET/Files/ADT/Chunks/MoP/MTXP.cs index 2dc1c85..69717d2 100644 --- a/Warcraft.NET/Files/ADT/Chunks/MoP/MTXP.cs +++ b/Warcraft.NET/Files/ADT/Chunks/MoP/MTXP.cs @@ -9,7 +9,7 @@ namespace Warcraft.NET.Files.ADT.Chunks.MoP /// /// MTXP Chunk - Array of flags for entries in MTEX. Always same number of entries as MTEX /// - [AutoDocChunk(AutoDocChunkVersionHelper.VersionAfterLK, AutoDocChunkVersionHelper.VersionAfterWoD)] + [AutoDocChunk(AutoDocChunkVersionHelper.VersionAfterLK, AutoDocChunkVersion.LK)] public class MTXP : IIFFChunk, IBinarySerializable { /// diff --git a/Warcraft.NET/Files/ADT/Terrain/BfA/MCNK.cs b/Warcraft.NET/Files/ADT/Terrain/BfA/MCNK.cs index 564c4c2..3aca754 100644 --- a/Warcraft.NET/Files/ADT/Terrain/BfA/MCNK.cs +++ b/Warcraft.NET/Files/ADT/Terrain/BfA/MCNK.cs @@ -10,7 +10,7 @@ namespace Warcraft.NET.Files.ADT.Terrain.BfA /// /// MCNK - BfA MCNK chunk /// - [AutoDocFile("adt", "Root ADT")] + [AutoDocFile("adt")] [AutoDocChunk(AutoDocChunkVersionHelper.VersionAfterLegion, AutoDocChunkVersionHelper.VersionBeforeBfA)] public class MCNK : MCNKBase { diff --git a/Warcraft.NET/Files/ADT/Terrain/BfA/Terrain.cs b/Warcraft.NET/Files/ADT/Terrain/BfA/Terrain.cs index dc66e1a..1f02d3e 100644 --- a/Warcraft.NET/Files/ADT/Terrain/BfA/Terrain.cs +++ b/Warcraft.NET/Files/ADT/Terrain/BfA/Terrain.cs @@ -3,7 +3,7 @@ namespace Warcraft.NET.Files.ADT.Terrain.BfA { - [AutoDocFile("adt", "Root ADT")] + [AutoDocFile("adt")] public class Terrain : TerrainBase { /// diff --git a/Warcraft.NET/Files/ADT/Terrain/Wotlk/MCNK.cs b/Warcraft.NET/Files/ADT/Terrain/Wotlk/MCNK.cs index 3a56604..e3428d3 100644 --- a/Warcraft.NET/Files/ADT/Terrain/Wotlk/MCNK.cs +++ b/Warcraft.NET/Files/ADT/Terrain/Wotlk/MCNK.cs @@ -13,7 +13,7 @@ namespace Warcraft.NET.Files.ADT.Terrain.Wotlk /// /// MCNK - Wotlk MCNK chunk /// - [AutoDocFile("adt", "Root ADT")] + [AutoDocFile("adt")] [AutoDocChunk(AutoDocChunkVersion.LK, AutoDocChunkVersionHelper.VersionAfterLK)] public class MCNK : MCNKBase { diff --git a/Warcraft.NET/Files/ADT/Terrain/Wotlk/Terrain.cs b/Warcraft.NET/Files/ADT/Terrain/Wotlk/Terrain.cs index 0c7258d..5236163 100644 --- a/Warcraft.NET/Files/ADT/Terrain/Wotlk/Terrain.cs +++ b/Warcraft.NET/Files/ADT/Terrain/Wotlk/Terrain.cs @@ -4,7 +4,7 @@ namespace Warcraft.NET.Files.ADT.Terrain.Wotlk { - [AutoDocFile("adt", "Root ADT")] + [AutoDocFile("adt")] public class Terrain : TerrainBase { /// diff --git a/Warcraft.NET/Files/ADT/TerrainLOD/Legion/TerrainLOD.cs b/Warcraft.NET/Files/ADT/TerrainLOD/Legion/TerrainLOD.cs index c83dac5..a6593b8 100644 --- a/Warcraft.NET/Files/ADT/TerrainLOD/Legion/TerrainLOD.cs +++ b/Warcraft.NET/Files/ADT/TerrainLOD/Legion/TerrainLOD.cs @@ -9,7 +9,7 @@ namespace Warcraft.NET.Files.ADT.TerrainLOD.Legion { #nullable enable - [AutoDocFile("adt", "Lod ADT")] + [AutoDocFile("adt", "_lod ADT")] public class TerrainLOD : TerrainLODBase { /// diff --git a/Warcraft.NET/Files/ADT/TerrainObject/One/TerrainObjectOne.cs b/Warcraft.NET/Files/ADT/TerrainObject/One/TerrainObjectOne.cs index 280590b..059fa22 100644 --- a/Warcraft.NET/Files/ADT/TerrainObject/One/TerrainObjectOne.cs +++ b/Warcraft.NET/Files/ADT/TerrainObject/One/TerrainObjectOne.cs @@ -3,7 +3,7 @@ namespace Warcraft.NET.Files.ADT.TerrainObject.One { - [AutoDocFile("adt", "Obj1 ADT")] + [AutoDocFile("adt", "_obj1 ADT")] public class TerrainObjectOne : TerrainObjectBase { /// diff --git a/Warcraft.NET/Files/ADT/TerrainObject/Zero/MCNK.cs b/Warcraft.NET/Files/ADT/TerrainObject/Zero/MCNK.cs index 2c6bea5..bb9dc0b 100644 --- a/Warcraft.NET/Files/ADT/TerrainObject/Zero/MCNK.cs +++ b/Warcraft.NET/Files/ADT/TerrainObject/Zero/MCNK.cs @@ -9,7 +9,7 @@ namespace Warcraft.NET.Files.ADT.TerrainObject.Zero /// /// MCNK /// - [AutoDocFile("adt", "Obj0 ADT")] + [AutoDocFile("adt", "_obj0 ADT")] [AutoDocChunk(AutoDocChunkVersionHelper.VersionAfterLK, AutoDocChunkVersion.LK)] public class MCNK : IIFFChunk, IBinarySerializable { diff --git a/Warcraft.NET/Files/ADT/TerrainObject/Zero/TerrainObjectZero.cs b/Warcraft.NET/Files/ADT/TerrainObject/Zero/TerrainObjectZero.cs index 96be971..d544bd0 100644 --- a/Warcraft.NET/Files/ADT/TerrainObject/Zero/TerrainObjectZero.cs +++ b/Warcraft.NET/Files/ADT/TerrainObject/Zero/TerrainObjectZero.cs @@ -3,7 +3,7 @@ namespace Warcraft.NET.Files.ADT.TerrainObject.Zero { - [AutoDocFile("adt", "Obj0 ADT")] + [AutoDocFile("adt", "_obj0 ADT")] public class TerrainObjectZero : TerrainObjectBase { /// diff --git a/Warcraft.NET/Files/ADT/TerrainTexture/BfA/TerrainTexture.cs b/Warcraft.NET/Files/ADT/TerrainTexture/BfA/TerrainTexture.cs index b517721..67b5d97 100644 --- a/Warcraft.NET/Files/ADT/TerrainTexture/BfA/TerrainTexture.cs +++ b/Warcraft.NET/Files/ADT/TerrainTexture/BfA/TerrainTexture.cs @@ -3,7 +3,7 @@ namespace Warcraft.NET.Files.ADT.TerrainTexture.BfA { - [AutoDocFile("adt", "Tex ADT")] + [AutoDocFile("adt", "_tex0 ADT")] public class TerrainTexture : TerrainTextureBase { [ChunkOrder(4)] diff --git a/Warcraft.NET/Files/ADT/TerrainTexture/MCNK.cs b/Warcraft.NET/Files/ADT/TerrainTexture/MCNK.cs index 4305dfc..d4be546 100644 --- a/Warcraft.NET/Files/ADT/TerrainTexture/MCNK.cs +++ b/Warcraft.NET/Files/ADT/TerrainTexture/MCNK.cs @@ -9,7 +9,7 @@ namespace Warcraft.NET.Files.ADT.TerrainTexture /// /// MCNK /// - [AutoDocFile("adt", "Tex ADT")] + [AutoDocFile("adt", "_tex0 ADT")] [AutoDocChunk(AutoDocChunkVersionHelper.VersionAfterLK, AutoDocChunkVersion.LK)] public class MCNK : IIFFChunk, IBinarySerializable { diff --git a/Warcraft.NET/Files/ADT/TerrainTexture/MapChunk/SubChunks/MCAL.cs b/Warcraft.NET/Files/ADT/TerrainTexture/MapChunk/SubChunks/MCAL.cs index 36f5797..4202bae 100644 --- a/Warcraft.NET/Files/ADT/TerrainTexture/MapChunk/SubChunks/MCAL.cs +++ b/Warcraft.NET/Files/ADT/TerrainTexture/MapChunk/SubChunks/MCAL.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using Warcraft.NET.Attribute; using Warcraft.NET.Extensions; using Warcraft.NET.Files.Interfaces; @@ -8,6 +9,7 @@ namespace Warcraft.NET.Files.ADT.TerrainTexture.MapChunk.SubChunks /// /// MCAL Chunk - Contains alpha map data in one of three forms - uncompressed 2048, uncompressed 4096 and compressed. /// + [AutoDocChunk(AutoDocChunkVersionHelper.VersionAll)] public class MCAL : IIFFChunk, IBinarySerializable { /// diff --git a/Warcraft.NET/Files/ADT/TerrainTexture/MapChunk/SubChunks/MCMT.cs b/Warcraft.NET/Files/ADT/TerrainTexture/MapChunk/SubChunks/MCMT.cs index e015e7a..39d693c 100644 --- a/Warcraft.NET/Files/ADT/TerrainTexture/MapChunk/SubChunks/MCMT.cs +++ b/Warcraft.NET/Files/ADT/TerrainTexture/MapChunk/SubChunks/MCMT.cs @@ -1,4 +1,5 @@ using System.IO; +using Warcraft.NET.Attribute; using Warcraft.NET.Files.Interfaces; namespace Warcraft.NET.Files.ADT.TerrainTexture.MapChunk.SubChunks @@ -6,6 +7,7 @@ namespace Warcraft.NET.Files.ADT.TerrainTexture.MapChunk.SubChunks /// /// MCMT chunk - Terrain material record id. /// + [AutoDocChunk(AutoDocChunkVersionHelper.VersionAfterLK, AutoDocChunkVersion.LK)] public class MCMT : IIFFChunk, IBinarySerializable { /// diff --git a/Warcraft.NET/Files/ADT/TerrainTexture/MapChunk/SubChunks/MCSH.cs b/Warcraft.NET/Files/ADT/TerrainTexture/MapChunk/SubChunks/MCSH.cs index 125d608..e9c5764 100644 --- a/Warcraft.NET/Files/ADT/TerrainTexture/MapChunk/SubChunks/MCSH.cs +++ b/Warcraft.NET/Files/ADT/TerrainTexture/MapChunk/SubChunks/MCSH.cs @@ -1,4 +1,5 @@ using System.IO; +using Warcraft.NET.Attribute; using Warcraft.NET.Files.Interfaces; namespace Warcraft.NET.Files.ADT.TerrainTexture.MapChunk.SubChunks @@ -6,6 +7,7 @@ namespace Warcraft.NET.Files.ADT.TerrainTexture.MapChunk.SubChunks /// /// MCSH chunk - holds baked terrain shadows. /// + [AutoDocChunk(AutoDocChunkVersionHelper.VersionAll)] public class MCSH : IIFFChunk, IBinarySerializable { /// diff --git a/Warcraft.NET/Files/ADT/TerrainTexture/TerrainTextureBase.cs b/Warcraft.NET/Files/ADT/TerrainTexture/TerrainTextureBase.cs index ade0a19..e6151cc 100644 --- a/Warcraft.NET/Files/ADT/TerrainTexture/TerrainTextureBase.cs +++ b/Warcraft.NET/Files/ADT/TerrainTexture/TerrainTextureBase.cs @@ -20,7 +20,10 @@ public abstract class TerrainTextureBase : ChunkedFile public MCNK[] Chunks { get; set; } [ChunkOrder(7), ChunkOptional] - public MTXP TextureFlags { get; set; } + public MTXP TextureParameters { get; set; } + + [ChunkOrder(8), ChunkOptional] + public MTXF TextureFlags { get; set; } /// /// Initializes a new instance of the class.