C# Class Prism.Mods.ModData

Provides global access to the data of all mods loaded into Prism.
Afficher le fichier Open project: TerrariaPrismTeam/Prism

Méthodes publiques

Свойство Type Description
Mods ModDef>.ReadOnlyDictionary
ModsFromInternalName ModDef>.ReadOnlyDictionary

Méthodes publiques

Méthode Description
ModFromAssembly ( Assembly modAsm ) : ModDef
ParseModInfo ( JsonData j, string path ) : ModInfo

Parses the mod's information from Json, loading any required references, and returns its ModInfo object.

Method Details

ModFromAssembly() public static méthode

public static ModFromAssembly ( Assembly modAsm ) : ModDef
modAsm System.Reflection.Assembly
Résultat Prism.API.ModDef

ParseModInfo() public static méthode

Parses the mod's information from Json, loading any required references, and returns its ModInfo object.
public static ParseModInfo ( JsonData j, string path ) : ModInfo
j LitJson.JsonData Json Data to load the from
path string The path to the mod
Résultat ModInfo

Property Details

Mods public_oe static_oe property

Contains all loaded mods indexed by their ModInfo.
public static ReadOnlyDictionary Mods
Résultat ModDef>.ReadOnlyDictionary

ModsFromInternalName public_oe static_oe property

Contains all loaded mods indexed by their ModInfo.InternalName.
public static ReadOnlyDictionary ModsFromInternalName
Résultat ModDef>.ReadOnlyDictionary