help
Root Question Message
VoteType
with 4 members, Kick, Ban, Map, Skip, Mute.KickConfiguration
, BanConfiguration
, MuteConfiguration
etc these configurations inherit from BaseConfiguration
Cooldown
.VoteType
enum. I'm not sure if there's a way to infer the configuration type from this enum?_configuration.VoteConfiguration.BanConfiguration.Cooldown;
_configuration.VoteConfiguration.KickConfiguration.Cooldown;
// etc
public static TimeSpan Cooldown(VoteType voteType)
{
return new TimeSpan( /* What do I put here to get the per-voteType relevant cooldown?*/ );
}
_configuration.VotePassPercentage
_configuration.VoteConfiguration.<Type>.VotePassPercentage
now. Again, the enum is passed through to this method.var voteConfig = <someway to retreive the specific voteconfig based off of the passed enum>;
// then do
voteConfig.Cooldown;