Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
WorkshopIssueReporter.cs
Go to the documentation of this file.
1using System;
5
7
9{
10 private int _maxReports = 1000;
11
13
14 public event Action OnNeedToOpenUI;
15
16 public event Action OnNeedToNotifyUI;
17
18 private void AddReport(string reportText)
19 {
20 IssueReport item = new IssueReport(reportText);
22 while (_reports.Count > _maxReports)
23 {
25 }
26 }
27
29 {
30 return _reports;
31 }
32
33 private void OpenReportsScreen()
34 {
35 if (this.OnNeedToOpenUI != null)
36 {
37 this.OnNeedToOpenUI();
38 }
39 }
40
41 private void NotifyReportsScreen()
42 {
43 if (this.OnNeedToNotifyUI != null)
44 {
45 this.OnNeedToNotifyUI();
46 }
47 }
48
50 {
51 string textValue = Language.GetTextValue(textKey);
52 AddReport(textValue);
54 }
55
61
63 {
64 string textValue = Language.GetTextValue(textKey);
65 AddReport(textValue);
67 }
68
70 {
71 object obj = new
72 {
73 Reason = reasonValue
74 };
78 }
79
81 {
82 object obj = new
83 {
84 FilePath = path,
85 Reason = exception.ToString()
86 };
90 }
91
93 {
94 object obj = new
95 {
96 Reason = exception.ToString()
97 };
101 }
102}
void RemoveAt(int index)
Definition List.cs:824
static string GetTextValue(string key)
Definition Language.cs:15
static string GetTextValueWith(string key, object obj)
Definition Language.cs:40
void ReportManifestCreationProblem(string textKey, Exception exception)
void ReportDownloadProblem(string textKey, string path, Exception exception)
void ReportDelayedUploadProblemWithoutKnownReason(string textKey, string reasonValue)