mirror of
https://github.com/AHA705/Monopoly-Poker-Helper.git
synced 2026-10-07 22:56:34 +01:00
15 lines
478 B
C#
15 lines
478 B
C#
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; }
|
|
}
|
|
}
|