godot.core.VariantMapper.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of godot-library-release Show documentation
Show all versions of godot-library-release Show documentation
Contains godot api as kotlin classes and jvm cpp interaction code.
package godot.core
@PublishedApi
internal val variantMapper = mutableMapOf(
Unit::class to VariantParser.NIL,
Void::class to VariantParser.NIL,
Any::class to VariantCaster.ANY,
java.lang.Object::class to VariantCaster.ANY,
Boolean::class to VariantParser.BOOL,
Int::class to VariantCaster.INT,
Long::class to VariantParser.LONG,
Float::class to VariantCaster.FLOAT,
Byte::class to VariantCaster.BYTE,
Double::class to VariantParser.DOUBLE,
String::class to VariantParser.STRING,
AABB::class to VariantParser.AABB,
Basis::class to VariantParser.BASIS,
Color::class to VariantParser.COLOR,
StringName::class to VariantParser.STRING_NAME,
Dictionary::class to VariantParser.DICTIONARY,
VariantArray::class to VariantParser.ARRAY,
Plane::class to VariantParser.PLANE,
NodePath::class to VariantParser.NODE_PATH,
Quaternion::class to VariantParser.QUATERNION,
Rect2::class to VariantParser.RECT2,
Rect2i::class to VariantParser.RECT2I,
RID::class to VariantParser._RID,
Transform3D::class to VariantParser.TRANSFORM3D,
Transform2D::class to VariantParser.TRANSFORM2D,
Vector2::class to VariantParser.VECTOR2,
Vector2i::class to VariantParser.VECTOR2I,
Vector3::class to VariantParser.VECTOR3,
Vector3i::class to VariantParser.VECTOR3I,
Vector4::class to VariantParser.VECTOR4,
Vector4i::class to VariantParser.VECTOR4I,
Projection::class to VariantParser.PROJECTION,
NativeCallable::class to VariantParser.CALLABLE,
LambdaCallable0::class to VariantParser.CALLABLE,
LambdaCallable1::class to VariantParser.CALLABLE,
LambdaCallable2::class to VariantParser.CALLABLE,
LambdaCallable3::class to VariantParser.CALLABLE,
LambdaCallable4::class to VariantParser.CALLABLE,
LambdaCallable5::class to VariantParser.CALLABLE,
LambdaCallable6::class to VariantParser.CALLABLE,
LambdaCallable7::class to VariantParser.CALLABLE,
LambdaCallable8::class to VariantParser.CALLABLE,
LambdaCallable9::class to VariantParser.CALLABLE,
LambdaCallable10::class to VariantParser.CALLABLE,
LambdaCallable11::class to VariantParser.CALLABLE,
LambdaCallable12::class to VariantParser.CALLABLE,
LambdaCallable13::class to VariantParser.CALLABLE,
LambdaCallable14::class to VariantParser.CALLABLE,
LambdaCallable15::class to VariantParser.CALLABLE,
LambdaCallable16::class to VariantParser.CALLABLE,
Signal::class to VariantParser.SIGNAL,
Signal0::class to VariantParser.SIGNAL,
Signal1::class to VariantParser.SIGNAL,
Signal2::class to VariantParser.SIGNAL,
Signal3::class to VariantParser.SIGNAL,
Signal4::class to VariantParser.SIGNAL,
Signal5::class to VariantParser.SIGNAL,
Signal6::class to VariantParser.SIGNAL,
Signal7::class to VariantParser.SIGNAL,
Signal8::class to VariantParser.SIGNAL,
Signal9::class to VariantParser.SIGNAL,
Signal10::class to VariantParser.SIGNAL,
Signal11::class to VariantParser.SIGNAL,
Signal12::class to VariantParser.SIGNAL,
Signal13::class to VariantParser.SIGNAL,
Signal14::class to VariantParser.SIGNAL,
Signal15::class to VariantParser.SIGNAL,
Signal16::class to VariantParser.SIGNAL,
PackedByteArray::class to VariantParser.PACKED_BYTE_ARRAY,
PackedColorArray::class to VariantParser.PACKED_COLOR_ARRAY,
PackedInt32Array::class to VariantParser.PACKED_INT_32_ARRAY,
PackedInt64Array::class to VariantParser.PACKED_INT_64_ARRAY,
PackedFloat32Array::class to VariantParser.PACKED_FLOAT_32_ARRAY,
PackedFloat64Array::class to VariantParser.PACKED_FLOAT_64_ARRAY,
PackedStringArray::class to VariantParser.PACKED_STRING_ARRAY,
PackedVector2Array::class to VariantParser.PACKED_VECTOR2_ARRAY,
PackedVector3Array::class to VariantParser.PACKED_VECTOR3_ARRAY
)
@PublishedApi
internal val notNullableVariantSet = hashSetOf(
Boolean::class,
Int::class,
Long::class,
Float::class,
Byte::class,
Double::class,
String::class,
AABB::class,
Basis::class,
Color::class,
StringName::class,
Dictionary::class,
VariantArray::class,
Plane::class,
NodePath::class,
Quaternion::class,
Rect2::class,
Rect2i::class,
RID::class,
Transform3D::class,
Transform2D::class,
Vector2::class,
Vector2i::class,
Vector3::class,
Vector3i::class,
Vector4::class,
Vector4i::class,
Projection::class,
NativeCallable::class,
LambdaCallable::class,
Signal::class,
PackedByteArray::class,
PackedColorArray::class,
PackedInt32Array::class,
PackedInt64Array::class,
PackedFloat32Array::class,
PackedFloat64Array::class,
PackedStringArray::class,
PackedVector2Array::class,
PackedVector3Array::class
)