Skip to content

Commit

Permalink
Give some love to minimap
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-semyonov committed Sep 26, 2024
1 parent ef51f44 commit 74a82ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Generator/Generator/BuiltinGen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,9 @@ func generateBuiltinClasses (values: [JGodotBuiltinClass], outputDir: String?) a
}
}

// MARK: - Custom operators impl
private let customBuiltinOperatorImplementations: [OperatorSignature: String] = [
// MARK: Vector3
"Vector3 * Vector3": """
return Vector3(x: lhs.x * rhs.x, y: lhs.y * rhs.y, z: lhs.z * rhs.z)
""",
Expand Down Expand Up @@ -869,7 +871,9 @@ private let customBuiltinOperatorImplementations: [OperatorSignature: String] =
""",
]

// MARK: - Custom methods impl
private let customBuiltinMethodImplementations: [MethodSignature: String] = [
// MARK: Vector3
"Vector3.dot": """
// https://github.com/godotengine/godot/blob/f7c567e2f56d6e63f4749387a67e5ea4903c4696/core/math/vector3.h#L206-L208
return Double(x * with.x + y * with.y + z * with.z)
Expand Down

0 comments on commit 74a82ca

Please sign in to comment.