terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
CalendarData.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020005A9 RID: 1449
8 [StructLayout(0)]
9 internal class CalendarData
10 {
11 // Token: 0x06002B8D RID: 11149 RVA: 0x0005FB4C File Offset: 0x0005DD4C
12 private CalendarData()
13 {
14 }
15
16 // Token: 0x06002B8E RID: 11150 RVA: 0x0005FB6C File Offset: 0x0005DD6C
17 static CalendarData()
18 {
19 if (("תשרי" == null || "תשרי" != null) && ("חשון" == null || "חשון" != null) && ("כסלו" == null || "כסלו" != null) && ("טבת" == null || "טבת" != null) && ("שבט" == null || "שבט" != null) && ("אדר" == null || "אדר" != null) && ("אדר ב" == null || "אדר ב" != null) && ("ניסן" == null || "ניסן" != null) && ("אייר" == null || "אייר" != null) && ("סיון" == null || "סיון" != null) && ("תמוז" == null || "תמוז" != null) && ("אב" == null || "אב" != null) && ("אלול" == null || "אלול" != null) && ("תשרי" == null || "תשרי" != null) && ("חשון" == null || "חשון" != null) && ("כסלו" == null || "כסלו" != null) && ("טבת" == null || "טבת" != null) && ("שבט" == null || "שבט" != null) && ("אדר א" == null || "אדר א" != null) && ("אדר ב" == null || "אדר ב" != null) && ("ניסן" == null || "ניסן" != null) && ("אייר" == null || "אייר" != null) && ("סיון" == null || "סיון" != null) && ("תמוז" == null || "תמוז" != null) && ("תמוז" == null || "תמוז" != null) && ("אלול" == null || "אלול" != null) && ("MM/dd/yyyy" == null || "MM/dd/yyyy" != null) && ("yyyy-MM-dd" == null || "yyyy-MM-dd" != null) && ("dddd, dd MMMM yyyy" == null || "dddd, dd MMMM yyyy" != null) && ("yyyy MMMM" == null || "yyyy MMMM" != null) && ("A.D." == null || "A.D." != null) && ("AD" == null || "AD" != null) && ("AD" == null || "AD" != null) && ("Sunday" == null || "Sunday" != null) && ("Monday" == null || "Monday" != null) && ("Tuesday" == null || "Tuesday" != null) && ("Wednesday" == null || "Wednesday" != null) && ("Thursday" == null || "Thursday" != null) && ("Friday" == null || "Friday" != null) && ("Saturday" == null || "Saturday" != null) && ("Sun" == null || "Sun" != null) && ("Mon" == null || "Mon" != null) && ("Tue" == null || "Tue" != null) && ("Wed" == null || "Wed" != null) && ("Thu" == null || "Thu" != null) && ("Fri" == null || "Fri" != null) && "Sat" != null && ("Su" == null || "Su" != null) && ("Su" == null || "Su" != null) && ("Tu" == null || "Tu" != null) && ("We" == null || "We" != null) && ("Th" == null || "Th" != null) && ("Fr" == null || "Fr" != null) && ("Sa" == null || "Sa" != null) && ("January" == null || "January" != null) && ("February" == null || "February" != null) && ("March" == null || "March" != null) && ("April" == null || "April" != null) && ("May" == null || "May" != null) && ("June" == null || "June" != null) && ("July" == null || "July" != null) && ("August" == null || "August" != null) && ("September" == null || "September" != null) && ("October" == null || "October" != null) && ("November" == null || "November" != null) && ("December" == null || "December" != null) && ("Jan" == null || "Jan" != null) && ("Feb" == null || "Feb" != null) && ("Mar" == null || "Mar" != null) && ("Apr" == null || "Apr" != null) && ("May" == null || "May" != null) && ("Jun" == null || "Jun" != null) && ("Jul" == null || "Jul" != null) && "Aug" != null && ("Sep" == null || "Sep" != null) && ("Oct" == null || "Oct" != null) && ("Nov" == null || "Nov" != null) && ("Dec" == null || "Dec" != null))
20 {
21 return;
22 }
24 }
25
26 // Token: 0x06002B8F RID: 11151 RVA: 0x0006008C File Offset: 0x0005E28C
27 internal CalendarData(string localeName, int calendarId, bool bUseUserOverrides)
28 {
29 if (2029 == 0)
30 {
31 }
32 bool flag = CalendarData.nativeGetCalendarData(this, localeName, calendarId);
33 if (this.sNativeName == null)
34 {
35 }
36 string[] array = this.saShortDates;
37 if (array != null || array == null)
38 {
39 }
40 string[] array2 = this.saYearMonths;
41 if (array2 != null || array2 == null)
42 {
43 }
44 string[] array3 = this.saLongDates;
45 if (array3 != null || array3 == null)
46 {
47 }
48 string text = this.sMonthDay;
49 if (text != null || text == null)
50 {
51 }
52 string[] array4 = this.saEraNames;
53 if (array4 != null || array4 == null)
54 {
55 }
56 string[] array5 = this.saAbbrevEraNames;
57 if (array5 != null || array5 == null)
58 {
59 }
60 string[] array6 = this.saAbbrevEnglishEraNames;
61 if (array6 != null || array6 == null)
62 {
63 }
64 string[] array7 = this.saDayNames;
65 if (array7 != null || array7 == null)
66 {
67 }
68 string[] array8 = this.saAbbrevDayNames;
69 if (array8 != null || array8 == null)
70 {
71 }
72 string[] array9 = this.saSuperShortDayNames;
73 if (array9 != null || array9 == null)
74 {
75 }
76 string[] array10 = this.saMonthNames;
77 if (array10 != null || array10 == null)
78 {
79 }
80 string[] array11 = this.saAbbrevMonthNames;
81 if (array11 != null || array11 == null)
82 {
83 }
85 string[] array13 = this.saLongDates;
88 string[] array15 = this.saYearMonths;
91 string text2 = this.sMonthDay;
95 if (text2 == null)
96 {
97 }
98 if (text2 != null)
99 {
100 return;
101 }
102 if (this.saMonthGenitiveNames != null)
103 {
104 }
105 string[] array17 = this.saMonthNames;
107 if (this.saAbbrevMonthGenitiveNames != null)
108 {
109 }
110 string[] array18 = this.saAbbrevMonthNames;
112 if (this.saLeapYearMonthNames != null)
113 {
114 }
115 string[] array19 = this.saMonthNames;
117 this.InitializeEraNames(localeName, calendarId);
118 this.InitializeAbbreviatedEraNames(localeName, calendarId);
119 if (array19 == null)
120 {
121 }
122 if (!true)
123 {
124 }
125 if (!true)
126 {
127 if (!true)
128 {
129 }
132 return;
133 }
134 if ("" == null || "" != null)
135 {
136 string[] array20 = this.saEraNames;
138 return;
139 }
140 throw new ArrayTypeMismatchException();
141 }
142
143 // Token: 0x06002B90 RID: 11152 RVA: 0x0006027C File Offset: 0x0005E47C
144 private void InitializeEraNames(string localeName, int calendarId)
145 {
146 }
147
148 // Token: 0x06002B91 RID: 11153 RVA: 0x00060354 File Offset: 0x0005E554
149 private static string[] GetJapaneseEraNames()
150 {
151 do
152 {
153 if (!true)
154 {
155 }
156 if (!true)
157 {
158 }
159 }
160 while (true);
161 return JapaneseCalendar.EraNames();
162 }
163
164 // Token: 0x06002B92 RID: 11154 RVA: 0x00060370 File Offset: 0x0005E570
165 private static string[] GetJapaneseEnglishEraNames()
166 {
167 do
168 {
169 if (!true)
170 {
171 }
172 if (!true)
173 {
174 }
175 }
176 while (true);
178 }
179
180 // Token: 0x06002B93 RID: 11155 RVA: 0x0006038C File Offset: 0x0005E58C
181 private void InitializeAbbreviatedEraNames(string localeName, int calendarId)
182 {
183 }
184
185 // Token: 0x06002B94 RID: 11156 RVA: 0x00060424 File Offset: 0x0005E624
186 internal static CalendarData GetCalendarData(int calendarId)
187 {
188 if (!true)
189 {
190 }
191 string text = CalendarData.CalendarIdToCultureName(1073741824);
192 long num = 0L;
194 }
195
196 // Token: 0x06002B95 RID: 11157 RVA: 0x00060454 File Offset: 0x0005E654
197 private static string CalendarIdToCultureName(int calendarId)
198 {
199 return "ar-DZ";
200 }
201
202 // Token: 0x06002B96 RID: 11158 RVA: 0x0000207A File Offset: 0x0000027A
203 public static int nativeGetTwoDigitYearMax(int calID)
204 {
205 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
206 }
207
208 // Token: 0x06002B97 RID: 11159 RVA: 0x00060470 File Offset: 0x0005E670
209 private static bool nativeGetCalendarData(CalendarData data, string localeName, int calendarId)
210 {
211 if (!true)
212 {
213 }
214 return true;
215 }
216
217 // Token: 0x06002B98 RID: 11160 RVA: 0x0000207A File Offset: 0x0000027A
219 {
220 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
221 }
222
223 // Token: 0x04001843 RID: 6211
224 internal const int MAX_CALENDARS = 23;
225
226 // Token: 0x04001844 RID: 6212
227 internal string sNativeName;
228
229 // Token: 0x04001845 RID: 6213
230 internal string[] saShortDates;
231
232 // Token: 0x04001846 RID: 6214
233 internal string[] saYearMonths;
234
235 // Token: 0x04001847 RID: 6215
236 internal string[] saLongDates;
237
238 // Token: 0x04001848 RID: 6216
239 internal string sMonthDay;
240
241 // Token: 0x04001849 RID: 6217
242 internal string[] saEraNames;
243
244 // Token: 0x0400184A RID: 6218
245 internal string[] saAbbrevEraNames;
246
247 // Token: 0x0400184B RID: 6219
248 internal string[] saAbbrevEnglishEraNames;
249
250 // Token: 0x0400184C RID: 6220
251 internal string[] saDayNames;
252
253 // Token: 0x0400184D RID: 6221
254 internal string[] saAbbrevDayNames;
255
256 // Token: 0x0400184E RID: 6222
257 internal string[] saSuperShortDayNames;
258
259 // Token: 0x0400184F RID: 6223
260 internal string[] saMonthNames;
261
262 // Token: 0x04001850 RID: 6224
263 internal string[] saAbbrevMonthNames;
264
265 // Token: 0x04001851 RID: 6225
266 internal string[] saMonthGenitiveNames;
267
268 // Token: 0x04001852 RID: 6226
269 internal string[] saAbbrevMonthGenitiveNames;
270
271 // Token: 0x04001853 RID: 6227
272 internal string[] saLeapYearMonthNames;
273
274 // Token: 0x04001854 RID: 6228
275 internal int iTwoDigitYearMax = 2029;
276
277 // Token: 0x04001855 RID: 6229
278 internal int iCurrentEra;
279
280 // Token: 0x04001856 RID: 6230
281 internal bool bUseUserOverrides;
282
283 // Token: 0x04001857 RID: 6231
284 internal static CalendarData Invariant;
285
286 // Token: 0x04001858 RID: 6232
287 private static string[] HEBREW_MONTH_NAMES;
288
289 // Token: 0x04001859 RID: 6233
290 private static string[] HEBREW_LEAP_MONTH_NAMES;
291 }
292}
class f__AnonymousType0<< Count > j__TPar
static string[] GetJapaneseEraNames()
static string CalendarIdToCultureName(int calendarId)
void InitializeEraNames(string localeName, int calendarId)
bool fill_calendar_data(string localeName, int datetimeIndex)
static CalendarData GetCalendarData(int calendarId)
static int nativeGetTwoDigitYearMax(int calID)
void InitializeAbbreviatedEraNames(string localeName, int calendarId)
static string[] GetJapaneseEnglishEraNames()
static bool nativeGetCalendarData(CalendarData data, string localeName, int calendarId)
CalendarData(string localeName, int calendarId, bool bUseUserOverrides)
static string[] ReescapeWin32Strings(string[] array)
CalendarData GetCalendar(int calendarId)
static string ReescapeWin32String(string str)
static CultureInfo GetCultureInfo(int culture)