Core: SOme code cleanup, more to follow.
This commit is contained in:
@@ -85,7 +85,7 @@ namespace Game.SupportSystem
|
||||
uint count = 0;
|
||||
do
|
||||
{
|
||||
BugTicket bug = new BugTicket();
|
||||
BugTicket bug = new();
|
||||
bug.LoadFromDB(result.GetFields());
|
||||
|
||||
if (!bug.IsClosed())
|
||||
@@ -123,7 +123,7 @@ namespace Game.SupportSystem
|
||||
SQLResult chatLogResult;
|
||||
do
|
||||
{
|
||||
ComplaintTicket complaint = new ComplaintTicket();
|
||||
ComplaintTicket complaint = new();
|
||||
complaint.LoadFromDB(result.GetFields());
|
||||
|
||||
if (!complaint.IsClosed())
|
||||
@@ -171,7 +171,7 @@ namespace Game.SupportSystem
|
||||
uint count = 0;
|
||||
do
|
||||
{
|
||||
SuggestionTicket suggestion = new SuggestionTicket();
|
||||
SuggestionTicket suggestion = new();
|
||||
suggestion.LoadFromDB(result.GetFields());
|
||||
|
||||
if (!suggestion.IsClosed())
|
||||
@@ -277,7 +277,7 @@ namespace Game.SupportSystem
|
||||
|
||||
_lastComplaintId = 0;
|
||||
|
||||
SQLTransaction trans = new SQLTransaction();
|
||||
SQLTransaction trans = new();
|
||||
trans.Append(DB.Characters.GetPreparedStatement(CharStatements.DEL_ALL_GM_COMPLAINTS));
|
||||
trans.Append(DB.Characters.GetPreparedStatement(CharStatements.DEL_ALL_GM_COMPLAINT_CHATLOGS));
|
||||
DB.Characters.CommitTransaction(trans);
|
||||
@@ -372,9 +372,9 @@ namespace Game.SupportSystem
|
||||
bool _bugSystemStatus;
|
||||
bool _complaintSystemStatus;
|
||||
bool _suggestionSystemStatus;
|
||||
Dictionary<uint, BugTicket> _bugTicketList = new Dictionary<uint, BugTicket>();
|
||||
Dictionary<uint, ComplaintTicket> _complaintTicketList = new Dictionary<uint, ComplaintTicket>();
|
||||
Dictionary<uint, SuggestionTicket> _suggestionTicketList = new Dictionary<uint, SuggestionTicket>();
|
||||
Dictionary<uint, BugTicket> _bugTicketList = new();
|
||||
Dictionary<uint, ComplaintTicket> _complaintTicketList = new();
|
||||
Dictionary<uint, SuggestionTicket> _suggestionTicketList = new();
|
||||
uint _lastBugId;
|
||||
uint _lastComplaintId;
|
||||
uint _lastSuggestionId;
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace Game.SupportSystem
|
||||
public virtual string FormatViewMessageString(CommandHandler handler, bool detailed = false) { return ""; }
|
||||
public virtual string FormatViewMessageString(CommandHandler handler, string closedName, string assignedToName, string unassignedName, string deletedName)
|
||||
{
|
||||
StringBuilder ss = new StringBuilder();
|
||||
StringBuilder ss = new();
|
||||
ss.Append(handler.GetParsedString(CypherStrings.CommandTicketlistguid, _id));
|
||||
ss.Append(handler.GetParsedString(CypherStrings.CommandTicketlistname, GetPlayerName()));
|
||||
|
||||
@@ -186,7 +186,7 @@ namespace Game.SupportSystem
|
||||
{
|
||||
ulong curTime = (ulong)Time.UnixTime;
|
||||
|
||||
StringBuilder ss = new StringBuilder();
|
||||
StringBuilder ss = new();
|
||||
ss.Append(handler.GetParsedString(CypherStrings.CommandTicketlistguid, _id));
|
||||
ss.Append(handler.GetParsedString(CypherStrings.CommandTicketlistname, GetPlayerName()));
|
||||
ss.Append(handler.GetParsedString(CypherStrings.CommandTicketlistagecreate, Time.secsToTimeString(curTime - _createTime, true, false)));
|
||||
@@ -323,7 +323,7 @@ namespace Game.SupportSystem
|
||||
{
|
||||
ulong curTime = (ulong)Time.UnixTime;
|
||||
|
||||
StringBuilder ss = new StringBuilder();
|
||||
StringBuilder ss = new();
|
||||
ss.Append(handler.GetParsedString(CypherStrings.CommandTicketlistguid, _id));
|
||||
ss.Append(handler.GetParsedString(CypherStrings.CommandTicketlistname, GetPlayerName()));
|
||||
ss.Append(handler.GetParsedString(CypherStrings.CommandTicketlistagecreate, Time.secsToTimeString(curTime - _createTime, true, false)));
|
||||
@@ -428,7 +428,7 @@ namespace Game.SupportSystem
|
||||
{
|
||||
ulong curTime = (ulong)Time.UnixTime;
|
||||
|
||||
StringBuilder ss = new StringBuilder();
|
||||
StringBuilder ss = new();
|
||||
ss.Append(handler.GetParsedString(CypherStrings.CommandTicketlistguid, _id));
|
||||
ss.Append(handler.GetParsedString(CypherStrings.CommandTicketlistname, GetPlayerName()));
|
||||
ss.Append(handler.GetParsedString(CypherStrings.CommandTicketlistagecreate, Time.secsToTimeString(curTime - _createTime, true, false)));
|
||||
|
||||
Reference in New Issue
Block a user