Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaShared/SharedSource/ContentManagement/ContentFile/FactionsFile.cs
2022-02-26 02:43:01 +09:00

19 lines
707 B
C#

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