/*
 * File: D:\shadowed-realms-mobile\ShadowedRealmsMobile\src\server\ShadowedRealms.Shared\DTOs\Player\CombatResultsResponseDto.cs
 * Created: 2025-10-23
 * Last Modified: 2025-10-23
 * Description: Response DTO for combat results and battle outcomes
 * Last Edit Notes: Individual file implementation for combat results data
 */

namespace ShadowedRealms.Shared.DTOs.Player
{
    /// <summary>
    /// Response DTO for combat results and battle outcomes
    /// </summary>
    public class CombatResultsResponseDto
    {
        /// <summary>
        /// Player ID who participated in combat
        /// </summary>
        public int PlayerId { get; set; }

        /// <summary>
        /// Combat log ID for reference
        /// </summary>
        public int CombatLogId { get; set; }

        /// <summary>
        /// Battle outcome (Victory, Defeat, Draw)
        /// </summary>
        public string BattleOutcome { get; set; } = string.Empty;

        /// <summary>
        /// Player's role in the battle (Attacker, Defender, Reinforcement)
        /// </summary>
        public string PlayerRole { get; set; } = string.Empty;

        /// <summary>
        /// Troops lost in the battle by type
        /// </summary>
        public Dictionary<string, long> TroopsLost { get; set; } = new();

        /// <summary>
        /// Troops surviving after battle by type
        /// </summary>
        public Dictionary<string, long> TroopsSurvived { get; set; } = new();

        /// <summary>
        /// Resources gained from victory
        /// </summary>
        public Dictionary<string, long> ResourcesGained { get; set; } = new();

        /// <summary>
        /// Resources lost from defeat
        /// </summary>
        public Dictionary<string, long> ResourcesLost { get; set; } = new();

        /// <summary>
        /// Experience points earned from combat
        /// </summary>
        public long ExperienceGained { get; set; }

        /// <summary>
        /// Dragon participation and bonuses
        /// </summary>
        public Dictionary<string, object> DragonResults { get; set; } = new();

        /// <summary>
        /// Field interception details if applicable
        /// </summary>
        public Dictionary<string, object>? InterceptionDetails { get; set; }

        /// <summary>
        /// When the battle concluded
        /// </summary>
        public DateTime BattleTime { get; set; }

        /// <summary>
        /// Additional battle statistics and analytics
        /// </summary>
        public Dictionary<string, object> BattleStatistics { get; set; } = new();
    }
}