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

◆ FromLegacyName()

static int Terraria.ID.NPCID.FromLegacyName ( string name)
inlinestatic

Definition at line 12913 of file NPCID.cs.

12914 {
12915 if (LegacyNameToIdMap.TryGetValue(name, out var value))
12916 {
12917 return value;
12918 }
12919 return 0;
12920 }
static readonly Dictionary< string, int > LegacyNameToIdMap
Definition NPCID.cs:10924

References Terraria.ID.NPCID.LegacyNameToIdMap.

Referenced by Terraria.IO.WorldFile.LoadNPCs(), and Terraria.IO.WorldFile.LoadWorld_Version1_Old_BeforeRelease88().

+ Here is the caller graph for this function: