XPlor/definitions/cod/glyph.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

18 lines
592 B
Plaintext

type glyph [display="Glyph"]
{
u16 letter [ui, readonly, display="Letter"];
i8 x0 [ui, readonly, display="X0"];
i8 y0 [ui, readonly, display="Y0"];
i8 dx [ui, readonly, display="DX"];
i8 pixel_width [ui, readonly, display="Pixel Width"];
i8 pixel_height [ui, readonly, display="Pixel Height"];
i8 pitch [ui, readonly, display="Pitch"];
// UV coordinates (4 floats = 16 bytes)
// Read as raw bytes since we don't have float type yet
uv_coords = read(16) [ui, readonly, display="UV Coords"];
// Padding to align to 32 bytes total (8 + 16 = 24, need 8 more)
skip(8);
}