private void AddGroupReport(bool isEntering, IBuildSetting source) { allReports.Add(new GroupReport(isEntering, source)); // Check if source is a Group if (source is GroupBuildSetting) { // Check whether to stack the group GroupBuildSetting groupSetting = (GroupBuildSetting)source; if (groupSetting.IsInEmbeddedFolder == true) { if (isEntering == false) { if (allEmbeddedGroups.Count > 0) { allEmbeddedGroups.RemoveAt(allEmbeddedGroups.Count - 1); } folderNameCache = null; } else { allEmbeddedGroups.Add(groupSetting); if (folderNameCache != null) { folderNameCache = ConcatenateFolders(folderNameCache, groupSetting.FolderName); } } } } }
public string ToString(IBuildSetting setting) { // Append all the text into one StringBuilder builder = new StringBuilder(); GetText method; foreach (Prefill name in names) { if (TextMapper.TryGetValue(name.Type, out method) == true) { builder.Append(method(name.Text, setting)); } } // Remove invalid characters string returnString = builder.ToString(); returnString = RemoveDiacritics(builder, returnString); // Check if this needs to be a slug if (asSlug == true) { returnString = GenerateSlug(returnString); } return(returnString); }
public GroupReport(bool isEntering, IBuildSetting source) : base(source) { State = Status.ExitGroup; if (isEntering == true) { State = Status.EnterGroup; } }
public BuildPlayersResult(RootBuildSetting root, IBuildSetting info) { allReports = new List <IReport>(info.MaxNumberOfResults); allEmbeddedGroups = new List <GroupBuildSetting>(info.MaxNumberOfResults); //StringBuilder builder = new StringBuilder(); //CustomFileName.RemoveDiacritics(builder, PlayerSettings.productName); //AppName = builder.ToString(); Setup(root); }
public ChildReport(BuildReport report, IBuildSetting source) : base(source) { switch (report.summary.result) { case BuildResult.Succeeded: State = Status.Success; break; case BuildResult.Cancelled: State = Status.Cancelled; break; default: State = Status.Error; break; } // Set property Report = report; }
public IReport(IBuildSetting source) { Source = source; }
public void AddPostBuildReport(Status state, string message, IBuildSetting source) { allReports.Add(new PostBuildReport(state, message, source)); }
public void AddReport(BuildReport report, IBuildSetting source) { allReports.Add(new ChildReport(report, source)); }
public GroupBuildScope(BuildPlayersResult result, IBuildSetting setting) { this.result = result; this.setting = setting; result.AddGroupReport(true, setting); }
public PostBuildReport(Status state, string message, IBuildSetting source) : base(source) { State = state; Message = message; }
protected static void AddSetting(IBuildSetting parent, List <IChildBuildSetting> allSettings, IChildBuildSetting setting) { setting.Parent = parent; allSettings.Add(setting); }