2f107db...5202af9
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Barotrauma
|
||||
{
|
||||
public enum SoundType
|
||||
{
|
||||
Idle, Attack, Die
|
||||
Idle, Attack, Die, Damage
|
||||
}
|
||||
|
||||
private readonly RoundSound roundSound;
|
||||
@@ -28,10 +28,13 @@ namespace Barotrauma
|
||||
get { return roundSound.Sound; }
|
||||
}
|
||||
|
||||
public readonly Gender Gender;
|
||||
|
||||
public CharacterSound(XElement element)
|
||||
{
|
||||
roundSound = Submarine.LoadRoundSound(element);
|
||||
Enum.TryParse<SoundType>(element.GetAttributeString("state", "Idle"), true, out Type);
|
||||
Enum.TryParse(element.GetAttributeString("state", "Idle"), true, out Type);
|
||||
Enum.TryParse(element.GetAttributeString("gender", "None"), true, out Gender);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user