mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
add inverse godot types map to DeckType
This commit is contained in:
parent
03300438c1
commit
f963897cf0
1 changed files with 8 additions and 0 deletions
|
@ -29,6 +29,14 @@ const GODOT_TYPES_MAP := {
|
|||
Types.DICTIONARY: TYPE_DICTIONARY,
|
||||
}
|
||||
|
||||
const INVERSE_GODOT_TYPES_MAP := {
|
||||
TYPE_BOOL: Types.BOOL,
|
||||
TYPE_FLOAT: Types.NUMERIC,
|
||||
TYPE_STRING: Types.STRING,
|
||||
TYPE_ARRAY: Types.ARRAY,
|
||||
TYPE_DICTIONARY: Types.DICTIONARY,
|
||||
}
|
||||
|
||||
|
||||
static func can_convert(from: Types, to: Types) -> bool:
|
||||
if from == to:
|
||||
|
|
Loading…
Reference in a new issue