Client LuaCsForBarotrauma
StartItemsFile.cs
1 namespace Barotrauma
2 {
3  sealed class StartItemsFile : GenericPrefabFile<StartItemSet>
4  {
5  public StartItemsFile(ContentPackage contentPackage, ContentPath path) : base(contentPackage, path) { }
6 
7  protected override bool MatchesSingular(Identifier identifier) => identifier == "itemset";
8  protected override bool MatchesPlural(Identifier identifier) => identifier == "startitems";
9  protected override PrefabCollection<StartItemSet> Prefabs => StartItemSet.Sets;
10  protected override StartItemSet CreatePrefab(ContentXElement element) => new StartItemSet(element, this);
11  }
12 }
override bool MatchesPlural(Identifier identifier)
override PrefabCollection< StartItemSet > Prefabs
StartItemsFile(ContentPackage contentPackage, ContentPath path)
override StartItemSet CreatePrefab(ContentXElement element)
override bool MatchesSingular(Identifier identifier)