C# Class Prism.Mods.ModData

Provides global access to the data of all mods loaded into Prism.
Exibir arquivo Open project: TerrariaPrismTeam/Prism

Public Properties

Property Type Description
Mods ModDef>.ReadOnlyDictionary
ModsFromInternalName ModDef>.ReadOnlyDictionary

Public Methods

Method 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 method

public static ModFromAssembly ( Assembly modAsm ) : ModDef
modAsm System.Reflection.Assembly
return Prism.API.ModDef

ParseModInfo() public static method

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
return ModInfo

Property Details

Mods public_oe static_oe property

Contains all loaded mods indexed by their ModInfo.
public static ReadOnlyDictionary Mods
return ModDef>.ReadOnlyDictionary

ModsFromInternalName public_oe static_oe property

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