public static ConfigItem CreateConfigData(ConfigRoleEnum roleEnum, params ConfigRoleEnum[] pathEnum) { ConfigRoleData roleData = (ConfigRoleData)roleEnum; ConfigRoleData[] rolePath = pathEnum.Select((c) => ((ConfigRoleData)c)).ToArray(); ConfigRoleName roleName = roleEnum.GetSymbol(); return(new ArticleRoleConfigData(roleData, roleName, rolePath)); }
public static ConfigItemData CreateConfigItem(ConfigCodeEnum codeEnum, ConfigRoleEnum roleEnum, ConfigGangEnum gangEnum, ConfigTypeEnum typeEnum, ConfigBindEnum bindEnum, TaxingBehaviour typeTaxing, HealthBehaviour typeHealth, SocialBehaviour typeSocial, params ConfigCodeEnum[] pathEnum) { ConfigCodeData codeData = (ConfigCodeData)codeEnum; ConfigRoleData roleData = (ConfigRoleData)roleEnum; ConfigGangData gangData = (ConfigGangData)gangEnum; ConfigTypeData typeData = (ConfigTypeData)typeEnum; ConfigBindData bindData = (ConfigBindData)bindEnum; ConfigCodeData[] codePath = pathEnum.Select((c) => ((ConfigCodeData)c)).ToArray(); ConfigCodeName codeName = codeEnum.GetSymbol(); TaxingBehaviour roleTaxing = typeTaxing; HealthBehaviour roleHealth = typeHealth; SocialBehaviour roleSocial = typeSocial; return(new ConfigItemData(codeData, roleData, gangData, typeData, bindData, roleTaxing, roleHealth, roleSocial, codeName, codePath)); }