Private
Public Access
1
0

reinit branch

This commit is contained in:
2026-03-11 01:46:34 +01:00
commit bff9251737
129 changed files with 16115 additions and 0 deletions

View File

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