@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/ents.d.tlua CHANGED
@@ -18,20 +18,14 @@ interface EntsLib {
18
18
  * @source https://wiki.facepunch.com/gmod/ents.Create
19
19
  */
20
20
  Create(class: string): Entity;
21
- }
22
-
23
21
 
24
- interface EntsLib {
25
22
  /**
26
23
  * Creates a clientside only prop with optional physics.
27
24
  * @realm client
28
25
  * @source https://wiki.facepunch.com/gmod/ents.CreateClientProp
29
26
  */
30
27
  CreateClientProp(model?: string): Entity;
31
- }
32
-
33
28
 
34
- interface EntsLib {
35
29
  /**
36
30
  * Creates a clientside only rope, similar to those used by the Dog and Fast
37
31
  * Zombie models from Half-Life 2. Created ropes are automatically cleaned up
@@ -43,10 +37,7 @@ interface EntsLib {
43
37
  * @source https://wiki.facepunch.com/gmod/ents.CreateClientRope
44
38
  */
45
39
  CreateClientRope(ent1: Entity, ent1attach: number | Vector, ent2: Entity, ent2attach: number | Vector, extra?: table): Entity;
46
- }
47
-
48
40
 
49
- interface EntsLib {
50
41
  /**
51
42
  * Creates a clientside only scripted entity. The scripted entity must be of
52
43
  * "anim" type.
@@ -58,10 +49,7 @@ interface EntsLib {
58
49
  * @source https://wiki.facepunch.com/gmod/ents.CreateClientside
59
50
  */
60
51
  CreateClientside(class: string): Entity;
61
- }
62
-
63
52
 
64
- interface EntsLib {
65
53
  /**
66
54
  * Returns a table of all entities along the ray. The ray does not stop on collisions, meaning it will go through walls/entities.
67
55
  *
@@ -73,9 +61,7 @@ interface EntsLib {
73
61
  * @source https://wiki.facepunch.com/gmod/ents.FindAlongRay
74
62
  */
75
63
  FindAlongRay(start: Vector, _end: Vector, mins?: Vector, maxs?: Vector): Entity[];
76
- }
77
64
 
78
- interface EntsLib {
79
65
  /**
80
66
  * Gets all entities with the given class, supports wildcards.
81
67
  *
@@ -87,18 +73,14 @@ interface EntsLib {
87
73
  * @source https://wiki.facepunch.com/gmod/ents.FindByClass
88
74
  */
89
75
  FindByClass(_class: string): Entity[];
90
- }
91
76
 
92
- interface EntsLib {
93
77
  /**
94
78
  * Finds all entities that are of given class and are children of given entity. This works internally by iterating over [ents.FindByClass](https://wiki.facepunch.com/gmod/ents.FindByClass).
95
79
  * @realm shared
96
80
  * @source https://wiki.facepunch.com/gmod/ents.FindByClassAndParent
97
81
  */
98
82
  FindByClassAndParent(_class: string, parent: Entity): Entity[];
99
- }
100
83
 
101
- interface EntsLib {
102
84
  /**
103
85
  * Gets all entities with the given model, supports wildcards.
104
86
  *
@@ -108,9 +90,7 @@ interface EntsLib {
108
90
  * @source https://wiki.facepunch.com/gmod/ents.FindByModel
109
91
  */
110
92
  FindByModel(model: string): Entity[];
111
- }
112
93
 
113
- interface EntsLib {
114
94
  /**
115
95
  * Gets all entities with the given hammer targetname. This works internally by iterating over [ents.GetAll](https://wiki.facepunch.com/gmod/ents.GetAll).
116
96
  *
@@ -120,9 +100,7 @@ interface EntsLib {
120
100
  * @source https://wiki.facepunch.com/gmod/ents.FindByName
121
101
  */
122
102
  FindByName(name: string): Entity[];
123
- }
124
103
 
125
- interface EntsLib {
126
104
  /**
127
105
  * Returns all entities within the specified box.
128
106
  *
@@ -136,9 +114,7 @@ interface EntsLib {
136
114
  * @source https://wiki.facepunch.com/gmod/ents.FindInBox
137
115
  */
138
116
  FindInBox(boxMins: Vector, boxMaxs: Vector): Entity[];
139
- }
140
117
 
141
- interface EntsLib {
142
118
  /**
143
119
  * Finds and returns all entities within the specified cone. Only entities whose [Entity:WorldSpaceCenter](https://wiki.facepunch.com/gmod/Entity:WorldSpaceCenter) is within the cone are considered to be in it.
144
120
  *
@@ -152,9 +128,7 @@ interface EntsLib {
152
128
  * @source https://wiki.facepunch.com/gmod/ents.FindInCone
153
129
  */
154
130
  FindInCone(origin: Vector, normal: Vector, range: number, angle_cos: number): Entity[];
155
- }
156
131
 
157
- interface EntsLib {
158
132
  /**
159
133
  * Finds all entities that lie within a [PVS (Potential Visibility Set)](https://developer.valvesoftware.com/wiki/PVS "PVS - Valve Developer Community").
160
134
  *
@@ -165,9 +139,7 @@ interface EntsLib {
165
139
  * @source https://wiki.facepunch.com/gmod/ents.FindInPVS
166
140
  */
167
141
  FindInPVS(viewPoint: Entity | Vector): Entity[];
168
- }
169
142
 
170
- interface EntsLib {
171
143
  /**
172
144
  * Gets all entities within the specified sphere.
173
145
  *
@@ -177,18 +149,14 @@ interface EntsLib {
177
149
  * @source https://wiki.facepunch.com/gmod/ents.FindInSphere
178
150
  */
179
151
  FindInSphere(origin: Vector, radius: number): Entity[];
180
- }
181
152
 
182
- interface EntsLib {
183
153
  /**
184
154
  * Fires a use event.
185
155
  * @realm server
186
156
  * @source https://wiki.facepunch.com/gmod/ents.FireTargets
187
157
  */
188
158
  FireTargets(target: string, activator: Entity, caller: Entity, usetype: USE, value: number): void;
189
- }
190
159
 
191
- interface EntsLib {
192
160
  /**
193
161
  * Returns a table of all existing entities.
194
162
  *
@@ -199,18 +167,14 @@ interface EntsLib {
199
167
  * @source https://wiki.facepunch.com/gmod/ents.GetAll
200
168
  */
201
169
  GetAll(): Entity[];
202
- }
203
170
 
204
- interface EntsLib {
205
171
  /**
206
172
  * Returns an entity by its index. Same as [Global.Entity](https://wiki.facepunch.com/gmod/Global.Entity).
207
173
  * @realm shared
208
174
  * @source https://wiki.facepunch.com/gmod/ents.GetByIndex
209
175
  */
210
176
  GetByIndex(entIdx: number): Entity;
211
- }
212
177
 
213
- interface EntsLib {
214
178
  /**
215
179
  * Gives you the amount of currently existing entities.
216
180
  *
@@ -221,9 +185,7 @@ interface EntsLib {
221
185
  * @source https://wiki.facepunch.com/gmod/ents.GetCount
222
186
  */
223
187
  GetCount(IncludeKillMe?: boolean): number;
224
- }
225
188
 
226
- interface EntsLib {
227
189
  /**
228
190
  * Returns the amount of networked entities, which is limited to 8192.
229
191
  *
@@ -235,9 +197,7 @@ interface EntsLib {
235
197
  * @source https://wiki.facepunch.com/gmod/ents.GetEdictCount
236
198
  */
237
199
  GetEdictCount(): number;
238
- }
239
200
 
240
- interface EntsLib {
241
201
  /**
242
202
  * Returns entity that has given [Entity:MapCreationID](https://wiki.facepunch.com/gmod/Entity:MapCreationID).
243
203
  *
@@ -248,9 +208,7 @@ interface EntsLib {
248
208
  * @source https://wiki.facepunch.com/gmod/ents.GetMapCreatedEntity
249
209
  */
250
210
  GetMapCreatedEntity(id: number): Entity | nil;
251
- }
252
211
 
253
- interface EntsLib {
254
212
  /**
255
213
  * Returns a Stateless Iterator for all entities, intended for use in generic
256
214
  * for-loops. Internally uses cached values stored in Lua, making it more
@@ -263,5 +221,3 @@ interface EntsLib {
263
221
  */
264
222
  Iterator(): ((tbl: any, prev?: number) => (number, Entity), Entity[], number);
265
223
  }
266
-
267
-
@@ -7079,4 +7079,3 @@ declare kRenderFxRagdoll: kRenderFx;
7079
7079
  * Quickly pulses the entitys transparency, from 0 to 255.
7080
7080
  */
7081
7081
  declare kRenderFxPulseFastWider: kRenderFx;
7082
-
package/types/file.d.tlua CHANGED
@@ -22,72 +22,56 @@ interface File {
22
22
  * @source https://wiki.facepunch.com/gmod/File:Close
23
23
  */
24
24
  Close(self: File): void;
25
- }
26
25
 
27
- interface File {
28
26
  /**
29
27
  * Returns whether the [File](https://wiki.facepunch.com/gmod/File) object has reached the end of file or not.
30
28
  * @realm shared and menu
31
29
  * @source https://wiki.facepunch.com/gmod/File:EndOfFile
32
30
  */
33
31
  EndOfFile(self: File): boolean;
34
- }
35
32
 
36
- interface File {
37
33
  /**
38
34
  * Dumps the file changes to disk and saves the file.
39
35
  * @realm shared and menu
40
36
  * @source https://wiki.facepunch.com/gmod/File:Flush
41
37
  */
42
38
  Flush(self: File): void;
43
- }
44
39
 
45
- interface File {
46
40
  /**
47
41
  * Reads the specified amount of chars and returns them as a binary string.
48
42
  * @realm shared and menu
49
43
  * @source https://wiki.facepunch.com/gmod/File:Read
50
44
  */
51
45
  Read(self: File, length?: number): string;
52
- }
53
46
 
54
- interface File {
55
47
  /**
56
48
  * Reads one byte of the file and returns whether that byte was not 0.
57
49
  * @realm shared and menu
58
50
  * @source https://wiki.facepunch.com/gmod/File:ReadBool
59
51
  */
60
52
  ReadBool(self: File): boolean;
61
- }
62
53
 
63
- interface File {
64
54
  /**
65
55
  * Reads one unsigned 8-bit integer from the file.
66
56
  * @realm shared and menu
67
57
  * @source https://wiki.facepunch.com/gmod/File:ReadByte
68
58
  */
69
59
  ReadByte(self: File): number;
70
- }
71
60
 
72
- interface File {
73
61
  /**
74
62
  * Reads an 8-byte little-endian IEEE-754 floating point double from the file.
75
63
  * @realm shared and menu
76
64
  * @source https://wiki.facepunch.com/gmod/File:ReadDouble
77
65
  */
78
66
  ReadDouble(self: File): number;
79
- }
80
67
 
81
- interface File {
82
68
  /**
83
69
  * Reads an IEEE 754 little-endian 4-byte float from the file.
84
70
  * @realm shared and menu
85
71
  * @source https://wiki.facepunch.com/gmod/File:ReadFloat
86
72
  */
87
73
  ReadFloat(self: File): number;
88
- }
89
74
 
90
- interface File {
91
75
  /**
92
76
  * Returns the contents of the file from the current position up until the end of the current line.
93
77
  *
@@ -102,171 +86,133 @@ interface File {
102
86
  * @source https://wiki.facepunch.com/gmod/File:ReadLine
103
87
  */
104
88
  ReadLine(self: File): string;
105
- }
106
89
 
107
- interface File {
108
90
  /**
109
91
  * Reads a signed little-endian 32-bit integer from the file.
110
92
  * @realm shared and menu
111
93
  * @source https://wiki.facepunch.com/gmod/File:ReadLong
112
94
  */
113
95
  ReadLong(self: File): number;
114
- }
115
96
 
116
- interface File {
117
97
  /**
118
98
  * Reads a signed little-endian 16-bit integer from the file.
119
99
  * @realm shared and menu
120
100
  * @source https://wiki.facepunch.com/gmod/File:ReadShort
121
101
  */
122
102
  ReadShort(self: File): number;
123
- }
124
103
 
125
- interface File {
126
104
  /**
127
105
  * Reads an unsigned 64-bit integer from the file.
128
106
  * @realm shared and menu
129
107
  * @source https://wiki.facepunch.com/gmod/File:ReadUInt64
130
108
  */
131
109
  ReadUInt64(self: File): string;
132
- }
133
110
 
134
- interface File {
135
111
  /**
136
112
  * Reads an unsigned little-endian 32-bit integer from the file.
137
113
  * @realm shared and menu
138
114
  * @source https://wiki.facepunch.com/gmod/File:ReadULong
139
115
  */
140
116
  ReadULong(self: File): number;
141
- }
142
117
 
143
- interface File {
144
118
  /**
145
119
  * Reads an unsigned little-endian 16-bit integer from the file.
146
120
  * @realm shared and menu
147
121
  * @source https://wiki.facepunch.com/gmod/File:ReadUShort
148
122
  */
149
123
  ReadUShort(self: File): number;
150
- }
151
124
 
152
- interface File {
153
125
  /**
154
126
  * Sets the file pointer to the specified position.
155
127
  * @realm shared and menu
156
128
  * @source https://wiki.facepunch.com/gmod/File:Seek
157
129
  */
158
130
  Seek(self: File, pos: number): void;
159
- }
160
131
 
161
- interface File {
162
132
  /**
163
133
  * Returns the size of the file in bytes.
164
134
  * @realm shared and menu
165
135
  * @source https://wiki.facepunch.com/gmod/File:Size
166
136
  */
167
137
  Size(self: File): number;
168
- }
169
138
 
170
- interface File {
171
139
  /**
172
140
  * Moves the file pointer by the specified amount of chars.
173
141
  * @realm shared and menu
174
142
  * @source https://wiki.facepunch.com/gmod/File:Skip
175
143
  */
176
144
  Skip(self: File, amount: number): number;
177
- }
178
145
 
179
- interface File {
180
146
  /**
181
147
  * Returns the current position of the file pointer.
182
148
  * @realm shared and menu
183
149
  * @source https://wiki.facepunch.com/gmod/File:Tell
184
150
  */
185
151
  Tell(self: File): number;
186
- }
187
152
 
188
- interface File {
189
153
  /**
190
154
  * Writes the given string into the file.
191
155
  * @realm shared and menu
192
156
  * @source https://wiki.facepunch.com/gmod/File:Write
193
157
  */
194
158
  Write(self: File, data: string): void;
195
- }
196
159
 
197
- interface File {
198
160
  /**
199
161
  * Writes a boolean value to the file as one **byte**.
200
162
  * @realm shared and menu
201
163
  * @source https://wiki.facepunch.com/gmod/File:WriteBool
202
164
  */
203
165
  WriteBool(self: File, bool: boolean): void;
204
- }
205
166
 
206
- interface File {
207
167
  /**
208
168
  * Write an 8-bit unsigned integer to the file.
209
169
  * @realm shared and menu
210
170
  * @source https://wiki.facepunch.com/gmod/File:WriteByte
211
171
  */
212
172
  WriteByte(self: File, uint8: number): void;
213
- }
214
173
 
215
- interface File {
216
174
  /**
217
175
  * Writes an 8-byte little-endian IEEE-754 floating point double to the file.
218
176
  * @realm shared and menu
219
177
  * @source https://wiki.facepunch.com/gmod/File:WriteDouble
220
178
  */
221
179
  WriteDouble(self: File, double: number): void;
222
- }
223
180
 
224
- interface File {
225
181
  /**
226
182
  * Writes an IEEE 754 little-endian 4-byte float to the file.
227
183
  * @realm shared and menu
228
184
  * @source https://wiki.facepunch.com/gmod/File:WriteFloat
229
185
  */
230
186
  WriteFloat(self: File, float: number): void;
231
- }
232
187
 
233
- interface File {
234
188
  /**
235
189
  * Writes a signed little-endian 32-bit integer to the file.
236
190
  * @realm shared and menu
237
191
  * @source https://wiki.facepunch.com/gmod/File:WriteLong
238
192
  */
239
193
  WriteLong(self: File, int32: number): void;
240
- }
241
194
 
242
- interface File {
243
195
  /**
244
196
  * Writes a signed little-endian 16-bit integer to the file.
245
197
  * @realm shared and menu
246
198
  * @source https://wiki.facepunch.com/gmod/File:WriteShort
247
199
  */
248
200
  WriteShort(self: File, int16: number): void;
249
- }
250
201
 
251
- interface File {
252
202
  /**
253
203
  * Writes an unsigned 64-bit integer to the file.
254
204
  * @realm shared and menu
255
205
  * @source https://wiki.facepunch.com/gmod/File:WriteUInt64
256
206
  */
257
207
  WriteUInt64(self: File, uint64: string): void;
258
- }
259
208
 
260
- interface File {
261
209
  /**
262
210
  * Writes an unsigned little-endian 32-bit integer to the file.
263
211
  * @realm shared and menu
264
212
  * @source https://wiki.facepunch.com/gmod/File:WriteULong
265
213
  */
266
214
  WriteULong(self: File, uint32: number): void;
267
- }
268
215
 
269
- interface File {
270
216
  /**
271
217
  * Writes an unsigned little-endian 16-bit integer to the file.
272
218
  * @realm shared and menu
@@ -282,9 +228,7 @@ interface FileLib {
282
228
  * @source https://wiki.facepunch.com/gmod/file.Append
283
229
  */
284
230
  Append(name: string, content: string): boolean;
285
- }
286
231
 
287
- interface FileLib {
288
232
  /**
289
233
  * Returns the content of a file asynchronously.
290
234
  *
@@ -294,18 +238,14 @@ interface FileLib {
294
238
  * @source https://wiki.facepunch.com/gmod/file.AsyncRead
295
239
  */
296
240
  AsyncRead(fileName: string, gamePath: string, callback: (fileName: string, gamePath: string, status: number, data: string) => void, sync?: boolean): FSASYNC;
297
- }
298
241
 
299
- interface FileLib {
300
242
  /**
301
243
  * Creates a directory that is relative to the `data` folder.
302
244
  * @realm shared and menu
303
245
  * @source https://wiki.facepunch.com/gmod/file.CreateDir
304
246
  */
305
247
  CreateDir(name: string): void;
306
- }
307
248
 
308
- interface FileLib {
309
249
  /**
310
250
  * Deletes a file or `empty` folder that is relative to the **data** folder. You can't remove any files outside of **data** folder.
311
251
  * **NOTE**: You are able to delete **any** file in the Menu state.
@@ -315,9 +255,7 @@ interface FileLib {
315
255
  * @source https://wiki.facepunch.com/gmod/file.Delete
316
256
  */
317
257
  Delete(name: string, path?: string): boolean;
318
- }
319
258
 
320
- interface FileLib {
321
259
  /**
322
260
  * Returns a boolean of whether the file or directory exists or not.
323
261
  * If you want to check for a directory, [file.IsDir](https://wiki.facepunch.com/gmod/file.IsDir) will be faster since it won't check for files.
@@ -326,9 +264,7 @@ interface FileLib {
326
264
  * @source https://wiki.facepunch.com/gmod/file.Exists
327
265
  */
328
266
  Exists(name: string, gamePath: string): boolean;
329
- }
330
267
 
331
- interface FileLib {
332
268
  /**
333
269
  * Returns a list of files and directories inside a single folder.
334
270
  * **WARNING**: It seems that paths with capital letters (e.g. lua/MyFolder/*) don't work as expected on Linux.
@@ -338,9 +274,7 @@ interface FileLib {
338
274
  * @source https://wiki.facepunch.com/gmod/file.Find
339
275
  */
340
276
  Find(name: string, path: string, sorting?: string): (table, table);
341
- }
342
277
 
343
- interface FileLib {
344
278
  /**
345
279
  * Returns whether the given file is a directory or not.
346
280
  *
@@ -348,9 +282,7 @@ interface FileLib {
348
282
  * @source https://wiki.facepunch.com/gmod/file.IsDir
349
283
  */
350
284
  IsDir(fileName: string, gamePath: string): boolean;
351
- }
352
285
 
353
- interface FileLib {
354
286
  /**
355
287
  * Attempts to open a file with the given mode.
356
288
  * **WARNING**: When trying to open files with the following characteristics, it returns nil:
@@ -363,9 +295,7 @@ interface FileLib {
363
295
  * @source https://wiki.facepunch.com/gmod/file.Open
364
296
  */
365
297
  Open(fileName: string, fileMode: string, gamePath: string): file_class;
366
- }
367
298
 
368
- interface FileLib {
369
299
  /**
370
300
  * Returns the content of a file.
371
301
  *
@@ -376,9 +306,7 @@ interface FileLib {
376
306
  * @source https://wiki.facepunch.com/gmod/file.Read
377
307
  */
378
308
  Read(fileName: string, gamePath?: string): string;
379
- }
380
309
 
381
- interface FileLib {
382
310
  /**
383
311
  * Attempts to rename a file with the given name to another given name.
384
312
  *
@@ -388,27 +316,21 @@ interface FileLib {
388
316
  * @source https://wiki.facepunch.com/gmod/file.Rename
389
317
  */
390
318
  Rename(orignalFileName: string, targetFileName: string): boolean;
391
- }
392
319
 
393
- interface FileLib {
394
320
  /**
395
321
  * Returns the file's size in bytes.
396
322
  * @realm shared and menu
397
323
  * @source https://wiki.facepunch.com/gmod/file.Size
398
324
  */
399
325
  Size(fileName: string, gamePath: string): number;
400
- }
401
326
 
402
- interface FileLib {
403
327
  /**
404
328
  * Returns when the file or folder was last modified in Unix time.
405
329
  * @realm shared and menu
406
330
  * @source https://wiki.facepunch.com/gmod/file.Time
407
331
  */
408
332
  Time(path: string, gamePath: string): number;
409
- }
410
333
 
411
- interface FileLib {
412
334
  /**
413
335
  * Writes the given string to a file. Erases all previous data in the file. To add data without deleting previous data, use [file.Append](https://wiki.facepunch.com/gmod/file.Append).
414
336
  * @realm shared and menu
@@ -416,4 +338,3 @@ interface FileLib {
416
338
  */
417
339
  Write(fileName: string, content: string): boolean;
418
340
  }
419
-
@@ -4,4 +4,3 @@ interface File {}
4
4
 
5
5
  // The `file_class` value-side type inherits the File methods.
6
6
  interface file_class extends File {}
7
-
@@ -9,4 +9,3 @@
9
9
  * @source https://wiki.facepunch.com/gmod/fingerposer
10
10
  */
11
11
  interface fingerposer extends ContextBase {}
12
-
@@ -10,4 +10,3 @@
10
10
  * @source https://wiki.facepunch.com/gmod/FingerVar
11
11
  */
12
12
  interface FingerVar extends Panel {}
13
-
@@ -8,4 +8,3 @@
8
8
  * @deprecated You should use DFrame instead.
9
9
  */
10
10
  interface Frame extends Panel {}
11
-
@@ -17,9 +17,7 @@ interface Frame_blendLib {
17
17
  * @source https://wiki.facepunch.com/gmod/frame_blend.AddFrame
18
18
  */
19
19
  AddFrame(): void;
20
- }
21
20
 
22
- interface Frame_blendLib {
23
21
  /**
24
22
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
25
23
  *
@@ -30,9 +28,7 @@ interface Frame_blendLib {
30
28
  * @source https://wiki.facepunch.com/gmod/frame_blend.BlendFrame
31
29
  */
32
30
  BlendFrame(): void;
33
- }
34
31
 
35
- interface Frame_blendLib {
36
32
  /**
37
33
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
38
34
  *
@@ -43,9 +39,7 @@ interface Frame_blendLib {
43
39
  * @source https://wiki.facepunch.com/gmod/frame_blend.CompleteFrame
44
40
  */
45
41
  CompleteFrame(): void;
46
- }
47
42
 
48
- interface Frame_blendLib {
49
43
  /**
50
44
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
51
45
  *
@@ -56,18 +50,14 @@ interface Frame_blendLib {
56
50
  * @source https://wiki.facepunch.com/gmod/frame_blend.DrawPreview
57
51
  */
58
52
  DrawPreview(): void;
59
- }
60
53
 
61
- interface Frame_blendLib {
62
54
  /**
63
55
  * Returns whether frame blend post processing effect is enabled or not.
64
56
  * @realm client
65
57
  * @source https://wiki.facepunch.com/gmod/frame_blend.IsActive
66
58
  */
67
59
  IsActive(): boolean;
68
- }
69
60
 
70
- interface Frame_blendLib {
71
61
  /**
72
62
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
73
63
  *
@@ -79,9 +69,7 @@ interface Frame_blendLib {
79
69
  * @source https://wiki.facepunch.com/gmod/frame_blend.IsLastFrame
80
70
  */
81
71
  IsLastFrame(): boolean;
82
- }
83
72
 
84
- interface Frame_blendLib {
85
73
  /**
86
74
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
87
75
  *
@@ -92,9 +80,7 @@ interface Frame_blendLib {
92
80
  * @source https://wiki.facepunch.com/gmod/frame_blend.RenderableFrames
93
81
  */
94
82
  RenderableFrames(): number;
95
- }
96
83
 
97
- interface Frame_blendLib {
98
84
  /**
99
85
  * Returns whether we should skip frame or not.
100
86
  * @realm client
@@ -102,4 +88,3 @@ interface Frame_blendLib {
102
88
  */
103
89
  ShouldSkipFrame(): boolean;
104
90
  }
105
-