2022-11-24 22:37:24 +01:00
|
|
|
namespace SteamController.Profiles
|
|
|
|
|
{
|
|
|
|
|
public abstract class Profile
|
|
|
|
|
{
|
2022-11-25 10:56:17 +01:00
|
|
|
public struct Status
|
2022-11-24 22:37:24 +01:00
|
|
|
{
|
2022-11-25 10:56:17 +01:00
|
|
|
public static readonly Status Continue = new Status() { IsDone = false };
|
|
|
|
|
public static readonly Status Done = new Status() { IsDone = true };
|
2022-11-24 22:37:24 +01:00
|
|
|
|
2022-11-25 10:56:17 +01:00
|
|
|
public bool IsDone { get; set; }
|
|
|
|
|
}
|
2022-11-24 22:37:24 +01:00
|
|
|
|
2022-11-25 10:56:17 +01:00
|
|
|
public String Name { get; set; } = "";
|
2022-11-25 21:28:43 +01:00
|
|
|
public bool Visible { get; set; } = true;
|
|
|
|
|
public bool IsDesktop { get; set; }
|
2022-11-24 22:37:24 +01:00
|
|
|
|
2022-11-25 10:56:17 +01:00
|
|
|
public abstract bool Selected(Context context);
|
2022-11-25 07:48:01 +01:00
|
|
|
|
2022-11-25 10:56:17 +01:00
|
|
|
public abstract Status Run(Context context);
|
2022-11-24 22:37:24 +01:00
|
|
|
}
|
|
|
|
|
}
|