Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateTrackable() [2/4]

static LegacySoundStyle Terraria.ID.SoundID.CreateTrackable ( string name,
int variations,
SoundType type = SoundType::Sound )
inlinestaticprivate

Definition at line 1022 of file SoundID.cs.

1023 {
1025 {
1027 }
1029 if (variations == 1)
1030 {
1032 }
1033 else
1034 {
1035 for (int i = 0; i < variations; i++)
1036 {
1037 _trackableLegacySoundPathList.Add(name + "_" + i);
1038 }
1039 }
1040 return new LegacySoundStyle(42, count, variations, type);
1041 }
static List< string > _trackableLegacySoundPathList
Definition SoundID.cs:992

References Terraria.ID.SoundID._trackableLegacySoundPathList, and System.Linq.count.