- Migrate from set_global/get_global to ctx_set/ctx_get - Replace if-else chains with match() expressions - Update inline pointer handling patterns - Improve GfxWorld and asset parsing structures - Clean up redundant code across 60+ definition files Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
38 lines
714 B
Plaintext
38 lines
714 B
Plaintext
type gfximageloaddef [display="GFX Image Load Def"]
|
|
{
|
|
u8 level_count;
|
|
|
|
ui("level_count", "Level Count");
|
|
u8 flags;
|
|
|
|
ui("flags", "Flags");
|
|
|
|
// Dimensions (3 x u16)
|
|
u16 dimension_0;
|
|
|
|
ui("dimension_0", "Dimension 0");
|
|
u16 dimension_1;
|
|
|
|
ui("dimension_1", "Dimension 1");
|
|
u16 dimension_2;
|
|
|
|
ui("dimension_2", "Dimension 2");
|
|
|
|
u32 format;
|
|
|
|
|
|
ui("format", "Format");
|
|
|
|
// Resource size - when inline, this contains the size of pixel data that follows
|
|
i32 resource_size;
|
|
|
|
ui("resource_size", "Resource Size");
|
|
|
|
// Read pixel data if present (resource_size > 0 indicates inline data)
|
|
if (resource_size > 0) {
|
|
pixel_data = read(resource_size);
|
|
|
|
ui("pixel_data", "Pixel Data");
|
|
}
|
|
}
|