Skip to content

Commit 13a2e82

Browse files
committed
[增加]1. 增加文件名的记录
1 parent 616eb51 commit 13a2e82

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ProtoExport/MessageHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public static MessageInfoList Parse(string proto, string fileName, string filePa
2929
{
3030
OutputPath = Path.Combine(filePath, fileName),
3131
ModuleName = packageMatch.Groups[1].Value,
32+
FileName = fileName,
3233
};
3334

3435
// 使用正则表达式提取module

ProtoExport/MessageInfo.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ public class MessageInfoList
77
/// </summary>
88
public ushort Module { get; set; }
99

10+
/// <summary>
11+
/// 文件名
12+
/// </summary>
13+
public string FileName { get; set; }
14+
1015
/// <summary>
1116
/// 模块名
1217
/// </summary>

0 commit comments

Comments
 (0)