void AddBuildConfig(BuildRuleConfig config) { BuildRuleConfig data = config.Clone() as BuildRuleConfig; Config.Add(data); if (data.IsCopyDirectory) { CopyDirectory.Add(data.Name); } if (!AllDirectory.Contains(data.Name)) { AllDirectory.Add(data.Name); } }
public BuildAssetsWithPath(DLCItem dlc, BuildRuleConfig config) : base(dlc, config) { }
public BuildAssetsWithDirectroy(DLCItem dlc, BuildRuleConfig config) : base(dlc, config) { }
public BuildRule(DLCItem dlc, BuildRuleConfig config) { DLCItem = dlc; Config = config; }
// 根据文件夹获得名称 static Tuple <string, string> GetABNameDirectory(DLCItem item, BuildRuleConfig data) { string source = data.Name.ToLower(); return(new Tuple <string, string>((item.Name + "_" + source).ToLower(), source.ToLower())); }
// 根据文件夹以及文件名生成Bundle名称 static Tuple <string, string> GetABNameFile(DLCItem item, BuildRuleConfig data, string filePath) { string source = (data.Name + "/" + Path.GetFileNameWithoutExtension(filePath)).ToLower(); return(new Tuple <string, string>((item.Name + "_" + source).ToLower(), source.ToLower())); }