Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaShared/SharedSource/ContentManagement/ContentFile/BallastFloraFile.cs
Markus Isberg 7547a9b78a Build 0.18.0.0
2022-05-13 00:55:52 +09:00

19 lines
810 B
C#

using System.Xml.Linq;
namespace Barotrauma
{
[RequiredByCorePackage, AlternativeContentTypeNames("MapCreature")]
sealed class BallastFloraFile : GenericPrefabFile<BallastFloraPrefab>
{
public BallastFloraFile(ContentPackage contentPackage, ContentPath path) : base(contentPackage, path) { }
protected override bool MatchesSingular(Identifier identifier) => identifier == "ballastflorabehavior";
protected override bool MatchesPlural(Identifier identifier) => identifier == "ballastflorabehaviors";
protected override PrefabCollection<BallastFloraPrefab> Prefabs => BallastFloraPrefab.Prefabs;
protected override BallastFloraPrefab CreatePrefab(ContentXElement element)
{
return new BallastFloraPrefab(element, this);
}
}
}