[Add] Data
This commit is contained in:
@@ -57,7 +57,7 @@ namespace YachtDice.Scoring
|
||||
|
||||
public bool IsComplete => CategoriesFilledCount >= TotalCategoryCount;
|
||||
|
||||
public ScoreResult PreviewScore(IReadOnlyList<IDie> dice, CategoryDefinition category,
|
||||
public ScoreResult PreviewScore(IReadOnlyList<IDice> dice, CategoryDefinition category,
|
||||
int currentRoll = 0, int currentTurn = 0, int playerCurrency = 0)
|
||||
{
|
||||
int baseScore = category.Calculate(dice);
|
||||
@@ -75,7 +75,7 @@ namespace YachtDice.Scoring
|
||||
return context.ToScoreResult();
|
||||
}
|
||||
|
||||
public async UniTask<ScoreResult> ScoreCategoryAsync(IReadOnlyList<IDie> dice, CategoryDefinition category,
|
||||
public async UniTask<ScoreResult> ScoreCategoryAsync(IReadOnlyList<IDice> dice, CategoryDefinition category,
|
||||
int currentRoll, int currentTurn, int playerCurrency)
|
||||
{
|
||||
if (usedCategories.Contains(category))
|
||||
@@ -118,7 +118,7 @@ namespace YachtDice.Scoring
|
||||
return result;
|
||||
}
|
||||
|
||||
public ScoreResult ScoreCategory(IReadOnlyList<IDie> dice, CategoryDefinition category)
|
||||
public ScoreResult ScoreCategory(IReadOnlyList<IDice> dice, CategoryDefinition category)
|
||||
{
|
||||
if (usedCategories.Contains(category))
|
||||
throw new InvalidOperationException($"Category {category.DisplayName} has already been scored.");
|
||||
|
||||
Reference in New Issue
Block a user