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