Added hasWaterTable flag to ColFile

This commit is contained in:
MattNL
2022-11-02 05:57:16 -04:00
parent 85cd4e2f25
commit 378daf9b80
2 changed files with 2 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ namespace PckStudio.Classes.FileTypes
}
}
public bool hasWaterTable;
public List<ColorEntry> entries = new List<ColorEntry>();
public List<ExtendedColorEntry> waterEntries = new List<ExtendedColorEntry>();
}

View File

@@ -19,6 +19,7 @@ namespace PckStudio.Classes.IO.COL
{
COLFile colourFile = new COLFile();
int has_water_colors = ReadInt(stream);
colourFile.hasWaterTable = has_water_colors > 0;
int color_entries = ReadInt(stream);
for (int i = 0; i < color_entries; i++)
{