- Created 17 Player DTOs for PlayerController compilation resolution - Created 24 Combat DTOs for CombatController compilation resolution - Full support for field interception system and anti-pay-to-win mechanics - Comprehensive dragon integration with skills and equipment DTOs - Proper validation attributes and extensible Dictionary properties - Complete XML documentation and established file header format Player DTOs: UpdatePlayerProfileRequestDto, PlayerRankingsResponseDto, CastleInfoResponseDto, VipAdvancementRequestDto/ResponseDto, ResourceCollectionResponseDto, ResourceSpendingRequestDto/ResponseDto, CombatResultsRequestDto/ResponseDto, AllianceJoinResponseDto, AllianceLeaveRequestDto/ResponseDto, ExperienceProcessingResponseDto, AchievementsResponseDto, ActionValidationRequestDto/ResponseDto Combat DTOs: FieldInterceptionResponseDto, InterceptionValidationRequestDto/ResponseDto, OptimalRoutesResponseDto, RouteOptimizationRequestDto, MarchInitiationResponseDto, MarchSpeedRequestDto, MarchCancellationResponseDto, MarchArrivalRequestDto/ResponseDto, BattleExecutionRequestDto, BattlePredictionRequestDto/ResponseDto, CasualtyProcessingRequestDto/ResponseDto, RewardDistributionRequestDto/ResponseDto, DragonValidationResponseDto, DragonSkillRequestDto/ResponseDto, DragonEquipmentRequestDto/ResponseDto, CombatEffectivenessResponseDto, KingdomTrendsResponseDto Resolves PlayerController and CombatController compilation errors.
85 lines
2.6 KiB
C#
85 lines
2.6 KiB
C#
/*
|
|
* File: D:\shadowed-realms-mobile\ShadowedRealmsMobile\src\server\ShadowedRealms.Shared\DTOs\Combat\RewardDistributionRequestDto.cs
|
|
* Created: 2025-10-23
|
|
* Last Modified: 2025-10-23
|
|
* Description: Request DTO for combat reward distribution
|
|
* Last Edit Notes: Individual file implementation for reward distribution input validation
|
|
*/
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace ShadowedRealms.Shared.DTOs.Combat
|
|
{
|
|
/// <summary>
|
|
/// Request DTO for combat reward distribution
|
|
/// </summary>
|
|
public class RewardDistributionRequestDto
|
|
{
|
|
/// <summary>
|
|
/// Combat log ID for reward calculation
|
|
/// </summary>
|
|
[Required]
|
|
[Range(1, int.MaxValue)]
|
|
public int CombatLogId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Player ID to calculate rewards for
|
|
/// </summary>
|
|
[Required]
|
|
[Range(1, int.MaxValue)]
|
|
public int PlayerId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Battle outcome achieved
|
|
/// </summary>
|
|
[Required]
|
|
[StringLength(50)]
|
|
public string BattleOutcome { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Player's performance metrics in battle
|
|
/// </summary>
|
|
[Required]
|
|
public Dictionary<string, object> PerformanceMetrics { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// Whether to apply VIP reward bonuses
|
|
/// </summary>
|
|
public bool ApplyVipBonuses { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Whether to apply alliance reward bonuses
|
|
/// </summary>
|
|
public bool ApplyAllianceBonuses { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Dragon participation bonuses to include
|
|
/// </summary>
|
|
public Dictionary<string, object> DragonBonuses { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// Equipment reward bonuses active
|
|
/// </summary>
|
|
public Dictionary<string, decimal> EquipmentBonuses { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// Event or seasonal multipliers to apply
|
|
/// </summary>
|
|
public Dictionary<string, decimal> EventMultipliers { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// Maximum reward caps if applicable
|
|
/// </summary>
|
|
public Dictionary<string, long>? RewardCaps { get; set; }
|
|
|
|
/// <summary>
|
|
/// Whether this is part of a KvK event
|
|
/// </summary>
|
|
public bool IsKvKEvent { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// Additional reward calculation parameters
|
|
/// </summary>
|
|
public Dictionary<string, object> RewardParameters { get; set; } = new();
|
|
}
|
|
} |