XPlor/definitions/cod/materialtexturedef.xscript
njohnson 0fa26e5256 Expand Call of Duty XScript definitions
Add new asset type definitions:
- GfxWorld and related structures (cells, lights, probes)
- Menu system (menudef, itemdef, windowdef, listboxdef)
- Sound system (soundalias, soundfile, speakermap, sndcurve)
- D3D resources (vertex/index buffers)
- Font glyphs and expression entries

Update existing definitions with improved field annotations
and UI display properties.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 16:36:40 -05:00

16 lines
713 B
Plaintext

type materialtexturedef [display="Material Texture Def"]
{
// MaterialTextureDef - 12 bytes total
// The image pointer is just a reference to a GfxImage asset that's
// streamed separately in the zone file - NOT inline within the material
u32 name_hash [ui, readonly, display="Name Hash"];
u8 name_start [ui, readonly, display="Name Start"];
u8 name_end [ui, readonly, display="Name End"];
u8 sampler_state [ui, readonly, display="Sampler State"];
u8 semantic [ui, readonly, display="Semantic"];
// GfxImage* image - pointer to image asset (resolved elsewhere in zone)
// -1 means "needs fixup", but image data is a separate asset entry
i32 image_ptr [ui, readonly, display="Image Ptr"];
}