@tlua/gmod 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/package.json +1 -1
  2. package/types/achievementicon.d.tlua +0 -1
  3. package/types/achievements.d.tlua +0 -31
  4. package/types/ai.d.tlua +0 -11
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +0 -37
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +0 -4
  11. package/types/bf_read.d.tlua +0 -23
  12. package/types/bit.d.tlua +0 -23
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +0 -33
  15. package/types/ceffectdata.d.tlua +0 -65
  16. package/types/chat.d.tlua +0 -11
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +0 -15
  19. package/types/cluaemitter.d.tlua +0 -25
  20. package/types/clualocomotion.d.tlua +0 -81
  21. package/types/cluaparticle.d.tlua +0 -89
  22. package/types/cmovedata.d.tlua +0 -95
  23. package/types/cnavarea.d.tlua +0 -155
  24. package/types/cnavladder.d.tlua +0 -45
  25. package/types/cnewparticleeffect.d.tlua +0 -53
  26. package/types/color.d.tlua +0 -57
  27. package/types/concommand.d.tlua +0 -9
  28. package/types/constraint.d.tlua +0 -57
  29. package/types/construct.d.tlua +0 -3
  30. package/types/contentheader.d.tlua +1 -6
  31. package/types/contenticon.d.tlua +1 -18
  32. package/types/contentsidebar.d.tlua +1 -8
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +1 -8
  35. package/types/controlpanel.d.tlua +6 -31
  36. package/types/controlpresets.d.tlua +1 -26
  37. package/types/convar.d.tlua +0 -33
  38. package/types/cookie.d.tlua +0 -7
  39. package/types/coroutine.d.tlua +0 -15
  40. package/types/crecipientfilter.d.tlua +0 -33
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +0 -29
  43. package/types/ctakedamageinfo.d.tlua +0 -67
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +0 -13
  46. package/types/cusercmd.d.tlua +0 -55
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +0 -13
  49. package/types/dadjustablemodelpanel.d.tlua +1 -14
  50. package/types/dalphabar.d.tlua +1 -6
  51. package/types/dbinder.d.tlua +1 -8
  52. package/types/dbubblecontainer.d.tlua +1 -4
  53. package/types/dbutton.d.tlua +1 -16
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +1 -10
  57. package/types/dcheckboxlabel.d.tlua +0 -19
  58. package/types/dcollapsiblecategory.d.tlua +1 -46
  59. package/types/dcolorbutton.d.tlua +1 -14
  60. package/types/dcolorcombo.d.tlua +1 -10
  61. package/types/dcolorcube.d.tlua +1 -26
  62. package/types/dcolormixer.d.tlua +1 -54
  63. package/types/dcolorpalette.d.tlua +1 -46
  64. package/types/dcolumnsheet.d.tlua +1 -10
  65. package/types/dcombobox.d.tlua +1 -34
  66. package/types/ddragbase.d.tlua +1 -26
  67. package/types/ddrawer.d.tlua +1 -16
  68. package/types/debug.d.tlua +25 -60
  69. package/types/debugoverlay.d.tlua +0 -23
  70. package/types/dentityproperties.d.tlua +1 -10
  71. package/types/derma.d.tlua +0 -21
  72. package/types/dexpandbutton.d.tlua +1 -6
  73. package/types/dfilebrowser.d.tlua +0 -41
  74. package/types/dform.d.tlua +1 -36
  75. package/types/dframe.d.tlua +0 -49
  76. package/types/dgrid.d.tlua +1 -22
  77. package/types/dhorizontaldivider.d.tlua +1 -40
  78. package/types/dhorizontalscroller.d.tlua +1 -22
  79. package/types/dhscrollbar.d.tlua +1 -22
  80. package/types/dhtml.d.tlua +1 -16
  81. package/types/dhtmlcontrols.d.tlua +0 -11
  82. package/types/diconbrowser.d.tlua +1 -22
  83. package/types/diconlayout.d.tlua +1 -36
  84. package/types/dimage.d.tlua +1 -39
  85. package/types/dimagebutton.d.tlua +0 -19
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +1 -66
  88. package/types/dlabeleditable.d.tlua +1 -10
  89. package/types/dlabelurl.d.tlua +1 -20
  90. package/types/dlistbox.d.tlua +1 -16
  91. package/types/dlistboxitem.d.tlua +1 -8
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +1 -68
  94. package/types/dlistview_column.d.tlua +1 -28
  95. package/types/dlistview_columnplain.d.tlua +0 -1
  96. package/types/dlistview_draggerbar.d.tlua +0 -1
  97. package/types/dlistview_line.d.tlua +1 -26
  98. package/types/dlistviewheaderlabel.d.tlua +0 -1
  99. package/types/dlistviewlabel.d.tlua +0 -1
  100. package/types/dlistviewline.d.tlua +0 -1
  101. package/types/dmenu.d.tlua +1 -53
  102. package/types/dmenubar.d.tlua +1 -11
  103. package/types/dmenuoption.d.tlua +1 -26
  104. package/types/dmenuoptioncvar.d.tlua +1 -12
  105. package/types/dmodelpanel.d.tlua +1 -44
  106. package/types/dmodelselect.d.tlua +1 -4
  107. package/types/dmodelselectmulti.d.tlua +1 -4
  108. package/types/dnotify.d.tlua +1 -20
  109. package/types/dnumberscratch.d.tlua +1 -52
  110. package/types/dnumberwang.d.tlua +1 -32
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +0 -35
  113. package/types/dpanel.d.tlua +1 -28
  114. package/types/dpanellist.d.tlua +0 -23
  115. package/types/dpaneloverlay.d.tlua +1 -14
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +1 -12
  118. package/types/dprogress.d.tlua +1 -6
  119. package/types/dproperties.d.tlua +1 -8
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -6
  122. package/types/dproperty_entity.d.tlua +0 -1
  123. package/types/dproperty_float.d.tlua +0 -1
  124. package/types/dproperty_generic.d.tlua +1 -10
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +9 -41
  128. package/types/dragndrop.d.tlua +0 -21
  129. package/types/draw.d.tlua +0 -22
  130. package/types/drgbpicker.d.tlua +1 -8
  131. package/types/drive.d.tlua +6 -31
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +0 -21
  134. package/types/dshape.d.tlua +1 -14
  135. package/types/dsizetocontents.d.tlua +1 -10
  136. package/types/dslider.d.tlua +1 -56
  137. package/types/dsprite.d.tlua +1 -18
  138. package/types/dtab.d.tlua +1 -16
  139. package/types/dtextentry.d.tlua +1 -86
  140. package/types/dtilelayout.d.tlua +1 -42
  141. package/types/dtooltip.d.tlua +1 -12
  142. package/types/dtree.d.tlua +1 -32
  143. package/types/dtree_node.d.tlua +1 -136
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +0 -60
  146. package/types/dverticaldivider.d.tlua +1 -46
  147. package/types/dvscrollbar.d.tlua +1 -22
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +1 -8
  150. package/types/effects.d.tlua +0 -13
  151. package/types/engine.d.tlua +0 -43
  152. package/types/entity.d.tlua +2 -1319
  153. package/types/ents.d.tlua +0 -44
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +0 -79
  156. package/types/file_class.d.tlua +0 -1
  157. package/types/fingerposer.d.tlua +0 -1
  158. package/types/fingervar.d.tlua +0 -1
  159. package/types/frame.d.tlua +0 -1
  160. package/types/frame_blend.d.tlua +0 -15
  161. package/types/game.d.tlua +0 -79
  162. package/types/gameevent.d.tlua +4 -9
  163. package/types/gamemode.d.tlua +0 -6
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +0 -535
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +0 -9
  168. package/types/gui.d.tlua +0 -43
  169. package/types/gwen.d.tlua +0 -7
  170. package/types/halo.d.tlua +0 -5
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +0 -9
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +0 -3
  175. package/types/iconeditor.d.tlua +1 -22
  176. package/types/igmodaudiochannel.d.tlua +0 -83
  177. package/types/imagecheckbox.d.tlua +1 -8
  178. package/types/imaterial.d.tlua +0 -53
  179. package/types/imesh.d.tlua +0 -11
  180. package/types/input.d.tlua +0 -47
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +0 -19
  183. package/types/isave.d.tlua +0 -19
  184. package/types/itexture.d.tlua +0 -21
  185. package/types/ivideowriter.d.tlua +0 -11
  186. package/types/jit.d.tlua +9 -42
  187. package/types/killicon.d.tlua +0 -15
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +0 -3
  190. package/types/list.d.tlua +0 -17
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +0 -5
  193. package/types/markupobject.d.tlua +0 -11
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +200 -371
  196. package/types/matproxy.d.tlua +0 -7
  197. package/types/matselect.d.tlua +1 -22
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +0 -5
  200. package/types/mesh.d.tlua +0 -39
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +0 -21
  203. package/types/navmesh.d.tlua +0 -53
  204. package/types/net.d.tlua +0 -104
  205. package/types/nextbot.d.tlua +10 -83
  206. package/types/notification.d.tlua +0 -5
  207. package/types/npc.d.tlua +1 -364
  208. package/types/numpad.d.tlua +0 -15
  209. package/types/os.d.tlua +0 -8
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +2 -662
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +0 -63
  214. package/types/permissions.d.tlua +0 -13
  215. package/types/physcollide.d.tlua +0 -7
  216. package/types/physenv.d.tlua +0 -23
  217. package/types/physobj.d.tlua +0 -157
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +11 -594
  220. package/types/player_manager.d.tlua +0 -27
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +0 -13
  223. package/types/projectedtexture.d.tlua +0 -97
  224. package/types/properties.d.tlua +0 -11
  225. package/types/propselect.d.tlua +1 -10
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +0 -285
  228. package/types/resource.d.tlua +0 -5
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +1 -108
  231. package/types/saverestore.d.tlua +0 -25
  232. package/types/schedule.d.tlua +0 -13
  233. package/types/scripted_ents.d.tlua +0 -21
  234. package/types/search.d.tlua +0 -3
  235. package/types/serverlist.d.tlua +0 -15
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +0 -21
  239. package/types/spawnicon.d.tlua +1 -16
  240. package/types/spawnmenu.d.tlua +0 -48
  241. package/types/spawnmenucontentpanel.d.tlua +1 -10
  242. package/types/sql.d.tlua +0 -19
  243. package/types/stack.d.tlua +0 -11
  244. package/types/steamworks.d.tlua +0 -37
  245. package/types/string.d.tlua +0 -96
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +0 -69
  248. package/types/surfaceinfo.d.tlua +0 -11
  249. package/types/system.d.tlua +0 -21
  250. package/types/table.d.tlua +0 -93
  251. package/types/task.d.tlua +0 -19
  252. package/types/team.d.tlua +0 -39
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +0 -29
  256. package/types/tool.d.tlua +1 -90
  257. package/types/ugcpublishwindow.d.tlua +1 -18
  258. package/types/umsg.d.tlua +0 -25
  259. package/types/undo.d.tlua +0 -21
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +0 -5
  262. package/types/utf8.d.tlua +0 -15
  263. package/types/util.d.tlua +0 -185
  264. package/types/vector.d.tlua +0 -73
  265. package/types/vehicle.d.tlua +2 -102
  266. package/types/vgui.d.tlua +0 -33
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +0 -71
  269. package/types/weapon.d.tlua +2 -168
  270. package/types/weapons.d.tlua +0 -12
  271. package/types/widgets.d.tlua +0 -3
  272. package/types/workshopfilebase.d.tlua +0 -11
@@ -9,9 +9,7 @@ interface Color {
9
9
  b: number;
10
10
  /** The alpha component of the color. */
11
11
  a: number;
12
- }
13
12
 
14
- interface Color {
15
13
  /**
16
14
  * 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
15
  *
@@ -21,9 +19,7 @@ interface Color {
21
19
  * @source https://wiki.facepunch.com/gmod/COLOR:AddBlackness
22
20
  */
23
21
  AddBlackness(self: Color, blackness: number): void;
24
- }
25
22
 
26
- interface Color {
27
23
  /**
28
24
  * 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
25
  *
@@ -35,9 +31,7 @@ interface Color {
35
31
  * @source https://wiki.facepunch.com/gmod/COLOR:AddBrightness
36
32
  */
37
33
  AddBrightness(self: Color, saturation: number): void;
38
- }
39
34
 
40
- interface Color {
41
35
  /**
42
36
  * 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
37
  *
@@ -49,9 +43,7 @@ interface Color {
49
43
  * @source https://wiki.facepunch.com/gmod/COLOR:AddHue
50
44
  */
51
45
  AddHue(self: Color, hue: number): void;
52
- }
53
46
 
54
- interface Color {
55
47
  /**
56
48
  * 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
49
  *
@@ -63,9 +55,7 @@ interface Color {
63
55
  * @source https://wiki.facepunch.com/gmod/COLOR:AddLightness
64
56
  */
65
57
  AddLightness(self: Color, lightness: number): void;
66
- }
67
58
 
68
- interface Color {
69
59
  /**
70
60
  * 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
61
  *
@@ -77,9 +67,7 @@ interface Color {
77
67
  * @source https://wiki.facepunch.com/gmod/COLOR:AddSaturation
78
68
  */
79
69
  AddSaturation(self: Color, saturation: number): void;
80
- }
81
70
 
82
- interface Color {
83
71
  /**
84
72
  * 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
73
  *
@@ -89,9 +77,7 @@ interface Color {
89
77
  * @source https://wiki.facepunch.com/gmod/COLOR:AddWhiteness
90
78
  */
91
79
  AddWhiteness(self: Color, whiteness: number): void;
92
- }
93
80
 
94
- interface Color {
95
81
  /**
96
82
  * 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
83
  *
@@ -101,9 +87,7 @@ interface Color {
101
87
  * @source https://wiki.facepunch.com/gmod/COLOR:GetBlackness
102
88
  */
103
89
  GetBlackness(self: Color): number;
104
- }
105
90
 
106
- interface Color {
107
91
  /**
108
92
  * 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
93
  *
@@ -113,9 +97,7 @@ interface Color {
113
97
  * @source https://wiki.facepunch.com/gmod/COLOR:GetBrightness
114
98
  */
115
99
  GetBrightness(self: Color): number;
116
- }
117
100
 
118
- interface Color {
119
101
  /**
120
102
  * 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
103
  *
@@ -125,9 +107,7 @@ interface Color {
125
107
  * @source https://wiki.facepunch.com/gmod/COLOR:GetHue
126
108
  */
127
109
  GetHue(self: Color): number;
128
- }
129
110
 
130
- interface Color {
131
111
  /**
132
112
  * 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
113
  *
@@ -137,9 +117,7 @@ interface Color {
137
117
  * @source https://wiki.facepunch.com/gmod/COLOR:GetLightness
138
118
  */
139
119
  GetLightness(self: Color): number;
140
- }
141
120
 
142
- interface Color {
143
121
  /**
144
122
  * 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
123
  *
@@ -149,9 +127,7 @@ interface Color {
149
127
  * @source https://wiki.facepunch.com/gmod/COLOR:GetSaturation
150
128
  */
151
129
  GetSaturation(self: Color): number;
152
- }
153
130
 
154
- interface Color {
155
131
  /**
156
132
  * 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
133
  *
@@ -161,9 +137,7 @@ interface Color {
161
137
  * @source https://wiki.facepunch.com/gmod/COLOR:GetWhiteness
162
138
  */
163
139
  GetWhiteness(self: Color): number;
164
- }
165
140
 
166
- interface Color {
167
141
  /**
168
142
  * 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
143
  *
@@ -171,9 +145,7 @@ interface Color {
171
145
  * @source https://wiki.facepunch.com/gmod/COLOR:SetBlackness
172
146
  */
173
147
  SetBlackness(self: Color, blackness: number): void;
174
- }
175
148
 
176
- interface Color {
177
149
  /**
178
150
  * 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
151
  *
@@ -183,9 +155,7 @@ interface Color {
183
155
  * @source https://wiki.facepunch.com/gmod/COLOR:SetBrightness
184
156
  */
185
157
  SetBrightness(self: Color, saturation: number): void;
186
- }
187
158
 
188
- interface Color {
189
159
  /**
190
160
  * 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
161
  *
@@ -195,9 +165,7 @@ interface Color {
195
165
  * @source https://wiki.facepunch.com/gmod/COLOR:SetHue
196
166
  */
197
167
  SetHue(self: Color, hue: number): void;
198
- }
199
168
 
200
- interface Color {
201
169
  /**
202
170
  * 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
171
  *
@@ -207,9 +175,7 @@ interface Color {
207
175
  * @source https://wiki.facepunch.com/gmod/COLOR:SetLightness
208
176
  */
209
177
  SetLightness(self: Color, lightness: number): void;
210
- }
211
178
 
212
- interface Color {
213
179
  /**
214
180
  * 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
181
  *
@@ -219,9 +185,7 @@ interface Color {
219
185
  * @source https://wiki.facepunch.com/gmod/COLOR:SetSaturation
220
186
  */
221
187
  SetSaturation(self: Color, saturation: number): void;
222
- }
223
188
 
224
- interface Color {
225
189
  /**
226
190
  * 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
191
  *
@@ -229,27 +193,21 @@ interface Color {
229
193
  * @source https://wiki.facepunch.com/gmod/COLOR:SetWhiteness
230
194
  */
231
195
  SetWhiteness(self: Color, whiteness: number): void;
232
- }
233
196
 
234
- interface Color {
235
197
  /**
236
198
  * 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
199
  * @realm shared and menu
238
200
  * @source https://wiki.facepunch.com/gmod/COLOR:ToHWB
239
201
  */
240
202
  ToHWB(self: Color): (number, number, number);
241
- }
242
203
 
243
- interface Color {
244
204
  /**
245
205
  * Returns a copy of this color, usually so it can be safely modified later without affecting the original color.
246
206
  * @realm shared and menu
247
207
  * @source https://wiki.facepunch.com/gmod/Color:Copy
248
208
  */
249
209
  Copy(self: Color): Color;
250
- }
251
210
 
252
- interface Color {
253
211
  /**
254
212
  * Performs linear interpolation between this and given colors.
255
213
  *
@@ -257,18 +215,14 @@ interface Color {
257
215
  * @source https://wiki.facepunch.com/gmod/Color:Lerp
258
216
  */
259
217
  Lerp(self: Color, target: Color, fraction: number): Color;
260
- }
261
218
 
262
- interface Color {
263
219
  /**
264
220
  * Sets the red, green, blue, and alpha of the color.
265
221
  * @realm shared
266
222
  * @source https://wiki.facepunch.com/gmod/Color:SetUnpacked
267
223
  */
268
224
  SetUnpacked(self: Color, r: number, g: number, b: number, a: number): void;
269
- }
270
225
 
271
- interface Color {
272
226
  /**
273
227
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSL color space](https://en.wikipedia.org/wiki/HSL_and_HSV) .
274
228
  *
@@ -277,9 +231,7 @@ interface Color {
277
231
  * @source https://wiki.facepunch.com/gmod/Color:ToHSL
278
232
  */
279
233
  ToHSL(self: Color): (number, number, number);
280
- }
281
234
 
282
- interface Color {
283
235
  /**
284
236
  * Encodes a RGB [Color](https://wiki.facepunch.com/gmod/Color) into the [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV).
285
237
  *
@@ -290,9 +242,7 @@ interface Color {
290
242
  * @source https://wiki.facepunch.com/gmod/Color:ToHSV
291
243
  */
292
244
  ToHSV(self: Color): (number, number, number);
293
- }
294
245
 
295
- interface Color {
296
246
  /**
297
247
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) to its hexadecimal representation.
298
248
  *
@@ -300,18 +250,14 @@ interface Color {
300
250
  * @source https://wiki.facepunch.com/gmod/Color:ToHex
301
251
  */
302
252
  ToHex(self: Color, arg0?: boolean): string;
303
- }
304
253
 
305
- interface Color {
306
254
  /**
307
255
  * Returns the color as a table (an array or a list) with four elements.
308
256
  * @realm shared
309
257
  * @source https://wiki.facepunch.com/gmod/Color:ToTable
310
258
  */
311
259
  ToTable(self: Color): number[];
312
- }
313
260
 
314
- interface Color {
315
261
  /**
316
262
  * Translates the [Color](https://wiki.facepunch.com/gmod/Color) into a [Vector](https://wiki.facepunch.com/gmod/Vector), losing the alpha channel.
317
263
  * This will also range the values from 0 - 255 to 0 - 1
@@ -326,9 +272,7 @@ interface Color {
326
272
  * @source https://wiki.facepunch.com/gmod/Color:ToVector
327
273
  */
328
274
  ToVector(self: Color): Vector;
329
- }
330
275
 
331
- interface Color {
332
276
  /**
333
277
  * Returns the red, green, blue, and alpha of the color.
334
278
  * @realm shared
@@ -336,4 +280,3 @@ interface Color {
336
280
  */
337
281
  Unpack(self: Color): (number, number, number, number);
338
282
  }
339
-
@@ -18,9 +18,7 @@ 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
21
 
23
- interface ConcommandLib {
24
22
  /**
25
23
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
26
24
  * Used by the engine to call the autocomplete function for a console command, and retrieve returned options.
@@ -28,9 +26,7 @@ interface ConcommandLib {
28
26
  * @source https://wiki.facepunch.com/gmod/concommand.AutoComplete
29
27
  */
30
28
  AutoComplete(command: string, arguments: string): table;
31
- }
32
29
 
33
- interface ConcommandLib {
34
30
  /**
35
31
  * 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
32
  *
@@ -38,9 +34,7 @@ interface ConcommandLib {
38
34
  * @source https://wiki.facepunch.com/gmod/concommand.GetTable
39
35
  */
40
36
  GetTable(): (Table<string, function>, Table<string, function>);
41
- }
42
37
 
43
- interface ConcommandLib {
44
38
  /**
45
39
  * Removes a console command.
46
40
  *
@@ -50,9 +44,7 @@ interface ConcommandLib {
50
44
  * @source https://wiki.facepunch.com/gmod/concommand.Remove
51
45
  */
52
46
  Remove(name: string): void;
53
- }
54
47
 
55
- interface ConcommandLib {
56
48
  /**
57
49
  * **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
50
  *
@@ -66,4 +58,3 @@ interface ConcommandLib {
66
58
  */
67
59
  Run(ply: Player, cmd: string, args: any, argumentString: string): boolean;
68
60
  }
69
-
@@ -19,9 +19,7 @@ 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
22
 
24
- interface ConstraintLib {
25
23
  /**
26
24
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
27
25
  *
@@ -33,9 +31,7 @@ interface ConstraintLib {
33
31
  * @source https://wiki.facepunch.com/gmod/constraint.AddConstraintTableNoDelete
34
32
  */
35
33
  AddConstraintTableNoDelete(ent1: Entity, constrt: Entity, ent2?: Entity, ent3?: Entity, ent4?: Entity): void;
36
- }
37
34
 
38
- interface ConstraintLib {
39
35
  /**
40
36
  * Creates an advanced ballsocket (ragdoll) constraint. See [constraint.Ballsocket](https://wiki.facepunch.com/gmod/constraint.Ballsocket) for the simpler version.
41
37
  *
@@ -44,45 +40,35 @@ interface ConstraintLib {
44
40
  * @source https://wiki.facepunch.com/gmod/constraint.AdvBallsocket
45
41
  */
46
42
  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
43
 
49
- interface ConstraintLib {
50
44
  /**
51
45
  * Creates an axis constraint.
52
46
  * @realm server
53
47
  * @source https://wiki.facepunch.com/gmod/constraint.Axis
54
48
  */
55
49
  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
50
 
58
- interface ConstraintLib {
59
51
  /**
60
52
  * 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
53
  * @realm server
62
54
  * @source https://wiki.facepunch.com/gmod/constraint.Ballsocket
63
55
  */
64
56
  Ballsocket(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos: Vector, forceLimit?: number, torqueLimit?: number, nocollide?: number): Entity;
65
- }
66
57
 
67
- interface ConstraintLib {
68
58
  /**
69
59
  * Basic checks to make sure that the specified entity and bone are valid. Returns false if we should not be constraining the entity.
70
60
  * @realm server
71
61
  * @source https://wiki.facepunch.com/gmod/constraint.CanConstrain
72
62
  */
73
63
  CanConstrain(ent: Entity, bone: number): boolean;
74
- }
75
64
 
76
- interface ConstraintLib {
77
65
  /**
78
66
  * Creates a rope without any constraint.
79
67
  * @realm server
80
68
  * @source https://wiki.facepunch.com/gmod/constraint.CreateKeyframeRope
81
69
  */
82
70
  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
71
 
85
- interface ConstraintLib {
86
72
  /**
87
73
  * Creates an invisible, non-moveable anchor point in the world to which things can be attached.
88
74
  * **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 +80,35 @@ interface ConstraintLib {
94
80
  * @source https://wiki.facepunch.com/gmod/constraint.CreateStaticAnchorPoint
95
81
  */
96
82
  CreateStaticAnchorPoint(pos: Vector): (Entity, PhysObj, number, Vector);
97
- }
98
83
 
99
- interface ConstraintLib {
100
84
  /**
101
85
  * Creates an elastic rope constraint.
102
86
  * @realm server
103
87
  * @source https://wiki.facepunch.com/gmod/constraint.Elastic
104
88
  */
105
89
  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
90
 
108
- interface ConstraintLib {
109
91
  /**
110
92
  * Returns the constraint of a specified type between two entities, if it exists
111
93
  * @realm server
112
94
  * @source https://wiki.facepunch.com/gmod/constraint.Find
113
95
  */
114
96
  Find(ent1: Entity, ent2: Entity, type: string, bone1: number, bone2: number): Entity;
115
- }
116
97
 
117
- interface ConstraintLib {
118
98
  /**
119
99
  * Returns the first constraint of a specific type directly connected to the entity found.
120
100
  * @realm server
121
101
  * @source https://wiki.facepunch.com/gmod/constraint.FindConstraint
122
102
  */
123
103
  FindConstraint(ent: Entity, type: string): table;
124
- }
125
104
 
126
- interface ConstraintLib {
127
105
  /**
128
106
  * Returns the other entity involved in the first constraint of a specific type directly connected to the entity.
129
107
  * @realm server
130
108
  * @source https://wiki.facepunch.com/gmod/constraint.FindConstraintEntity
131
109
  */
132
110
  FindConstraintEntity(ent: Entity, type: string): Entity;
133
- }
134
111
 
135
- interface ConstraintLib {
136
112
  /**
137
113
  * Returns a table of all constraints of a specific type directly connected to the entity.
138
114
  *
@@ -141,27 +117,21 @@ interface ConstraintLib {
141
117
  * @source https://wiki.facepunch.com/gmod/constraint.FindConstraints
142
118
  */
143
119
  FindConstraints(ent: Entity, type: string): table;
144
- }
145
120
 
146
- interface ConstraintLib {
147
121
  /**
148
122
  * Make this entity forget any constraints it knows about. Note that this will not actually remove the constraints.
149
123
  * @realm server
150
124
  * @source https://wiki.facepunch.com/gmod/constraint.ForgetConstraints
151
125
  */
152
126
  ForgetConstraints(ent: Entity): void;
153
- }
154
127
 
155
- interface ConstraintLib {
156
128
  /**
157
129
  * Returns a table of all entities recursively constrained to an entity.
158
130
  * @realm server
159
131
  * @source https://wiki.facepunch.com/gmod/constraint.GetAllConstrainedEntities
160
132
  */
161
133
  GetAllConstrainedEntities(ent: Entity, resultTable?: table): table;
162
- }
163
134
 
164
- interface ConstraintLib {
165
135
  /**
166
136
  * Returns a table of all constraints directly connected to the entity.
167
137
  *
@@ -171,27 +141,21 @@ interface ConstraintLib {
171
141
  * @source https://wiki.facepunch.com/gmod/constraint.GetTable
172
142
  */
173
143
  GetTable(ent: Entity): table;
174
- }
175
144
 
176
- interface ConstraintLib {
177
145
  /**
178
146
  * Returns true if the entity has constraints attached to it
179
147
  * @realm server
180
148
  * @source https://wiki.facepunch.com/gmod/constraint.HasConstraints
181
149
  */
182
150
  HasConstraints(ent: Entity): boolean;
183
- }
184
151
 
185
- interface ConstraintLib {
186
152
  /**
187
153
  * Creates a controllable [constraint.Elastic](https://wiki.facepunch.com/gmod/constraint.Elastic), aka a Hydraulic constraint.
188
154
  * @realm server
189
155
  * @source https://wiki.facepunch.com/gmod/constraint.Hydraulic
190
156
  */
191
157
  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
158
 
194
- interface ConstraintLib {
195
159
  /**
196
160
  * Creates a keep upright constraint.
197
161
  *
@@ -199,18 +163,14 @@ interface ConstraintLib {
199
163
  * @source https://wiki.facepunch.com/gmod/constraint.Keepupright
200
164
  */
201
165
  Keepupright(ent: Entity, ang: Angle, bone: number, angularLimit: number): Entity;
202
- }
203
166
 
204
- interface ConstraintLib {
205
167
  /**
206
168
  * Creates a motor constraint, a player controllable [constraint.Axis](https://wiki.facepunch.com/gmod/constraint.Axis).
207
169
  * @realm server
208
170
  * @source https://wiki.facepunch.com/gmod/constraint.Motor
209
171
  */
210
172
  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
173
 
213
- interface ConstraintLib {
214
174
  /**
215
175
  * Creates a muscle constraint.
216
176
  *
@@ -219,9 +179,7 @@ interface ConstraintLib {
219
179
  * @source https://wiki.facepunch.com/gmod/constraint.Muscle
220
180
  */
221
181
  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
182
 
224
- interface ConstraintLib {
225
183
  /**
226
184
  * Creates an no-collide "constraint". Disables collision between two entities.
227
185
  * **NOTE**: Does not work with players.
@@ -231,9 +189,7 @@ interface ConstraintLib {
231
189
  * @source https://wiki.facepunch.com/gmod/constraint.NoCollide
232
190
  */
233
191
  NoCollide(ent1: Entity, ent2: Entity, bone1: number, bone2: number, disableOnRemove?: boolean): Entity;
234
- }
235
192
 
236
- interface ConstraintLib {
237
193
  /**
238
194
  * Creates a pulley constraint.
239
195
  *
@@ -253,54 +209,42 @@ interface ConstraintLib {
253
209
  * @source https://wiki.facepunch.com/gmod/constraint.Pulley
254
210
  */
255
211
  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
212
 
258
- interface ConstraintLib {
259
213
  /**
260
214
  * Attempts to remove all constraints associated with an entity.
261
215
  * @realm server
262
216
  * @source https://wiki.facepunch.com/gmod/constraint.RemoveAll
263
217
  */
264
218
  RemoveAll(ent: Entity): (boolean, number);
265
- }
266
219
 
267
- interface ConstraintLib {
268
220
  /**
269
221
  * Attempts to remove all constraints of a specified type associated with an entity
270
222
  * @realm server
271
223
  * @source https://wiki.facepunch.com/gmod/constraint.RemoveConstraints
272
224
  */
273
225
  RemoveConstraints(ent: Entity, type: string): (boolean, number);
274
- }
275
226
 
276
- interface ConstraintLib {
277
227
  /**
278
228
  * Creates a simple rope (length) based constraint.
279
229
  * @realm server
280
230
  * @source https://wiki.facepunch.com/gmod/constraint.Rope
281
231
  */
282
232
  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
233
 
285
- interface ConstraintLib {
286
234
  /**
287
235
  * Creates a slider constraint. A slider is like a rope, but allows the constrained object to move only in 1 direction.
288
236
  * @realm server
289
237
  * @source https://wiki.facepunch.com/gmod/constraint.Slider
290
238
  */
291
239
  Slider(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, width: number, material?: string, color?: Color): (Entity, Entity);
292
- }
293
240
 
294
- interface ConstraintLib {
295
241
  /**
296
242
  * Creates a weld constraint.
297
243
  * @realm server
298
244
  * @source https://wiki.facepunch.com/gmod/constraint.Weld
299
245
  */
300
246
  Weld(ent1: Entity, ent2: Entity, bone1: number, bone2: number, forceLimit?: number, noCollide?: boolean, deleteEnt1OnBreak?: boolean): Entity;
301
- }
302
247
 
303
- interface ConstraintLib {
304
248
  /**
305
249
  * Creates a winch constraint, a player controllable [constraint.Elastic](https://wiki.facepunch.com/gmod/constraint.Elastic), allowing gradually increasing or decreasing the length.
306
250
  * @realm server
@@ -308,4 +252,3 @@ interface ConstraintLib {
308
252
  */
309
253
  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
254
  }
311
-
@@ -13,9 +13,7 @@ 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
16
 
18
- interface ConstructLib {
19
17
  /**
20
18
  * Sets props physical properties.
21
19
  * @realm server
@@ -23,4 +21,3 @@ interface ConstructLib {
23
21
  */
24
22
  SetPhysProp(ply: Player, ent: Entity, physObjID: number, physObj: PhysObj, data: PhysProperties): void;
25
23
  }
26
-
@@ -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,13 +18,10 @@ 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
21
 
25
- interface ContentHeader {
26
22
  /**
27
23
  * @realm client
28
24
  * @source https://wiki.facepunch.com/gmod/ContentHeader:ToTable
29
25
  */
30
26
  ToTable(self: ContentHeader, bigtable: table): void;
31
27
  }
32
-