import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsString, IsInt, Min, IsOptional } from 'class-validator';

export class UpdateBattleMapDto {
  @ApiPropertyOptional({ description: 'Map name' })
  @IsOptional()
  @IsString()
  name?: string;

  @ApiPropertyOptional({ description: 'Grid columns' })
  @IsOptional()
  @IsInt()
  @Min(1)
  gridSizeX?: number;

  @ApiPropertyOptional({ description: 'Grid rows' })
  @IsOptional()
  @IsInt()
  @Min(1)
  gridSizeY?: number;

  @ApiPropertyOptional({ description: 'Grid X offset' })
  @IsOptional()
  @IsInt()
  gridOffsetX?: number;

  @ApiPropertyOptional({ description: 'Grid Y offset' })
  @IsOptional()
  @IsInt()
  gridOffsetY?: number;
}
