Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RareSpawnBestiaryInfoElement.cs
Go to the documentation of this file.
1
using
Terraria.Localization
;
2
using
Terraria.UI
;
3
4
namespace
Terraria.GameContent.Bestiary
;
5
6
public
class
RareSpawnBestiaryInfoElement
:
IBestiaryInfoElement
,
IProvideSearchFilterString
7
{
8
public
int
RarityLevel
{
get
;
private
set
; }
9
10
public
RareSpawnBestiaryInfoElement
(
int
rarityLevel)
11
{
12
RarityLevel
= rarityLevel;
13
}
14
15
public
UIElement
ProvideUIElement
(
BestiaryUICollectionInfo
info)
16
{
17
return
null
;
18
}
19
20
public
string
GetSearchString
(ref
BestiaryUICollectionInfo
info)
21
{
22
if
(info.UnlockState ==
BestiaryEntryUnlockState
.NotKnownAtAll_0)
23
{
24
return
null
;
25
}
26
return
Language
.
GetText
(
"BestiaryInfo.IsRare"
).Value;
27
}
28
}
Terraria.GameContent.Bestiary.RareSpawnBestiaryInfoElement.GetSearchString
string GetSearchString(ref BestiaryUICollectionInfo info)
Definition
RareSpawnBestiaryInfoElement.cs:20
Terraria.GameContent.Bestiary.RareSpawnBestiaryInfoElement.ProvideUIElement
UIElement ProvideUIElement(BestiaryUICollectionInfo info)
Definition
RareSpawnBestiaryInfoElement.cs:15
Terraria.GameContent.Bestiary.RareSpawnBestiaryInfoElement.RarityLevel
int RarityLevel
Definition
RareSpawnBestiaryInfoElement.cs:8
Terraria.GameContent.Bestiary.RareSpawnBestiaryInfoElement.RareSpawnBestiaryInfoElement
RareSpawnBestiaryInfoElement(int rarityLevel)
Definition
RareSpawnBestiaryInfoElement.cs:10
Terraria.GameContent.Bestiary.RareSpawnBestiaryInfoElement
Definition
RareSpawnBestiaryInfoElement.cs:7
Terraria.Localization.Language.GetText
static LocalizedText GetText(string key)
Definition
Language.cs:10
Terraria.Localization.Language
Definition
Language.cs:7
Terraria.UI.UIElement
Definition
UIElement.cs:12
Terraria.GameContent.Bestiary.IBestiaryInfoElement
Definition
IBestiaryInfoElement.cs:6
Terraria.GameContent.Bestiary.IProvideSearchFilterString
Definition
IProvideSearchFilterString.cs:4
Terraria.GameContent.Bestiary.BestiaryEntryUnlockState
BestiaryEntryUnlockState
Definition
BestiaryEntryUnlockState.cs:4
Terraria.GameContent.Bestiary
Definition
BestiaryDatabase.cs:5
Terraria.Localization
Definition
GameCulture.cs:5
Terraria.UI
Definition
ChatLine.cs:3
Terraria.GameContent.Bestiary.BestiaryUICollectionInfo
Definition
BestiaryUICollectionInfo.cs:4
source
Terraria.GameContent.Bestiary
RareSpawnBestiaryInfoElement.cs
Generated by
1.10.0