Unstable 1.1.14.0
This commit is contained in:
@@ -67,6 +67,22 @@ namespace Barotrauma
|
||||
.ToImmutableHashSet();
|
||||
}
|
||||
|
||||
public static bool IsLegacyContentType(XElement contentFileElement, ContentPackage package, bool logWarning)
|
||||
{
|
||||
Identifier elemName = contentFileElement.NameAsIdentifier();
|
||||
if (elemName == "TraitorMissions")
|
||||
{
|
||||
if (logWarning)
|
||||
{
|
||||
DebugConsole.AddWarning(
|
||||
$"The content type \"TraitorMission\" in content package \"{package.Name}\" is no longer supported." +
|
||||
$" Traitor missions should be implemented using the scripted event system and the content type TraitorEvents.");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static Result<ContentFile, ContentPackage.LoadError> CreateFromXElement(ContentPackage contentPackage, XElement element)
|
||||
{
|
||||
static Result<ContentFile, ContentPackage.LoadError> fail(string error, Exception? exception = null)
|
||||
|
||||
Reference in New Issue
Block a user