/
tween.gen.go
840 lines (682 loc) · 36.1 KB
/
tween.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
package godot
import (
"github.com/shadowapex/godot-go/gdnative"
)
/*------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. Any updates should be done in
// "class.go.tmpl" so they can be included in the generated
// code.
//----------------------------------------------------------------------------*/
// TweenEaseType is an enum for EaseType values.
type TweenEaseType int
const (
TweenEaseIn TweenEaseType = 0
TweenEaseInOut TweenEaseType = 2
TweenEaseOut TweenEaseType = 1
TweenEaseOutIn TweenEaseType = 3
)
// TweenTransitionType is an enum for TransitionType values.
type TweenTransitionType int
const (
TweenTransBack TweenTransitionType = 10
TweenTransBounce TweenTransitionType = 9
TweenTransCirc TweenTransitionType = 8
TweenTransCubic TweenTransitionType = 7
TweenTransElastic TweenTransitionType = 6
TweenTransExpo TweenTransitionType = 5
TweenTransLinear TweenTransitionType = 0
TweenTransQuad TweenTransitionType = 4
TweenTransQuart TweenTransitionType = 3
TweenTransQuint TweenTransitionType = 2
TweenTransSine TweenTransitionType = 1
)
// TweenTweenProcessMode is an enum for TweenProcessMode values.
type TweenTweenProcessMode int
const (
TweenTweenProcessIdle TweenTweenProcessMode = 1
TweenTweenProcessPhysics TweenTweenProcessMode = 0
)
//func NewTweenFromPointer(ptr gdnative.Pointer) Tween {
func newTweenFromPointer(ptr gdnative.Pointer) Tween {
owner := gdnative.NewObjectFromPointer(ptr)
obj := Tween{}
obj.SetBaseObject(owner)
return obj
}
/*
Node useful for animations with unknown start and end points, procedural animations, making one node follow another, and other simple behavior. Because it is easy to get it wrong, here is a quick usage example: [codeblock] var tween = get_node("Tween") tween.interpolate_property(get_node("Node2D_to_move"), "transform/origin", Vector2(0,0), Vector2(100,100), 1, Tween.TRANS_LINEAR, Tween.EASE_IN_OUT) tween.start() [/codeblock] Some of the methods of this class require a property name. You can get the property name by hovering over the property in the inspector of the editor. Many of the methods accept [code]trans_type[/code] and [code]ease_type[/code]. The first accepts an TRANS_* constant, and refers to the way the timing of the animation is handled (you might want to see [code]http://easings.net/[/code] for some examples). The second accepts an EASE_* constant, and controls the where [code]trans_type[/code] is applied to the interpolation (in the beginning, the end, or both). If you don't know which transition and easing to pick, you can try different TRANS_* constants with EASE_IN_OUT, and use the one that looks best.
*/
type Tween struct {
Node
owner gdnative.Object
}
func (o *Tween) BaseClass() string {
return "Tween"
}
/*
Undocumented
Args: [{ false object Object} { false key String} { false first_only bool}], Returns: void
*/
func (o *Tween) X_Remove(object ObjectImplementer, key gdnative.String, firstOnly gdnative.Bool) {
//log.Println("Calling Tween.X_Remove()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 3, 3)
ptrArguments[0] = gdnative.NewPointerFromObject(object.GetBaseObject())
ptrArguments[1] = gdnative.NewPointerFromString(key)
ptrArguments[2] = gdnative.NewPointerFromBool(firstOnly)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "_remove")
// Call the parent method.
// void
retPtr := gdnative.NewEmptyVoid()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
}
/*
Follow [code]method[/code] of [code]object[/code] and apply the returned value on [code]target_method[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]duration[/code] seconds, [code]delay[/code] later. Methods are animated by calling them with consequitive values. [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the beginning, the end, or both). You can read more about them in the class description.
Args: [{ false object Object} { false method String} { false initial_val Variant} { false target Object} { false target_method String} { false duration float} { false trans_type int} { false ease_type int} {0 true delay float}], Returns: bool
*/
func (o *Tween) FollowMethod(object ObjectImplementer, method gdnative.String, initialVal gdnative.Variant, target ObjectImplementer, targetMethod gdnative.String, duration gdnative.Real, transType gdnative.Int, easeType gdnative.Int, delay gdnative.Real) gdnative.Bool {
//log.Println("Calling Tween.FollowMethod()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 9, 9)
ptrArguments[0] = gdnative.NewPointerFromObject(object.GetBaseObject())
ptrArguments[1] = gdnative.NewPointerFromString(method)
ptrArguments[2] = gdnative.NewPointerFromVariant(initialVal)
ptrArguments[3] = gdnative.NewPointerFromObject(target.GetBaseObject())
ptrArguments[4] = gdnative.NewPointerFromString(targetMethod)
ptrArguments[5] = gdnative.NewPointerFromReal(duration)
ptrArguments[6] = gdnative.NewPointerFromInt(transType)
ptrArguments[7] = gdnative.NewPointerFromInt(easeType)
ptrArguments[8] = gdnative.NewPointerFromReal(delay)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "follow_method")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Follow [code]property[/code] of [code]object[/code] and apply it on [code]target_property[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Note that [code]target:target_property[/code] would equal [code]object:property[/code] at the end of the tween. [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the beginning, the end, or both). You can read more about them in the class description.
Args: [{ false object Object} { false property NodePath} { false initial_val Variant} { false target Object} { false target_property NodePath} { false duration float} { false trans_type int} { false ease_type int} {0 true delay float}], Returns: bool
*/
func (o *Tween) FollowProperty(object ObjectImplementer, property gdnative.NodePath, initialVal gdnative.Variant, target ObjectImplementer, targetProperty gdnative.NodePath, duration gdnative.Real, transType gdnative.Int, easeType gdnative.Int, delay gdnative.Real) gdnative.Bool {
//log.Println("Calling Tween.FollowProperty()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 9, 9)
ptrArguments[0] = gdnative.NewPointerFromObject(object.GetBaseObject())
ptrArguments[1] = gdnative.NewPointerFromNodePath(property)
ptrArguments[2] = gdnative.NewPointerFromVariant(initialVal)
ptrArguments[3] = gdnative.NewPointerFromObject(target.GetBaseObject())
ptrArguments[4] = gdnative.NewPointerFromNodePath(targetProperty)
ptrArguments[5] = gdnative.NewPointerFromReal(duration)
ptrArguments[6] = gdnative.NewPointerFromInt(transType)
ptrArguments[7] = gdnative.NewPointerFromInt(easeType)
ptrArguments[8] = gdnative.NewPointerFromReal(delay)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "follow_property")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Returns the time needed for all tweens to end in seconds, measured from the start. Thus, if you have two tweens, one ending 10 seconds after the start and the other - 20 seconds, it would return 20 seconds, as by that time all tweens would have finished.
Args: [], Returns: float
*/
func (o *Tween) GetRuntime() gdnative.Real {
//log.Println("Calling Tween.GetRuntime()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 0, 0)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "get_runtime")
// Call the parent method.
// float
retPtr := gdnative.NewEmptyReal()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewRealFromPointer(retPtr)
return ret
}
/*
Undocumented
Args: [], Returns: float
*/
func (o *Tween) GetSpeedScale() gdnative.Real {
//log.Println("Calling Tween.GetSpeedScale()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 0, 0)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "get_speed_scale")
// Call the parent method.
// float
retPtr := gdnative.NewEmptyReal()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewRealFromPointer(retPtr)
return ret
}
/*
Undocumented
Args: [], Returns: enum.Tween::TweenProcessMode
*/
func (o *Tween) GetTweenProcessMode() TweenTweenProcessMode {
//log.Println("Calling Tween.GetTweenProcessMode()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 0, 0)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "get_tween_process_mode")
// Call the parent method.
// enum.Tween::TweenProcessMode
retPtr := gdnative.NewEmptyInt()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewIntFromPointer(retPtr)
return TweenTweenProcessMode(ret)
}
/*
Call [code]callback[/code] of [code]object[/code] after [code]duration[/code]. [code]arg1[/code]-[code]arg5[/code] are arguments to be passed to the callback.
Args: [{ false object Object} { false duration float} { false callback String} {Null true arg1 Variant} {Null true arg2 Variant} {Null true arg3 Variant} {Null true arg4 Variant} {Null true arg5 Variant}], Returns: bool
*/
func (o *Tween) InterpolateCallback(object ObjectImplementer, duration gdnative.Real, callback gdnative.String, arg1 gdnative.Variant, arg2 gdnative.Variant, arg3 gdnative.Variant, arg4 gdnative.Variant, arg5 gdnative.Variant) gdnative.Bool {
//log.Println("Calling Tween.InterpolateCallback()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 8, 8)
ptrArguments[0] = gdnative.NewPointerFromObject(object.GetBaseObject())
ptrArguments[1] = gdnative.NewPointerFromReal(duration)
ptrArguments[2] = gdnative.NewPointerFromString(callback)
ptrArguments[3] = gdnative.NewPointerFromVariant(arg1)
ptrArguments[4] = gdnative.NewPointerFromVariant(arg2)
ptrArguments[5] = gdnative.NewPointerFromVariant(arg3)
ptrArguments[6] = gdnative.NewPointerFromVariant(arg4)
ptrArguments[7] = gdnative.NewPointerFromVariant(arg5)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "interpolate_callback")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Call [code]callback[/code] of [code]object[/code] after [code]duration[/code] on the main thread (similar to [method Object.call_deferred]). [code]arg1[/code]-[code]arg5[/code] are arguments to be passed to the callback.
Args: [{ false object Object} { false duration float} { false callback String} {Null true arg1 Variant} {Null true arg2 Variant} {Null true arg3 Variant} {Null true arg4 Variant} {Null true arg5 Variant}], Returns: bool
*/
func (o *Tween) InterpolateDeferredCallback(object ObjectImplementer, duration gdnative.Real, callback gdnative.String, arg1 gdnative.Variant, arg2 gdnative.Variant, arg3 gdnative.Variant, arg4 gdnative.Variant, arg5 gdnative.Variant) gdnative.Bool {
//log.Println("Calling Tween.InterpolateDeferredCallback()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 8, 8)
ptrArguments[0] = gdnative.NewPointerFromObject(object.GetBaseObject())
ptrArguments[1] = gdnative.NewPointerFromReal(duration)
ptrArguments[2] = gdnative.NewPointerFromString(callback)
ptrArguments[3] = gdnative.NewPointerFromVariant(arg1)
ptrArguments[4] = gdnative.NewPointerFromVariant(arg2)
ptrArguments[5] = gdnative.NewPointerFromVariant(arg3)
ptrArguments[6] = gdnative.NewPointerFromVariant(arg4)
ptrArguments[7] = gdnative.NewPointerFromVariant(arg5)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "interpolate_deferred_callback")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Animate [code]method[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Methods are animated by calling them with consecutive values. [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the beginning, the end, or both). You can read more about them in the class description.
Args: [{ false object Object} { false method String} { false initial_val Variant} { false final_val Variant} { false duration float} { false trans_type int} { false ease_type int} {0 true delay float}], Returns: bool
*/
func (o *Tween) InterpolateMethod(object ObjectImplementer, method gdnative.String, initialVal gdnative.Variant, finalVal gdnative.Variant, duration gdnative.Real, transType gdnative.Int, easeType gdnative.Int, delay gdnative.Real) gdnative.Bool {
//log.Println("Calling Tween.InterpolateMethod()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 8, 8)
ptrArguments[0] = gdnative.NewPointerFromObject(object.GetBaseObject())
ptrArguments[1] = gdnative.NewPointerFromString(method)
ptrArguments[2] = gdnative.NewPointerFromVariant(initialVal)
ptrArguments[3] = gdnative.NewPointerFromVariant(finalVal)
ptrArguments[4] = gdnative.NewPointerFromReal(duration)
ptrArguments[5] = gdnative.NewPointerFromInt(transType)
ptrArguments[6] = gdnative.NewPointerFromInt(easeType)
ptrArguments[7] = gdnative.NewPointerFromReal(delay)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "interpolate_method")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Animate [code]property[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the beginning, the end, or both). You can read more about them in the class description.
Args: [{ false object Object} { false property NodePath} { false initial_val Variant} { false final_val Variant} { false duration float} { false trans_type int} { false ease_type int} {0 true delay float}], Returns: bool
*/
func (o *Tween) InterpolateProperty(object ObjectImplementer, property gdnative.NodePath, initialVal gdnative.Variant, finalVal gdnative.Variant, duration gdnative.Real, transType gdnative.Int, easeType gdnative.Int, delay gdnative.Real) gdnative.Bool {
//log.Println("Calling Tween.InterpolateProperty()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 8, 8)
ptrArguments[0] = gdnative.NewPointerFromObject(object.GetBaseObject())
ptrArguments[1] = gdnative.NewPointerFromNodePath(property)
ptrArguments[2] = gdnative.NewPointerFromVariant(initialVal)
ptrArguments[3] = gdnative.NewPointerFromVariant(finalVal)
ptrArguments[4] = gdnative.NewPointerFromReal(duration)
ptrArguments[5] = gdnative.NewPointerFromInt(transType)
ptrArguments[6] = gdnative.NewPointerFromInt(easeType)
ptrArguments[7] = gdnative.NewPointerFromReal(delay)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "interpolate_property")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Returns true if any tweens are currently running, and false otherwise. Note that this method doesn't consider tweens that have ended.
Args: [], Returns: bool
*/
func (o *Tween) IsActive() gdnative.Bool {
//log.Println("Calling Tween.IsActive()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 0, 0)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "is_active")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Undocumented
Args: [], Returns: bool
*/
func (o *Tween) IsRepeat() gdnative.Bool {
//log.Println("Calling Tween.IsRepeat()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 0, 0)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "is_repeat")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Stop animating and completely remove a tween, given its object and property/method pair. Passing empty String as key will remove all tweens for given object.
Args: [{ false object Object} { true key String}], Returns: bool
*/
func (o *Tween) Remove(object ObjectImplementer, key gdnative.String) gdnative.Bool {
//log.Println("Calling Tween.Remove()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 2, 2)
ptrArguments[0] = gdnative.NewPointerFromObject(object.GetBaseObject())
ptrArguments[1] = gdnative.NewPointerFromString(key)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "remove")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Stop animating and completely remove all tweens.
Args: [], Returns: bool
*/
func (o *Tween) RemoveAll() gdnative.Bool {
//log.Println("Calling Tween.RemoveAll()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 0, 0)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "remove_all")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Resets a tween to the initial value (the one given, not the one before the tween), given its object and property/method pair. Passing empty String as key will reset all tweens for given object.
Args: [{ false object Object} { true key String}], Returns: bool
*/
func (o *Tween) Reset(object ObjectImplementer, key gdnative.String) gdnative.Bool {
//log.Println("Calling Tween.Reset()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 2, 2)
ptrArguments[0] = gdnative.NewPointerFromObject(object.GetBaseObject())
ptrArguments[1] = gdnative.NewPointerFromString(key)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "reset")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Resets all tweens to their initial values (the ones given, not those before the tween).
Args: [], Returns: bool
*/
func (o *Tween) ResetAll() gdnative.Bool {
//log.Println("Calling Tween.ResetAll()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 0, 0)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "reset_all")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Continue animating a stopped tween, given its object and property/method pair. Passing empty String as key will resume all tweens for given object.
Args: [{ false object Object} { true key String}], Returns: bool
*/
func (o *Tween) Resume(object ObjectImplementer, key gdnative.String) gdnative.Bool {
//log.Println("Calling Tween.Resume()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 2, 2)
ptrArguments[0] = gdnative.NewPointerFromObject(object.GetBaseObject())
ptrArguments[1] = gdnative.NewPointerFromString(key)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "resume")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Continue animating all stopped tweens.
Args: [], Returns: bool
*/
func (o *Tween) ResumeAll() gdnative.Bool {
//log.Println("Calling Tween.ResumeAll()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 0, 0)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "resume_all")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Seek the animation to the given [code]time[/code] in seconds.
Args: [{ false time float}], Returns: bool
*/
func (o *Tween) Seek(time gdnative.Real) gdnative.Bool {
//log.Println("Calling Tween.Seek()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 1, 1)
ptrArguments[0] = gdnative.NewPointerFromReal(time)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "seek")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Activate/deactivate the tween. You can use this for pausing animations, though [method stop_all] and [method resume_all] might be more fit for this.
Args: [{ false active bool}], Returns: void
*/
func (o *Tween) SetActive(active gdnative.Bool) {
//log.Println("Calling Tween.SetActive()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 1, 1)
ptrArguments[0] = gdnative.NewPointerFromBool(active)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "set_active")
// Call the parent method.
// void
retPtr := gdnative.NewEmptyVoid()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
}
/*
Undocumented
Args: [{ false repeat bool}], Returns: void
*/
func (o *Tween) SetRepeat(repeat gdnative.Bool) {
//log.Println("Calling Tween.SetRepeat()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 1, 1)
ptrArguments[0] = gdnative.NewPointerFromBool(repeat)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "set_repeat")
// Call the parent method.
// void
retPtr := gdnative.NewEmptyVoid()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
}
/*
Undocumented
Args: [{ false speed float}], Returns: void
*/
func (o *Tween) SetSpeedScale(speed gdnative.Real) {
//log.Println("Calling Tween.SetSpeedScale()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 1, 1)
ptrArguments[0] = gdnative.NewPointerFromReal(speed)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "set_speed_scale")
// Call the parent method.
// void
retPtr := gdnative.NewEmptyVoid()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
}
/*
Undocumented
Args: [{ false mode int}], Returns: void
*/
func (o *Tween) SetTweenProcessMode(mode gdnative.Int) {
//log.Println("Calling Tween.SetTweenProcessMode()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 1, 1)
ptrArguments[0] = gdnative.NewPointerFromInt(mode)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "set_tween_process_mode")
// Call the parent method.
// void
retPtr := gdnative.NewEmptyVoid()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
}
/*
Start the tween node. You can define tweens both before and after this.
Args: [], Returns: bool
*/
func (o *Tween) Start() gdnative.Bool {
//log.Println("Calling Tween.Start()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 0, 0)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "start")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Stop animating a tween, given its object and property/method pair. Passing empty String as key will stop all tweens for given object.
Args: [{ false object Object} { true key String}], Returns: bool
*/
func (o *Tween) Stop(object ObjectImplementer, key gdnative.String) gdnative.Bool {
//log.Println("Calling Tween.Stop()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 2, 2)
ptrArguments[0] = gdnative.NewPointerFromObject(object.GetBaseObject())
ptrArguments[1] = gdnative.NewPointerFromString(key)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "stop")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Stop animating all tweens.
Args: [], Returns: bool
*/
func (o *Tween) StopAll() gdnative.Bool {
//log.Println("Calling Tween.StopAll()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 0, 0)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "stop_all")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Animate [code]method[/code] of [code]object[/code] from the value returned by [code]initial.initial_method[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Methods are animated by calling them with consecutive values. [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the beginning, the end, or both). You can read more about them in the class description.
Args: [{ false object Object} { false method String} { false initial Object} { false initial_method String} { false final_val Variant} { false duration float} { false trans_type int} { false ease_type int} {0 true delay float}], Returns: bool
*/
func (o *Tween) TargetingMethod(object ObjectImplementer, method gdnative.String, initial ObjectImplementer, initialMethod gdnative.String, finalVal gdnative.Variant, duration gdnative.Real, transType gdnative.Int, easeType gdnative.Int, delay gdnative.Real) gdnative.Bool {
//log.Println("Calling Tween.TargetingMethod()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 9, 9)
ptrArguments[0] = gdnative.NewPointerFromObject(object.GetBaseObject())
ptrArguments[1] = gdnative.NewPointerFromString(method)
ptrArguments[2] = gdnative.NewPointerFromObject(initial.GetBaseObject())
ptrArguments[3] = gdnative.NewPointerFromString(initialMethod)
ptrArguments[4] = gdnative.NewPointerFromVariant(finalVal)
ptrArguments[5] = gdnative.NewPointerFromReal(duration)
ptrArguments[6] = gdnative.NewPointerFromInt(transType)
ptrArguments[7] = gdnative.NewPointerFromInt(easeType)
ptrArguments[8] = gdnative.NewPointerFromReal(delay)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "targeting_method")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Animate [code]property[/code] of [code]object[/code] from the current value of the [code]initial_val[/code] property of [code]initial[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the beginning, the end, or both). You can read more about them in the class description.
Args: [{ false object Object} { false property NodePath} { false initial Object} { false initial_val NodePath} { false final_val Variant} { false duration float} { false trans_type int} { false ease_type int} {0 true delay float}], Returns: bool
*/
func (o *Tween) TargetingProperty(object ObjectImplementer, property gdnative.NodePath, initial ObjectImplementer, initialVal gdnative.NodePath, finalVal gdnative.Variant, duration gdnative.Real, transType gdnative.Int, easeType gdnative.Int, delay gdnative.Real) gdnative.Bool {
//log.Println("Calling Tween.TargetingProperty()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 9, 9)
ptrArguments[0] = gdnative.NewPointerFromObject(object.GetBaseObject())
ptrArguments[1] = gdnative.NewPointerFromNodePath(property)
ptrArguments[2] = gdnative.NewPointerFromObject(initial.GetBaseObject())
ptrArguments[3] = gdnative.NewPointerFromNodePath(initialVal)
ptrArguments[4] = gdnative.NewPointerFromVariant(finalVal)
ptrArguments[5] = gdnative.NewPointerFromReal(duration)
ptrArguments[6] = gdnative.NewPointerFromInt(transType)
ptrArguments[7] = gdnative.NewPointerFromInt(easeType)
ptrArguments[8] = gdnative.NewPointerFromReal(delay)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "targeting_property")
// Call the parent method.
// bool
retPtr := gdnative.NewEmptyBool()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewBoolFromPointer(retPtr)
return ret
}
/*
Returns the current time of the tween.
Args: [], Returns: float
*/
func (o *Tween) Tell() gdnative.Real {
//log.Println("Calling Tween.Tell()")
// Build out the method's arguments
ptrArguments := make([]gdnative.Pointer, 0, 0)
// Get the method bind
methodBind := gdnative.NewMethodBind("Tween", "tell")
// Call the parent method.
// float
retPtr := gdnative.NewEmptyReal()
gdnative.MethodBindPtrCall(methodBind, o.GetBaseObject(), ptrArguments, retPtr)
// If we have a return type, convert it from a pointer into its actual object.
ret := gdnative.NewRealFromPointer(retPtr)
return ret
}
// TweenImplementer is an interface that implements the methods
// of the Tween class.
type TweenImplementer interface {
NodeImplementer
X_Remove(object ObjectImplementer, key gdnative.String, firstOnly gdnative.Bool)
FollowMethod(object ObjectImplementer, method gdnative.String, initialVal gdnative.Variant, target ObjectImplementer, targetMethod gdnative.String, duration gdnative.Real, transType gdnative.Int, easeType gdnative.Int, delay gdnative.Real) gdnative.Bool
FollowProperty(object ObjectImplementer, property gdnative.NodePath, initialVal gdnative.Variant, target ObjectImplementer, targetProperty gdnative.NodePath, duration gdnative.Real, transType gdnative.Int, easeType gdnative.Int, delay gdnative.Real) gdnative.Bool
GetRuntime() gdnative.Real
GetSpeedScale() gdnative.Real
InterpolateCallback(object ObjectImplementer, duration gdnative.Real, callback gdnative.String, arg1 gdnative.Variant, arg2 gdnative.Variant, arg3 gdnative.Variant, arg4 gdnative.Variant, arg5 gdnative.Variant) gdnative.Bool
InterpolateDeferredCallback(object ObjectImplementer, duration gdnative.Real, callback gdnative.String, arg1 gdnative.Variant, arg2 gdnative.Variant, arg3 gdnative.Variant, arg4 gdnative.Variant, arg5 gdnative.Variant) gdnative.Bool
InterpolateMethod(object ObjectImplementer, method gdnative.String, initialVal gdnative.Variant, finalVal gdnative.Variant, duration gdnative.Real, transType gdnative.Int, easeType gdnative.Int, delay gdnative.Real) gdnative.Bool
InterpolateProperty(object ObjectImplementer, property gdnative.NodePath, initialVal gdnative.Variant, finalVal gdnative.Variant, duration gdnative.Real, transType gdnative.Int, easeType gdnative.Int, delay gdnative.Real) gdnative.Bool
IsActive() gdnative.Bool
IsRepeat() gdnative.Bool
Remove(object ObjectImplementer, key gdnative.String) gdnative.Bool
RemoveAll() gdnative.Bool
Reset(object ObjectImplementer, key gdnative.String) gdnative.Bool
ResetAll() gdnative.Bool
Resume(object ObjectImplementer, key gdnative.String) gdnative.Bool
ResumeAll() gdnative.Bool
Seek(time gdnative.Real) gdnative.Bool
SetActive(active gdnative.Bool)
SetRepeat(repeat gdnative.Bool)
SetSpeedScale(speed gdnative.Real)
SetTweenProcessMode(mode gdnative.Int)
Start() gdnative.Bool
Stop(object ObjectImplementer, key gdnative.String) gdnative.Bool
StopAll() gdnative.Bool
TargetingMethod(object ObjectImplementer, method gdnative.String, initial ObjectImplementer, initialMethod gdnative.String, finalVal gdnative.Variant, duration gdnative.Real, transType gdnative.Int, easeType gdnative.Int, delay gdnative.Real) gdnative.Bool
TargetingProperty(object ObjectImplementer, property gdnative.NodePath, initial ObjectImplementer, initialVal gdnative.NodePath, finalVal gdnative.Variant, duration gdnative.Real, transType gdnative.Int, easeType gdnative.Int, delay gdnative.Real) gdnative.Bool
Tell() gdnative.Real
}