19 lines
541 B
C#
19 lines
541 B
C#
using System;
|
|
using System.Xml.Linq;
|
|
|
|
namespace Barotrauma
|
|
{
|
|
public class RegularPackage : ContentPackage
|
|
{
|
|
public RegularPackage(XDocument doc, string path) : base(doc, path)
|
|
{
|
|
AssertCondition(!doc.Root.GetAttributeBool("corepackage", false), "Expected a regular package, got a core package");
|
|
}
|
|
|
|
protected override void HandleLoadException(Exception e)
|
|
{
|
|
UnloadPackage();
|
|
DebugConsole.ThrowError($"Failed to load package \"{Name}\"", e);
|
|
}
|
|
}
|
|
} |