Client LuaCsForBarotrauma
TutorialsFile.cs
1 namespace Barotrauma
2 {
3  [RequiredByCorePackage]
4  sealed class TutorialsFile : GenericPrefabFile<TutorialPrefab>
5  {
7 
8  public TutorialsFile(ContentPackage contentPackage, ContentPath path) : base(contentPackage, path) { }
9 
10  protected override bool MatchesSingular(Identifier identifier) => identifier == "Tutorial";
11 
12  protected override bool MatchesPlural(Identifier identifier) => identifier == "Tutorials";
13 
14  protected override TutorialPrefab CreatePrefab(ContentXElement element) => new TutorialPrefab(this, element);
15  }
16 }
static readonly PrefabCollection< TutorialPrefab > Prefabs
override PrefabCollection< TutorialPrefab > Prefabs
Definition: TutorialsFile.cs:6
override bool MatchesPlural(Identifier identifier)
override TutorialPrefab CreatePrefab(ContentXElement element)
override bool MatchesSingular(Identifier identifier)
TutorialsFile(ContentPackage contentPackage, ContentPath path)
Definition: TutorialsFile.cs:8