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