mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-20 10:24:19 +00:00
chore[gdscript]: dictionary generic type support
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user