- 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>
68 lines
1.8 KiB
Plaintext
68 lines
1.8 KiB
Plaintext
type soundalias [display="Sound Alias"]
|
|
{
|
|
const PTR_INLINE = -1;
|
|
|
|
i32 alias_name_ptr;
|
|
ui("alias_name_ptr", "Alias Name Ptr");
|
|
|
|
i32 subtitle_ptr;
|
|
ui("subtitle_ptr", "Subtitle Ptr");
|
|
|
|
i32 secondary_alias_name_ptr;
|
|
ui("secondary_alias_name_ptr", "Secondary Alias Name Ptr");
|
|
|
|
i32 chain_alias_name_ptr;
|
|
ui("chain_alias_name_ptr", "Chain Alias Name Ptr");
|
|
|
|
i32 sound_file_ptr;
|
|
ui("sound_file_ptr", "Sound File Ptr");
|
|
|
|
i32 sequence;
|
|
ui("sequence", "Sequence");
|
|
|
|
vol_min_max = read(8);
|
|
ui("vol_min_max", "Vol Min/Max");
|
|
|
|
pitch_min_max = read(8);
|
|
ui("pitch_min_max", "Pitch Min/Max");
|
|
|
|
dist_min_max = read(8);
|
|
ui("dist_min_max", "Dist Min/Max");
|
|
|
|
velocity_min = read(4);
|
|
ui("velocity_min", "Velocity Min");
|
|
|
|
i32 flags;
|
|
ui("flags", "Flags");
|
|
|
|
master_values = read(12);
|
|
ui("master_values", "Master Priority/Percentage");
|
|
|
|
probability = read(4);
|
|
ui("probability", "Probability");
|
|
|
|
lfe_center = read(8);
|
|
ui("lfe_center", "LFE/Center Percentage");
|
|
|
|
i32 start_delay;
|
|
ui("start_delay", "Start Delay");
|
|
|
|
i32 volume_falloff_curve_ptr;
|
|
ui("volume_falloff_curve_ptr", "Volume Falloff Curve Ptr");
|
|
|
|
envelope_values = read(12);
|
|
ui("envelope_values", "Envelope Min/Max/Percentage");
|
|
|
|
i32 speaker_map_ptr;
|
|
ui("speaker_map_ptr", "Speaker Map Ptr");
|
|
|
|
// Inline data
|
|
inline cstring alias_name when alias_name_ptr [ui="Alias Name", set_name];
|
|
inline cstring subtitle when subtitle_ptr [ui="Subtitle"];
|
|
inline cstring secondary_alias_name when secondary_alias_name_ptr [ui="Secondary Alias Name"];
|
|
inline cstring chain_alias_name when chain_alias_name_ptr [ui="Chain Alias Name"];
|
|
inline soundfile sound_file when sound_file_ptr;
|
|
inline sndcurve volume_falloff_curve when volume_falloff_curve_ptr;
|
|
inline speakermap speaker_map when speaker_map_ptr;
|
|
}
|