KtaneTwitchPlays
KtaneTwitchPlays copied to clipboard
Add support for properties for TwitchHelpMessage and TwitchManualCode
Pretty self-explanatory, currently it can only grab fields with the name, I hope to see it be supported with properties. For instance people can create an abstract class to make TP support easier to implement...
internal abstract string TwitchHelpMessage { get; }
...Or people can make more dynamic help commands based on what the module is, to not have to assign the field.
internal string TwitchHelpMessage
{
get
{
if (someCondition)
return @"SomeConditionHelpMessage";
if (someOtherCondition)
return @"SomeOtherConditionHelpMessage";
return @"DefaultHelpMessage";
}
}