From 820a6af1262e80ba04c42f8f6a286e67047fca95 Mon Sep 17 00:00:00 2001 From: davyxu Date: Wed, 28 Oct 2020 16:15:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8DMsgID=3D0=E7=9A=84=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=B3=A8=E5=86=8C=E4=B8=8D=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen/csharp/text.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen/csharp/text.go b/gen/csharp/text.go index 1b5aec5..79051ab 100644 --- a/gen/csharp/text.go +++ b/gen/csharp/text.go @@ -61,14 +61,14 @@ namespace {{.PackageName}} public static class MessageMetaRegister { public static void RegisterGeneratedMeta(MessageMeta meta) - { {{range .Structs}}{{ if IsMessage .}} + { {{range .Structs}} meta.RegisterMeta(new MetaInfo { Type = typeof({{.Name}}), ID = {{StructMsgID .}}, SourcePeer = "{{GetSourcePeer .}}", TargetPeer = "{{GetTargetPeer .}}", - });{{end}} {{end}} + });{{end}} } } {{end}}