2020-11-06 16:57:49 +01:00
|
|
|
extends Node2D
|
|
|
|
|
|
|
|
#var all_types: Array = [
|
|
|
|
# AABB(),
|
|
|
|
# Array(),
|
|
|
|
# Basis(),
|
|
|
|
# Color(),
|
|
|
|
# Dictionary(),
|
|
|
|
# NodePath(),
|
|
|
|
# Plane(),
|
|
|
|
# Quat(),
|
|
|
|
# Rect2(),
|
|
|
|
# String(),
|
|
|
|
# Transform(),
|
|
|
|
# Transform2D(),
|
|
|
|
# Vector2(),
|
|
|
|
# Vector3(),
|
|
|
|
# float(),
|
|
|
|
# int(),
|
|
|
|
# bool()
|
|
|
|
#]
|
|
|
|
|
|
|
|
|
2020-11-17 20:10:21 +01:00
|
|
|
func _process(delta: float) -> void:
|
2020-11-06 16:57:49 +01:00
|
|
|
# for i in []
|
|
|
|
|
|
|
|
for i in [
|
|
|
|
Color(),
|
|
|
|
Plane(),
|
|
|
|
Quat(),
|
|
|
|
Vector2(),
|
|
|
|
Vector3(),
|
|
|
|
float(),
|
|
|
|
int(),
|
|
|
|
]:
|
|
|
|
i = -i
|
|
|
|
for i in [
|
|
|
|
AABB(),
|
|
|
|
Array(),
|
|
|
|
Basis(),
|
|
|
|
Color(),
|
|
|
|
Dictionary(),
|
|
|
|
NodePath(),
|
|
|
|
Plane(),
|
|
|
|
Quat(),
|
|
|
|
Rect2(),
|
|
|
|
String(),
|
|
|
|
Transform(),
|
|
|
|
Transform2D(),
|
|
|
|
Vector2(),
|
|
|
|
Vector3(),
|
|
|
|
float(),
|
|
|
|
int(),
|
|
|
|
bool()
|
|
|
|
]:
|
|
|
|
i = i
|
|
|
|
for i in [
|
|
|
|
Plane(),
|
|
|
|
Quat(),
|
|
|
|
Vector2(),
|
|
|
|
Vector3(),
|
|
|
|
float(),
|
|
|
|
int(),
|
|
|
|
]:
|
|
|
|
i = +i
|
|
|
|
for i in [
|
|
|
|
Color(),
|
|
|
|
Vector2(),
|
|
|
|
Vector3(),
|
|
|
|
float(),
|
|
|
|
int(),
|
|
|
|
]:
|
|
|
|
i = i * 1.0
|
|
|
|
i = i * 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for i in [
|
|
|
|
Color(),
|
|
|
|
Vector2(),
|
|
|
|
Vector3(),
|
|
|
|
float(),
|
|
|
|
int(),
|
|
|
|
]:
|
|
|
|
i = i / 1.0
|
|
|
|
i = i / 1
|
|
|
|
|
|
|
|
|
|
|
|
for i in [
|
|
|
|
AABB(),
|
|
|
|
Array(),
|
|
|
|
Basis(),
|
|
|
|
Color(),
|
|
|
|
Dictionary(),
|
|
|
|
NodePath(),
|
|
|
|
Plane(),
|
|
|
|
Quat(),
|
|
|
|
Rect2(),
|
|
|
|
String(),
|
|
|
|
Transform(),
|
|
|
|
Transform2D(),
|
|
|
|
Vector2(),
|
|
|
|
Vector3(),
|
|
|
|
float(),
|
|
|
|
int(),
|
|
|
|
bool()
|
|
|
|
]:
|
|
|
|
i == i
|
|
|
|
i != i
|
|
|
|
|
|
|
|
|
|
|
|
for i in [
|
|
|
|
String(),
|
|
|
|
Vector2(),
|
|
|
|
Vector3(),
|
|
|
|
float(),
|
|
|
|
int(),
|
|
|
|
]:
|
|
|
|
i >= i
|
|
|
|
i <= i
|
|
|
|
i > i
|
|
|
|
i < i
|
|
|
|
|
|
|
|
|
|
|
|
for i in [
|
|
|
|
int()
|
|
|
|
]:
|
|
|
|
i | i
|
|
|
|
i & i
|
|
|
|
|
|
|
|
for i in [
|
|
|
|
AABB(),
|
|
|
|
Array(),
|
|
|
|
Basis(),
|
|
|
|
Color(),
|
|
|
|
Dictionary(),
|
|
|
|
NodePath(),
|
|
|
|
Plane(),
|
|
|
|
Quat(),
|
|
|
|
Rect2(),
|
|
|
|
String(),
|
|
|
|
Transform(),
|
|
|
|
Transform2D(),
|
|
|
|
Vector2(),
|
|
|
|
Vector3(),
|
|
|
|
float(),
|
|
|
|
int(),
|
|
|
|
bool()
|
|
|
|
]:
|
|
|
|
i || i
|
|
|
|
i && i
|
|
|
|
|
|
|
|
for i in [
|
|
|
|
int(),
|
|
|
|
]:
|
|
|
|
i = i % 10
|
|
|
|
|
|
|
|
for i in [
|
|
|
|
Array(),
|
|
|
|
Dictionary(),
|
|
|
|
String(),
|
|
|
|
]:
|
|
|
|
i in i
|
|
|
|
|
|
|
|
for i in [
|
|
|
|
float(),
|
|
|
|
int(),
|
|
|
|
bool()
|
|
|
|
]:
|
|
|
|
i as int
|
|
|
|
|
|
|
|
for i in [
|
|
|
|
AABB(),
|
|
|
|
Array(),
|
|
|
|
Basis(),
|
|
|
|
Color(),
|
|
|
|
Dictionary(),
|
|
|
|
NodePath(),
|
|
|
|
Plane(),
|
|
|
|
Quat(),
|
|
|
|
Rect2(),
|
|
|
|
String(),
|
|
|
|
Transform(),
|
|
|
|
Transform2D(),
|
|
|
|
Vector2(),
|
|
|
|
Vector3(),
|
|
|
|
float(),
|
|
|
|
int(),
|
|
|
|
bool()
|
|
|
|
]:
|
|
|
|
typeof(i)
|
|
|
|
|