From b63a8ebc2ed293011e3526604bb92d62f48571ab Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Mon, 16 Mar 2026 17:14:33 +0100 Subject: [PATCH] [ios] Regenerate bindings for DrawOrderFolderTimeline --- .../Sources/SpineSwift/Generated/Arrays.swift | 3 + .../draw_order_folder_timeline.swift | 69 +++++++++++++++++++ .../SpineSwift/Generated/skeleton_data.swift | 8 +++ 3 files changed, 80 insertions(+) create mode 100644 spine-ios/Sources/SpineSwift/Generated/draw_order_folder_timeline.swift diff --git a/spine-ios/Sources/SpineSwift/Generated/Arrays.swift b/spine-ios/Sources/SpineSwift/Generated/Arrays.swift index 3d97da35c..a304a6879 100644 --- a/spine-ios/Sources/SpineSwift/Generated/Arrays.swift +++ b/spine-ios/Sources/SpineSwift/Generated/Arrays.swift @@ -1985,6 +1985,9 @@ public class ArrayTimeline: NSObject { case "DeformTimeline": let castedPtr = spine_timeline_cast_to_deform_timeline(ptr) return DeformTimeline(fromPointer: castedPtr!) + case "DrawOrderFolderTimeline": + let castedPtr = spine_timeline_cast_to_draw_order_folder_timeline(ptr) + return DrawOrderFolderTimeline(fromPointer: castedPtr!) case "DrawOrderTimeline": let castedPtr = spine_timeline_cast_to_draw_order_timeline(ptr) return DrawOrderTimeline(fromPointer: castedPtr!) diff --git a/spine-ios/Sources/SpineSwift/Generated/draw_order_folder_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/draw_order_folder_timeline.swift new file mode 100644 index 000000000..fa668e931 --- /dev/null +++ b/spine-ios/Sources/SpineSwift/Generated/draw_order_folder_timeline.swift @@ -0,0 +1,69 @@ +// +// Spine Runtimes License Agreement +// Last updated April 5, 2025. Replaces all prior versions. +// +// Copyright (c) 2013-2025, Esoteric Software LLC +// +// Integration of the Spine Runtimes into software or otherwise creating +// derivative works of the Spine Runtimes is permitted under the terms and +// conditions of Section 2 of the Spine Editor License Agreement: +// http://esotericsoftware.com/spine-editor-license +// +// Otherwise, it is permitted to integrate the Spine Runtimes into software +// or otherwise create derivative works of the Spine Runtimes (collectively, +// "Products"), provided that each user of the Products must obtain their own +// Spine Editor license and redistribution of the Products in any form must +// include this license and copyright notice. +// +// THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY +// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY +// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, +// BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND +// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +// THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +// AUTO GENERATED FILE, DO NOT EDIT. + +import Foundation +import SpineC + +/// Changes a subset of a skeleton's Skeleton::getDrawOrder(). +@objc(SpineDrawOrderFolderTimeline) +@objcMembers +public class DrawOrderFolderTimeline: Timeline { + @nonobjc + public init(fromPointer ptr: spine_draw_order_folder_timeline) { + super.init(fromPointer: UnsafeMutableRawPointer(ptr).assumingMemoryBound(to: spine_timeline_wrapper.self)) + } + + public convenience init(_ frameCount: Int, _ slots: ArrayInt, _ slotCount: Int) { + let ptr = spine_draw_order_folder_timeline_create(frameCount, slots._ptr.assumingMemoryBound(to: spine_array_int_wrapper.self), slotCount) + self.init(fromPointer: ptr!) + } + + /// The Skeleton::getSlots() indices that this timeline affects, in setup order. + public var slots: ArrayInt { + let result = spine_draw_order_folder_timeline_get_slots(_ptr.assumingMemoryBound(to: spine_draw_order_folder_timeline_wrapper.self)) + return ArrayInt(fromPointer: result!) + } + + /// Sets the time and draw order for the specified frame. + /// + /// - Parameter frame: Between 0 and frameCount, inclusive. + /// - Parameter time: The frame time in seconds. + /// - Parameter drawOrder: Ordered getSlots() indices, or null to use setup pose order. + public func setFrame(_ frame: Int, _ time: Float, _ drawOrder: ArrayInt?) { + spine_draw_order_folder_timeline_set_frame( + _ptr.assumingMemoryBound(to: spine_draw_order_folder_timeline_wrapper.self), frame, time, + drawOrder?._ptr.assumingMemoryBound(to: spine_array_int_wrapper.self)) + } + + public func dispose() { + spine_draw_order_folder_timeline_dispose(_ptr.assumingMemoryBound(to: spine_draw_order_folder_timeline_wrapper.self)) + } +} diff --git a/spine-ios/Sources/SpineSwift/Generated/skeleton_data.swift b/spine-ios/Sources/SpineSwift/Generated/skeleton_data.swift index a889259d6..64b8b9ec6 100644 --- a/spine-ios/Sources/SpineSwift/Generated/skeleton_data.swift +++ b/spine-ios/Sources/SpineSwift/Generated/skeleton_data.swift @@ -259,6 +259,14 @@ public class SkeletonData: NSObject { return result.map { Animation(fromPointer: $0) } } + /// Collects animations used by slider constraints. + public func findSliderAnimations(_ animations: ArrayAnimation) -> ArrayAnimation { + let result = spine_skeleton_data_find_slider_animations( + _ptr.assumingMemoryBound(to: spine_skeleton_data_wrapper.self), + animations._ptr.assumingMemoryBound(to: spine_array_animation_wrapper.self)) + return ArrayAnimation(fromPointer: result!) + } + public func dispose() { spine_skeleton_data_dispose(_ptr.assumingMemoryBound(to: spine_skeleton_data_wrapper.self)) }