IW4M-Admin/SharedLibraryCore/Configuration/CommandConfiguration.cs

41 lines
1.1 KiB
C#
Raw Normal View History

2022-01-26 11:32:16 -05:00
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
2022-01-26 11:32:16 -05:00
using SharedLibraryCore.Interfaces;
namespace SharedLibraryCore.Configuration
{
/// <summary>
2022-01-26 11:32:16 -05:00
/// Basic command configuration
/// </summary>
public class CommandConfiguration : IBaseConfiguration
{
/// <summary>
2022-01-26 11:32:16 -05:00
/// Dict of command class names mapped to configurable properties
/// </summary>
2022-01-26 11:32:16 -05:00
public Dictionary<string, CommandProperties> Commands { get; set; } =
new Dictionary<string, CommandProperties>();
/// <summary>
2022-01-26 11:32:16 -05:00
/// prefix indicated the chat message is a command
/// </summary>
[JsonIgnore]
public string CommandPrefix { get; set; }
/// <summary>
2022-01-26 11:32:16 -05:00
/// prefix indicating that the chat message is a broadcast command
/// </summary>
[JsonIgnore]
public string BroadcastCommandPrefix { get; set; }
public IBaseConfiguration Generate()
{
throw new NotImplementedException();
}
2022-01-26 11:32:16 -05:00
public string Name()
{
return nameof(CommandConfiguration);
}
}
2022-01-26 11:32:16 -05:00
}