using System;
namespace OrekiWoofsBees.Common.Configs;
///
/// Marks a Config property as having a /beehives or .beehives chat command.
/// The registration loop in ChatCommands.cs picks these up.
///
[AttributeUsage(AttributeTargets.Property)]
public class ConfigCommandAttribute(bool serverSide) : Attribute
{
/// True = registered as a server command and broadcasts on change.
public bool ServerSide { get; } = serverSide;
/// Inclusive
public double Min { get; set; }
/// Inclusive
public double Max { get; set; }
/// Allowed values for string enum properties (uses OptionalWordRange).
public string[] AllowedValues { get; set; } = [];
}