![]() |
Terraria ModLoader
0.11.8.3
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 (string name) |
Gets the instance of the Mod with the specified name. More... | |
static Mod | GetMod (int index) |
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 string | CompressedPlatformRepresentation => (Platform.IsWindows ? "w" : (Platform.IsLinux ? "l" : "m")) + (InstallVerifier.IsGoG ? "g" : "s") + (FrameworkVersion.Framework == Framework.NetFramework ? "n" : (FrameworkVersion.Framework == Framework.Mono ? "o" : "u")) |
static Version | LastLaunchedTModLoaderVersion |
static readonly bool | linux = Platform.IsLinux |
static Mod[] | LoadedMods => Mods |
static readonly bool | mac = Platform.IsOSX |
static int | ModCount => Mods.Length |
static string | ModPath => ModOrganizer.modPath |
static bool | ShowFirstLaunchWelcomeMessage |
static readonly Version | version = new Version(0, 11, 8, 3) |
static readonly string | versionedName |
static readonly string | versionTag |
static readonly bool | windows = Platform.IsWindows |
Properties | |
static Mod[] | Mods [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.
|
staticprivate |
Definition at line 244 of file ModLoader.cs.
References Terraria.ModLoader.Console.
|
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.
|
static |
|
static |
|
static |
|
static |
Gets the instance of the Mod with the specified name.
Definition at line 90 of file ModLoader.cs.
Referenced by Terraria.ModLoader.ModNet.DownloadNextMod(), 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.CommandManager.Matches(), 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 |
|
static |
Definition at line 300 of file ModLoader.cs.
|
staticprivate |
Definition at line 120 of file ModLoader.cs.
|
static |
|
static |
|
static |
|
staticprivate |
Definition at line 223 of file ModLoader.cs.
|
staticprivate |
Definition at line 265 of file ModLoader.cs.
|
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.
|
static |
Definition at line 59 of file ModLoader.cs.
|
staticprivate |
Definition at line 119 of file ModLoader.cs.
|
static |
Definition at line 32 of file ModLoader.cs.
|
static |
Definition at line 52 of file ModLoader.cs.
Definition at line 99 of file ModLoader.cs.
|
static |
Definition at line 54 of file ModLoader.cs.
|
static |
Definition at line 102 of file ModLoader.cs.
|
static |
Definition at line 61 of file ModLoader.cs.
|
staticprivate |
Definition at line 63 of file ModLoader.cs.
|
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.
|
static |
Definition at line 41 of file ModLoader.cs.
|
static |
Definition at line 45 of file ModLoader.cs.
|
staticprivate |
Definition at line 64 of file ModLoader.cs.
|
static |
Definition at line 50 of file ModLoader.cs.
|
staticgetprivate set |
Definition at line 85 of file ModLoader.cs.
Referenced by Terraria.ModLoader.BuffLoader.GetBuff(), Terraria.ModLoader.IO.TagSerializer< T, S >.GetType(), Terraria.ModLoader.ModContent.LoadModContent(), Terraria.ModLoader.ModNet.OnModsDownloaded(), Terraria.ModLoader.Mod.PreSaveAndQuit(), Terraria.ModLoader.ModNet.ReadNetIDs(), Terraria.ModLoader.ModContent.RefreshModLanguage(), Terraria.ModLoader.ModNet.SendServerConfigs(), Terraria.ModLoader.ModContent.SetLocalizedText(), and Terraria.ModLoader.ModContent.SetupRecipes().