Skip to content

Commit 573a05f

Browse files
authored
fix(api-gen): set right variant type for bitfield types (#513)
1 parent 41857e8 commit 573a05f

27 files changed

Lines changed: 100 additions & 105 deletions

kt/api-generator/src/main/kotlin/godot/codegen/extensions/TypedExtensions.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ val TypedTrait.jvmVariantTypeValue: ClassName
132132
return when {
133133
type.isNullOrEmpty() -> VARIANT_TYPE_NIL
134134
isEnum() -> VARIANT_TYPE_LONG
135+
isBitField() -> VARIANT_TYPE_LONG
135136
type == GodotTypes.bool -> VARIANT_TYPE_BOOL
136137
type == GodotTypes.int -> VARIANT_TYPE_LONG
137138
type == GodotTypes.float -> VARIANT_TYPE_DOUBLE

kt/godot-library/src/main/kotlin/godot/gen/godot/ArrayMesh.kt

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kt/godot-library/src/main/kotlin/godot/gen/godot/BaseButton.kt

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItem.kt

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kt/godot-library/src/main/kotlin/godot/gen/godot/Control.kt

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kt/godot-library/src/main/kotlin/godot/gen/godot/DisplayServer.kt

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kt/godot-library/src/main/kotlin/godot/gen/godot/Font.kt

Lines changed: 8 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kt/godot-library/src/main/kotlin/godot/gen/godot/FontFile.kt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kt/godot-library/src/main/kotlin/godot/gen/godot/Input.kt

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMouse.kt

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)