From d1d28a0692d955ce11e366671a9b07061d583c5d Mon Sep 17 00:00:00 2001 From: walon Date: Fri, 29 Oct 2021 12:28:02 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E7=94=9F=E6=88=90=E7=9A=84c#=E7=B1=BB=E4=B8=AD?= =?UTF-8?q?=E7=9A=84partial=EF=BC=8C=E7=94=A8=E4=B8=8D=E4=B8=8A=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Luban.Server/Templates/config/cs_bin/bean.tpl | 2 +- src/Luban.Server/Templates/config/cs_json/tables.tpl | 2 +- src/Luban.Server/Templates/config/cs_unity_json/bean.tpl | 2 +- src/Luban.Server/Templates/config/cs_unity_json/tables.tpl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Luban.Server/Templates/config/cs_bin/bean.tpl b/src/Luban.Server/Templates/config/cs_bin/bean.tpl index 8c69a04..d7a08d8 100644 --- a/src/Luban.Server/Templates/config/cs_bin/bean.tpl +++ b/src/Luban.Server/Templates/config/cs_bin/bean.tpl @@ -16,7 +16,7 @@ namespace {{x.namespace_with_top_module}} /// {{x.escape_comment}} /// {{~end~}} -public {{x.cs_class_modifier}} partial class {{name}} : {{if parent_def_type}} {{x.parent}} {{else}} Bright.Config.BeanBase {{end}} +public {{x.cs_class_modifier}} class {{name}} : {{if parent_def_type}} {{x.parent}} {{else}} Bright.Config.BeanBase {{end}} { public {{name}}(ByteBuf _buf) {{if parent_def_type}} : base(_buf) {{end}} { diff --git a/src/Luban.Server/Templates/config/cs_json/tables.tpl b/src/Luban.Server/Templates/config/cs_json/tables.tpl index 2050c00..1a2c8d0 100644 --- a/src/Luban.Server/Templates/config/cs_json/tables.tpl +++ b/src/Luban.Server/Templates/config/cs_json/tables.tpl @@ -8,7 +8,7 @@ using System.Text.Json; namespace {{namespace}} { -public sealed partial class {{name}} +public sealed class {{name}} { {{~for table in tables ~}} {{~if table.comment != '' ~}} diff --git a/src/Luban.Server/Templates/config/cs_unity_json/bean.tpl b/src/Luban.Server/Templates/config/cs_unity_json/bean.tpl index e6053e1..7ef47ec 100644 --- a/src/Luban.Server/Templates/config/cs_unity_json/bean.tpl +++ b/src/Luban.Server/Templates/config/cs_unity_json/bean.tpl @@ -18,7 +18,7 @@ namespace {{x.namespace_with_top_module}} /// {{x.escape_comment}} /// {{~end~}} -public {{x.cs_class_modifier}} partial class {{name}} : {{if parent_def_type}} {{parent}} {{else}} Bright.Config.BeanBase {{end}} +public {{x.cs_class_modifier}} class {{name}} : {{if parent_def_type}} {{parent}} {{else}} Bright.Config.BeanBase {{end}} { public {{name}}(JSONNode _json) {{if parent_def_type}} : base(_json) {{end}} { diff --git a/src/Luban.Server/Templates/config/cs_unity_json/tables.tpl b/src/Luban.Server/Templates/config/cs_unity_json/tables.tpl index 2dd60fd..57fbc4f 100644 --- a/src/Luban.Server/Templates/config/cs_unity_json/tables.tpl +++ b/src/Luban.Server/Templates/config/cs_unity_json/tables.tpl @@ -8,7 +8,7 @@ using SimpleJSON; namespace {{namespace}} { -public sealed partial class {{name}} +public sealed class {{name}} { {{~for table in tables ~}} {{~if table.comment != '' ~}}