Files
Markus Isberg 7547a9b78a Build 0.18.0.0
2022-05-13 00:55:52 +09:00

19 lines
752 B
C#

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