@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
package/types/net.d.tlua CHANGED
@@ -18,9 +18,7 @@ interface NetLib {
18
18
  * @source https://wiki.facepunch.com/gmod/net.Abort
19
19
  */
20
20
  Abort(): void;
21
- }
22
21
 
23
- interface NetLib {
24
22
  /**
25
23
  * Sends the currently built net message (see [net.Start](https://wiki.facepunch.com/gmod/net.Start)) to all connected players.
26
24
  * More information can be found in [Net Library Usage](https://wiki.facepunch.com/gmod/Net_Library_Usage).
@@ -29,9 +27,7 @@ interface NetLib {
29
27
  * @source https://wiki.facepunch.com/gmod/net.Broadcast
30
28
  */
31
29
  Broadcast(): void;
32
- }
33
30
 
34
- interface NetLib {
35
31
  /**
36
32
  * Returns the amount of data left to read in the current message. Does nothing when sending data.
37
33
  *
@@ -39,9 +35,7 @@ interface NetLib {
39
35
  * @source https://wiki.facepunch.com/gmod/net.BytesLeft
40
36
  */
41
37
  BytesLeft(): (number, number);
42
- }
43
38
 
44
- interface NetLib {
45
39
  /**
46
40
  * Returns the size of the current message.
47
41
  *
@@ -52,9 +46,7 @@ interface NetLib {
52
46
  * @source https://wiki.facepunch.com/gmod/net.BytesWritten
53
47
  */
54
48
  BytesWritten(): (number, number);
55
- }
56
49
 
57
- interface NetLib {
58
50
  /**
59
51
  * **INTERNAL**: You may be looking for [net.Receive](https://wiki.facepunch.com/gmod/net.Receive).
60
52
  *
@@ -65,9 +57,7 @@ interface NetLib {
65
57
  * @source https://wiki.facepunch.com/gmod/net.Incoming
66
58
  */
67
59
  Incoming(length: number, client: Player): void;
68
- }
69
60
 
70
- interface NetLib {
71
61
  /**
72
62
  * Reads an angle from the received net message.
73
63
  *
@@ -78,9 +68,7 @@ interface NetLib {
78
68
  * @source https://wiki.facepunch.com/gmod/net.ReadAngle
79
69
  */
80
70
  ReadAngle(): Angle;
81
- }
82
71
 
83
- interface NetLib {
84
72
  /**
85
73
  * Reads a bit from the received net message.
86
74
  *
@@ -91,9 +79,7 @@ interface NetLib {
91
79
  * @source https://wiki.facepunch.com/gmod/net.ReadBit
92
80
  */
93
81
  ReadBit(): number;
94
- }
95
82
 
96
- interface NetLib {
97
83
  /**
98
84
  * Reads a boolean from the received net message.
99
85
  *
@@ -104,9 +90,7 @@ interface NetLib {
104
90
  * @source https://wiki.facepunch.com/gmod/net.ReadBool
105
91
  */
106
92
  ReadBool(): boolean;
107
- }
108
93
 
109
- interface NetLib {
110
94
  /**
111
95
  * Reads a [Color](https://wiki.facepunch.com/gmod/Color) from the current net message.
112
96
  *
@@ -117,9 +101,7 @@ interface NetLib {
117
101
  * @source https://wiki.facepunch.com/gmod/net.ReadColor
118
102
  */
119
103
  ReadColor(hasAlpha?: boolean): Color;
120
- }
121
104
 
122
- interface NetLib {
123
105
  /**
124
106
  * Reads pure binary data from the message.
125
107
  *
@@ -130,9 +112,7 @@ interface NetLib {
130
112
  * @source https://wiki.facepunch.com/gmod/net.ReadData
131
113
  */
132
114
  ReadData(length: number): string;
133
- }
134
115
 
135
- interface NetLib {
136
116
  /**
137
117
  * Reads a double-precision number from the received net message.
138
118
  *
@@ -143,9 +123,7 @@ interface NetLib {
143
123
  * @source https://wiki.facepunch.com/gmod/net.ReadDouble
144
124
  */
145
125
  ReadDouble(): number;
146
- }
147
126
 
148
- interface NetLib {
149
127
  /**
150
128
  * Reads an entity from the received net message. You should always check if the specified entity exists as it may have been removed and therefore `NULL` if it is outside of the players [PVS (Potential Visibility Set)](https://developer.valvesoftware.com/wiki/PVS "PVS - Valve Developer Community") or was already removed.
151
129
  *
@@ -156,9 +134,7 @@ interface NetLib {
156
134
  * @source https://wiki.facepunch.com/gmod/net.ReadEntity
157
135
  */
158
136
  ReadEntity(): Entity;
159
- }
160
137
 
161
- interface NetLib {
162
138
  /**
163
139
  * Reads a floating point number from the received net message.
164
140
  *
@@ -169,9 +145,7 @@ interface NetLib {
169
145
  * @source https://wiki.facepunch.com/gmod/net.ReadFloat
170
146
  */
171
147
  ReadFloat(): number;
172
- }
173
148
 
174
- interface NetLib {
175
149
  /**
176
150
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
177
151
  *
@@ -182,9 +156,7 @@ interface NetLib {
182
156
  * @source https://wiki.facepunch.com/gmod/net.ReadHeader
183
157
  */
184
158
  ReadHeader(): number;
185
- }
186
159
 
187
- interface NetLib {
188
160
  /**
189
161
  * Reads an integer from the received net message.
190
162
  *
@@ -195,9 +167,7 @@ interface NetLib {
195
167
  * @source https://wiki.facepunch.com/gmod/net.ReadInt
196
168
  */
197
169
  ReadInt(bitCount: number): number;
198
- }
199
170
 
200
- interface NetLib {
201
171
  /**
202
172
  * Reads a [VMatrix](https://wiki.facepunch.com/gmod/VMatrix) from the received net message.
203
173
  * **WARNING**: You **must** read information in same order as you write it.
@@ -207,9 +177,7 @@ interface NetLib {
207
177
  * @source https://wiki.facepunch.com/gmod/net.ReadMatrix
208
178
  */
209
179
  ReadMatrix(): VMatrix;
210
- }
211
180
 
212
- interface NetLib {
213
181
  /**
214
182
  * Reads a normal vector from the net message.
215
183
  *
@@ -220,9 +188,7 @@ interface NetLib {
220
188
  * @source https://wiki.facepunch.com/gmod/net.ReadNormal
221
189
  */
222
190
  ReadNormal(): Vector;
223
- }
224
191
 
225
- interface NetLib {
226
192
  /**
227
193
  * Reads a player entity that was written with [net.WritePlayer](https://wiki.facepunch.com/gmod/net.WritePlayer) from the received net message.
228
194
  *
@@ -235,9 +201,7 @@ interface NetLib {
235
201
  * @source https://wiki.facepunch.com/gmod/net.ReadPlayer
236
202
  */
237
203
  ReadPlayer(): Player;
238
- }
239
204
 
240
- interface NetLib {
241
205
  /**
242
206
  * Reads a [null-terminated string](https://en.wikipedia.org/wiki/Null-terminated_string) from the net stream. The size of the string is 8 bits plus 8 bits for every ASCII character in the string.
243
207
  *
@@ -248,9 +212,7 @@ interface NetLib {
248
212
  * @source https://wiki.facepunch.com/gmod/net.ReadString
249
213
  */
250
214
  ReadString(): string;
251
- }
252
215
 
253
- interface NetLib {
254
216
  /**
255
217
  * Reads a table from the received net message. See net.WriteTable for extra
256
218
  * info.
@@ -263,10 +225,7 @@ interface NetLib {
263
225
  * @source https://wiki.facepunch.com/gmod/net.ReadTable
264
226
  */
265
227
  ReadTable(sequential?: boolean): Table<any, any>;
266
- }
267
228
 
268
-
269
- interface NetLib {
270
229
  /**
271
230
  * **INTERNAL**: Used internally by [net.ReadTable](https://wiki.facepunch.com/gmod/net.ReadTable).
272
231
  *
@@ -280,9 +239,7 @@ interface NetLib {
280
239
  * @source https://wiki.facepunch.com/gmod/net.ReadType
281
240
  */
282
241
  ReadType(typeID?: number): any;
283
- }
284
242
 
285
- interface NetLib {
286
243
  /**
287
244
  * Reads an unsigned integer with the specified number of bits from the received net message.
288
245
  *
@@ -293,9 +250,7 @@ interface NetLib {
293
250
  * @source https://wiki.facepunch.com/gmod/net.ReadUInt
294
251
  */
295
252
  ReadUInt(bitCount: number): number;
296
- }
297
253
 
298
- interface NetLib {
299
254
  /**
300
255
  * Reads a unsigned integer with 64 bits from the received net message.
301
256
  *
@@ -306,9 +261,7 @@ interface NetLib {
306
261
  * @source https://wiki.facepunch.com/gmod/net.ReadUInt64
307
262
  */
308
263
  ReadUInt64(): string;
309
- }
310
264
 
311
- interface NetLib {
312
265
  /**
313
266
  * Reads a vector from the received net message. Vectors sent by this function are **compressed**, which may result in precision loss. See [net.WriteVector](https://wiki.facepunch.com/gmod/net.WriteVector) for more information.
314
267
  *
@@ -319,9 +272,7 @@ interface NetLib {
319
272
  * @source https://wiki.facepunch.com/gmod/net.ReadVector
320
273
  */
321
274
  ReadVector(): Vector;
322
- }
323
275
 
324
- interface NetLib {
325
276
  /**
326
277
  * Adds a net message handler. Only one receiver can be used to receive the net message.
327
278
  *
@@ -338,26 +289,18 @@ interface NetLib {
338
289
  * @source https://wiki.facepunch.com/gmod/net.Receive
339
290
  */
340
291
  Receive(messageName: string, callback: (len: number, ply: Player) => void): void;
341
- }
342
292
 
343
- interface NetLib {
344
293
  /**
345
294
  * Sends the current net message to the specified player(s)
346
295
  * @realm server
347
296
  * @source https://wiki.facepunch.com/gmod/net.Send
348
297
  */
349
298
  Send(ply: Player): void;
350
- }
351
299
 
352
- interface NetLib {
353
300
  Send(plys: Player[]): void;
354
- }
355
301
 
356
- interface NetLib {
357
302
  Send(filter: CRecipientFilter): void;
358
- }
359
303
 
360
- interface NetLib {
361
304
  /**
362
305
  * Sends the current message (see [net.Start](https://wiki.facepunch.com/gmod/net.Start)) to all except the player or players specified.
363
306
  *
@@ -365,31 +308,23 @@ interface NetLib {
365
308
  * @source https://wiki.facepunch.com/gmod/net.SendOmit
366
309
  */
367
310
  SendOmit(ply: Player): void;
368
- }
369
311
 
370
- interface NetLib {
371
312
  SendOmit(plys: Player[]): void;
372
- }
373
313
 
374
- interface NetLib {
375
314
  /**
376
315
  * Sends current net message (see [net.Start](https://wiki.facepunch.com/gmod/net.Start)) to all players that are in the same [Potentially Audible Set (PAS)](https://developer.valvesoftware.com/wiki/PAS) as the position, or simply said, it adds all players that can potentially hear sounds from this position.
377
316
  * @realm server
378
317
  * @source https://wiki.facepunch.com/gmod/net.SendPAS
379
318
  */
380
319
  SendPAS(position: Vector): void;
381
- }
382
320
 
383
- interface NetLib {
384
321
  /**
385
322
  * Sends current net message (see [net.Start](https://wiki.facepunch.com/gmod/net.Start)) to all players in the [PVS (Potential Visibility Set)](https://developer.valvesoftware.com/wiki/PVS "PVS - Valve Developer Community") of the position, or, more simply said, sends the message to players that can potentially see this position.
386
323
  * @realm server
387
324
  * @source https://wiki.facepunch.com/gmod/net.SendPVS
388
325
  */
389
326
  SendPVS(position: Vector): void;
390
- }
391
327
 
392
- interface NetLib {
393
328
  /**
394
329
  * Sends the current net message (see [net.Start](https://wiki.facepunch.com/gmod/net.Start)) to the server. The player object must exist on the server for the net message to be received successfully by the server.
395
330
  *
@@ -402,9 +337,7 @@ interface NetLib {
402
337
  * @source https://wiki.facepunch.com/gmod/net.SendToServer
403
338
  */
404
339
  SendToServer(): void;
405
- }
406
340
 
407
- interface NetLib {
408
341
  /**
409
342
  * Begins a new net message. If another net message is already started and hasn't been sent yet, it will be discarded.
410
343
  *
@@ -430,18 +363,14 @@ interface NetLib {
430
363
  * @source https://wiki.facepunch.com/gmod/net.Start
431
364
  */
432
365
  Start(messageName: string, unreliable?: boolean): boolean;
433
- }
434
366
 
435
- interface NetLib {
436
367
  /**
437
368
  * Writes an angle to the current net message.
438
369
  * @realm shared
439
370
  * @source https://wiki.facepunch.com/gmod/net.WriteAngle
440
371
  */
441
372
  WriteAngle(angle: Angle): void;
442
- }
443
373
 
444
- interface NetLib {
445
374
  /**
446
375
  * Appends a boolean (as `1` or `0`) to the current net message.
447
376
  *
@@ -451,45 +380,35 @@ interface NetLib {
451
380
  * @source https://wiki.facepunch.com/gmod/net.WriteBit
452
381
  */
453
382
  WriteBit(boolean: boolean): void;
454
- }
455
383
 
456
- interface NetLib {
457
384
  /**
458
385
  * Appends a boolean to the current net message. Alias of [net.WriteBit](https://wiki.facepunch.com/gmod/net.WriteBit).
459
386
  * @realm shared
460
387
  * @source https://wiki.facepunch.com/gmod/net.WriteBool
461
388
  */
462
389
  WriteBool(boolean: boolean): void;
463
- }
464
390
 
465
- interface NetLib {
466
391
  /**
467
392
  * Appends a [Color](https://wiki.facepunch.com/gmod/Color) to the current net message.
468
393
  * @realm shared
469
394
  * @source https://wiki.facepunch.com/gmod/net.WriteColor
470
395
  */
471
396
  WriteColor(Color: Color, writeAlpha?: boolean): void;
472
- }
473
397
 
474
- interface NetLib {
475
398
  /**
476
399
  * Writes a chunk of binary data to the message.
477
400
  * @realm shared
478
401
  * @source https://wiki.facepunch.com/gmod/net.WriteData
479
402
  */
480
403
  WriteData(binaryData: string, length?: number): void;
481
- }
482
404
 
483
- interface NetLib {
484
405
  /**
485
406
  * Appends a double-precision number to the current net message.
486
407
  * @realm shared
487
408
  * @source https://wiki.facepunch.com/gmod/net.WriteDouble
488
409
  */
489
410
  WriteDouble(double: number): void;
490
- }
491
411
 
492
- interface NetLib {
493
412
  /**
494
413
  * Appends an entity to the current net message using its [Entity:EntIndex](https://wiki.facepunch.com/gmod/Entity:EntIndex).
495
414
  *
@@ -499,18 +418,14 @@ interface NetLib {
499
418
  * @source https://wiki.facepunch.com/gmod/net.WriteEntity
500
419
  */
501
420
  WriteEntity(entity: Entity): void;
502
- }
503
421
 
504
- interface NetLib {
505
422
  /**
506
423
  * Appends a float (number with decimals) to the current net message.
507
424
  * @realm shared
508
425
  * @source https://wiki.facepunch.com/gmod/net.WriteFloat
509
426
  */
510
427
  WriteFloat(float: number): void;
511
- }
512
428
 
513
- interface NetLib {
514
429
  /**
515
430
  * Appends a signed integer - a whole number, positive/negative - to the current net message. Can be read back with [net.ReadInt](https://wiki.facepunch.com/gmod/net.ReadInt) on the receiving end.
516
431
  *
@@ -520,18 +435,14 @@ interface NetLib {
520
435
  * @source https://wiki.facepunch.com/gmod/net.WriteInt
521
436
  */
522
437
  WriteInt(integer: number, bitCount: number): void;
523
- }
524
438
 
525
- interface NetLib {
526
439
  /**
527
440
  * Writes a [VMatrix](https://wiki.facepunch.com/gmod/VMatrix) to the current net message.
528
441
  * @realm shared
529
442
  * @source https://wiki.facepunch.com/gmod/net.WriteMatrix
530
443
  */
531
444
  WriteMatrix(matrix: VMatrix): void;
532
- }
533
445
 
534
- interface NetLib {
535
446
  /**
536
447
  * Writes a normalized/direction vector ( Vector with length of 1 ) to the net message.
537
448
  *
@@ -541,9 +452,7 @@ interface NetLib {
541
452
  * @source https://wiki.facepunch.com/gmod/net.WriteNormal
542
453
  */
543
454
  WriteNormal(normal: Vector): void;
544
- }
545
455
 
546
- interface NetLib {
547
456
  /**
548
457
  * Appends a player entity to the current net message using its [Entity:EntIndex](https://wiki.facepunch.com/gmod/Entity:EntIndex). This saves a small amount of network bandwidth over [net.WriteEntity](https://wiki.facepunch.com/gmod/net.WriteEntity).
549
458
  *
@@ -552,9 +461,7 @@ interface NetLib {
552
461
  * @source https://wiki.facepunch.com/gmod/net.WritePlayer
553
462
  */
554
463
  WritePlayer(ply: Player): void;
555
- }
556
464
 
557
- interface NetLib {
558
465
  /**
559
466
  * Appends a string to the current net message. The size of the written data is 8 bits for every ASCII character in the string + 8 bits for the null terminator.
560
467
  *
@@ -564,9 +471,7 @@ interface NetLib {
564
471
  * @source https://wiki.facepunch.com/gmod/net.WriteString
565
472
  */
566
473
  WriteString(string: string): void;
567
- }
568
474
 
569
- interface NetLib {
570
475
  /**
571
476
  * Appends a table to the current net message. Adds **16 extra bits** per key/value pair, so you're better off writing each individual key/value as the exact type if possible.
572
477
  *
@@ -577,9 +482,7 @@ interface NetLib {
577
482
  * @source https://wiki.facepunch.com/gmod/net.WriteTable
578
483
  */
579
484
  WriteTable(table: table, sequential?: boolean): void;
580
- }
581
485
 
582
- interface NetLib {
583
486
  /**
584
487
  * **INTERNAL**: Used internally by [net.WriteTable](https://wiki.facepunch.com/gmod/net.WriteTable).
585
488
  *
@@ -593,9 +496,7 @@ interface NetLib {
593
496
  * @source https://wiki.facepunch.com/gmod/net.WriteType
594
497
  */
595
498
  WriteType(Data: any): void;
596
- }
597
499
 
598
- interface NetLib {
599
500
  /**
600
501
  * Appends an unsigned integer with the specified number of bits to the current net message.
601
502
  *
@@ -608,9 +509,7 @@ interface NetLib {
608
509
  * @source https://wiki.facepunch.com/gmod/net.WriteUInt
609
510
  */
610
511
  WriteUInt(unsignedInteger: number, bitCount: number): void;
611
- }
612
512
 
613
- interface NetLib {
614
513
  /**
615
514
  * Appends an unsigned integer with 64 bits to the current net message.
616
515
  *
@@ -624,9 +523,7 @@ interface NetLib {
624
523
  * @source https://wiki.facepunch.com/gmod/net.WriteUInt64
625
524
  */
626
525
  WriteUInt64(uint64: string): void;
627
- }
628
526
 
629
- interface NetLib {
630
527
  /**
631
528
  * Appends a vector to the current net message.
632
529
  * Vectors sent by this function are compressed, which may result in precision loss. XYZ components greater than `16384` or less than `-16384` are irrecoverably altered (most significant bits are trimmed) and precision after the decimal point is 1 digit (5 bits).
@@ -636,4 +533,3 @@ interface NetLib {
636
533
  */
637
534
  WriteVector(vector: Vector): void;
638
535
  }
639
-