GameLogic/RoundConfig.cs
using System.Collections.Generic;
using Sandbox;
[GameResource( "Round Configuration", "round", "Paramètres d'une manche d'arène" )]
public sealed class RoundConfig : GameResource
{
[Property, Title( "Nom de la manche" )]
public string RoundTitle { get; set; } = "Manche 1";
[Property, Title( "Durée du timer (secondes)" )]
public float RoundDuration { get; set; } = 240f;
[Property, Group( "Effectifs" ), Title( "Total d'ennemis pour la manche" )]
public int TotalCombatants { get; set; } = 12;
[Property, Group( "Effectifs" ), Title( "Ennemis simultanés max en arène" )]
public int MaxConcurrentFighters { get; set; } = 4;
[Property, Group( "Effectifs" ), Title( "Délai de réapparition après une mort (sec)" )]
public float RespawnDelay { get; set; } = 3.0f;
[Property, Group( "Spawns" ), Title( "Prefabs d'ennemis disponibles" )]
public List<GameObject> EnemyPrefabs { get; set; } = new();
[Property, Group( "Règles" ), Title( "Mort subite activée" )]
public bool EnableSuddenDeath { get; set; } = false;
}