Exemple #1
0
        private void CreateFile(string outPath, string content)
        {
            outPath = GameFramework.Utility.Path.GetRegularPath(outPath);

            ToolsHelper.SaveFile(outPath, content, false);
            AssetDatabase.Refresh();
        }
        private void CreateItemView(string modName, string itemName, CompCollector collector)
        {
            string outPath = Path.GetFullPath($"Assets/Scripts/Hotfix/Module/{modName}/Item/View/{itemName}View.cs");

            outPath = GameFramework.Utility.Path.GetRegularPath(outPath);

            ToolsHelper.SaveFile(outPath, getItemViewCodeStr(modName, itemName, collector));
            AssetDatabase.Refresh();
        }
        private void CreateItem(string modName, string itemName)
        {
            string outPath = Path.GetFullPath($"Assets/Scripts/Hotfix/Module/{modName}/Item/{itemName}.cs");

            outPath = GameFramework.Utility.Path.GetRegularPath(outPath);

            ToolsHelper.SaveFile(outPath, getItemCodeStr(modName, itemName), false);
            AssetDatabase.Refresh();
        }
Exemple #4
0
        private void CreateData(string entityName)
        {
            string outPath = Path.GetFullPath($"{path_entity}/Entity/{entityName}/EntityData_{entityName}.cs");

            outPath = GameFramework.Utility.Path.GetRegularPath(outPath);

            ToolsHelper.SaveFile(outPath, getDataCodeStr(entityName), false);
            AssetDatabase.Refresh();
        }
Exemple #5
0
        private void CreateLogicView(string entityName, CompCollector collector)
        {
            string outPath = Path.GetFullPath($"{path_entity}/Entity/{entityName}/EntityView_{entityName}.cs");

            outPath = GameFramework.Utility.Path.GetRegularPath(outPath);

            ToolsHelper.SaveFile(outPath, getViewCodeStr(entityName, collector));
            AssetDatabase.Refresh();
        }