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

19 lines
665 B
C#

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