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