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())); }
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())); }