@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
@@ -9,9 +9,6 @@ interface Color {
9
9
  b: number;
10
10
  /** The alpha component of the color. */
11
11
  a: number;
12
- }
13
-
14
- interface Color {
15
12
  /**
16
13
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model), adds given value to the "blackness" and converts it back into an RGB color.
17
14
  *
@@ -21,9 +18,6 @@ interface Color {
21
18
  * @source https://wiki.facepunch.com/gmod/COLOR:AddBlackness
22
19
  */
23
20
  AddBlackness(self: Color, blackness: number): void;
24
- }
25
-
26
- interface Color {
27
21
  /**
28
22
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV), adds given value to the [brightness also known as "value"](https://en.wikipedia.org/wiki/Brightness) and converts it back into an RGB color.
29
23
  *
@@ -35,9 +29,6 @@ interface Color {
35
29
  * @source https://wiki.facepunch.com/gmod/COLOR:AddBrightness
36
30
  */
37
31
  AddBrightness(self: Color, saturation: number): void;
38
- }
39
-
40
- interface Color {
41
32
  /**
42
33
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV), adds given value to the [hue](https://en.wikipedia.org/wiki/Hue) and converts it back into an RGB color.
43
34
  *
@@ -49,9 +40,6 @@ interface Color {
49
40
  * @source https://wiki.facepunch.com/gmod/COLOR:AddHue
50
41
  */
51
42
  AddHue(self: Color, hue: number): void;
52
- }
53
-
54
- interface Color {
55
43
  /**
56
44
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSL color space](https://en.wikipedia.org/wiki/HSL_and_HSV), adds given value to the ["lightness"](https://en.wikipedia.org/wiki/Lightness) and converts it back into an RGB color.
57
45
  *
@@ -63,9 +51,6 @@ interface Color {
63
51
  * @source https://wiki.facepunch.com/gmod/COLOR:AddLightness
64
52
  */
65
53
  AddLightness(self: Color, lightness: number): void;
66
- }
67
-
68
- interface Color {
69
54
  /**
70
55
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV), adds given value to the [saturation](https://en.wikipedia.org/wiki/Colorfulness) and converts it back into an RGB color.
71
56
  *
@@ -77,9 +62,6 @@ interface Color {
77
62
  * @source https://wiki.facepunch.com/gmod/COLOR:AddSaturation
78
63
  */
79
64
  AddSaturation(self: Color, saturation: number): void;
80
- }
81
-
82
- interface Color {
83
65
  /**
84
66
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model), adds given value to the "whiteness" and converts it back into an RGB color.
85
67
  *
@@ -89,9 +71,6 @@ interface Color {
89
71
  * @source https://wiki.facepunch.com/gmod/COLOR:AddWhiteness
90
72
  */
91
73
  AddWhiteness(self: Color, whiteness: number): void;
92
- }
93
-
94
- interface Color {
95
74
  /**
96
75
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model) and returns the "blackness" of the color.
97
76
  *
@@ -101,9 +80,6 @@ interface Color {
101
80
  * @source https://wiki.facepunch.com/gmod/COLOR:GetBlackness
102
81
  */
103
82
  GetBlackness(self: Color): number;
104
- }
105
-
106
- interface Color {
107
83
  /**
108
84
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV) and returns the [brightness also known as "value"](https://en.wikipedia.org/wiki/Brightness).
109
85
  *
@@ -113,9 +89,6 @@ interface Color {
113
89
  * @source https://wiki.facepunch.com/gmod/COLOR:GetBrightness
114
90
  */
115
91
  GetBrightness(self: Color): number;
116
- }
117
-
118
- interface Color {
119
92
  /**
120
93
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV) and returns the [hue](https://en.wikipedia.org/wiki/Hue).
121
94
  *
@@ -125,9 +98,6 @@ interface Color {
125
98
  * @source https://wiki.facepunch.com/gmod/COLOR:GetHue
126
99
  */
127
100
  GetHue(self: Color): number;
128
- }
129
-
130
- interface Color {
131
101
  /**
132
102
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSL color space](https://en.wikipedia.org/wiki/HSL_and_HSV) and returns the ["lightness"](https://en.wikipedia.org/wiki/Lightness) of the color.
133
103
  *
@@ -137,9 +107,6 @@ interface Color {
137
107
  * @source https://wiki.facepunch.com/gmod/COLOR:GetLightness
138
108
  */
139
109
  GetLightness(self: Color): number;
140
- }
141
-
142
- interface Color {
143
110
  /**
144
111
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV) and returns the [saturation](https://en.wikipedia.org/wiki/Colorfulness).
145
112
  *
@@ -149,9 +116,6 @@ interface Color {
149
116
  * @source https://wiki.facepunch.com/gmod/COLOR:GetSaturation
150
117
  */
151
118
  GetSaturation(self: Color): number;
152
- }
153
-
154
- interface Color {
155
119
  /**
156
120
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model) and returns the "whiteness" of the color.
157
121
  *
@@ -161,9 +125,6 @@ interface Color {
161
125
  * @source https://wiki.facepunch.com/gmod/COLOR:GetWhiteness
162
126
  */
163
127
  GetWhiteness(self: Color): number;
164
- }
165
-
166
- interface Color {
167
128
  /**
168
129
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model), sets the "blackness" and converts it back into an RGB color.
169
130
  *
@@ -171,9 +132,6 @@ interface Color {
171
132
  * @source https://wiki.facepunch.com/gmod/COLOR:SetBlackness
172
133
  */
173
134
  SetBlackness(self: Color, blackness: number): void;
174
- }
175
-
176
- interface Color {
177
135
  /**
178
136
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV), sets the [brightness also known as "value"](https://en.wikipedia.org/wiki/Brightness) and converts it back into an RGB color.
179
137
  *
@@ -183,9 +141,6 @@ interface Color {
183
141
  * @source https://wiki.facepunch.com/gmod/COLOR:SetBrightness
184
142
  */
185
143
  SetBrightness(self: Color, saturation: number): void;
186
- }
187
-
188
- interface Color {
189
144
  /**
190
145
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV), sets the [hue](https://en.wikipedia.org/wiki/Hue) and converts it back into an RGB color.
191
146
  *
@@ -195,9 +150,6 @@ interface Color {
195
150
  * @source https://wiki.facepunch.com/gmod/COLOR:SetHue
196
151
  */
197
152
  SetHue(self: Color, hue: number): void;
198
- }
199
-
200
- interface Color {
201
153
  /**
202
154
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSL color space](https://en.wikipedia.org/wiki/HSL_and_HSV), sets the ["lightness"](https://en.wikipedia.org/wiki/Lightness) and converts it back into an RGB color.
203
155
  *
@@ -207,9 +159,6 @@ interface Color {
207
159
  * @source https://wiki.facepunch.com/gmod/COLOR:SetLightness
208
160
  */
209
161
  SetLightness(self: Color, lightness: number): void;
210
- }
211
-
212
- interface Color {
213
162
  /**
214
163
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV), sets the [saturation](https://en.wikipedia.org/wiki/Colorfulness) and converts it back into an RGB color.
215
164
  *
@@ -219,9 +168,6 @@ interface Color {
219
168
  * @source https://wiki.facepunch.com/gmod/COLOR:SetSaturation
220
169
  */
221
170
  SetSaturation(self: Color, saturation: number): void;
222
- }
223
-
224
- interface Color {
225
171
  /**
226
172
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model), sets the "whiteness" and converts it back into an RGB color.
227
173
  *
@@ -229,27 +175,18 @@ interface Color {
229
175
  * @source https://wiki.facepunch.com/gmod/COLOR:SetWhiteness
230
176
  */
231
177
  SetWhiteness(self: Color, whiteness: number): void;
232
- }
233
-
234
- interface Color {
235
178
  /**
236
179
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model). See [Global.HWBToColor](https://wiki.facepunch.com/gmod/Global.HWBToColor) for more info.
237
180
  * @realm shared and menu
238
181
  * @source https://wiki.facepunch.com/gmod/COLOR:ToHWB
239
182
  */
240
183
  ToHWB(self: Color): (number, number, number);
241
- }
242
-
243
- interface Color {
244
184
  /**
245
185
  * Returns a copy of this color, usually so it can be safely modified later without affecting the original color.
246
186
  * @realm shared and menu
247
187
  * @source https://wiki.facepunch.com/gmod/Color:Copy
248
188
  */
249
189
  Copy(self: Color): Color;
250
- }
251
-
252
- interface Color {
253
190
  /**
254
191
  * Performs linear interpolation between this and given colors.
255
192
  *
@@ -257,18 +194,12 @@ interface Color {
257
194
  * @source https://wiki.facepunch.com/gmod/Color:Lerp
258
195
  */
259
196
  Lerp(self: Color, target: Color, fraction: number): Color;
260
- }
261
-
262
- interface Color {
263
197
  /**
264
198
  * Sets the red, green, blue, and alpha of the color.
265
199
  * @realm shared
266
200
  * @source https://wiki.facepunch.com/gmod/Color:SetUnpacked
267
201
  */
268
202
  SetUnpacked(self: Color, r: number, g: number, b: number, a: number): void;
269
- }
270
-
271
- interface Color {
272
203
  /**
273
204
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSL color space](https://en.wikipedia.org/wiki/HSL_and_HSV) .
274
205
  *
@@ -277,9 +208,6 @@ interface Color {
277
208
  * @source https://wiki.facepunch.com/gmod/Color:ToHSL
278
209
  */
279
210
  ToHSL(self: Color): (number, number, number);
280
- }
281
-
282
- interface Color {
283
211
  /**
284
212
  * Encodes a RGB [Color](https://wiki.facepunch.com/gmod/Color) into the [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV).
285
213
  *
@@ -290,9 +218,6 @@ interface Color {
290
218
  * @source https://wiki.facepunch.com/gmod/Color:ToHSV
291
219
  */
292
220
  ToHSV(self: Color): (number, number, number);
293
- }
294
-
295
- interface Color {
296
221
  /**
297
222
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) to its hexadecimal representation.
298
223
  *
@@ -300,18 +225,12 @@ interface Color {
300
225
  * @source https://wiki.facepunch.com/gmod/Color:ToHex
301
226
  */
302
227
  ToHex(self: Color, arg0?: boolean): string;
303
- }
304
-
305
- interface Color {
306
228
  /**
307
229
  * Returns the color as a table (an array or a list) with four elements.
308
230
  * @realm shared
309
231
  * @source https://wiki.facepunch.com/gmod/Color:ToTable
310
232
  */
311
233
  ToTable(self: Color): number[];
312
- }
313
-
314
- interface Color {
315
234
  /**
316
235
  * Translates the [Color](https://wiki.facepunch.com/gmod/Color) into a [Vector](https://wiki.facepunch.com/gmod/Vector), losing the alpha channel.
317
236
  * This will also range the values from 0 - 255 to 0 - 1
@@ -326,9 +245,6 @@ interface Color {
326
245
  * @source https://wiki.facepunch.com/gmod/Color:ToVector
327
246
  */
328
247
  ToVector(self: Color): Vector;
329
- }
330
-
331
- interface Color {
332
248
  /**
333
249
  * Returns the red, green, blue, and alpha of the color.
334
250
  * @realm shared
@@ -337,3 +253,31 @@ interface Color {
337
253
  Unpack(self: Color): (number, number, number, number);
338
254
  }
339
255
 
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
@@ -18,9 +18,6 @@ interface ConcommandLib {
18
18
  * @source https://wiki.facepunch.com/gmod/concommand.Add
19
19
  */
20
20
  Add(name: string, callback: (ply: Player, cmd: string, args: table, argStr: string) => void, autoComplete?: (cmd: string, argStr: string, args: table) => table, helpText?: string, flags?: FCVAR | number[]): void;
21
- }
22
-
23
- interface ConcommandLib {
24
21
  /**
25
22
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
26
23
  * Used by the engine to call the autocomplete function for a console command, and retrieve returned options.
@@ -28,9 +25,6 @@ interface ConcommandLib {
28
25
  * @source https://wiki.facepunch.com/gmod/concommand.AutoComplete
29
26
  */
30
27
  AutoComplete(command: string, arguments: string): table;
31
- }
32
-
33
- interface ConcommandLib {
34
28
  /**
35
29
  * Returns the tables of all console command callbacks, and autocomplete functions, that were added to the game with [concommand.Add](https://wiki.facepunch.com/gmod/concommand.Add).
36
30
  *
@@ -38,9 +32,6 @@ interface ConcommandLib {
38
32
  * @source https://wiki.facepunch.com/gmod/concommand.GetTable
39
33
  */
40
34
  GetTable(): (Table<string, function>, Table<string, function>);
41
- }
42
-
43
- interface ConcommandLib {
44
35
  /**
45
36
  * Removes a console command.
46
37
  *
@@ -50,9 +41,6 @@ interface ConcommandLib {
50
41
  * @source https://wiki.facepunch.com/gmod/concommand.Remove
51
42
  */
52
43
  Remove(name: string): void;
53
- }
54
-
55
- interface ConcommandLib {
56
44
  /**
57
45
  * **INTERNAL**: You might be looking for [Global.RunConsoleCommand](https://wiki.facepunch.com/gmod/Global.RunConsoleCommand) or [Player:ConCommand](https://wiki.facepunch.com/gmod/Player:ConCommand).
58
46
  *
@@ -67,3 +55,7 @@ interface ConcommandLib {
67
55
  Run(ply: Player, cmd: string, args: any, argumentString: string): boolean;
68
56
  }
69
57
 
58
+
59
+
60
+
61
+
@@ -19,9 +19,6 @@ interface ConstraintLib {
19
19
  * @source https://wiki.facepunch.com/gmod/constraint.AddConstraintTable
20
20
  */
21
21
  AddConstraintTable(ent1: Entity, constrt: Entity, ent2?: Entity, ent3?: Entity, ent4?: Entity): void;
22
- }
23
-
24
- interface ConstraintLib {
25
22
  /**
26
23
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
27
24
  *
@@ -33,9 +30,6 @@ interface ConstraintLib {
33
30
  * @source https://wiki.facepunch.com/gmod/constraint.AddConstraintTableNoDelete
34
31
  */
35
32
  AddConstraintTableNoDelete(ent1: Entity, constrt: Entity, ent2?: Entity, ent3?: Entity, ent4?: Entity): void;
36
- }
37
-
38
- interface ConstraintLib {
39
33
  /**
40
34
  * Creates an advanced ballsocket (ragdoll) constraint. See [constraint.Ballsocket](https://wiki.facepunch.com/gmod/constraint.Ballsocket) for the simpler version.
41
35
  *
@@ -44,45 +38,30 @@ interface ConstraintLib {
44
38
  * @source https://wiki.facepunch.com/gmod/constraint.AdvBallsocket
45
39
  */
46
40
  AdvBallsocket(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2?: Vector, forceLimit?: number, torqueLimit?: number, xMin?: number, yMin?: number, zMin?: number, xMax?: number, yMax?: number, zMax?: number, xFric?: number, yFric?: number, zFric?: number, onlyRotation?: number, noCollide?: number): Entity;
47
- }
48
-
49
- interface ConstraintLib {
50
41
  /**
51
42
  * Creates an axis constraint.
52
43
  * @realm server
53
44
  * @source https://wiki.facepunch.com/gmod/constraint.Axis
54
45
  */
55
46
  Axis(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, forceLimit?: number, torqueLimit?: number, friction?: number, noCollide?: number, localAxis?: Vector, dontAddTable?: boolean): Entity;
56
- }
57
-
58
- interface ConstraintLib {
59
47
  /**
60
48
  * Creates a ballsocket joint. See See [constraint.AdvBallsocket](https://wiki.facepunch.com/gmod/constraint.AdvBallsocket) if you also wish to limit rotation angles in some way.
61
49
  * @realm server
62
50
  * @source https://wiki.facepunch.com/gmod/constraint.Ballsocket
63
51
  */
64
52
  Ballsocket(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos: Vector, forceLimit?: number, torqueLimit?: number, nocollide?: number): Entity;
65
- }
66
-
67
- interface ConstraintLib {
68
53
  /**
69
54
  * Basic checks to make sure that the specified entity and bone are valid. Returns false if we should not be constraining the entity.
70
55
  * @realm server
71
56
  * @source https://wiki.facepunch.com/gmod/constraint.CanConstrain
72
57
  */
73
58
  CanConstrain(ent: Entity, bone: number): boolean;
74
- }
75
-
76
- interface ConstraintLib {
77
59
  /**
78
60
  * Creates a rope without any constraint.
79
61
  * @realm server
80
62
  * @source https://wiki.facepunch.com/gmod/constraint.CreateKeyframeRope
81
63
  */
82
64
  CreateKeyframeRope(pos: Vector, width: number, material?: string, constraint?: Entity, ent1?: Entity, localPos1?: Vector, bone1?: number, ent2?: Entity, localPos2?: Vector, bone2?: number, keyValues?: table): Entity;
83
- }
84
-
85
- interface ConstraintLib {
86
65
  /**
87
66
  * Creates an invisible, non-moveable anchor point in the world to which things can be attached.
88
67
  * **NOTE**: The entity used internally by this function (`gmod_anchor`) only exists in Sandbox derived gamemodes, meaning this function will only work in these gamemodes.
@@ -94,45 +73,30 @@ interface ConstraintLib {
94
73
  * @source https://wiki.facepunch.com/gmod/constraint.CreateStaticAnchorPoint
95
74
  */
96
75
  CreateStaticAnchorPoint(pos: Vector): (Entity, PhysObj, number, Vector);
97
- }
98
-
99
- interface ConstraintLib {
100
76
  /**
101
77
  * Creates an elastic rope constraint.
102
78
  * @realm server
103
79
  * @source https://wiki.facepunch.com/gmod/constraint.Elastic
104
80
  */
105
81
  Elastic(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, constant: number, damping: number, relDamping: number, material?: string, width?: number, stretchOnly?: boolean, color?: Color): (Entity, Entity);
106
- }
107
-
108
- interface ConstraintLib {
109
82
  /**
110
83
  * Returns the constraint of a specified type between two entities, if it exists
111
84
  * @realm server
112
85
  * @source https://wiki.facepunch.com/gmod/constraint.Find
113
86
  */
114
87
  Find(ent1: Entity, ent2: Entity, type: string, bone1: number, bone2: number): Entity;
115
- }
116
-
117
- interface ConstraintLib {
118
88
  /**
119
89
  * Returns the first constraint of a specific type directly connected to the entity found.
120
90
  * @realm server
121
91
  * @source https://wiki.facepunch.com/gmod/constraint.FindConstraint
122
92
  */
123
93
  FindConstraint(ent: Entity, type: string): table;
124
- }
125
-
126
- interface ConstraintLib {
127
94
  /**
128
95
  * Returns the other entity involved in the first constraint of a specific type directly connected to the entity.
129
96
  * @realm server
130
97
  * @source https://wiki.facepunch.com/gmod/constraint.FindConstraintEntity
131
98
  */
132
99
  FindConstraintEntity(ent: Entity, type: string): Entity;
133
- }
134
-
135
- interface ConstraintLib {
136
100
  /**
137
101
  * Returns a table of all constraints of a specific type directly connected to the entity.
138
102
  *
@@ -141,27 +105,18 @@ interface ConstraintLib {
141
105
  * @source https://wiki.facepunch.com/gmod/constraint.FindConstraints
142
106
  */
143
107
  FindConstraints(ent: Entity, type: string): table;
144
- }
145
-
146
- interface ConstraintLib {
147
108
  /**
148
109
  * Make this entity forget any constraints it knows about. Note that this will not actually remove the constraints.
149
110
  * @realm server
150
111
  * @source https://wiki.facepunch.com/gmod/constraint.ForgetConstraints
151
112
  */
152
113
  ForgetConstraints(ent: Entity): void;
153
- }
154
-
155
- interface ConstraintLib {
156
114
  /**
157
115
  * Returns a table of all entities recursively constrained to an entity.
158
116
  * @realm server
159
117
  * @source https://wiki.facepunch.com/gmod/constraint.GetAllConstrainedEntities
160
118
  */
161
119
  GetAllConstrainedEntities(ent: Entity, resultTable?: table): table;
162
- }
163
-
164
- interface ConstraintLib {
165
120
  /**
166
121
  * Returns a table of all constraints directly connected to the entity.
167
122
  *
@@ -171,27 +126,18 @@ interface ConstraintLib {
171
126
  * @source https://wiki.facepunch.com/gmod/constraint.GetTable
172
127
  */
173
128
  GetTable(ent: Entity): table;
174
- }
175
-
176
- interface ConstraintLib {
177
129
  /**
178
130
  * Returns true if the entity has constraints attached to it
179
131
  * @realm server
180
132
  * @source https://wiki.facepunch.com/gmod/constraint.HasConstraints
181
133
  */
182
134
  HasConstraints(ent: Entity): boolean;
183
- }
184
-
185
- interface ConstraintLib {
186
135
  /**
187
136
  * Creates a controllable [constraint.Elastic](https://wiki.facepunch.com/gmod/constraint.Elastic), aka a Hydraulic constraint.
188
137
  * @realm server
189
138
  * @source https://wiki.facepunch.com/gmod/constraint.Hydraulic
190
139
  */
191
140
  Hydraulic(player: Player, ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, length1: number, length2: number, width: number, key: number, slider: number, speed: number, material?: string, toggle?: boolean, color?: Color): (Entity, Entity, Entity, Entity);
192
- }
193
-
194
- interface ConstraintLib {
195
141
  /**
196
142
  * Creates a keep upright constraint.
197
143
  *
@@ -199,18 +145,12 @@ interface ConstraintLib {
199
145
  * @source https://wiki.facepunch.com/gmod/constraint.Keepupright
200
146
  */
201
147
  Keepupright(ent: Entity, ang: Angle, bone: number, angularLimit: number): Entity;
202
- }
203
-
204
- interface ConstraintLib {
205
148
  /**
206
149
  * Creates a motor constraint, a player controllable [constraint.Axis](https://wiki.facepunch.com/gmod/constraint.Axis).
207
150
  * @realm server
208
151
  * @source https://wiki.facepunch.com/gmod/constraint.Motor
209
152
  */
210
153
  Motor(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, friction: number, torque: number, forcetime: number, nocollide?: number, toggle?: number, player?: Player, forcelimit?: number, key_fwd?: number, key_bwd?: number, direction?: number, localAxis?: Vector): (Entity, Entity);
211
- }
212
-
213
- interface ConstraintLib {
214
154
  /**
215
155
  * Creates a muscle constraint.
216
156
  *
@@ -219,9 +159,6 @@ interface ConstraintLib {
219
159
  * @source https://wiki.facepunch.com/gmod/constraint.Muscle
220
160
  */
221
161
  Muscle(player: Player, ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, length1: number, length2: number, width: number, key: number, fixed: number, period: number, amplitude: number, startOn?: boolean, material?: string, color?: Color): (Entity, Entity, Entity, Entity);
222
- }
223
-
224
- interface ConstraintLib {
225
162
  /**
226
163
  * Creates an no-collide "constraint". Disables collision between two entities.
227
164
  * **NOTE**: Does not work with players.
@@ -231,9 +168,6 @@ interface ConstraintLib {
231
168
  * @source https://wiki.facepunch.com/gmod/constraint.NoCollide
232
169
  */
233
170
  NoCollide(ent1: Entity, ent2: Entity, bone1: number, bone2: number, disableOnRemove?: boolean): Entity;
234
- }
235
-
236
- interface ConstraintLib {
237
171
  /**
238
172
  * Creates a pulley constraint.
239
173
  *
@@ -253,54 +187,36 @@ interface ConstraintLib {
253
187
  * @source https://wiki.facepunch.com/gmod/constraint.Pulley
254
188
  */
255
189
  Pulley(ent1: Entity, ent4: Entity, bone1: number, bone4: number, localPos1: Vector, localPos4: Vector, worldPos2: Vector, worldPos3: Vector, forceLimit: number, rigid?: boolean, width?: number, material?: string, color?: Color): (Entity, Entity, Entity, Entity);
256
- }
257
-
258
- interface ConstraintLib {
259
190
  /**
260
191
  * Attempts to remove all constraints associated with an entity.
261
192
  * @realm server
262
193
  * @source https://wiki.facepunch.com/gmod/constraint.RemoveAll
263
194
  */
264
195
  RemoveAll(ent: Entity): (boolean, number);
265
- }
266
-
267
- interface ConstraintLib {
268
196
  /**
269
197
  * Attempts to remove all constraints of a specified type associated with an entity
270
198
  * @realm server
271
199
  * @source https://wiki.facepunch.com/gmod/constraint.RemoveConstraints
272
200
  */
273
201
  RemoveConstraints(ent: Entity, type: string): (boolean, number);
274
- }
275
-
276
- interface ConstraintLib {
277
202
  /**
278
203
  * Creates a simple rope (length) based constraint.
279
204
  * @realm server
280
205
  * @source https://wiki.facepunch.com/gmod/constraint.Rope
281
206
  */
282
207
  Rope(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, length: number, addLength?: number, forceLimit?: number, width?: number, material?: string, rigid?: boolean, color?: Color): (Entity, Entity);
283
- }
284
-
285
- interface ConstraintLib {
286
208
  /**
287
209
  * Creates a slider constraint. A slider is like a rope, but allows the constrained object to move only in 1 direction.
288
210
  * @realm server
289
211
  * @source https://wiki.facepunch.com/gmod/constraint.Slider
290
212
  */
291
213
  Slider(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, width: number, material?: string, color?: Color): (Entity, Entity);
292
- }
293
-
294
- interface ConstraintLib {
295
214
  /**
296
215
  * Creates a weld constraint.
297
216
  * @realm server
298
217
  * @source https://wiki.facepunch.com/gmod/constraint.Weld
299
218
  */
300
219
  Weld(ent1: Entity, ent2: Entity, bone1: number, bone2: number, forceLimit?: number, noCollide?: boolean, deleteEnt1OnBreak?: boolean): Entity;
301
- }
302
-
303
- interface ConstraintLib {
304
220
  /**
305
221
  * Creates a winch constraint, a player controllable [constraint.Elastic](https://wiki.facepunch.com/gmod/constraint.Elastic), allowing gradually increasing or decreasing the length.
306
222
  * @realm server
@@ -309,3 +225,31 @@ interface ConstraintLib {
309
225
  Winch(player: Player, ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, width: number, fwdBind: number, bwdBind: number, fwdSpeed: number, bwdSpeed: number, material?: string, toggle?: boolean, color?: Color): (Entity, Entity, Entity);
310
226
  }
311
227
 
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
@@ -13,9 +13,6 @@ interface ConstructLib {
13
13
  * @source https://wiki.facepunch.com/gmod/construct.Magnet
14
14
  */
15
15
  Magnet(ply: Player, pos: Vector, ang: Angle, model: string, material: string, key: number, maxObjects: number, strength: number, nopull?: number, allowrot?: number, startOn?: number, toggle?: number, vel?: Vector, aVel?: Angle, frozen?: boolean): Entity;
16
- }
17
-
18
- interface ConstructLib {
19
16
  /**
20
17
  * Sets props physical properties.
21
18
  * @realm server
@@ -24,3 +21,4 @@ interface ConstructLib {
24
21
  SetPhysProp(ply: Player, ent: Entity, physObjID: number, physObj: PhysObj, data: PhysProperties): void;
25
22
  }
26
23
 
24
+
@@ -10,9 +10,7 @@
10
10
  * @realm client
11
11
  * @source https://wiki.facepunch.com/gmod/ContentHeader
12
12
  */
13
- interface ContentHeader extends DLabelEditable {}
14
-
15
- interface ContentHeader {
13
+ interface ContentHeader extends DLabelEditable {
16
14
  /**
17
15
  * Creates a [Global.DermaMenu](https://wiki.facepunch.com/gmod/Global.DermaMenu) and adds a delete option before opening the menu
18
16
  *
@@ -20,9 +18,6 @@ interface ContentHeader {
20
18
  * @source https://wiki.facepunch.com/gmod/ContentHeader:OpenMenu
21
19
  */
22
20
  OpenMenu(self: ContentHeader, style: string, hookname?: string): void;
23
- }
24
-
25
- interface ContentHeader {
26
21
  /**
27
22
  * @realm client
28
23
  * @source https://wiki.facepunch.com/gmod/ContentHeader:ToTable
@@ -30,3 +25,5 @@ interface ContentHeader {
30
25
  ToTable(self: ContentHeader, bigtable: table): void;
31
26
  }
32
27
 
28
+
29
+