Skip to content

Commit

Permalink
修改C#生成消息遍历实现
Browse files Browse the repository at this point in the history
  • Loading branch information
davyxu committed Oct 29, 2020
1 parent 820a6af commit 2ba6a60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gen/csharp/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ namespace {{.PackageName}}
{{end}}
{{if .RegEntry}}
public static class MessageMetaRegister
public static class MessageVisitor
{
public static void RegisterGeneratedMeta(MessageMeta meta)
public static void Visit(Action<MetaInfo> callback)
{ {{range .Structs}}
meta.RegisterMeta(new MetaInfo
callback(new MetaInfo
{
Type = typeof({{.Name}}),
ID = {{StructMsgID .}},
Expand Down

0 comments on commit 2ba6a60

Please sign in to comment.