@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
@@ -19,36 +19,28 @@ interface Vector {
19
19
  __mul(l: number, r: Vector): Vector;
20
20
  __div(l: Vector, r: Vector | number): Vector;
21
21
  __unm(v: Vector): Vector;
22
- }
23
22
 
24
- interface Vector {
25
23
  /**
26
24
  * Adds the values of the argument vector to the original vector. This function is the same as vector1 + vector2 without creating a new vector object, skipping object construction and garbage collection.
27
25
  * @realm shared and menu
28
26
  * @source https://wiki.facepunch.com/gmod/Vector:Add
29
27
  */
30
28
  Add(self: Vector, vector: Vector): void;
31
- }
32
29
 
33
- interface Vector {
34
30
  /**
35
31
  * Returns an angle representing the normal of the vector.
36
32
  * @realm shared and menu
37
33
  * @source https://wiki.facepunch.com/gmod/Vector:Angle
38
34
  */
39
35
  Angle(self: Vector): Angle;
40
- }
41
36
 
42
- interface Vector {
43
37
  /**
44
38
  * Returns the angle of this vector (normalized), but instead of assuming that up is [Global.Vector](https://wiki.facepunch.com/gmod/Global.Vector)( 0, 0, 1 ) (Like [Vector:Angle](https://wiki.facepunch.com/gmod/Vector:Angle) does) you can specify which direction is 'up' for the angle.
45
39
  * @realm shared and menu
46
40
  * @source https://wiki.facepunch.com/gmod/Vector:AngleEx
47
41
  */
48
42
  AngleEx(self: Vector, up: Vector): Angle;
49
- }
50
43
 
51
- interface Vector {
52
44
  /**
53
45
  * Calculates the cross product of this vector and the passed one.
54
46
  *
@@ -60,9 +52,7 @@ interface Vector {
60
52
  * @source https://wiki.facepunch.com/gmod/Vector:Cross
61
53
  */
62
54
  Cross(self: Vector, otherVector: Vector): Vector;
63
- }
64
55
 
65
- interface Vector {
66
56
  /**
67
57
  * Returns the squared distance of 2 vectors, this is quicker to call than [Vector:Distance](https://wiki.facepunch.com/gmod/Vector:Distance) as DistToSqr does not need to calculate the square root, which is an expensive process.
68
58
  *
@@ -75,9 +65,7 @@ interface Vector {
75
65
  * @source https://wiki.facepunch.com/gmod/Vector:DistToSqr
76
66
  */
77
67
  DistToSqr(self: Vector, otherVec: Vector): number;
78
- }
79
68
 
80
- interface Vector {
81
69
  /**
82
70
  * Returns the Euclidean distance between the vector and the other vector.
83
71
  *
@@ -88,9 +76,7 @@ interface Vector {
88
76
  * @source https://wiki.facepunch.com/gmod/Vector:Distance
89
77
  */
90
78
  Distance(self: Vector, otherVector: Vector): number;
91
- }
92
79
 
93
- interface Vector {
94
80
  /**
95
81
  * Returns the Euclidean distance between the vector and the other vector in 2D space. The Z axis is ignored.
96
82
  *
@@ -101,9 +87,7 @@ interface Vector {
101
87
  * @source https://wiki.facepunch.com/gmod/Vector:Distance2D
102
88
  */
103
89
  Distance2D(self: Vector, otherVector: Vector): number;
104
- }
105
90
 
106
- interface Vector {
107
91
  /**
108
92
  * Returns the squared distance between 2 vectors in 2D space, ignoring the Z axis. This is faster than [Vector:Distance2D](https://wiki.facepunch.com/gmod/Vector:Distance2D) as calculating the square root is an expensive process.
109
93
  *
@@ -116,18 +100,14 @@ interface Vector {
116
100
  * @source https://wiki.facepunch.com/gmod/Vector:Distance2DSqr
117
101
  */
118
102
  Distance2DSqr(self: Vector, otherVec: Vector): number;
119
- }
120
103
 
121
- interface Vector {
122
104
  /**
123
105
  * Divide the vector by the given number, that means x, y and z are divided by that value. This will change the value of the original vector, see example 2 for division without changing the value.
124
106
  * @realm shared and menu
125
107
  * @source https://wiki.facepunch.com/gmod/Vector:Div
126
108
  */
127
109
  Div(self: Vector, divisor: number): void;
128
- }
129
110
 
130
- interface Vector {
131
111
  /**
132
112
  * Returns the [dot product](https://en.wikipedia.org/wiki/Dot_product#Geometric_definition) of this vector and the passed one.
133
113
  *
@@ -142,9 +122,7 @@ interface Vector {
142
122
  * @source https://wiki.facepunch.com/gmod/Vector:Dot
143
123
  */
144
124
  Dot(self: Vector, otherVector: Vector): number;
145
- }
146
125
 
147
- interface Vector {
148
126
  /**
149
127
  * Returns the dot product of the two vectors.
150
128
  * @realm shared and menu
@@ -152,9 +130,7 @@ interface Vector {
152
130
  * @deprecated This is an alias of Vector:Dot. Use that instead.
153
131
  */
154
132
  DotProduct(self: Vector, Vector: Vector): number;
155
- }
156
133
 
157
- interface Vector {
158
134
  /**
159
135
  * Returns the negative version of this vector, i.e. a vector with every component to the negative value of itself.
160
136
  *
@@ -164,9 +140,7 @@ interface Vector {
164
140
  * @source https://wiki.facepunch.com/gmod/Vector:GetNegated
165
141
  */
166
142
  GetNegated(self: Vector): Vector;
167
- }
168
143
 
169
- interface Vector {
170
144
  /**
171
145
  * Returns a normalized version of the vector. This is a alias of [Vector:GetNormalized](https://wiki.facepunch.com/gmod/Vector:GetNormalized).
172
146
  *
@@ -175,9 +149,7 @@ interface Vector {
175
149
  * @deprecated Use Vector:GetNormalized instead.
176
150
  */
177
151
  GetNormal(self: Vector): Vector;
178
- }
179
152
 
180
- interface Vector {
181
153
  /**
182
154
  * Returns a normalized version of the vector. Normalized means vector with same direction but with length of 1.
183
155
  *
@@ -187,27 +159,21 @@ interface Vector {
187
159
  * @source https://wiki.facepunch.com/gmod/Vector:GetNormalized
188
160
  */
189
161
  GetNormalized(self: Vector): Vector;
190
- }
191
162
 
192
- interface Vector {
193
163
  /**
194
164
  * Returns if the vector is equal to another vector with the given tolerance.
195
165
  * @realm shared and menu
196
166
  * @source https://wiki.facepunch.com/gmod/Vector:IsEqualTol
197
167
  */
198
168
  IsEqualTol(self: Vector, compare: Vector, tolerance: number): boolean;
199
- }
200
169
 
201
- interface Vector {
202
170
  /**
203
171
  * Checks whenever all fields of the vector are 0.
204
172
  * @realm shared and menu
205
173
  * @source https://wiki.facepunch.com/gmod/Vector:IsZero
206
174
  */
207
175
  IsZero(self: Vector): boolean;
208
- }
209
176
 
210
- interface Vector {
211
177
  /**
212
178
  * Returns the [Euclidean length](https://en.wikipedia.org/wiki/Euclidean_vector#Length) of the vector: √(x² + y² + z²).
213
179
  *
@@ -218,9 +184,7 @@ interface Vector {
218
184
  * @source https://wiki.facepunch.com/gmod/Vector:Length
219
185
  */
220
186
  Length(self: Vector): number;
221
- }
222
187
 
223
- interface Vector {
224
188
  /**
225
189
  * Returns the length of the vector in two dimensions, without the Z axis.
226
190
  *
@@ -231,9 +195,7 @@ interface Vector {
231
195
  * @source https://wiki.facepunch.com/gmod/Vector:Length2D
232
196
  */
233
197
  Length2D(self: Vector): number;
234
- }
235
198
 
236
- interface Vector {
237
199
  /**
238
200
  * Returns the squared length of the vectors x and y value, x² + y².
239
201
  *
@@ -243,9 +205,7 @@ interface Vector {
243
205
  * @source https://wiki.facepunch.com/gmod/Vector:Length2DSqr
244
206
  */
245
207
  Length2DSqr(self: Vector): number;
246
- }
247
208
 
248
- interface Vector {
249
209
  /**
250
210
  * Returns the squared length of the vector, x² + y² + z².
251
211
  *
@@ -255,53 +215,39 @@ interface Vector {
255
215
  * @source https://wiki.facepunch.com/gmod/Vector:LengthSqr
256
216
  */
257
217
  LengthSqr(self: Vector): number;
258
- }
259
218
 
260
- interface Vector {
261
219
  /**
262
220
  * Scales the vector by the given [number](https://wiki.facepunch.com/gmod/number) (that means x, y and z are multiplied by that value), a [Vector](https://wiki.facepunch.com/gmod/Vector) (X, Y, and Z of each vector are multiplied) or a [VMatrix](https://wiki.facepunch.com/gmod/VMatrix) (Transforms the vector by the matrix's rotation/translation).
263
221
  * @realm shared and menu
264
222
  * @source https://wiki.facepunch.com/gmod/Vector:Mul
265
223
  */
266
224
  Mul(self: Vector, multiplier: number): void;
267
- }
268
225
 
269
- interface Vector {
270
226
  Mul(self: Vector, multiplier: Vector): void;
271
- }
272
227
 
273
- interface Vector {
274
228
  Mul(self: Vector, matrix: VMatrix): void;
275
- }
276
229
 
277
- interface Vector {
278
230
  /**
279
231
  * Negates this vector, i.e. sets every component to the negative value of itself. Same as `Vector( -vec.x, -vec.y, -vec.z )`
280
232
  * @realm shared and menu
281
233
  * @source https://wiki.facepunch.com/gmod/Vector:Negate
282
234
  */
283
235
  Negate(self: Vector): void;
284
- }
285
236
 
286
- interface Vector {
287
237
  /**
288
238
  * Normalizes the given vector. This changes the vector you call it on, if you want to return a normalized copy without affecting the original, use [Vector:GetNormalized](https://wiki.facepunch.com/gmod/Vector:GetNormalized).
289
239
  * @realm shared and menu
290
240
  * @source https://wiki.facepunch.com/gmod/Vector:Normalize
291
241
  */
292
242
  Normalize(self: Vector): void;
293
- }
294
243
 
295
- interface Vector {
296
244
  /**
297
245
  * Randomizes each element of this Vector object.
298
246
  * @realm shared and menu
299
247
  * @source https://wiki.facepunch.com/gmod/Vector:Random
300
248
  */
301
249
  Random(self: Vector, min?: number, max?: number): void;
302
- }
303
250
 
304
- interface Vector {
305
251
  /**
306
252
  * Rotates a vector by the given angle.
307
253
  * Doesn't return anything, but rather changes the original vector.
@@ -310,36 +256,28 @@ interface Vector {
310
256
  * @source https://wiki.facepunch.com/gmod/Vector:Rotate
311
257
  */
312
258
  Rotate(self: Vector, rotation: Angle): void;
313
- }
314
259
 
315
- interface Vector {
316
260
  /**
317
261
  * Copies the values from the second vector to the first vector.
318
262
  * @realm shared and menu
319
263
  * @source https://wiki.facepunch.com/gmod/Vector:Set
320
264
  */
321
265
  Set(self: Vector, vector: Vector): void;
322
- }
323
266
 
324
- interface Vector {
325
267
  /**
326
268
  * Sets the x, y, and z of the vector.
327
269
  * @realm shared and menu
328
270
  * @source https://wiki.facepunch.com/gmod/Vector:SetUnpacked
329
271
  */
330
272
  SetUnpacked(self: Vector, x: number, y: number, z: number): void;
331
- }
332
273
 
333
- interface Vector {
334
274
  /**
335
275
  * Substracts the values of the second vector from the orignal vector, this function can be used to avoid garbage collection.
336
276
  * @realm shared and menu
337
277
  * @source https://wiki.facepunch.com/gmod/Vector:Sub
338
278
  */
339
279
  Sub(self: Vector, vector: Vector): void;
340
- }
341
280
 
342
- interface Vector {
343
281
  /**
344
282
  * Translates the [Vector](https://wiki.facepunch.com/gmod/Vector) (values ranging from 0 to 1) into a [Color](https://wiki.facepunch.com/gmod/Color). This will also range the values from 0 - 1 to 0 - 255.
345
283
  *
@@ -353,9 +291,7 @@ interface Vector {
353
291
  * @source https://wiki.facepunch.com/gmod/Vector:ToColor
354
292
  */
355
293
  ToColor(self: Vector): Color;
356
- }
357
294
 
358
- interface Vector {
359
295
  /**
360
296
  * Returns where on the screen the specified position vector would appear. A related function is [gui.ScreenToVector](https://wiki.facepunch.com/gmod/gui.ScreenToVector), which converts a 2D coordinate to a 3D direction.
361
297
  *
@@ -370,27 +306,21 @@ interface Vector {
370
306
  * @source https://wiki.facepunch.com/gmod/Vector:ToScreen
371
307
  */
372
308
  ToScreen(self: Vector): ToScreenData;
373
- }
374
309
 
375
- interface Vector {
376
310
  /**
377
311
  * Returns the vector as a table with three elements.
378
312
  * @realm shared and menu
379
313
  * @source https://wiki.facepunch.com/gmod/Vector:ToTable
380
314
  */
381
315
  ToTable(self: Vector): table;
382
- }
383
316
 
384
- interface Vector {
385
317
  /**
386
318
  * Returns the x, y, and z of the vector.
387
319
  * @realm shared and menu
388
320
  * @source https://wiki.facepunch.com/gmod/Vector:Unpack
389
321
  */
390
322
  Unpack(self: Vector): (number, number, number);
391
- }
392
323
 
393
- interface Vector {
394
324
  /**
395
325
  * Returns whenever the given vector is in a box created by the 2 other vectors.
396
326
  *
@@ -400,9 +330,7 @@ interface Vector {
400
330
  * @source https://wiki.facepunch.com/gmod/Vector:WithinAABox
401
331
  */
402
332
  WithinAABox(self: Vector, boxStart: Vector, boxEnd: Vector): boolean;
403
- }
404
333
 
405
- interface Vector {
406
334
  /**
407
335
  * Sets x, y and z to 0.
408
336
  * @realm shared and menu
@@ -410,4 +338,3 @@ interface Vector {
410
338
  */
411
339
  Zero(self: Vector): void;
412
340
  }
413
-