Ejemplo n.º 1
0
        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);
                        }
                    }
                }
            }
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public GroupReport(bool isEntering, IBuildSetting source) : base(source)
 {
     State = Status.ExitGroup;
     if (isEntering == true)
     {
         State = Status.EnterGroup;
     }
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
            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;
            }
Ejemplo n.º 6
0
 public IReport(IBuildSetting source)
 {
     Source = source;
 }
Ejemplo n.º 7
0
 public void AddPostBuildReport(Status state, string message, IBuildSetting source)
 {
     allReports.Add(new PostBuildReport(state, message, source));
 }
Ejemplo n.º 8
0
 public void AddReport(BuildReport report, IBuildSetting source)
 {
     allReports.Add(new ChildReport(report, source));
 }
Ejemplo n.º 9
0
 public GroupBuildScope(BuildPlayersResult result, IBuildSetting setting)
 {
     this.result  = result;
     this.setting = setting;
     result.AddGroupReport(true, setting);
 }
Ejemplo n.º 10
0
 public PostBuildReport(Status state, string message, IBuildSetting source) : base(source)
 {
     State   = state;
     Message = message;
 }
Ejemplo n.º 11
0
 protected static void AddSetting(IBuildSetting parent, List <IChildBuildSetting> allSettings, IChildBuildSetting setting)
 {
     setting.Parent = parent;
     allSettings.Add(setting);
 }