More settings fuckery, good night

This commit is contained in:
2026-01-02 01:22:07 +01:00
parent 8e381cf916
commit 82262cc7d6
3 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
namespace HighRollerClassic.DataStructures;
public enum SettingValueType
{
}

View File

@@ -0,0 +1,22 @@
using System;
namespace HighRollerClassic.DataStructures;
public class TrackedValue<TParent, TValue>
{
public TValue Value { get; set; }
public bool IsValid { get; set; }
public bool HasChanged { get; set; }
private const uint MinRoll = 1;
private const uint MaxRoll = 999;
private const uint MaxGil = 999_999_999;
private Func<uint, bool> multiplierRollValid = v => v is >= MinRoll and <= MaxRoll;
private Func<uint, bool> maxBetValid = v => v <= MaxGil;
private static bool StepValid(uint step, uint bet)
{
return step <= bet;
}
}

View File

@@ -9,4 +9,6 @@ public class Player(MenuTargetDefault target)
public int Bank { get; private set; } = 0;
public ulong ContentId { get; private set; } = target.TargetContentId;
// TODO implement roll history FULL
}