@tlua/gmod 1.0.4 → 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 (214) hide show
  1. package/package.json +1 -1
  2. package/types/achievements.d.tlua +15 -45
  3. package/types/ai.d.tlua +5 -15
  4. package/types/angle.d.tlua +18 -54
  5. package/types/baseclass.d.tlua +2 -4
  6. package/types/bf_read.d.tlua +11 -32
  7. package/types/bit.d.tlua +11 -33
  8. package/types/cam.d.tlua +16 -48
  9. package/types/ceffectdata.d.tlua +32 -95
  10. package/types/chat.d.tlua +5 -15
  11. package/types/cleanup.d.tlua +7 -21
  12. package/types/cluaemitter.d.tlua +12 -35
  13. package/types/clualocomotion.d.tlua +40 -119
  14. package/types/cluaparticle.d.tlua +44 -131
  15. package/types/cmovedata.d.tlua +47 -140
  16. package/types/cnavarea.d.tlua +77 -230
  17. package/types/cnavladder.d.tlua +22 -65
  18. package/types/cnewparticleeffect.d.tlua +26 -77
  19. package/types/color.d.tlua +28 -84
  20. package/types/concommand.d.tlua +4 -12
  21. package/types/constraint.d.tlua +28 -84
  22. package/types/construct.d.tlua +1 -3
  23. package/types/contentheader.d.tlua +3 -6
  24. package/types/contenticon.d.tlua +9 -24
  25. package/types/contentsidebar.d.tlua +4 -9
  26. package/types/contextbase.d.tlua +4 -9
  27. package/types/controlpanel.d.tlua +18 -40
  28. package/types/controlpresets.d.tlua +13 -36
  29. package/types/convar.d.tlua +16 -47
  30. package/types/cookie.d.tlua +3 -9
  31. package/types/coroutine.d.tlua +7 -21
  32. package/types/crecipientfilter.d.tlua +16 -47
  33. package/types/csoundpatch.d.tlua +14 -41
  34. package/types/ctakedamageinfo.d.tlua +33 -98
  35. package/types/ctrlnumpad.d.tlua +6 -17
  36. package/types/cusercmd.d.tlua +27 -80
  37. package/types/cvars.d.tlua +6 -18
  38. package/types/dadjustablemodelpanel.d.tlua +7 -18
  39. package/types/dalphabar.d.tlua +3 -6
  40. package/types/dbinder.d.tlua +4 -9
  41. package/types/dbubblecontainer.d.tlua +2 -3
  42. package/types/dbutton.d.tlua +8 -21
  43. package/types/dcheckbox.d.tlua +5 -12
  44. package/types/dcheckboxlabel.d.tlua +9 -27
  45. package/types/dcollapsiblecategory.d.tlua +23 -66
  46. package/types/dcolorbutton.d.tlua +7 -18
  47. package/types/dcolorcombo.d.tlua +5 -12
  48. package/types/dcolorcube.d.tlua +13 -36
  49. package/types/dcolormixer.d.tlua +27 -78
  50. package/types/dcolorpalette.d.tlua +23 -66
  51. package/types/dcolumnsheet.d.tlua +5 -12
  52. package/types/dcombobox.d.tlua +17 -48
  53. package/types/ddragbase.d.tlua +13 -36
  54. package/types/ddrawer.d.tlua +8 -21
  55. package/types/debug.d.tlua +44 -76
  56. package/types/debugoverlay.d.tlua +11 -33
  57. package/types/dentityproperties.d.tlua +5 -12
  58. package/types/derma.d.tlua +10 -30
  59. package/types/dexpandbutton.d.tlua +3 -6
  60. package/types/dfilebrowser.d.tlua +20 -60
  61. package/types/dform.d.tlua +18 -51
  62. package/types/dframe.d.tlua +24 -72
  63. package/types/dgrid.d.tlua +11 -30
  64. package/types/dhorizontaldivider.d.tlua +20 -57
  65. package/types/dhorizontalscroller.d.tlua +11 -30
  66. package/types/dhscrollbar.d.tlua +11 -30
  67. package/types/dhtml.d.tlua +8 -21
  68. package/types/dhtmlcontrols.d.tlua +5 -15
  69. package/types/diconbrowser.d.tlua +11 -30
  70. package/types/diconlayout.d.tlua +18 -51
  71. package/types/dimage.d.tlua +20 -55
  72. package/types/dimagebutton.d.tlua +9 -27
  73. package/types/dlabel.d.tlua +33 -96
  74. package/types/dlabeleditable.d.tlua +5 -12
  75. package/types/dlabelurl.d.tlua +10 -27
  76. package/types/dlistbox.d.tlua +8 -21
  77. package/types/dlistboxitem.d.tlua +4 -9
  78. package/types/dlistview.d.tlua +34 -99
  79. package/types/dlistview_column.d.tlua +14 -39
  80. package/types/dlistview_line.d.tlua +13 -36
  81. package/types/dmenu.d.tlua +28 -75
  82. package/types/dmenubar.d.tlua +6 -11
  83. package/types/dmenuoption.d.tlua +13 -36
  84. package/types/dmenuoptioncvar.d.tlua +6 -15
  85. package/types/dmodelpanel.d.tlua +22 -63
  86. package/types/dmodelselect.d.tlua +2 -3
  87. package/types/dmodelselectmulti.d.tlua +2 -3
  88. package/types/dnotify.d.tlua +10 -27
  89. package/types/dnumberscratch.d.tlua +26 -75
  90. package/types/dnumberwang.d.tlua +16 -45
  91. package/types/dnumslider.d.tlua +17 -51
  92. package/types/dpanel.d.tlua +14 -39
  93. package/types/dpanellist.d.tlua +11 -33
  94. package/types/dpaneloverlay.d.tlua +7 -18
  95. package/types/dpanpanel.d.tlua +6 -15
  96. package/types/dprogress.d.tlua +3 -6
  97. package/types/dproperties.d.tlua +4 -9
  98. package/types/dproperty_combo.d.tlua +3 -6
  99. package/types/dproperty_generic.d.tlua +5 -12
  100. package/types/dpropertysheet.d.tlua +26 -56
  101. package/types/dragndrop.d.tlua +10 -30
  102. package/types/draw.d.tlua +11 -31
  103. package/types/drgbpicker.d.tlua +4 -9
  104. package/types/drive.d.tlua +18 -41
  105. package/types/dscrollpanel.d.tlua +10 -30
  106. package/types/dshape.d.tlua +7 -18
  107. package/types/dsizetocontents.d.tlua +5 -12
  108. package/types/dslider.d.tlua +28 -81
  109. package/types/dsprite.d.tlua +9 -24
  110. package/types/dtab.d.tlua +8 -21
  111. package/types/dtextentry.d.tlua +43 -126
  112. package/types/dtilelayout.d.tlua +21 -60
  113. package/types/dtooltip.d.tlua +6 -15
  114. package/types/dtree.d.tlua +16 -45
  115. package/types/dtree_node.d.tlua +68 -201
  116. package/types/duplicator.d.tlua +30 -88
  117. package/types/dverticaldivider.d.tlua +23 -66
  118. package/types/dvscrollbar.d.tlua +11 -30
  119. package/types/effect.d.tlua +4 -9
  120. package/types/effects.d.tlua +6 -18
  121. package/types/engine.d.tlua +21 -63
  122. package/types/entity.d.tlua +676 -1962
  123. package/types/ents.d.tlua +23 -61
  124. package/types/file.d.tlua +39 -117
  125. package/types/frame_blend.d.tlua +7 -21
  126. package/types/game.d.tlua +39 -117
  127. package/types/gameevent.d.tlua +4 -8
  128. package/types/gamemode.d.tlua +3 -7
  129. package/types/gm.d.tlua +267 -800
  130. package/types/gmsave.d.tlua +4 -12
  131. package/types/gui.d.tlua +21 -63
  132. package/types/gwen.d.tlua +3 -9
  133. package/types/halo.d.tlua +2 -6
  134. package/types/hook.d.tlua +4 -12
  135. package/types/http.d.tlua +1 -3
  136. package/types/iconeditor.d.tlua +11 -30
  137. package/types/igmodaudiochannel.d.tlua +41 -122
  138. package/types/imagecheckbox.d.tlua +4 -9
  139. package/types/imaterial.d.tlua +26 -77
  140. package/types/imesh.d.tlua +5 -14
  141. package/types/input.d.tlua +24 -68
  142. package/types/irestore.d.tlua +9 -26
  143. package/types/isave.d.tlua +9 -26
  144. package/types/itexture.d.tlua +10 -29
  145. package/types/ivideowriter.d.tlua +5 -14
  146. package/types/jit.d.tlua +21 -53
  147. package/types/killicon.d.tlua +7 -21
  148. package/types/language.d.tlua +1 -3
  149. package/types/list.d.tlua +8 -24
  150. package/types/markup.d.tlua +2 -6
  151. package/types/markupobject.d.tlua +5 -14
  152. package/types/math.d.tlua +277 -447
  153. package/types/matproxy.d.tlua +3 -9
  154. package/types/matselect.d.tlua +11 -30
  155. package/types/menubar.d.tlua +2 -6
  156. package/types/mesh.d.tlua +19 -57
  157. package/types/motionsensor.d.tlua +10 -30
  158. package/types/navmesh.d.tlua +26 -78
  159. package/types/net.d.tlua +52 -154
  160. package/types/nextbot.d.tlua +46 -116
  161. package/types/notification.d.tlua +2 -6
  162. package/types/npc.d.tlua +182 -543
  163. package/types/numpad.d.tlua +7 -21
  164. package/types/os.d.tlua +4 -10
  165. package/types/panel.d.tlua +333 -991
  166. package/types/pathfollower.d.tlua +31 -92
  167. package/types/permissions.d.tlua +6 -18
  168. package/types/physcollide.d.tlua +3 -8
  169. package/types/physenv.d.tlua +11 -33
  170. package/types/physobj.d.tlua +78 -233
  171. package/types/player.d.tlua +302 -880
  172. package/types/player_manager.d.tlua +13 -39
  173. package/types/presets.d.tlua +6 -18
  174. package/types/projectedtexture.d.tlua +48 -143
  175. package/types/properties.d.tlua +5 -15
  176. package/types/propselect.d.tlua +5 -12
  177. package/types/render.d.tlua +142 -426
  178. package/types/resource.d.tlua +2 -6
  179. package/types/sandbox.d.tlua +54 -159
  180. package/types/saverestore.d.tlua +12 -36
  181. package/types/schedule.d.tlua +6 -17
  182. package/types/scripted_ents.d.tlua +11 -29
  183. package/types/search.d.tlua +1 -3
  184. package/types/serverlist.d.tlua +7 -21
  185. package/types/sound.d.tlua +10 -30
  186. package/types/spawnicon.d.tlua +8 -21
  187. package/types/spawnmenu.d.tlua +24 -70
  188. package/types/spawnmenucontentpanel.d.tlua +5 -12
  189. package/types/sql.d.tlua +9 -27
  190. package/types/stack.d.tlua +5 -14
  191. package/types/steamworks.d.tlua +18 -54
  192. package/types/string.d.tlua +49 -141
  193. package/types/surface.d.tlua +34 -102
  194. package/types/surfaceinfo.d.tlua +5 -14
  195. package/types/system.d.tlua +10 -30
  196. package/types/table.d.tlua +47 -137
  197. package/types/task.d.tlua +9 -26
  198. package/types/team.d.tlua +19 -57
  199. package/types/timer.d.tlua +14 -42
  200. package/types/tool.d.tlua +46 -131
  201. package/types/ugcpublishwindow.d.tlua +9 -24
  202. package/types/umsg.d.tlua +12 -36
  203. package/types/undo.d.tlua +10 -30
  204. package/types/usermessage.d.tlua +2 -6
  205. package/types/utf8.d.tlua +7 -21
  206. package/types/util.d.tlua +94 -274
  207. package/types/vector.d.tlua +36 -108
  208. package/types/vehicle.d.tlua +52 -149
  209. package/types/vgui.d.tlua +18 -46
  210. package/types/vmatrix.d.tlua +35 -105
  211. package/types/weapon.d.tlua +85 -248
  212. package/types/weapons.d.tlua +6 -16
  213. package/types/widgets.d.tlua +1 -3
  214. package/types/workshopfilebase.d.tlua +5 -14
@@ -26,9 +26,6 @@ interface SurfaceLib {
26
26
  * @source https://wiki.facepunch.com/gmod/surface.CreateFont
27
27
  */
28
28
  CreateFont(fontName: string, fontData: FontData): void;
29
- }
30
-
31
- interface SurfaceLib {
32
29
  /**
33
30
  * Enables or disables the clipping used by the VGUI that limits the drawing operations to a panels bounds.
34
31
  *
@@ -39,9 +36,6 @@ interface SurfaceLib {
39
36
  * @deprecated Alias of Global.DisableClipping so use that instead.
40
37
  */
41
38
  DisableClipping(disable: boolean): boolean;
42
- }
43
-
44
- interface SurfaceLib {
45
39
  /**
46
40
  * Draws a hollow circle, made of lines. For a filled circle, see examples for [surface.DrawPoly](https://wiki.facepunch.com/gmod/surface.DrawPoly).
47
41
  *
@@ -51,13 +45,7 @@ interface SurfaceLib {
51
45
  * @source https://wiki.facepunch.com/gmod/surface.DrawCircle
52
46
  */
53
47
  DrawCircle(originX: number, originY: number, radius: number, r: number, g: number, b: number, a?: number): void;
54
- }
55
-
56
- interface SurfaceLib {
57
48
  DrawCircle(originX: number, originY: number, radius: number, color: Color): void;
58
- }
59
-
60
- interface SurfaceLib {
61
49
  /**
62
50
  * Draws a line from one point to another.
63
51
  *
@@ -67,9 +55,6 @@ interface SurfaceLib {
67
55
  * @source https://wiki.facepunch.com/gmod/surface.DrawLine
68
56
  */
69
57
  DrawLine(startX: number, startY: number, endX: number, endY: number): void;
70
- }
71
-
72
- interface SurfaceLib {
73
58
  /**
74
59
  * Draws a hollow box with a given border width.
75
60
  *
@@ -79,9 +64,6 @@ interface SurfaceLib {
79
64
  * @source https://wiki.facepunch.com/gmod/surface.DrawOutlinedRect
80
65
  */
81
66
  DrawOutlinedRect(x: number, y: number, w: number, h: number, thickness?: number): void;
82
- }
83
-
84
- interface SurfaceLib {
85
67
  /**
86
68
  * Draws a textured polygon (secretly a triangle fan) with a maximum of 4096 vertices.
87
69
  * Only works properly with convex polygons. You may try to render concave polygons, but there is no guarantee that things wont get messed up.
@@ -97,9 +79,6 @@ interface SurfaceLib {
97
79
  * @source https://wiki.facepunch.com/gmod/surface.DrawPoly
98
80
  */
99
81
  DrawPoly(vertices: table): void;
100
- }
101
-
102
- interface SurfaceLib {
103
82
  /**
104
83
  * Draws a solid rectangle on the screen.
105
84
  *
@@ -109,9 +88,6 @@ interface SurfaceLib {
109
88
  * @source https://wiki.facepunch.com/gmod/surface.DrawRect
110
89
  */
111
90
  DrawRect(x: number, y: number, width: number, height: number): void;
112
- }
113
-
114
- interface SurfaceLib {
115
91
  /**
116
92
  * Draw the specified text on the screen, using the previously set [position](https://wiki.facepunch.com/gmod/surface.SetTextPos), [font](https://wiki.facepunch.com/gmod/surface.SetFont) and [color](https://wiki.facepunch.com/gmod/surface.SetTextColor). This function does **not** handle newlines.
117
93
  *
@@ -123,9 +99,6 @@ interface SurfaceLib {
123
99
  * @source https://wiki.facepunch.com/gmod/surface.DrawText
124
100
  */
125
101
  DrawText(text: string, forceAdditive?: boolean): void;
126
- }
127
-
128
- interface SurfaceLib {
129
102
  /**
130
103
  * Draw a textured rectangle with the given position and dimensions on the screen, using the current active texture set with [surface.SetMaterial](https://wiki.facepunch.com/gmod/surface.SetMaterial). It is also affected by [surface.SetDrawColor](https://wiki.facepunch.com/gmod/surface.SetDrawColor).
131
104
  *
@@ -138,9 +111,6 @@ interface SurfaceLib {
138
111
  * @source https://wiki.facepunch.com/gmod/surface.DrawTexturedRect
139
112
  */
140
113
  DrawTexturedRect(x: number, y: number, width: number, height: number): void;
141
- }
142
-
143
- interface SurfaceLib {
144
114
  /**
145
115
  * Draw a textured rotated rectangle with the given position and dimensions and angle on the screen, using the current active texture.
146
116
  *
@@ -152,9 +122,6 @@ interface SurfaceLib {
152
122
  * @source https://wiki.facepunch.com/gmod/surface.DrawTexturedRectRotated
153
123
  */
154
124
  DrawTexturedRectRotated(x: number, y: number, width: number, height: number, rotation: number): void;
155
- }
156
-
157
- interface SurfaceLib {
158
125
  /**
159
126
  * Draws a textured rectangle with a repeated or partial texture.
160
127
  *
@@ -196,18 +163,12 @@ interface SurfaceLib {
196
163
  * @source https://wiki.facepunch.com/gmod/surface.DrawTexturedRectUV
197
164
  */
198
165
  DrawTexturedRectUV(x: number, y: number, width: number, height: number, startU: number, startV: number, endU: number, endV: number): void;
199
- }
200
-
201
- interface SurfaceLib {
202
166
  /**
203
167
  * Returns the current alpha multiplier affecting drawing operations. This is set by [surface.SetAlphaMultiplier](https://wiki.facepunch.com/gmod/surface.SetAlphaMultiplier) or by the game engine in certain other cases.
204
168
  * @realm client and menu
205
169
  * @source https://wiki.facepunch.com/gmod/surface.GetAlphaMultiplier
206
170
  */
207
171
  GetAlphaMultiplier(): number;
208
- }
209
-
210
- interface SurfaceLib {
211
172
  /**
212
173
  * Returns the current color affecting draw operations.
213
174
  *
@@ -216,9 +177,6 @@ interface SurfaceLib {
216
177
  * @source https://wiki.facepunch.com/gmod/surface.GetDrawColor
217
178
  */
218
179
  GetDrawColor(): Color;
219
- }
220
-
221
- interface SurfaceLib {
222
180
  /**
223
181
  * Returns the [HUD icon](https://github.com/Facepunch/garrysmod/blob/master/garrysmod/scripts/hud_textures.txt) TextureID of a texture with the specified name.
224
182
  *
@@ -227,9 +185,6 @@ interface SurfaceLib {
227
185
  * @source https://wiki.facepunch.com/gmod/surface.GetHUDTexture
228
186
  */
229
187
  GetHUDTexture(name: string): number;
230
- }
231
-
232
- interface SurfaceLib {
233
188
  /**
234
189
  * Retrieves the position and [ScissorRect](https://wiki.facepunch.com/gmod/render.SetScissorRect) information for the [Panel](https://wiki.facepunch.com/gmod/Panel) that is currently being drawn.
235
190
  *
@@ -239,9 +194,6 @@ interface SurfaceLib {
239
194
  * @source https://wiki.facepunch.com/gmod/surface.GetPanelPaintState
240
195
  */
241
196
  GetPanelPaintState(): PanelPaintState;
242
- }
243
-
244
- interface SurfaceLib {
245
197
  /**
246
198
  * Retrieves the currently active scissor rect for the surface library. A faster, narrower version of [surface.GetPanelPaintState](https://wiki.facepunch.com/gmod/surface.GetPanelPaintState).
247
199
  *
@@ -253,9 +205,6 @@ interface SurfaceLib {
253
205
  * @source https://wiki.facepunch.com/gmod/surface.GetScissorRect
254
206
  */
255
207
  GetScissorRect(): (boolean, number, number, number, number);
256
- }
257
-
258
- interface SurfaceLib {
259
208
  /**
260
209
  * Returns the current color affecting text draw operations.
261
210
  *
@@ -264,18 +213,12 @@ interface SurfaceLib {
264
213
  * @source https://wiki.facepunch.com/gmod/surface.GetTextColor
265
214
  */
266
215
  GetTextColor(): Color;
267
- }
268
-
269
- interface SurfaceLib {
270
216
  /**
271
217
  * Returns the X and Y co-ordinate that has been set with [surface.SetTextPos](https://wiki.facepunch.com/gmod/surface.SetTextPos) or changed by [surface.DrawText](https://wiki.facepunch.com/gmod/surface.DrawText).
272
218
  * @realm client and menu
273
219
  * @source https://wiki.facepunch.com/gmod/surface.GetTextPos
274
220
  */
275
221
  GetTextPos(): (number, number);
276
- }
277
-
278
- interface SurfaceLib {
279
222
  /**
280
223
  * Returns the width and height (in pixels) of the given text with the font that has been set with [surface.SetFont](https://wiki.facepunch.com/gmod/surface.SetFont).
281
224
  *
@@ -285,9 +228,6 @@ interface SurfaceLib {
285
228
  * @source https://wiki.facepunch.com/gmod/surface.GetTextSize
286
229
  */
287
230
  GetTextSize(text: string): (number, number);
288
- }
289
-
290
- interface SurfaceLib {
291
231
  /**
292
232
  * Returns the texture id of the material with the given name/path, for use with [surface.SetTexture](https://wiki.facepunch.com/gmod/surface.SetTexture).
293
233
  *
@@ -300,9 +240,6 @@ interface SurfaceLib {
300
240
  * @source https://wiki.facepunch.com/gmod/surface.GetTextureID
301
241
  */
302
242
  GetTextureID(nameOrPath: string): number;
303
- }
304
-
305
- interface SurfaceLib {
306
243
  /**
307
244
  * Returns name/path of texture by ID. Opposite version of this function is [surface.GetTextureID](https://wiki.facepunch.com/gmod/surface.GetTextureID).
308
245
  *
@@ -311,9 +248,6 @@ interface SurfaceLib {
311
248
  * @source https://wiki.facepunch.com/gmod/surface.GetTextureNameByID
312
249
  */
313
250
  GetTextureNameByID(id: number): string;
314
- }
315
-
316
- interface SurfaceLib {
317
251
  /**
318
252
  * Returns the size of the texture with the associated texture ID.
319
253
  *
@@ -323,9 +257,6 @@ interface SurfaceLib {
323
257
  * @source https://wiki.facepunch.com/gmod/surface.GetTextureSize
324
258
  */
325
259
  GetTextureSize(textureID: number): (number, number);
326
- }
327
-
328
- interface SurfaceLib {
329
260
  /**
330
261
  * Play a sound file directly on the client (such as UI sounds, etc).
331
262
  *
@@ -339,9 +270,6 @@ interface SurfaceLib {
339
270
  * @source https://wiki.facepunch.com/gmod/surface.PlaySound
340
271
  */
341
272
  PlaySound(soundfile: string): void;
342
- }
343
-
344
- interface SurfaceLib {
345
273
  /**
346
274
  * Returns the height of the current client's screen.
347
275
  *
@@ -350,9 +278,6 @@ interface SurfaceLib {
350
278
  * @deprecated You should use Global.ScrH instead.
351
279
  */
352
280
  ScreenHeight(): number;
353
- }
354
-
355
- interface SurfaceLib {
356
281
  /**
357
282
  * Returns the width of the current client's screen.
358
283
  *
@@ -361,9 +286,6 @@ interface SurfaceLib {
361
286
  * @deprecated You should use Global.ScrW instead.
362
287
  */
363
288
  ScreenWidth(): number;
364
- }
365
-
366
- interface SurfaceLib {
367
289
  /**
368
290
  * Sets the alpha multiplier that will influence all upcoming drawing operations.
369
291
  * See also [render.SetBlend](https://wiki.facepunch.com/gmod/render.SetBlend).
@@ -372,9 +294,6 @@ interface SurfaceLib {
372
294
  * @source https://wiki.facepunch.com/gmod/surface.SetAlphaMultiplier
373
295
  */
374
296
  SetAlphaMultiplier(multiplier: number): void;
375
- }
376
-
377
- interface SurfaceLib {
378
297
  /**
379
298
  * Set the color of any future shapes to be drawn, can be set by either using R, G, B, A as separate values or by a [Color](https://wiki.facepunch.com/gmod/Color).
380
299
  *
@@ -387,13 +306,7 @@ interface SurfaceLib {
387
306
  * @source https://wiki.facepunch.com/gmod/surface.SetDrawColor
388
307
  */
389
308
  SetDrawColor(r: number, g: number, b: number, a?: number): void;
390
- }
391
-
392
- interface SurfaceLib {
393
309
  SetDrawColor(color: Color): void;
394
- }
395
-
396
- interface SurfaceLib {
397
310
  /**
398
311
  * Set the current font to be used for text operations later.
399
312
  *
@@ -403,9 +316,6 @@ interface SurfaceLib {
403
316
  * @source https://wiki.facepunch.com/gmod/surface.SetFont
404
317
  */
405
318
  SetFont(fontName: string): void;
406
- }
407
-
408
- interface SurfaceLib {
409
319
  /**
410
320
  * Sets the material to be used in all upcoming draw operations using the surface library.
411
321
  *
@@ -421,9 +331,6 @@ interface SurfaceLib {
421
331
  * @source https://wiki.facepunch.com/gmod/surface.SetMaterial
422
332
  */
423
333
  SetMaterial(material: IMaterial): void;
424
- }
425
-
426
- interface SurfaceLib {
427
334
  /**
428
335
  * Set the color of any future text to be drawn, can be set by either using R, G, B, A as separate numbers or by providing a [Color](https://wiki.facepunch.com/gmod/Color).
429
336
  *
@@ -431,22 +338,13 @@ interface SurfaceLib {
431
338
  * @source https://wiki.facepunch.com/gmod/surface.SetTextColor
432
339
  */
433
340
  SetTextColor(r: number, g: number, b: number, a?: number): void;
434
- }
435
-
436
- interface SurfaceLib {
437
341
  SetTextColor(color: Color): void;
438
- }
439
-
440
- interface SurfaceLib {
441
342
  /**
442
343
  * Set the top-left position to draw any future text at.
443
344
  * @realm client and menu
444
345
  * @source https://wiki.facepunch.com/gmod/surface.SetTextPos
445
346
  */
446
347
  SetTextPos(x: number, y: number): void;
447
- }
448
-
449
- interface SurfaceLib {
450
348
  /**
451
349
  * Sets the texture to be used in all upcoming draw operations using the surface library.
452
350
  *
@@ -461,3 +359,37 @@ interface SurfaceLib {
461
359
  SetTexture(textureID: number): void;
462
360
  }
463
361
 
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+
@@ -9,8 +9,6 @@
9
9
  *
10
10
  * @source https://wiki.facepunch.com/gmod/SurfaceInfo
11
11
  */
12
- interface SurfaceInfo {}
13
-
14
12
  interface SurfaceInfo {
15
13
  /**
16
14
  * Returns the brush surface's material.
@@ -18,18 +16,12 @@ interface SurfaceInfo {
18
16
  * @source https://wiki.facepunch.com/gmod/SurfaceInfo:GetMaterial
19
17
  */
20
18
  GetMaterial(self: SurfaceInfo): IMaterial;
21
- }
22
-
23
- interface SurfaceInfo {
24
19
  /**
25
20
  * Returns a list of vertices the brush surface is built from.
26
21
  * @realm shared
27
22
  * @source https://wiki.facepunch.com/gmod/SurfaceInfo:GetVertices
28
23
  */
29
24
  GetVertices(self: SurfaceInfo): Vector[];
30
- }
31
-
32
- interface SurfaceInfo {
33
25
  /**
34
26
  * Checks if the brush surface is a nodraw surface, meaning it will not be drawn by the engine.
35
27
  *
@@ -40,9 +32,6 @@ interface SurfaceInfo {
40
32
  * @source https://wiki.facepunch.com/gmod/SurfaceInfo:IsNoDraw
41
33
  */
42
34
  IsNoDraw(self: SurfaceInfo): boolean;
43
- }
44
-
45
- interface SurfaceInfo {
46
35
  /**
47
36
  * Checks if the brush surface is displaying the skybox.
48
37
  *
@@ -53,9 +42,6 @@ interface SurfaceInfo {
53
42
  * @source https://wiki.facepunch.com/gmod/SurfaceInfo:IsSky
54
43
  */
55
44
  IsSky(self: SurfaceInfo): boolean;
56
- }
57
-
58
- interface SurfaceInfo {
59
45
  /**
60
46
  * Checks if the brush surface is water.
61
47
  *
@@ -68,3 +54,8 @@ interface SurfaceInfo {
68
54
  IsWater(self: SurfaceInfo): boolean;
69
55
  }
70
56
 
57
+
58
+
59
+
60
+
61
+
@@ -19,27 +19,18 @@ interface SystemLib {
19
19
  * @source https://wiki.facepunch.com/gmod/system.AppTime
20
20
  */
21
21
  AppTime(): number;
22
- }
23
-
24
- interface SystemLib {
25
22
  /**
26
23
  * Returns the current battery power.
27
24
  * @realm shared and menu
28
25
  * @source https://wiki.facepunch.com/gmod/system.BatteryPower
29
26
  */
30
27
  BatteryPower(): number;
31
- }
32
-
33
- interface SystemLib {
34
28
  /**
35
29
  * Flashes the window, turning the border to white briefly
36
30
  * @realm client and menu
37
31
  * @source https://wiki.facepunch.com/gmod/system.FlashWindow
38
32
  */
39
33
  FlashWindow(): void;
40
- }
41
-
42
- interface SystemLib {
43
34
  /**
44
35
  * Returns the country code of this computer, determined by the IP of the client. Uses the steamworks API function `SteamUtils()->GetIPCountry()`.
45
36
  *
@@ -50,9 +41,6 @@ interface SystemLib {
50
41
  * @source https://wiki.facepunch.com/gmod/system.GetCountry
51
42
  */
52
43
  GetCountry(): string;
53
- }
54
-
55
- interface SystemLib {
56
44
  /**
57
45
  * Returns whether or not the game window has focus.
58
46
  *
@@ -63,27 +51,18 @@ interface SystemLib {
63
51
  * @source https://wiki.facepunch.com/gmod/system.HasFocus
64
52
  */
65
53
  HasFocus(): boolean;
66
- }
67
-
68
- interface SystemLib {
69
54
  /**
70
55
  * Returns whether the current OS is Linux.
71
56
  * @realm shared and menu
72
57
  * @source https://wiki.facepunch.com/gmod/system.IsLinux
73
58
  */
74
59
  IsLinux(): boolean;
75
- }
76
-
77
- interface SystemLib {
78
60
  /**
79
61
  * Returns whether the current OS is OSX.
80
62
  * @realm shared and menu
81
63
  * @source https://wiki.facepunch.com/gmod/system.IsOSX
82
64
  */
83
65
  IsOSX(): boolean;
84
- }
85
-
86
- interface SystemLib {
87
66
  /**
88
67
  * Returns whether the game is being run in a window or in fullscreen (you can change this by opening the menu, clicking 'Options', then clicking the 'Video' tab, and changing the Display Mode using the dropdown menu):
89
68
  *
@@ -93,18 +72,12 @@ interface SystemLib {
93
72
  * @source https://wiki.facepunch.com/gmod/system.IsWindowed
94
73
  */
95
74
  IsWindowed(): boolean;
96
- }
97
-
98
- interface SystemLib {
99
75
  /**
100
76
  * Returns whether the current OS is Windows.
101
77
  * @realm shared and menu
102
78
  * @source https://wiki.facepunch.com/gmod/system.IsWindows
103
79
  */
104
80
  IsWindows(): boolean;
105
- }
106
-
107
- interface SystemLib {
108
81
  /**
109
82
  * Returns the synchronized Steam time. This is the number of seconds since the [Unix epoch](http://en.wikipedia.org/wiki/Unix_time).
110
83
  *
@@ -115,9 +88,6 @@ interface SystemLib {
115
88
  * @source https://wiki.facepunch.com/gmod/system.SteamTime
116
89
  */
117
90
  SteamTime(): number;
118
- }
119
-
120
- interface SystemLib {
121
91
  /**
122
92
  * Returns the amount of seconds since the Steam user last moved their mouse.
123
93
  *
@@ -132,3 +102,13 @@ interface SystemLib {
132
102
  UpTime(): number;
133
103
  }
134
104
 
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+