Bump library version, and add count element to arguments

This commit is contained in:
zontreck 2024-12-17 11:44:57 -07:00
parent 43e9547219
commit 2de1622638
2 changed files with 8 additions and 3 deletions

View file

@ -12,6 +12,11 @@ namespace LibAC.Arguments
/// The dictionary containing argument names and their corresponding <see cref="IArgument"/> instances.
/// </summary>
private readonly Dictionary<string, IArgument> _arguments;
/// <summary>
/// Returns the total number of stored arguments
/// </summary>
public int Count => _arguments.Count;
/// <summary>
/// Initializes a new instance of the <see cref="Arguments"/> class.
@ -26,7 +31,7 @@ namespace LibAC.Arguments
/// </summary>
/// <param name="argument">The argument to add.</param>
/// <exception cref="ArgumentException">Thrown if an argument with the same key already exists.</exception>
public void AddArgument(IArgument argument)
internal void AddArgument(IArgument argument)
{
if (_arguments.ContainsKey(argument.Key))
throw new ArgumentException($"An argument with the key '{argument.Key}' already exists.");

View file

@ -5,14 +5,14 @@ using System.Reflection;
[assembly:AssemblyDefaultAlias("LibAC")]
[assembly:AssemblyTitle("LibAC")]
[assembly:AssemblyDescription("Aria's Creations Common Code Library")]
[assembly:AssemblyVersion("1.3.0.2")]
[assembly:AssemblyVersion("1.3.0.3")]
namespace LibAC
{
public class LibAC
{
public static readonly string BUILD_DATE = "121724";
public static readonly string BUILD_TIME = "1139";
public static readonly string BUILD_TIME = "1144";
public static string VERSION => $"1.3.${BUILD_DATE}.${BUILD_TIME}";
}