Implement basic structure for combat system and refactor code

This commit is contained in:
2026-07-03 13:14:36 +02:00
parent 754f81eb4c
commit d98d34ec3f
78 changed files with 1212 additions and 13 deletions
+42
View File
@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using KernelPanic.Data;
namespace KernelPanic.Run
{
/// <summary>
/// Provides post-wave reward choice generation contracts.
/// </summary>
public sealed class RewardService
{
public IReadOnlyList<RewardChoice> GeneratePostWaveChoices(RunConfig runConfig, int waveNumber)
{
throw new NotImplementedException();
}
}
/// <summary>
/// Represents one selectable reward option after clearing a wave.
/// </summary>
public readonly struct RewardChoice
{
public RewardChoice(RewardChoiceType type, CardDefinition card)
{
Type = type;
Card = card;
}
public RewardChoiceType Type { get; }
public CardDefinition Card { get; }
}
/// <summary>
/// Identifies the type of reward choice offered after a wave.
/// </summary>
public enum RewardChoiceType
{
AddCard,
UpgradeCard,
Skip
}
}