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