Exemple #1
0
 public AmbientSound(Actor self, AmbientSoundInfo info)
 {
     if (self.HasTrait<IOccupySpace>())
         Sound.PlayLooped(info.SoundFile, self.CenterPosition);
     else
         Sound.PlayLooped(info.SoundFile);
 }
Exemple #2
0
 public AmbientSound(Actor self, AmbientSoundInfo info)
 {
     if (self == self.World.WorldActor)
     {
         Sound.PlayLooped(info.SoundFile);
     }
     else
     {
         Sound.PlayLooped(info.SoundFile, self.CenterPosition);
     }
 }
Exemple #3
0
 public AmbientSound(Actor self, AmbientSoundInfo info)
 {
     if (self.HasTrait <IOccupySpace>())
     {
         Sound.PlayLooped(info.SoundFile, self.CenterPosition);
     }
     else
     {
         Sound.PlayLooped(info.SoundFile);
     }
 }