Unstable 0.17.0.0
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Barotrauma.Sounds;
|
||||
using System.Collections.Immutable;
|
||||
|
||||
namespace Barotrauma
|
||||
{
|
||||
@@ -13,20 +14,17 @@ namespace Barotrauma
|
||||
public readonly CharacterParams.SoundParams Params;
|
||||
|
||||
public SoundType Type => Params.State;
|
||||
public Gender Gender => Params.Gender;
|
||||
public ImmutableHashSet<Identifier> TagSet => Params.TagSet;
|
||||
public float Volume => roundSound == null ? 0.0f : roundSound.Volume;
|
||||
public float Range => roundSound == null ? 0.0f : roundSound.Range;
|
||||
public Sound Sound => roundSound?.Sound;
|
||||
|
||||
public bool IgnoreMuffling
|
||||
{
|
||||
get { return roundSound?.IgnoreMuffling ?? false; }
|
||||
}
|
||||
public bool IgnoreMuffling => roundSound?.IgnoreMuffling ?? false;
|
||||
|
||||
public CharacterSound(CharacterParams.SoundParams soundParams)
|
||||
{
|
||||
Params = soundParams;
|
||||
roundSound = Submarine.LoadRoundSound(soundParams.Element);
|
||||
roundSound = RoundSound.Load(soundParams.Element);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user