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