Skip to content

Commit f43b8b8

Browse files
committed
[增加]1. 增加模块名称的解析
1 parent 0b970ef commit f43b8b8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ProtoExport/MessageHelper.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public static MessageInfoList Parse(string proto, string fileName, string filePa
2727

2828
MessageInfoList messageInfo = new MessageInfoList
2929
{
30-
OutputPath = Path.Combine(filePath, fileName)
30+
OutputPath = Path.Combine(filePath, fileName),
31+
ModuleName = packageMatch.Groups[1].Value,
3132
};
3233

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

ProtoExport/MessageInfo.cs

+5
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 ModuleName { get; set; }
14+
1015
/// <summary>
1116
/// 消息列表
1217
/// </summary>

0 commit comments

Comments
 (0)