@tlua/gmod 1.0.5 → 1.0.6

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 (272) hide show
  1. package/package.json +1 -1
  2. package/types/achievementicon.d.tlua +0 -1
  3. package/types/achievements.d.tlua +15 -16
  4. package/types/ai.d.tlua +5 -6
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +18 -19
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +1 -3
  11. package/types/bf_read.d.tlua +10 -12
  12. package/types/bit.d.tlua +11 -12
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +16 -17
  15. package/types/ceffectdata.d.tlua +31 -33
  16. package/types/chat.d.tlua +5 -6
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +7 -8
  19. package/types/cluaemitter.d.tlua +11 -13
  20. package/types/clualocomotion.d.tlua +39 -41
  21. package/types/cluaparticle.d.tlua +43 -45
  22. package/types/cmovedata.d.tlua +46 -48
  23. package/types/cnavarea.d.tlua +76 -78
  24. package/types/cnavladder.d.tlua +21 -23
  25. package/types/cnewparticleeffect.d.tlua +25 -27
  26. package/types/color.d.tlua +28 -29
  27. package/types/concommand.d.tlua +4 -5
  28. package/types/constraint.d.tlua +28 -29
  29. package/types/construct.d.tlua +1 -2
  30. package/types/contentheader.d.tlua +1 -3
  31. package/types/contenticon.d.tlua +7 -9
  32. package/types/contentsidebar.d.tlua +2 -4
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +2 -4
  35. package/types/controlpanel.d.tlua +11 -14
  36. package/types/controlpresets.d.tlua +11 -13
  37. package/types/convar.d.tlua +15 -17
  38. package/types/cookie.d.tlua +3 -4
  39. package/types/coroutine.d.tlua +7 -8
  40. package/types/crecipientfilter.d.tlua +15 -17
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +13 -15
  43. package/types/ctakedamageinfo.d.tlua +32 -34
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +5 -7
  46. package/types/cusercmd.d.tlua +26 -28
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +6 -7
  49. package/types/dadjustablemodelpanel.d.tlua +5 -7
  50. package/types/dalphabar.d.tlua +1 -3
  51. package/types/dbinder.d.tlua +2 -4
  52. package/types/dbubblecontainer.d.tlua +0 -2
  53. package/types/dbutton.d.tlua +6 -8
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +3 -5
  57. package/types/dcheckboxlabel.d.tlua +9 -10
  58. package/types/dcollapsiblecategory.d.tlua +21 -23
  59. package/types/dcolorbutton.d.tlua +5 -7
  60. package/types/dcolorcombo.d.tlua +3 -5
  61. package/types/dcolorcube.d.tlua +11 -13
  62. package/types/dcolormixer.d.tlua +25 -27
  63. package/types/dcolorpalette.d.tlua +21 -23
  64. package/types/dcolumnsheet.d.tlua +3 -5
  65. package/types/dcombobox.d.tlua +15 -17
  66. package/types/ddragbase.d.tlua +11 -13
  67. package/types/ddrawer.d.tlua +6 -8
  68. package/types/debug.d.tlua +16 -19
  69. package/types/debugoverlay.d.tlua +11 -12
  70. package/types/dentityproperties.d.tlua +3 -5
  71. package/types/derma.d.tlua +10 -11
  72. package/types/dexpandbutton.d.tlua +1 -3
  73. package/types/dfilebrowser.d.tlua +20 -21
  74. package/types/dform.d.tlua +16 -18
  75. package/types/dframe.d.tlua +24 -25
  76. package/types/dgrid.d.tlua +9 -11
  77. package/types/dhorizontaldivider.d.tlua +18 -20
  78. package/types/dhorizontalscroller.d.tlua +9 -11
  79. package/types/dhscrollbar.d.tlua +9 -11
  80. package/types/dhtml.d.tlua +6 -8
  81. package/types/dhtmlcontrols.d.tlua +5 -6
  82. package/types/diconbrowser.d.tlua +9 -11
  83. package/types/diconlayout.d.tlua +16 -18
  84. package/types/dimage.d.tlua +17 -20
  85. package/types/dimagebutton.d.tlua +9 -10
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +31 -33
  88. package/types/dlabeleditable.d.tlua +3 -5
  89. package/types/dlabelurl.d.tlua +8 -10
  90. package/types/dlistbox.d.tlua +6 -8
  91. package/types/dlistboxitem.d.tlua +2 -4
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +32 -34
  94. package/types/dlistview_column.d.tlua +12 -14
  95. package/types/dlistview_columnplain.d.tlua +0 -1
  96. package/types/dlistview_draggerbar.d.tlua +0 -1
  97. package/types/dlistview_line.d.tlua +11 -13
  98. package/types/dlistviewheaderlabel.d.tlua +0 -1
  99. package/types/dlistviewlabel.d.tlua +0 -1
  100. package/types/dlistviewline.d.tlua +0 -1
  101. package/types/dmenu.d.tlua +23 -28
  102. package/types/dmenubar.d.tlua +2 -7
  103. package/types/dmenuoption.d.tlua +11 -13
  104. package/types/dmenuoptioncvar.d.tlua +4 -6
  105. package/types/dmodelpanel.d.tlua +20 -22
  106. package/types/dmodelselect.d.tlua +0 -2
  107. package/types/dmodelselectmulti.d.tlua +0 -2
  108. package/types/dnotify.d.tlua +8 -10
  109. package/types/dnumberscratch.d.tlua +24 -26
  110. package/types/dnumberwang.d.tlua +14 -16
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +17 -18
  113. package/types/dpanel.d.tlua +12 -14
  114. package/types/dpanellist.d.tlua +11 -12
  115. package/types/dpaneloverlay.d.tlua +5 -7
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +4 -6
  118. package/types/dprogress.d.tlua +1 -3
  119. package/types/dproperties.d.tlua +2 -4
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -3
  122. package/types/dproperty_entity.d.tlua +0 -1
  123. package/types/dproperty_float.d.tlua +0 -1
  124. package/types/dproperty_generic.d.tlua +3 -5
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +15 -17
  128. package/types/dragndrop.d.tlua +10 -11
  129. package/types/draw.d.tlua +10 -12
  130. package/types/drgbpicker.d.tlua +2 -4
  131. package/types/drive.d.tlua +11 -13
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +10 -11
  134. package/types/dshape.d.tlua +5 -7
  135. package/types/dsizetocontents.d.tlua +3 -5
  136. package/types/dslider.d.tlua +26 -28
  137. package/types/dsprite.d.tlua +7 -9
  138. package/types/dtab.d.tlua +6 -8
  139. package/types/dtextentry.d.tlua +41 -43
  140. package/types/dtilelayout.d.tlua +19 -21
  141. package/types/dtooltip.d.tlua +4 -6
  142. package/types/dtree.d.tlua +14 -16
  143. package/types/dtree_node.d.tlua +66 -68
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +29 -31
  146. package/types/dverticaldivider.d.tlua +21 -23
  147. package/types/dvscrollbar.d.tlua +9 -11
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +2 -4
  150. package/types/effects.d.tlua +6 -7
  151. package/types/engine.d.tlua +21 -22
  152. package/types/entity.d.tlua +643 -674
  153. package/types/ents.d.tlua +19 -25
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +39 -40
  156. package/types/file_class.d.tlua +0 -1
  157. package/types/fingerposer.d.tlua +0 -1
  158. package/types/fingervar.d.tlua +0 -1
  159. package/types/frame.d.tlua +0 -1
  160. package/types/frame_blend.d.tlua +7 -8
  161. package/types/game.d.tlua +39 -40
  162. package/types/gameevent.d.tlua +0 -1
  163. package/types/gamemode.d.tlua +2 -4
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +266 -268
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +4 -5
  168. package/types/gui.d.tlua +21 -22
  169. package/types/gwen.d.tlua +3 -4
  170. package/types/halo.d.tlua +2 -3
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +4 -5
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +1 -2
  175. package/types/iconeditor.d.tlua +9 -11
  176. package/types/igmodaudiochannel.d.tlua +40 -42
  177. package/types/imagecheckbox.d.tlua +2 -4
  178. package/types/imaterial.d.tlua +25 -27
  179. package/types/imesh.d.tlua +4 -6
  180. package/types/input.d.tlua +22 -25
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +8 -10
  183. package/types/isave.d.tlua +8 -10
  184. package/types/itexture.d.tlua +9 -11
  185. package/types/ivideowriter.d.tlua +4 -6
  186. package/types/jit.d.tlua +16 -17
  187. package/types/killicon.d.tlua +7 -8
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +1 -2
  190. package/types/list.d.tlua +8 -9
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +2 -3
  193. package/types/markupobject.d.tlua +4 -6
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +83 -84
  196. package/types/matproxy.d.tlua +3 -4
  197. package/types/matselect.d.tlua +9 -11
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +2 -3
  200. package/types/mesh.d.tlua +19 -20
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +10 -11
  203. package/types/navmesh.d.tlua +26 -27
  204. package/types/net.d.tlua +51 -53
  205. package/types/nextbot.d.tlua +34 -37
  206. package/types/notification.d.tlua +2 -3
  207. package/types/npc.d.tlua +180 -182
  208. package/types/numpad.d.tlua +7 -8
  209. package/types/os.d.tlua +3 -5
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +329 -331
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +30 -32
  214. package/types/permissions.d.tlua +6 -7
  215. package/types/physcollide.d.tlua +2 -4
  216. package/types/physenv.d.tlua +11 -12
  217. package/types/physobj.d.tlua +77 -79
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +288 -293
  220. package/types/player_manager.d.tlua +13 -14
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +6 -7
  223. package/types/projectedtexture.d.tlua +47 -49
  224. package/types/properties.d.tlua +5 -6
  225. package/types/propselect.d.tlua +3 -5
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +142 -143
  228. package/types/resource.d.tlua +2 -3
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +52 -54
  231. package/types/saverestore.d.tlua +12 -13
  232. package/types/schedule.d.tlua +5 -7
  233. package/types/scripted_ents.d.tlua +9 -12
  234. package/types/search.d.tlua +1 -2
  235. package/types/serverlist.d.tlua +7 -8
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +10 -11
  239. package/types/spawnicon.d.tlua +6 -8
  240. package/types/spawnmenu.d.tlua +23 -25
  241. package/types/spawnmenucontentpanel.d.tlua +3 -5
  242. package/types/sql.d.tlua +9 -10
  243. package/types/stack.d.tlua +4 -6
  244. package/types/steamworks.d.tlua +18 -19
  245. package/types/string.d.tlua +46 -50
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +34 -35
  248. package/types/surfaceinfo.d.tlua +4 -6
  249. package/types/system.d.tlua +10 -11
  250. package/types/table.d.tlua +45 -48
  251. package/types/task.d.tlua +8 -10
  252. package/types/team.d.tlua +19 -20
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +14 -15
  256. package/types/tool.d.tlua +42 -46
  257. package/types/ugcpublishwindow.d.tlua +7 -9
  258. package/types/umsg.d.tlua +12 -13
  259. package/types/undo.d.tlua +10 -11
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +2 -3
  262. package/types/utf8.d.tlua +7 -8
  263. package/types/util.d.tlua +90 -95
  264. package/types/vector.d.tlua +36 -37
  265. package/types/vehicle.d.tlua +48 -51
  266. package/types/vgui.d.tlua +14 -19
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +35 -36
  269. package/types/weapon.d.tlua +81 -84
  270. package/types/weapons.d.tlua +5 -7
  271. package/types/widgets.d.tlua +1 -2
  272. package/types/workshopfilebase.d.tlua +4 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tlua/gmod",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Garry's Mod type declarations for tlua, generated from the GMod wiki.",
5
5
  "types": "index.d.tlua",
6
6
  "files": [
@@ -9,4 +9,3 @@
9
9
  * @source https://wiki.facepunch.com/gmod/AchievementIcon
10
10
  */
11
11
  interface AchievementIcon extends Panel {}
12
-
@@ -14,12 +14,14 @@ interface AchievementsLib {
14
14
  * @source https://wiki.facepunch.com/gmod/achievements.BalloonPopped
15
15
  */
16
16
  BalloonPopped(): void;
17
+
17
18
  /**
18
19
  * Returns the amount of achievements currently in Garry's Mod.
19
20
  * @realm client and menu
20
21
  * @source https://wiki.facepunch.com/gmod/achievements.Count
21
22
  */
22
23
  Count(): number;
24
+
23
25
  /**
24
26
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
25
27
  * Adds one to the count of balls eaten. Once this count reaches 200, the 'Ball Eater' achievement is unlocked.
@@ -27,30 +29,35 @@ interface AchievementsLib {
27
29
  * @source https://wiki.facepunch.com/gmod/achievements.EatBall
28
30
  */
29
31
  EatBall(): void;
32
+
30
33
  /**
31
34
  * Retrieves progress of given achievement.
32
35
  * @realm client and menu
33
36
  * @source https://wiki.facepunch.com/gmod/achievements.GetCount
34
37
  */
35
38
  GetCount(achievementID: number): number;
39
+
36
40
  /**
37
41
  * Retrieves the description of the given achievement.
38
42
  * @realm client and menu
39
43
  * @source https://wiki.facepunch.com/gmod/achievements.GetDesc
40
44
  */
41
45
  GetDesc(achievementID: number): string;
46
+
42
47
  /**
43
48
  * Retrieves the end progress goal of the given achievement.
44
49
  * @realm client and menu
45
50
  * @source https://wiki.facepunch.com/gmod/achievements.GetGoal
46
51
  */
47
52
  GetGoal(achievementID: number): number;
53
+
48
54
  /**
49
55
  * Retrieves the name of the given achievement.
50
56
  * @realm client and menu
51
57
  * @source https://wiki.facepunch.com/gmod/achievements.GetName
52
58
  */
53
59
  GetName(achievementID: number): string;
60
+
54
61
  /**
55
62
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
56
63
  * Adds one to the count of baddies killed. Once this count reaches 1000, the 'War Zone' achievement is unlocked.
@@ -58,6 +65,7 @@ interface AchievementsLib {
58
65
  * @source https://wiki.facepunch.com/gmod/achievements.IncBaddies
59
66
  */
60
67
  IncBaddies(): void;
68
+
61
69
  /**
62
70
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
63
71
  * Adds one to the count of innocent animals killed. Once this count reaches 1000, the 'Innocent Bystander' achievement is unlocked.
@@ -65,6 +73,7 @@ interface AchievementsLib {
65
73
  * @source https://wiki.facepunch.com/gmod/achievements.IncBystander
66
74
  */
67
75
  IncBystander(): void;
76
+
68
77
  /**
69
78
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
70
79
  * Adds one to the count of friendly NPCs killed. Once this count reaches 1000, the 'Bad Friend' achievement is unlocked.
@@ -72,12 +81,14 @@ interface AchievementsLib {
72
81
  * @source https://wiki.facepunch.com/gmod/achievements.IncGoodies
73
82
  */
74
83
  IncGoodies(): void;
84
+
75
85
  /**
76
86
  * Returns whether the given achievement is obtained or not.
77
87
  * @realm client and menu
78
88
  * @source https://wiki.facepunch.com/gmod/achievements.IsAchieved
79
89
  */
80
90
  IsAchieved(achievementID: number): boolean;
91
+
81
92
  /**
82
93
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
83
94
  * Adds one to the count of things removed. Once this count reaches 5000, the 'Destroyer' achievement is unlocked.
@@ -85,6 +96,7 @@ interface AchievementsLib {
85
96
  * @source https://wiki.facepunch.com/gmod/achievements.Remover
86
97
  */
87
98
  Remover(): void;
99
+
88
100
  /**
89
101
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
90
102
  * Adds one to the count of how many times the spawnmenu has been opened. Once this count reaches 100,000, the 'Menu User' achievement is unlocked.
@@ -92,6 +104,7 @@ interface AchievementsLib {
92
104
  * @source https://wiki.facepunch.com/gmod/achievements.SpawnMenuOpen
93
105
  */
94
106
  SpawnMenuOpen(): void;
107
+
95
108
  /**
96
109
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
97
110
  * Adds one to the count of NPCs spawned. Once this count reaches 1000, the 'Procreator' achievement is unlocked.
@@ -99,6 +112,7 @@ interface AchievementsLib {
99
112
  * @source https://wiki.facepunch.com/gmod/achievements.SpawnedNPC
100
113
  */
101
114
  SpawnedNPC(): void;
115
+
102
116
  /**
103
117
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
104
118
  * Adds one to the count of props spawned. Once this count reaches 5000, the 'Creator' achievement is unlocked.
@@ -106,6 +120,7 @@ interface AchievementsLib {
106
120
  * @source https://wiki.facepunch.com/gmod/achievements.SpawnedProp
107
121
  */
108
122
  SpawnedProp(): void;
123
+
109
124
  /**
110
125
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
111
126
  * Adds one to the count of ragdolls spawned. Once this count reaches 2000, the 'Dollhouse' achievement is unlocked.
@@ -114,19 +129,3 @@ interface AchievementsLib {
114
129
  */
115
130
  SpawnedRagdoll(): void;
116
131
  }
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
package/types/ai.d.tlua CHANGED
@@ -16,30 +16,35 @@ interface AiLib {
16
16
  * @source https://wiki.facepunch.com/gmod/ai.GetNodeCount
17
17
  */
18
18
  GetNodeCount(): number;
19
+
19
20
  /**
20
21
  * Translates a schedule name to its corresponding ID.
21
22
  * @realm server
22
23
  * @source https://wiki.facepunch.com/gmod/ai.GetScheduleID
23
24
  */
24
25
  GetScheduleID(sched: string): number;
26
+
25
27
  /**
26
28
  * Returns the squad leader of the given squad.
27
29
  * @realm server
28
30
  * @source https://wiki.facepunch.com/gmod/ai.GetSquadLeader
29
31
  */
30
32
  GetSquadLeader(squad: string): NPC;
33
+
31
34
  /**
32
35
  * Returns the amount of members a given squad has. See also [ai.GetSquadMembers](https://wiki.facepunch.com/gmod/ai.GetSquadMembers).
33
36
  * @realm server
34
37
  * @source https://wiki.facepunch.com/gmod/ai.GetSquadMemberCount
35
38
  */
36
39
  GetSquadMemberCount(squad: string): number;
40
+
37
41
  /**
38
42
  * Returns all members of a given squad. See also [ai.GetSquadMemberCount](https://wiki.facepunch.com/gmod/ai.GetSquadMemberCount) and [NPC:GetSquad](https://wiki.facepunch.com/gmod/NPC:GetSquad).
39
43
  * @realm server
40
44
  * @source https://wiki.facepunch.com/gmod/ai.GetSquadMembers
41
45
  */
42
46
  GetSquadMembers(squad: string): table;
47
+
43
48
  /**
44
49
  * Translates a task name to its corresponding ID.
45
50
  * @realm server
@@ -47,9 +52,3 @@ interface AiLib {
47
52
  */
48
53
  GetTaskID(task: string): number;
49
54
  }
50
-
51
-
52
-
53
-
54
-
55
-
@@ -14,4 +14,3 @@ interface Ai_scheduleLib {
14
14
  */
15
15
  New(name: string): table;
16
16
  }
17
-
@@ -14,4 +14,3 @@ interface Ai_taskLib {
14
14
  */
15
15
  New(): Task;
16
16
  }
17
-
@@ -23,6 +23,7 @@ interface Angle {
23
23
  __mul(l: number, r: Angle): Angle;
24
24
  __div(l: Angle, r: number): Angle;
25
25
  __unm(a: Angle): Angle;
26
+
26
27
  /**
27
28
  * Adds the values of the argument angle to the orignal angle.
28
29
  *
@@ -31,72 +32,84 @@ interface Angle {
31
32
  * @source https://wiki.facepunch.com/gmod/Angle:Add
32
33
  */
33
34
  Add(self: Angle, angle: Angle): void;
35
+
34
36
  /**
35
37
  * Divides all values of the original angle by a scalar. This functions the same as angle1 / num without creating a new angle object, skipping object construction and garbage collection.
36
38
  * @realm shared and menu
37
39
  * @source https://wiki.facepunch.com/gmod/Angle:Div
38
40
  */
39
41
  Div(self: Angle, scalar: number): void;
42
+
40
43
  /**
41
44
  * Returns a normal vector facing in the direction that the angle points.
42
45
  * @realm shared and menu
43
46
  * @source https://wiki.facepunch.com/gmod/Angle:Forward
44
47
  */
45
48
  Forward(self: Angle): Vector;
49
+
46
50
  /**
47
51
  * Returns if the angle is equal to another angle with the given tolerance.
48
52
  * @realm shared and menu
49
53
  * @source https://wiki.facepunch.com/gmod/Angle:IsEqualTol
50
54
  */
51
55
  IsEqualTol(self: Angle, compare: Angle, tolerance: number): boolean;
56
+
52
57
  /**
53
58
  * Returns whether the pitch, yaw and roll are 0 or not.
54
59
  * @realm shared and menu
55
60
  * @source https://wiki.facepunch.com/gmod/Angle:IsZero
56
61
  */
57
62
  IsZero(self: Angle): boolean;
63
+
58
64
  /**
59
65
  * Multiplies a scalar to all the values of the orignal angle. This functions the same as num * angle without creating a new angle object, skipping object construction and garbage collection.
60
66
  * @realm shared and menu
61
67
  * @source https://wiki.facepunch.com/gmod/Angle:Mul
62
68
  */
63
69
  Mul(self: Angle, scalar: number): void;
70
+
64
71
  /**
65
72
  * Normalizes the angles by applying a modulo with 360 to pitch, yaw and roll.
66
73
  * @realm shared and menu
67
74
  * @source https://wiki.facepunch.com/gmod/Angle:Normalize
68
75
  */
69
76
  Normalize(self: Angle): void;
77
+
70
78
  /**
71
79
  * Randomizes each element of this Angle object.
72
80
  * @realm shared and menu
73
81
  * @source https://wiki.facepunch.com/gmod/Angle:Random
74
82
  */
75
83
  Random(self: Angle, min?: number, max?: number): void;
84
+
76
85
  /**
77
86
  * Returns a normal vector facing in the direction that points right relative to the angle's direction.
78
87
  * @realm shared and menu
79
88
  * @source https://wiki.facepunch.com/gmod/Angle:Right
80
89
  */
81
90
  Right(self: Angle): Vector;
91
+
82
92
  /**
83
93
  * Rotates the angle around the specified axis by the specified degrees.
84
94
  * @realm shared and menu
85
95
  * @source https://wiki.facepunch.com/gmod/Angle:RotateAroundAxis
86
96
  */
87
97
  RotateAroundAxis(self: Angle, axis: Vector, rotation: number): void;
98
+
88
99
  /**
89
100
  * Copies pitch, yaw and roll from the second angle to the first.
90
101
  * @realm shared and menu
91
102
  * @source https://wiki.facepunch.com/gmod/Angle:Set
92
103
  */
93
104
  Set(self: Angle, originalAngle: Angle): void;
105
+
94
106
  /**
95
107
  * Sets the p, y, and r of the angle.
96
108
  * @realm shared and menu
97
109
  * @source https://wiki.facepunch.com/gmod/Angle:SetUnpacked
98
110
  */
99
111
  SetUnpacked(self: Angle, p: number, y: number, r: number): void;
112
+
100
113
  /**
101
114
  * Snaps the angle to nearest interval of degrees.
102
115
  *
@@ -107,30 +120,35 @@ interface Angle {
107
120
  * @source https://wiki.facepunch.com/gmod/Angle:SnapTo
108
121
  */
109
122
  SnapTo(self: Angle, axis: string, target: number): Angle;
123
+
110
124
  /**
111
125
  * Subtracts the values of the argument angle to the orignal angle. This functions the same as angle1 - angle2 without creating a new angle object, skipping object construction and garbage collection.
112
126
  * @realm shared and menu
113
127
  * @source https://wiki.facepunch.com/gmod/Angle:Sub
114
128
  */
115
129
  Sub(self: Angle, angle: Angle): void;
130
+
116
131
  /**
117
132
  * Returns the angle as a table with three elements.
118
133
  * @realm shared and menu
119
134
  * @source https://wiki.facepunch.com/gmod/Angle:ToTable
120
135
  */
121
136
  ToTable(self: Angle): table;
137
+
122
138
  /**
123
139
  * Returns the pitch, yaw, and roll components of the angle.
124
140
  * @realm shared and menu
125
141
  * @source https://wiki.facepunch.com/gmod/Angle:Unpack
126
142
  */
127
143
  Unpack(self: Angle): (number, number, number);
144
+
128
145
  /**
129
146
  * Returns a normal vector facing in the direction that points up relative to the angle's direction.
130
147
  * @realm shared and menu
131
148
  * @source https://wiki.facepunch.com/gmod/Angle:Up
132
149
  */
133
150
  Up(self: Angle): Vector;
151
+
134
152
  /**
135
153
  * Sets pitch, yaw and roll to 0.
136
154
  * This function is faster than doing it manually.
@@ -140,22 +158,3 @@ interface Angle {
140
158
  */
141
159
  Zero(self: Angle): void;
142
160
  }
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
@@ -7,4 +7,3 @@
7
7
  * @source https://wiki.facepunch.com/gmod/AvatarImage
8
8
  */
9
9
  interface AvatarImage extends Panel {}
10
-
@@ -11,4 +11,3 @@
11
11
  * @deprecated You should be using HTML panel, which this is an alias of.
12
12
  */
13
13
  interface Awesomium extends Panel {}
14
-
@@ -20,6 +20,7 @@ interface BaseclassLib {
20
20
  * @source https://wiki.facepunch.com/gmod/baseclass.Get
21
21
  */
22
22
  Get<T>(name: T): T;
23
+
23
24
  /**
24
25
  * Add a new base class that can be derived by others. This is done automatically for:
25
26
  * * [panels](https://wiki.facepunch.com/gmod/vgui.Register)
@@ -35,6 +36,3 @@ interface BaseclassLib {
35
36
  */
36
37
  Set(name: string, tab: table): void;
37
38
  }
38
-
39
-
40
-
@@ -14,60 +14,70 @@ interface bf_read {
14
14
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadAngle
15
15
  */
16
16
  ReadAngle(self: bf_read): Angle;
17
+
17
18
  /**
18
19
  * Reads 1 bit and returns a bool representing the bit.
19
20
  * @realm client
20
21
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadBool
21
22
  */
22
23
  ReadBool(self: bf_read): boolean;
24
+
23
25
  /**
24
26
  * Reads a signed char and returns a number from -127 to 127 representing the ascii value of that char.
25
27
  * @realm client
26
28
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadChar
27
29
  */
28
30
  ReadChar(self: bf_read): number;
31
+
29
32
  /**
30
33
  * Reads a short representing an entity index and returns the matching entity handle.
31
34
  * @realm client
32
35
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadEntity
33
36
  */
34
37
  ReadEntity(self: bf_read): Entity;
38
+
35
39
  /**
36
40
  * Reads a 4 byte float from the bitstream and returns it.
37
41
  * @realm client
38
42
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadFloat
39
43
  */
40
44
  ReadFloat(self: bf_read): number;
45
+
41
46
  /**
42
47
  * Reads a 4 byte long from the bitstream and returns it.
43
48
  * @realm client
44
49
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadLong
45
50
  */
46
51
  ReadLong(self: bf_read): number;
52
+
47
53
  /**
48
54
  * Reads a 2 byte short from the bitstream and returns it.
49
55
  * @realm client
50
56
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadShort
51
57
  */
52
58
  ReadShort(self: bf_read): number;
59
+
53
60
  /**
54
61
  * Reads a null terminated string from the bitstream.
55
62
  * @realm client
56
63
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadString
57
64
  */
58
65
  ReadString(self: bf_read): string;
66
+
59
67
  /**
60
68
  * Reads a special encoded vector from the bitstream and returns it, this function is not suitable to send normals.
61
69
  * @realm client
62
70
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadVector
63
71
  */
64
72
  ReadVector(self: bf_read): Vector;
73
+
65
74
  /**
66
75
  * Reads a special encoded vector normal from the bitstream and returns it, this function is not suitable to send vectors that represent a position.
67
76
  * @realm client
68
77
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadVectorNormal
69
78
  */
70
79
  ReadVectorNormal(self: bf_read): Vector;
80
+
71
81
  /**
72
82
  * Rewinds the bitstream so it can be read again.
73
83
  * @realm client
@@ -75,15 +85,3 @@ interface bf_read {
75
85
  */
76
86
  Reset(self: bf_read): void;
77
87
  }
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
package/types/bit.d.tlua CHANGED
@@ -12,36 +12,42 @@ interface BitLib {
12
12
  * @source https://wiki.facepunch.com/gmod/bit.arshift
13
13
  */
14
14
  arshift(value: number, shiftCount: number): number;
15
+
15
16
  /**
16
17
  * Performs the bitwise `and` for all values specified.
17
18
  * @realm shared and menu
18
19
  * @source https://wiki.facepunch.com/gmod/bit.band
19
20
  */
20
21
  band(value: number, ...: any): number;
22
+
21
23
  /**
22
24
  * Returns the bitwise not of the value. Inverts every bit of the 32bit integer.
23
25
  * @realm shared and menu
24
26
  * @source https://wiki.facepunch.com/gmod/bit.bnot
25
27
  */
26
28
  bnot(value: number): number;
29
+
27
30
  /**
28
31
  * Returns the bitwise OR of all values specified.
29
32
  * @realm shared and menu
30
33
  * @source https://wiki.facepunch.com/gmod/bit.bor
31
34
  */
32
35
  bor(value1: number, ...: any): number;
36
+
33
37
  /**
34
38
  * Swaps the byte order.
35
39
  * @realm shared and menu
36
40
  * @source https://wiki.facepunch.com/gmod/bit.bswap
37
41
  */
38
42
  bswap(value: number): number;
43
+
39
44
  /**
40
45
  * Returns the bitwise xor of all values specified.
41
46
  * @realm shared and menu
42
47
  * @source https://wiki.facepunch.com/gmod/bit.bxor
43
48
  */
44
49
  bxor(value: number, otherValues?: number): number;
50
+
45
51
  /**
46
52
  * Returns the result of shifting given value left bitwise by given number of bits. See [this wiki article](https://en.wikipedia.org/wiki/Bitwise_operation#Bit_shifts) for more details.
47
53
  * **NOTE**: The returned value will be clamped to a signed 32-bit integer, even on 64-bit builds.
@@ -51,18 +57,21 @@ interface BitLib {
51
57
  * @source https://wiki.facepunch.com/gmod/bit.lshift
52
58
  */
53
59
  lshift(value: number, shiftCount: number): number;
60
+
54
61
  /**
55
62
  * Returns the left rotated value.
56
63
  * @realm shared and menu
57
64
  * @source https://wiki.facepunch.com/gmod/bit.rol
58
65
  */
59
66
  rol(value: number, shiftCount: number): number;
67
+
60
68
  /**
61
69
  * Returns the right rotated value.
62
70
  * @realm shared and menu
63
71
  * @source https://wiki.facepunch.com/gmod/bit.ror
64
72
  */
65
73
  ror(value: number, shiftCount: number): number;
74
+
66
75
  /**
67
76
  * Returns the right shifted value.
68
77
  * **NOTE**: The returned value will be clamped to a signed 32-bit integer, even on 64-bit builds.
@@ -72,12 +81,14 @@ interface BitLib {
72
81
  * @source https://wiki.facepunch.com/gmod/bit.rshift
73
82
  */
74
83
  rshift(value: number, shiftCount: number): number;
84
+
75
85
  /**
76
86
  * Normalizes the specified value and clamps it in the range of a signed 32bit integer.
77
87
  * @realm shared and menu
78
88
  * @source https://wiki.facepunch.com/gmod/bit.tobit
79
89
  */
80
90
  tobit(value: number): number;
91
+
81
92
  /**
82
93
  * Returns the hexadecimal representation of the number with the specified number of characters.
83
94
  * @realm shared and menu
@@ -85,15 +96,3 @@ interface BitLib {
85
96
  */
86
97
  tohex(value: number, characters?: number): string;
87
98
  }
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
@@ -10,4 +10,3 @@
10
10
  * @deprecated Only exists for backwards compatibility with Panel:SetActionFunction. Use DButton instead.
11
11
  */
12
12
  interface Button extends DButton {}
13
-