@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
@@ -13,9 +13,7 @@ interface TimerLib {
13
13
  * @source https://wiki.facepunch.com/gmod/timer.Adjust
14
14
  */
15
15
  Adjust(identifier: any, delay: number, repetitions?: number, func?: function): boolean;
16
- }
17
16
 
18
- interface TimerLib {
19
17
  /**
20
18
  * This function does nothing.
21
19
  * @realm shared and menu
@@ -23,9 +21,7 @@ interface TimerLib {
23
21
  * @deprecated If you want to check if whether or not a timer exists, use timer.Exists.
24
22
  */
25
23
  Check(): void;
26
- }
27
24
 
28
- interface TimerLib {
29
25
  /**
30
26
  * Creates a new timer that will repeat its function given amount of times.
31
27
  * This function also requires the timer to be named, which allows you to control it after it was created via the [timer](https://wiki.facepunch.com/gmod/timer).
@@ -39,9 +35,7 @@ interface TimerLib {
39
35
  * @source https://wiki.facepunch.com/gmod/timer.Create
40
36
  */
41
37
  Create(identifier: string, delay: number, repetitions: number, func: function): void;
42
- }
43
38
 
44
- interface TimerLib {
45
39
  /**
46
40
  * Stops and destroys the given timer. Alias of [timer.Remove](https://wiki.facepunch.com/gmod/timer.Remove).
47
41
  * @realm shared and menu
@@ -49,9 +43,7 @@ interface TimerLib {
49
43
  * @deprecated You should be using timer.Remove instead.
50
44
  */
51
45
  Destroy(identifier: string): void;
52
- }
53
46
 
54
- interface TimerLib {
55
47
  /**
56
48
  * Returns whenever the given timer exists or not.
57
49
  *
@@ -66,9 +58,7 @@ interface TimerLib {
66
58
  * @source https://wiki.facepunch.com/gmod/timer.Exists
67
59
  */
68
60
  Exists(identifier: string): boolean;
69
- }
70
61
 
71
- interface TimerLib {
72
62
  /**
73
63
  * Returns whenever the given timer is paused or not. ([timer.Pause](https://wiki.facepunch.com/gmod/timer.Pause))
74
64
  *
@@ -77,18 +67,14 @@ interface TimerLib {
77
67
  * @source https://wiki.facepunch.com/gmod/timer.IsPaused
78
68
  */
79
69
  IsPaused(identifier: string): boolean;
80
- }
81
70
 
82
- interface TimerLib {
83
71
  /**
84
72
  * Pauses the given timer.
85
73
  * @realm shared and menu
86
74
  * @source https://wiki.facepunch.com/gmod/timer.Pause
87
75
  */
88
76
  Pause(identifier: any): void;
89
- }
90
77
 
91
- interface TimerLib {
92
78
  /**
93
79
  * Stops and removes a timer created by [timer.Create](https://wiki.facepunch.com/gmod/timer.Create).
94
80
  * **WARNING**: The timers are removed in the next frame! Keep this in mind when storing identifiers in variables.
@@ -98,9 +84,7 @@ interface TimerLib {
98
84
  * @source https://wiki.facepunch.com/gmod/timer.Remove
99
85
  */
100
86
  Remove(identifier: string): void;
101
- }
102
87
 
103
- interface TimerLib {
104
88
  /**
105
89
  * Returns amount of repetitions/executions left before the timer destroys itself.
106
90
  *
@@ -108,9 +92,7 @@ interface TimerLib {
108
92
  * @source https://wiki.facepunch.com/gmod/timer.RepsLeft
109
93
  */
110
94
  RepsLeft(identifier: any): number;
111
- }
112
95
 
113
- interface TimerLib {
114
96
  /**
115
97
  * Creates a simple timer that runs the given function after a specified delay.
116
98
  *
@@ -141,9 +123,7 @@ interface TimerLib {
141
123
  * @source https://wiki.facepunch.com/gmod/timer.Simple
142
124
  */
143
125
  Simple(delay: number, func: function): void;
144
- }
145
126
 
146
- interface TimerLib {
147
127
  /**
148
128
  * Restarts the given timer.
149
129
  *
@@ -154,18 +134,14 @@ interface TimerLib {
154
134
  * @source https://wiki.facepunch.com/gmod/timer.Start
155
135
  */
156
136
  Start(identifier: any): void;
157
- }
158
137
 
159
- interface TimerLib {
160
138
  /**
161
139
  * Stops the given timer and rewinds it.
162
140
  * @realm shared and menu
163
141
  * @source https://wiki.facepunch.com/gmod/timer.Stop
164
142
  */
165
143
  Stop(identifier: any): void;
166
- }
167
144
 
168
- interface TimerLib {
169
145
  /**
170
146
  * Returns amount of time left (in seconds) before the timer executes its function.
171
147
  *
@@ -176,18 +152,14 @@ interface TimerLib {
176
152
  * @source https://wiki.facepunch.com/gmod/timer.TimeLeft
177
153
  */
178
154
  TimeLeft(identifier: any): number;
179
- }
180
155
 
181
- interface TimerLib {
182
156
  /**
183
157
  * Runs either [timer.Pause](https://wiki.facepunch.com/gmod/timer.Pause) or [timer.UnPause](https://wiki.facepunch.com/gmod/timer.UnPause) based on the timer's current status.
184
158
  * @realm shared and menu
185
159
  * @source https://wiki.facepunch.com/gmod/timer.Toggle
186
160
  */
187
161
  Toggle(identifier: any): void;
188
- }
189
162
 
190
- interface TimerLib {
191
163
  /**
192
164
  * Unpauses the timer.
193
165
  * @realm shared and menu
@@ -195,4 +167,3 @@ interface TimerLib {
195
167
  */
196
168
  UnPause(identifier: any): void;
197
169
  }
198
-
package/types/tool.d.tlua CHANGED
@@ -6,9 +6,6 @@
6
6
  * You can find the hooks [here](https://wiki.facepunch.com/gmod/TOOL_Hooks), and members [here](https://wiki.facepunch.com/gmod/Structures/TOOL).
7
7
  * @source https://wiki.facepunch.com/gmod/Tool
8
8
  */
9
- interface Tool {}
10
- interface TOOL extends Tool {}
11
-
12
9
  interface Tool {
13
10
  /**
14
11
  * Called when [WEAPON:Deploy](https://wiki.facepunch.com/gmod/WEAPON:Deploy) of the toolgun is called.
@@ -18,18 +15,14 @@ interface Tool {
18
15
  * @source https://wiki.facepunch.com/gmod/TOOL:Deploy
19
16
  */
20
17
  Deploy(self: Tool): boolean;
21
- }
22
18
 
23
- interface Tool {
24
19
  /**
25
20
  * Called when [WEAPON:DrawHUD](https://wiki.facepunch.com/gmod/WEAPON:DrawHUD) of the toolgun is called, only when the user has this tool selected.
26
21
  * @realm client
27
22
  * @source https://wiki.facepunch.com/gmod/TOOL:DrawHUD
28
23
  */
29
24
  DrawHUD(self: Tool): void;
30
- }
31
25
 
32
- interface Tool {
33
26
  /**
34
27
  * Called after the default tool screen has been drawn from [WEAPON:RenderScreen](https://wiki.facepunch.com/gmod/WEAPON:RenderScreen).
35
28
  *
@@ -42,63 +35,49 @@ interface Tool {
42
35
  * @source https://wiki.facepunch.com/gmod/TOOL:DrawToolScreen
43
36
  */
44
37
  DrawToolScreen(self: Tool, width: number, height: number): void;
45
- }
46
38
 
47
- interface Tool {
48
39
  /**
49
40
  * Called when [WEAPON:Think](https://wiki.facepunch.com/gmod/WEAPON:Think) of the toolgun is called, only when the user has this tool selected.
50
41
  * @realm client
51
42
  * @source https://wiki.facepunch.com/gmod/TOOL:FreezeMovement
52
43
  */
53
44
  FreezeMovement(self: Tool): boolean;
54
- }
55
45
 
56
- interface Tool {
57
46
  /**
58
47
  * Called when [WEAPON:Holster](https://wiki.facepunch.com/gmod/WEAPON:Holster) of the toolgun is called, when switching between different toolguns.
59
48
  * @realm shared
60
49
  * @source https://wiki.facepunch.com/gmod/TOOL:Holster
61
50
  */
62
51
  Holster(self: Tool): void;
63
- }
64
52
 
65
- interface Tool {
66
53
  /**
67
54
  * Called when the user left clicks with the tool.
68
55
  * @realm shared
69
56
  * @source https://wiki.facepunch.com/gmod/TOOL:LeftClick
70
57
  */
71
58
  LeftClick(self: Tool, tr: TraceResult): boolean;
72
- }
73
59
 
74
- interface Tool {
75
60
  /**
76
61
  * Called when the user presses the reload key with the tool out.
77
62
  * @realm shared
78
63
  * @source https://wiki.facepunch.com/gmod/TOOL:Reload
79
64
  */
80
65
  Reload(self: Tool, tr: TraceResult): boolean;
81
- }
82
66
 
83
- interface Tool {
84
67
  /**
85
68
  * Called when the user right clicks with the tool.
86
69
  * @realm shared
87
70
  * @source https://wiki.facepunch.com/gmod/TOOL:RightClick
88
71
  */
89
72
  RightClick(self: Tool, tr: TraceResult): boolean;
90
- }
91
73
 
92
- interface Tool {
93
74
  /**
94
75
  * Called when [WEAPON:Think](https://wiki.facepunch.com/gmod/WEAPON:Think) of the toolgun is called. This only happens when the tool gun is currently equipped/selected by the player and the selected tool is this tool.
95
76
  * @realm shared
96
77
  * @source https://wiki.facepunch.com/gmod/TOOL:Think
97
78
  */
98
79
  Think(self: Tool): void;
99
- }
100
80
 
101
- interface Tool {
102
81
  /**
103
82
  * Called when the tool's control panel needs to be rebuilt.
104
83
  *
@@ -108,10 +87,7 @@ interface Tool {
108
87
  * @source https://wiki.facepunch.com/gmod/TOOL.BuildCPanel
109
88
  */
110
89
  BuildCPanel(panel: ControlPanel): void;
111
- }
112
90
 
113
-
114
- interface Tool {
115
91
  /**
116
92
  * Returns whether the tool is allowed to be used or not. This function ignores the [SANDBOX:CanTool](https://wiki.facepunch.com/gmod/SANDBOX:CanTool) hook.
117
93
  *
@@ -121,18 +97,14 @@ interface Tool {
121
97
  * @source https://wiki.facepunch.com/gmod/Tool:Allowed
122
98
  */
123
99
  Allowed(self: Tool): boolean;
124
- }
125
100
 
126
- interface Tool {
127
101
  /**
128
102
  * Builds a list of all ConVars set via the ClientConVar variable on the [Structures/TOOL](https://wiki.facepunch.com/gmod/Structures/TOOL) and their default values. This is used for the preset system.
129
103
  * @realm shared
130
104
  * @source https://wiki.facepunch.com/gmod/Tool:BuildConVarList
131
105
  */
132
106
  BuildConVarList(self: Tool): table;
133
- }
134
107
 
135
- interface Tool {
136
108
  /**
137
109
  * **INTERNAL**: This is called automatically for most toolgun actions so you shouldn't need to use it.
138
110
  *
@@ -143,18 +115,14 @@ interface Tool {
143
115
  * @source https://wiki.facepunch.com/gmod/Tool:CheckObjects
144
116
  */
145
117
  CheckObjects(self: Tool): void;
146
- }
147
118
 
148
- interface Tool {
149
119
  /**
150
120
  * Clears all objects previously set with [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
151
121
  * @realm shared
152
122
  * @source https://wiki.facepunch.com/gmod/Tool:ClearObjects
153
123
  */
154
124
  ClearObjects(self: Tool): void;
155
- }
156
125
 
157
- interface Tool {
158
126
  /**
159
127
  * **INTERNAL**: This is called automatically for all tools.
160
128
  *
@@ -164,9 +132,7 @@ interface Tool {
164
132
  * @source https://wiki.facepunch.com/gmod/Tool:Create
165
133
  */
166
134
  Create(self: Tool): Tool;
167
- }
168
135
 
169
- interface Tool {
170
136
  /**
171
137
  * **INTERNAL**: This is called automatically for all tools.
172
138
  *
@@ -177,63 +143,49 @@ interface Tool {
177
143
  * @source https://wiki.facepunch.com/gmod/Tool:CreateConVars
178
144
  */
179
145
  CreateConVars(self: Tool): void;
180
- }
181
146
 
182
- interface Tool {
183
147
  /**
184
148
  * Retrieves a physics bone number previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
185
149
  * @realm shared
186
150
  * @source https://wiki.facepunch.com/gmod/Tool:GetBone
187
151
  */
188
152
  GetBone(self: Tool, id: number): number;
189
- }
190
153
 
191
- interface Tool {
192
154
  /**
193
155
  * Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar) value as a [boolean](https://wiki.facepunch.com/gmod/boolean).
194
156
  * @realm shared
195
157
  * @source https://wiki.facepunch.com/gmod/Tool:GetClientBool
196
158
  */
197
159
  GetClientBool(self: Tool, name: string, _default?: boolean): number;
198
- }
199
160
 
200
- interface Tool {
201
161
  /**
202
162
  * Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar) as a [string](https://wiki.facepunch.com/gmod/string).
203
163
  * @realm shared
204
164
  * @source https://wiki.facepunch.com/gmod/Tool:GetClientInfo
205
165
  */
206
166
  GetClientInfo(self: Tool, name: string): string;
207
- }
208
167
 
209
- interface Tool {
210
168
  /**
211
169
  * Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar)'s value as a [number](https://wiki.facepunch.com/gmod/number).
212
170
  * @realm shared
213
171
  * @source https://wiki.facepunch.com/gmod/Tool:GetClientNumber
214
172
  */
215
173
  GetClientNumber(self: Tool, name: string, _default?: number): number;
216
- }
217
174
 
218
- interface Tool {
219
175
  /**
220
176
  * Retrieves an Entity previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
221
177
  * @realm shared
222
178
  * @source https://wiki.facepunch.com/gmod/Tool:GetEnt
223
179
  */
224
180
  GetEnt(self: Tool, id: number): Entity;
225
- }
226
181
 
227
- interface Tool {
228
182
  /**
229
183
  * Returns a language key based on this tool's name and the current stage it is on.
230
184
  * @realm shared
231
185
  * @source https://wiki.facepunch.com/gmod/Tool:GetHelpText
232
186
  */
233
187
  GetHelpText(self: Tool): string;
234
- }
235
188
 
236
- interface Tool {
237
189
  /**
238
190
  * Retrieves an local vector previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
239
191
  * See also [Tool:GetPos](https://wiki.facepunch.com/gmod/Tool:GetPos).
@@ -242,45 +194,35 @@ interface Tool {
242
194
  * @source https://wiki.facepunch.com/gmod/Tool:GetLocalPos
243
195
  */
244
196
  GetLocalPos(self: Tool, id: number): Vector;
245
- }
246
197
 
247
- interface Tool {
248
198
  /**
249
199
  * Returns the name of the current tool mode.
250
200
  * @realm shared
251
201
  * @source https://wiki.facepunch.com/gmod/Tool:GetMode
252
202
  */
253
203
  GetMode(self: Tool): string;
254
- }
255
204
 
256
- interface Tool {
257
205
  /**
258
206
  * Retrieves an normal vector previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
259
207
  * @realm shared
260
208
  * @source https://wiki.facepunch.com/gmod/Tool:GetNormal
261
209
  */
262
210
  GetNormal(self: Tool, id: number): Vector;
263
- }
264
211
 
265
- interface Tool {
266
212
  /**
267
213
  * Returns the current operation of the tool set by [Tool:SetOperation](https://wiki.facepunch.com/gmod/Tool:SetOperation).
268
214
  * @realm shared
269
215
  * @source https://wiki.facepunch.com/gmod/Tool:GetOperation
270
216
  */
271
217
  GetOperation(self: Tool): number;
272
- }
273
218
 
274
- interface Tool {
275
219
  /**
276
220
  * Returns the owner of this tool.
277
221
  * @realm shared
278
222
  * @source https://wiki.facepunch.com/gmod/Tool:GetOwner
279
223
  */
280
224
  GetOwner(self: Tool): Player;
281
- }
282
225
 
283
- interface Tool {
284
226
  /**
285
227
  * Retrieves an [PhysObj](https://wiki.facepunch.com/gmod/PhysObj) previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
286
228
  * See also [Tool:GetEnt](https://wiki.facepunch.com/gmod/Tool:GetEnt).
@@ -289,9 +231,7 @@ interface Tool {
289
231
  * @source https://wiki.facepunch.com/gmod/Tool:GetPhys
290
232
  */
291
233
  GetPhys(self: Tool, id: number): PhysObj;
292
- }
293
234
 
294
- interface Tool {
295
235
  /**
296
236
  * Retrieves a vector previously stored using Tool:SetObject. See also
297
237
  * Tool:GetLocalPos.
@@ -299,10 +239,7 @@ interface Tool {
299
239
  * @source https://wiki.facepunch.com/gmod/Tool:GetPos
300
240
  */
301
241
  GetPos(self: Tool, id?: number): Vector;
302
- }
303
242
 
304
-
305
- interface Tool {
306
243
  /**
307
244
  * Returns the Tool Gun (`gmod_tool`) Scripted [Weapon](https://wiki.facepunch.com/gmod/Weapon).
308
245
  * @realm shared
@@ -310,9 +247,7 @@ interface Tool {
310
247
  * @deprecated Use Tool:GetWeapon instead.
311
248
  */
312
249
  GetSWEP(self: Tool): Weapon;
313
- }
314
250
 
315
- interface Tool {
316
251
  /**
317
252
  * Attempts to grab a serverside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar).
318
253
  * This will not do anything on client, despite the function being defined shared.
@@ -321,27 +256,21 @@ interface Tool {
321
256
  * @source https://wiki.facepunch.com/gmod/Tool:GetServerInfo
322
257
  */
323
258
  GetServerInfo(self: Tool, name: string): string;
324
- }
325
259
 
326
- interface Tool {
327
260
  /**
328
261
  * Returns the current stage of the tool set by [Tool:SetStage](https://wiki.facepunch.com/gmod/Tool:SetStage).
329
262
  * @realm shared
330
263
  * @source https://wiki.facepunch.com/gmod/Tool:GetStage
331
264
  */
332
265
  GetStage(self: Tool): number;
333
- }
334
266
 
335
- interface Tool {
336
267
  /**
337
268
  * Returns the Tool Gun (`gmod_tool`) Scripted [Weapon](https://wiki.facepunch.com/gmod/Weapon).
338
269
  * @realm shared
339
270
  * @source https://wiki.facepunch.com/gmod/Tool:GetWeapon
340
271
  */
341
272
  GetWeapon(self: Tool): Weapon;
342
- }
343
273
 
344
- interface Tool {
345
274
  /**
346
275
  * Initializes the ghost entity with the given model. Removes any old ghost entity if called multiple times.
347
276
  *
@@ -351,9 +280,7 @@ interface Tool {
351
280
  * @source https://wiki.facepunch.com/gmod/Tool:MakeGhostEntity
352
281
  */
353
282
  MakeGhostEntity(self: Tool, model: string, pos: Vector, angle: Angle): void;
354
- }
355
283
 
356
- interface Tool {
357
284
  /**
358
285
  * Returns the amount of stored objects ( [Entity](https://wiki.facepunch.com/gmod/Entity)s ) the tool has.
359
286
  * Are TOOLs limited to 4 entities?
@@ -362,18 +289,14 @@ interface Tool {
362
289
  * @source https://wiki.facepunch.com/gmod/Tool:NumObjects
363
290
  */
364
291
  NumObjects(self: Tool): number;
365
- }
366
292
 
367
- interface Tool {
368
293
  /**
369
294
  * Automatically forces the tool's control panel to be rebuilt.
370
295
  * @realm client
371
296
  * @source https://wiki.facepunch.com/gmod/Tool:RebuildControlPanel
372
297
  */
373
298
  RebuildControlPanel(self: Tool, ...: any): void;
374
- }
375
299
 
376
- interface Tool {
377
300
  /**
378
301
  * Removes any ghost entity created for this tool.
379
302
  *
@@ -382,9 +305,7 @@ interface Tool {
382
305
  * @source https://wiki.facepunch.com/gmod/Tool:ReleaseGhostEntity
383
306
  */
384
307
  ReleaseGhostEntity(self: Tool): void;
385
- }
386
308
 
387
- interface Tool {
388
309
  /**
389
310
  * Stores an [Entity](https://wiki.facepunch.com/gmod/Entity) for later use in the tool.
390
311
  *
@@ -394,9 +315,7 @@ interface Tool {
394
315
  * @source https://wiki.facepunch.com/gmod/Tool:SetObject
395
316
  */
396
317
  SetObject(self: Tool, id: number, ent: Entity, pos: Vector, phys: PhysObj, bone: number, normal: Vector): void;
397
- }
398
318
 
399
- interface Tool {
400
319
  /**
401
320
  * Sets the current operation of the tool. Does nothing clientside. See also [Tool:SetStage](https://wiki.facepunch.com/gmod/Tool:SetStage).
402
321
  *
@@ -414,9 +333,7 @@ interface Tool {
414
333
  * @source https://wiki.facepunch.com/gmod/Tool:SetOperation
415
334
  */
416
335
  SetOperation(self: Tool, operation: number): void;
417
- }
418
336
 
419
- interface Tool {
420
337
  /**
421
338
  * Sets the current stage of the tool. Does nothing clientside.
422
339
  *
@@ -426,18 +343,14 @@ interface Tool {
426
343
  * @source https://wiki.facepunch.com/gmod/Tool:SetStage
427
344
  */
428
345
  SetStage(self: Tool, stage: number): void;
429
- }
430
346
 
431
- interface Tool {
432
347
  /**
433
348
  * Initializes the ghost entity based on the supplied entity.
434
349
  * @realm shared
435
350
  * @source https://wiki.facepunch.com/gmod/Tool:StartGhostEntity
436
351
  */
437
352
  StartGhostEntity(self: Tool, ent: Entity): void;
438
- }
439
353
 
440
- interface Tool {
441
354
  /**
442
355
  * **INTERNAL**: Called on deploy automatically
443
356
  *
@@ -448,9 +361,7 @@ interface Tool {
448
361
  * @source https://wiki.facepunch.com/gmod/Tool:UpdateData
449
362
  */
450
363
  UpdateData(self: Tool): void;
451
- }
452
364
 
453
- interface Tool {
454
365
  /**
455
366
  * Updates the position and orientation of the ghost entity based on where the toolgun owner is looking along with data from object with id 1 set by [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
456
367
  *
@@ -463,4 +374,4 @@ interface Tool {
463
374
  */
464
375
  UpdateGhostEntity(self: Tool): void;
465
376
  }
466
-
377
+ interface TOOL extends Tool {}
@@ -7,72 +7,56 @@
7
7
  * @realm menu
8
8
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow
9
9
  */
10
- interface UGCPublishWindow extends DFrame {}
11
-
12
- interface UGCPublishWindow {
10
+ interface UGCPublishWindow extends DFrame {
13
11
  /**
14
12
  * Checks if the Tags and Title are valid and if so it enables the publish button.
15
13
  * @realm menu
16
14
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow:CheckInput
17
15
  */
18
16
  CheckInput(self: UGCPublishWindow): void;
19
- }
20
17
 
21
- interface UGCPublishWindow {
22
18
  /**
23
19
  * Displays the given error message.
24
20
  * @realm menu
25
21
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow:DisplayError
26
22
  */
27
23
  DisplayError(self: UGCPublishWindow, err: string): void;
28
- }
29
24
 
30
- interface UGCPublishWindow {
31
25
  /**
32
26
  * Publishes the Item or throws an error if the Title or Tags are invalid
33
27
  * @realm menu
34
28
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow:DoPublish
35
29
  */
36
30
  DoPublish(self: UGCPublishWindow, wsid: string, err: string): void;
37
- }
38
31
 
39
- interface UGCPublishWindow {
40
32
  /**
41
33
  * Rezises the panel to nicely fit all children
42
34
  * @realm menu
43
35
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow:FitContents
44
36
  */
45
37
  FitContents(self: UGCPublishWindow): void;
46
- }
47
38
 
48
- interface UGCPublishWindow {
49
39
  /**
50
40
  * Returns the name of the current selected tag.
51
41
  * @realm menu
52
42
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow:GetChosenTag
53
43
  */
54
44
  GetChosenTag(self: UGCPublishWindow): string;
55
- }
56
45
 
57
- interface UGCPublishWindow {
58
46
  /**
59
47
  * Called when the Item was published or if any error occurred while publishing
60
48
  * @realm menu
61
49
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow:OnPublishFinished
62
50
  */
63
51
  OnPublishFinished(self: UGCPublishWindow, wsid: string, err: string): void;
64
- }
65
52
 
66
- interface UGCPublishWindow {
67
53
  /**
68
54
  * updated the Workshop items list.
69
55
  * @realm menu
70
56
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow:Setup
71
57
  */
72
58
  Setup(self: UGCPublishWindow, ugcType: string, file: string, imageFile: string, handler: WorkshopFileBase): void;
73
- }
74
59
 
75
- interface UGCPublishWindow {
76
60
  /**
77
61
  * updated the Workshop items list.
78
62
  * @realm menu
@@ -80,4 +64,3 @@ interface UGCPublishWindow {
80
64
  */
81
65
  UpdateWorkshopItems(self: UGCPublishWindow): void;
82
66
  }
83
-