41 lines
943 B
C#
41 lines
943 B
C#
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();
|
||
}
|
||
} |