コード例 #1
0
    public static void BuildForDeploy(bool rebuild)
    {
        string outputPath = BuildConfiger.InterpretedOutputPath;

        if (!Directory.Exists(outputPath))
        {
            Directory.CreateDirectory(outputPath);
        }

        // build bundles
        if (rebuild)
        {
            // rebuild ship info
            BMDataAccessor.BundleShipInfos.Clear();
            BuildHelper.RebuildAll();
        }
        else
        {
            BuildHelper.BuildAll();
        }
        BuildHelper.ExportBMDatasToOutput();
        BuildHelper.ExportHudConfig();
        BuildHelper.ExportSceneLoadConfig();

        // build all levels
        BuildHelper.BuildAllLevels();

        // update Item Priority Window
        if (ItemPriorityEditor.IsOpen)
        {
            ItemPriorityEditor.Instance.LoadBundleShipInfoFile();
        }
        else
        {
            EditorWindow.GetWindow <ItemPriorityEditor>().LoadBundleShipInfoFile();
            EditorWindow.GetWindow <ItemPriorityEditor>().SortByTreeAndPriority();
            EditorWindow.GetWindow <ItemPriorityEditor>().SaveBundleShipInfoFile();
            EditorWindow.GetWindow <ItemPriorityEditor>().Close();
        }
    }
コード例 #2
0
ファイル: BundleTreeWin.cs プロジェクト: yqxflong/mh_3drpg
 void BuildAllLevels()
 {
     BuildHelper.BuildAllLevels();
 }