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

◆ Variants

ReadOnlySpan<int> Terraria.Audio.SoundStyle.Variants
getset

An array of possible suffixes to randomly append to after P:Terraria.Audio.SoundStyle.SoundPath.
Setting this property resets P:Terraria.Audio.SoundStyle.VariantsWeights.

Definition at line 58 of file SoundStyle.cs.

59 {
60 get
61 {
62 return variants;
63 }
64 set
65 {
66 variantsWeights = null;
67 totalVariantWeight = null;
68 if (value.IsEmpty)
69 {
70 variants = null;
71 }
72 else
73 {
74 variants = value.ToArray();
75 }
76 }
77 }

Referenced by Terraria.Audio.SoundStyle.PrintMembers().