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