示例#1
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()));
 }
示例#2
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()));
 }
示例#3
0
 public static SoundEffectInstance PlaySound(LegacySoundStyle type, Vector2 position)
 {
     return(PlaySound(type, (int)position.X, (int)position.Y));
 }