少年修仙传客户端基础资源
dabaoji
2025-06-09 8ee0256378cbf5dbc9d76ed10b60b65a844ef4dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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);
                        }
                    }
                }
            }
        }
    }
}