2 using System.Collections.Generic;
7 [Obsolete(
"Make your class implement IAssemblyPlugin instead.")]
10 private static List<ACsMod> mods =
new List<ACsMod>();
13 private const string MOD_STORE =
"LocalMods/.modstore";
16 if (!Directory.Exists(MOD_STORE)) Directory.CreateDirectory(MOD_STORE);
17 var modFolder = $
"{MOD_STORE}/{typeof(T)}";
18 if (!Directory.Exists(modFolder)) Directory.CreateDirectory(modFolder);
62 public abstract void Stop();
ACsMod()
Mod initialization.
virtual void OnLoadCompleted()
Called once all plugins have completed Initialization. Put cross-mod code here.
void PreInitPatching()
[NotImplemented] Called before vanilla content is loaded. Use to patch Barotrauma classes before they...
virtual void Initialize()
Called as soon as plugin loading begins, use this for internal setup only.
static List< ACsMod > LoadedMods
static string GetStoreFolder< T >()
static void HandleException(Exception ex, LuaCsMessageOrigin origin)