XPlor/definitions/cod/gfxtexture.xscript
njohnson f3bca6871e Update COD XScript definitions with new syntax
- 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>
2026-01-11 12:09:57 -05:00

15 lines
392 B
Plaintext

type gfxtexture [display="GFX Texture"]
{
const PTR_INLINE = -1;
const PTR_INLINE_STREAMING = -2;
// GfxTexture is a union of different texture types
// For inline data (-1 or -2), parse load def
i32 base_map_ptr;
ui("base_map_ptr", "Base Map Ptr");
if (base_map_ptr == PTR_INLINE || base_map_ptr == PTR_INLINE_STREAMING) {
load_def = parse_here("gfximageloaddef");
}
}