@defold-typescript/library-types 0.22.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/api-doc/boom.json +3870 -0
  2. package/api-doc/{bridge.bridge.json → bridge.json} +754 -844
  3. package/api-doc/bzAnim.json +338 -0
  4. package/api-doc/decore.json +23 -23
  5. package/api-doc/defcon.json +150 -0
  6. package/api-doc/{defmath.defmath.json → defmath.json} +6 -46
  7. package/api-doc/defsave.json +518 -0
  8. package/api-doc/deftest.json +741 -0
  9. package/api-doc/{dicebag.dicebag.json → dicebag.json} +19 -1
  10. package/api-doc/druid.json +249 -1846
  11. package/api-doc/event.json +1074 -0
  12. package/api-doc/gooey.json +2050 -0
  13. package/api-doc/immutable.json +65 -0
  14. package/api-doc/in.accelerometer.json +75 -1
  15. package/api-doc/in.button.json +17 -10
  16. package/api-doc/in.cursor.json +26 -0
  17. package/api-doc/in.gesture.json +401 -6
  18. package/api-doc/in.keyboard.json +2 -0
  19. package/api-doc/in.mapper.json +12 -8
  20. package/api-doc/in.onscreen.json +61 -5
  21. package/api-doc/in.state.json +61 -13
  22. package/api-doc/in.textbox.json +23 -12
  23. package/api-doc/in.triggers.json +336 -0
  24. package/api-doc/lang.json +528 -0
  25. package/api-doc/{event.event.json → log.json} +96 -101
  26. package/api-doc/metrics.fps.json +61 -2
  27. package/api-doc/metrics.mem.json +61 -2
  28. package/api-doc/monarch.monarch.json +249 -7
  29. package/api-doc/monarch.transitions.easings.json +19 -26
  30. package/api-doc/monarch.transitions.gui.json +782 -79
  31. package/api-doc/nakama.engine.defold.json +31 -18
  32. package/api-doc/{nakama.nakama.json → nakama.json} +4752 -2554
  33. package/api-doc/nakama.util.log.json +32 -4
  34. package/api-doc/narrator.json +647 -0
  35. package/api-doc/openapi/nakama.nakama.json +7680 -0
  36. package/api-doc/orthographic.camera.json +96 -98
  37. package/api-doc/orthographic.json +602 -0
  38. package/api-doc/panthera.json +1183 -0
  39. package/api-doc/{persist.persist.json → persist.json} +26 -1
  40. package/api-doc/{platypus.platypus.json → platypus.json} +68 -14
  41. package/api-doc/proto.json +995 -0
  42. package/api-doc/{rendy.rendy.json → rendy.json} +46 -99
  43. package/api-doc/richtext.color.json +77 -0
  44. package/api-doc/richtext.richtext.json +375 -5
  45. package/api-doc/saver.saver.json +714 -263
  46. package/api-doc/saver.storage.json +283 -52
  47. package/api-doc/squid.json +846 -0
  48. package/api-doc/{starly.starly.json → starly.json} +1 -1
  49. package/api-doc/tweener.json +277 -0
  50. package/api-doc/{yagames.yagames.json → yagames.json} +784 -189
  51. package/api-doc/{zzfx.api.json → zzfx.json} +9 -9
  52. package/authored-targets.json +403 -0
  53. package/generated/{boom.boom.d.ts → boom.d.ts} +14 -0
  54. package/generated/bridge.d.ts +468 -0
  55. package/generated/{bzAnim.bzLibrary.d.ts → bzAnim.d.ts} +6 -0
  56. package/generated/decore.d.ts +37 -37
  57. package/generated/defcon.d.ts +43 -0
  58. package/generated/{defmath.defmath.d.ts → defmath.d.ts} +3 -2
  59. package/generated/defsave.d.ts +144 -0
  60. package/generated/{dicebag.dicebag.d.ts → dicebag.d.ts} +25 -0
  61. package/generated/druid.d.ts +198 -502
  62. package/generated/event.d.ts +318 -0
  63. package/generated/{gooey.gooey.d.ts → gooey.d.ts} +61 -6
  64. package/generated/immutable.d.ts +13 -0
  65. package/generated/in.onscreen.d.ts +5 -0
  66. package/generated/in.textbox.d.ts +4 -0
  67. package/generated/lang.d.ts +101 -0
  68. package/generated/log.d.ts +36 -0
  69. package/generated/metrics.fps.d.ts +19 -1
  70. package/generated/metrics.mem.d.ts +19 -1
  71. package/generated/monarch.monarch.d.ts +44 -1
  72. package/generated/monarch.transitions.easings.d.ts +0 -1
  73. package/generated/monarch.transitions.gui.d.ts +96 -12
  74. package/generated/nakama.d.ts +1158 -0
  75. package/generated/nakama.engine.defold.d.ts +3 -1
  76. package/generated/nakama.util.log.d.ts +6 -0
  77. package/generated/narrator.d.ts +121 -0
  78. package/generated/openapi/nakama.nakama.d.ts +884 -0
  79. package/generated/orthographic.camera.d.ts +24 -38
  80. package/generated/orthographic.d.ts +155 -0
  81. package/generated/panthera.d.ts +170 -0
  82. package/generated/{persist.persist.d.ts → persist.d.ts} +3 -0
  83. package/generated/{platypus.platypus.d.ts → platypus.d.ts} +9 -0
  84. package/generated/proto.d.ts +146 -0
  85. package/generated/{rendy.rendy.d.ts → rendy.d.ts} +33 -80
  86. package/generated/richtext.color.d.ts +15 -0
  87. package/generated/saver.saver.d.ts +289 -42
  88. package/generated/saver.storage.d.ts +79 -14
  89. package/generated/squid.d.ts +127 -0
  90. package/generated/tweener.d.ts +42 -0
  91. package/generated/{yagames.yagames.d.ts → yagames.d.ts} +151 -29
  92. package/generated/{zzfx.api.d.ts → zzfx.d.ts} +7 -0
  93. package/library-classification.json +0 -227
  94. package/library-targets.json +1 -284
  95. package/luals-targets.json +168 -1
  96. package/openapi-targets.json +17 -0
  97. package/package.json +9 -88
  98. package/script-api-targets.json +15 -0
  99. package/scripts/__snapshots__/parse-luals.test.ts.snap +504 -85
  100. package/scripts/apply-luals-overrides.ts +95 -0
  101. package/scripts/authored-parity.ts +718 -0
  102. package/scripts/emit-library-dts.ts +177 -19
  103. package/scripts/extract-api-doc.ts +189 -38
  104. package/scripts/fidelity-floor.ts +178 -0
  105. package/scripts/import-upstream-docs.ts +125 -0
  106. package/scripts/lower-api-doc.ts +69 -19
  107. package/scripts/luals-fidelity.ts +22 -10
  108. package/scripts/map-luals-types.ts +86 -22
  109. package/scripts/parse-lua-surface.ts +187 -0
  110. package/scripts/parse-luals.ts +473 -22
  111. package/scripts/parse-markdown-api.ts +247 -0
  112. package/scripts/parse-openapi-api.ts +313 -0
  113. package/scripts/sync-authored-types.ts +249 -0
  114. package/scripts/sync-library-types.ts +99 -3
  115. package/scripts/sync-luals-types.ts +29 -2
  116. package/scripts/sync-markdown-types.ts +761 -0
  117. package/scripts/sync-openapi-types.ts +308 -0
  118. package/scripts/sync-script-api-types.ts +367 -0
  119. package/api-doc/boom.boom.json +0 -26
  120. package/api-doc/bzAnim.bzLibrary.json +0 -156
  121. package/api-doc/defcon.console.json +0 -109
  122. package/api-doc/defsave.defsave.json +0 -175
  123. package/api-doc/deftest.deftest.json +0 -71
  124. package/api-doc/gooey.gooey.json +0 -963
  125. package/api-doc/immutable.immutable.json +0 -63
  126. package/api-doc/lang.lang.json +0 -411
  127. package/api-doc/log.log.json +0 -50
  128. package/api-doc/narrator.narrator.json +0 -150
  129. package/api-doc/proto.proto.json +0 -355
  130. package/api-doc/squid.squid.json +0 -660
  131. package/api-doc/tweener.tweener.json +0 -419
  132. package/generated/bridge.bridge.d.ts +0 -533
  133. package/generated/defcon.console.d.ts +0 -24
  134. package/generated/defsave.defsave.d.ts +0 -31
  135. package/generated/event.event.d.ts +0 -54
  136. package/generated/immutable.immutable.d.ts +0 -13
  137. package/generated/lang.lang.d.ts +0 -33
  138. package/generated/log.log.d.ts +0 -40
  139. package/generated/nakama.nakama.d.ts +0 -594
  140. package/generated/narrator.narrator.d.ts +0 -66
  141. package/generated/proto.proto.d.ts +0 -36
  142. package/generated/squid.squid.d.ts +0 -106
  143. package/generated/tweener.tweener.d.ts +0 -151
  144. /package/generated/{deftest.deftest.d.ts → deftest.d.ts} +0 -0
  145. /package/generated/{starly.starly.d.ts → starly.d.ts} +0 -0
@@ -8,8 +8,8 @@
8
8
  {
9
9
  "type": "FUNCTION",
10
10
  "name": "follow",
11
- "brief": "Follow a game object.",
12
- "description": "Follow a game object.",
11
+ "brief": "Follow one or more game objects. When following multiple objects the camera will follow the center point between the objects.",
12
+ "description": "Follow one or more game objects. When following multiple objects the camera will follow the center point between the objects.",
13
13
  "parameters": [
14
14
  {
15
15
  "name": "camera_id",
@@ -20,10 +20,10 @@
20
20
  "is_optional": "False"
21
21
  },
22
22
  {
23
- "name": "target",
24
- "doc": "Game object to follow",
23
+ "name": "targets",
24
+ "doc": "Game object(s) to follow",
25
25
  "types": [
26
- "Hash | Url"
26
+ "Hash | Url | (Hash | Url)[]"
27
27
  ],
28
28
  "is_optional": "False"
29
29
  },
@@ -130,6 +130,56 @@
130
130
  ],
131
131
  "returnvalues": []
132
132
  },
133
+ {
134
+ "type": "FUNCTION",
135
+ "name": "get_automatic_zoom",
136
+ "brief": "Get if the camera is configured to use automatic zoom level.",
137
+ "description": "Get if the camera is configured to use automatic zoom level.",
138
+ "parameters": [
139
+ {
140
+ "name": "camera_id",
141
+ "doc": "undefined for the first camera",
142
+ "types": [
143
+ "Hash | Url | undefined"
144
+ ],
145
+ "is_optional": "False"
146
+ }
147
+ ],
148
+ "returnvalues": [
149
+ {
150
+ "name": "",
151
+ "doc": "",
152
+ "types": [
153
+ "boolean"
154
+ ]
155
+ }
156
+ ]
157
+ },
158
+ {
159
+ "type": "FUNCTION",
160
+ "name": "set_automatic_zoom",
161
+ "brief": "Set if the camera should use automatic zoom level.",
162
+ "description": "Set if the camera should use automatic zoom level.",
163
+ "parameters": [
164
+ {
165
+ "name": "camera_id",
166
+ "doc": "undefined for the first camera",
167
+ "types": [
168
+ "Hash | Url | undefined"
169
+ ],
170
+ "is_optional": "False"
171
+ },
172
+ {
173
+ "name": "enabled",
174
+ "doc": "True if automatic zoom should be enabled",
175
+ "types": [
176
+ "boolean"
177
+ ],
178
+ "is_optional": "False"
179
+ }
180
+ ],
181
+ "returnvalues": []
182
+ },
133
183
  {
134
184
  "type": "FUNCTION",
135
185
  "name": "shake",
@@ -411,31 +461,6 @@
411
461
  }
412
462
  ]
413
463
  },
414
- {
415
- "type": "FUNCTION",
416
- "name": "get_projection_id",
417
- "brief": "Get the current projection id of the camera.",
418
- "description": "Get the current projection id of the camera.",
419
- "parameters": [
420
- {
421
- "name": "camera_id",
422
- "doc": "undefined for the first camera",
423
- "types": [
424
- "Hash | Url | undefined"
425
- ],
426
- "is_optional": "False"
427
- }
428
- ],
429
- "returnvalues": [
430
- {
431
- "name": "",
432
- "doc": "",
433
- "types": [
434
- "Hash"
435
- ]
436
- }
437
- ]
438
- },
439
464
  {
440
465
  "type": "FUNCTION",
441
466
  "name": "recoil",
@@ -662,8 +687,8 @@
662
687
  {
663
688
  "type": "FUNCTION",
664
689
  "name": "world_to_screen",
665
- "brief": "Translate world coordinates to screen coordinates, based on the view and projection of the camera, optionally taking into account an adjust mode. This is useful when manually culling game objects and you need to determine if a world coordinate will be visible or not. It can also be used to position gui nodes on top of game objects.",
666
- "description": "Translate world coordinates to screen coordinates, based on the view and projection of the camera, optionally taking into account an adjust mode. This is useful when manually culling game objects and you need to determine if a world coordinate will be visible or not. It can also be used to position gui nodes on top of game objects.",
690
+ "brief": "Translate world coordinates to screen coordinates, based on the view and projection of the camera. This is useful when manually culling game objects and you need to determine if a world coordinate will be visible or not. It can also be used to position gui nodes on top of game objects.",
691
+ "description": "Translate world coordinates to screen coordinates, based on the view and projection of the camera. This is useful when manually culling game objects and you need to determine if a world coordinate will be visible or not. It can also be used to position gui nodes on top of game objects.",
667
692
  "parameters": [
668
693
  {
669
694
  "name": "camera_id",
@@ -680,14 +705,6 @@
680
705
  "Vector3"
681
706
  ],
682
707
  "is_optional": "False"
683
- },
684
- {
685
- "name": "adjust_mode",
686
- "doc": "One of gui.ADJUST_FIT, gui.ADJUST_ZOOM and gui.ADJUST_STRETCH, or undefined to not take into account the adjust mode.",
687
- "types": [
688
- "typeof gui.ADJUST_FIT | typeof gui.ADJUST_STRETCH | typeof gui.ADJUST_ZOOM"
689
- ],
690
- "is_optional": "True"
691
708
  }
692
709
  ],
693
710
  "returnvalues": [
@@ -782,56 +799,6 @@
782
799
  }
783
800
  ]
784
801
  },
785
- {
786
- "type": "FUNCTION",
787
- "name": "add_projector",
788
- "brief": "Add a custom projector that can be used by cameras in your project (see configuration above).",
789
- "description": "Add a custom projector that can be used by cameras in your project (see configuration above).",
790
- "parameters": [
791
- {
792
- "name": "projector_id",
793
- "doc": "Id of the projector. Used as a value in the projection field of the camera script.",
794
- "types": [
795
- "Hash"
796
- ],
797
- "is_optional": "False"
798
- },
799
- {
800
- "name": "projector_fn",
801
- "doc": "The function to call when a projection matrix is needed for the camera. The function will receive the id, near_z and far_z values of the camera.",
802
- "types": [
803
- "(id: Hash, near_z: number, far_z: number) => void"
804
- ],
805
- "is_optional": "False"
806
- }
807
- ],
808
- "returnvalues": []
809
- },
810
- {
811
- "type": "FUNCTION",
812
- "name": "use_projector",
813
- "brief": "Set a specific projector for a camera. This must be either one of the predefined projectors (see above) or a custom projector added using `camera.add_projector()`.",
814
- "description": "Set a specific projector for a camera. This must be either one of the predefined projectors (see above) or a custom projector added using `camera.add_projector()`.",
815
- "parameters": [
816
- {
817
- "name": "camera_id",
818
- "doc": "undefined for the first camera",
819
- "types": [
820
- "Hash | Url | undefined"
821
- ],
822
- "is_optional": "False"
823
- },
824
- {
825
- "name": "projector_id",
826
- "doc": "Id of the projector.",
827
- "types": [
828
- "Hash"
829
- ],
830
- "is_optional": "False"
831
- }
832
- ],
833
- "returnvalues": []
834
- },
835
802
  {
836
803
  "type": "FUNCTION",
837
804
  "name": "set_window_scaling_factor",
@@ -852,6 +819,8 @@
852
819
  {
853
820
  "type": "VARIABLE",
854
821
  "name": "PROJECTOR",
822
+ "brief": "",
823
+ "description": "",
855
824
  "types": [
856
825
  "{ FIXED_ZOOM: Hash; DEFAULT: Hash; FIXED_AUTO: Hash; }"
857
826
  ],
@@ -885,6 +854,8 @@
885
854
  {
886
855
  "type": "VARIABLE",
887
856
  "name": "SHAKE_BOTH",
857
+ "brief": "",
858
+ "description": "",
888
859
  "types": [
889
860
  "Hash"
890
861
  ]
@@ -892,6 +863,8 @@
892
863
  {
893
864
  "type": "VARIABLE",
894
865
  "name": "SHAKE_VERTICAL",
866
+ "brief": "",
867
+ "description": "",
895
868
  "types": [
896
869
  "Hash"
897
870
  ]
@@ -899,20 +872,17 @@
899
872
  {
900
873
  "type": "VARIABLE",
901
874
  "name": "SHAKE_HORIZONTAL",
875
+ "brief": "",
876
+ "description": "",
902
877
  "types": [
903
878
  "Hash"
904
879
  ]
905
880
  },
906
- {
907
- "type": "VARIABLE",
908
- "name": "ORTHOGRAPHIC_RENDER_SCRIPT_USED",
909
- "types": [
910
- "boolean"
911
- ]
912
- },
913
881
  {
914
882
  "type": "VARIABLE",
915
883
  "name": "MSG_DISABLE",
884
+ "brief": "",
885
+ "description": "",
916
886
  "types": [
917
887
  "Hash"
918
888
  ]
@@ -920,6 +890,8 @@
920
890
  {
921
891
  "type": "VARIABLE",
922
892
  "name": "MSG_UNFOLLOW",
893
+ "brief": "",
894
+ "description": "",
923
895
  "types": [
924
896
  "Hash"
925
897
  ]
@@ -927,6 +899,8 @@
927
899
  {
928
900
  "type": "VARIABLE",
929
901
  "name": "MSG_FOLLOW",
902
+ "brief": "",
903
+ "description": "",
930
904
  "types": [
931
905
  "Hash"
932
906
  ]
@@ -934,6 +908,8 @@
934
908
  {
935
909
  "type": "VARIABLE",
936
910
  "name": "MSG_FOLLOW_OFFSET",
911
+ "brief": "",
912
+ "description": "",
937
913
  "types": [
938
914
  "Hash"
939
915
  ]
@@ -941,6 +917,8 @@
941
917
  {
942
918
  "type": "VARIABLE",
943
919
  "name": "MSG_RECOIL",
920
+ "brief": "",
921
+ "description": "",
944
922
  "types": [
945
923
  "Hash"
946
924
  ]
@@ -948,6 +926,8 @@
948
926
  {
949
927
  "type": "VARIABLE",
950
928
  "name": "MSG_SHAKE",
929
+ "brief": "",
930
+ "description": "",
951
931
  "types": [
952
932
  "Hash"
953
933
  ]
@@ -955,6 +935,8 @@
955
935
  {
956
936
  "type": "VARIABLE",
957
937
  "name": "MSG_SHAKE_COMPLETED",
938
+ "brief": "",
939
+ "description": "",
958
940
  "types": [
959
941
  "Hash"
960
942
  ]
@@ -962,6 +944,8 @@
962
944
  {
963
945
  "type": "VARIABLE",
964
946
  "name": "MSG_STOP_SHAKING",
947
+ "brief": "",
948
+ "description": "",
965
949
  "types": [
966
950
  "Hash"
967
951
  ]
@@ -969,6 +953,8 @@
969
953
  {
970
954
  "type": "VARIABLE",
971
955
  "name": "MSG_DEADZONE",
956
+ "brief": "",
957
+ "description": "",
972
958
  "types": [
973
959
  "Hash"
974
960
  ]
@@ -976,6 +962,8 @@
976
962
  {
977
963
  "type": "VARIABLE",
978
964
  "name": "MSG_BOUNDS",
965
+ "brief": "",
966
+ "description": "",
979
967
  "types": [
980
968
  "Hash"
981
969
  ]
@@ -983,6 +971,8 @@
983
971
  {
984
972
  "type": "VARIABLE",
985
973
  "name": "MSG_UPDATE_CAMERA",
974
+ "brief": "",
975
+ "description": "",
986
976
  "types": [
987
977
  "Hash"
988
978
  ]
@@ -990,13 +980,17 @@
990
980
  {
991
981
  "type": "VARIABLE",
992
982
  "name": "MSG_ZOOM_TO",
983
+ "brief": "",
984
+ "description": "",
993
985
  "types": [
994
986
  "Hash"
995
987
  ]
996
988
  },
997
989
  {
998
990
  "type": "VARIABLE",
999
- "name": "MSG_USE_PROJECTION",
991
+ "name": "MSG_SET_AUTOMATIC_ZOOM",
992
+ "brief": "Posted to a camera to turn automatic zoom on or off.",
993
+ "description": "Posted to a camera to turn automatic zoom on or off.",
1000
994
  "types": [
1001
995
  "Hash"
1002
996
  ]
@@ -1004,6 +998,8 @@
1004
998
  {
1005
999
  "type": "VARIABLE",
1006
1000
  "name": "MSG_VIEWPORT",
1001
+ "brief": "",
1002
+ "description": "",
1007
1003
  "types": [
1008
1004
  "Hash"
1009
1005
  ]
@@ -1011,6 +1007,8 @@
1011
1007
  {
1012
1008
  "type": "VARIABLE",
1013
1009
  "name": "MSG_ENABLE",
1010
+ "brief": "",
1011
+ "description": "",
1014
1012
  "types": [
1015
1013
  "Hash"
1016
1014
  ]