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-27 09:19:34 +01:00
|
|
|
public virtual String Name { get; set; } = "";
|
|
|
|
|
public virtual bool Visible { get; set; } = true;
|
|
|
|
|
public virtual 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
|
|
|
}
|
|
|
|
|
}
|