XPlor/definitions/asura/chunks/tvet_chunk.xscript
njohnson 8f07bf0b72 Update Asura XScript definitions with new syntax
- Migrate from bracket attributes to ui() function calls
- Enhance chunk parsing with improved structure definitions
- Add additional metadata fields to chunk handlers
- Update Xbox 360 texture and archive definitions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 12:10:29 -05:00

55 lines
957 B
Plaintext

// TVET - Track Vector Entry Chunk
// Contains track vector entry data for animations
// Found in .cut files
type tvet_chunk [display="TVET Track Vector Entry"] byteorder BE
{
// Standard 16-byte Asura chunk header
chunk_id = ascii(read(4));
u32 chunk_size;
u32 version;
u32 flags;
chunk_id = chunk_id;
ui("chunk_id", "Chunk ID");
chunk_size = chunk_size;
ui("chunk_size", "Chunk Size");
version = version;
ui("version", "Version");
flags = flags;
ui("flags", "Flags");
// Entry index
u32 entry_index;
entry_index = entry_index;
ui("entry_index", "Entry Index");
// Vector data (3 floats)
f32 vec_x;
f32 vec_y;
f32 vec_z;
vec_x = vec_x;
ui("vec_x", "Vector X");
vec_y = vec_y;
ui("vec_y", "Vector Y");
vec_z = vec_z;
ui("vec_z", "Vector Z");
// Time/frame reference
u32 frame;
frame = frame;
ui("frame", "Frame");
}