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

◆ GetFullNetName()

NetworkText Terraria.NPC.GetFullNetName ( )
inline

Definition at line 2311 of file NPC.cs.

2312 {
2313 if (!HasGivenName)
2314 {
2315 return GetTypeNetName();
2316 }
2317 return NetworkText.FromKey("Game.NPCTitle", GetGivenNetName(), GetTypeNetName());
2318 }
static NetworkText FromKey(string key, params object[] substitutions)
Creates a NetworkText object from a localization key and optional substitutions. The receiving client...
Represents text that will be sent over the network in multiplayer and displayed to the receiving user...
bool HasGivenName
Whether or not this NPC has a given name.
Definition NPC.cs:1445
NetworkText GetTypeNetName()
Definition NPC.cs:2289
NetworkText GetGivenNetName()
Definition NPC.cs:2329

References Terraria.Localization.NetworkText.FromKey(), Terraria.NPC.GetGivenNetName(), Terraria.NPC.GetTypeNetName(), and Terraria.NPC.HasGivenName.

Referenced by Terraria.NPC.checkDead().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: