summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Data
diff options
context:
space:
mode:
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Data')
-rw-r--r--WorldlineKeepers/Assets/Scripts/Data/DataManager_Data.cs2
-rw-r--r--WorldlineKeepers/Assets/Scripts/Data/DataManager_Load.cs4
-rw-r--r--WorldlineKeepers/Assets/Scripts/Data/Metadata/FileKey.cs26
-rw-r--r--WorldlineKeepers/Assets/Scripts/Data/Metadata/Filelist.cs4
4 files changed, 14 insertions, 22 deletions
diff --git a/WorldlineKeepers/Assets/Scripts/Data/DataManager_Data.cs b/WorldlineKeepers/Assets/Scripts/Data/DataManager_Data.cs
index d16c785..6e12d6e 100644
--- a/WorldlineKeepers/Assets/Scripts/Data/DataManager_Data.cs
+++ b/WorldlineKeepers/Assets/Scripts/Data/DataManager_Data.cs
@@ -11,7 +11,7 @@ namespace WK.Data
public partial class DataManager : Singleton<DataManager>
{
// 文件列表
- private Dictionary<string/*EFileKey*/, MetadataFileDescriptor> m_Filelist = new Dictionary<string, MetadataFileDescriptor>();
+ private Dictionary<string/*EFileKey*/, FileDescriptor> m_Filelist = new Dictionary<string, FileDescriptor>();
private Dictionary<string/*uid*/, CharacterStatsMetadata> m_CharacterStatsMetadata = new Dictionary<string, CharacterStatsMetadata>();
private Dictionary<string/*uid*/, BuffMetadata> m_BuffMetadata = new Dictionary<string, BuffMetadata>();
diff --git a/WorldlineKeepers/Assets/Scripts/Data/DataManager_Load.cs b/WorldlineKeepers/Assets/Scripts/Data/DataManager_Load.cs
index aab90a9..b7fb0b9 100644
--- a/WorldlineKeepers/Assets/Scripts/Data/DataManager_Load.cs
+++ b/WorldlineKeepers/Assets/Scripts/Data/DataManager_Load.cs
@@ -33,8 +33,8 @@ namespace WK.Data
{
TextAsset text = ResourceManager.Instance.LoadAsset<TextAsset>(StaticDefine.FileList);
string content = text.text;
- List<MetadataFileDescriptor> files = CSVReader.Read<MetadataFileDescriptor>(content);
- CSVReader.ReadDictionary<string, MetadataFileDescriptor>(m_Filelist, content, "key");
+ List<FileDescriptor> files = CSVReader.Read<FileDescriptor>(content);
+ CSVReader.ReadDictionary<string, FileDescriptor>(m_Filelist, content, "key");
Debug.Log(m_Filelist.Count);
}
diff --git a/WorldlineKeepers/Assets/Scripts/Data/Metadata/FileKey.cs b/WorldlineKeepers/Assets/Scripts/Data/Metadata/FileKey.cs
index 621203e..2fdff3f 100644
--- a/WorldlineKeepers/Assets/Scripts/Data/Metadata/FileKey.cs
+++ b/WorldlineKeepers/Assets/Scripts/Data/Metadata/FileKey.cs
@@ -1,22 +1,14 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
+// 鑷姩鐢熸垚
namespace WK.Data
{
+ public enum EFileKey
+ {
+ none = 0,
- /// <summary>
- /// 默认文件enum,编号无所谓,名字不可更改。方便找文件
- /// </summary>
- public enum EFileKey
- {
- none = 0,
-
- default_stats,
- default_buffs,
- default_items,
-
- all
- }
+ default_stats,
+ default_buffs,
+ default_items,
+ all
+ }
}
diff --git a/WorldlineKeepers/Assets/Scripts/Data/Metadata/Filelist.cs b/WorldlineKeepers/Assets/Scripts/Data/Metadata/Filelist.cs
index b91619b..c4ae257 100644
--- a/WorldlineKeepers/Assets/Scripts/Data/Metadata/Filelist.cs
+++ b/WorldlineKeepers/Assets/Scripts/Data/Metadata/Filelist.cs
@@ -26,9 +26,9 @@ namespace WK.Data
}
/// <summary>
- /// 元文件描述符
+ /// 文件描述符
/// </summary>
- public class MetadataFileDescriptor
+ public class FileDescriptor
{
public string key;
public FileType type;