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