- Recovery
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CommonLibrary
|
||||
{
|
||||
@@ -14,6 +11,20 @@ namespace CommonLibrary
|
||||
public string LauncherFileName { get; set; } // 런처 파일명
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public struct ServerInformation // 서버데이터 정보
|
||||
{
|
||||
public List<Server> Servers { get; set; }
|
||||
|
||||
public struct Server
|
||||
{
|
||||
public string ServerName { get; set; } // Majesty
|
||||
public string ServerFullName { get; set; } // Mitria Minecraft Majesty Server
|
||||
public string Explain { get; set; } // 서버설명
|
||||
public string BaseArgument { get; set; } // 기본 Argument
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public struct DataPatchInformation // 패치데이터 정보
|
||||
{
|
||||
@@ -40,4 +51,4 @@ namespace CommonLibrary
|
||||
public long FileSize { get; set; }
|
||||
public string HashCode { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
@@ -53,5 +53,9 @@ namespace CommonLibrary
|
||||
}
|
||||
return path.ToString();
|
||||
}
|
||||
public static bool IsDefault<T>(ref this T data) where T : struct
|
||||
{
|
||||
return default(T).Equals(data);
|
||||
}
|
||||
}
|
||||
}
|
@@ -4,7 +4,7 @@ using System.Xml.Serialization;
|
||||
|
||||
namespace CommonLibrary
|
||||
{
|
||||
public static class XMLSystem
|
||||
public static class XmlSystem
|
||||
{
|
||||
public static bool Save<T>(string path, T data) where T : struct
|
||||
{
|
||||
|
Reference in New Issue
Block a user