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