using System;
using System.Collections.Generic;
using Dalamud.Configuration;
using Newtonsoft.Json;
namespace ConfigurableCombo;
[Serializable]
public class PluginConfiguration : IPluginConfiguration
{
public int Version { get; set; } = 1;
///
/// Master switch for the plugin.
///
public bool EnablePlugin { get; set; } = true;
///
/// How often (ms) to refresh the combo "next action" per slot. Higher = more stable icons, slightly slower to update.
/// WrathCombo uses 50ms; same default here.
///
public int ThrottleMs { get; set; } = 50;
///
/// When true, log every combo-related hook call and replacement to the plugin log (throttled where needed).
/// Toggled via /ccombo debug for support; not shown in settings UI.
///
public bool EnableDebugLogging { get; set; } = false;
///
/// User-defined combos. Each combo is a named sequence of action IDs; the first action is the hotbar slot.
///
public List UserCombos { get; set; } = new();
public void Save() => Service.Interface!.SavePluginConfig(this);
}