Exemplo n.º 1
0
        public bool Init(Dictionary <string, string> kvPairs, ConfigCheckFunc func)
        {
            bool all_ok = true;

            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectHealConfig.Field_Name_id) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectHealConfig.Field_Name_id], ref id);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectHealConfig.Field_Name_value) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectHealConfig.Field_Name_value], ref value);
            if (all_ok && null != func)
            {
                all_ok &= func(this);
            }
            return(all_ok);
        }
Exemplo n.º 2
0
        public bool Init(Dictionary <string, string> kvPairs, ConfigCheckFunc func)
        {
            bool all_ok = true;

            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSceneConfig.Field_Name_id) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvSceneConfig.Field_Name_id], ref id);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSceneConfig.Field_Name_terrain_file_path) && ConfigUtil.Str2Str(kvPairs[FieldName_CsvSceneConfig.Field_Name_terrain_file_path], ref terrain_file_path);
            if (all_ok && null != func)
            {
                all_ok &= func(this);
            }
            return(all_ok);
        }
Exemplo n.º 3
0
        public bool Init(Dictionary <string, string> kvPairs, ConfigCheckFunc func)
        {
            bool all_ok = true;

            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectSearcherConfig.Field_Name_id) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectSearcherConfig.Field_Name_id], ref id);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectSearcherConfig.Field_Name_filter_id) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectSearcherConfig.Field_Name_filter_id], ref filter_id);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectSearcherConfig.Field_Name_effect_ids) && ConfigUtil.Str2Vec(kvPairs[FieldName_CsvEffectSearcherConfig.Field_Name_effect_ids], ref effect_ids);
            if (all_ok && null != func)
            {
                all_ok &= func(this);
            }
            return(all_ok);
        }
Exemplo n.º 4
0
        public bool Init(Dictionary <string, string> kvPairs, ConfigCheckFunc func)
        {
            bool all_ok = true;

            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectScriptConfig.Field_Name_id) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectScriptConfig.Field_Name_id], ref id);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectScriptConfig.Field_Name_class_name) && ConfigUtil.Str2Str(kvPairs[FieldName_CsvEffectScriptConfig.Field_Name_class_name], ref class_name);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectScriptConfig.Field_Name_script_param) && ConfigUtil.Str2Str(kvPairs[FieldName_CsvEffectScriptConfig.Field_Name_script_param], ref script_param);
            if (all_ok && null != func)
            {
                all_ok &= func(this);
            }
            return(all_ok);
        }
        public bool Init(Dictionary <string, string> kvPairs, ConfigCheckFunc func)
        {
            bool all_ok = true;

            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectForceMoveConfig.Field_Name_id) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectForceMoveConfig.Field_Name_id], ref id);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectForceMoveConfig.Field_Name_ignore_terrian) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectForceMoveConfig.Field_Name_ignore_terrian], ref ignore_terrian);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectForceMoveConfig.Field_Name_result) && ConfigUtil.Str2Str(kvPairs[FieldName_CsvEffectForceMoveConfig.Field_Name_result], ref result);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectForceMoveConfig.Field_Name_anchor) && ConfigUtil.Str2Str(kvPairs[FieldName_CsvEffectForceMoveConfig.Field_Name_anchor], ref anchor);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectForceMoveConfig.Field_Name_angle) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectForceMoveConfig.Field_Name_angle], ref angle);
            if (all_ok && null != func)
            {
                all_ok &= func(this);
            }
            return(all_ok);
        }
Exemplo n.º 6
0
        public bool Init(Dictionary <string, string> kvPairs, ConfigCheckFunc func)
        {
            bool all_ok = true;

            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectGroupConfig.Field_Name_id) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectGroupConfig.Field_Name_id], ref id);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectGroupConfig.Field_Name_begin_effect_ids) && ConfigUtil.Str2Vec(kvPairs[FieldName_CsvEffectGroupConfig.Field_Name_begin_effect_ids], ref begin_effect_ids);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectGroupConfig.Field_Name_end_effect_ids) && ConfigUtil.Str2VecVec(kvPairs[FieldName_CsvEffectGroupConfig.Field_Name_end_effect_ids], ref end_effect_ids);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectGroupConfig.Field_Name_timeline_effect_ids) && ConfigUtil.Str2VecVec(kvPairs[FieldName_CsvEffectGroupConfig.Field_Name_timeline_effect_ids], ref timeline_effect_ids);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectGroupConfig.Field_Name_need_guide) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectGroupConfig.Field_Name_need_guide], ref need_guide);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectGroupConfig.Field_Name_can_cancel_guide) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectGroupConfig.Field_Name_can_cancel_guide], ref can_cancel_guide);
            if (all_ok && null != func)
            {
                all_ok &= func(this);
            }
            return(all_ok);
        }
Exemplo n.º 7
0
        public bool Init(Dictionary <string, string> kvPairs, ConfigCheckFunc func)
        {
            bool all_ok = true;

            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectAttrsConfig.Field_Name_id) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectAttrsConfig.Field_Name_id], ref id);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectAttrsConfig.Field_Name_base_attrs) && ConfigUtil.Str2VecVec(kvPairs[FieldName_CsvEffectAttrsConfig.Field_Name_base_attrs], ref base_attrs);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectAttrsConfig.Field_Name_extra_attrs) && ConfigUtil.Str2VecVec(kvPairs[FieldName_CsvEffectAttrsConfig.Field_Name_extra_attrs], ref extra_attrs);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectAttrsConfig.Field_Name_percent_attrs) && ConfigUtil.Str2VecVec(kvPairs[FieldName_CsvEffectAttrsConfig.Field_Name_percent_attrs], ref percent_attrs);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectAttrsConfig.Field_Name_hold_time_ms) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectAttrsConfig.Field_Name_hold_time_ms], ref hold_time_ms);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectAttrsConfig.Field_Name_unique_id) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectAttrsConfig.Field_Name_unique_id], ref unique_id);
            if (all_ok && null != func)
            {
                all_ok &= func(this);
            }
            return(all_ok);
        }
Exemplo n.º 8
0
        public bool Init(Dictionary <string, string> kvPairs, ConfigCheckFunc func)
        {
            bool all_ok = true;

            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillConfig.Field_Name_id) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvSkillConfig.Field_Name_id], ref id);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillConfig.Field_Name_name) && ConfigUtil.Str2Str(kvPairs[FieldName_CsvSkillConfig.Field_Name_name], ref name);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillConfig.Field_Name_is_normal_attack) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvSkillConfig.Field_Name_is_normal_attack], ref is_normal_attack);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillConfig.Field_Name_use_way) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvSkillConfig.Field_Name_use_way], ref use_way);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillConfig.Field_Name_target_relations) && ConfigUtil.Str2Vec(kvPairs[FieldName_CsvSkillConfig.Field_Name_target_relations], ref target_relations);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillConfig.Field_Name_target_types) && ConfigUtil.Str2Vec(kvPairs[FieldName_CsvSkillConfig.Field_Name_target_types], ref target_types);
            if (all_ok && null != func)
            {
                all_ok &= func(this);
            }
            return(all_ok);
        }
        public bool Init(Dictionary <string, string> kvPairs, ConfigCheckFunc func)
        {
            bool all_ok = true;

            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectFilterConfig.Field_Name_id) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectFilterConfig.Field_Name_id], ref id);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectFilterConfig.Field_Name_limit_num) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectFilterConfig.Field_Name_limit_num], ref limit_num);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectFilterConfig.Field_Name_limit_num_priority) && ConfigUtil.Str2Str(kvPairs[FieldName_CsvEffectFilterConfig.Field_Name_limit_num_priority], ref limit_num_priority);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectFilterConfig.Field_Name_unit_types) && ConfigUtil.Str2Str(kvPairs[FieldName_CsvEffectFilterConfig.Field_Name_unit_types], ref unit_types);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectFilterConfig.Field_Name_relations) && ConfigUtil.Str2Str(kvPairs[FieldName_CsvEffectFilterConfig.Field_Name_relations], ref relations);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectFilterConfig.Field_Name_anchor) && ConfigUtil.Str2Str(kvPairs[FieldName_CsvEffectFilterConfig.Field_Name_anchor], ref anchor);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectFilterConfig.Field_Name_shape_circle) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvEffectFilterConfig.Field_Name_shape_circle], ref shape_circle);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectFilterConfig.Field_Name_shape_rect) && ConfigUtil.Str2Vec(kvPairs[FieldName_CsvEffectFilterConfig.Field_Name_shape_rect], ref shape_rect);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvEffectFilterConfig.Field_Name_shape_sector) && ConfigUtil.Str2Vec(kvPairs[FieldName_CsvEffectFilterConfig.Field_Name_shape_sector], ref shape_sector);
            if (all_ok && null != func)
            {
                all_ok &= func(this);
            }
            return(all_ok);
        }
Exemplo n.º 10
0
        public bool Init(Dictionary <string, string> kvPairs, ConfigCheckFunc func)
        {
            bool all_ok = true;

            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillLevelConfig.Field_Name_id) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvSkillLevelConfig.Field_Name_id], ref id);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillLevelConfig.Field_Name_level) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvSkillLevelConfig.Field_Name_level], ref level);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillLevelConfig.Field_Name_preparing_span) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvSkillLevelConfig.Field_Name_preparing_span], ref preparing_span);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillLevelConfig.Field_Name_releasing_span) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvSkillLevelConfig.Field_Name_releasing_span], ref releasing_span);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillLevelConfig.Field_Name_lasting_span) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvSkillLevelConfig.Field_Name_lasting_span], ref lasting_span);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillLevelConfig.Field_Name_comsume_mp) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvSkillLevelConfig.Field_Name_comsume_mp], ref comsume_mp);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillLevelConfig.Field_Name_cd) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvSkillLevelConfig.Field_Name_cd], ref cd);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillLevelConfig.Field_Name_cast_distance) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvSkillLevelConfig.Field_Name_cast_distance], ref cast_distance);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillLevelConfig.Field_Name_can_move) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvSkillLevelConfig.Field_Name_can_move], ref can_move);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvSkillLevelConfig.Field_Name_effect_ids) && ConfigUtil.Str2Vec(kvPairs[FieldName_CsvSkillLevelConfig.Field_Name_effect_ids], ref effect_ids);
            if (all_ok && null != func)
            {
                all_ok &= func(this);
            }
            return(all_ok);
        }
Exemplo n.º 11
0
        public bool Init(Dictionary <string, string> kvPairs, ConfigCheckFunc func)
        {
            bool all_ok = true;

            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvLogConfig.Field_Name_id) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvLogConfig.Field_Name_id], ref id);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvLogConfig.Field_Name_alsoWritetoMe) && ConfigUtil.Str2Vec(kvPairs[FieldName_CsvLogConfig.Field_Name_alsoWritetoMe], ref alsoWritetoMe);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvLogConfig.Field_Name_logger_type) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvLogConfig.Field_Name_logger_type], ref logger_type);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvLogConfig.Field_Name_name) && ConfigUtil.Str2Str(kvPairs[FieldName_CsvLogConfig.Field_Name_name], ref name);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvLogConfig.Field_Name_log_level) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvLogConfig.Field_Name_log_level], ref log_level);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvLogConfig.Field_Name_save_file) && ConfigUtil.Str2Str(kvPairs[FieldName_CsvLogConfig.Field_Name_save_file], ref save_file);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvLogConfig.Field_Name_rorating_max_size) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvLogConfig.Field_Name_rorating_max_size], ref rorating_max_size);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvLogConfig.Field_Name_rorating_max_files) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvLogConfig.Field_Name_rorating_max_files], ref rorating_max_files);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvLogConfig.Field_Name_daily_hour) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvLogConfig.Field_Name_daily_hour], ref daily_hour);
            all_ok = all_ok && kvPairs.ContainsKey(FieldName_CsvLogConfig.Field_Name_daily_min) && ConfigUtil.Str2BaseValue(kvPairs[FieldName_CsvLogConfig.Field_Name_daily_min], ref daily_min);
            if (all_ok && null != func)
            {
                all_ok &= func(this);
            }
            return(all_ok);
        }