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