mlaumcherb/Млаумчерб.Клиент/Игра.cs

41 lines
943 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Threading.Tasks;
using DTLib.Filesystem;
using Path = DTLib.Filesystem.Path;
namespace Млаумчерб.Клиент;
public interface IGame
{
string Name { get; }
IOPath InstallationDirectory { get; }
Progress<NetworkTransferResult> 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<NetworkTransferResult> BeginUpdate()
{
throw new NotImplementedException();
}
public void EndUpdate()
{
throw new NotImplementedException();
}
public Task Launch()
{
throw new NotImplementedException();
}
}