Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ContentRejectionFromSize.cs
Go to the documentation of this file.
1
using
ReLogic.Content
;
2
using
Terraria.Localization
;
3
4
namespace
Terraria.GameContent
;
5
6
public
class
ContentRejectionFromSize
:
IRejectionReason
7
{
8
private
int
_neededWidth
;
9
10
private
int
_neededHeight
;
11
12
private
int
_actualWidth
;
13
14
private
int
_actualHeight
;
15
16
public
ContentRejectionFromSize
(
int
neededWidth,
int
neededHeight,
int
actualWidth,
int
actualHeight)
17
{
18
_neededWidth
= neededWidth;
19
_neededHeight
= neededHeight;
20
_actualWidth
= actualWidth;
21
_actualHeight
= actualHeight;
22
}
23
24
public
string
GetReason
()
25
{
26
return
Language
.
GetTextValueWith
(
"AssetRejections.BadSize"
,
new
27
{
28
NeededWidth =
_neededWidth
,
29
NeededHeight =
_neededHeight
,
30
ActualWidth =
_actualWidth
,
31
ActualHeight =
_actualHeight
32
});
33
}
34
}
Terraria.GameContent.ContentRejectionFromSize._neededWidth
int _neededWidth
Definition
ContentRejectionFromSize.cs:8
Terraria.GameContent.ContentRejectionFromSize._actualHeight
int _actualHeight
Definition
ContentRejectionFromSize.cs:14
Terraria.GameContent.ContentRejectionFromSize._neededHeight
int _neededHeight
Definition
ContentRejectionFromSize.cs:10
Terraria.GameContent.ContentRejectionFromSize._actualWidth
int _actualWidth
Definition
ContentRejectionFromSize.cs:12
Terraria.GameContent.ContentRejectionFromSize.GetReason
string GetReason()
Definition
ContentRejectionFromSize.cs:24
Terraria.GameContent.ContentRejectionFromSize.ContentRejectionFromSize
ContentRejectionFromSize(int neededWidth, int neededHeight, int actualWidth, int actualHeight)
Definition
ContentRejectionFromSize.cs:16
Terraria.GameContent.ContentRejectionFromSize
Definition
ContentRejectionFromSize.cs:7
Terraria.Localization.Language.GetTextValueWith
static string GetTextValueWith(string key, object obj)
Definition
Language.cs:40
Terraria.Localization.Language
Definition
Language.cs:7
ReLogic.Content.IRejectionReason
Definition
IRejectionReason.cs:4
ReLogic.Content
Definition
IAssetReader.cs:5
Terraria.GameContent
Definition
AchievementsHelper.cs:1
Terraria.Localization
Definition
GameCulture.cs:5
source
Terraria.GameContent
ContentRejectionFromSize.cs
Generated by
1.10.0