Made ACsMod even more useless so hopefully people stop using it...
This commit is contained in:
@@ -8,9 +8,11 @@ namespace Barotrauma
|
|||||||
public abstract class ACsMod : IAssemblyPlugin
|
public abstract class ACsMod : IAssemblyPlugin
|
||||||
{
|
{
|
||||||
private static List<ACsMod> mods = new List<ACsMod>();
|
private static List<ACsMod> mods = new List<ACsMod>();
|
||||||
|
[Obsolete("$This does nothing. Stop using it!")]
|
||||||
public static List<ACsMod> LoadedMods { get => mods; }
|
public static List<ACsMod> LoadedMods { get => mods; }
|
||||||
|
|
||||||
private const string MOD_STORE = "LocalMods/.modstore";
|
private const string MOD_STORE = "LocalMods/.modstore";
|
||||||
|
[Obsolete("$This does nothing. Stop using it!")]
|
||||||
public static string GetStoreFolder<T>() where T : ACsMod
|
public static string GetStoreFolder<T>() where T : ACsMod
|
||||||
{
|
{
|
||||||
if (!Directory.Exists(MOD_STORE)) Directory.CreateDirectory(MOD_STORE);
|
if (!Directory.Exists(MOD_STORE)) Directory.CreateDirectory(MOD_STORE);
|
||||||
@@ -19,14 +21,7 @@ namespace Barotrauma
|
|||||||
return modFolder;
|
return modFolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsDisposed { get; private set; }
|
public bool IsDisposed { get; private set; } = false;
|
||||||
|
|
||||||
/// Mod initialization
|
|
||||||
public ACsMod()
|
|
||||||
{
|
|
||||||
IsDisposed = false;
|
|
||||||
LoadedMods.Add(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Called as soon as plugin loading begins, use this for internal setup only.
|
/// Called as soon as plugin loading begins, use this for internal setup only.
|
||||||
@@ -54,8 +49,6 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
LuaCsLogger.HandleException(e, LuaCsMessageOrigin.CSharpMod);
|
LuaCsLogger.HandleException(e, LuaCsMessageOrigin.CSharpMod);
|
||||||
}
|
}
|
||||||
|
|
||||||
LoadedMods.Remove(this);
|
|
||||||
IsDisposed = true;
|
IsDisposed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user