- Recovery

This commit is contained in:
2022-10-09 12:27:47 +09:00
parent f53695b228
commit 9052652122
30 changed files with 1112 additions and 219 deletions

View File

@@ -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; }
}
}
}

View File

@@ -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);
}
}
}

View File

@@ -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
{