- 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>
21 lines
366 B
Plaintext
21 lines
366 B
Plaintext
type sound [display="Sound Alias List"]
|
|
{
|
|
const PTR_INLINE = -1;
|
|
|
|
i32 name_ptr;
|
|
ui("name_ptr", "Name Ptr");
|
|
|
|
i32 head_ptr;
|
|
ui("head_ptr", "Head Ptr");
|
|
|
|
i32 count;
|
|
ui("count", "Count");
|
|
|
|
// Inline data
|
|
inline cstring name when name_ptr [ui="Name", set_name];
|
|
|
|
if (head_ptr == PTR_INLINE && count > 0) {
|
|
array[count] aliases: soundalias;
|
|
}
|
|
}
|