From d5184e136ebcc3f449651c87d094471d14e091e2 Mon Sep 17 00:00:00 2001 From: walon Date: Wed, 16 Feb 2022 17:24:26 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91config?= =?UTF-8?q?=E6=96=B0=E5=A2=9Egen=5Ftype=E7=B1=BB=E5=9E=8B=20code=5Fcs=5Fun?= =?UTF-8?q?ity=5Fbin=EF=BC=8C=E7=94=9F=E6=88=90=E4=BB=A3=E7=A0=81=E4=B8=8E?= =?UTF-8?q?code=5Fcs=5Fbin=E5=9F=BA=E6=9C=AC=E7=9B=B8=E5=90=8C=EF=BC=8C?= =?UTF-8?q?=E9=99=A4=E4=BA=86=E4=BD=BF=E7=94=A8=20UnityEngine.Vector?= =?UTF-8?q?=E5=A4=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Luban.Job.Cfg/Source/Generate/CsCodeBinRender.cs | 1 + src/Luban.Job.Cfg/Source/JobController.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/Luban.Job.Cfg/Source/Generate/CsCodeBinRender.cs b/src/Luban.Job.Cfg/Source/Generate/CsCodeBinRender.cs index f70d73e..9f8193f 100644 --- a/src/Luban.Job.Cfg/Source/Generate/CsCodeBinRender.cs +++ b/src/Luban.Job.Cfg/Source/Generate/CsCodeBinRender.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; namespace Luban.Job.Cfg.Generate { [Render("code_cs_bin")] + [Render("code_cs_unity_bin")] class CsCodeBinRender : TemplateCodeRenderBase { protected override string RenderTemplateDir => "cs_bin"; diff --git a/src/Luban.Job.Cfg/Source/JobController.cs b/src/Luban.Job.Cfg/Source/JobController.cs index 80836dc..0afd663 100644 --- a/src/Luban.Job.Cfg/Source/JobController.cs +++ b/src/Luban.Job.Cfg/Source/JobController.cs @@ -117,6 +117,11 @@ namespace Luban.Job.Cfg return false; } + if (options.GenType.Contains("unity")) + { + options.CsUseUnityVectors = true; + } + return true; } }