Example #1
0
 public static SoundEffectInstance PlaySound(LegacySoundStyle type, int x = -1, int y = -1)
 {
     if (type == null)
     {
         return(null);
     }
     return(PlaySound(type.SoundId, x, y, type.Style, type.Volume, type.GetRandomPitch()));
 }
Example #2
0
 public static SoundEffectInstance PlaySound(
     LegacySoundStyle type,
     int x = -1,
     int y = -1)
 {
     return(type == null ? (SoundEffectInstance)null : SoundEngine.PlaySound(type.SoundId, x, y, type.Style, type.Volume, type.GetRandomPitch()));
 }