chore[gdscript]: dictionary generic type support

This commit is contained in:
godotg
2025-04-05 21:57:36 +08:00
parent 9a536fe69e
commit 90626c9d78
2 changed files with 4 additions and 4 deletions
@@ -1,7 +1,7 @@
${protocol_imports}
static var protocols: Dictionary = {}
static var protocolClassMap: Dictionary = {}
static var protocols: Dictionary[int, RefCounted] = {}
static var protocolClassMap: Dictionary[int, Object] = {}
static func initProtocol():
${protocol_manager_registrations}
@@ -6,8 +6,8 @@ const ObjectA = preload("res://zfoogd/packet/ObjectA.gd")
const ObjectB = preload("res://zfoogd/packet/ObjectB.gd")
const SimpleObject = preload("res://zfoogd/packet/SimpleObject.gd")
static var protocols: Dictionary = {}
static var protocolClassMap: Dictionary = {}
static var protocols: Dictionary[int, RefCounted] = {}
static var protocolClassMap: Dictionary[int, Object] = {}
static func initProtocol():
protocols[0] = EmptyObject.EmptyObjectRegistration.new()