TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.ModLoader.LegacyNameAttribute Class Referencesealed

Allows for types to be registered with legacy/alias names for lookup via M:Terraria.ModLoader.ModContent.Find``1(System.String) and similar methods.
When manually loading content, use M:Terraria.ModLoader.ModTypeLookup`1.RegisterLegacyNames(`0,System.String[]) instead. More...

+ Inheritance diagram for Terraria.ModLoader.LegacyNameAttribute:
+ Collaboration diagram for Terraria.ModLoader.LegacyNameAttribute:

Public Member Functions

 LegacyNameAttribute (params string[] names)
 

Static Public Member Functions

static IEnumerable< string > GetLegacyNamesOfType (Type type)
 

Public Attributes

readonly string[] Names
 

Detailed Description

Allows for types to be registered with legacy/alias names for lookup via M:Terraria.ModLoader.ModContent.Find``1(System.String) and similar methods.
When manually loading content, use M:Terraria.ModLoader.ModTypeLookup`1.RegisterLegacyNames(`0,System.String[]) instead.

Definition at line 12 of file LegacyNameAttribute.cs.


The documentation for this class was generated from the following file: