tModLoader v0.11.8.9
A mod to make and play Terraria mods
|
This serves as the central class which loads mods. It contains many static fields and methods related to mods and their contents. More...
Static Public Member Functions | |
static bool | FileExists (string name) |
static byte[] | GetFileBytes (string name) |
static string[] | GetLoadedMods () |
static Mod | GetMod (int index) |
static Mod | GetMod (string name) |
Gets the instance of the Mod with the specified name. More... | |
static Music | GetMusic (string name) |
static SoundEffect | GetSound (string name) |
static Texture2D | GetTexture (string name) |
static bool | IsSignedBy (TmodFile mod, string xmlPublicKey) |
static bool | MusicExists (string name) |
static bool | SoundExists (string name) |
static bool | TextureExists (string name) |
Static Public Attributes | |
static readonly int | beta = 0 |
static readonly string | branchName = "" |
static readonly string | compressedPlatformRepresentation = Platform.IsWindows ? "w" : (Platform.IsLinux ? "l" : "m") |
static Version | LastLaunchedTModLoaderVersion |
static readonly bool | linux = Platform.IsLinux |
static readonly bool | mac = Platform.IsOSX |
static bool | ShowFirstLaunchWelcomeMessage |
static readonly Version | version = new Version(0, 11, 8, 9) |
static readonly string | versionedName |
static readonly string | versionTag |
static readonly bool | windows = Platform.IsWindows |
Properties | |
static string | CompressedPlatformRepresentation [get] |
static Mod[] | LoadedMods [get] |
static int | ModCount [get] |
static string | ModPath [get] |
static Mod[] | Mods = new Mod[0] [get, private set] |
Static Private Member Functions | |
static void | DisplayLoadError (string msg, Exception e, bool fatal, bool continueIsRetry=false) |
static void | do_Unload () |
static void | DotNet45Check () |
static void | Load (CancellationToken token=default) |
static bool | Unload () |
static void | WarnModsStillLoaded () |
Static Private Attributes | |
static HashSet< string > | _enabledMods |
A cached list of enabled mods (not necessarily currently loaded or even installed), mirroring the enabled.json file. More... | |
static bool | _needsSavingEnabledMods |
static bool | _pauseSavingEnabledMods |
static bool | isLoading = false |
static readonly IDictionary< string, Mod > | modsByName = new Dictionary<string, Mod>(StringComparer.OrdinalIgnoreCase) |
static string | steamID64 = "" |
static WeakReference[] | weakModReferences = new WeakReference[0] |
This serves as the central class which loads mods. It contains many static fields and methods related to mods and their contents.
Definition at line 28 of file ModLoader.cs.
|
staticprivate |
Definition at line 272 of file ModLoader.cs.
References Terraria.ModLoader.Console, and Terraria.ModLoader.Environment.
Referenced by Terraria.ModLoader.ModLoader.Load(), and Terraria.ModLoader.ModLoader.Unload().
|
staticprivate |
Definition at line 244 of file ModLoader.cs.
References Terraria.ModLoader.Console, Terraria.ModLoader.ModLoader.Mods, and Terraria.ModLoader.ModLoader.modsByName.
Referenced by Terraria.ModLoader.ModLoader.Unload().
|
staticprivate |
Definition at line 196 of file ModLoader.cs.
References Terraria.ModLoader.Console, Terraria.ModLoader.Environment, Terraria.ModLoader.FrameworkVersion.Framework, and Terraria.ModLoader.FrameworkVersion.Version.
Referenced by Terraria.ModLoader.ModLoader.GetLoadedMods().
|
static |
|
static |
|
static |
|
static |
|
static |
Gets the instance of the Mod with the specified name.
Definition at line 90 of file ModLoader.cs.
References Terraria.ModLoader.ModLoader.modsByName.
Referenced by Terraria.ModLoader.ModContent.FileExists(), Terraria.ModLoader.ModContent.GetFileBytes(), Terraria.ModLoader.ModContent.GetMusic(), Terraria.ModLoader.ModContent.GetSound(), Terraria.ModLoader.ModContent.GetTexture(), Terraria.ModLoader.IO.ItemIO.Load(), Terraria.ModLoader.IO.ItemIO.LoadLegacy(), Terraria.ModLoader.ErrorLogger.Log(), Terraria.ModLoader.ModContent.MusicExists(), Terraria.ModLoader.ModContent.OpenRead(), Terraria.ModLoader.PlayerHooks.ReceiveCustomBiomes(), Terraria.ModLoader.ModContent.SoundExists(), and Terraria.ModLoader.ModContent.TextureExists().
|
static |
|
static |
|
static |
|
static |
Definition at line 300 of file ModLoader.cs.
|
staticprivate |
Definition at line 120 of file ModLoader.cs.
References Terraria.ModLoader.ModLoader.DisplayLoadError(), Terraria.ModLoader.ModLoader.isLoading, Terraria.ModLoader.ModLoader.Load(), Terraria.ModLoader.ModLoader.Mods, Terraria.ModLoader.ModLoader.modsByName, Terraria.ModLoader.ModLoader.Unload(), Terraria.ModLoader.ModLoader.version, Terraria.ModLoader.ModLoader.versionedName, and Terraria.ModLoader.ModLoader.weakModReferences.
Referenced by Terraria.ModLoader.ModLoader.Load().
|
static |
|
static |
|
static |
|
staticprivate |
Definition at line 223 of file ModLoader.cs.
References Terraria.ModLoader.ModLoader.DisplayLoadError(), Terraria.ModLoader.ModLoader.do_Unload(), and Terraria.ModLoader.ModLoader.WarnModsStillLoaded().
Referenced by Terraria.ModLoader.ModLoader.Load().
|
staticprivate |
Definition at line 265 of file ModLoader.cs.
References Terraria.ModLoader.ModLoader.weakModReferences.
Referenced by Terraria.ModLoader.ModLoader.Unload().
|
staticprivate |
A cached list of enabled mods (not necessarily currently loaded or even installed), mirroring the enabled.json file.
Definition at line 324 of file ModLoader.cs.
|
staticprivate |
Definition at line 311 of file ModLoader.cs.
|
staticprivate |
Definition at line 310 of file ModLoader.cs.
|
static |
Definition at line 38 of file ModLoader.cs.
|
static |
Definition at line 36 of file ModLoader.cs.
|
static |
Definition at line 57 of file ModLoader.cs.
|
staticprivate |
Definition at line 119 of file ModLoader.cs.
Referenced by Terraria.ModLoader.ModLoader.Load().
|
static |
Definition at line 32 of file ModLoader.cs.
|
static |
Definition at line 52 of file ModLoader.cs.
|
static |
Definition at line 54 of file ModLoader.cs.
|
staticprivate |
Definition at line 63 of file ModLoader.cs.
Referenced by Terraria.ModLoader.ModLoader.do_Unload(), Terraria.ModLoader.ModLoader.GetMod(), and Terraria.ModLoader.ModLoader.Load().
|
static |
Definition at line 34 of file ModLoader.cs.
|
staticprivate |
Definition at line 69 of file ModLoader.cs.
Definition at line 30 of file ModLoader.cs.
Referenced by Terraria.ModLoader.ModLoader.Load().
|
static |
Definition at line 41 of file ModLoader.cs.
Referenced by Terraria.ModLoader.ModLoader.Load().
|
static |
Definition at line 45 of file ModLoader.cs.
|
staticprivate |
Definition at line 64 of file ModLoader.cs.
Referenced by Terraria.ModLoader.ModLoader.Load(), and Terraria.ModLoader.ModLoader.WarnModsStillLoaded().
|
static |
Definition at line 50 of file ModLoader.cs.
|
staticget |
Definition at line 59 of file ModLoader.cs.
|
staticget |
Definition at line 99 of file ModLoader.cs.
|
staticget |
Definition at line 102 of file ModLoader.cs.
|
staticget |
Definition at line 61 of file ModLoader.cs.
Definition at line 85 of file ModLoader.cs.
Referenced by Terraria.ModLoader.ModLoader.do_Unload(), Terraria.ModLoader.IO.TagSerializer< T, S >.GetType(), Terraria.ModLoader.ModLoader.Load(), Terraria.ModLoader.ModContent.LoadModContent(), Terraria.ModLoader.ModNet.OnModsDownloaded(), Terraria.ModLoader.ModNet.ReadNetIDs(), and Terraria.ModLoader.ModContent.RefreshModLanguage().