Client LuaCsForBarotrauma
NPCPersonalityTraitsFile.cs
1 namespace Barotrauma
2 {
3  sealed class NPCPersonalityTraitsFile : GenericPrefabFile<NPCPersonalityTrait>
4  {
5  public NPCPersonalityTraitsFile(ContentPackage contentPackage, ContentPath path) : base(contentPackage, path) { }
6 
7  protected override bool MatchesSingular(Identifier identifier) => identifier == "personalitytrait";
8  protected override bool MatchesPlural(Identifier identifier) => identifier == "personalitytraits";
10  protected override NPCPersonalityTrait CreatePrefab(ContentXElement element) => new NPCPersonalityTrait(element, this);
11  }
12 }
static readonly PrefabCollection< NPCPersonalityTrait > Traits
override bool MatchesPlural(Identifier identifier)
NPCPersonalityTraitsFile(ContentPackage contentPackage, ContentPath path)
override PrefabCollection< NPCPersonalityTrait > Prefabs
override bool MatchesSingular(Identifier identifier)
override NPCPersonalityTrait CreatePrefab(ContentXElement element)