Client LuaCsForBarotrauma
LevelObjectPrefabsFile.cs
1 using System.Xml.Linq;
2 
3 namespace Barotrauma
4 {
5  [RequiredByCorePackage]
6  sealed class LevelObjectPrefabsFile : GenericPrefabFile<LevelObjectPrefab>
7  {
8  public LevelObjectPrefabsFile(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 == "levelobjects";
13  protected override LevelObjectPrefab CreatePrefab(ContentXElement element)
14  {
15  return new LevelObjectPrefab(element, this);
16  }
17  }
18 }
override bool MatchesSingular(Identifier identifier)
override PrefabCollection< LevelObjectPrefab > Prefabs
LevelObjectPrefabsFile(ContentPackage contentPackage, ContentPath path)
override LevelObjectPrefab CreatePrefab(ContentXElement element)
override bool MatchesPlural(Identifier identifier)