diff --git a/protocol/src/main/resources/gdscript/ProtocolManagerTemplate.gd b/protocol/src/main/resources/gdscript/ProtocolManagerTemplate.gd index 8465fbf1..f8ae4f9c 100644 --- a/protocol/src/main/resources/gdscript/ProtocolManagerTemplate.gd +++ b/protocol/src/main/resources/gdscript/ProtocolManagerTemplate.gd @@ -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} diff --git a/protocol/src/test/gdscript/zfoogd/ProtocolManager.gd b/protocol/src/test/gdscript/zfoogd/ProtocolManager.gd index 945efa9c..f260ada6 100644 --- a/protocol/src/test/gdscript/zfoogd/ProtocolManager.gd +++ b/protocol/src/test/gdscript/zfoogd/ProtocolManager.gd @@ -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()