Files
Mitria_Minecraft_Project/Mitria_Minecraft_Launcher/DataModel.cs
2022-10-09 12:27:47 +09:00

54 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
namespace Mitria_Minecraft_Launcher
{
[Serializable]
public struct LauncherConfig
{
public string MinecraftPlayerName { get; set; }
public string GameDirectory { get; set; }
public bool ShellView { get; set; }
public string LastServerName { get; set; }
public List<Profile> Profiles { get; set; }
public struct Profile
{
public string ServerName { get; set; }
public string Argument { get; set; }
public string OriginalArgument { get; set; }
public string RuntimeVersion { get; set; }
public List<string> CustomData { get; set; }
}
}
[Serializable]
public struct ClientVersion
{
public string PackageVersion { get; set; }
public List<string> PackageDirectorys { get; set; }
public string ComponentVersion { get; set; }
public List<string> ComponentDirectorys { get; set; }
}
[Serializable]
public struct ExcuteArgument
{
public string Argument { get; set; }
public List<Parameter> Parameters { get; set; }
}
[Serializable]
public struct Parameter
{
public string Key { get; set; }
public string Value { get; set; }
public Parameter(string key, string value)
{
Key = key;
Value = value;
}
}
}