Skip to content

Commit a2d98b7

Browse files
committed
refactor(ProtoExport): 修改Post方法参数为LauncherOptions类型
将Post方法的第二个参数从字符串路径改为LauncherOptions对象,提高代码的可扩展性和类型安全性
1 parent d643ece commit a2d98b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ProtoExport/ProtoBuffUnityHelper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ public void Run(MessageInfoList messageInfoList, string outputPath, string names
137137
File.WriteAllText(messageInfoList.OutputPath + ".cs", sb.ToString(), Encoding.UTF8);
138138
}
139139

140-
public void Post(List<MessageInfoList> operationCodeInfo, string launcherOptionsOutputPath)
140+
public void Post(List<MessageInfoList> operationCodeInfo, LauncherOptions launcherOptions)
141141
{
142+
142143
}
143144
}
144145
}

0 commit comments

Comments
 (0)