少年修仙传客户端基础资源
client_linchunjie
2019-06-06 f2b0b994d065d6ed962c9c8d9edd7594ad3ecd00
3335 新增查找法宝任务名工具
2个文件已添加
63 ■■■■■ 已修改文件
Assets/Editor/Tool/PrintTaskClueNamesTool.cs 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/PrintTaskClueNamesTool.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/PrintTaskClueNamesTool.cs
New file
@@ -0,0 +1,51 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Text;
public static class PrintTaskClueNamesTool
{
    static string folderPath = string.Empty;
    [MenuItem("策划工具/法宝任务名称")]
    static void Start()
    {
        TaskListConfig.Init(true);
        TASKINFOConfig.Init(true);
        folderPath = EditorUtility.OpenFolderPanel("选择文件夹", folderPath, string.Empty);
        if (string.IsNullOrEmpty(folderPath))
        {
            Debug.LogError("未选择正确的文件夹");
            return;
        }
        var filePath = folderPath + "/" + "taskNames.txt";
        using (var fs = new FileStream(filePath, FileMode.Create, FileAccess.Write))
        {
            using (var sw = new StreamWriter(fs, Encoding.UTF8))
            {
                var configs = TaskListConfig.GetValues();
                foreach (var config in configs)
                {
                    if (config.FabaoID != 0 && config.clue != 0)
                    {
                        var taskInfoConfig = TASKINFOConfig.Get(config.TaskName);
                        if (taskInfoConfig != null)
                        {
                            sw.WriteLine("TaskList       " + config.TaskID + "       " + "TASKINFO:" + config.TaskName + "       " + taskInfoConfig.show_writing);
                        }
                        else
                        {
                            sw.WriteLine("TaskList       " + config.TaskID + "       " + "TASKINFO       " + "没有key:" + config.TaskName);
                        }
                    }
                }
            }
        }
    }
}
Assets/Editor/Tool/PrintTaskClueNamesTool.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 3d1c96dbd1caee84bb5f0f85d000c371
timeCreated: 1559785111
licenseType: Pro
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant: