public static bool MeetsCondition( AccessIsCondition condition, Player player, Event eventInstance, QuestBase questBase ) { var power = player.Power; if (condition.Access == 0) { return(power.Ban || power.Kick || power.Mute); } else if (condition.Access > 0) { return(power.Editor); } return(false); }
private void SetupFormValues(AccessIsCondition condition) { cmbPower.SelectedIndex = (int)condition.Access; }
private void SaveFormValues(AccessIsCondition condition) { condition.Access = (Access)cmbPower.SelectedIndex; }