2022-01-26 11:32:16 -05:00
|
|
|
|
using System;
|
2020-01-26 19:06:50 -05:00
|
|
|
|
using System.Collections.Generic;
|
2020-07-31 21:40:03 -04:00
|
|
|
|
using System.Text.Json.Serialization;
|
2022-01-26 11:32:16 -05:00
|
|
|
|
using SharedLibraryCore.Interfaces;
|
2020-01-26 19:06:50 -05:00
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Configuration
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// Basic command configuration
|
2020-01-26 19:06:50 -05:00
|
|
|
|
/// </summary>
|
|
|
|
|
public class CommandConfiguration : IBaseConfiguration
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// Dict of command class names mapped to configurable properties
|
2020-01-26 19:06:50 -05:00
|
|
|
|
/// </summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
public Dictionary<string, CommandProperties> Commands { get; set; } =
|
|
|
|
|
new Dictionary<string, CommandProperties>();
|
2020-01-26 19:06:50 -05:00
|
|
|
|
|
2020-07-31 21:40:03 -04:00
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// prefix indicated the chat message is a command
|
2020-07-31 21:40:03 -04:00
|
|
|
|
/// </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
|
2020-07-31 21:40:03 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
public string BroadcastCommandPrefix { get; set; }
|
|
|
|
|
|
2020-01-26 19:06:50 -05:00
|
|
|
|
public IBaseConfiguration Generate()
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-26 11:32:16 -05:00
|
|
|
|
public string Name()
|
|
|
|
|
{
|
|
|
|
|
return nameof(CommandConfiguration);
|
|
|
|
|
}
|
2020-01-26 19:06:50 -05:00
|
|
|
|
}
|
2022-01-26 11:32:16 -05:00
|
|
|
|
}
|