26 lines
700 B
C#
26 lines
700 B
C#
using Barotrauma.Sounds;
|
|
using System.Collections.Generic;
|
|
using System.Xml.Linq;
|
|
|
|
namespace Barotrauma.Items.Components
|
|
{
|
|
partial class Powered : ItemComponent
|
|
{
|
|
private RoundSound powerOnSound;
|
|
private bool powerOnSoundPlayed;
|
|
|
|
partial void InitProjectSpecific(ContentXElement element)
|
|
{
|
|
foreach (var subElement in element.Elements())
|
|
{
|
|
switch (subElement.Name.ToString().ToLowerInvariant())
|
|
{
|
|
case "poweronsound":
|
|
powerOnSound = RoundSound.Load(subElement, false);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|