TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.Lang Class Reference
+ Collaboration diagram for Terraria.Lang:

Static Public Member Functions

static string GetMapObjectName (int id)
 
static object CreateDialogSubstitutionObject (NPC npc=null)
 
static string dialog (int l, bool english=false)
 
static string GetNPCNameValue (int netID)
 Gets the display name of the provided npc type (F:Terraria.NPC.type) as a string.
 
static LocalizedText GetNPCName (int netID)
 Gets the display name of the provided npc type (F:Terraria.NPC.type) as a T:Terraria.Localization.LocalizedText.
 
static ItemTooltip GetTooltip (int itemId)
 
static LocalizedText GetItemName (int id)
 Gets the display name of the provided item type (F:Terraria.Item.type) as a T:Terraria.Localization.LocalizedText.
 
static LocalizedText GetEmojiName (int id)
 
static string GetItemNameValue (int id)
 Gets the display name of the provided item type (F:Terraria.Item.type) as a string.
 
static string GetBuffName (int id)
 Gets the display name of the provided buff type (T:Terraria.ID.BuffID) as a string.
 
static string GetBuffDescription (int id)
 Gets the description of the provided buff type (T:Terraria.ID.BuffID) as a string.
 
static string GetDryadWorldStatusDialog (out bool worldIsEntirelyPure)
 
static string GetRandomGameTitle ()
 
static string DyeTraderQuestChat (bool gotDye=false)
 
static string AnglerQuestCountChat (NPC npc)
 
static string BartenderHelpText (NPC npc)
 
static string BartenderChat (NPC npc)
 
static string GolferChat (NPC npc)
 
static string BestiaryGirlChat (NPC npc)
 
static string PrincessChat (NPC npc)
 
static string CatChat (NPC npc)
 
static string DogChat (NPC npc)
 
static string BunnyChat (NPC npc)
 
static string SlimeChat (NPC npc)
 
static string GetNPCHouseBannerText (NPC npc, int bannerStyle)
 
static LanguageSearchFilter CreateDialogFilter (string startsWith, object substitutions)
 Filters LocalizedText objects by checking if their key starts with the provided startsWith parameter and if the conditions embedded into the LocalizedText are all satisfied by the data in substitutions . See M:Terraria.Localization.LocalizedText.CanFormatWith(System.Object) for more information about conditions embedded in localization text.

When passed into M:Terraria.Localization.Language.FindAll(Terraria.Localization.LanguageSearchFilter), all LocalizedText with keys starting with startsWith that satisfy substitutions will be returned. When passed into M:Terraria.Localization.Language.SelectRandom(Terraria.Localization.LanguageSearchFilter,Terraria.Utilities.UnifiedRandom), a single random LocalizedText with key starting with startsWith that satisfies substitutions will be returned.


 
static LanguageSearchFilter CreateDialogFilter (string startsWith)
 Filters LocalizedText objects by checking if their key starts with the provided startsWith parameter.

When passed into M:Terraria.Localization.Language.FindAll(Terraria.Localization.LanguageSearchFilter), all LocalizedText with keys starting with startsWith will be returned. When passed into M:Terraria.Localization.Language.SelectRandom(Terraria.Localization.LanguageSearchFilter,Terraria.Utilities.UnifiedRandom), a single random LocalizedText with key starting with startsWith will be returned.


 
static string AnglerQuestChat (bool turnIn=false)
 
static LocalizedText GetProjectileName (int type)
 Gets the display name of the provided projectile type (F:Terraria.Projectile.type) as a T:Terraria.Localization.LocalizedText.
 
static void InitializeLegacyLocalization ()
 
static string SupportGlyphs (string tooltip)
 
static void BuildMapAtlas ()
 
static NetworkText CreateDeathMessage (string deadPlayerName, int plr=-1, int npc=-1, int proj=-1, int other=-1, int projType=0, int plrItemType=0)
 
static NetworkText GetInvasionWaveText (int wave, params short[] npcIds)
 
static string LocalizedDuration (TimeSpan time, bool abbreviated, bool showAllAvailableUnits)
 

Static Public Attributes

static LocalizedText[] menu = new LocalizedText[254]
 
static LocalizedText[] gen = new LocalizedText[92]
 
static LocalizedText[] misc = new LocalizedText[201]
 
static LocalizedText[] inter = new LocalizedText[129]
 
static LocalizedText[] tip = new LocalizedText[61]
 
static LocalizedText[] mp = new LocalizedText[27]
 
static LocalizedText[] chestType = new LocalizedText[52]
 
static LocalizedText[] dresserType = new LocalizedText[43]
 
static LocalizedText[] chestType2 = new LocalizedText[17]
 
static LocalizedText[] prefix = new LocalizedText[PrefixID.Count]
 
static MapLegend _mapLegendCache
 

Static Package Attributes

static LocalizedText[] _itemNameCache = new LocalizedText[ItemID.Count]
 
static LocalizedText[] _projectileNameCache = new LocalizedText[ProjectileID.Count]
 
static LocalizedText[] _npcNameCache = new LocalizedText[NPCID.Count]
 
static LocalizedText[] _buffNameCache = new LocalizedText[BuffID.Count]
 
static LocalizedText[] _buffDescriptionCache = new LocalizedText[BuffID.Count]
 
static ItemTooltip[] _itemTooltipCache = new ItemTooltip[ItemID.Count]
 
static LocalizedText[] _emojiNameCache = new LocalizedText[EmoteID.Count]
 

Static Private Member Functions

static void FillNameCacheArray< IdClass, IdType > (string category, LocalizedText[] nameCache, bool leaveMissingEntriesBlank=false)
 

Static Private Attributes

static LocalizedText[] _negativeNpcNameCache = new LocalizedText[65]
 

Detailed Description

Definition at line 17 of file Lang.cs.


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