mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 08:18:50 +00:00
fix[gdscript]: fix gdscript syntax error
This commit is contained in:
1 parent
548465d032
commit
9895e3c9ec
3 files changed
+13
-3
No files matched your search
@@ -3,7 +3,7 @@ const PROTOCOL_ID = {}
|
||||
{}
|
||||
{}
|
||||
|
||||
func get_class() -> String:
|
||||
func toString() -> String:
|
||||
return "{}"
|
||||
|
||||
static func write(buffer, packet):
|
||||
|
||||
@@ -428,12 +428,20 @@ func writePacketArray(array, protocolId):
|
||||
protocolRegistration.write(self, element)
|
||||
|
||||
func readPacketArray(protocolId):
|
||||
var array = []
|
||||
var protocolRegistration = ProtocolManager.getProtocol(protocolId)
|
||||
var array = Array([], typeof(protocolRegistration), StringName("RefCounted"), protocolRegistration)
|
||||
var size = readInt()
|
||||
if (size > 0):
|
||||
var protocolRegistration = ProtocolManager.getProtocol(protocolId)
|
||||
for index in range(size):
|
||||
array.append(protocolRegistration.read(self))
|
||||
#var a = array.get_typed_class_name()
|
||||
#var b = array.get_typed_script()
|
||||
#var c = array.get_typed_builtin()
|
||||
|
||||
#var typeArray: Array[ObjectA] = []
|
||||
#var aa = typeArray.get_typed_class_name()
|
||||
#var bb = typeArray.get_typed_script()
|
||||
#var cc = typeArray.get_typed_builtin()
|
||||
return array
|
||||
|
||||
func writeIntIntMap(map):
|
||||
|
||||
Reference in new issue
Block a user