@tlua/gmod 1.0.3 → 1.0.5

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 (216) hide show
  1. package/index.d.tlua +1 -0
  2. package/package.json +1 -1
  3. package/types/achievements.d.tlua +15 -45
  4. package/types/ai.d.tlua +5 -15
  5. package/types/angle.d.tlua +18 -54
  6. package/types/baseclass.d.tlua +2 -4
  7. package/types/bf_read.d.tlua +11 -32
  8. package/types/bit.d.tlua +11 -33
  9. package/types/cam.d.tlua +16 -48
  10. package/types/ceffectdata.d.tlua +32 -95
  11. package/types/chat.d.tlua +5 -15
  12. package/types/cleanup.d.tlua +7 -21
  13. package/types/cluaemitter.d.tlua +12 -35
  14. package/types/clualocomotion.d.tlua +40 -119
  15. package/types/cluaparticle.d.tlua +44 -131
  16. package/types/cmovedata.d.tlua +47 -140
  17. package/types/cnavarea.d.tlua +77 -230
  18. package/types/cnavladder.d.tlua +22 -65
  19. package/types/cnewparticleeffect.d.tlua +26 -77
  20. package/types/color.d.tlua +28 -84
  21. package/types/concommand.d.tlua +4 -12
  22. package/types/constraint.d.tlua +28 -84
  23. package/types/construct.d.tlua +1 -3
  24. package/types/contentheader.d.tlua +3 -6
  25. package/types/contenticon.d.tlua +9 -24
  26. package/types/contentsidebar.d.tlua +4 -9
  27. package/types/contextbase.d.tlua +4 -9
  28. package/types/controlpanel.d.tlua +18 -40
  29. package/types/controlpresets.d.tlua +13 -36
  30. package/types/convar.d.tlua +16 -47
  31. package/types/cookie.d.tlua +3 -9
  32. package/types/coroutine.d.tlua +7 -21
  33. package/types/crecipientfilter.d.tlua +16 -47
  34. package/types/csoundpatch.d.tlua +14 -41
  35. package/types/ctakedamageinfo.d.tlua +33 -98
  36. package/types/ctrlnumpad.d.tlua +6 -17
  37. package/types/cusercmd.d.tlua +27 -80
  38. package/types/cvars.d.tlua +6 -18
  39. package/types/dadjustablemodelpanel.d.tlua +7 -18
  40. package/types/dalphabar.d.tlua +3 -6
  41. package/types/dbinder.d.tlua +4 -9
  42. package/types/dbubblecontainer.d.tlua +2 -3
  43. package/types/dbutton.d.tlua +8 -21
  44. package/types/dcheckbox.d.tlua +5 -12
  45. package/types/dcheckboxlabel.d.tlua +9 -27
  46. package/types/dcollapsiblecategory.d.tlua +23 -66
  47. package/types/dcolorbutton.d.tlua +7 -18
  48. package/types/dcolorcombo.d.tlua +5 -12
  49. package/types/dcolorcube.d.tlua +13 -36
  50. package/types/dcolormixer.d.tlua +27 -78
  51. package/types/dcolorpalette.d.tlua +23 -66
  52. package/types/dcolumnsheet.d.tlua +5 -12
  53. package/types/dcombobox.d.tlua +17 -48
  54. package/types/ddragbase.d.tlua +13 -36
  55. package/types/ddrawer.d.tlua +8 -21
  56. package/types/debug.d.tlua +44 -76
  57. package/types/debugoverlay.d.tlua +11 -33
  58. package/types/dentityproperties.d.tlua +5 -12
  59. package/types/derma.d.tlua +10 -30
  60. package/types/dexpandbutton.d.tlua +3 -6
  61. package/types/dfilebrowser.d.tlua +20 -60
  62. package/types/dform.d.tlua +18 -51
  63. package/types/dframe.d.tlua +24 -72
  64. package/types/dgrid.d.tlua +11 -30
  65. package/types/dhorizontaldivider.d.tlua +20 -57
  66. package/types/dhorizontalscroller.d.tlua +11 -30
  67. package/types/dhscrollbar.d.tlua +11 -30
  68. package/types/dhtml.d.tlua +8 -21
  69. package/types/dhtmlcontrols.d.tlua +5 -15
  70. package/types/diconbrowser.d.tlua +11 -30
  71. package/types/diconlayout.d.tlua +18 -51
  72. package/types/dimage.d.tlua +20 -55
  73. package/types/dimagebutton.d.tlua +9 -27
  74. package/types/dlabel.d.tlua +33 -96
  75. package/types/dlabeleditable.d.tlua +5 -12
  76. package/types/dlabelurl.d.tlua +10 -27
  77. package/types/dlistbox.d.tlua +8 -21
  78. package/types/dlistboxitem.d.tlua +4 -9
  79. package/types/dlistview.d.tlua +34 -99
  80. package/types/dlistview_column.d.tlua +14 -39
  81. package/types/dlistview_line.d.tlua +13 -36
  82. package/types/dmenu.d.tlua +28 -75
  83. package/types/dmenubar.d.tlua +6 -11
  84. package/types/dmenuoption.d.tlua +13 -36
  85. package/types/dmenuoptioncvar.d.tlua +6 -15
  86. package/types/dmodelpanel.d.tlua +22 -63
  87. package/types/dmodelselect.d.tlua +2 -3
  88. package/types/dmodelselectmulti.d.tlua +2 -3
  89. package/types/dnotify.d.tlua +10 -27
  90. package/types/dnumberscratch.d.tlua +26 -75
  91. package/types/dnumberwang.d.tlua +16 -45
  92. package/types/dnumslider.d.tlua +17 -51
  93. package/types/dpanel.d.tlua +14 -39
  94. package/types/dpanellist.d.tlua +11 -33
  95. package/types/dpaneloverlay.d.tlua +7 -18
  96. package/types/dpanpanel.d.tlua +6 -15
  97. package/types/dprogress.d.tlua +3 -6
  98. package/types/dproperties.d.tlua +4 -9
  99. package/types/dproperty_combo.d.tlua +3 -6
  100. package/types/dproperty_generic.d.tlua +5 -12
  101. package/types/dpropertysheet.d.tlua +26 -56
  102. package/types/dragndrop.d.tlua +10 -30
  103. package/types/draw.d.tlua +11 -31
  104. package/types/drgbpicker.d.tlua +4 -9
  105. package/types/drive.d.tlua +18 -41
  106. package/types/dscrollpanel.d.tlua +10 -30
  107. package/types/dshape.d.tlua +7 -18
  108. package/types/dsizetocontents.d.tlua +5 -12
  109. package/types/dslider.d.tlua +28 -81
  110. package/types/dsprite.d.tlua +9 -24
  111. package/types/dtab.d.tlua +8 -21
  112. package/types/dtextentry.d.tlua +43 -126
  113. package/types/dtilelayout.d.tlua +21 -60
  114. package/types/dtooltip.d.tlua +6 -15
  115. package/types/dtree.d.tlua +16 -45
  116. package/types/dtree_node.d.tlua +68 -201
  117. package/types/duplicator.d.tlua +30 -88
  118. package/types/dverticaldivider.d.tlua +23 -66
  119. package/types/dvscrollbar.d.tlua +11 -30
  120. package/types/effect.d.tlua +4 -9
  121. package/types/effects.d.tlua +6 -18
  122. package/types/engine.d.tlua +21 -63
  123. package/types/entity.d.tlua +676 -1962
  124. package/types/ents.d.tlua +23 -61
  125. package/types/file.d.tlua +39 -117
  126. package/types/frame_blend.d.tlua +7 -21
  127. package/types/game.d.tlua +39 -117
  128. package/types/gameevent.d.tlua +4 -8
  129. package/types/gamemode.d.tlua +3 -7
  130. package/types/gm.d.tlua +267 -800
  131. package/types/gmsave.d.tlua +4 -12
  132. package/types/gui.d.tlua +21 -63
  133. package/types/gwen.d.tlua +3 -9
  134. package/types/halo.d.tlua +2 -6
  135. package/types/hook.d.tlua +8 -17
  136. package/types/hook_events.d.tlua +2412 -0
  137. package/types/http.d.tlua +1 -3
  138. package/types/iconeditor.d.tlua +11 -30
  139. package/types/igmodaudiochannel.d.tlua +41 -122
  140. package/types/imagecheckbox.d.tlua +4 -9
  141. package/types/imaterial.d.tlua +26 -77
  142. package/types/imesh.d.tlua +5 -14
  143. package/types/input.d.tlua +24 -68
  144. package/types/irestore.d.tlua +9 -26
  145. package/types/isave.d.tlua +9 -26
  146. package/types/itexture.d.tlua +10 -29
  147. package/types/ivideowriter.d.tlua +5 -14
  148. package/types/jit.d.tlua +21 -53
  149. package/types/killicon.d.tlua +7 -21
  150. package/types/language.d.tlua +1 -3
  151. package/types/list.d.tlua +8 -24
  152. package/types/markup.d.tlua +2 -6
  153. package/types/markupobject.d.tlua +5 -14
  154. package/types/math.d.tlua +277 -447
  155. package/types/matproxy.d.tlua +3 -9
  156. package/types/matselect.d.tlua +11 -30
  157. package/types/menubar.d.tlua +2 -6
  158. package/types/mesh.d.tlua +19 -57
  159. package/types/motionsensor.d.tlua +10 -30
  160. package/types/navmesh.d.tlua +26 -78
  161. package/types/net.d.tlua +52 -154
  162. package/types/nextbot.d.tlua +46 -116
  163. package/types/notification.d.tlua +2 -6
  164. package/types/npc.d.tlua +182 -543
  165. package/types/numpad.d.tlua +7 -21
  166. package/types/os.d.tlua +4 -10
  167. package/types/panel.d.tlua +333 -991
  168. package/types/pathfollower.d.tlua +31 -92
  169. package/types/permissions.d.tlua +6 -18
  170. package/types/physcollide.d.tlua +3 -8
  171. package/types/physenv.d.tlua +11 -33
  172. package/types/physobj.d.tlua +78 -233
  173. package/types/player.d.tlua +302 -880
  174. package/types/player_manager.d.tlua +13 -39
  175. package/types/presets.d.tlua +6 -18
  176. package/types/projectedtexture.d.tlua +48 -143
  177. package/types/properties.d.tlua +5 -15
  178. package/types/propselect.d.tlua +5 -12
  179. package/types/render.d.tlua +142 -426
  180. package/types/resource.d.tlua +2 -6
  181. package/types/sandbox.d.tlua +54 -159
  182. package/types/saverestore.d.tlua +12 -36
  183. package/types/schedule.d.tlua +6 -17
  184. package/types/scripted_ents.d.tlua +11 -29
  185. package/types/search.d.tlua +1 -3
  186. package/types/serverlist.d.tlua +7 -21
  187. package/types/sound.d.tlua +10 -30
  188. package/types/spawnicon.d.tlua +8 -21
  189. package/types/spawnmenu.d.tlua +24 -70
  190. package/types/spawnmenucontentpanel.d.tlua +5 -12
  191. package/types/sql.d.tlua +9 -27
  192. package/types/stack.d.tlua +5 -14
  193. package/types/steamworks.d.tlua +18 -54
  194. package/types/string.d.tlua +49 -141
  195. package/types/surface.d.tlua +34 -102
  196. package/types/surfaceinfo.d.tlua +5 -14
  197. package/types/system.d.tlua +10 -30
  198. package/types/table.d.tlua +47 -137
  199. package/types/task.d.tlua +9 -26
  200. package/types/team.d.tlua +19 -57
  201. package/types/timer.d.tlua +14 -42
  202. package/types/tool.d.tlua +46 -131
  203. package/types/ugcpublishwindow.d.tlua +9 -24
  204. package/types/umsg.d.tlua +12 -36
  205. package/types/undo.d.tlua +10 -30
  206. package/types/usermessage.d.tlua +2 -6
  207. package/types/utf8.d.tlua +7 -21
  208. package/types/util.d.tlua +94 -274
  209. package/types/vector.d.tlua +36 -108
  210. package/types/vehicle.d.tlua +52 -149
  211. package/types/vgui.d.tlua +18 -46
  212. package/types/vmatrix.d.tlua +35 -105
  213. package/types/weapon.d.tlua +85 -248
  214. package/types/weapons.d.tlua +6 -16
  215. package/types/widgets.d.tlua +1 -3
  216. package/types/workshopfilebase.d.tlua +5 -14
package/types/cam.d.tlua CHANGED
@@ -15,9 +15,6 @@ 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
-
20
- interface CamLib {
21
18
  /**
22
19
  * Switches the renderer back to the previous drawing mode from a 3D context.
23
20
  *
@@ -27,9 +24,6 @@ interface CamLib {
27
24
  * @source https://wiki.facepunch.com/gmod/cam.End
28
25
  */
29
26
  End(): void;
30
- }
31
-
32
- interface CamLib {
33
27
  /**
34
28
  * Switches the renderer back to the previous drawing mode from a 2D context.
35
29
  *
@@ -37,9 +31,6 @@ interface CamLib {
37
31
  * @source https://wiki.facepunch.com/gmod/cam.End2D
38
32
  */
39
33
  End2D(): void;
40
- }
41
-
42
- interface CamLib {
43
34
  /**
44
35
  * Switches the renderer back to the previous drawing mode from a 3D context.
45
36
  *
@@ -47,9 +38,6 @@ interface CamLib {
47
38
  * @source https://wiki.facepunch.com/gmod/cam.End3D
48
39
  */
49
40
  End3D(): void;
50
- }
51
-
52
- interface CamLib {
53
41
  /**
54
42
  * Switches the renderer back to the previous drawing mode from a 3D2D context.
55
43
  *
@@ -57,18 +45,12 @@ interface CamLib {
57
45
  * @source https://wiki.facepunch.com/gmod/cam.End3D2D
58
46
  */
59
47
  End3D2D(): void;
60
- }
61
-
62
- interface CamLib {
63
48
  /**
64
49
  * Switches the renderer back to the previous drawing mode from a 3D orthographic rendering context.
65
50
  * @realm client
66
51
  * @source https://wiki.facepunch.com/gmod/cam.EndOrthoView
67
52
  */
68
53
  EndOrthoView(): void;
69
- }
70
-
71
- interface CamLib {
72
54
  /**
73
55
  * Returns a copy of the model matrix that is at the top of the stack.
74
56
  * **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 +60,6 @@ interface CamLib {
78
60
  * @source https://wiki.facepunch.com/gmod/cam.GetModelMatrix
79
61
  */
80
62
  GetModelMatrix(): VMatrix;
81
- }
82
-
83
- interface CamLib {
84
63
  /**
85
64
  * Returns a copy of the projection matrix. Also see [cam.GetViewMatrix](https://wiki.facepunch.com/gmod/cam.GetViewMatrix).
86
65
  *
@@ -90,9 +69,6 @@ interface CamLib {
90
69
  * @source https://wiki.facepunch.com/gmod/cam.GetProjectionMatrix
91
70
  */
92
71
  GetProjectionMatrix(): VMatrix;
93
- }
94
-
95
- interface CamLib {
96
72
  /**
97
73
  * Returns a copy of the view matrix. Also see [cam.GetProjectionMatrix](https://wiki.facepunch.com/gmod/cam.GetProjectionMatrix).
98
74
  *
@@ -102,9 +78,6 @@ interface CamLib {
102
78
  * @source https://wiki.facepunch.com/gmod/cam.GetViewMatrix
103
79
  */
104
80
  GetViewMatrix(): VMatrix;
105
- }
106
-
107
- interface CamLib {
108
81
  /**
109
82
  * Tells the renderer to ignore the depth buffer and draw any upcoming operation "ontop" of everything that was drawn yet.
110
83
  *
@@ -114,18 +87,12 @@ interface CamLib {
114
87
  * @source https://wiki.facepunch.com/gmod/cam.IgnoreZ
115
88
  */
116
89
  IgnoreZ(ignoreZ: boolean): void;
117
- }
118
-
119
- interface CamLib {
120
90
  /**
121
91
  * 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
92
  * @realm client
123
93
  * @source https://wiki.facepunch.com/gmod/cam.PopModelMatrix
124
94
  */
125
95
  PopModelMatrix(): void;
126
- }
127
-
128
- interface CamLib {
129
96
  /**
130
97
  * 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
98
  *
@@ -137,9 +104,6 @@ interface CamLib {
137
104
  * @source https://wiki.facepunch.com/gmod/cam.PushModelMatrix
138
105
  */
139
106
  PushModelMatrix(matrix: VMatrix, multiply?: boolean): void;
140
- }
141
-
142
- interface CamLib {
143
107
  /**
144
108
  * 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
109
  *
@@ -149,9 +113,6 @@ interface CamLib {
149
113
  * @source https://wiki.facepunch.com/gmod/cam.Start
150
114
  */
151
115
  Start(dataTbl: RenderCamData): void;
152
- }
153
-
154
- interface CamLib {
155
116
  /**
156
117
  * Sets up a new 2D rendering context. Must be finished by [cam.End2D](https://wiki.facepunch.com/gmod/cam.End2D).
157
118
  *
@@ -165,9 +126,6 @@ interface CamLib {
165
126
  * @source https://wiki.facepunch.com/gmod/cam.Start2D
166
127
  */
167
128
  Start2D(): void;
168
- }
169
-
170
- interface CamLib {
171
129
  /**
172
130
  * Sets up a new 3D rendering context. Must be finished by [cam.End3D](https://wiki.facepunch.com/gmod/cam.End3D).
173
131
  *
@@ -185,9 +143,6 @@ interface CamLib {
185
143
  * @source https://wiki.facepunch.com/gmod/cam.Start3D
186
144
  */
187
145
  Start3D(pos?: Vector, angles?: Angle, fov?: number, x?: number, y?: number, w?: number, h?: number, zNear?: number, zFar?: number): void;
188
- }
189
-
190
- interface CamLib {
191
146
  /**
192
147
  * 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
148
  *
@@ -207,9 +162,6 @@ interface CamLib {
207
162
  * @source https://wiki.facepunch.com/gmod/cam.Start3D2D
208
163
  */
209
164
  Start3D2D(pos: Vector, angles: Angle, scale: number): void;
210
- }
211
-
212
- interface CamLib {
213
165
  /**
214
166
  * Sets up a new 3d context using orthographic projection.
215
167
  * @realm client
@@ -218,3 +170,19 @@ interface CamLib {
218
170
  StartOrthoView(leftOffset: number, topOffset: number, rightOffset: number, bottomOffset: number): void;
219
171
  }
220
172
 
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
@@ -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,90 @@ interface CEffectData {
13
11
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetAngles
14
12
  */
15
13
  GetAngles(self: CEffectData): Angle;
16
- }
17
-
18
- interface CEffectData {
19
14
  /**
20
15
  * Returns the attachment ID for the effect.
21
16
  * @realm shared
22
17
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetAttachment
23
18
  */
24
19
  GetAttachment(self: CEffectData): number;
25
- }
26
-
27
- interface CEffectData {
28
20
  /**
29
21
  * Returns byte which represents the color of the effect.
30
22
  * @realm shared
31
23
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetColor
32
24
  */
33
25
  GetColor(self: CEffectData): number;
34
- }
35
-
36
- interface CEffectData {
37
26
  /**
38
27
  * Returns the damage type of the effect
39
28
  * @realm shared
40
29
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetDamageType
41
30
  */
42
31
  GetDamageType(self: CEffectData): number;
43
- }
44
-
45
- interface CEffectData {
46
32
  /**
47
33
  * Returns the entity index of the entity set for the effect.
48
34
  * @realm server
49
35
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetEntIndex
50
36
  */
51
37
  GetEntIndex(self: CEffectData): number;
52
- }
53
-
54
- interface CEffectData {
55
38
  /**
56
39
  * Returns the entity assigned to the effect.
57
40
  * @realm shared
58
41
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetEntity
59
42
  */
60
43
  GetEntity(self: CEffectData): Entity;
61
- }
62
-
63
- interface CEffectData {
64
44
  /**
65
45
  * Returns the flags of the effect.
66
46
  * @realm shared
67
47
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetFlags
68
48
  */
69
49
  GetFlags(self: CEffectData): number;
70
- }
71
-
72
- interface CEffectData {
73
50
  /**
74
51
  * Returns the hit box ID of the effect.
75
52
  * @realm shared
76
53
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetHitBox
77
54
  */
78
55
  GetHitBox(self: CEffectData): number;
79
- }
80
-
81
- interface CEffectData {
82
56
  /**
83
57
  * Returns the magnitude of the effect.
84
58
  * @realm shared
85
59
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetMagnitude
86
60
  */
87
61
  GetMagnitude(self: CEffectData): number;
88
- }
89
-
90
- interface CEffectData {
91
62
  /**
92
63
  * Returns the material ID of the effect.
93
64
  * @realm shared
94
65
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetMaterialIndex
95
66
  */
96
67
  GetMaterialIndex(self: CEffectData): number;
97
- }
98
-
99
- interface CEffectData {
100
68
  /**
101
69
  * Returns the normalized direction vector of the effect.
102
70
  * @realm shared
103
71
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetNormal
104
72
  */
105
73
  GetNormal(self: CEffectData): Vector;
106
- }
107
-
108
- interface CEffectData {
109
74
  /**
110
75
  * Returns the origin position of the effect.
111
76
  * @realm shared
112
77
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetOrigin
113
78
  */
114
79
  GetOrigin(self: CEffectData): Vector;
115
- }
116
-
117
- interface CEffectData {
118
80
  /**
119
81
  * Returns the radius of the effect.
120
82
  * @realm shared
121
83
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetRadius
122
84
  */
123
85
  GetRadius(self: CEffectData): number;
124
- }
125
-
126
- interface CEffectData {
127
86
  /**
128
87
  * Returns the scale of the effect.
129
88
  * @realm shared
130
89
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetScale
131
90
  */
132
91
  GetScale(self: CEffectData): number;
133
- }
134
-
135
- interface CEffectData {
136
92
  /**
137
93
  * Returns the start position of the effect.
138
94
  * @realm shared
139
95
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetStart
140
96
  */
141
97
  GetStart(self: CEffectData): Vector;
142
- }
143
-
144
- interface CEffectData {
145
98
  /**
146
99
  * 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
100
  *
@@ -151,18 +104,12 @@ interface CEffectData {
151
104
  * @source https://wiki.facepunch.com/gmod/CEffectData:GetSurfaceProp
152
105
  */
153
106
  GetSurfaceProp(self: CEffectData): number;
154
- }
155
-
156
- interface CEffectData {
157
107
  /**
158
108
  * Sets the angles of the effect.
159
109
  * @realm shared
160
110
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetAngles
161
111
  */
162
112
  SetAngles(self: CEffectData, ang: Angle): void;
163
- }
164
-
165
- interface CEffectData {
166
113
  /**
167
114
  * Sets the attachment id of the effect to be created with this effect data.
168
115
  *
@@ -173,9 +120,6 @@ interface CEffectData {
173
120
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetAttachment
174
121
  */
175
122
  SetAttachment(self: CEffectData, attachment: number): void;
176
- }
177
-
178
- interface CEffectData {
179
123
  /**
180
124
  * Sets the "color" of the effect.
181
125
  *
@@ -188,36 +132,24 @@ interface CEffectData {
188
132
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetColor
189
133
  */
190
134
  SetColor(self: CEffectData, color: number): void;
191
- }
192
-
193
- interface CEffectData {
194
135
  /**
195
136
  * Sets the damage type of the effect to be created with this effect data.
196
137
  * @realm shared
197
138
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetDamageType
198
139
  */
199
140
  SetDamageType(self: CEffectData, damageType: number): void;
200
- }
201
-
202
- interface CEffectData {
203
141
  /**
204
142
  * Sets the entity of the effect via its index.
205
143
  * @realm server
206
144
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetEntIndex
207
145
  */
208
146
  SetEntIndex(self: CEffectData, entIndex: number): void;
209
- }
210
-
211
- interface CEffectData {
212
147
  /**
213
148
  * Sets the entity of the effect to be created with this effect data.
214
149
  * @realm shared
215
150
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetEntity
216
151
  */
217
152
  SetEntity(self: CEffectData, entity: Entity): void;
218
- }
219
-
220
- interface CEffectData {
221
153
  /**
222
154
  * 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
155
  *
@@ -228,9 +160,6 @@ interface CEffectData {
228
160
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetFlags
229
161
  */
230
162
  SetFlags(self: CEffectData, flags: number): void;
231
- }
232
-
233
- interface CEffectData {
234
163
  /**
235
164
  * Sets the hit box index of the effect. Used by various effects for various purposes.
236
165
  *
@@ -241,9 +170,6 @@ interface CEffectData {
241
170
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetHitBox
242
171
  */
243
172
  SetHitBox(self: CEffectData, hitBoxIndex: number): void;
244
- }
245
-
246
- interface CEffectData {
247
173
  /**
248
174
  * Sets the magnitude of the effect.
249
175
  * **NOTE**: Internally stored as a float with 12 bit precision for networking purposes, limited to range of 0-1023.
@@ -252,9 +178,6 @@ interface CEffectData {
252
178
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetMagnitude
253
179
  */
254
180
  SetMagnitude(self: CEffectData, magnitude: number): void;
255
- }
256
-
257
- interface CEffectData {
258
181
  /**
259
182
  * Sets the material index of the effect.
260
183
  *
@@ -265,18 +188,12 @@ interface CEffectData {
265
188
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetMaterialIndex
266
189
  */
267
190
  SetMaterialIndex(self: CEffectData, materialIndex: number): void;
268
- }
269
-
270
- interface CEffectData {
271
191
  /**
272
192
  * 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
193
  * @realm shared
274
194
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetNormal
275
195
  */
276
196
  SetNormal(self: CEffectData, normal: Vector): void;
277
- }
278
-
279
- interface CEffectData {
280
197
  /**
281
198
  * Sets the origin of the effect to be created with this effect data.
282
199
  * **NOTE**: Limited to world bounds (+-16386 on every axis) and has horrible networking precision. (17 bit float per component)
@@ -286,9 +203,6 @@ interface CEffectData {
286
203
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetOrigin
287
204
  */
288
205
  SetOrigin(self: CEffectData, origin: Vector): void;
289
- }
290
-
291
- interface CEffectData {
292
206
  /**
293
207
  * Sets the radius of the effect to be created with this effect data.
294
208
  *
@@ -299,18 +213,12 @@ interface CEffectData {
299
213
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetRadius
300
214
  */
301
215
  SetRadius(self: CEffectData, radius: number): void;
302
- }
303
-
304
- interface CEffectData {
305
216
  /**
306
217
  * Sets the scale of the effect to be created with this effect data.
307
218
  * @realm shared
308
219
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetScale
309
220
  */
310
221
  SetScale(self: CEffectData, scale: number): void;
311
- }
312
-
313
- interface CEffectData {
314
222
  /**
315
223
  * Sets the start of the effect to be created with this effect data.
316
224
  * **NOTE**: Limited to world bounds (+-16386 on every axis) and has horrible networking precision. (17 bit float per component)
@@ -320,9 +228,6 @@ interface CEffectData {
320
228
  * @source https://wiki.facepunch.com/gmod/CEffectData:SetStart
321
229
  */
322
230
  SetStart(self: CEffectData, start: Vector): void;
323
- }
324
-
325
- interface CEffectData {
326
231
  /**
327
232
  * 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
233
  *
@@ -335,3 +240,35 @@ interface CEffectData {
335
240
  SetSurfaceProp(self: CEffectData, surfaceProperties: number): void;
336
241
  }
337
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
+
package/types/chat.d.tlua CHANGED
@@ -13,45 +13,30 @@ interface ChatLib {
13
13
  * @source https://wiki.facepunch.com/gmod/chat.AddText
14
14
  */
15
15
  AddText(...: any): void;
16
- }
17
-
18
- interface ChatLib {
19
16
  /**
20
17
  * Closes the chat window.
21
18
  * @realm client
22
19
  * @source https://wiki.facepunch.com/gmod/chat.Close
23
20
  */
24
21
  Close(): void;
25
- }
26
-
27
- interface ChatLib {
28
22
  /**
29
23
  * Returns the chatbox position.
30
24
  * @realm client
31
25
  * @source https://wiki.facepunch.com/gmod/chat.GetChatBoxPos
32
26
  */
33
27
  GetChatBoxPos(): (number, number);
34
- }
35
-
36
- interface ChatLib {
37
28
  /**
38
29
  * Returns the chatbox size.
39
30
  * @realm client
40
31
  * @source https://wiki.facepunch.com/gmod/chat.GetChatBoxSize
41
32
  */
42
33
  GetChatBoxSize(): (number, number);
43
- }
44
-
45
- interface ChatLib {
46
34
  /**
47
35
  * Opens the chat window.
48
36
  * @realm client
49
37
  * @source https://wiki.facepunch.com/gmod/chat.Open
50
38
  */
51
39
  Open(mode: number): void;
52
- }
53
-
54
- interface ChatLib {
55
40
  /**
56
41
  * Plays the chat "tick" sound.
57
42
  * @realm client
@@ -60,3 +45,8 @@ interface ChatLib {
60
45
  PlaySound(): void;
61
46
  }
62
47
 
48
+
49
+
50
+
51
+
52
+
@@ -13,9 +13,6 @@ 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
-
18
- interface CleanupLib {
19
16
  /**
20
17
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
21
18
  * Called by the `gmod_admin_cleanup` console command. Allows admins to clean up the server.
@@ -23,9 +20,6 @@ interface CleanupLib {
23
20
  * @source https://wiki.facepunch.com/gmod/cleanup.CC_AdminCleanup
24
21
  */
25
22
  CC_AdminCleanup(pl: Player, command: string, args: table): void;
26
- }
27
-
28
- interface CleanupLib {
29
23
  /**
30
24
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
31
25
  * Called by the `gmod_cleanup` console command. Allows players to cleanup their own props.
@@ -33,36 +27,24 @@ interface CleanupLib {
33
27
  * @source https://wiki.facepunch.com/gmod/cleanup.CC_Cleanup
34
28
  */
35
29
  CC_Cleanup(pl: Player, command: string, args: table): void;
36
- }
37
-
38
- interface CleanupLib {
39
30
  /**
40
31
  * Gets the cleanup list.
41
32
  * @realm server
42
33
  * @source https://wiki.facepunch.com/gmod/cleanup.GetList
43
34
  */
44
35
  GetList(): void;
45
- }
46
-
47
- interface CleanupLib {
48
36
  /**
49
37
  * Gets the table of cleanup types.
50
38
  * @realm shared
51
39
  * @source https://wiki.facepunch.com/gmod/cleanup.GetTable
52
40
  */
53
41
  GetTable(): table;
54
- }
55
-
56
- interface CleanupLib {
57
42
  /**
58
43
  * Registers a new cleanup type.
59
44
  * @realm shared
60
45
  * @source https://wiki.facepunch.com/gmod/cleanup.Register
61
46
  */
62
47
  Register(type: string): void;
63
- }
64
-
65
- interface CleanupLib {
66
48
  /**
67
49
  * Replaces one entity in the cleanup module with another.
68
50
  *
@@ -72,9 +54,6 @@ interface CleanupLib {
72
54
  * @source https://wiki.facepunch.com/gmod/cleanup.ReplaceEntity
73
55
  */
74
56
  ReplaceEntity(from: Entity, to: Entity | nil): boolean;
75
- }
76
-
77
- interface CleanupLib {
78
57
  /**
79
58
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
80
59
  *
@@ -86,3 +65,10 @@ interface CleanupLib {
86
65
  UpdateUI(): void;
87
66
  }
88
67
 
68
+
69
+
70
+
71
+
72
+
73
+
74
+