@tlua/gmod 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/package.json +1 -1
  2. package/types/achievements.d.tlua +15 -45
  3. package/types/ai.d.tlua +5 -15
  4. package/types/angle.d.tlua +18 -54
  5. package/types/baseclass.d.tlua +2 -4
  6. package/types/bf_read.d.tlua +11 -32
  7. package/types/bit.d.tlua +11 -33
  8. package/types/cam.d.tlua +16 -48
  9. package/types/ceffectdata.d.tlua +32 -95
  10. package/types/chat.d.tlua +5 -15
  11. package/types/cleanup.d.tlua +7 -21
  12. package/types/cluaemitter.d.tlua +12 -35
  13. package/types/clualocomotion.d.tlua +40 -119
  14. package/types/cluaparticle.d.tlua +44 -131
  15. package/types/cmovedata.d.tlua +47 -140
  16. package/types/cnavarea.d.tlua +77 -230
  17. package/types/cnavladder.d.tlua +22 -65
  18. package/types/cnewparticleeffect.d.tlua +26 -77
  19. package/types/color.d.tlua +28 -84
  20. package/types/concommand.d.tlua +4 -12
  21. package/types/constraint.d.tlua +28 -84
  22. package/types/construct.d.tlua +1 -3
  23. package/types/contentheader.d.tlua +3 -6
  24. package/types/contenticon.d.tlua +9 -24
  25. package/types/contentsidebar.d.tlua +4 -9
  26. package/types/contextbase.d.tlua +4 -9
  27. package/types/controlpanel.d.tlua +18 -40
  28. package/types/controlpresets.d.tlua +13 -36
  29. package/types/convar.d.tlua +16 -47
  30. package/types/cookie.d.tlua +3 -9
  31. package/types/coroutine.d.tlua +7 -21
  32. package/types/crecipientfilter.d.tlua +16 -47
  33. package/types/csoundpatch.d.tlua +14 -41
  34. package/types/ctakedamageinfo.d.tlua +33 -98
  35. package/types/ctrlnumpad.d.tlua +6 -17
  36. package/types/cusercmd.d.tlua +27 -80
  37. package/types/cvars.d.tlua +6 -18
  38. package/types/dadjustablemodelpanel.d.tlua +7 -18
  39. package/types/dalphabar.d.tlua +3 -6
  40. package/types/dbinder.d.tlua +4 -9
  41. package/types/dbubblecontainer.d.tlua +2 -3
  42. package/types/dbutton.d.tlua +8 -21
  43. package/types/dcheckbox.d.tlua +5 -12
  44. package/types/dcheckboxlabel.d.tlua +9 -27
  45. package/types/dcollapsiblecategory.d.tlua +23 -66
  46. package/types/dcolorbutton.d.tlua +7 -18
  47. package/types/dcolorcombo.d.tlua +5 -12
  48. package/types/dcolorcube.d.tlua +13 -36
  49. package/types/dcolormixer.d.tlua +27 -78
  50. package/types/dcolorpalette.d.tlua +23 -66
  51. package/types/dcolumnsheet.d.tlua +5 -12
  52. package/types/dcombobox.d.tlua +17 -48
  53. package/types/ddragbase.d.tlua +13 -36
  54. package/types/ddrawer.d.tlua +8 -21
  55. package/types/debug.d.tlua +44 -76
  56. package/types/debugoverlay.d.tlua +11 -33
  57. package/types/dentityproperties.d.tlua +5 -12
  58. package/types/derma.d.tlua +10 -30
  59. package/types/dexpandbutton.d.tlua +3 -6
  60. package/types/dfilebrowser.d.tlua +20 -60
  61. package/types/dform.d.tlua +18 -51
  62. package/types/dframe.d.tlua +24 -72
  63. package/types/dgrid.d.tlua +11 -30
  64. package/types/dhorizontaldivider.d.tlua +20 -57
  65. package/types/dhorizontalscroller.d.tlua +11 -30
  66. package/types/dhscrollbar.d.tlua +11 -30
  67. package/types/dhtml.d.tlua +8 -21
  68. package/types/dhtmlcontrols.d.tlua +5 -15
  69. package/types/diconbrowser.d.tlua +11 -30
  70. package/types/diconlayout.d.tlua +18 -51
  71. package/types/dimage.d.tlua +20 -55
  72. package/types/dimagebutton.d.tlua +9 -27
  73. package/types/dlabel.d.tlua +33 -96
  74. package/types/dlabeleditable.d.tlua +5 -12
  75. package/types/dlabelurl.d.tlua +10 -27
  76. package/types/dlistbox.d.tlua +8 -21
  77. package/types/dlistboxitem.d.tlua +4 -9
  78. package/types/dlistview.d.tlua +34 -99
  79. package/types/dlistview_column.d.tlua +14 -39
  80. package/types/dlistview_line.d.tlua +13 -36
  81. package/types/dmenu.d.tlua +28 -75
  82. package/types/dmenubar.d.tlua +6 -11
  83. package/types/dmenuoption.d.tlua +13 -36
  84. package/types/dmenuoptioncvar.d.tlua +6 -15
  85. package/types/dmodelpanel.d.tlua +22 -63
  86. package/types/dmodelselect.d.tlua +2 -3
  87. package/types/dmodelselectmulti.d.tlua +2 -3
  88. package/types/dnotify.d.tlua +10 -27
  89. package/types/dnumberscratch.d.tlua +26 -75
  90. package/types/dnumberwang.d.tlua +16 -45
  91. package/types/dnumslider.d.tlua +17 -51
  92. package/types/dpanel.d.tlua +14 -39
  93. package/types/dpanellist.d.tlua +11 -33
  94. package/types/dpaneloverlay.d.tlua +7 -18
  95. package/types/dpanpanel.d.tlua +6 -15
  96. package/types/dprogress.d.tlua +3 -6
  97. package/types/dproperties.d.tlua +4 -9
  98. package/types/dproperty_combo.d.tlua +3 -6
  99. package/types/dproperty_generic.d.tlua +5 -12
  100. package/types/dpropertysheet.d.tlua +26 -56
  101. package/types/dragndrop.d.tlua +10 -30
  102. package/types/draw.d.tlua +11 -31
  103. package/types/drgbpicker.d.tlua +4 -9
  104. package/types/drive.d.tlua +18 -41
  105. package/types/dscrollpanel.d.tlua +10 -30
  106. package/types/dshape.d.tlua +7 -18
  107. package/types/dsizetocontents.d.tlua +5 -12
  108. package/types/dslider.d.tlua +28 -81
  109. package/types/dsprite.d.tlua +9 -24
  110. package/types/dtab.d.tlua +8 -21
  111. package/types/dtextentry.d.tlua +43 -126
  112. package/types/dtilelayout.d.tlua +21 -60
  113. package/types/dtooltip.d.tlua +6 -15
  114. package/types/dtree.d.tlua +16 -45
  115. package/types/dtree_node.d.tlua +68 -201
  116. package/types/duplicator.d.tlua +30 -88
  117. package/types/dverticaldivider.d.tlua +23 -66
  118. package/types/dvscrollbar.d.tlua +11 -30
  119. package/types/effect.d.tlua +4 -9
  120. package/types/effects.d.tlua +6 -18
  121. package/types/engine.d.tlua +21 -63
  122. package/types/entity.d.tlua +676 -1962
  123. package/types/ents.d.tlua +23 -61
  124. package/types/file.d.tlua +39 -117
  125. package/types/frame_blend.d.tlua +7 -21
  126. package/types/game.d.tlua +39 -117
  127. package/types/gameevent.d.tlua +4 -8
  128. package/types/gamemode.d.tlua +3 -7
  129. package/types/gm.d.tlua +267 -800
  130. package/types/gmsave.d.tlua +4 -12
  131. package/types/gui.d.tlua +21 -63
  132. package/types/gwen.d.tlua +3 -9
  133. package/types/halo.d.tlua +2 -6
  134. package/types/hook.d.tlua +4 -12
  135. package/types/http.d.tlua +1 -3
  136. package/types/iconeditor.d.tlua +11 -30
  137. package/types/igmodaudiochannel.d.tlua +41 -122
  138. package/types/imagecheckbox.d.tlua +4 -9
  139. package/types/imaterial.d.tlua +26 -77
  140. package/types/imesh.d.tlua +5 -14
  141. package/types/input.d.tlua +24 -68
  142. package/types/irestore.d.tlua +9 -26
  143. package/types/isave.d.tlua +9 -26
  144. package/types/itexture.d.tlua +10 -29
  145. package/types/ivideowriter.d.tlua +5 -14
  146. package/types/jit.d.tlua +21 -53
  147. package/types/killicon.d.tlua +7 -21
  148. package/types/language.d.tlua +1 -3
  149. package/types/list.d.tlua +8 -24
  150. package/types/markup.d.tlua +2 -6
  151. package/types/markupobject.d.tlua +5 -14
  152. package/types/math.d.tlua +277 -447
  153. package/types/matproxy.d.tlua +3 -9
  154. package/types/matselect.d.tlua +11 -30
  155. package/types/menubar.d.tlua +2 -6
  156. package/types/mesh.d.tlua +19 -57
  157. package/types/motionsensor.d.tlua +10 -30
  158. package/types/navmesh.d.tlua +26 -78
  159. package/types/net.d.tlua +52 -154
  160. package/types/nextbot.d.tlua +46 -116
  161. package/types/notification.d.tlua +2 -6
  162. package/types/npc.d.tlua +182 -543
  163. package/types/numpad.d.tlua +7 -21
  164. package/types/os.d.tlua +4 -10
  165. package/types/panel.d.tlua +333 -991
  166. package/types/pathfollower.d.tlua +31 -92
  167. package/types/permissions.d.tlua +6 -18
  168. package/types/physcollide.d.tlua +3 -8
  169. package/types/physenv.d.tlua +11 -33
  170. package/types/physobj.d.tlua +78 -233
  171. package/types/player.d.tlua +302 -880
  172. package/types/player_manager.d.tlua +13 -39
  173. package/types/presets.d.tlua +6 -18
  174. package/types/projectedtexture.d.tlua +48 -143
  175. package/types/properties.d.tlua +5 -15
  176. package/types/propselect.d.tlua +5 -12
  177. package/types/render.d.tlua +142 -426
  178. package/types/resource.d.tlua +2 -6
  179. package/types/sandbox.d.tlua +54 -159
  180. package/types/saverestore.d.tlua +12 -36
  181. package/types/schedule.d.tlua +6 -17
  182. package/types/scripted_ents.d.tlua +11 -29
  183. package/types/search.d.tlua +1 -3
  184. package/types/serverlist.d.tlua +7 -21
  185. package/types/sound.d.tlua +10 -30
  186. package/types/spawnicon.d.tlua +8 -21
  187. package/types/spawnmenu.d.tlua +24 -70
  188. package/types/spawnmenucontentpanel.d.tlua +5 -12
  189. package/types/sql.d.tlua +9 -27
  190. package/types/stack.d.tlua +5 -14
  191. package/types/steamworks.d.tlua +18 -54
  192. package/types/string.d.tlua +49 -141
  193. package/types/surface.d.tlua +34 -102
  194. package/types/surfaceinfo.d.tlua +5 -14
  195. package/types/system.d.tlua +10 -30
  196. package/types/table.d.tlua +47 -137
  197. package/types/task.d.tlua +9 -26
  198. package/types/team.d.tlua +19 -57
  199. package/types/timer.d.tlua +14 -42
  200. package/types/tool.d.tlua +46 -131
  201. package/types/ugcpublishwindow.d.tlua +9 -24
  202. package/types/umsg.d.tlua +12 -36
  203. package/types/undo.d.tlua +10 -30
  204. package/types/usermessage.d.tlua +2 -6
  205. package/types/utf8.d.tlua +7 -21
  206. package/types/util.d.tlua +94 -274
  207. package/types/vector.d.tlua +36 -108
  208. package/types/vehicle.d.tlua +52 -149
  209. package/types/vgui.d.tlua +18 -46
  210. package/types/vmatrix.d.tlua +35 -105
  211. package/types/weapon.d.tlua +85 -248
  212. package/types/weapons.d.tlua +6 -16
  213. package/types/widgets.d.tlua +1 -3
  214. package/types/workshopfilebase.d.tlua +5 -14
package/types/net.d.tlua CHANGED
@@ -18,9 +18,6 @@ interface NetLib {
18
18
  * @source https://wiki.facepunch.com/gmod/net.Abort
19
19
  */
20
20
  Abort(): void;
21
- }
22
-
23
- interface NetLib {
24
21
  /**
25
22
  * Sends the currently built net message (see [net.Start](https://wiki.facepunch.com/gmod/net.Start)) to all connected players.
26
23
  * More information can be found in [Net Library Usage](https://wiki.facepunch.com/gmod/Net_Library_Usage).
@@ -29,9 +26,6 @@ interface NetLib {
29
26
  * @source https://wiki.facepunch.com/gmod/net.Broadcast
30
27
  */
31
28
  Broadcast(): void;
32
- }
33
-
34
- interface NetLib {
35
29
  /**
36
30
  * Returns the amount of data left to read in the current message. Does nothing when sending data.
37
31
  *
@@ -39,9 +33,6 @@ interface NetLib {
39
33
  * @source https://wiki.facepunch.com/gmod/net.BytesLeft
40
34
  */
41
35
  BytesLeft(): (number, number);
42
- }
43
-
44
- interface NetLib {
45
36
  /**
46
37
  * Returns the size of the current message.
47
38
  *
@@ -52,9 +43,6 @@ interface NetLib {
52
43
  * @source https://wiki.facepunch.com/gmod/net.BytesWritten
53
44
  */
54
45
  BytesWritten(): (number, number);
55
- }
56
-
57
- interface NetLib {
58
46
  /**
59
47
  * **INTERNAL**: You may be looking for [net.Receive](https://wiki.facepunch.com/gmod/net.Receive).
60
48
  *
@@ -65,9 +53,6 @@ interface NetLib {
65
53
  * @source https://wiki.facepunch.com/gmod/net.Incoming
66
54
  */
67
55
  Incoming(length: number, client: Player): void;
68
- }
69
-
70
- interface NetLib {
71
56
  /**
72
57
  * Reads an angle from the received net message.
73
58
  *
@@ -78,9 +63,6 @@ interface NetLib {
78
63
  * @source https://wiki.facepunch.com/gmod/net.ReadAngle
79
64
  */
80
65
  ReadAngle(): Angle;
81
- }
82
-
83
- interface NetLib {
84
66
  /**
85
67
  * Reads a bit from the received net message.
86
68
  *
@@ -91,9 +73,6 @@ interface NetLib {
91
73
  * @source https://wiki.facepunch.com/gmod/net.ReadBit
92
74
  */
93
75
  ReadBit(): number;
94
- }
95
-
96
- interface NetLib {
97
76
  /**
98
77
  * Reads a boolean from the received net message.
99
78
  *
@@ -104,9 +83,6 @@ interface NetLib {
104
83
  * @source https://wiki.facepunch.com/gmod/net.ReadBool
105
84
  */
106
85
  ReadBool(): boolean;
107
- }
108
-
109
- interface NetLib {
110
86
  /**
111
87
  * Reads a [Color](https://wiki.facepunch.com/gmod/Color) from the current net message.
112
88
  *
@@ -117,9 +93,6 @@ interface NetLib {
117
93
  * @source https://wiki.facepunch.com/gmod/net.ReadColor
118
94
  */
119
95
  ReadColor(hasAlpha?: boolean): Color;
120
- }
121
-
122
- interface NetLib {
123
96
  /**
124
97
  * Reads pure binary data from the message.
125
98
  *
@@ -130,9 +103,6 @@ interface NetLib {
130
103
  * @source https://wiki.facepunch.com/gmod/net.ReadData
131
104
  */
132
105
  ReadData(length: number): string;
133
- }
134
-
135
- interface NetLib {
136
106
  /**
137
107
  * Reads a double-precision number from the received net message.
138
108
  *
@@ -143,9 +113,6 @@ interface NetLib {
143
113
  * @source https://wiki.facepunch.com/gmod/net.ReadDouble
144
114
  */
145
115
  ReadDouble(): number;
146
- }
147
-
148
- interface NetLib {
149
116
  /**
150
117
  * 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
118
  *
@@ -156,9 +123,6 @@ interface NetLib {
156
123
  * @source https://wiki.facepunch.com/gmod/net.ReadEntity
157
124
  */
158
125
  ReadEntity(): Entity;
159
- }
160
-
161
- interface NetLib {
162
126
  /**
163
127
  * Reads a floating point number from the received net message.
164
128
  *
@@ -169,9 +133,6 @@ interface NetLib {
169
133
  * @source https://wiki.facepunch.com/gmod/net.ReadFloat
170
134
  */
171
135
  ReadFloat(): number;
172
- }
173
-
174
- interface NetLib {
175
136
  /**
176
137
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
177
138
  *
@@ -182,9 +143,6 @@ interface NetLib {
182
143
  * @source https://wiki.facepunch.com/gmod/net.ReadHeader
183
144
  */
184
145
  ReadHeader(): number;
185
- }
186
-
187
- interface NetLib {
188
146
  /**
189
147
  * Reads an integer from the received net message.
190
148
  *
@@ -195,9 +153,6 @@ interface NetLib {
195
153
  * @source https://wiki.facepunch.com/gmod/net.ReadInt
196
154
  */
197
155
  ReadInt(bitCount: number): number;
198
- }
199
-
200
- interface NetLib {
201
156
  /**
202
157
  * Reads a [VMatrix](https://wiki.facepunch.com/gmod/VMatrix) from the received net message.
203
158
  * **WARNING**: You **must** read information in same order as you write it.
@@ -207,9 +162,6 @@ interface NetLib {
207
162
  * @source https://wiki.facepunch.com/gmod/net.ReadMatrix
208
163
  */
209
164
  ReadMatrix(): VMatrix;
210
- }
211
-
212
- interface NetLib {
213
165
  /**
214
166
  * Reads a normal vector from the net message.
215
167
  *
@@ -220,9 +172,6 @@ interface NetLib {
220
172
  * @source https://wiki.facepunch.com/gmod/net.ReadNormal
221
173
  */
222
174
  ReadNormal(): Vector;
223
- }
224
-
225
- interface NetLib {
226
175
  /**
227
176
  * Reads a player entity that was written with [net.WritePlayer](https://wiki.facepunch.com/gmod/net.WritePlayer) from the received net message.
228
177
  *
@@ -235,9 +184,6 @@ interface NetLib {
235
184
  * @source https://wiki.facepunch.com/gmod/net.ReadPlayer
236
185
  */
237
186
  ReadPlayer(): Player;
238
- }
239
-
240
- interface NetLib {
241
187
  /**
242
188
  * 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
189
  *
@@ -248,9 +194,6 @@ interface NetLib {
248
194
  * @source https://wiki.facepunch.com/gmod/net.ReadString
249
195
  */
250
196
  ReadString(): string;
251
- }
252
-
253
- interface NetLib {
254
197
  /**
255
198
  * Reads a table from the received net message. See net.WriteTable for extra
256
199
  * info.
@@ -263,10 +206,6 @@ interface NetLib {
263
206
  * @source https://wiki.facepunch.com/gmod/net.ReadTable
264
207
  */
265
208
  ReadTable(sequential?: boolean): Table<any, any>;
266
- }
267
-
268
-
269
- interface NetLib {
270
209
  /**
271
210
  * **INTERNAL**: Used internally by [net.ReadTable](https://wiki.facepunch.com/gmod/net.ReadTable).
272
211
  *
@@ -280,9 +219,6 @@ interface NetLib {
280
219
  * @source https://wiki.facepunch.com/gmod/net.ReadType
281
220
  */
282
221
  ReadType(typeID?: number): any;
283
- }
284
-
285
- interface NetLib {
286
222
  /**
287
223
  * Reads an unsigned integer with the specified number of bits from the received net message.
288
224
  *
@@ -293,9 +229,6 @@ interface NetLib {
293
229
  * @source https://wiki.facepunch.com/gmod/net.ReadUInt
294
230
  */
295
231
  ReadUInt(bitCount: number): number;
296
- }
297
-
298
- interface NetLib {
299
232
  /**
300
233
  * Reads a unsigned integer with 64 bits from the received net message.
301
234
  *
@@ -306,9 +239,6 @@ interface NetLib {
306
239
  * @source https://wiki.facepunch.com/gmod/net.ReadUInt64
307
240
  */
308
241
  ReadUInt64(): string;
309
- }
310
-
311
- interface NetLib {
312
242
  /**
313
243
  * 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
244
  *
@@ -319,9 +249,6 @@ interface NetLib {
319
249
  * @source https://wiki.facepunch.com/gmod/net.ReadVector
320
250
  */
321
251
  ReadVector(): Vector;
322
- }
323
-
324
- interface NetLib {
325
252
  /**
326
253
  * Adds a net message handler. Only one receiver can be used to receive the net message.
327
254
  *
@@ -338,26 +265,14 @@ interface NetLib {
338
265
  * @source https://wiki.facepunch.com/gmod/net.Receive
339
266
  */
340
267
  Receive(messageName: string, callback: (len: number, ply: Player) => void): void;
341
- }
342
-
343
- interface NetLib {
344
268
  /**
345
269
  * Sends the current net message to the specified player(s)
346
270
  * @realm server
347
271
  * @source https://wiki.facepunch.com/gmod/net.Send
348
272
  */
349
273
  Send(ply: Player): void;
350
- }
351
-
352
- interface NetLib {
353
274
  Send(plys: Player[]): void;
354
- }
355
-
356
- interface NetLib {
357
275
  Send(filter: CRecipientFilter): void;
358
- }
359
-
360
- interface NetLib {
361
276
  /**
362
277
  * Sends the current message (see [net.Start](https://wiki.facepunch.com/gmod/net.Start)) to all except the player or players specified.
363
278
  *
@@ -365,31 +280,19 @@ interface NetLib {
365
280
  * @source https://wiki.facepunch.com/gmod/net.SendOmit
366
281
  */
367
282
  SendOmit(ply: Player): void;
368
- }
369
-
370
- interface NetLib {
371
283
  SendOmit(plys: Player[]): void;
372
- }
373
-
374
- interface NetLib {
375
284
  /**
376
285
  * 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
286
  * @realm server
378
287
  * @source https://wiki.facepunch.com/gmod/net.SendPAS
379
288
  */
380
289
  SendPAS(position: Vector): void;
381
- }
382
-
383
- interface NetLib {
384
290
  /**
385
291
  * 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
292
  * @realm server
387
293
  * @source https://wiki.facepunch.com/gmod/net.SendPVS
388
294
  */
389
295
  SendPVS(position: Vector): void;
390
- }
391
-
392
- interface NetLib {
393
296
  /**
394
297
  * 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
298
  *
@@ -402,9 +305,6 @@ interface NetLib {
402
305
  * @source https://wiki.facepunch.com/gmod/net.SendToServer
403
306
  */
404
307
  SendToServer(): void;
405
- }
406
-
407
- interface NetLib {
408
308
  /**
409
309
  * Begins a new net message. If another net message is already started and hasn't been sent yet, it will be discarded.
410
310
  *
@@ -430,18 +330,12 @@ interface NetLib {
430
330
  * @source https://wiki.facepunch.com/gmod/net.Start
431
331
  */
432
332
  Start(messageName: string, unreliable?: boolean): boolean;
433
- }
434
-
435
- interface NetLib {
436
333
  /**
437
334
  * Writes an angle to the current net message.
438
335
  * @realm shared
439
336
  * @source https://wiki.facepunch.com/gmod/net.WriteAngle
440
337
  */
441
338
  WriteAngle(angle: Angle): void;
442
- }
443
-
444
- interface NetLib {
445
339
  /**
446
340
  * Appends a boolean (as `1` or `0`) to the current net message.
447
341
  *
@@ -451,45 +345,30 @@ interface NetLib {
451
345
  * @source https://wiki.facepunch.com/gmod/net.WriteBit
452
346
  */
453
347
  WriteBit(boolean: boolean): void;
454
- }
455
-
456
- interface NetLib {
457
348
  /**
458
349
  * Appends a boolean to the current net message. Alias of [net.WriteBit](https://wiki.facepunch.com/gmod/net.WriteBit).
459
350
  * @realm shared
460
351
  * @source https://wiki.facepunch.com/gmod/net.WriteBool
461
352
  */
462
353
  WriteBool(boolean: boolean): void;
463
- }
464
-
465
- interface NetLib {
466
354
  /**
467
355
  * Appends a [Color](https://wiki.facepunch.com/gmod/Color) to the current net message.
468
356
  * @realm shared
469
357
  * @source https://wiki.facepunch.com/gmod/net.WriteColor
470
358
  */
471
359
  WriteColor(Color: Color, writeAlpha?: boolean): void;
472
- }
473
-
474
- interface NetLib {
475
360
  /**
476
361
  * Writes a chunk of binary data to the message.
477
362
  * @realm shared
478
363
  * @source https://wiki.facepunch.com/gmod/net.WriteData
479
364
  */
480
365
  WriteData(binaryData: string, length?: number): void;
481
- }
482
-
483
- interface NetLib {
484
366
  /**
485
367
  * Appends a double-precision number to the current net message.
486
368
  * @realm shared
487
369
  * @source https://wiki.facepunch.com/gmod/net.WriteDouble
488
370
  */
489
371
  WriteDouble(double: number): void;
490
- }
491
-
492
- interface NetLib {
493
372
  /**
494
373
  * Appends an entity to the current net message using its [Entity:EntIndex](https://wiki.facepunch.com/gmod/Entity:EntIndex).
495
374
  *
@@ -499,18 +378,12 @@ interface NetLib {
499
378
  * @source https://wiki.facepunch.com/gmod/net.WriteEntity
500
379
  */
501
380
  WriteEntity(entity: Entity): void;
502
- }
503
-
504
- interface NetLib {
505
381
  /**
506
382
  * Appends a float (number with decimals) to the current net message.
507
383
  * @realm shared
508
384
  * @source https://wiki.facepunch.com/gmod/net.WriteFloat
509
385
  */
510
386
  WriteFloat(float: number): void;
511
- }
512
-
513
- interface NetLib {
514
387
  /**
515
388
  * 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
389
  *
@@ -520,18 +393,12 @@ interface NetLib {
520
393
  * @source https://wiki.facepunch.com/gmod/net.WriteInt
521
394
  */
522
395
  WriteInt(integer: number, bitCount: number): void;
523
- }
524
-
525
- interface NetLib {
526
396
  /**
527
397
  * Writes a [VMatrix](https://wiki.facepunch.com/gmod/VMatrix) to the current net message.
528
398
  * @realm shared
529
399
  * @source https://wiki.facepunch.com/gmod/net.WriteMatrix
530
400
  */
531
401
  WriteMatrix(matrix: VMatrix): void;
532
- }
533
-
534
- interface NetLib {
535
402
  /**
536
403
  * Writes a normalized/direction vector ( Vector with length of 1 ) to the net message.
537
404
  *
@@ -541,9 +408,6 @@ interface NetLib {
541
408
  * @source https://wiki.facepunch.com/gmod/net.WriteNormal
542
409
  */
543
410
  WriteNormal(normal: Vector): void;
544
- }
545
-
546
- interface NetLib {
547
411
  /**
548
412
  * 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
413
  *
@@ -552,9 +416,6 @@ interface NetLib {
552
416
  * @source https://wiki.facepunch.com/gmod/net.WritePlayer
553
417
  */
554
418
  WritePlayer(ply: Player): void;
555
- }
556
-
557
- interface NetLib {
558
419
  /**
559
420
  * 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
421
  *
@@ -564,9 +425,6 @@ interface NetLib {
564
425
  * @source https://wiki.facepunch.com/gmod/net.WriteString
565
426
  */
566
427
  WriteString(string: string): void;
567
- }
568
-
569
- interface NetLib {
570
428
  /**
571
429
  * 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
430
  *
@@ -577,9 +435,6 @@ interface NetLib {
577
435
  * @source https://wiki.facepunch.com/gmod/net.WriteTable
578
436
  */
579
437
  WriteTable(table: table, sequential?: boolean): void;
580
- }
581
-
582
- interface NetLib {
583
438
  /**
584
439
  * **INTERNAL**: Used internally by [net.WriteTable](https://wiki.facepunch.com/gmod/net.WriteTable).
585
440
  *
@@ -593,9 +448,6 @@ interface NetLib {
593
448
  * @source https://wiki.facepunch.com/gmod/net.WriteType
594
449
  */
595
450
  WriteType(Data: any): void;
596
- }
597
-
598
- interface NetLib {
599
451
  /**
600
452
  * Appends an unsigned integer with the specified number of bits to the current net message.
601
453
  *
@@ -608,9 +460,6 @@ interface NetLib {
608
460
  * @source https://wiki.facepunch.com/gmod/net.WriteUInt
609
461
  */
610
462
  WriteUInt(unsignedInteger: number, bitCount: number): void;
611
- }
612
-
613
- interface NetLib {
614
463
  /**
615
464
  * Appends an unsigned integer with 64 bits to the current net message.
616
465
  *
@@ -624,9 +473,6 @@ interface NetLib {
624
473
  * @source https://wiki.facepunch.com/gmod/net.WriteUInt64
625
474
  */
626
475
  WriteUInt64(uint64: string): void;
627
- }
628
-
629
- interface NetLib {
630
476
  /**
631
477
  * Appends a vector to the current net message.
632
478
  * 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).
@@ -637,3 +483,55 @@ interface NetLib {
637
483
  WriteVector(vector: Vector): void;
638
484
  }
639
485
 
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+
536
+
537
+