Client LuaCsForBarotrauma
WreckAIConfigFile.cs
1 using System.Xml.Linq;
2 
3 namespace Barotrauma
4 {
5  [RequiredByCorePackage]
6  sealed class WreckAIConfigFile : GenericPrefabFile<WreckAIConfig>
7  {
8  public WreckAIConfigFile(ContentPackage contentPackage, ContentPath path) : base(contentPackage, path) { }
9 
10  protected override bool MatchesSingular(Identifier identifier) => identifier == "wreckaiconfig";
11  protected override bool MatchesPlural(Identifier identifier) => identifier == "wreckaiconfigs";
13  protected override WreckAIConfig CreatePrefab(ContentXElement element)
14  {
15  return new WreckAIConfig(element, this);
16  }
17  }
18 }
override WreckAIConfig CreatePrefab(ContentXElement element)
override bool MatchesSingular(Identifier identifier)
override bool MatchesPlural(Identifier identifier)
WreckAIConfigFile(ContentPackage contentPackage, ContentPath path)
override PrefabCollection< WreckAIConfig > Prefabs
static readonly PrefabCollection< WreckAIConfig > Prefabs