diff --git a/spine-ios/Sources/SpineSwift/Extensions/SkinExtensions.swift b/spine-ios/Sources/SpineSwift/Extensions/SkinExtensions.swift index 22ae28d6a..26ce5d243 100644 --- a/spine-ios/Sources/SpineSwift/Extensions/SkinExtensions.swift +++ b/spine-ios/Sources/SpineSwift/Extensions/SkinExtensions.swift @@ -70,17 +70,17 @@ extension Skin { let className = String(cString: classNamePtr) switch className { - case "spine_region_attachment": + case "RegionAttachment": attachment = RegionAttachment(fromPointer: UnsafeMutableRawPointer(attachmentPtr).assumingMemoryBound(to: spine_region_attachment_wrapper.self)) - case "spine_mesh_attachment": + case "MeshAttachment": attachment = MeshAttachment(fromPointer: UnsafeMutableRawPointer(attachmentPtr).assumingMemoryBound(to: spine_mesh_attachment_wrapper.self)) - case "spine_bounding_box_attachment": + case "BoundingBoxAttachment": attachment = BoundingBoxAttachment(fromPointer: UnsafeMutableRawPointer(attachmentPtr).assumingMemoryBound(to: spine_bounding_box_attachment_wrapper.self)) - case "spine_clipping_attachment": + case "ClippingAttachment": attachment = ClippingAttachment(fromPointer: UnsafeMutableRawPointer(attachmentPtr).assumingMemoryBound(to: spine_clipping_attachment_wrapper.self)) - case "spine_path_attachment": + case "PathAttachment": attachment = PathAttachment(fromPointer: UnsafeMutableRawPointer(attachmentPtr).assumingMemoryBound(to: spine_path_attachment_wrapper.self)) - case "spine_point_attachment": + case "PointAttachment": attachment = PointAttachment(fromPointer: UnsafeMutableRawPointer(attachmentPtr).assumingMemoryBound(to: spine_point_attachment_wrapper.self)) default: // Unknown attachment type, treat as generic Attachment diff --git a/spine-ios/Sources/SpineSwift/Generated/Animation.swift b/spine-ios/Sources/SpineSwift/Generated/Animation.swift index 10f2a0ddc..d3a1477de 100644 --- a/spine-ios/Sources/SpineSwift/Generated/Animation.swift +++ b/spine-ios/Sources/SpineSwift/Generated/Animation.swift @@ -94,7 +94,7 @@ public class Animation { return result } - deinit { + public func dispose() { spine_animation_dispose(_ptr.assumingMemoryBound(to: spine_animation_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/Atlas.swift b/spine-ios/Sources/SpineSwift/Generated/Atlas.swift index 6760e3e3a..5d24d2d21 100644 --- a/spine-ios/Sources/SpineSwift/Generated/Atlas.swift +++ b/spine-ios/Sources/SpineSwift/Generated/Atlas.swift @@ -59,7 +59,7 @@ public class Atlas { return result.map { AtlasRegion(fromPointer: $0) } } - deinit { + public func dispose() { spine_atlas_dispose(_ptr.assumingMemoryBound(to: spine_atlas_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/Bone.swift b/spine-ios/Sources/SpineSwift/Generated/Bone.swift index ca3e7e234..868bb1e5a 100644 --- a/spine-ios/Sources/SpineSwift/Generated/Bone.swift +++ b/spine-ios/Sources/SpineSwift/Generated/Bone.swift @@ -109,7 +109,7 @@ public class Bone: PosedActive, Posed, Update { return Rtti(fromPointer: result!) } - deinit { + public override func dispose() { spine_bone_dispose(_ptr.assumingMemoryBound(to: spine_bone_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/Color.swift b/spine-ios/Sources/SpineSwift/Generated/Color.swift index f9d3fdfc7..be6f80a6f 100644 --- a/spine-ios/Sources/SpineSwift/Generated/Color.swift +++ b/spine-ios/Sources/SpineSwift/Generated/Color.swift @@ -138,7 +138,7 @@ public class Color { return Color(fromPointer: result!) } - deinit { + public func dispose() { spine_color_dispose(_ptr.assumingMemoryBound(to: spine_color_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/Event.swift b/spine-ios/Sources/SpineSwift/Generated/Event.swift index 03aa42858..b0c0abde0 100644 --- a/spine-ios/Sources/SpineSwift/Generated/Event.swift +++ b/spine-ios/Sources/SpineSwift/Generated/Event.swift @@ -105,7 +105,7 @@ public class Event { } } - deinit { + public func dispose() { spine_event_dispose(_ptr.assumingMemoryBound(to: spine_event_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/Polygon.swift b/spine-ios/Sources/SpineSwift/Generated/Polygon.swift index 7cd099a22..f312dc523 100644 --- a/spine-ios/Sources/SpineSwift/Generated/Polygon.swift +++ b/spine-ios/Sources/SpineSwift/Generated/Polygon.swift @@ -65,7 +65,7 @@ public class Polygon { } } - deinit { + public func dispose() { spine_polygon_dispose(_ptr.assumingMemoryBound(to: spine_polygon_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/Rtti.swift b/spine-ios/Sources/SpineSwift/Generated/Rtti.swift index 80df12ba4..8d0a018d5 100644 --- a/spine-ios/Sources/SpineSwift/Generated/Rtti.swift +++ b/spine-ios/Sources/SpineSwift/Generated/Rtti.swift @@ -55,7 +55,7 @@ public class Rtti { return result } - deinit { + public func dispose() { spine_rtti_dispose(_ptr.assumingMemoryBound(to: spine_rtti_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/Sequence.swift b/spine-ios/Sources/SpineSwift/Generated/Sequence.swift index 0e38f864a..2d233a027 100644 --- a/spine-ios/Sources/SpineSwift/Generated/Sequence.swift +++ b/spine-ios/Sources/SpineSwift/Generated/Sequence.swift @@ -104,7 +104,7 @@ public class Sequence { return String(cString: result!) } - deinit { + public func dispose() { spine_sequence_dispose(_ptr.assumingMemoryBound(to: spine_sequence_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/Skeleton.swift b/spine-ios/Sources/SpineSwift/Generated/Skeleton.swift index 7438ef0ee..ff0c24fb3 100644 --- a/spine-ios/Sources/SpineSwift/Generated/Skeleton.swift +++ b/spine-ios/Sources/SpineSwift/Generated/Skeleton.swift @@ -320,7 +320,7 @@ public class Skeleton { spine_skeleton_set_color_2(_ptr.assumingMemoryBound(to: spine_skeleton_wrapper.self), r, g, b, a) } - deinit { + public func dispose() { spine_skeleton_dispose(_ptr.assumingMemoryBound(to: spine_skeleton_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/Skin.swift b/spine-ios/Sources/SpineSwift/Generated/Skin.swift index 57cbf3722..cc94345f2 100644 --- a/spine-ios/Sources/SpineSwift/Generated/Skin.swift +++ b/spine-ios/Sources/SpineSwift/Generated/Skin.swift @@ -108,7 +108,7 @@ public class Skin { spine_skin_copy_skin(_ptr.assumingMemoryBound(to: spine_skin_wrapper.self), other._ptr.assumingMemoryBound(to: spine_skin_wrapper.self)) } - deinit { + public func dispose() { spine_skin_dispose(_ptr.assumingMemoryBound(to: spine_skin_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/Slider.swift b/spine-ios/Sources/SpineSwift/Generated/Slider.swift index f000e6276..3b22086e9 100644 --- a/spine-ios/Sources/SpineSwift/Generated/Slider.swift +++ b/spine-ios/Sources/SpineSwift/Generated/Slider.swift @@ -109,7 +109,7 @@ public class Slider: PosedActive, Posed, Constraint { return Rtti(fromPointer: result!) } - deinit { + public override func dispose() { spine_slider_dispose(_ptr.assumingMemoryBound(to: spine_slider_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/Slot.swift b/spine-ios/Sources/SpineSwift/Generated/Slot.swift index d52231185..2924a7265 100644 --- a/spine-ios/Sources/SpineSwift/Generated/Slot.swift +++ b/spine-ios/Sources/SpineSwift/Generated/Slot.swift @@ -82,7 +82,7 @@ public class Slot: Posed { spine_slot_constrained(_ptr.assumingMemoryBound(to: spine_slot_wrapper.self)) } - deinit { + public func dispose() { spine_slot_dispose(_ptr.assumingMemoryBound(to: spine_slot_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/alpha_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/alpha_timeline.swift index 8d7c621db..99437a7b3 100644 --- a/spine-ios/Sources/SpineSwift/Generated/alpha_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/alpha_timeline.swift @@ -53,7 +53,7 @@ public class AlphaTimeline: CurveTimeline1, SlotTimeline { } } - deinit { + public func dispose() { spine_alpha_timeline_dispose(_ptr.assumingMemoryBound(to: spine_alpha_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/animation_state.swift b/spine-ios/Sources/SpineSwift/Generated/animation_state.swift index d1f929140..1f9f357f1 100644 --- a/spine-ios/Sources/SpineSwift/Generated/animation_state.swift +++ b/spine-ios/Sources/SpineSwift/Generated/animation_state.swift @@ -151,7 +151,7 @@ public class AnimationState { return TrackEntry(fromPointer: result!) } - deinit { + public func dispose() { spine_animation_state_dispose(_ptr.assumingMemoryBound(to: spine_animation_state_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/animation_state_data.swift b/spine-ios/Sources/SpineSwift/Generated/animation_state_data.swift index 3a0e56923..0c0abd272 100644 --- a/spine-ios/Sources/SpineSwift/Generated/animation_state_data.swift +++ b/spine-ios/Sources/SpineSwift/Generated/animation_state_data.swift @@ -77,7 +77,7 @@ public class AnimationStateData { spine_animation_state_data_set_mix_2(_ptr.assumingMemoryBound(to: spine_animation_state_data_wrapper.self), from._ptr.assumingMemoryBound(to: spine_animation_wrapper.self), to._ptr.assumingMemoryBound(to: spine_animation_wrapper.self), duration) } - deinit { + public func dispose() { spine_animation_state_data_dispose(_ptr.assumingMemoryBound(to: spine_animation_state_data_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/atlas_attachment_loader.swift b/spine-ios/Sources/SpineSwift/Generated/atlas_attachment_loader.swift index 991ace910..20f19f591 100644 --- a/spine-ios/Sources/SpineSwift/Generated/atlas_attachment_loader.swift +++ b/spine-ios/Sources/SpineSwift/Generated/atlas_attachment_loader.swift @@ -80,7 +80,7 @@ public class AtlasAttachmentLoader: AttachmentLoader { return result.map { AtlasRegion(fromPointer: $0) } } - deinit { + public func dispose() { spine_atlas_attachment_loader_dispose(_ptr.assumingMemoryBound(to: spine_atlas_attachment_loader_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/atlas_page.swift b/spine-ios/Sources/SpineSwift/Generated/atlas_page.swift index 1a8daaf7a..b0a467056 100644 --- a/spine-ios/Sources/SpineSwift/Generated/atlas_page.swift +++ b/spine-ios/Sources/SpineSwift/Generated/atlas_page.swift @@ -160,7 +160,7 @@ public class AtlasPage { return result } - deinit { + public func dispose() { spine_atlas_page_dispose(_ptr.assumingMemoryBound(to: spine_atlas_page_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/atlas_region.swift b/spine-ios/Sources/SpineSwift/Generated/atlas_region.swift index aee0783df..71d5fba15 100644 --- a/spine-ios/Sources/SpineSwift/Generated/atlas_region.swift +++ b/spine-ios/Sources/SpineSwift/Generated/atlas_region.swift @@ -203,7 +203,7 @@ public class AtlasRegion: TextureRegion { } } - deinit { + public override func dispose() { spine_atlas_region_dispose(_ptr.assumingMemoryBound(to: spine_atlas_region_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/attachment_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/attachment_timeline.swift index 29fc97f09..289ff3595 100644 --- a/spine-ios/Sources/SpineSwift/Generated/attachment_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/attachment_timeline.swift @@ -57,7 +57,7 @@ public class AttachmentTimeline: Timeline, SlotTimeline { spine_attachment_timeline_set_frame(_ptr.assumingMemoryBound(to: spine_attachment_timeline_wrapper.self), frame, time, attachmentName) } - deinit { + public func dispose() { spine_attachment_timeline_dispose(_ptr.assumingMemoryBound(to: spine_attachment_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/bone_data.swift b/spine-ios/Sources/SpineSwift/Generated/bone_data.swift index ab38c073c..7c52ece44 100644 --- a/spine-ios/Sources/SpineSwift/Generated/bone_data.swift +++ b/spine-ios/Sources/SpineSwift/Generated/bone_data.swift @@ -93,7 +93,7 @@ public class BoneData: PosedData { return BoneLocal(fromPointer: result!) } - deinit { + public override func dispose() { spine_bone_data_dispose(_ptr.assumingMemoryBound(to: spine_bone_data_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/bone_local.swift b/spine-ios/Sources/SpineSwift/Generated/bone_local.swift index ac27e1e96..26527831f 100644 --- a/spine-ios/Sources/SpineSwift/Generated/bone_local.swift +++ b/spine-ios/Sources/SpineSwift/Generated/bone_local.swift @@ -144,7 +144,7 @@ public class BoneLocal { spine_bone_local_set_scale_1(_ptr.assumingMemoryBound(to: spine_bone_local_wrapper.self), scaleX, scaleY) } - deinit { + public func dispose() { spine_bone_local_dispose(_ptr.assumingMemoryBound(to: spine_bone_local_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/bone_pose.swift b/spine-ios/Sources/SpineSwift/Generated/bone_pose.swift index f536e09fa..2235bbda5 100644 --- a/spine-ios/Sources/SpineSwift/Generated/bone_pose.swift +++ b/spine-ios/Sources/SpineSwift/Generated/bone_pose.swift @@ -175,7 +175,7 @@ public class BonePose: BoneLocal, Update { return Rtti(fromPointer: result!) } - deinit { + public override func dispose() { spine_bone_pose_dispose(_ptr.assumingMemoryBound(to: spine_bone_pose_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/bounding_box_attachment.swift b/spine-ios/Sources/SpineSwift/Generated/bounding_box_attachment.swift index d87f496c3..9078bc790 100644 --- a/spine-ios/Sources/SpineSwift/Generated/bounding_box_attachment.swift +++ b/spine-ios/Sources/SpineSwift/Generated/bounding_box_attachment.swift @@ -48,7 +48,7 @@ public class BoundingBoxAttachment: VertexAttachment { return Color(fromPointer: result!) } - deinit { + public func dispose() { spine_bounding_box_attachment_dispose(_ptr.assumingMemoryBound(to: spine_bounding_box_attachment_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/clipping_attachment.swift b/spine-ios/Sources/SpineSwift/Generated/clipping_attachment.swift index ab03d55e4..196c6f3f8 100644 --- a/spine-ios/Sources/SpineSwift/Generated/clipping_attachment.swift +++ b/spine-ios/Sources/SpineSwift/Generated/clipping_attachment.swift @@ -58,7 +58,7 @@ public class ClippingAttachment: VertexAttachment { return Color(fromPointer: result!) } - deinit { + public func dispose() { spine_clipping_attachment_dispose(_ptr.assumingMemoryBound(to: spine_clipping_attachment_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/deform_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/deform_timeline.swift index dababf0ab..60ce60543 100644 --- a/spine-ios/Sources/SpineSwift/Generated/deform_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/deform_timeline.swift @@ -75,7 +75,7 @@ public class DeformTimeline: SlotCurveTimeline { return result } - deinit { + public func dispose() { spine_deform_timeline_dispose(_ptr.assumingMemoryBound(to: spine_deform_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/draw_order_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/draw_order_timeline.swift index 8522fb9d8..767c44093 100644 --- a/spine-ios/Sources/SpineSwift/Generated/draw_order_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/draw_order_timeline.swift @@ -47,7 +47,7 @@ public class DrawOrderTimeline: Timeline { spine_draw_order_timeline_set_frame(_ptr.assumingMemoryBound(to: spine_draw_order_timeline_wrapper.self), frame, time, drawOrder?._ptr.assumingMemoryBound(to: spine_array_int_wrapper.self)) } - deinit { + public func dispose() { spine_draw_order_timeline_dispose(_ptr.assumingMemoryBound(to: spine_draw_order_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/event_data.swift b/spine-ios/Sources/SpineSwift/Generated/event_data.swift index 62565d36a..8ef5e0588 100644 --- a/spine-ios/Sources/SpineSwift/Generated/event_data.swift +++ b/spine-ios/Sources/SpineSwift/Generated/event_data.swift @@ -110,7 +110,7 @@ public class EventData { } } - deinit { + public func dispose() { spine_event_data_dispose(_ptr.assumingMemoryBound(to: spine_event_data_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/event_queue_entry.swift b/spine-ios/Sources/SpineSwift/Generated/event_queue_entry.swift index 4ce5100c6..b9b17231b 100644 --- a/spine-ios/Sources/SpineSwift/Generated/event_queue_entry.swift +++ b/spine-ios/Sources/SpineSwift/Generated/event_queue_entry.swift @@ -75,7 +75,7 @@ public class EventQueueEntry { } } - deinit { + public func dispose() { spine_event_queue_entry_dispose(_ptr.assumingMemoryBound(to: spine_event_queue_entry_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/event_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/event_timeline.swift index f07baaa82..bc420835b 100644 --- a/spine-ios/Sources/SpineSwift/Generated/event_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/event_timeline.swift @@ -52,7 +52,7 @@ public class EventTimeline: Timeline { spine_event_timeline_set_frame(_ptr.assumingMemoryBound(to: spine_event_timeline_wrapper.self), frame, event._ptr.assumingMemoryBound(to: spine_event_wrapper.self)) } - deinit { + public func dispose() { spine_event_timeline_dispose(_ptr.assumingMemoryBound(to: spine_event_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/from_rotate.swift b/spine-ios/Sources/SpineSwift/Generated/from_rotate.swift index 2f7dd3ad9..278094682 100644 --- a/spine-ios/Sources/SpineSwift/Generated/from_rotate.swift +++ b/spine-ios/Sources/SpineSwift/Generated/from_rotate.swift @@ -43,7 +43,7 @@ public class FromRotate: FromProperty { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_from_rotate_dispose(_ptr.assumingMemoryBound(to: spine_from_rotate_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/from_scale_x.swift b/spine-ios/Sources/SpineSwift/Generated/from_scale_x.swift index efa3ab0e4..7bec69cb5 100644 --- a/spine-ios/Sources/SpineSwift/Generated/from_scale_x.swift +++ b/spine-ios/Sources/SpineSwift/Generated/from_scale_x.swift @@ -43,7 +43,7 @@ public class FromScaleX: FromProperty { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_from_scale_x_dispose(_ptr.assumingMemoryBound(to: spine_from_scale_x_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/from_scale_y.swift b/spine-ios/Sources/SpineSwift/Generated/from_scale_y.swift index 746c00813..aefb15542 100644 --- a/spine-ios/Sources/SpineSwift/Generated/from_scale_y.swift +++ b/spine-ios/Sources/SpineSwift/Generated/from_scale_y.swift @@ -43,7 +43,7 @@ public class FromScaleY: FromProperty { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_from_scale_y_dispose(_ptr.assumingMemoryBound(to: spine_from_scale_y_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/from_shear_y.swift b/spine-ios/Sources/SpineSwift/Generated/from_shear_y.swift index 253729b59..7bbbb0ccb 100644 --- a/spine-ios/Sources/SpineSwift/Generated/from_shear_y.swift +++ b/spine-ios/Sources/SpineSwift/Generated/from_shear_y.swift @@ -43,7 +43,7 @@ public class FromShearY: FromProperty { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_from_shear_y_dispose(_ptr.assumingMemoryBound(to: spine_from_shear_y_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/from_x.swift b/spine-ios/Sources/SpineSwift/Generated/from_x.swift index 8b5be8ba3..73e2972e5 100644 --- a/spine-ios/Sources/SpineSwift/Generated/from_x.swift +++ b/spine-ios/Sources/SpineSwift/Generated/from_x.swift @@ -43,7 +43,7 @@ public class FromX: FromProperty { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_from_x_dispose(_ptr.assumingMemoryBound(to: spine_from_x_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/from_y.swift b/spine-ios/Sources/SpineSwift/Generated/from_y.swift index 51102778c..19dd27c9e 100644 --- a/spine-ios/Sources/SpineSwift/Generated/from_y.swift +++ b/spine-ios/Sources/SpineSwift/Generated/from_y.swift @@ -43,7 +43,7 @@ public class FromY: FromProperty { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_from_y_dispose(_ptr.assumingMemoryBound(to: spine_from_y_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/ik_constraint.swift b/spine-ios/Sources/SpineSwift/Generated/ik_constraint.swift index 82cc0c7c2..3dc656eaf 100644 --- a/spine-ios/Sources/SpineSwift/Generated/ik_constraint.swift +++ b/spine-ios/Sources/SpineSwift/Generated/ik_constraint.swift @@ -122,7 +122,7 @@ public class IkConstraint: PosedActive, Posed, Constraint { spine_ik_constraint_apply_2(skeleton._ptr.assumingMemoryBound(to: spine_skeleton_wrapper.self), parent._ptr.assumingMemoryBound(to: spine_bone_pose_wrapper.self), child._ptr.assumingMemoryBound(to: spine_bone_pose_wrapper.self), targetX, targetY, bendDirection, stretch, uniform, softness, mix) } - deinit { + public override func dispose() { spine_ik_constraint_dispose(_ptr.assumingMemoryBound(to: spine_ik_constraint_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/ik_constraint_data.swift b/spine-ios/Sources/SpineSwift/Generated/ik_constraint_data.swift index ed8af7bbf..6745279a6 100644 --- a/spine-ios/Sources/SpineSwift/Generated/ik_constraint_data.swift +++ b/spine-ios/Sources/SpineSwift/Generated/ik_constraint_data.swift @@ -103,7 +103,7 @@ public class IkConstraintData: PosedData, ConstraintData { return Rtti(fromPointer: result!) } - deinit { + public override func dispose() { spine_ik_constraint_data_dispose(_ptr.assumingMemoryBound(to: spine_ik_constraint_data_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/ik_constraint_pose.swift b/spine-ios/Sources/SpineSwift/Generated/ik_constraint_pose.swift index 559cc49c2..6a99fd710 100644 --- a/spine-ios/Sources/SpineSwift/Generated/ik_constraint_pose.swift +++ b/spine-ios/Sources/SpineSwift/Generated/ik_constraint_pose.swift @@ -99,7 +99,7 @@ public class IkConstraintPose { spine_ik_constraint_pose_set(_ptr.assumingMemoryBound(to: spine_ik_constraint_pose_wrapper.self), pose._ptr.assumingMemoryBound(to: spine_ik_constraint_pose_wrapper.self)) } - deinit { + public func dispose() { spine_ik_constraint_pose_dispose(_ptr.assumingMemoryBound(to: spine_ik_constraint_pose_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/ik_constraint_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/ik_constraint_timeline.swift index 92a6d0360..1d5393a1a 100644 --- a/spine-ios/Sources/SpineSwift/Generated/ik_constraint_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/ik_constraint_timeline.swift @@ -57,7 +57,7 @@ public class IkConstraintTimeline: CurveTimeline, ConstraintTimeline { spine_ik_constraint_timeline_set_frame(_ptr.assumingMemoryBound(to: spine_ik_constraint_timeline_wrapper.self), frame, time, mix, softness, bendDirection, compress, stretch) } - deinit { + public func dispose() { spine_ik_constraint_timeline_dispose(_ptr.assumingMemoryBound(to: spine_ik_constraint_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/inherit_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/inherit_timeline.swift index a88dd5b89..3016e5b3f 100644 --- a/spine-ios/Sources/SpineSwift/Generated/inherit_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/inherit_timeline.swift @@ -57,7 +57,7 @@ public class InheritTimeline: Timeline, BoneTimeline { spine_inherit_timeline_set_frame(_ptr.assumingMemoryBound(to: spine_inherit_timeline_wrapper.self), frame, time, spine_inherit(rawValue: UInt32(inherit.rawValue))) } - deinit { + public func dispose() { spine_inherit_timeline_dispose(_ptr.assumingMemoryBound(to: spine_inherit_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/mesh_attachment.swift b/spine-ios/Sources/SpineSwift/Generated/mesh_attachment.swift index 9e24f6bb5..5bf84245a 100644 --- a/spine-ios/Sources/SpineSwift/Generated/mesh_attachment.swift +++ b/spine-ios/Sources/SpineSwift/Generated/mesh_attachment.swift @@ -162,7 +162,7 @@ public class MeshAttachment: VertexAttachment { return MeshAttachment(fromPointer: result!) } - deinit { + public func dispose() { spine_mesh_attachment_dispose(_ptr.assumingMemoryBound(to: spine_mesh_attachment_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/path_attachment.swift b/spine-ios/Sources/SpineSwift/Generated/path_attachment.swift index 8b706167e..12537159a 100644 --- a/spine-ios/Sources/SpineSwift/Generated/path_attachment.swift +++ b/spine-ios/Sources/SpineSwift/Generated/path_attachment.swift @@ -78,7 +78,7 @@ public class PathAttachment: VertexAttachment { return Color(fromPointer: result!) } - deinit { + public func dispose() { spine_path_attachment_dispose(_ptr.assumingMemoryBound(to: spine_path_attachment_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/path_constraint.swift b/spine-ios/Sources/SpineSwift/Generated/path_constraint.swift index 3838dc32a..eebfd41c5 100644 --- a/spine-ios/Sources/SpineSwift/Generated/path_constraint.swift +++ b/spine-ios/Sources/SpineSwift/Generated/path_constraint.swift @@ -114,7 +114,7 @@ public class PathConstraint: PosedActive, Posed, Constraint { return Rtti(fromPointer: result!) } - deinit { + public override func dispose() { spine_path_constraint_dispose(_ptr.assumingMemoryBound(to: spine_path_constraint_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/path_constraint_data.swift b/spine-ios/Sources/SpineSwift/Generated/path_constraint_data.swift index a00479319..c31d453a4 100644 --- a/spine-ios/Sources/SpineSwift/Generated/path_constraint_data.swift +++ b/spine-ios/Sources/SpineSwift/Generated/path_constraint_data.swift @@ -133,7 +133,7 @@ public class PathConstraintData: PosedData, ConstraintData { return Rtti(fromPointer: result!) } - deinit { + public override func dispose() { spine_path_constraint_data_dispose(_ptr.assumingMemoryBound(to: spine_path_constraint_data_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/path_constraint_mix_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/path_constraint_mix_timeline.swift index 032d13f7d..8cd15320a 100644 --- a/spine-ios/Sources/SpineSwift/Generated/path_constraint_mix_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/path_constraint_mix_timeline.swift @@ -57,7 +57,7 @@ public class PathConstraintMixTimeline: CurveTimeline, ConstraintTimeline { spine_path_constraint_mix_timeline_set_frame(_ptr.assumingMemoryBound(to: spine_path_constraint_mix_timeline_wrapper.self), frame, time, mixRotate, mixX, mixY) } - deinit { + public func dispose() { spine_path_constraint_mix_timeline_dispose(_ptr.assumingMemoryBound(to: spine_path_constraint_mix_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/path_constraint_pose.swift b/spine-ios/Sources/SpineSwift/Generated/path_constraint_pose.swift index af5d28350..f05219b90 100644 --- a/spine-ios/Sources/SpineSwift/Generated/path_constraint_pose.swift +++ b/spine-ios/Sources/SpineSwift/Generated/path_constraint_pose.swift @@ -99,7 +99,7 @@ public class PathConstraintPose { spine_path_constraint_pose_set(_ptr.assumingMemoryBound(to: spine_path_constraint_pose_wrapper.self), pose._ptr.assumingMemoryBound(to: spine_path_constraint_pose_wrapper.self)) } - deinit { + public func dispose() { spine_path_constraint_pose_dispose(_ptr.assumingMemoryBound(to: spine_path_constraint_pose_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/path_constraint_position_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/path_constraint_position_timeline.swift index 4e8a6f6b8..afc4a9800 100644 --- a/spine-ios/Sources/SpineSwift/Generated/path_constraint_position_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/path_constraint_position_timeline.swift @@ -43,7 +43,7 @@ public class PathConstraintPositionTimeline: ConstraintTimeline1 { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_path_constraint_position_timeline_dispose(_ptr.assumingMemoryBound(to: spine_path_constraint_position_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/path_constraint_spacing_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/path_constraint_spacing_timeline.swift index 7fd579b7d..deb583779 100644 --- a/spine-ios/Sources/SpineSwift/Generated/path_constraint_spacing_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/path_constraint_spacing_timeline.swift @@ -43,7 +43,7 @@ public class PathConstraintSpacingTimeline: ConstraintTimeline1 { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_path_constraint_spacing_timeline_dispose(_ptr.assumingMemoryBound(to: spine_path_constraint_spacing_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/physics_constraint.swift b/spine-ios/Sources/SpineSwift/Generated/physics_constraint.swift index 32d148bf6..e5491eed3 100644 --- a/spine-ios/Sources/SpineSwift/Generated/physics_constraint.swift +++ b/spine-ios/Sources/SpineSwift/Generated/physics_constraint.swift @@ -121,7 +121,7 @@ public class PhysicsConstraint: PosedActive, Posed, Constraint { return Rtti(fromPointer: result!) } - deinit { + public override func dispose() { spine_physics_constraint_dispose(_ptr.assumingMemoryBound(to: spine_physics_constraint_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_damping_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_damping_timeline.swift index a0d9b9d33..2c65cdd02 100644 --- a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_damping_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_damping_timeline.swift @@ -43,7 +43,7 @@ public class PhysicsConstraintDampingTimeline: PhysicsConstraintTimeline { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_physics_constraint_damping_timeline_dispose(_ptr.assumingMemoryBound(to: spine_physics_constraint_damping_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_data.swift b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_data.swift index d098ce5b7..a25dc1259 100644 --- a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_data.swift +++ b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_data.swift @@ -228,7 +228,7 @@ public class PhysicsConstraintData: PosedData, ConstraintData { return Rtti(fromPointer: result!) } - deinit { + public override func dispose() { spine_physics_constraint_data_dispose(_ptr.assumingMemoryBound(to: spine_physics_constraint_data_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_gravity_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_gravity_timeline.swift index f36537726..02dfd1571 100644 --- a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_gravity_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_gravity_timeline.swift @@ -43,7 +43,7 @@ public class PhysicsConstraintGravityTimeline: PhysicsConstraintTimeline { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_physics_constraint_gravity_timeline_dispose(_ptr.assumingMemoryBound(to: spine_physics_constraint_gravity_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_inertia_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_inertia_timeline.swift index 460b61373..7dfdb4eec 100644 --- a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_inertia_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_inertia_timeline.swift @@ -43,7 +43,7 @@ public class PhysicsConstraintInertiaTimeline: PhysicsConstraintTimeline { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_physics_constraint_inertia_timeline_dispose(_ptr.assumingMemoryBound(to: spine_physics_constraint_inertia_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_mass_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_mass_timeline.swift index 0a228c357..4d62c89bb 100644 --- a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_mass_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_mass_timeline.swift @@ -43,7 +43,7 @@ public class PhysicsConstraintMassTimeline: PhysicsConstraintTimeline { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_physics_constraint_mass_timeline_dispose(_ptr.assumingMemoryBound(to: spine_physics_constraint_mass_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_mix_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_mix_timeline.swift index bd37c5ce8..3935c602b 100644 --- a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_mix_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_mix_timeline.swift @@ -43,7 +43,7 @@ public class PhysicsConstraintMixTimeline: PhysicsConstraintTimeline { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_physics_constraint_mix_timeline_dispose(_ptr.assumingMemoryBound(to: spine_physics_constraint_mix_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_pose.swift b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_pose.swift index fefe3f9f2..64169ffcc 100644 --- a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_pose.swift +++ b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_pose.swift @@ -119,7 +119,7 @@ public class PhysicsConstraintPose { spine_physics_constraint_pose_set(_ptr.assumingMemoryBound(to: spine_physics_constraint_pose_wrapper.self), pose._ptr.assumingMemoryBound(to: spine_physics_constraint_pose_wrapper.self)) } - deinit { + public func dispose() { spine_physics_constraint_pose_dispose(_ptr.assumingMemoryBound(to: spine_physics_constraint_pose_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_reset_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_reset_timeline.swift index 1bd7875f5..9fa3cfade 100644 --- a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_reset_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_reset_timeline.swift @@ -57,7 +57,7 @@ public class PhysicsConstraintResetTimeline: Timeline, ConstraintTimeline { spine_physics_constraint_reset_timeline_set_frame(_ptr.assumingMemoryBound(to: spine_physics_constraint_reset_timeline_wrapper.self), frame, time) } - deinit { + public func dispose() { spine_physics_constraint_reset_timeline_dispose(_ptr.assumingMemoryBound(to: spine_physics_constraint_reset_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_strength_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_strength_timeline.swift index 20d3f1f34..85133c746 100644 --- a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_strength_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_strength_timeline.swift @@ -43,7 +43,7 @@ public class PhysicsConstraintStrengthTimeline: PhysicsConstraintTimeline { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_physics_constraint_strength_timeline_dispose(_ptr.assumingMemoryBound(to: spine_physics_constraint_strength_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_wind_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_wind_timeline.swift index b90625fe6..6c808299f 100644 --- a/spine-ios/Sources/SpineSwift/Generated/physics_constraint_wind_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/physics_constraint_wind_timeline.swift @@ -43,7 +43,7 @@ public class PhysicsConstraintWindTimeline: PhysicsConstraintTimeline { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_physics_constraint_wind_timeline_dispose(_ptr.assumingMemoryBound(to: spine_physics_constraint_wind_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/point_attachment.swift b/spine-ios/Sources/SpineSwift/Generated/point_attachment.swift index dd26154f4..135a44db7 100644 --- a/spine-ios/Sources/SpineSwift/Generated/point_attachment.swift +++ b/spine-ios/Sources/SpineSwift/Generated/point_attachment.swift @@ -83,7 +83,7 @@ public class PointAttachment: Attachment { return result } - deinit { + public func dispose() { spine_point_attachment_dispose(_ptr.assumingMemoryBound(to: spine_point_attachment_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/posed_active.swift b/spine-ios/Sources/SpineSwift/Generated/posed_active.swift index 2e62c7f4b..69b30ec42 100644 --- a/spine-ios/Sources/SpineSwift/Generated/posed_active.swift +++ b/spine-ios/Sources/SpineSwift/Generated/posed_active.swift @@ -52,7 +52,7 @@ public class PosedActive { } } - deinit { + public func dispose() { spine_posed_active_dispose(_ptr.assumingMemoryBound(to: spine_posed_active_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/posed_data.swift b/spine-ios/Sources/SpineSwift/Generated/posed_data.swift index 409121e36..8bd9224f5 100644 --- a/spine-ios/Sources/SpineSwift/Generated/posed_data.swift +++ b/spine-ios/Sources/SpineSwift/Generated/posed_data.swift @@ -60,7 +60,7 @@ public class PosedData { } } - deinit { + public func dispose() { spine_posed_data_dispose(_ptr.assumingMemoryBound(to: spine_posed_data_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/region_attachment.swift b/spine-ios/Sources/SpineSwift/Generated/region_attachment.swift index 68efc11a6..10044dd73 100644 --- a/spine-ios/Sources/SpineSwift/Generated/region_attachment.swift +++ b/spine-ios/Sources/SpineSwift/Generated/region_attachment.swift @@ -166,7 +166,7 @@ public class RegionAttachment: Attachment { spine_region_attachment_compute_world_vertices_2(_ptr.assumingMemoryBound(to: spine_region_attachment_wrapper.self), slot._ptr.assumingMemoryBound(to: spine_slot_wrapper.self), worldVertices._ptr.assumingMemoryBound(to: spine_array_float_wrapper.self), offset, stride) } - deinit { + public func dispose() { spine_region_attachment_dispose(_ptr.assumingMemoryBound(to: spine_region_attachment_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/render_command.swift b/spine-ios/Sources/SpineSwift/Generated/render_command.swift index 0391b2a16..84e01caa5 100644 --- a/spine-ios/Sources/SpineSwift/Generated/render_command.swift +++ b/spine-ios/Sources/SpineSwift/Generated/render_command.swift @@ -90,7 +90,7 @@ public class RenderCommand { return result.map { RenderCommand(fromPointer: $0) } } - deinit { + public func dispose() { spine_render_command_dispose(_ptr.assumingMemoryBound(to: spine_render_command_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/rgb2_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/rgb2_timeline.swift index 23daa5263..4c096552e 100644 --- a/spine-ios/Sources/SpineSwift/Generated/rgb2_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/rgb2_timeline.swift @@ -47,7 +47,7 @@ public class Rgb2Timeline: SlotCurveTimeline { spine_rgb2_timeline_set_frame(_ptr.assumingMemoryBound(to: spine_rgb2_timeline_wrapper.self), frame, time, r, g, b, r2, g2, b2) } - deinit { + public func dispose() { spine_rgb2_timeline_dispose(_ptr.assumingMemoryBound(to: spine_rgb2_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/rgb_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/rgb_timeline.swift index b2a2bae59..350780880 100644 --- a/spine-ios/Sources/SpineSwift/Generated/rgb_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/rgb_timeline.swift @@ -47,7 +47,7 @@ public class RgbTimeline: SlotCurveTimeline { spine_rgb_timeline_set_frame(_ptr.assumingMemoryBound(to: spine_rgb_timeline_wrapper.self), frame, time, r, g, b) } - deinit { + public func dispose() { spine_rgb_timeline_dispose(_ptr.assumingMemoryBound(to: spine_rgb_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/rgba2_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/rgba2_timeline.swift index f5e4f2cb0..544ce2835 100644 --- a/spine-ios/Sources/SpineSwift/Generated/rgba2_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/rgba2_timeline.swift @@ -47,7 +47,7 @@ public class Rgba2Timeline: SlotCurveTimeline { spine_rgba2_timeline_set_frame(_ptr.assumingMemoryBound(to: spine_rgba2_timeline_wrapper.self), frame, time, r, g, b, a, r2, g2, b2) } - deinit { + public func dispose() { spine_rgba2_timeline_dispose(_ptr.assumingMemoryBound(to: spine_rgba2_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/rgba_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/rgba_timeline.swift index 5c751ee50..6432335ad 100644 --- a/spine-ios/Sources/SpineSwift/Generated/rgba_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/rgba_timeline.swift @@ -47,7 +47,7 @@ public class RgbaTimeline: SlotCurveTimeline { spine_rgba_timeline_set_frame(_ptr.assumingMemoryBound(to: spine_rgba_timeline_wrapper.self), frame, time, r, g, b, a) } - deinit { + public func dispose() { spine_rgba_timeline_dispose(_ptr.assumingMemoryBound(to: spine_rgba_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/rotate_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/rotate_timeline.swift index cb4fbe735..fad4c1808 100644 --- a/spine-ios/Sources/SpineSwift/Generated/rotate_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/rotate_timeline.swift @@ -43,7 +43,7 @@ public class RotateTimeline: BoneTimeline1 { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_rotate_timeline_dispose(_ptr.assumingMemoryBound(to: spine_rotate_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/scale_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/scale_timeline.swift index dc8af8936..802b157a2 100644 --- a/spine-ios/Sources/SpineSwift/Generated/scale_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/scale_timeline.swift @@ -43,7 +43,7 @@ public class ScaleTimeline: BoneTimeline2 { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_scale_timeline_dispose(_ptr.assumingMemoryBound(to: spine_scale_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/scale_x_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/scale_x_timeline.swift index d825e0f7e..ebcb69dd0 100644 --- a/spine-ios/Sources/SpineSwift/Generated/scale_x_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/scale_x_timeline.swift @@ -43,7 +43,7 @@ public class ScaleXTimeline: BoneTimeline1 { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_scale_x_timeline_dispose(_ptr.assumingMemoryBound(to: spine_scale_x_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/scale_y_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/scale_y_timeline.swift index a58e24970..26b1916c3 100644 --- a/spine-ios/Sources/SpineSwift/Generated/scale_y_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/scale_y_timeline.swift @@ -43,7 +43,7 @@ public class ScaleYTimeline: BoneTimeline1 { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_scale_y_timeline_dispose(_ptr.assumingMemoryBound(to: spine_scale_y_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/sequence_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/sequence_timeline.swift index 256523043..f7ba83e78 100644 --- a/spine-ios/Sources/SpineSwift/Generated/sequence_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/sequence_timeline.swift @@ -79,7 +79,7 @@ public class SequenceTimeline: Timeline, SlotTimeline { spine_sequence_timeline_set_frame(_ptr.assumingMemoryBound(to: spine_sequence_timeline_wrapper.self), frame, time, spine_sequence_mode(rawValue: UInt32(mode.rawValue)), index, delay) } - deinit { + public func dispose() { spine_sequence_timeline_dispose(_ptr.assumingMemoryBound(to: spine_sequence_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/shear_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/shear_timeline.swift index cc8bd32a8..64265484c 100644 --- a/spine-ios/Sources/SpineSwift/Generated/shear_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/shear_timeline.swift @@ -43,7 +43,7 @@ public class ShearTimeline: BoneTimeline2 { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_shear_timeline_dispose(_ptr.assumingMemoryBound(to: spine_shear_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/shear_x_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/shear_x_timeline.swift index 5f621993b..720f07b00 100644 --- a/spine-ios/Sources/SpineSwift/Generated/shear_x_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/shear_x_timeline.swift @@ -43,7 +43,7 @@ public class ShearXTimeline: BoneTimeline1 { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_shear_x_timeline_dispose(_ptr.assumingMemoryBound(to: spine_shear_x_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/shear_y_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/shear_y_timeline.swift index 2c96b33f2..7278dc42d 100644 --- a/spine-ios/Sources/SpineSwift/Generated/shear_y_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/shear_y_timeline.swift @@ -43,7 +43,7 @@ public class ShearYTimeline: BoneTimeline1 { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_shear_y_timeline_dispose(_ptr.assumingMemoryBound(to: spine_shear_y_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/skeleton_binary.swift b/spine-ios/Sources/SpineSwift/Generated/skeleton_binary.swift index 846d75eca..99515ec48 100644 --- a/spine-ios/Sources/SpineSwift/Generated/skeleton_binary.swift +++ b/spine-ios/Sources/SpineSwift/Generated/skeleton_binary.swift @@ -67,7 +67,7 @@ public class SkeletonBinary { return result.map { SkeletonData(fromPointer: $0) } } - deinit { + public func dispose() { spine_skeleton_binary_dispose(_ptr.assumingMemoryBound(to: spine_skeleton_binary_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/skeleton_bounds.swift b/spine-ios/Sources/SpineSwift/Generated/skeleton_bounds.swift index f461deda1..ee66e67e4 100644 --- a/spine-ios/Sources/SpineSwift/Generated/skeleton_bounds.swift +++ b/spine-ios/Sources/SpineSwift/Generated/skeleton_bounds.swift @@ -134,7 +134,7 @@ public class SkeletonBounds { return result } - deinit { + public func dispose() { spine_skeleton_bounds_dispose(_ptr.assumingMemoryBound(to: spine_skeleton_bounds_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/skeleton_clipping.swift b/spine-ios/Sources/SpineSwift/Generated/skeleton_clipping.swift index f4f4b23f7..1ce825ab0 100644 --- a/spine-ios/Sources/SpineSwift/Generated/skeleton_clipping.swift +++ b/spine-ios/Sources/SpineSwift/Generated/skeleton_clipping.swift @@ -83,7 +83,7 @@ public class SkeletonClipping { return result } - deinit { + public func dispose() { spine_skeleton_clipping_dispose(_ptr.assumingMemoryBound(to: spine_skeleton_clipping_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/skeleton_data.swift b/spine-ios/Sources/SpineSwift/Generated/skeleton_data.swift index f67f7e9f2..01004f120 100644 --- a/spine-ios/Sources/SpineSwift/Generated/skeleton_data.swift +++ b/spine-ios/Sources/SpineSwift/Generated/skeleton_data.swift @@ -220,7 +220,7 @@ public class SkeletonData { return result.map { Animation(fromPointer: $0) } } - deinit { + public func dispose() { spine_skeleton_data_dispose(_ptr.assumingMemoryBound(to: spine_skeleton_data_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/skeleton_json.swift b/spine-ios/Sources/SpineSwift/Generated/skeleton_json.swift index 774f6e725..b8515ca0c 100644 --- a/spine-ios/Sources/SpineSwift/Generated/skeleton_json.swift +++ b/spine-ios/Sources/SpineSwift/Generated/skeleton_json.swift @@ -72,7 +72,7 @@ public class SkeletonJson { return result.map { SkeletonData(fromPointer: $0) } } - deinit { + public func dispose() { spine_skeleton_json_dispose(_ptr.assumingMemoryBound(to: spine_skeleton_json_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/skeleton_renderer.swift b/spine-ios/Sources/SpineSwift/Generated/skeleton_renderer.swift index 4261a0aec..098b3253b 100644 --- a/spine-ios/Sources/SpineSwift/Generated/skeleton_renderer.swift +++ b/spine-ios/Sources/SpineSwift/Generated/skeleton_renderer.swift @@ -50,7 +50,7 @@ public class SkeletonRenderer { return result.map { RenderCommand(fromPointer: $0) } } - deinit { + public func dispose() { spine_skeleton_renderer_dispose(_ptr.assumingMemoryBound(to: spine_skeleton_renderer_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/slider_data.swift b/spine-ios/Sources/SpineSwift/Generated/slider_data.swift index 2b3f6441e..e90ad3ffb 100644 --- a/spine-ios/Sources/SpineSwift/Generated/slider_data.swift +++ b/spine-ios/Sources/SpineSwift/Generated/slider_data.swift @@ -176,7 +176,7 @@ public class SliderData: PosedData, ConstraintData { return Rtti(fromPointer: result!) } - deinit { + public override func dispose() { spine_slider_data_dispose(_ptr.assumingMemoryBound(to: spine_slider_data_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/slider_mix_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/slider_mix_timeline.swift index 8519374f7..19eec2110 100644 --- a/spine-ios/Sources/SpineSwift/Generated/slider_mix_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/slider_mix_timeline.swift @@ -43,7 +43,7 @@ public class SliderMixTimeline: ConstraintTimeline1 { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_slider_mix_timeline_dispose(_ptr.assumingMemoryBound(to: spine_slider_mix_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/slider_pose.swift b/spine-ios/Sources/SpineSwift/Generated/slider_pose.swift index ab6483715..b0c9dd898 100644 --- a/spine-ios/Sources/SpineSwift/Generated/slider_pose.swift +++ b/spine-ios/Sources/SpineSwift/Generated/slider_pose.swift @@ -69,7 +69,7 @@ public class SliderPose { spine_slider_pose_set(_ptr.assumingMemoryBound(to: spine_slider_pose_wrapper.self), pose._ptr.assumingMemoryBound(to: spine_slider_pose_wrapper.self)) } - deinit { + public func dispose() { spine_slider_pose_dispose(_ptr.assumingMemoryBound(to: spine_slider_pose_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/slider_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/slider_timeline.swift index b86d61576..291556826 100644 --- a/spine-ios/Sources/SpineSwift/Generated/slider_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/slider_timeline.swift @@ -43,7 +43,7 @@ public class SliderTimeline: ConstraintTimeline1 { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_slider_timeline_dispose(_ptr.assumingMemoryBound(to: spine_slider_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/slot_data.swift b/spine-ios/Sources/SpineSwift/Generated/slot_data.swift index fe00871a9..7ce4e9990 100644 --- a/spine-ios/Sources/SpineSwift/Generated/slot_data.swift +++ b/spine-ios/Sources/SpineSwift/Generated/slot_data.swift @@ -88,7 +88,7 @@ public class SlotData: PosedData { return SlotPose(fromPointer: result!) } - deinit { + public override func dispose() { spine_slot_data_dispose(_ptr.assumingMemoryBound(to: spine_slot_data_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/slot_pose.swift b/spine-ios/Sources/SpineSwift/Generated/slot_pose.swift index 02e916304..bde2dbaae 100644 --- a/spine-ios/Sources/SpineSwift/Generated/slot_pose.swift +++ b/spine-ios/Sources/SpineSwift/Generated/slot_pose.swift @@ -112,7 +112,7 @@ public class SlotPose { spine_slot_pose_set(_ptr.assumingMemoryBound(to: spine_slot_pose_wrapper.self), pose._ptr.assumingMemoryBound(to: spine_slot_pose_wrapper.self)) } - deinit { + public func dispose() { spine_slot_pose_dispose(_ptr.assumingMemoryBound(to: spine_slot_pose_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/texture_region.swift b/spine-ios/Sources/SpineSwift/Generated/texture_region.swift index 5dcc147a2..e1288313d 100644 --- a/spine-ios/Sources/SpineSwift/Generated/texture_region.swift +++ b/spine-ios/Sources/SpineSwift/Generated/texture_region.swift @@ -115,7 +115,7 @@ public class TextureRegion { return Rtti(fromPointer: result!) } - deinit { + public func dispose() { spine_texture_region_dispose(_ptr.assumingMemoryBound(to: spine_texture_region_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/to_rotate.swift b/spine-ios/Sources/SpineSwift/Generated/to_rotate.swift index 800193bed..098bd0826 100644 --- a/spine-ios/Sources/SpineSwift/Generated/to_rotate.swift +++ b/spine-ios/Sources/SpineSwift/Generated/to_rotate.swift @@ -43,7 +43,7 @@ public class ToRotate: ToProperty { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_to_rotate_dispose(_ptr.assumingMemoryBound(to: spine_to_rotate_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/to_scale_x.swift b/spine-ios/Sources/SpineSwift/Generated/to_scale_x.swift index b4776e1a3..a6d713dfe 100644 --- a/spine-ios/Sources/SpineSwift/Generated/to_scale_x.swift +++ b/spine-ios/Sources/SpineSwift/Generated/to_scale_x.swift @@ -43,7 +43,7 @@ public class ToScaleX: ToProperty { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_to_scale_x_dispose(_ptr.assumingMemoryBound(to: spine_to_scale_x_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/to_scale_y.swift b/spine-ios/Sources/SpineSwift/Generated/to_scale_y.swift index 65e1bcec8..beca70c14 100644 --- a/spine-ios/Sources/SpineSwift/Generated/to_scale_y.swift +++ b/spine-ios/Sources/SpineSwift/Generated/to_scale_y.swift @@ -43,7 +43,7 @@ public class ToScaleY: ToProperty { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_to_scale_y_dispose(_ptr.assumingMemoryBound(to: spine_to_scale_y_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/to_shear_y.swift b/spine-ios/Sources/SpineSwift/Generated/to_shear_y.swift index 64f4c7a5b..5e1c799ee 100644 --- a/spine-ios/Sources/SpineSwift/Generated/to_shear_y.swift +++ b/spine-ios/Sources/SpineSwift/Generated/to_shear_y.swift @@ -43,7 +43,7 @@ public class ToShearY: ToProperty { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_to_shear_y_dispose(_ptr.assumingMemoryBound(to: spine_to_shear_y_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/to_x.swift b/spine-ios/Sources/SpineSwift/Generated/to_x.swift index bf5abc5cd..2375beccc 100644 --- a/spine-ios/Sources/SpineSwift/Generated/to_x.swift +++ b/spine-ios/Sources/SpineSwift/Generated/to_x.swift @@ -43,7 +43,7 @@ public class ToX: ToProperty { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_to_x_dispose(_ptr.assumingMemoryBound(to: spine_to_x_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/to_y.swift b/spine-ios/Sources/SpineSwift/Generated/to_y.swift index 6964e6fa8..d26063ad5 100644 --- a/spine-ios/Sources/SpineSwift/Generated/to_y.swift +++ b/spine-ios/Sources/SpineSwift/Generated/to_y.swift @@ -43,7 +43,7 @@ public class ToY: ToProperty { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_to_y_dispose(_ptr.assumingMemoryBound(to: spine_to_y_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/track_entry.swift b/spine-ios/Sources/SpineSwift/Generated/track_entry.swift index 87d959b2f..c3d465cc9 100644 --- a/spine-ios/Sources/SpineSwift/Generated/track_entry.swift +++ b/spine-ios/Sources/SpineSwift/Generated/track_entry.swift @@ -325,7 +325,7 @@ public class TrackEntry { spine_track_entry_set_mix_duration_2(_ptr.assumingMemoryBound(to: spine_track_entry_wrapper.self), mixDuration, delay) } - deinit { + public func dispose() { spine_track_entry_dispose(_ptr.assumingMemoryBound(to: spine_track_entry_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/transform_constraint.swift b/spine-ios/Sources/SpineSwift/Generated/transform_constraint.swift index bead85c6a..5b13da95d 100644 --- a/spine-ios/Sources/SpineSwift/Generated/transform_constraint.swift +++ b/spine-ios/Sources/SpineSwift/Generated/transform_constraint.swift @@ -114,7 +114,7 @@ public class TransformConstraint: PosedActive, Posed, Constraint { return Rtti(fromPointer: result!) } - deinit { + public override func dispose() { spine_transform_constraint_dispose(_ptr.assumingMemoryBound(to: spine_transform_constraint_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/transform_constraint_data.swift b/spine-ios/Sources/SpineSwift/Generated/transform_constraint_data.swift index 97bd5f61f..8d9d40bb6 100644 --- a/spine-ios/Sources/SpineSwift/Generated/transform_constraint_data.swift +++ b/spine-ios/Sources/SpineSwift/Generated/transform_constraint_data.swift @@ -198,7 +198,7 @@ public class TransformConstraintData: PosedData, ConstraintData { return Rtti(fromPointer: result!) } - deinit { + public override func dispose() { spine_transform_constraint_data_dispose(_ptr.assumingMemoryBound(to: spine_transform_constraint_data_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/transform_constraint_pose.swift b/spine-ios/Sources/SpineSwift/Generated/transform_constraint_pose.swift index e4ee307c6..141f1a3b8 100644 --- a/spine-ios/Sources/SpineSwift/Generated/transform_constraint_pose.swift +++ b/spine-ios/Sources/SpineSwift/Generated/transform_constraint_pose.swift @@ -109,7 +109,7 @@ public class TransformConstraintPose { spine_transform_constraint_pose_set(_ptr.assumingMemoryBound(to: spine_transform_constraint_pose_wrapper.self), pose._ptr.assumingMemoryBound(to: spine_transform_constraint_pose_wrapper.self)) } - deinit { + public func dispose() { spine_transform_constraint_pose_dispose(_ptr.assumingMemoryBound(to: spine_transform_constraint_pose_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/transform_constraint_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/transform_constraint_timeline.swift index b657bf932..d9b5c346b 100644 --- a/spine-ios/Sources/SpineSwift/Generated/transform_constraint_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/transform_constraint_timeline.swift @@ -57,7 +57,7 @@ public class TransformConstraintTimeline: CurveTimeline, ConstraintTimeline { spine_transform_constraint_timeline_set_frame(_ptr.assumingMemoryBound(to: spine_transform_constraint_timeline_wrapper.self), frame, time, mixRotate, mixX, mixY, mixScaleX, mixScaleY, mixShearY) } - deinit { + public func dispose() { spine_transform_constraint_timeline_dispose(_ptr.assumingMemoryBound(to: spine_transform_constraint_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/translate_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/translate_timeline.swift index 2c5fca110..4f38670b0 100644 --- a/spine-ios/Sources/SpineSwift/Generated/translate_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/translate_timeline.swift @@ -43,7 +43,7 @@ public class TranslateTimeline: BoneTimeline2 { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_translate_timeline_dispose(_ptr.assumingMemoryBound(to: spine_translate_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/translate_x_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/translate_x_timeline.swift index 053536ccb..4775aa852 100644 --- a/spine-ios/Sources/SpineSwift/Generated/translate_x_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/translate_x_timeline.swift @@ -43,7 +43,7 @@ public class TranslateXTimeline: BoneTimeline1 { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_translate_x_timeline_dispose(_ptr.assumingMemoryBound(to: spine_translate_x_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/Sources/SpineSwift/Generated/translate_y_timeline.swift b/spine-ios/Sources/SpineSwift/Generated/translate_y_timeline.swift index d112a72f8..36a4bf986 100644 --- a/spine-ios/Sources/SpineSwift/Generated/translate_y_timeline.swift +++ b/spine-ios/Sources/SpineSwift/Generated/translate_y_timeline.swift @@ -43,7 +43,7 @@ public class TranslateYTimeline: BoneTimeline1 { self.init(fromPointer: ptr!) } - deinit { + public func dispose() { spine_translate_y_timeline_dispose(_ptr.assumingMemoryBound(to: spine_translate_y_timeline_wrapper.self)) } } \ No newline at end of file diff --git a/spine-ios/codegen/src/swift-writer.ts b/spine-ios/codegen/src/swift-writer.ts index 8b368ef70..8628c8004 100644 --- a/spine-ios/codegen/src/swift-writer.ts +++ b/spine-ios/codegen/src/swift-writer.ts @@ -704,11 +704,34 @@ ${declaration} {`; lines.push(''); } - // Add deinit if there's a dispose method + // Add dispose() method instead of deinit if (hasDispose) { const disposeMethod = swiftClass.members.find(m => m.name === '__dispose__'); if (disposeMethod) { - lines.push(' deinit {'); + // Add override if this class extends another CONCRETE class (abstract classes don't have dispose) + let override = ''; + if (swiftClass.inheritance.extends) { + // Find the C++ name for this Swift class + let cppName = ''; + for (const [cName, cClass] of this.classMap.entries()) { + if (this.toSwiftTypeName(cName) === swiftClass.name) { + cppName = cName; + break; + } + } + + if (cppName) { + const parentCName = this.inheritance[cppName]?.extends; + if (parentCName) { + const parentClass = this.classMap.get(parentCName); + // Only override if parent is concrete and has destructor + if (parentClass && !parentClass.cppType.isAbstract && parentClass.destructor) { + override = 'override '; + } + } + } + } + lines.push(` public ${override}func dispose() {`); lines.push(` ${disposeMethod.implementation}`); lines.push(' }'); } diff --git a/spine-ios/test/Package.swift b/spine-ios/test/Package.swift index c1bebe498..6cb872713 100644 --- a/spine-ios/test/Package.swift +++ b/spine-ios/test/Package.swift @@ -19,14 +19,6 @@ let package = Package( .product(name: "SpineSwift", package: "spine-runtimes") ], path: "src" - ), - .executableTarget( - name: "SimpleTest", - dependencies: [ - .product(name: "SpineC", package: "spine-runtimes"), - .product(name: "SpineSwift", package: "spine-runtimes") - ], - path: "simpletest" ) ] ) \ No newline at end of file diff --git a/spine-ios/test/src/skeleton_drawable_test.swift b/spine-ios/test/src/skeleton_drawable_test.swift index d24bd238e..aef761320 100644 --- a/spine-ios/test/src/skeleton_drawable_test.swift +++ b/spine-ios/test/src/skeleton_drawable_test.swift @@ -3,20 +3,20 @@ import SpineC func runSkeletonDrawableTest() { print("Testing SkeletonDrawable and event listeners...") - + // Enable debug extension if needed spine_enable_debug_extension(false) - + // Load atlas and skeleton data let atlasPath = "../../spine-ts/assets/spineboy.atlas" let jsonPath = "../../spine-ts/assets/spineboy-pro.json" - + // Read atlas file guard let atlasData = try? String(contentsOfFile: atlasPath, encoding: .utf8) else { print("❌ Failed to read atlas file: \(atlasPath)") return } - + // Load atlas let atlasResult = spine_atlas_load(atlasData) guard let atlas = spine_atlas_result_get_atlas(atlasResult) else { @@ -30,14 +30,14 @@ func runSkeletonDrawableTest() { } spine_atlas_result_dispose(atlasResult) print("✓ Atlas loaded successfully") - + // Read skeleton JSON guard let skeletonJson = try? String(contentsOfFile: jsonPath, encoding: .utf8) else { print("❌ Failed to read skeleton JSON file: \(jsonPath)") spine_atlas_dispose(atlas) return } - + // Load skeleton data let skeletonDataResult = spine_skeleton_data_load_json(atlas, skeletonJson, jsonPath) guard let skeletonData = spine_skeleton_data_result_get_data(skeletonDataResult) else { @@ -52,15 +52,15 @@ func runSkeletonDrawableTest() { } spine_skeleton_data_result_dispose(skeletonDataResult) print("✓ Skeleton data loaded successfully") - + // Create skeleton drawable let drawable = spine_skeleton_drawable_create(skeletonData) print("✓ SkeletonDrawable created successfully") - + // Get skeleton and animation state let skeleton = spine_skeleton_drawable_get_skeleton(drawable) let animationState = spine_skeleton_drawable_get_animation_state(drawable) - + // Test skeleton bounds print("\nTesting skeleton bounds:") let boundsArray = spine_array_float_create_with_capacity(4) @@ -72,11 +72,11 @@ func runSkeletonDrawableTest() { let height = buffer[3] print(" Initial bounds: x=\(x), y=\(y), width=\(width), height=\(height)") } - + // Set skeleton to pose and update bounds spine_skeleton_setup_pose(skeleton) spine_skeleton_update_world_transform(skeleton, SPINE_PHYSICS_NONE) - + spine_skeleton_get_bounds(skeleton, boundsArray) if let buffer = spine_array_float_buffer(boundsArray), spine_array_float_size(boundsArray) == 4 { let x = buffer[0] @@ -85,17 +85,24 @@ func runSkeletonDrawableTest() { let height = buffer[3] print(" Bounds after setupPose: x=\(x), y=\(y), width=\(width), height=\(height)") } - - // Set an animation + + // Set an animation and setup track entry listener let trackEntry = spine_animation_state_set_animation_1(animationState, 0, "walk", true) print("✓ Set animation: walk") + // Test track entry properties + if let trackEntry = trackEntry { + let trackIndex = spine_track_entry_get_track_index(trackEntry) + let loop = spine_track_entry_get_loop(trackEntry) + print(" Track entry: index=\(trackIndex), loop=\(loop)") + } + // Update several times to trigger events print("\nUpdating animation state...") for i in 0..<5 { spine_animation_state_update(animationState, 0.016) // ~60fps spine_animation_state_apply(animationState, skeleton) - + // Check for events let events = spine_skeleton_drawable_get_animation_state_events(drawable) let numEvents = spine_animation_state_events_get_num_events(events) @@ -112,16 +119,16 @@ func runSkeletonDrawableTest() { } spine_animation_state_events_reset(events) } - + // Test switching animations print("\nSwitching to run animation...") spine_animation_state_set_animation_1(animationState, 0, "run", true) - + // Update a few more times for i in 0..<3 { spine_animation_state_update(animationState, 0.016) spine_animation_state_apply(animationState, skeleton) - + let events = spine_skeleton_drawable_get_animation_state_events(drawable) let numEvents = spine_animation_state_events_get_num_events(events) if numEvents > 0 { @@ -129,7 +136,7 @@ func runSkeletonDrawableTest() { } spine_animation_state_events_reset(events) } - + // Test bounds after animation updates print("\nTesting bounds after animation:") spine_skeleton_update_world_transform(skeleton, SPINE_PHYSICS_NONE) @@ -141,14 +148,14 @@ func runSkeletonDrawableTest() { let height = buffer[3] print(" Bounds after animation: x=\(x), y=\(y), width=\(width), height=\(height)") } - + // Test with different animations that might have different bounds print("\nTesting bounds with jump animation:") spine_animation_state_set_animation_1(animationState, 0, "jump", false) spine_animation_state_update(animationState, 0.5) // Update to middle of jump spine_animation_state_apply(animationState, skeleton) spine_skeleton_update_world_transform(skeleton, SPINE_PHYSICS_NONE) - + spine_skeleton_get_bounds(skeleton, boundsArray) if let buffer = spine_array_float_buffer(boundsArray), spine_array_float_size(boundsArray) == 4 { let x = buffer[0] @@ -157,17 +164,17 @@ func runSkeletonDrawableTest() { let height = buffer[3] print(" Bounds during jump: x=\(x), y=\(y), width=\(width), height=\(height)") } - + // Cleanup spine_array_float_dispose(boundsArray) spine_skeleton_drawable_dispose(drawable) spine_skeleton_data_dispose(skeletonData) spine_atlas_dispose(atlas) - + // Report memory leaks if debug extension is enabled spine_report_leaks() - - print("\n✓ Test complete") + + print("\n✓ SpineC API Test complete") } // Test function is called from main.swift diff --git a/spine-ios/test/src/skeleton_drawable_test_swift.swift b/spine-ios/test/src/skeleton_drawable_test_swift.swift index bcc829496..9920f02c1 100644 --- a/spine-ios/test/src/skeleton_drawable_test_swift.swift +++ b/spine-ios/test/src/skeleton_drawable_test_swift.swift @@ -3,17 +3,17 @@ import SpineSwift func runSkeletonDrawableTestSwift() { print("Testing SkeletonDrawable with SpineSwift API...") - + print("Step 1: Enable debug extension") // Enable debug extension if needed enableDebugExtension(false) print(" Debug extension configured") - + print("Step 2: Load file paths") // Load atlas and skeleton data let atlasPath = "../../spine-ts/assets/spineboy.atlas" let jsonPath = "../../spine-ts/assets/spineboy-pro.json" - + print("Step 3: Read atlas file") // Read atlas file guard let atlasData = try? String(contentsOfFile: atlasPath, encoding: .utf8) else { @@ -21,7 +21,7 @@ func runSkeletonDrawableTestSwift() { return } print(" Atlas file read successfully") - + print("Step 4: Load atlas with SpineSwift API") // Load atlas let atlas: Atlas @@ -32,14 +32,14 @@ func runSkeletonDrawableTestSwift() { print("❌ Failed to load atlas: \(error)") return } - + // Read skeleton JSON guard let skeletonJson = try? String(contentsOfFile: jsonPath, encoding: .utf8) else { print("❌ Failed to read skeleton JSON file: \(jsonPath)") // atlas will be freed when out of scope return } - + // Load skeleton data let skeletonData: SkeletonData do { @@ -50,27 +50,27 @@ func runSkeletonDrawableTestSwift() { // atlas will be freed when out of scope return } - + // Create skeleton drawable let drawable = SkeletonDrawable(skeletonData: skeletonData) print("✓ SkeletonDrawable created successfully") - + // Test skeleton bounds print("\nTesting skeleton bounds:") let initialBounds = drawable.skeleton.bounds print(" Initial bounds: x=\(initialBounds.x), y=\(initialBounds.y), width=\(initialBounds.width), height=\(initialBounds.height)") - + // Set skeleton to pose and update bounds drawable.skeleton.setupPose() drawable.skeleton.updateWorldTransform(Physics.none) - + let boundsAfterPose = drawable.skeleton.bounds print(" Bounds after setupPose: x=\(boundsAfterPose.x), y=\(boundsAfterPose.y), width=\(boundsAfterPose.width), height=\(boundsAfterPose.height)") - + // Test position let position = drawable.skeleton.getPosition() print(" Skeleton position: x=\(position.x), y=\(position.y)") - + // Set up animation state listener var eventCount = 0 drawable.animationState.setListener { type, trackEntry, event in @@ -80,11 +80,11 @@ func runSkeletonDrawableTestSwift() { print(" Event name: \(event.data.name)") } } - + // Set an animation let trackEntry = drawable.animationState.setAnimation(0, "walk", true) print("✓ Set animation: walk") - + // Set track entry listener trackEntry.setListener { type, entry, event in print(" TrackEntry event: type=\(type)") @@ -92,59 +92,141 @@ func runSkeletonDrawableTestSwift() { print(" Event data: \(event.data.name)") } } - + // Update several times to trigger events print("\nUpdating animation state...") for i in 0..<5 { drawable.update(0.016) // ~60fps print(" Frame \(i): updated") } - + // Test switching animations print("\nSwitching to run animation...") _ = drawable.animationState.setAnimation(0, "run", true) - + // Update a few more times for i in 0..<3 { drawable.update(0.016) print(" Frame \(i): updated after switching") } - + // Test bounds after animation updates print("\nTesting bounds after animation:") drawable.skeleton.updateWorldTransform(Physics.none) let boundsAfterAnimation = drawable.skeleton.bounds print(" Bounds after animation: x=\(boundsAfterAnimation.x), y=\(boundsAfterAnimation.y), width=\(boundsAfterAnimation.width), height=\(boundsAfterAnimation.height)") - + // Test with different animations that might have different bounds print("\nTesting bounds with jump animation:") _ = drawable.animationState.setAnimation(0, "jump", false) drawable.update(0.5) // Update to middle of jump - + let boundsAfterJump = drawable.skeleton.bounds print(" Bounds during jump: x=\(boundsAfterJump.x), y=\(boundsAfterJump.y), width=\(boundsAfterJump.width), height=\(boundsAfterJump.height)") - + // Test skin entries print("\nTesting skin entries:") - if let skin = drawable.skeleton.skin { - let entries = skin.getEntries() - print(" Skin has \(entries.count) entries") - if entries.count > 0 { - let firstEntry = entries[0] - print(" First entry: slot=\(firstEntry.slotIndex), name=\(firstEntry.name), has attachment=\(firstEntry.attachment != nil)") + + // First, check available skins + let skins = skeletonData.skins + print(" Available skins: \(skins.count)") + if skins.count > 0 { + // List all skin names + for i in 0.. 3 { + print(" ... and \(entries.count - 3) more entries") + } + } else { + print(" No skin is currently set") + } + // Test bone pose transformations print("\nTesting bone pose transformations:") if let rootBone = drawable.skeleton.rootBone { + // Test bone properties + let bonePose = rootBone.appliedPose + print(" Root bone: name=\(rootBone.data.name), x=\(bonePose.x), y=\(bonePose.y)") + + // Get the bone's transform matrix from applied pose + let a = bonePose.a + let b = bonePose.b + let c = bonePose.c + let d = bonePose.d + let worldX = bonePose.worldX + let worldY = bonePose.worldY + print(" Root bone transform: a=\(a), b=\(b), c=\(c), d=\(d), worldX=\(worldX), worldY=\(worldY)") + + // Use BonePose's built-in transformation methods let worldPoint = Vector(x: 100, y: 100) - // Note: worldToLocal is on BonePose, not Bone - // We would need to get the pose from the bone - // For now, skip this test - print(" Bone pose transformations test skipped (need to access BonePose)") + let localPoint = bonePose.worldToLocal(worldX: worldPoint.x, worldY: worldPoint.y) + print(" World point (100, 100) -> Local: (\(localPoint.x), \(localPoint.y))") + + // Test local to world transformation + let backToWorld = bonePose.localToWorld(localX: localPoint.x, localY: localPoint.y) + print(" Local back to world: (\(backToWorld.x), \(backToWorld.y))") + + // Test rotation and scale from the pose + let rotation = bonePose.rotation + let scaleX = bonePose.scaleX + let scaleY = bonePose.scaleY + print(" Bone rotation: \(rotation), scale: (\(scaleX), \(scaleY))") + + // Test parent transformation if parent exists + if let parentBone = rootBone.parent { + let parentPose = parentBone.appliedPose + print(" Parent bone: name=\(parentBone.data.name), worldX=\(parentPose.worldX), worldY=\(parentPose.worldY)") + + // Transform world to parent coordinates + let parentPoint = bonePose.worldToParent(worldX: worldPoint.x, worldY: worldPoint.y) + print(" World point (100, 100) -> Parent: (\(parentPoint.x), \(parentPoint.y))") + } } - + // Test render command print("\nTesting render command:") if let renderCommand = drawable.render() { @@ -152,16 +234,16 @@ func runSkeletonDrawableTestSwift() { // Note: atlasPage and vertices are accessed via getters, not properties print(" Render command received successfully") } - + // Clear listener before cleanup - drawable.animationState.setListener(nil) - + // drawable.animationState.setListener(nil) + // Cleanup happens automatically via deinit // skeletonData and atlas will be freed when out of scope - + // Report memory leaks if debug extension is enabled reportLeaks() - + print("\n✓ SpineSwift API test complete") }