|
TModLoader v1.4.4.9
TModLoader source code documentation
|
This serves as the central class which loads mods. It contains many static fields and methods related to mods and their contents. More...
Collaboration diagram for Terraria.ModLoader.ModLoader:Static Public Member Functions | |
| static Mod | GetMod (string name) |
| Gets the instance of the Mod with the specified name. This will throw an exception if the mod cannot be found. | |
| static bool | TryGetMod (string name, out Mod result) |
| Safely attempts to get the instance of the Mod with the specified name. | |
| static bool | HasMod (string name) |
| Safely checks whether or not a mod with the specified internal name is currently loaded. | |
| static bool | IsSignedBy (TmodFile mod, string xmlPublicKey) |
Static Public Attributes | |
| static Version | LastLaunchedTModLoaderVersion |
| static string | LastLaunchedTModLoaderAlphaSha |
| static bool | ShowWhatsNew |
| static bool | PreviewFreezeNotification |
| static bool | DownloadedDependenciesOnStartup |
| static bool | ShowFirstLaunchWelcomeMessage |
| static bool | SeenFirstLaunchModderWelcomeMessage |
| static bool | WarnedFamilyShare |
| static Version | LastPreviewFreezeNotificationSeen |
| static bool | BetaUpgradeWelcomed144 |
Static Package Functions | |
| static void | EngineInit () |
| static void | PrepareAssets () |
| static void | BeginLoad (CancellationToken token) |
| static void | Reload () |
| static bool | Unload () |
| static bool | IsUnloadedModStillAlive (string name) |
| static bool | IsEnabled (string modName) |
| static void | EnableMod (string modName) |
| static void | DisableMod (string modName) |
| static void | SetModEnabled (string modName, bool active) |
| static void | DisableAllMods () |
| static void | SaveConfiguration () |
| static void | LoadConfiguration () |
| static void | MigrateSettings () |
| static void | BuildGlobalHook< T, F > (ref F[] list, IList< T > providers, Expression< Func< T, F > > expr) |
| Allows type inference on T and F. | |
| static T[] | BuildGlobalHook< T, F > (IList< T > providers, Expression< Func< T, F > > expr) |
Static Package Attributes | |
| static readonly string | modBrowserPublicKey = "<RSAKeyValue><Modulus>oCZObovrqLjlgTXY/BKy72dRZhoaA6nWRSGuA+aAIzlvtcxkBK5uKev3DZzIj0X51dE/qgRS3OHkcrukqvrdKdsuluu0JmQXCv+m7sDYjPQ0E6rN4nYQhgfRn2kfSvKYWGefp+kqmMF9xoAq666YNGVoERPm3j99vA+6EIwKaeqLB24MrNMO/TIf9ysb0SSxoV8pC/5P/N6ViIOk3adSnrgGbXnFkNQwD0qsgOWDks8jbYyrxUFMc4rFmZ8lZKhikVR+AisQtPGUs3ruVh4EWbiZGM2NOkhOCOM4k1hsdBOyX2gUliD0yjK5tiU3LBqkxoi2t342hWAkNNb4ZxLotw==</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>" |
| static string | modBrowserPassphrase = "" |
| static bool | autoReloadAndEnableModsLeavingModBrowser = true |
| static bool | autoReloadRequiredModsLeavingModsScreen = true |
| static bool | removeForcedMinimumZoom |
| static int | attackSpeedScalingTooltipVisibility = 1 |
| static bool | showMemoryEstimates = true |
| static bool | notifyNewMainMenuThemes = true |
| static bool | showNewUpdatedModsInfo = true |
| static bool | skipLoad |
| static Action | OnSuccessfulLoad |
Properties | |
| static string | versionedName [get] |
| static string | CompressedPlatformRepresentation [get] |
| static string | ModPath [get] |
| static Mod[] | Mods = new Mod[0] [get, private set] |
| static AssetRepository | ManifestAssets [get, set] |
| static AssemblyResourcesContentSource | ManifestContentSource [get, set] |
| static HashSet< string > | EnabledMods [get] |
Static Private Member Functions | |
| static void | Load (CancellationToken token=default(CancellationToken)) |
| static WeakReference< Mod >[] | GetWeakModRefs () |
| static void | Mods_Unload () |
| static void | WarnModsStillLoaded (IReadOnlyList< WeakReference< Mod > > weakModRefs) |
| static void | DisplayLoadError (string msg, Exception e, bool fatal, bool continueIsRetry=false) |
Static Private Attributes | |
| static readonly IDictionary< string, Mod > | modsByName = new Dictionary<string, Mod>(StringComparer.OrdinalIgnoreCase) |
| static bool | isLoading |
| static HashSet< string > | _enabledMods |
| A cached list of enabled mods (not necessarily currently loaded or even installed), mirroring the enabled.json file. | |
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 29 of file ModLoader.cs.