TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetLegacyNamesOfType()

static IEnumerable< string > Terraria.ModLoader.LegacyNameAttribute.GetLegacyNamesOfType ( Type type)
inlinestatic

Definition at line 21 of file LegacyNameAttribute.cs.

22 {
23 foreach (LegacyNameAttribute attribute in type.GetCustomAttributes<LegacyNameAttribute>(inherit: false))
24 {
25 string[] names = attribute.Names;
26 for (int i = 0; i < names.Length; i++)
27 {
28 yield return names[i];
29 }
30 }
31 }

Referenced by Terraria.ModLoader.ModTypeLookup< T >.Register().

+ Here is the caller graph for this function: