コード例 #1
0
        private void SaveBatch()
        {
            BuilderManager.data.SetBatch(batchIndex, batch);
            batch = null;

            Close();
        }
コード例 #2
0
        public static void BuildBatch(BuildBatch batch)
        {
            isBuilding = true;

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

            KickBuild(configs);
        }
コード例 #3
0
        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");
            }
        }
コード例 #4
0
 void OnDisable()
 {
     batch = null;
 }
コード例 #5
0
        public void SetBatch(int index, BuildBatch batch)
        {
            batches[index] = batch;

            Save();
        }