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