-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
stub.lua
5334 lines (4209 loc) · 131 KB
/
stub.lua
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
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---@meta
--- This file contains function stubs for autocompletion. DO NOT include it in your game.
---@class Object
---@field class table
---@field className string
Object = {}
---@class json
json = {}
---@class kTextAlignment
---@field left integer 0
---@field right integer 1
---@field center integer 2
kTextAlignment = {}
---@class playdate
---@field argv string[]
---@field isSimulator boolean
---@field kButtonLeft integer 1
---@field kButtonRight integer 2
---@field kButtonUp integer 4
---@field kButtonDown integer 8
---@field kButtonB integer 16
---@field kButtonA integer 32
---@field metadata _Metadata
---@field systeminfo _SystemInfo
playdate = {}
---@class playdate.datastore
playdate.datastore = {}
---@class playdate.display
playdate.display = {}
---@class playdate.easingFunctions
playdate.easingFunctions = {}
---@class playdate.file
---@field kSeekSet integer 0
---@field kSeekFromCurrent integer 1
---@field kSeekFromEnd integer 2
---@field kFileRead integer 3
---@field kFileWrite integer 4
---@field kFileAppend integer 8
playdate.file = {}
---@class playdate.frameTimer
playdate.frameTimer = {}
---@class playdate.geometry
---@field kUnflipped integer 0
---@field kFlippedX integer 1
---@field kFlippedY integer 2
---@field kFlippedXY integer 3
playdate.geometry = {}
---@class playdate.graphics
---@field kAlignLeft integer 33554432
---@field kAlignRight integer 33554434
---@field kAlignCenter integer 33554433
---@field kColorBlack integer 0
---@field kColorWhite integer 1
---@field kColorClear integer 2
---@field kColorXOR integer 3
---@field kDrawModeCopy integer 0
---@field kDrawModeWhiteTransparent integer 1
---@field kDrawModeBlackTransparent integer 2
---@field kDrawModeFillWhite integer 3
---@field kDrawModeFillBlack integer 4
---@field kDrawModeXOR integer 5
---@field kDrawModeNXOR integer 6
---@field kDrawModeInverted integer 7
---@field kImageUnflipped integer 0
---@field kImageFlippedX integer 1
---@field kImageFlippedY integer 2
---@field kImageFlippedXY integer 3
---@field kLineCapStyleButt integer 0
---@field kLineCapStyleSquare integer 1
---@field kLineCapStyleRound integer 2
---@field kPolygonFillNonZero integer 0
---@field kPolygonFillEvenOdd integer 1
---@field kStrokeCentered integer 0
---@field kStrokeInside integer 1
---@field kStrokeOutside integer 2
---@field kWrapClip integer 16777216
---@field kWrapCharacter integer 16777217
---@field kWrapWord integer 16777218
playdate.graphics = {}
---@class playdate.inputHandlers
playdate.inputHandlers = {}
---@class playdate.keyboard
---@field kCapitalizationNormal integer 1
---@field kCapitalizationSentences integer 3
---@field kCapitalizationWords integer 2
---@field text string
playdate.keyboard = {}
---@class playdate.math
playdate.math = {}
---@class playdate.menu
playdate.menu = {}
---@class playdate.pathfinder
playdate.pathfinder = {}
---@class playdate.scoreboards
playdate.scoreboards = {}
---@class playdate.server
playdate.server = {}
---@class playdate.simulator
playdate.simulator = {}
---@class playdate.sound
---@field kFilterLowPass integer 0
---@field kFilterHighPass integer 1
---@field kFilterBandPass integer 2
---@field kFilterNotch integer 3
---@field kFilterPEQ integer 4
---@field kFilterLowShelf integer 5
---@field kFilterHighShelf integer 6
---@field kFormat8bitMono integer 0
---@field kFormat8bitStereo integer 1
---@field kFormat16bitMono integer 2
---@field kFormat16bitStereo integer 3
---@field kLFOSquare integer 0
---@field kLFOTriangle integer 1
---@field kLFOSine integer 2
---@field kLFOSampleAndHold integer 3
---@field kLFOSawtoothUp integer 4
---@field kLFOSawtoothDown integer 5
---@field kWaveSquare integer 0
---@field kWaveTriangle integer 1
---@field kWaveSine integer 2
---@field kWaveNoise integer 3
---@field kWaveSawtooth integer 4
---@field kWavePOPhase integer 5
---@field kWavePODigital integer 6
---@field kWavePOVosim integer 7
playdate.sound = {}
---@class playdate.string
playdate.string = {}
---@class playdate.timer
playdate.timer = {}
---@class playdate.ui
playdate.ui = {}
---@class playdate.file.file
playdate.file.file = {}
---@class playdate.geometry.affineTransform
playdate.geometry.affineTransform = {}
---@class playdate.geometry.arc
playdate.geometry.arc = {}
---@class playdate.geometry.lineSegment
playdate.geometry.lineSegment = {}
---@class playdate.geometry.point
playdate.geometry.point = {}
---@class playdate.geometry.polygon
playdate.geometry.polygon = {}
---@class playdate.geometry.rect
playdate.geometry.rect = {}
---@class playdate.geometry.size
playdate.geometry.size = {}
---@class playdate.geometry.vector2D
playdate.geometry.vector2D = {}
---@class playdate.graphics.animation
playdate.graphics.animation = {}
---@class playdate.graphics.animator
playdate.graphics.animator = {}
---@class playdate.graphics.font
---@field kLanguageEnglish integer 0
---@field kLanguageJapanese integer 1
---@field kVariantNormal integer 0
---@field kVariantBold integer 1
---@field kVariantItalic integer 2
playdate.graphics.font = {}
---@class playdate.graphics.image
---@field kDitherTypeNone integer 0
---@field kDitherTypeDiagonalLine integer 1
---@field kDitherTypeHorizontalLine integer 3
---@field kDitherTypeVerticalLine integer 2
---@field kDitherTypeScreen integer 4
---@field kDitherTypeBayer2x2 integer 5
---@field kDitherTypeBayer4x4 integer 6
---@field kDitherTypeBayer8x8 integer 7
---@field kDitherTypeFloydSteinberg integer 8
---@field kDitherTypeBurkes integer 9
---@field kDitherTypeAtkinson integer 10
playdate.graphics.image = {}
---@class playdate.graphics.imagetable
playdate.graphics.imagetable = {}
---@class playdate.graphics.nineSlice
playdate.graphics.nineSlice = {}
---@class playdate.graphics.sprite : _Object
---@field kCollisionTypeSlide integer 0
---@field kCollisionTypeFreeze integer 1
---@field kCollisionTypeOverlap integer 2
---@field kCollisionTypeBounce integer 3
playdate.graphics.sprite = {}
---@class playdate.graphics.tilemap
playdate.graphics.tilemap = {}
---@class playdate.graphics.video
playdate.graphics.video = {}
---@class playdate.graphics.animation.blinker
playdate.graphics.animation.blinker = {}
---@class playdate.graphics.animation.loop
playdate.graphics.animation.loop = {}
---@class playdate.math.logic
playdate.math.logic = {}
---@class playdate.menu.item
playdate.menu.item = {}
---@class playdate.pathfinder.graph
playdate.pathfinder.graph = {}
---@class playdate.pathfinder.node
playdate.pathfinder.node = {}
---@class playdate.sound.bitcrusher : _SoundEffect
playdate.sound.bitcrusher = {}
---@class playdate.sound.channel
playdate.sound.channel = {}
---@class playdate.sound.controlsignal : _Signal
playdate.sound.controlsignal = {}
---@class playdate.sound.delayline : _SoundEffect
playdate.sound.delayline = {}
---@class playdate.sound.delaylinetap : _SoundSource
playdate.sound.delaylinetap = {}
---@class playdate.sound.effect
playdate.sound.effect = {}
---@class playdate.sound.envelope : _Signal
playdate.sound.envelope = {}
---@class playdate.sound.fileplayer : _SoundSource
playdate.sound.fileplayer = {}
---@class playdate.sound.instrument : _SoundSource
playdate.sound.instrument = {}
---@class playdate.sound.lfo : _Signal
playdate.sound.lfo = {}
---@class playdate.sound.micinput
playdate.sound.micinput = {}
---@class playdate.sound.onepolefilter : _SoundEffect
playdate.sound.onepolefilter = {}
---@class playdate.sound.overdrive : _SoundEffect
playdate.sound.overdrive = {}
---@class playdate.sound.ringmod : _SoundEffect
playdate.sound.ringmod = {}
---@class playdate.sound.sample
playdate.sound.sample = {}
---@class playdate.sound.sampleplayer : _SoundSource
playdate.sound.sampleplayer = {}
---@class playdate.sound.sequence
playdate.sound.sequence = {}
---@class playdate.sound.signal
playdate.sound.signal = {}
---@class playdate.sound.signalvalue
playdate.sound.signalvalue = {}
---@class playdate.sound.source
playdate.sound.source = {}
---@class playdate.sound.synth : _SoundSource
playdate.sound.synth = {}
---@class playdate.sound.track
playdate.sound.track = {}
---@class playdate.sound.track
playdate.sound.track = {}
---@class playdate.sound.twopolefilter : _SoundEffect
playdate.sound.twopolefilter = {}
---@class playdate.ui.crankIndicator
---@field clockwise boolean
playdate.ui.crankIndicator = {}
---@class playdate.ui.gridview
playdate.ui.gridview = {}
---@class _AffineTransform : playdate.geometry.affineTransform
local _AffineTransform = {}
---@class _AnimationLoop : playdate.graphics.animation.loop
---@field delay number
---@field startFrame integer
---@field endFrame integer
---@field frame integer
---@field step integer
---@field shouldLoop boolean
---@field paused boolean
local _AnimationLoop = {}
---@class _Animator : playdate.graphics.animator
---@field repeatCount integer
---@field reverses boolean
---@field easingAmplitude? number
---@field easingPeriod? number
---@field s? number
---@field a? number
---@field p? number
local _Animator = {}
---@class _Arc : playdate.geometry.arc
---@field x integer
---@field y integer
---@field radius integer
---@field startAngle number
---@field endAngle number
---@field direction boolean
local _Arc = {}
---@class _BitCrusher : playdate.sound.bitcrusher
local _BitCrusher = {}
---@class _Blinker : playdate.graphics.animation.blinker
---@field onDuration integer
---@field offDuration integer
---@field loop boolean
---@field cycles integer
---@field default boolean
---@field counter integer
---@field on boolean
---@field running boolean
local _Blinker = {}
---@class _Channel : playdate.sound.channel
local _Channel = {}
---@class _ControlSignal : playdate.sound.controlsignal
---@field events _SoundControlEvent
local _ControlSignal = {}
---@class _DateTime
---@field year integer
---@field month integer
---@field day integer
---@field weekday integer
---@field hour integer
---@field minute integer
---@field second integer
---@field millisecond integer
local _DateTime = {}
---@class _DelayLine : playdate.sound.delayline
local _DelayLine = {}
---@class _DelayLineTap : playdate.sound.delaylinetap
local _DelayLineTap = {}
---@class _Envelope : playdate.sound.envelope
local _Envelope = {}
---@class _File : playdate.file.file
local _File = {}
---@class _FilePlayer : playdate.sound.fileplayer
local _FilePlayer = {}
---@class _Font : playdate.graphics.font
local _Font = {}
---@class _FrameTimer : playdate.frameTimer
---@field active boolean
---@field delay integer
---@field discardOnCompletion boolean
---@field duration integer
---@field easingAmplitude? number
---@field easingFunction function
---@field easingPeriod number
---@field endValue number
---@field frame integer
---@field framesLeft integer
---@field paused boolean
---@field repeats boolean
---@field reverseEasingFunction? function
---@field reverses boolean
---@field startValue number
---@field timerEndedArgs? any[]
---@field timerEndedCallback? function
---@field updateCallback? function
---@field value number
local _FrameTimer = {}
---@class _GridView : playdate.ui.gridview
---@field needsDisplay boolean
---@field backgroundImage (_Image|_NineSlice)
---@field isScrolling boolean
---@field scrollEasingFunction fun(t:number, b:number, c:number, d:number, a?:number, p?:number): number
---@field easingAmplitude? number
---@field easingPeriod? number
---@field changeRowOnColumnWrap boolean
---@field scrollCellsToCenter boolean
local _GridView = {}
---@class _Image : playdate.graphics.image
---@field width integer
---@field height integer
local _Image = {}
---@class _ImageTable : playdate.graphics.imagetable
local _ImageTable = {}
---@class _InputHandler
---@field AButtonDown? fun(): nil
---@field AButtonHeld? fun(): nil
---@field AButtonUp? fun(): nil
---@field BButtonDown? fun(): nil
---@field BButtonHeld? fun(): nil
---@field BButtonUp? fun(): nil
---@field downButtonDown? fun(): nil
---@field downButtonUp? fun(): nil
---@field leftButtonDown? fun(): nil
---@field leftButtonUp? fun(): nil
---@field rightButtonDown? fun(): nil
---@field rightButtonUp? fun(): nil
---@field upButtonDown? fun(): nil
---@field upButtonUp? fun(): nil
---@field cranked? fun(change:number, acceleratedChange:number): nil
local _InputHandler = {}
---@class _Instrument : playdate.sound.instrument
local _Instrument = {}
---@class _LFO : playdate.sound.lfo
local _LFO = {}
---@class _LineSegment : playdate.geometry.lineSegment
---@field x1 integer
---@field y1 integer
---@field x2 integer
---@field y2 integer
local _LineSegment = {}
---@class _Menu : playdate.menu
local _Menu = {}
---@class _MenuItem : playdate.menu.item
---@field title string
---@field value (integer|boolean|string)
local _MenuItem = {}
---@class _Metadata
---@field name string
---@field author string
---@field description string
---@field bundleID string
---@field version string
---@field buildNumber integer
---@field pdxversion integer
---@field imagePath? string
---@field launchSoundPath? string
---@field contentWarning? string
---@field contentWarning2? string
local _Metadata = {}
---@class _ModTime
---@field year integer
---@field month integer
---@field day integer
---@field hour integer
---@field minute integer
---@field second integer
local _ModTime = {}
---@class _NewClass
---@field className string
---@field properties? table
---@field namespace? table
---@field extends fun(Parent?: (table|string)): nil
local _NewClass = {}
---@class _NineSlice : playdate.graphics.nineSlice
---@field innerRect _Rect
---@field minWidth integer
---@field minHeight integer
local _NineSlice = {}
---@class _Object : Object
---@field super table
local _Object = {}
---@class _OnePoleFilter : playdate.sound.onepolefilter
local _OnePoleFilter = {}
---@class _OverDrive : playdate.sound.overdrive
local _OverDrive = {}
---@class _PathFinderGraph : playdate.pathfinder.graph
local _PathFinderGraph = {}
---@class _PathFinderNode : playdate.pathfinder.node
---@field x integer
---@field y integer
---@field id integer
local _PathFinderNode = {}
---@class _Point : playdate.geometry.point
---@field x number
---@field y number
local _Point = {}
---@class _Polygon : playdate.geometry.polygon
local _Polygon = {}
---@class _PowerStatus
---@field charging boolean
---@field _USB boolean
---@field screws boolean
local _PowerStatus = {}
---@class _Rect : playdate.geometry.rect
---@field x number
---@field y number
---@field width number
---@field height number
---@field top number
---@field bottom number
---@field left number
---@field right number
---@field size _Size
local _Rect = {}
---@class _RingMod : playdate.sound.ringmod
local _RingMod = {}
---@class _Sample : playdate.sound.sample
local _Sample = {}
---@class _SamplePlayer : playdate.sound.sampleplayer
local _SamplePlayer = {}
---@class _ScoreBoardAddResult
---@field rank? integer
---@field player string
---@field value integer
local _ScoreBoardAddResult = {}
---@class _ScoreBoardBoards
---@field boardId string
---@field name string
local _ScoreBoardBoards = {}
---@class _ScoreBoardScores
---@field rank integer
---@field player string
---@field value integer
local _ScoreBoardScores = {}
---@class _ScoreBoardScoresResult
---@field lastUpdated integer
---@field scores _ScoreBoardScores[]
local _ScoreBoardScoresResult = {}
---@class _ScoreBoardsScoreboardsResult
---@field lastUpdated integer
---@field boards _ScoreBoardBoards[]
local _ScoreBoardsScoreboardsResult = {}
---@class _Sequence : playdate.sound.sequence
local _Sequence = {}
---@class _ServerStatus
---@field code string
---@field message string
local _ServerStatus = {}
---@class _Signal : playdate.sound.signal
local _Signal = {}
---@class _SignalValue : playdate.sound.signalvalue
local _SignalValue = {}
---@class _Size : playdate.geometry.size
---@field width number
---@field height number
local _Size = {}
---@class _SoundControlEvent
---@field step integer
---@field value number
---@field interpolate? boolean
local _SoundControlEvent = {}
---@class _SoundEffect : playdate.sound.effect
local _SoundEffect = {}
---@class _SoundSource
local _SoundSource = {}
---@class _SoundTrackNote
---@field step integer
---@field note number
---@field length integer
---@field velocity number
local _SoundTrackNote = {}
---@class _SoundTrackNoteIn
---@field step integer
---@field note (number|string)
---@field length integer
---@field velocity number
local _SoundTrackNoteIn = {}
---@class _Sprite : playdate.graphics.sprite
---@field x integer
---@field y integer
---@field width integer
---@field height integer
---@field collisionResponse? (integer|fun(self: _Sprite, other: _Sprite): integer?)
---@field update? fun():nil
local _Sprite = {}
---@class _SpriteCollisionData
---@field sprite _Sprite
---@field other _Sprite
---@field type integer
---@field overlaps boolean
---@field ti number
---@field move _Vector2D
---@field normal _Vector2D
---@field touch _Point
---@field spriteRect _Rect
---@field otherRect _Rect
---@field bounce? _Point
---@field slide? _Point
local _SpriteCollisionData = {}
---@class _SpriteCollisionInfo
---@field sprite _Sprite
---@field entryPoint _Point
---@field exitPoint _Point
---@field t1 number
---@field t2 number
local _SpriteCollisionInfo = {}
---@class _Synth : playdate.sound.synth
local _Synth = {}
---@class _SystemInfo
---@field buildtime string
---@field commit string
---@field pdxcompatversion integer
---@field pdxversion integer
---@field sdk string
local _SystemInfo = {}
---@class _SystemStats
---@field audio number
---@field game number
---@field idle number
---@field kernel number
---@field serial? number
---@field trace? number
---@field wifi? number
---@field GC? number
local _SystemStats = {}
---@class _TileMap : playdate.graphics.tilemap
local _TileMap = {}
---@class _Timer : playdate.timer
---@field active boolean
---@field currentTime integer
---@field delay integer
---@field discardOnCompletion boolean
---@field duration integer
---@field easingAmplitude? number
---@field easingFunction function
---@field easingPeriod? number
---@field endValue number
---@field paused boolean
---@field repeats boolean
---@field reverseEasingFunction? function
---@field reverses boolean
---@field running boolean
---@field startValue number
---@field timeLeft integer
---@field timerEndedArgs? any[]
---@field timerEndedCallback? function
---@field updateCallback? function
---@field value number
local _Timer = {}
---@class _Track : playdate.sound.track
local _Track = {}
---@class _TwoPoleFilter : playdate.sound.twopolefilter
local _TwoPoleFilter = {}
---@class _Vector2D : playdate.geometry.vector2D
---@field dx number
---@field dy number
local _Vector2D = {}
---@class _Video : playdate.graphics.video
local _Video = {}
---@param ClassName string
---@param properties? table
---@param namespace? table
---@return _NewClass
function class(ClassName, properties, namespace) end
---@param ... any
---@return nil
function print(...) end
---@param table table
---@return nil
function printTable(table) end
---@param name string
---@param _function function
---@return nil
function sample(name, _function) end
---@return string
function where() end
---@return table
function Object.baseObject() end
---@param ... any
function Object:init(...) end
---@param Class table
---@return boolean
function Object:isa(Class) end
---@param indent? boolean
---@param _table? table
---@return nil
function Object:tableDump(indent, _table) end
---@param ... any
---@return nil
function _FrameTimer:timerEndedCallback(...) end
---@param ... any
---@return nil
function _FrameTimer:updateCallback(...) end
---@return string
function _Timer:__tostring() end
---@param ... any
---@return nil
function _Timer:timerEndedCallback(...) end
---@param ... any
---@return nil
function _Timer:updateCallback(...) end
---@param str string
---@return table
function json.decode(str) end
---@param file _File
---@return table
function json.decodeFile(file) end
---@param path string
---@return table
function json.decodeFile(path) end
---@param table table
---@return string
function json.encode(table) end
---@param table table
---@return string
function json.encodePretty(table) end
---@param file _File
---@param pretty boolean
---@param table table
---@return nil
function json.encodeToFile(file, pretty, table) end
---@param path string
---@param pretty? boolean
---@param table? table
---@return nil
function json.encodeToFile(path, pretty, table) end
---@return nil
function playdate.AButtonDown() end
---@return nil
function playdate.AButtonHeld() end
---@return nil
function playdate.AButtonUp() end
---@return nil
function playdate.BButtonDown() end
---@return nil
function playdate.BButtonHeld() end
---@return nil
function playdate.BButtonUp() end
---@param seconds integer
---@param milliseconds integer
---@return _DateTime
function playdate.GMTTimeFromEpoch(seconds, milliseconds) end
---@return boolean
function playdate.accelerometerIsRunning() end
---@return integer api_version
---@return integer runtime_minimum_api_version
function playdate.apiVersion() end
---@param button (integer|string)
---@return boolean
function playdate.buttonIsPressed(button) end
---@param button (integer|string)
---@return boolean
function playdate.buttonJustPressed(button) end
---@param button (integer|string)
---@return boolean
function playdate.buttonJustReleased(button) end
---@return nil
function playdate.clearConsole() end
---@return nil
function playdate.crankDocked() end
---@return nil
function playdate.crankUndocked() end
---@param change number
---@param acceleratedChange number
---@return nil
function playdate.cranked(change, acceleratedChange) end
---@return nil
function playdate.debugDraw() end
---@return nil
function playdate.deviceDidUnlock() end
---@return nil
function playdate.deviceWillLock() end
---@return nil
function playdate.deviceWillSleep() end
---@return nil
function playdate.downButtonDown() end
---@return nil
function playdate.downButtonUp() end
---@param x integer
---@param y integer
---@return nil
function playdate.drawFPS(x, y) end
---@param time _DateTime
---@return integer seconds
---@return integer milliseconds
function playdate.epochFromGMTTime(time) end
---@param time _DateTime
---@return integer seconds
---@return integer milliseconds
function playdate.epochFromTime(time) end
---@return nil
function playdate.gameWillPause() end
---@return nil
function playdate.gameWillResume() end
---@return nil
function playdate.gameWillTerminate() end
---@return integer
function playdate.getBatteryPercentage() end
---@return number
function playdate.getBatteryVoltage() end
---@return integer current
---@return integer pressed
---@return integer released
function playdate.getButtonState() end
---@return number
function playdate.getCrankChange() end
---@return number
function playdate.getCrankPosition() end
---@param ticksPerRevolution number
---@return number
function playdate.getCrankTicks(ticksPerRevolution) end
---@return integer
function playdate.getCurrentTimeMilliseconds() end
---@return number
function playdate.getElapsedTime() end
---@return number
function playdate.getFPS() end
---@return boolean
function playdate.getFlipped() end
---@return _DateTime
function playdate.getGMTTime() end
---@return _PowerStatus
function playdate.getPowerStatus() end
---@return boolean
function playdate.getReduceFlashing() end
---@return integer seconds
---@return integer milliseconds
function playdate.getSecondsSinceEpoch() end
---@return _SystemStats
function playdate.getStats() end
---@return integer
function playdate.getSystemLanguage() end
---@return _Menu
function playdate.getSystemMenu() end
---@return _DateTime
function playdate.getTime() end
---@return boolean
function playdate.isCrankDocked() end
---@param key string
---@return nil
function playdate.keyPressed(key) end
---@param key string
---@return nil
function playdate.keyReleased(key) end