@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
@@ -9,8 +9,6 @@
9
9
  * A material object can be created with [Global.Material](https://wiki.facepunch.com/gmod/Global.Material) or [Global.CreateMaterial](https://wiki.facepunch.com/gmod/Global.CreateMaterial).
10
10
  * @source https://wiki.facepunch.com/gmod/IMaterial
11
11
  */
12
- interface IMaterial {}
13
-
14
12
  interface IMaterial {
15
13
  /**
16
14
  * Returns the color of the specified pixel of the `$basetexture`, only works for materials created from PNG files.
@@ -21,18 +19,12 @@ interface IMaterial {
21
19
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetColor
22
20
  */
23
21
  GetColor(self: IMaterial, x: number, y: number): Color;
24
- }
25
-
26
- interface IMaterial {
27
22
  /**
28
23
  * Returns the specified material value as a float, or nil if the value is not set.
29
24
  * @realm shared and menu
30
25
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetFloat
31
26
  */
32
27
  GetFloat(self: IMaterial, materialFloat: string): number;
33
- }
34
-
35
- interface IMaterial {
36
28
  /**
37
29
  * Returns the specified material value as a int, rounds the value if its a float, or nil if the value is not set.
38
30
  *
@@ -43,36 +35,24 @@ interface IMaterial {
43
35
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetInt
44
36
  */
45
37
  GetInt(self: IMaterial, materialInt: string): number;
46
- }
47
-
48
- interface IMaterial {
49
38
  /**
50
39
  * Gets all the key values defined for the material.
51
40
  * @realm shared
52
41
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetKeyValues
53
42
  */
54
43
  GetKeyValues(self: IMaterial): Table<string, any>;
55
- }
56
-
57
- interface IMaterial {
58
44
  /**
59
45
  * Returns the specified material matrix as a int, or nil if the value is not set or is not a matrix.
60
46
  * @realm shared
61
47
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetMatrix
62
48
  */
63
49
  GetMatrix(self: IMaterial, materialMatrix: string): VMatrix;
64
- }
65
-
66
- interface IMaterial {
67
50
  /**
68
51
  * Returns the name of the material, in most cases the path.
69
52
  * @realm shared and menu
70
53
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetName
71
54
  */
72
55
  GetName(self: IMaterial): string;
73
- }
74
-
75
- interface IMaterial {
76
56
  /**
77
57
  * Returns the name of the materials shader.
78
58
  *
@@ -85,27 +65,18 @@ interface IMaterial {
85
65
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetShader
86
66
  */
87
67
  GetShader(self: IMaterial): string;
88
- }
89
-
90
- interface IMaterial {
91
68
  /**
92
69
  * Returns the specified material string, or nil if the value is not set or if the value can not be converted to a string.
93
70
  * @realm shared and menu
94
71
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetString
95
72
  */
96
73
  GetString(self: IMaterial, materialString: string): string;
97
- }
98
-
99
- interface IMaterial {
100
74
  /**
101
75
  * Returns an [ITexture](https://wiki.facepunch.com/gmod/ITexture) based on the passed shader parameter.
102
76
  * @realm shared and menu
103
77
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetTexture
104
78
  */
105
79
  GetTexture(self: IMaterial, param: string): ITexture;
106
- }
107
-
108
- interface IMaterial {
109
80
  /**
110
81
  * Returns the specified material vector, or nil if the value is not set.
111
82
  *
@@ -115,18 +86,12 @@ interface IMaterial {
115
86
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetVector
116
87
  */
117
88
  GetVector(self: IMaterial, materialVector: string): Vector;
118
- }
119
-
120
- interface IMaterial {
121
89
  /**
122
90
  * Returns the specified material vector as a 4 component vector.
123
91
  * @realm shared and menu
124
92
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetVector4D
125
93
  */
126
94
  GetVector4D(self: IMaterial, name: string): (number, number, number, number);
127
- }
128
-
129
- interface IMaterial {
130
95
  /**
131
96
  * Returns the specified material linear color vector, or nil if the value is not set.
132
97
  *
@@ -138,27 +103,18 @@ interface IMaterial {
138
103
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetVectorLinear
139
104
  */
140
105
  GetVectorLinear(self: IMaterial, materialVector: string): Vector;
141
- }
142
-
143
- interface IMaterial {
144
106
  /**
145
107
  * Returns the height of the member texture set for `$basetexture`.
146
108
  * @realm shared and menu
147
109
  * @source https://wiki.facepunch.com/gmod/IMaterial:Height
148
110
  */
149
111
  Height(self: IMaterial): number;
150
- }
151
-
152
- interface IMaterial {
153
112
  /**
154
113
  * Returns whenever the material is valid, i.e. whether it was not loaded successfully from disk or not.
155
114
  * @realm shared and menu
156
115
  * @source https://wiki.facepunch.com/gmod/IMaterial:IsError
157
116
  */
158
117
  IsError(self: IMaterial): boolean;
159
- }
160
-
161
- interface IMaterial {
162
118
  /**
163
119
  * Recomputes the material's snapshot. This needs to be called if you have changed variables on your material and it isn't changing.
164
120
  *
@@ -168,9 +124,6 @@ interface IMaterial {
168
124
  * @source https://wiki.facepunch.com/gmod/IMaterial:Recompute
169
125
  */
170
126
  Recompute(self: IMaterial): void;
171
- }
172
-
173
- interface IMaterial {
174
127
  /**
175
128
  * Changes the Material into the give Image.
176
129
  * **INTERNAL**: This is used by the Background to change the Image.
@@ -180,9 +133,6 @@ interface IMaterial {
180
133
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetDynamicImage
181
134
  */
182
135
  SetDynamicImage(self: IMaterial, path: string): void;
183
- }
184
-
185
- interface IMaterial {
186
136
  /**
187
137
  * Sets the specified material float to the specified float, does nothing on a type mismatch.
188
138
  *
@@ -192,9 +142,6 @@ interface IMaterial {
192
142
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetFloat
193
143
  */
194
144
  SetFloat(self: IMaterial, materialFloat: string, float: number): void;
195
- }
196
-
197
- interface IMaterial {
198
145
  /**
199
146
  * Sets the specified material value to the specified int, does nothing on a type mismatch.
200
147
  *
@@ -208,18 +155,12 @@ interface IMaterial {
208
155
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetInt
209
156
  */
210
157
  SetInt(self: IMaterial, materialInt: string, int: number): void;
211
- }
212
-
213
- interface IMaterial {
214
158
  /**
215
159
  * Sets the specified material value to the specified matrix, does nothing on a type mismatch.
216
160
  * @realm shared
217
161
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetMatrix
218
162
  */
219
163
  SetMatrix(self: IMaterial, materialMatrix: string, matrix: VMatrix): void;
220
- }
221
-
222
- interface IMaterial {
223
164
  /**
224
165
  * The functionality of this function was removed due to the amount of crashes it caused.
225
166
  * @realm shared and menu
@@ -227,18 +168,12 @@ interface IMaterial {
227
168
  * @deprecated This function does nothing
228
169
  */
229
170
  SetShader(self: IMaterial, shaderName: string): void;
230
- }
231
-
232
- interface IMaterial {
233
171
  /**
234
172
  * Sets the specified material value to the specified string, does nothing on a type mismatch.
235
173
  * @realm shared and menu
236
174
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetString
237
175
  */
238
176
  SetString(self: IMaterial, materialString: string, string: string): void;
239
- }
240
-
241
- interface IMaterial {
242
177
  /**
243
178
  * Sets the specified material texture to the specified texture, does nothing on a type mismatch.
244
179
  *
@@ -248,36 +183,24 @@ interface IMaterial {
248
183
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetTexture
249
184
  */
250
185
  SetTexture(self: IMaterial, materialTexture: string, texture: ITexture): void;
251
- }
252
-
253
- interface IMaterial {
254
186
  /**
255
187
  * Unsets the value for the specified material value.
256
188
  * @realm shared and menu
257
189
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetUndefined
258
190
  */
259
191
  SetUndefined(self: IMaterial, materialValueName: string): void;
260
- }
261
-
262
- interface IMaterial {
263
192
  /**
264
193
  * Sets the specified material vector to the specified vector, does nothing on a type mismatch.
265
194
  * @realm shared and menu
266
195
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetVector
267
196
  */
268
197
  SetVector(self: IMaterial, MaterialVector: string, vec: Vector): void;
269
- }
270
-
271
- interface IMaterial {
272
198
  /**
273
199
  * Sets the specified material vector to the specified 4 component vector, does nothing on a type mismatch.
274
200
  * @realm shared and menu
275
201
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetVector4D
276
202
  */
277
203
  SetVector4D(self: IMaterial, name: string, x: number, y: number, z: number, w: number): void;
278
- }
279
-
280
- interface IMaterial {
281
204
  /**
282
205
  * Returns the width of the member texture set for `$basetexture`.
283
206
  * @realm shared and menu
@@ -286,3 +209,29 @@ interface IMaterial {
286
209
  Width(self: IMaterial): number;
287
210
  }
288
211
 
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
@@ -10,8 +10,6 @@
10
10
  *
11
11
  * @source https://wiki.facepunch.com/gmod/IMesh
12
12
  */
13
- interface IMesh {}
14
-
15
13
  interface IMesh {
16
14
  /**
17
15
  * Builds the mesh from a table mesh vertexes.
@@ -29,36 +27,24 @@ interface IMesh {
29
27
  * @source https://wiki.facepunch.com/gmod/IMesh:BuildFromTriangles
30
28
  */
31
29
  BuildFromTriangles(self: IMesh, vertexes: table): void;
32
- }
33
-
34
- interface IMesh {
35
30
  /**
36
31
  * Deletes the mesh and frees the memory used by it.
37
32
  * @realm client
38
33
  * @source https://wiki.facepunch.com/gmod/IMesh:Destroy
39
34
  */
40
35
  Destroy(self: IMesh): void;
41
- }
42
-
43
- interface IMesh {
44
36
  /**
45
37
  * Renders the mesh with the active matrix.
46
38
  * @realm client
47
39
  * @source https://wiki.facepunch.com/gmod/IMesh:Draw
48
40
  */
49
41
  Draw(self: IMesh): void;
50
- }
51
-
52
- interface IMesh {
53
42
  /**
54
43
  * Renders the mesh with the active matrix and given bone matrices.
55
44
  * @realm client
56
45
  * @source https://wiki.facepunch.com/gmod/IMesh:DrawSkinned
57
46
  */
58
47
  DrawSkinned(self: IMesh, bones: VMatrix[], multiply?: boolean): void;
59
- }
60
-
61
- interface IMesh {
62
48
  /**
63
49
  * Returns whether this [IMesh](https://wiki.facepunch.com/gmod/IMesh) is valid or not.
64
50
  *
@@ -68,3 +54,8 @@ interface IMesh {
68
54
  IsValid(self: IMesh): boolean;
69
55
  }
70
56
 
57
+
58
+
59
+
60
+
61
+
@@ -13,18 +13,12 @@ interface InputLib {
13
13
  * @source https://wiki.facepunch.com/gmod/input.CheckKeyTrapping
14
14
  */
15
15
  CheckKeyTrapping(): number;
16
- }
17
-
18
- interface InputLib {
19
16
  /**
20
17
  * Returns the digital value of an analog stick on the current (set up via convars) controller.
21
18
  * @realm client and menu
22
19
  * @source https://wiki.facepunch.com/gmod/input.GetAnalogValue
23
20
  */
24
21
  GetAnalogValue(axis: ANALOG): number;
25
- }
26
-
27
- interface InputLib {
28
22
  /**
29
23
  * Returns the cursor's position on the screen.
30
24
  * On macOS, the cursor isn't locked on the middle of the screen which causes a significant offset of the positions returned by this function.
@@ -33,18 +27,12 @@ interface InputLib {
33
27
  * @source https://wiki.facepunch.com/gmod/input.GetCursorPos
34
28
  */
35
29
  GetCursorPos(): (number, number);
36
- }
37
-
38
- interface InputLib {
39
30
  /**
40
31
  * Gets the button code from a button name. This is opposite of [input.GetKeyName](https://wiki.facepunch.com/gmod/input.GetKeyName).
41
32
  * @realm client and menu
42
33
  * @source https://wiki.facepunch.com/gmod/input.GetKeyCode
43
34
  */
44
35
  GetKeyCode(button: string): BUTTON_CODE;
45
- }
46
-
47
- interface InputLib {
48
36
  /**
49
37
  * Gets the button name from a numeric button code. The name needs to be
50
38
  * translated with language.GetPhrase before being displayed.
@@ -56,10 +44,6 @@ interface InputLib {
56
44
  * @source https://wiki.facepunch.com/gmod/input.GetKeyName
57
45
  */
58
46
  GetKeyName(button: BUTTON_CODE | number): string;
59
- }
60
-
61
-
62
- interface InputLib {
63
47
  /**
64
48
  * Gets whether the specified button code is down.
65
49
  *
@@ -70,109 +54,72 @@ interface InputLib {
70
54
  * @source https://wiki.facepunch.com/gmod/input.IsButtonDown
71
55
  */
72
56
  IsButtonDown(button: BUTTON_CODE | number): boolean;
73
- }
74
-
75
-
76
- interface InputLib {
77
57
  /**
78
58
  * Returns whether a control key is being pressed.
79
59
  * @realm client and menu
80
60
  * @source https://wiki.facepunch.com/gmod/input.IsControlDown
81
61
  */
82
62
  IsControlDown(): boolean;
83
- }
84
-
85
- interface InputLib {
86
63
  /**
87
64
  * Gets whether a key is down.
88
65
  * @realm client and menu
89
66
  * @source https://wiki.facepunch.com/gmod/input.IsKeyDown
90
67
  */
91
68
  IsKeyDown(key: number): boolean;
92
- }
93
-
94
- interface InputLib {
95
69
  /**
96
70
  * Returns whether key trapping is activate and the next key press will be captured.
97
71
  * @realm client and menu
98
72
  * @source https://wiki.facepunch.com/gmod/input.IsKeyTrapping
99
73
  */
100
74
  IsKeyTrapping(): boolean;
101
- }
102
-
103
- interface InputLib {
104
75
  /**
105
76
  * Gets whether a mouse button is down.
106
77
  * @realm client and menu
107
78
  * @source https://wiki.facepunch.com/gmod/input.IsMouseDown
108
79
  */
109
80
  IsMouseDown(mouseKey: number): boolean;
110
- }
111
-
112
- interface InputLib {
113
81
  /**
114
82
  * Gets whether a shift key is being pressed
115
83
  * @realm client and menu
116
84
  * @source https://wiki.facepunch.com/gmod/input.IsShiftDown
117
85
  */
118
86
  IsShiftDown(): boolean;
119
- }
120
-
121
- interface InputLib {
122
87
  /**
123
88
  * Returns the client's bound key for the specified console command. If the player has multiple keys bound to a single command, then the key with the lowest [Enums/BUTTON_CODE](https://wiki.facepunch.com/gmod/Enums/BUTTON_CODE) will be returned.
124
89
  * @realm client and menu
125
90
  * @source https://wiki.facepunch.com/gmod/input.LookupBinding
126
91
  */
127
92
  LookupBinding(binding: string, exact?: boolean): string;
128
- }
129
-
130
- interface InputLib {
131
93
  /**
132
94
  * Returns the bind string that the given key is bound to.
133
95
  * @realm client and menu
134
96
  * @source https://wiki.facepunch.com/gmod/input.LookupKeyBinding
135
97
  */
136
98
  LookupKeyBinding(key: BUTTON_CODE): string;
137
- }
138
-
139
- interface InputLib {
140
99
  /**
141
100
  * Switches to the provided weapon on the next CUserCmd generation/CreateMove call. Direct binding to [CInput::MakeWeaponSelection](https://github.com/ValveSoftware/source-sdk-2013/blob/39f6dde8fbc238727c020d13b05ecadd31bda4c0/src/game/client/in_main.cpp#L989-L992).
142
101
  * @realm client
143
102
  * @source https://wiki.facepunch.com/gmod/input.SelectWeapon
144
103
  */
145
104
  SelectWeapon(weapon: Weapon): void;
146
- }
147
-
148
- interface InputLib {
149
105
  /**
150
106
  * Sets the cursor's position on the screen, relative to the topleft corner of the window
151
107
  * @realm client and menu
152
108
  * @source https://wiki.facepunch.com/gmod/input.SetCursorPos
153
109
  */
154
110
  SetCursorPos(mouseX: number, mouseY: number): void;
155
- }
156
-
157
- interface InputLib {
158
111
  /**
159
112
  * Begins waiting for a key to be pressed so we can save it for [input.CheckKeyTrapping](https://wiki.facepunch.com/gmod/input.CheckKeyTrapping). Used by the [DBinder](https://wiki.facepunch.com/gmod/DBinder).
160
113
  * @realm client and menu
161
114
  * @source https://wiki.facepunch.com/gmod/input.StartKeyTrapping
162
115
  */
163
116
  StartKeyTrapping(): void;
164
- }
165
-
166
- interface InputLib {
167
117
  /**
168
118
  * Translates a console command alias, basically reverse of the `alias` console command.
169
119
  * @realm client and menu
170
120
  * @source https://wiki.facepunch.com/gmod/input.TranslateAlias
171
121
  */
172
122
  TranslateAlias(command: string): string;
173
- }
174
-
175
- interface InputLib {
176
123
  /**
177
124
  * Returns whether a key was initially pressed in the same frame this function was called.
178
125
  *
@@ -182,9 +129,6 @@ interface InputLib {
182
129
  * @source https://wiki.facepunch.com/gmod/input.WasKeyPressed
183
130
  */
184
131
  WasKeyPressed(key: number): boolean;
185
- }
186
-
187
- interface InputLib {
188
132
  /**
189
133
  * Returns whether a key was released in the same frame this function was called.
190
134
  *
@@ -194,9 +138,6 @@ interface InputLib {
194
138
  * @source https://wiki.facepunch.com/gmod/input.WasKeyReleased
195
139
  */
196
140
  WasKeyReleased(key: number): boolean;
197
- }
198
-
199
- interface InputLib {
200
141
  /**
201
142
  * Returns whether the key is being held down or not.
202
143
  *
@@ -206,9 +147,6 @@ interface InputLib {
206
147
  * @source https://wiki.facepunch.com/gmod/input.WasKeyTyped
207
148
  */
208
149
  WasKeyTyped(key: number): boolean;
209
- }
210
-
211
- interface InputLib {
212
150
  /**
213
151
  * Returns whether a mouse key was double pressed in the same frame this function was called.
214
152
  *
@@ -221,9 +159,6 @@ interface InputLib {
221
159
  * @source https://wiki.facepunch.com/gmod/input.WasMouseDoublePressed
222
160
  */
223
161
  WasMouseDoublePressed(button: number): boolean;
224
- }
225
-
226
- interface InputLib {
227
162
  /**
228
163
  * Returns whether a mouse key was initially pressed in the same frame this function was called.
229
164
  *
@@ -236,9 +171,6 @@ interface InputLib {
236
171
  * @source https://wiki.facepunch.com/gmod/input.WasMousePressed
237
172
  */
238
173
  WasMousePressed(key: number): boolean;
239
- }
240
-
241
- interface InputLib {
242
174
  /**
243
175
  * Returns whether a mouse key was released in the same frame this function was called.
244
176
  *
@@ -250,3 +182,27 @@ interface InputLib {
250
182
  WasMouseReleased(key: number): boolean;
251
183
  }
252
184
 
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
@@ -6,8 +6,6 @@
6
6
  * It allows you to read blocks directly from the save game files used by Half-Life 2 save system when such save is loaded.
7
7
  * @source https://wiki.facepunch.com/gmod/IRestore
8
8
  */
9
- interface IRestore {}
10
-
11
9
  interface IRestore {
12
10
  /**
13
11
  * Ends current data block started with [IRestore:StartBlock](https://wiki.facepunch.com/gmod/IRestore:StartBlock) and returns to the parent block.
@@ -18,72 +16,48 @@ interface IRestore {
18
16
  * @source https://wiki.facepunch.com/gmod/IRestore:EndBlock
19
17
  */
20
18
  EndBlock(self: IRestore): void;
21
- }
22
-
23
- interface IRestore {
24
19
  /**
25
20
  * Reads next bytes from the restore object as an [Angle](https://wiki.facepunch.com/gmod/Angle).
26
21
  * @realm shared
27
22
  * @source https://wiki.facepunch.com/gmod/IRestore:ReadAngle
28
23
  */
29
24
  ReadAngle(self: IRestore): Angle;
30
- }
31
-
32
- interface IRestore {
33
25
  /**
34
26
  * Reads next bytes from the restore object as a [boolean](https://wiki.facepunch.com/gmod/boolean).
35
27
  * @realm shared
36
28
  * @source https://wiki.facepunch.com/gmod/IRestore:ReadBool
37
29
  */
38
30
  ReadBool(self: IRestore): boolean;
39
- }
40
-
41
- interface IRestore {
42
31
  /**
43
32
  * Reads next bytes from the restore object as an [Entity](https://wiki.facepunch.com/gmod/Entity).
44
33
  * @realm shared
45
34
  * @source https://wiki.facepunch.com/gmod/IRestore:ReadEntity
46
35
  */
47
36
  ReadEntity(self: IRestore): Entity;
48
- }
49
-
50
- interface IRestore {
51
37
  /**
52
38
  * Reads next bytes from the restore object as a floating point [number](https://wiki.facepunch.com/gmod/number).
53
39
  * @realm shared
54
40
  * @source https://wiki.facepunch.com/gmod/IRestore:ReadFloat
55
41
  */
56
42
  ReadFloat(self: IRestore): number;
57
- }
58
-
59
- interface IRestore {
60
43
  /**
61
44
  * Reads next bytes from the restore object as an integer [number](https://wiki.facepunch.com/gmod/number).
62
45
  * @realm shared
63
46
  * @source https://wiki.facepunch.com/gmod/IRestore:ReadInt
64
47
  */
65
48
  ReadInt(self: IRestore): number;
66
- }
67
-
68
- interface IRestore {
69
49
  /**
70
50
  * Reads next bytes from the restore object as a [string](https://wiki.facepunch.com/gmod/string).
71
51
  * @realm shared
72
52
  * @source https://wiki.facepunch.com/gmod/IRestore:ReadString
73
53
  */
74
54
  ReadString(self: IRestore): string;
75
- }
76
-
77
- interface IRestore {
78
55
  /**
79
56
  * Reads next bytes from the restore object as a [Vector](https://wiki.facepunch.com/gmod/Vector).
80
57
  * @realm shared
81
58
  * @source https://wiki.facepunch.com/gmod/IRestore:ReadVector
82
59
  */
83
60
  ReadVector(self: IRestore): Vector;
84
- }
85
-
86
- interface IRestore {
87
61
  /**
88
62
  * Loads next block of data to be read inside current block. Blocks **must** be ended with [IRestore:EndBlock](https://wiki.facepunch.com/gmod/IRestore:EndBlock).
89
63
  * @realm shared
@@ -92,3 +66,12 @@ interface IRestore {
92
66
  StartBlock(self: IRestore): string;
93
67
  }
94
68
 
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+