mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-07 10:22:32 +00:00
perf[gdscript]: add class_name to gdscript
This commit is contained in:
@@ -124,7 +124,7 @@ public abstract class GenerateGdUtils {
|
||||
var readObject = readObject(registration);
|
||||
|
||||
var protocolTemplate = StringUtils.bytesToString(IOUtils.toByteArray(ClassUtils.getFileFromClassPath("gdscript/ProtocolTemplate.gd")));
|
||||
protocolTemplate = StringUtils.format(protocolTemplate, includeSubProtocol, classNote, fieldDefinition.trim(), protocolId, writeObject.trim(), readObject.trim());
|
||||
protocolTemplate = StringUtils.format(protocolTemplate, protocolClazzName, protocolId, includeSubProtocol, classNote, fieldDefinition.trim(), writeObject.trim(), readObject.trim());
|
||||
|
||||
var outputPath = StringUtils.format("{}/{}/{}.gd", protocolOutputPath, GenerateProtocolPath.getProtocolPath(protocolId), protocolClazzName);
|
||||
FileUtils.writeStringToFile(new File(outputPath), protocolTemplate, true);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{}
|
||||
{}
|
||||
{}
|
||||
|
||||
class_name {}
|
||||
const PROTOCOL_ID = {}
|
||||
{}
|
||||
{}
|
||||
{}
|
||||
|
||||
static func write(buffer, packet):
|
||||
if (buffer.writePacketFlag(packet)):
|
||||
|
||||
Reference in New Issue
Block a user