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