Beispiel #1
0
        private static void EnsureConfigFile()
        {
            if (!File.Exists(ConfFilePath))
            {
                KTabFile confFile = new KTabFile();
                confFile.NewColumn("Key");
                confFile.NewColumn("Value");
                confFile.NewColumn("Comment");


                foreach (string[] strArr in DefaultConfigs)
                {
                    int row = confFile.NewRow();
                    confFile.SetValue <string>(row, "Key", strArr[0]);
                    confFile.SetValue <string>(row, "Value", strArr[1]);
                    confFile.SetValue <string>(row, "Comment", strArr[2]);
                }
                confFile.Save(ConfFilePath);

                Logger.Log("新建CosmosEngine配置文件: {0}", ConfFilePath);
                AssetDatabase.Refresh();
            }

            ConfFile = KTabFile.LoadFromFile(ConfFilePath);
        }
        public void WriteVersion()
        {
            string path = GetBuildVersionTab();
            // MakeSureExportPath(VerCtrlInfo.VerFile, EditorUserBuildSettings.activeBuildTarget);
            KTabFile tabFile = new KTabFile();
            tabFile.NewColumn("AssetPath");
            tabFile.NewColumn("AssetMD5");
            tabFile.NewColumn("AssetDateTime");
            tabFile.NewColumn("ChangeCount");

            foreach (var node in StoreBuildVersion)
            {
                int row = tabFile.NewRow();
                tabFile.SetValue(row, "AssetPath", node.Key);
                tabFile.SetValue(row, "AssetMD5", node.Value.MD5);
                tabFile.SetValue(row, "AssetDateTime", node.Value.DateTime);
                tabFile.SetValue(row, "ChangeCount", node.Value.ChangeCount);
            }

            tabFile.Save(path);
        }
        public void WriteVersion()
        {
            string path = GetBuildVersionTab();
                // MakeSureExportPath(VerCtrlInfo.VerFile, EditorUserBuildSettings.activeBuildTarget);
            KTabFile tabFile = new KTabFile();
            tabFile.NewColumn("AssetPath");
            tabFile.NewColumn("AssetMD5");
            tabFile.NewColumn("AssetDateTime");
            tabFile.NewColumn("ChangeCount");

            foreach (var node in StoreBuildVersion)
            {
                int row = tabFile.NewRow();
                tabFile.SetValue(row, "AssetPath", node.Key);
                tabFile.SetValue(row, "AssetMD5", node.Value.MD5);
                tabFile.SetValue(row, "AssetDateTime", node.Value.DateTime);
                tabFile.SetValue(row, "ChangeCount", node.Value.ChangeCount);
            }

            tabFile.Save(path);
        }
Beispiel #4
0
        private static void EnsureConfigFile()
        {
            if (!File.Exists(ConfFilePath))
            {
                KTabFile confFile = new KTabFile();
                confFile.NewColumn("Key");
                confFile.NewColumn("Value");
                confFile.NewColumn("Comment");


                foreach (string[] strArr in DefaultConfigs)
                {
                    int row = confFile.NewRow();
                    confFile.SetValue<string>(row, "Key", strArr[0]);
                    confFile.SetValue<string>(row, "Value", strArr[1]);
                    confFile.SetValue<string>(row, "Comment", strArr[2]);
                }
                confFile.Save(ConfFilePath);

                Logger.Log("新建CosmosEngine配置文件: {0}", ConfFilePath);
                AssetDatabase.Refresh();
            }

            ConfFile = KTabFile.LoadFromFile(ConfFilePath);
        }