From 2ba6a6056fd80079895a4cdf24928f22e3977123 Mon Sep 17 00:00:00 2001 From: davyxu Date: Thu, 29 Oct 2020 15:18:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9C#=E7=94=9F=E6=88=90=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E9=81=8D=E5=8E=86=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen/csharp/text.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gen/csharp/text.go b/gen/csharp/text.go index 79051ab..99b3e8f 100644 --- a/gen/csharp/text.go +++ b/gen/csharp/text.go @@ -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 callback) { {{range .Structs}} - meta.RegisterMeta(new MetaInfo + callback(new MetaInfo { Type = typeof({{.Name}}), ID = {{StructMsgID .}},