mirror of
https://github.com/AHA705/Monopoly-Poker-Helper.git
synced 2026-10-07 22:56:34 +01:00
Initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace MonopolyPokerHelper
|
||||
{
|
||||
/// <summary>
|
||||
/// Base class for handlers to share properties like IsEnabled and IsResolved.
|
||||
/// By using a generic type parameter (CRTP), each handler gets its own independent static state.
|
||||
/// </summary>
|
||||
internal abstract class FeatureHandler<T> where T : FeatureHandler<T>
|
||||
{
|
||||
public static bool IsEnabled { get; set; } = true;
|
||||
public static bool IsResolved { get; protected set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user