private void SaveBatch()
        {
            BuilderManager.data.SetBatch(batchIndex, batch);
            batch = null;

            Close();
        }
        public static void BuildBatch(BuildBatch batch)
        {
            isBuilding = true;

            var configs = data.Configs.Where(config => batch.ConfigIndices.Contains(config.dataIndex)).ToList();

            KickBuild(configs);
        }
        private void QueueBatch(BuildBatch batch)
        {
            string excludedConfigs = "";

            foreach (var configIndex in batch.ConfigIndices)
            {
                if (!BuilderManager.buildQueue.Contains(configIndex))
                {
                    BuilderManager.buildQueue.Add(configIndex);
                }

                else
                {
                    excludedConfigs += " " + BuilderManager.data.Configs[configIndex].name + ", ";
                }
            }

            if (excludedConfigs != "")
            {
                EditorUtility.DisplayDialog("Builder", "The following configurations were not added because they are already queued: " + excludedConfigs, "Ok");
            }
        }
 void OnDisable()
 {
     batch = null;
 }
示例#5
0
        public void SetBatch(int index, BuildBatch batch)
        {
            batches[index] = batch;

            Save();
        }