@tlua/gmod 1.0.4 → 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 +0 -31
  4. package/types/ai.d.tlua +0 -11
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +0 -37
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +0 -4
  11. package/types/bf_read.d.tlua +0 -23
  12. package/types/bit.d.tlua +0 -23
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +0 -33
  15. package/types/ceffectdata.d.tlua +0 -65
  16. package/types/chat.d.tlua +0 -11
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +0 -15
  19. package/types/cluaemitter.d.tlua +0 -25
  20. package/types/clualocomotion.d.tlua +0 -81
  21. package/types/cluaparticle.d.tlua +0 -89
  22. package/types/cmovedata.d.tlua +0 -95
  23. package/types/cnavarea.d.tlua +0 -155
  24. package/types/cnavladder.d.tlua +0 -45
  25. package/types/cnewparticleeffect.d.tlua +0 -53
  26. package/types/color.d.tlua +0 -57
  27. package/types/concommand.d.tlua +0 -9
  28. package/types/constraint.d.tlua +0 -57
  29. package/types/construct.d.tlua +0 -3
  30. package/types/contentheader.d.tlua +1 -6
  31. package/types/contenticon.d.tlua +1 -18
  32. package/types/contentsidebar.d.tlua +1 -8
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +1 -8
  35. package/types/controlpanel.d.tlua +6 -31
  36. package/types/controlpresets.d.tlua +1 -26
  37. package/types/convar.d.tlua +0 -33
  38. package/types/cookie.d.tlua +0 -7
  39. package/types/coroutine.d.tlua +0 -15
  40. package/types/crecipientfilter.d.tlua +0 -33
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +0 -29
  43. package/types/ctakedamageinfo.d.tlua +0 -67
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +0 -13
  46. package/types/cusercmd.d.tlua +0 -55
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +0 -13
  49. package/types/dadjustablemodelpanel.d.tlua +1 -14
  50. package/types/dalphabar.d.tlua +1 -6
  51. package/types/dbinder.d.tlua +1 -8
  52. package/types/dbubblecontainer.d.tlua +1 -4
  53. package/types/dbutton.d.tlua +1 -16
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +1 -10
  57. package/types/dcheckboxlabel.d.tlua +0 -19
  58. package/types/dcollapsiblecategory.d.tlua +1 -46
  59. package/types/dcolorbutton.d.tlua +1 -14
  60. package/types/dcolorcombo.d.tlua +1 -10
  61. package/types/dcolorcube.d.tlua +1 -26
  62. package/types/dcolormixer.d.tlua +1 -54
  63. package/types/dcolorpalette.d.tlua +1 -46
  64. package/types/dcolumnsheet.d.tlua +1 -10
  65. package/types/dcombobox.d.tlua +1 -34
  66. package/types/ddragbase.d.tlua +1 -26
  67. package/types/ddrawer.d.tlua +1 -16
  68. package/types/debug.d.tlua +25 -60
  69. package/types/debugoverlay.d.tlua +0 -23
  70. package/types/dentityproperties.d.tlua +1 -10
  71. package/types/derma.d.tlua +0 -21
  72. package/types/dexpandbutton.d.tlua +1 -6
  73. package/types/dfilebrowser.d.tlua +0 -41
  74. package/types/dform.d.tlua +1 -36
  75. package/types/dframe.d.tlua +0 -49
  76. package/types/dgrid.d.tlua +1 -22
  77. package/types/dhorizontaldivider.d.tlua +1 -40
  78. package/types/dhorizontalscroller.d.tlua +1 -22
  79. package/types/dhscrollbar.d.tlua +1 -22
  80. package/types/dhtml.d.tlua +1 -16
  81. package/types/dhtmlcontrols.d.tlua +0 -11
  82. package/types/diconbrowser.d.tlua +1 -22
  83. package/types/diconlayout.d.tlua +1 -36
  84. package/types/dimage.d.tlua +1 -39
  85. package/types/dimagebutton.d.tlua +0 -19
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +1 -66
  88. package/types/dlabeleditable.d.tlua +1 -10
  89. package/types/dlabelurl.d.tlua +1 -20
  90. package/types/dlistbox.d.tlua +1 -16
  91. package/types/dlistboxitem.d.tlua +1 -8
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +1 -68
  94. package/types/dlistview_column.d.tlua +1 -28
  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 +1 -26
  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 +1 -53
  102. package/types/dmenubar.d.tlua +1 -11
  103. package/types/dmenuoption.d.tlua +1 -26
  104. package/types/dmenuoptioncvar.d.tlua +1 -12
  105. package/types/dmodelpanel.d.tlua +1 -44
  106. package/types/dmodelselect.d.tlua +1 -4
  107. package/types/dmodelselectmulti.d.tlua +1 -4
  108. package/types/dnotify.d.tlua +1 -20
  109. package/types/dnumberscratch.d.tlua +1 -52
  110. package/types/dnumberwang.d.tlua +1 -32
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +0 -35
  113. package/types/dpanel.d.tlua +1 -28
  114. package/types/dpanellist.d.tlua +0 -23
  115. package/types/dpaneloverlay.d.tlua +1 -14
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +1 -12
  118. package/types/dprogress.d.tlua +1 -6
  119. package/types/dproperties.d.tlua +1 -8
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -6
  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 +1 -10
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +9 -41
  128. package/types/dragndrop.d.tlua +0 -21
  129. package/types/draw.d.tlua +0 -22
  130. package/types/drgbpicker.d.tlua +1 -8
  131. package/types/drive.d.tlua +6 -31
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +0 -21
  134. package/types/dshape.d.tlua +1 -14
  135. package/types/dsizetocontents.d.tlua +1 -10
  136. package/types/dslider.d.tlua +1 -56
  137. package/types/dsprite.d.tlua +1 -18
  138. package/types/dtab.d.tlua +1 -16
  139. package/types/dtextentry.d.tlua +1 -86
  140. package/types/dtilelayout.d.tlua +1 -42
  141. package/types/dtooltip.d.tlua +1 -12
  142. package/types/dtree.d.tlua +1 -32
  143. package/types/dtree_node.d.tlua +1 -136
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +0 -60
  146. package/types/dverticaldivider.d.tlua +1 -46
  147. package/types/dvscrollbar.d.tlua +1 -22
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +1 -8
  150. package/types/effects.d.tlua +0 -13
  151. package/types/engine.d.tlua +0 -43
  152. package/types/entity.d.tlua +2 -1319
  153. package/types/ents.d.tlua +0 -44
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +0 -79
  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 +0 -15
  161. package/types/game.d.tlua +0 -79
  162. package/types/gameevent.d.tlua +4 -9
  163. package/types/gamemode.d.tlua +0 -6
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +0 -535
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +0 -9
  168. package/types/gui.d.tlua +0 -43
  169. package/types/gwen.d.tlua +0 -7
  170. package/types/halo.d.tlua +0 -5
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +0 -9
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +0 -3
  175. package/types/iconeditor.d.tlua +1 -22
  176. package/types/igmodaudiochannel.d.tlua +0 -83
  177. package/types/imagecheckbox.d.tlua +1 -8
  178. package/types/imaterial.d.tlua +0 -53
  179. package/types/imesh.d.tlua +0 -11
  180. package/types/input.d.tlua +0 -47
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +0 -19
  183. package/types/isave.d.tlua +0 -19
  184. package/types/itexture.d.tlua +0 -21
  185. package/types/ivideowriter.d.tlua +0 -11
  186. package/types/jit.d.tlua +9 -42
  187. package/types/killicon.d.tlua +0 -15
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +0 -3
  190. package/types/list.d.tlua +0 -17
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +0 -5
  193. package/types/markupobject.d.tlua +0 -11
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +200 -371
  196. package/types/matproxy.d.tlua +0 -7
  197. package/types/matselect.d.tlua +1 -22
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +0 -5
  200. package/types/mesh.d.tlua +0 -39
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +0 -21
  203. package/types/navmesh.d.tlua +0 -53
  204. package/types/net.d.tlua +0 -104
  205. package/types/nextbot.d.tlua +10 -83
  206. package/types/notification.d.tlua +0 -5
  207. package/types/npc.d.tlua +1 -364
  208. package/types/numpad.d.tlua +0 -15
  209. package/types/os.d.tlua +0 -8
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +2 -662
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +0 -63
  214. package/types/permissions.d.tlua +0 -13
  215. package/types/physcollide.d.tlua +0 -7
  216. package/types/physenv.d.tlua +0 -23
  217. package/types/physobj.d.tlua +0 -157
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +11 -594
  220. package/types/player_manager.d.tlua +0 -27
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +0 -13
  223. package/types/projectedtexture.d.tlua +0 -97
  224. package/types/properties.d.tlua +0 -11
  225. package/types/propselect.d.tlua +1 -10
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +0 -285
  228. package/types/resource.d.tlua +0 -5
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +1 -108
  231. package/types/saverestore.d.tlua +0 -25
  232. package/types/schedule.d.tlua +0 -13
  233. package/types/scripted_ents.d.tlua +0 -21
  234. package/types/search.d.tlua +0 -3
  235. package/types/serverlist.d.tlua +0 -15
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +0 -21
  239. package/types/spawnicon.d.tlua +1 -16
  240. package/types/spawnmenu.d.tlua +0 -48
  241. package/types/spawnmenucontentpanel.d.tlua +1 -10
  242. package/types/sql.d.tlua +0 -19
  243. package/types/stack.d.tlua +0 -11
  244. package/types/steamworks.d.tlua +0 -37
  245. package/types/string.d.tlua +0 -96
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +0 -69
  248. package/types/surfaceinfo.d.tlua +0 -11
  249. package/types/system.d.tlua +0 -21
  250. package/types/table.d.tlua +0 -93
  251. package/types/task.d.tlua +0 -19
  252. package/types/team.d.tlua +0 -39
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +0 -29
  256. package/types/tool.d.tlua +1 -90
  257. package/types/ugcpublishwindow.d.tlua +1 -18
  258. package/types/umsg.d.tlua +0 -25
  259. package/types/undo.d.tlua +0 -21
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +0 -5
  262. package/types/utf8.d.tlua +0 -15
  263. package/types/util.d.tlua +0 -185
  264. package/types/vector.d.tlua +0 -73
  265. package/types/vehicle.d.tlua +2 -102
  266. package/types/vgui.d.tlua +0 -33
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +0 -71
  269. package/types/weapon.d.tlua +2 -168
  270. package/types/weapons.d.tlua +0 -12
  271. package/types/widgets.d.tlua +0 -3
  272. package/types/workshopfilebase.d.tlua +0 -11
package/types/cam.d.tlua CHANGED
@@ -15,9 +15,7 @@ interface CamLib {
15
15
  * @source https://wiki.facepunch.com/gmod/cam.ApplyShake
16
16
  */
17
17
  ApplyShake(pos: Vector, angles: Angle, factor: number): void;
18
- }
19
18
 
20
- interface CamLib {
21
19
  /**
22
20
  * Switches the renderer back to the previous drawing mode from a 3D context.
23
21
  *
@@ -27,9 +25,7 @@ interface CamLib {
27
25
  * @source https://wiki.facepunch.com/gmod/cam.End
28
26
  */
29
27
  End(): void;
30
- }
31
28
 
32
- interface CamLib {
33
29
  /**
34
30
  * Switches the renderer back to the previous drawing mode from a 2D context.
35
31
  *
@@ -37,9 +33,7 @@ interface CamLib {
37
33
  * @source https://wiki.facepunch.com/gmod/cam.End2D
38
34
  */
39
35
  End2D(): void;
40
- }
41
36
 
42
- interface CamLib {
43
37
  /**
44
38
  * Switches the renderer back to the previous drawing mode from a 3D context.
45
39
  *
@@ -47,9 +41,7 @@ interface CamLib {
47
41
  * @source https://wiki.facepunch.com/gmod/cam.End3D
48
42
  */
49
43
  End3D(): void;
50
- }
51
44
 
52
- interface CamLib {
53
45
  /**
54
46
  * Switches the renderer back to the previous drawing mode from a 3D2D context.
55
47
  *
@@ -57,18 +49,14 @@ interface CamLib {
57
49
  * @source https://wiki.facepunch.com/gmod/cam.End3D2D
58
50
  */
59
51
  End3D2D(): void;
60
- }
61
52
 
62
- interface CamLib {
63
53
  /**
64
54
  * Switches the renderer back to the previous drawing mode from a 3D orthographic rendering context.
65
55
  * @realm client
66
56
  * @source https://wiki.facepunch.com/gmod/cam.EndOrthoView
67
57
  */
68
58
  EndOrthoView(): void;
69
- }
70
59
 
71
- interface CamLib {
72
60
  /**
73
61
  * Returns a copy of the model matrix that is at the top of the stack.
74
62
  * **NOTE**: Editing the matrix **will not** edit the current view. To do so, you will have to use [cam.PushModelMatrix](https://wiki.facepunch.com/gmod/cam.PushModelMatrix).
@@ -78,9 +66,7 @@ interface CamLib {
78
66
  * @source https://wiki.facepunch.com/gmod/cam.GetModelMatrix
79
67
  */
80
68
  GetModelMatrix(): VMatrix;
81
- }
82
69
 
83
- interface CamLib {
84
70
  /**
85
71
  * Returns a copy of the projection matrix. Also see [cam.GetViewMatrix](https://wiki.facepunch.com/gmod/cam.GetViewMatrix).
86
72
  *
@@ -90,9 +76,7 @@ interface CamLib {
90
76
  * @source https://wiki.facepunch.com/gmod/cam.GetProjectionMatrix
91
77
  */
92
78
  GetProjectionMatrix(): VMatrix;
93
- }
94
79
 
95
- interface CamLib {
96
80
  /**
97
81
  * Returns a copy of the view matrix. Also see [cam.GetProjectionMatrix](https://wiki.facepunch.com/gmod/cam.GetProjectionMatrix).
98
82
  *
@@ -102,9 +86,7 @@ interface CamLib {
102
86
  * @source https://wiki.facepunch.com/gmod/cam.GetViewMatrix
103
87
  */
104
88
  GetViewMatrix(): VMatrix;
105
- }
106
89
 
107
- interface CamLib {
108
90
  /**
109
91
  * Tells the renderer to ignore the depth buffer and draw any upcoming operation "ontop" of everything that was drawn yet.
110
92
  *
@@ -114,18 +96,14 @@ interface CamLib {
114
96
  * @source https://wiki.facepunch.com/gmod/cam.IgnoreZ
115
97
  */
116
98
  IgnoreZ(ignoreZ: boolean): void;
117
- }
118
99
 
119
- interface CamLib {
120
100
  /**
121
101
  * Removes the currently active model matrix (pushed previously with [cam.PushModelMatrix](https://wiki.facepunch.com/gmod/cam.PushModelMatrix)) from the stack and reinstates the previous one.
122
102
  * @realm client
123
103
  * @source https://wiki.facepunch.com/gmod/cam.PopModelMatrix
124
104
  */
125
105
  PopModelMatrix(): void;
126
- }
127
106
 
128
- interface CamLib {
129
107
  /**
130
108
  * Pushes the specified matrix onto the render matrix stack. Each pushed matrix must be popped via [cam.PopModelMatrix](https://wiki.facepunch.com/gmod/cam.PopModelMatrix).
131
109
  *
@@ -137,9 +115,7 @@ interface CamLib {
137
115
  * @source https://wiki.facepunch.com/gmod/cam.PushModelMatrix
138
116
  */
139
117
  PushModelMatrix(matrix: VMatrix, multiply?: boolean): void;
140
- }
141
118
 
142
- interface CamLib {
143
119
  /**
144
120
  * Sets up a new rendering context. This is an extended version of [cam.Start3D](https://wiki.facepunch.com/gmod/cam.Start3D) and [cam.Start2D](https://wiki.facepunch.com/gmod/cam.Start2D). Must be finished by [cam.End3D](https://wiki.facepunch.com/gmod/cam.End3D) or [cam.End2D](https://wiki.facepunch.com/gmod/cam.End2D).
145
121
  *
@@ -149,9 +125,7 @@ interface CamLib {
149
125
  * @source https://wiki.facepunch.com/gmod/cam.Start
150
126
  */
151
127
  Start(dataTbl: RenderCamData): void;
152
- }
153
128
 
154
- interface CamLib {
155
129
  /**
156
130
  * Sets up a new 2D rendering context. Must be finished by [cam.End2D](https://wiki.facepunch.com/gmod/cam.End2D).
157
131
  *
@@ -165,9 +139,7 @@ interface CamLib {
165
139
  * @source https://wiki.facepunch.com/gmod/cam.Start2D
166
140
  */
167
141
  Start2D(): void;
168
- }
169
142
 
170
- interface CamLib {
171
143
  /**
172
144
  * Sets up a new 3D rendering context. Must be finished by [cam.End3D](https://wiki.facepunch.com/gmod/cam.End3D).
173
145
  *
@@ -185,9 +157,7 @@ interface CamLib {
185
157
  * @source https://wiki.facepunch.com/gmod/cam.Start3D
186
158
  */
187
159
  Start3D(pos?: Vector, angles?: Angle, fov?: number, x?: number, y?: number, w?: number, h?: number, zNear?: number, zFar?: number): void;
188
- }
189
160
 
190
- interface CamLib {
191
161
  /**
192
162
  * Sets up the model transformation matrix to draw 2D content in 3D space and pushes it into the stack ([cam.PushModelMatrix](https://wiki.facepunch.com/gmod/cam.PushModelMatrix)).
193
163
  *
@@ -207,9 +177,7 @@ interface CamLib {
207
177
  * @source https://wiki.facepunch.com/gmod/cam.Start3D2D
208
178
  */
209
179
  Start3D2D(pos: Vector, angles: Angle, scale: number): void;
210
- }
211
180
 
212
- interface CamLib {
213
181
  /**
214
182
  * Sets up a new 3d context using orthographic projection.
215
183
  * @realm client
@@ -217,4 +185,3 @@ interface CamLib {
217
185
  */
218
186
  StartOrthoView(leftOffset: number, topOffset: number, rightOffset: number, bottomOffset: number): void;
219
187
  }
220
-
@@ -4,8 +4,6 @@
4
4
  * List of all possible functions available for effect data. This is the object returned by the [EffectData](https://wiki.facepunch.com/gmod/Global.EffectData) function and is required for [util.Effect](https://wiki.facepunch.com/gmod/util.Effect) function.
5
5
  * @source https://wiki.facepunch.com/gmod/CEffectData
6
6
  */
7
- interface CEffectData {}
8
-
9
7
  interface CEffectData {
10
8
  /**
11
9
  * Returns the angles of the effect.
@@ -13,135 +11,105 @@ interface CEffectData {
13
11
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetAngles
14
12
  */
15
13
  GetAngles(self: CEffectData): Angle;
16
- }
17
14
 
18
- interface CEffectData {
19
15
  /**
20
16
  * Returns the attachment ID for the effect.
21
17
  * @realm shared
22
18
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetAttachment
23
19
  */
24
20
  GetAttachment(self: CEffectData): number;
25
- }
26
21
 
27
- interface CEffectData {
28
22
  /**
29
23
  * Returns byte which represents the color of the effect.
30
24
  * @realm shared
31
25
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetColor
32
26
  */
33
27
  GetColor(self: CEffectData): number;
34
- }
35
28
 
36
- interface CEffectData {
37
29
  /**
38
30
  * Returns the damage type of the effect
39
31
  * @realm shared
40
32
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetDamageType
41
33
  */
42
34
  GetDamageType(self: CEffectData): number;
43
- }
44
35
 
45
- interface CEffectData {
46
36
  /**
47
37
  * Returns the entity index of the entity set for the effect.
48
38
  * @realm server
49
39
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetEntIndex
50
40
  */
51
41
  GetEntIndex(self: CEffectData): number;
52
- }
53
42
 
54
- interface CEffectData {
55
43
  /**
56
44
  * Returns the entity assigned to the effect.
57
45
  * @realm shared
58
46
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetEntity
59
47
  */
60
48
  GetEntity(self: CEffectData): Entity;
61
- }
62
49
 
63
- interface CEffectData {
64
50
  /**
65
51
  * Returns the flags of the effect.
66
52
  * @realm shared
67
53
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetFlags
68
54
  */
69
55
  GetFlags(self: CEffectData): number;
70
- }
71
56
 
72
- interface CEffectData {
73
57
  /**
74
58
  * Returns the hit box ID of the effect.
75
59
  * @realm shared
76
60
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetHitBox
77
61
  */
78
62
  GetHitBox(self: CEffectData): number;
79
- }
80
63
 
81
- interface CEffectData {
82
64
  /**
83
65
  * Returns the magnitude of the effect.
84
66
  * @realm shared
85
67
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetMagnitude
86
68
  */
87
69
  GetMagnitude(self: CEffectData): number;
88
- }
89
70
 
90
- interface CEffectData {
91
71
  /**
92
72
  * Returns the material ID of the effect.
93
73
  * @realm shared
94
74
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetMaterialIndex
95
75
  */
96
76
  GetMaterialIndex(self: CEffectData): number;
97
- }
98
77
 
99
- interface CEffectData {
100
78
  /**
101
79
  * Returns the normalized direction vector of the effect.
102
80
  * @realm shared
103
81
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetNormal
104
82
  */
105
83
  GetNormal(self: CEffectData): Vector;
106
- }
107
84
 
108
- interface CEffectData {
109
85
  /**
110
86
  * Returns the origin position of the effect.
111
87
  * @realm shared
112
88
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetOrigin
113
89
  */
114
90
  GetOrigin(self: CEffectData): Vector;
115
- }
116
91
 
117
- interface CEffectData {
118
92
  /**
119
93
  * Returns the radius of the effect.
120
94
  * @realm shared
121
95
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetRadius
122
96
  */
123
97
  GetRadius(self: CEffectData): number;
124
- }
125
98
 
126
- interface CEffectData {
127
99
  /**
128
100
  * Returns the scale of the effect.
129
101
  * @realm shared
130
102
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetScale
131
103
  */
132
104
  GetScale(self: CEffectData): number;
133
- }
134
105
 
135
- interface CEffectData {
136
106
  /**
137
107
  * Returns the start position of the effect.
138
108
  * @realm shared
139
109
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetStart
140
110
  */
141
111
  GetStart(self: CEffectData): Vector;
142
- }
143
112
 
144
- interface CEffectData {
145
113
  /**
146
114
  * Returns the surface property index of the effect. See [util.GetSurfaceData](https://wiki.facepunch.com/gmod/util.GetSurfaceData) for more details about what they are.
147
115
  *
@@ -151,18 +119,14 @@ interface CEffectData {
151
119
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetSurfaceProp
152
120
  */
153
121
  GetSurfaceProp(self: CEffectData): number;
154
- }
155
122
 
156
- interface CEffectData {
157
123
  /**
158
124
  * Sets the angles of the effect.
159
125
  * @realm shared
160
126
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetAngles
161
127
  */
162
128
  SetAngles(self: CEffectData, ang: Angle): void;
163
- }
164
129
 
165
- interface CEffectData {
166
130
  /**
167
131
  * Sets the attachment id of the effect to be created with this effect data.
168
132
  *
@@ -173,9 +137,7 @@ interface CEffectData {
173
137
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetAttachment
174
138
  */
175
139
  SetAttachment(self: CEffectData, attachment: number): void;
176
- }
177
140
 
178
- interface CEffectData {
179
141
  /**
180
142
  * Sets the "color" of the effect.
181
143
  *
@@ -188,36 +150,28 @@ interface CEffectData {
188
150
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetColor
189
151
  */
190
152
  SetColor(self: CEffectData, color: number): void;
191
- }
192
153
 
193
- interface CEffectData {
194
154
  /**
195
155
  * Sets the damage type of the effect to be created with this effect data.
196
156
  * @realm shared
197
157
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetDamageType
198
158
  */
199
159
  SetDamageType(self: CEffectData, damageType: number): void;
200
- }
201
160
 
202
- interface CEffectData {
203
161
  /**
204
162
  * Sets the entity of the effect via its index.
205
163
  * @realm server
206
164
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetEntIndex
207
165
  */
208
166
  SetEntIndex(self: CEffectData, entIndex: number): void;
209
- }
210
167
 
211
- interface CEffectData {
212
168
  /**
213
169
  * Sets the entity of the effect to be created with this effect data.
214
170
  * @realm shared
215
171
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetEntity
216
172
  */
217
173
  SetEntity(self: CEffectData, entity: Entity): void;
218
- }
219
174
 
220
- interface CEffectData {
221
175
  /**
222
176
  * Sets the flags for the effect. What flags do depends entirely on the effect. See [Default Effects](https://wiki.facepunch.com/gmod/Default_Effects).
223
177
  *
@@ -228,9 +182,7 @@ interface CEffectData {
228
182
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetFlags
229
183
  */
230
184
  SetFlags(self: CEffectData, flags: number): void;
231
- }
232
185
 
233
- interface CEffectData {
234
186
  /**
235
187
  * Sets the hit box index of the effect. Used by various effects for various purposes.
236
188
  *
@@ -241,9 +193,7 @@ interface CEffectData {
241
193
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetHitBox
242
194
  */
243
195
  SetHitBox(self: CEffectData, hitBoxIndex: number): void;
244
- }
245
196
 
246
- interface CEffectData {
247
197
  /**
248
198
  * Sets the magnitude of the effect.
249
199
  * **NOTE**: Internally stored as a float with 12 bit precision for networking purposes, limited to range of 0-1023.
@@ -252,9 +202,7 @@ interface CEffectData {
252
202
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetMagnitude
253
203
  */
254
204
  SetMagnitude(self: CEffectData, magnitude: number): void;
255
- }
256
205
 
257
- interface CEffectData {
258
206
  /**
259
207
  * Sets the material index of the effect.
260
208
  *
@@ -265,18 +213,14 @@ interface CEffectData {
265
213
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetMaterialIndex
266
214
  */
267
215
  SetMaterialIndex(self: CEffectData, materialIndex: number): void;
268
- }
269
216
 
270
- interface CEffectData {
271
217
  /**
272
218
  * Sets the normalized (length=1) direction vector of the effect to be created with this effect data. This **must** be a normalized vector for networking purposes.
273
219
  * @realm shared
274
220
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetNormal
275
221
  */
276
222
  SetNormal(self: CEffectData, normal: Vector): void;
277
- }
278
223
 
279
- interface CEffectData {
280
224
  /**
281
225
  * Sets the origin of the effect to be created with this effect data.
282
226
  * **NOTE**: Limited to world bounds (+-16386 on every axis) and has horrible networking precision. (17 bit float per component)
@@ -286,9 +230,7 @@ interface CEffectData {
286
230
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetOrigin
287
231
  */
288
232
  SetOrigin(self: CEffectData, origin: Vector): void;
289
- }
290
233
 
291
- interface CEffectData {
292
234
  /**
293
235
  * Sets the radius of the effect to be created with this effect data.
294
236
  *
@@ -299,18 +241,14 @@ interface CEffectData {
299
241
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetRadius
300
242
  */
301
243
  SetRadius(self: CEffectData, radius: number): void;
302
- }
303
244
 
304
- interface CEffectData {
305
245
  /**
306
246
  * Sets the scale of the effect to be created with this effect data.
307
247
  * @realm shared
308
248
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetScale
309
249
  */
310
250
  SetScale(self: CEffectData, scale: number): void;
311
- }
312
251
 
313
- interface CEffectData {
314
252
  /**
315
253
  * Sets the start of the effect to be created with this effect data.
316
254
  * **NOTE**: Limited to world bounds (+-16386 on every axis) and has horrible networking precision. (17 bit float per component)
@@ -320,9 +258,7 @@ interface CEffectData {
320
258
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetStart
321
259
  */
322
260
  SetStart(self: CEffectData, start: Vector): void;
323
- }
324
261
 
325
- interface CEffectData {
326
262
  /**
327
263
  * Sets the surface property index of the effect. See [util.GetSurfaceData](https://wiki.facepunch.com/gmod/util.GetSurfaceData) for more details about what they are.
328
264
  *
@@ -334,4 +270,3 @@ interface CEffectData {
334
270
  */
335
271
  SetSurfaceProp(self: CEffectData, surfaceProperties: number): void;
336
272
  }
337
-
package/types/chat.d.tlua CHANGED
@@ -13,45 +13,35 @@ interface ChatLib {
13
13
  * @source https://wiki.facepunch.com/gmod/chat.AddText
14
14
  */
15
15
  AddText(...: any): void;
16
- }
17
16
 
18
- interface ChatLib {
19
17
  /**
20
18
  * Closes the chat window.
21
19
  * @realm client
22
20
  * @source https://wiki.facepunch.com/gmod/chat.Close
23
21
  */
24
22
  Close(): void;
25
- }
26
23
 
27
- interface ChatLib {
28
24
  /**
29
25
  * Returns the chatbox position.
30
26
  * @realm client
31
27
  * @source https://wiki.facepunch.com/gmod/chat.GetChatBoxPos
32
28
  */
33
29
  GetChatBoxPos(): (number, number);
34
- }
35
30
 
36
- interface ChatLib {
37
31
  /**
38
32
  * Returns the chatbox size.
39
33
  * @realm client
40
34
  * @source https://wiki.facepunch.com/gmod/chat.GetChatBoxSize
41
35
  */
42
36
  GetChatBoxSize(): (number, number);
43
- }
44
37
 
45
- interface ChatLib {
46
38
  /**
47
39
  * Opens the chat window.
48
40
  * @realm client
49
41
  * @source https://wiki.facepunch.com/gmod/chat.Open
50
42
  */
51
43
  Open(mode: number): void;
52
- }
53
44
 
54
- interface ChatLib {
55
45
  /**
56
46
  * Plays the chat "tick" sound.
57
47
  * @realm client
@@ -59,4 +49,3 @@ interface ChatLib {
59
49
  */
60
50
  PlaySound(): void;
61
51
  }
62
-
@@ -11,4 +11,3 @@
11
11
  * @deprecated Use DCheckBoxLabel instead.
12
12
  */
13
13
  interface CheckButton {}
14
-
@@ -13,9 +13,7 @@ interface CleanupLib {
13
13
  * @source https://wiki.facepunch.com/gmod/cleanup.Add
14
14
  */
15
15
  Add(pl: Player, type: string, ent: Entity): void;
16
- }
17
16
 
18
- interface CleanupLib {
19
17
  /**
20
18
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
21
19
  * Called by the `gmod_admin_cleanup` console command. Allows admins to clean up the server.
@@ -23,9 +21,7 @@ interface CleanupLib {
23
21
  * @source https://wiki.facepunch.com/gmod/cleanup.CC_AdminCleanup
24
22
  */
25
23
  CC_AdminCleanup(pl: Player, command: string, args: table): void;
26
- }
27
24
 
28
- interface CleanupLib {
29
25
  /**
30
26
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
31
27
  * Called by the `gmod_cleanup` console command. Allows players to cleanup their own props.
@@ -33,36 +29,28 @@ interface CleanupLib {
33
29
  * @source https://wiki.facepunch.com/gmod/cleanup.CC_Cleanup
34
30
  */
35
31
  CC_Cleanup(pl: Player, command: string, args: table): void;
36
- }
37
32
 
38
- interface CleanupLib {
39
33
  /**
40
34
  * Gets the cleanup list.
41
35
  * @realm server
42
36
  * @source https://wiki.facepunch.com/gmod/cleanup.GetList
43
37
  */
44
38
  GetList(): void;
45
- }
46
39
 
47
- interface CleanupLib {
48
40
  /**
49
41
  * Gets the table of cleanup types.
50
42
  * @realm shared
51
43
  * @source https://wiki.facepunch.com/gmod/cleanup.GetTable
52
44
  */
53
45
  GetTable(): table;
54
- }
55
46
 
56
- interface CleanupLib {
57
47
  /**
58
48
  * Registers a new cleanup type.
59
49
  * @realm shared
60
50
  * @source https://wiki.facepunch.com/gmod/cleanup.Register
61
51
  */
62
52
  Register(type: string): void;
63
- }
64
53
 
65
- interface CleanupLib {
66
54
  /**
67
55
  * Replaces one entity in the cleanup module with another.
68
56
  *
@@ -72,9 +60,7 @@ interface CleanupLib {
72
60
  * @source https://wiki.facepunch.com/gmod/cleanup.ReplaceEntity
73
61
  */
74
62
  ReplaceEntity(from: Entity, to: Entity | nil): boolean;
75
- }
76
63
 
77
- interface CleanupLib {
78
64
  /**
79
65
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
80
66
  *
@@ -85,4 +71,3 @@ interface CleanupLib {
85
71
  */
86
72
  UpdateUI(): void;
87
73
  }
88
-
@@ -4,8 +4,6 @@
4
4
  * List of all possible functions available for LuaEmitters. This is the object returned by the [Global.ParticleEmitter](https://wiki.facepunch.com/gmod/Global.ParticleEmitter) function.
5
5
  * @source https://wiki.facepunch.com/gmod/CLuaEmitter
6
6
  */
7
- interface CLuaEmitter {}
8
-
9
7
  interface CLuaEmitter {
10
8
  /**
11
9
  * Creates a new [CLuaParticle](https://wiki.facepunch.com/gmod/CLuaParticle) with the given material and position.
@@ -13,63 +11,49 @@ interface CLuaEmitter {
13
11
  * @source https://wiki.facepunch.com/gmod/CLuaEmitter:Add
14
12
  */
15
13
  Add(self: CLuaEmitter, material: string, position: Vector): CLuaParticle;
16
- }
17
14
 
18
- interface CLuaEmitter {
19
15
  /**
20
16
  * Manually renders all particles the emitter has created.
21
17
  * @realm client
22
18
  * @source https://wiki.facepunch.com/gmod/CLuaEmitter:Draw
23
19
  */
24
20
  Draw(self: CLuaEmitter): void;
25
- }
26
21
 
27
- interface CLuaEmitter {
28
22
  /**
29
23
  * Removes the emitter, making it no longer usable from Lua. If particles remain, the emitter will be removed when all particles die.
30
24
  * @realm client
31
25
  * @source https://wiki.facepunch.com/gmod/CLuaEmitter:Finish
32
26
  */
33
27
  Finish(self: CLuaEmitter): void;
34
- }
35
28
 
36
- interface CLuaEmitter {
37
29
  /**
38
30
  * Returns the amount of active particles of this emitter.
39
31
  * @realm client
40
32
  * @source https://wiki.facepunch.com/gmod/CLuaEmitter:GetNumActiveParticles
41
33
  */
42
34
  GetNumActiveParticles(self: CLuaEmitter): number;
43
- }
44
35
 
45
- interface CLuaEmitter {
46
36
  /**
47
37
  * Returns the position of this emitter. This is set when creating the emitter with [Global.ParticleEmitter](https://wiki.facepunch.com/gmod/Global.ParticleEmitter).
48
38
  * @realm client
49
39
  * @source https://wiki.facepunch.com/gmod/CLuaEmitter:GetPos
50
40
  */
51
41
  GetPos(self: CLuaEmitter): Vector;
52
- }
53
42
 
54
- interface CLuaEmitter {
55
43
  /**
56
44
  * Returns whether this emitter is 3D or not. This is set when creating the emitter with [Global.ParticleEmitter](https://wiki.facepunch.com/gmod/Global.ParticleEmitter).
57
45
  * @realm client
58
46
  * @source https://wiki.facepunch.com/gmod/CLuaEmitter:Is3D
59
47
  */
60
48
  Is3D(self: CLuaEmitter): boolean;
61
- }
62
49
 
63
- interface CLuaEmitter {
64
50
  /**
65
51
  * Returns whether this [CLuaEmitter](https://wiki.facepunch.com/gmod/CLuaEmitter) is valid or not.
66
52
  * @realm client
67
53
  * @source https://wiki.facepunch.com/gmod/CLuaEmitter:IsValid
68
54
  */
69
55
  IsValid(self: CLuaEmitter): boolean;
70
- }
71
56
 
72
- interface CLuaEmitter {
73
57
  /**
74
58
  * Sets the bounding box for this emitter.
75
59
  *
@@ -79,36 +63,28 @@ interface CLuaEmitter {
79
63
  * @source https://wiki.facepunch.com/gmod/CLuaEmitter:SetBBox
80
64
  */
81
65
  SetBBox(self: CLuaEmitter, mins: Vector, maxs: Vector): void;
82
- }
83
66
 
84
- interface CLuaEmitter {
85
67
  /**
86
68
  * This function sets the the distance between the render camera and the emitter at which the particles should start fading and at which distance fade ends ( alpha becomes 0 ).
87
69
  * @realm client
88
70
  * @source https://wiki.facepunch.com/gmod/CLuaEmitter:SetNearClip
89
71
  */
90
72
  SetNearClip(self: CLuaEmitter, distanceMin: number, distanceMax: number): void;
91
- }
92
73
 
93
- interface CLuaEmitter {
94
74
  /**
95
75
  * Prevents all particles of the emitter from automatically drawing.
96
76
  * @realm client
97
77
  * @source https://wiki.facepunch.com/gmod/CLuaEmitter:SetNoDraw
98
78
  */
99
79
  SetNoDraw(self: CLuaEmitter, noDraw: boolean): void;
100
- }
101
80
 
102
- interface CLuaEmitter {
103
81
  /**
104
82
  * The function name has not much in common with its actual function, it applies a radius to every particles that affects the building of the bounding box, as it, usually is constructed by the particle that has the lowest x, y and z and the highest x, y and z, this function just adds/subtracts the radius and inflates the bounding box.
105
83
  * @realm client
106
84
  * @source https://wiki.facepunch.com/gmod/CLuaEmitter:SetParticleCullRadius
107
85
  */
108
86
  SetParticleCullRadius(self: CLuaEmitter, radius: number): void;
109
- }
110
87
 
111
- interface CLuaEmitter {
112
88
  /**
113
89
  * Sets the position of the particle emitter.
114
90
  * @realm client
@@ -116,4 +92,3 @@ interface CLuaEmitter {
116
92
  */
117
93
  SetPos(self: CLuaEmitter, position: Vector): void;
118
94
  }
119
-