From 8f9897cd406c9d9bdf5981a828dbc49f521b933c Mon Sep 17 00:00:00 2001 From: godotg Date: Sun, 15 Oct 2023 23:01:45 +0800 Subject: [PATCH] test[golang]: compatible field of inside protocol class --- .../com/zfoo/protocol/generate/GenerateTesting.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/protocol/src/test/java/com/zfoo/protocol/generate/GenerateTesting.java b/protocol/src/test/java/com/zfoo/protocol/generate/GenerateTesting.java index 04ab1927b..6365311d7 100644 --- a/protocol/src/test/java/com/zfoo/protocol/generate/GenerateTesting.java +++ b/protocol/src/test/java/com/zfoo/protocol/generate/GenerateTesting.java @@ -34,7 +34,18 @@ public void generateAllProtocols() { var generateLanguages = op.getGenerateLanguages(); // generate the jsProtocol folder and its corresponding js protocol file in the current protocol directory + generateLanguages.add(CodeLanguage.Cpp); generateLanguages.add(CodeLanguage.Go); + generateLanguages.add(CodeLanguage.JavaScript); + generateLanguages.add(CodeLanguage.TypeScript); + generateLanguages.add(CodeLanguage.Lua); + generateLanguages.add(CodeLanguage.CSharp); + generateLanguages.add(CodeLanguage.GdScript); + generateLanguages.add(CodeLanguage.Python); + + // Protobuf needs to specify protobuf.xml to generate a protocol + op.setProtocolParam("protobuf=protobuf.xml"); + generateLanguages.add(CodeLanguage.Protobuf); // Initialize and then generate the protocol ProtocolManager.initProtocolAuto(Set.of(ComplexObject.class, NormalObject.class, SimpleObject.class, EmptyObject.class, VeryBigObject.class), op);