[Add] GameLoop base

This commit is contained in:
2026-03-18 09:13:48 +07:00
parent c819c0d045
commit 537ae1ce5c
28 changed files with 997 additions and 40 deletions
+24
View File
@@ -0,0 +1,24 @@
using System;
namespace YachtDice.Run
{
[Serializable]
public sealed class RunState
{
public int BaseQuota;
public int BetIndex;
public int StageIndex;
public int CurrentStageTarget;
public int CurrentRoll;
public int CurrentStageRollBudget;
public int StoredRolls;
public bool IsActive;
public bool IsFailed;
public RunPhase Phase;
public int StageNumber => StageIndex + 1;
public bool IsInShop => Phase == RunPhase.Shop;
public bool IsCategorySelection => Phase == RunPhase.CategorySelection;
public bool IsRollingState => Phase == RunPhase.StageStart || Phase == RunPhase.Rolling || Phase == RunPhase.CategorySelection;
}
}