Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ContentRejectionFromSize.cs
Go to the documentation of this file.
3
5
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}
ContentRejectionFromSize(int neededWidth, int neededHeight, int actualWidth, int actualHeight)
static string GetTextValueWith(string key, object obj)
Definition Language.cs:40