public bool Detection(SkillUseRule ruleType, SkillSlot slot)
        {
            SkillBaseDetection detection;

            if (this._registedRule.TryGetValue((uint)ruleType, out detection))
            {
                return(detection.Detection(slot));
            }
            return(true);
        }
        public bool Detection(SkillUseRule ruleType, SkillSlot slot)
        {
            SkillBaseDetection skillBaseDetection;

            return(!this._registedRule.TryGetValue(ruleType, ref skillBaseDetection) || skillBaseDetection.Detection(slot));
        }
 public SkillBaseDetectionAttribute(SkillUseRule _rule)
 {
     this.UseRule = _rule;
 }