using System.Threading.Tasks; using DTLib.Filesystem; using Path = DTLib.Filesystem.Path; namespace Млаумчерб.Клиент; public interface IGame { string Name { get; } IOPath InstallationDirectory { get; } Progress BeginUpdate(); void EndUpdate(); Task Launch(); } public class MinecraftVersion : IGame { public string Name { get; } public IOPath InstallationDirectory { get; } public MinecraftVersion(string name) { Name = name; InstallationDirectory = Path.Concat("minecraft", Path.ReplaceRestrictedChars(name)); } public Progress BeginUpdate() { throw new NotImplementedException(); } public void EndUpdate() { throw new NotImplementedException(); } public Task Launch() { throw new NotImplementedException(); } }