Envoi sur GitHub du projet updated

This commit is contained in:
Maurane
2026-01-07 12:47:48 +01:00
parent 34e887afd2
commit 3f1863f0c1
434 changed files with 16021 additions and 5685 deletions
+35 -2
View File
@@ -22,8 +22,32 @@ const SUPPORTED_BUILTIN_TYPES = [
static var resolve_method_error: Error = OK
static func is_supported(thing) -> bool:
return typeof(thing) in SUPPORTED_BUILTIN_TYPES
static func is_supported(thing, with_method: String = "") -> bool:
if not typeof(thing) in SUPPORTED_BUILTIN_TYPES: return false
# If given a Dictionary and a method then make sure it's a known Dictionary method.
if typeof(thing) == TYPE_DICTIONARY and with_method != "":
return with_method in [
&"clear",
&"duplicate",
&"erase",
&"find_key",
&"get",
&"get_or_add",
&"has",
&"has_all",
&"hash",
&"is_empty",
&"is_read_only",
&"keys",
&"make_read_only",
&"merge",
&"merged",
&"recursive_equal",
&"size",
&"values"]
return true
static func resolve_property(builtin, property: String):
@@ -407,6 +431,15 @@ static func resolve_vector2_property(vector: Vector2, property: String):
"DOWN":
return Vector2.DOWN
"DOWN_LEFT":
return Vector2(-1, 1)
"DOWN_RIGHT":
return Vector2(1, 1)
"UP_LEFT":
return Vector2(-1, -1)
"UP_RIGHT":
return Vector2(1, -1)
return vector[property]