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

◆ IsTheSameAs()

bool Terraria.Audio.SoundStyle.IsTheSameAs ( SoundStyle style)
inline

Definition at line 273 of file SoundStyle.cs.

274 {
275 if (Identifier != null && Identifier == style.Identifier)
276 {
277 return true;
278 }
279 if (SoundPath == style.SoundPath)
280 {
281 return true;
282 }
283 return false;
284 }
string SoundPath
The sound effect to play.
Definition SoundStyle.cs:21
string? Identifier
If defined, this string will be the only thing used to determine which styles should instances be sha...
Definition SoundStyle.cs:30

References Terraria.Audio.SoundStyle.Identifier, and Terraria.Audio.SoundStyle.SoundPath.