@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
@@ -21,9 +21,7 @@ interface MatproxyLib {
21
21
  * @source https://wiki.facepunch.com/gmod/matproxy.Add
22
22
  */
23
23
  Add(matProxyData: MatProxyData): void;
24
- }
25
24
 
26
- interface MatproxyLib {
27
25
  /**
28
26
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
29
27
  *
@@ -33,9 +31,7 @@ interface MatproxyLib {
33
31
  * @source https://wiki.facepunch.com/gmod/matproxy.Call
34
32
  */
35
33
  Call(uname: string, mat: IMaterial, ent: Entity): void;
36
- }
37
34
 
38
- interface MatproxyLib {
39
35
  /**
40
36
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
41
37
  *
@@ -45,9 +41,7 @@ interface MatproxyLib {
45
41
  * @source https://wiki.facepunch.com/gmod/matproxy.Init
46
42
  */
47
43
  Init(name: string, uname: string, mat: IMaterial, values: table): void;
48
- }
49
44
 
50
- interface MatproxyLib {
51
45
  /**
52
46
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
53
47
  *
@@ -57,4 +51,3 @@ interface MatproxyLib {
57
51
  */
58
52
  ShouldOverrideProxy(name: string): boolean;
59
53
  }
60
-
@@ -9,54 +9,42 @@
9
9
  * @realm client
10
10
  * @source https://wiki.facepunch.com/gmod/MatSelect
11
11
  */
12
- interface MatSelect extends ContextBase {}
13
-
14
- interface MatSelect {
12
+ interface MatSelect extends ContextBase {
15
13
  /**
16
14
  * Adds a new material to the selection list.
17
15
  * @realm client
18
16
  * @source https://wiki.facepunch.com/gmod/MatSelect:AddMaterial
19
17
  */
20
18
  AddMaterial(self: MatSelect, label: string, path: string): void;
21
- }
22
19
 
23
- interface MatSelect {
24
20
  /**
25
21
  * Adds a new material to the selection list, with some extra options.
26
22
  * @realm client
27
23
  * @source https://wiki.facepunch.com/gmod/MatSelect:AddMaterialEx
28
24
  */
29
25
  AddMaterialEx(self: MatSelect, label: string, path: string, value: any, convars: table): void;
30
- }
31
26
 
32
- interface MatSelect {
33
27
  /**
34
28
  * Find a material and selects it, if it exists in this panel.
35
29
  * @realm client
36
30
  * @source https://wiki.facepunch.com/gmod/MatSelect:FindAndSelectMaterial
37
31
  */
38
32
  FindAndSelectMaterial(self: MatSelect, mat: string): void;
39
- }
40
33
 
41
- interface MatSelect {
42
34
  /**
43
35
  * Find a [DImageButton](https://wiki.facepunch.com/gmod/DImageButton) panel based on the input material path.
44
36
  * @realm client
45
37
  * @source https://wiki.facepunch.com/gmod/MatSelect:FindMaterialByValue
46
38
  */
47
39
  FindMaterialByValue(self: MatSelect, mat: string): DImageButton;
48
- }
49
40
 
50
- interface MatSelect {
51
41
  /**
52
42
  * Returns whether the panel would set its own height to fit all materials within its height.
53
43
  * @realm client
54
44
  * @source https://wiki.facepunch.com/gmod/MatSelect:GetAutoHeight
55
45
  */
56
46
  GetAutoHeight(self: MatSelect): boolean;
57
- }
58
47
 
59
- interface MatSelect {
60
48
  /**
61
49
  * **INTERNAL**: Use [MatSelect:FindAndSelectMaterial](https://wiki.facepunch.com/gmod/MatSelect:FindAndSelectMaterial) instead.
62
50
  *
@@ -66,36 +54,28 @@ interface MatSelect {
66
54
  * @source https://wiki.facepunch.com/gmod/MatSelect:SelectMaterial
67
55
  */
68
56
  SelectMaterial(self: MatSelect, mat: DImageButton): void;
69
- }
70
57
 
71
- interface MatSelect {
72
58
  /**
73
59
  * Sets whether the panel should set its own height to fit all materials within its height.
74
60
  * @realm client
75
61
  * @source https://wiki.facepunch.com/gmod/MatSelect:SetAutoHeight
76
62
  */
77
63
  SetAutoHeight(self: MatSelect, autoSize: boolean): void;
78
- }
79
64
 
80
- interface MatSelect {
81
65
  /**
82
66
  * Sets the height of a single material in pixels.
83
67
  * @realm client
84
68
  * @source https://wiki.facepunch.com/gmod/MatSelect:SetItemHeight
85
69
  */
86
70
  SetItemHeight(self: MatSelect, height: number): void;
87
- }
88
71
 
89
- interface MatSelect {
90
72
  /**
91
73
  * Sets the width of a single material in pixels.
92
74
  * @realm client
93
75
  * @source https://wiki.facepunch.com/gmod/MatSelect:SetItemWidth
94
76
  */
95
77
  SetItemWidth(self: MatSelect, width: number): void;
96
- }
97
78
 
98
- interface MatSelect {
99
79
  /**
100
80
  * Sets the target height of the panel, in number of rows.
101
81
  * @realm client
@@ -103,4 +83,3 @@ interface MatSelect {
103
83
  */
104
84
  SetNumRows(self: MatSelect, rows: number): void;
105
85
  }
106
-
package/types/menu.d.tlua CHANGED
@@ -17,4 +17,3 @@ interface MenuLib {
17
17
  */
18
18
  RecordFrame(): void;
19
19
  }
20
-
@@ -17,18 +17,14 @@ interface MenubarLib {
17
17
  * @source https://wiki.facepunch.com/gmod/menubar.Init
18
18
  */
19
19
  Init(): void;
20
- }
21
20
 
22
- interface MenubarLib {
23
21
  /**
24
22
  * Checks if the supplied panel is parent to the menubar
25
23
  * @realm client
26
24
  * @source https://wiki.facepunch.com/gmod/menubar.IsParent
27
25
  */
28
26
  IsParent(pnl: Panel): boolean;
29
- }
30
27
 
31
- interface MenubarLib {
32
28
  /**
33
29
  * Parents the menubar to the panel and displays the menubar.
34
30
  * @realm client
@@ -36,4 +32,3 @@ interface MenubarLib {
36
32
  */
37
33
  ParentTo(pnl: Panel): void;
38
34
  }
39
-
package/types/mesh.d.tlua CHANGED
@@ -13,9 +13,7 @@ interface MeshLib {
13
13
  * @source https://wiki.facepunch.com/gmod/mesh.AdvanceVertex
14
14
  */
15
15
  AdvanceVertex(): void;
16
- }
17
16
 
18
- interface MeshLib {
19
17
  /**
20
18
  * Begins creating or modifying a 3D mesh constructed from a given quantity and type of primitive 3D shapes such as triangles and quads.
21
19
  *
@@ -25,22 +23,16 @@ interface MeshLib {
25
23
  * @source https://wiki.facepunch.com/gmod/mesh.Begin
26
24
  */
27
25
  Begin(mesh: IMesh, primitiveType: number, primitiveCount: number): void;
28
- }
29
26
 
30
- interface MeshLib {
31
27
  Begin(primitiveType: number, primitiveCount: number): void;
32
- }
33
28
 
34
- interface MeshLib {
35
29
  /**
36
30
  * Sets the bone matrix ID and bone weight to be used for the next vertex. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
37
31
  * @realm client
38
32
  * @source https://wiki.facepunch.com/gmod/mesh.BoneData
39
33
  */
40
34
  BoneData(index: number, matrixId: number, weight: number): void;
41
- }
42
35
 
43
- interface MeshLib {
44
36
  /**
45
37
  * Sets the color to be used for the next vertex. This is `COLOR0` semantic of
46
38
  * Vertex Shader. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
@@ -48,53 +40,39 @@ interface MeshLib {
48
40
  * @source https://wiki.facepunch.com/gmod/mesh.Color
49
41
  */
50
42
  Color(r: number, g: number, b: number, a: number): void;
51
- }
52
43
 
53
- interface MeshLib {
54
44
  /**
55
45
  * Ends the mesh (Started with [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin)) and renders it.
56
46
  * @realm client
57
47
  * @source https://wiki.facepunch.com/gmod/mesh.End
58
48
  */
59
49
  End(): void;
60
- }
61
50
 
62
- interface MeshLib {
63
51
  /**
64
52
  * Sets the normal to be used for the next vertex. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
65
53
  * @realm client
66
54
  * @source https://wiki.facepunch.com/gmod/mesh.Normal
67
55
  */
68
56
  Normal(normal: Vector): void;
69
- }
70
57
 
71
- interface MeshLib {
72
58
  Normal(x: number, y: number, z: number): void;
73
- }
74
59
 
75
- interface MeshLib {
76
60
  /**
77
61
  * Sets the position to be used for the next vertex. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
78
62
  * @realm client
79
63
  * @source https://wiki.facepunch.com/gmod/mesh.Position
80
64
  */
81
65
  Position(position: Vector): void;
82
- }
83
66
 
84
- interface MeshLib {
85
67
  Position(x: number, y: number, z: number): void;
86
- }
87
68
 
88
- interface MeshLib {
89
69
  /**
90
70
  * Adds a quad (4 vertices) to the currently built mesh. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
91
71
  * @realm client
92
72
  * @source https://wiki.facepunch.com/gmod/mesh.Quad
93
73
  */
94
74
  Quad(vertex1: Vector, vertex2: Vector, vertex3: Vector, vertex4: Vector, color: Color): void;
95
- }
96
75
 
97
- interface MeshLib {
98
76
  /**
99
77
  * Adds a quad (4 vertices) to the currently built mesh, by using position, normal and sizes. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
100
78
  *
@@ -103,9 +81,7 @@ interface MeshLib {
103
81
  * @source https://wiki.facepunch.com/gmod/mesh.QuadEasy
104
82
  */
105
83
  QuadEasy(position: Vector, normal: Vector, sizeX: number, sizeY: number, color: Color): void;
106
- }
107
84
 
108
- interface MeshLib {
109
85
  /**
110
86
  * Sets the specular map values. This is `COLOR1` semantic of Vertex Shader. Allows to blend textures of [Lightmapped_4WayBlend](https://developer.valvesoftware.com/wiki/Lightmapped_4WayBlend). Requires the `VERTEX_SPECULAR` flag to be set in the C++ code of a shader.
111
87
  *
@@ -113,9 +89,7 @@ interface MeshLib {
113
89
  * @source https://wiki.facepunch.com/gmod/mesh.Specular
114
90
  */
115
91
  Specular(r: number, g: number, b: number, a: number): void;
116
- }
117
92
 
118
- interface MeshLib {
119
93
  /**
120
94
  * Sets the `S` tangent to be used, also known as "binormal".
121
95
  *
@@ -127,13 +101,9 @@ interface MeshLib {
127
101
  * @source https://wiki.facepunch.com/gmod/mesh.TangentS
128
102
  */
129
103
  TangentS(tangentS: Vector): void;
130
- }
131
104
 
132
- interface MeshLib {
133
105
  TangentS(x: number, y: number, z: number): void;
134
- }
135
106
 
136
- interface MeshLib {
137
107
  /**
138
108
  * Sets the `T` tangent to be used.
139
109
  *
@@ -145,13 +115,9 @@ interface MeshLib {
145
115
  * @source https://wiki.facepunch.com/gmod/mesh.TangentT
146
116
  */
147
117
  TangentT(tangentT: Vector): void;
148
- }
149
118
 
150
- interface MeshLib {
151
119
  TangentT(x: number, y: number, z: number): void;
152
- }
153
120
 
154
- interface MeshLib {
155
121
  /**
156
122
  * Sets the texture coordinates for the next vertex for the current mesh. (See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin))
157
123
  *
@@ -159,9 +125,7 @@ interface MeshLib {
159
125
  * @source https://wiki.facepunch.com/gmod/mesh.TexCoord
160
126
  */
161
127
  TexCoord(set: number, s: number, t: number, u?: number, v?: number): void;
162
- }
163
128
 
164
- interface MeshLib {
165
129
  /**
166
130
  * A set of four numbers that can be used for arbitrary purposes by [Material](https://wiki.facepunch.com/gmod/Material) shaders.
167
131
  * This is most commonly used to provide tangent information about each vertex to the Material's shader.
@@ -170,9 +134,7 @@ interface MeshLib {
170
134
  * @source https://wiki.facepunch.com/gmod/mesh.UserData
171
135
  */
172
136
  UserData(tangentX: number, tangentY: number, tangentZ: number, tangentHandedness: number): void;
173
- }
174
137
 
175
- interface MeshLib {
176
138
  /**
177
139
  * Returns the amount of vertices that have been pushed via [mesh.AdvanceVertex](https://wiki.facepunch.com/gmod/mesh.AdvanceVertex).
178
140
  * @realm client
@@ -180,4 +142,3 @@ interface MeshLib {
180
142
  */
181
143
  VertexCount(): number;
182
144
  }
183
-
@@ -9,4 +9,3 @@
9
9
  * @source https://wiki.facepunch.com/gmod/ModelImage
10
10
  */
11
11
  interface ModelImage {}
12
-
@@ -17,53 +17,41 @@ interface MotionsensorLib {
17
17
  * @source https://wiki.facepunch.com/gmod/motionsensor.BuildSkeleton
18
18
  */
19
19
  BuildSkeleton(translator: table, player: Player, rotation: Angle): (Vector, Angle, table);
20
- }
21
20
 
22
- interface MotionsensorLib {
23
21
  /**
24
22
  * @realm shared
25
23
  * @source https://wiki.facepunch.com/gmod/motionsensor.ChooseBuilderFromEntity
26
24
  */
27
25
  ChooseBuilderFromEntity(ent: Entity): string;
28
- }
29
26
 
30
- interface MotionsensorLib {
31
27
  /**
32
28
  * Returns the depth map material.
33
29
  * @realm client and menu
34
30
  * @source https://wiki.facepunch.com/gmod/motionsensor.GetColourMaterial
35
31
  */
36
32
  GetColourMaterial(): IMaterial;
37
- }
38
33
 
39
- interface MotionsensorLib {
40
34
  /**
41
35
  * Returns players skeletal data if they are using Kinect. See [Using The Kinect](https://wiki.facepunch.com/gmod/Using_The_Kinect) and [Kinect developing](https://wiki.facepunch.com/gmod/Kinect_developing).
42
36
  * @realm client
43
37
  * @source https://wiki.facepunch.com/gmod/motionsensor.GetSkeleton
44
38
  */
45
39
  GetSkeleton(): table;
46
- }
47
40
 
48
- interface MotionsensorLib {
49
41
  /**
50
42
  * Return whether a kinect is connected - and active (ie - Start has been called).
51
43
  * @realm client
52
44
  * @source https://wiki.facepunch.com/gmod/motionsensor.IsActive
53
45
  */
54
46
  IsActive(): boolean;
55
- }
56
47
 
57
- interface MotionsensorLib {
58
48
  /**
59
49
  * Returns true if we have detected that there's a kinect connected to the PC
60
50
  * @realm client and menu
61
51
  * @source https://wiki.facepunch.com/gmod/motionsensor.IsAvailable
62
52
  */
63
53
  IsAvailable(): boolean;
64
- }
65
54
 
66
- interface MotionsensorLib {
67
55
  /**
68
56
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
69
57
  * Used internally by [motionsensor.ProcessAnglesTable](https://wiki.facepunch.com/gmod/motionsensor.ProcessAnglesTable). See [Using The Kinect](https://wiki.facepunch.com/gmod/Using_The_Kinect) and [Kinect developing](https://wiki.facepunch.com/gmod/Kinect_developing).
@@ -71,9 +59,7 @@ interface MotionsensorLib {
71
59
  * @source https://wiki.facepunch.com/gmod/motionsensor.ProcessAngle
72
60
  */
73
61
  ProcessAngle(translator: table, sensor: table, pos: Vector, ang: Angle, special_vectors: table, boneid: number, v: table): boolean;
74
- }
75
62
 
76
- interface MotionsensorLib {
77
63
  /**
78
64
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
79
65
  * Used internally by [motionsensor.BuildSkeleton](https://wiki.facepunch.com/gmod/motionsensor.BuildSkeleton). See [Using The Kinect](https://wiki.facepunch.com/gmod/Using_The_Kinect) and [Kinect developing](https://wiki.facepunch.com/gmod/Kinect_developing).
@@ -83,9 +69,7 @@ interface MotionsensorLib {
83
69
  * @source https://wiki.facepunch.com/gmod/motionsensor.ProcessAnglesTable
84
70
  */
85
71
  ProcessAnglesTable(translator: table, sensor: table, pos: Vector, rotation: Angle): table;
86
- }
87
72
 
88
- interface MotionsensorLib {
89
73
  /**
90
74
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
91
75
  * Used internally by [motionsensor.BuildSkeleton](https://wiki.facepunch.com/gmod/motionsensor.BuildSkeleton). See [Using The Kinect](https://wiki.facepunch.com/gmod/Using_The_Kinect) and [Kinect developing](https://wiki.facepunch.com/gmod/Kinect_developing).
@@ -93,18 +77,14 @@ interface MotionsensorLib {
93
77
  * @source https://wiki.facepunch.com/gmod/motionsensor.ProcessPositionTable
94
78
  */
95
79
  ProcessPositionTable(translator: table, sensor: table): table;
96
- }
97
80
 
98
- interface MotionsensorLib {
99
81
  /**
100
82
  * This starts access to the kinect sensor. Note that this usually freezes the game for a couple of seconds.
101
83
  * @realm client and menu
102
84
  * @source https://wiki.facepunch.com/gmod/motionsensor.Start
103
85
  */
104
86
  Start(): boolean;
105
- }
106
87
 
107
- interface MotionsensorLib {
108
88
  /**
109
89
  * Stops the motion capture.
110
90
  * @realm client
@@ -112,4 +92,3 @@ interface MotionsensorLib {
112
92
  */
113
93
  Stop(): void;
114
94
  }
115
-
@@ -15,9 +15,7 @@ interface NavmeshLib {
15
15
  * @source https://wiki.facepunch.com/gmod/navmesh.AddWalkableSeed
16
16
  */
17
17
  AddWalkableSeed(pos: Vector, dir: Vector): void;
18
- }
19
18
 
20
- interface NavmeshLib {
21
19
  /**
22
20
  * Starts the generation of a new navmesh.
23
21
  *
@@ -28,81 +26,63 @@ interface NavmeshLib {
28
26
  * @source https://wiki.facepunch.com/gmod/navmesh.BeginGeneration
29
27
  */
30
28
  BeginGeneration(): void;
31
- }
32
29
 
33
- interface NavmeshLib {
34
30
  /**
35
31
  * Clears all the walkable positions, used before calling [navmesh.BeginGeneration](https://wiki.facepunch.com/gmod/navmesh.BeginGeneration).
36
32
  * @realm server
37
33
  * @source https://wiki.facepunch.com/gmod/navmesh.ClearWalkableSeeds
38
34
  */
39
35
  ClearWalkableSeeds(): void;
40
- }
41
36
 
42
- interface NavmeshLib {
43
37
  /**
44
38
  * Creates a new [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
45
39
  * @realm server
46
40
  * @source https://wiki.facepunch.com/gmod/navmesh.CreateNavArea
47
41
  */
48
42
  CreateNavArea(corner: Vector, opposite_corner: Vector): CNavArea;
49
- }
50
43
 
51
- interface NavmeshLib {
52
44
  /**
53
45
  * Creates a new [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder).
54
46
  * @realm server
55
47
  * @source https://wiki.facepunch.com/gmod/navmesh.CreateNavLadder
56
48
  */
57
49
  CreateNavLadder(top: Vector, bottom: Vector, width: number, dir: Vector, maxHeightAboveTopArea?: number): CNavLadder;
58
- }
59
50
 
60
- interface NavmeshLib {
61
51
  /**
62
52
  * Returns a list of areas within distance, used to find hiding spots by [NextBot](https://wiki.facepunch.com/gmod/NextBot)s for example.
63
53
  * @realm server
64
54
  * @source https://wiki.facepunch.com/gmod/navmesh.Find
65
55
  */
66
56
  Find(pos: Vector, radius: number, stepHeight: number, dropHeight: number): table;
67
- }
68
57
 
69
- interface NavmeshLib {
70
58
  /**
71
59
  * Returns a list of [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s overlapping the given cube extents.
72
60
  * @realm server
73
61
  * @source https://wiki.facepunch.com/gmod/navmesh.FindInBox
74
62
  */
75
63
  FindInBox(pos1: Vector, pos2: Vector): table;
76
- }
77
64
 
78
- interface NavmeshLib {
79
65
  /**
80
66
  * Returns an integer indexed table of all [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s on the current map. If the map doesn't have a navmesh generated then this will return an empty table.
81
67
  * @realm server
82
68
  * @source https://wiki.facepunch.com/gmod/navmesh.GetAllNavAreas
83
69
  */
84
70
  GetAllNavAreas(): CNavArea[];
85
- }
86
71
 
87
- interface NavmeshLib {
88
72
  /**
89
73
  * Returns a table of all blocked [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s on the current map. See [CNavArea:MarkAsBlocked](https://wiki.facepunch.com/gmod/CNavArea:MarkAsBlocked).
90
74
  * @realm server
91
75
  * @source https://wiki.facepunch.com/gmod/navmesh.GetBlockedAreas
92
76
  */
93
77
  GetBlockedAreas(): table;
94
- }
95
78
 
96
- interface NavmeshLib {
97
79
  /**
98
80
  * Returns the position of the edit cursor when nav_edit is set to 1.
99
81
  * @realm server
100
82
  * @source https://wiki.facepunch.com/gmod/navmesh.GetEditCursorPosition
101
83
  */
102
84
  GetEditCursorPosition(): Vector;
103
- }
104
85
 
105
- interface NavmeshLib {
106
86
  /**
107
87
  * Finds the closest standable ground at, above, or below the provided position.
108
88
  *
@@ -113,27 +93,21 @@ interface NavmeshLib {
113
93
  * @source https://wiki.facepunch.com/gmod/navmesh.GetGroundHeight
114
94
  */
115
95
  GetGroundHeight(pos: Vector): (number, Vector);
116
- }
117
96
 
118
- interface NavmeshLib {
119
97
  /**
120
98
  * Returns the currently marked [CNavArea](https://wiki.facepunch.com/gmod/CNavArea), for use with editing console commands.
121
99
  * @realm server
122
100
  * @source https://wiki.facepunch.com/gmod/navmesh.GetMarkedArea
123
101
  */
124
102
  GetMarkedArea(): CNavArea;
125
- }
126
103
 
127
- interface NavmeshLib {
128
104
  /**
129
105
  * Returns the currently marked [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder), for use with editing console commands.
130
106
  * @realm server
131
107
  * @source https://wiki.facepunch.com/gmod/navmesh.GetMarkedLadder
132
108
  */
133
109
  GetMarkedLadder(): CNavLadder;
134
- }
135
110
 
136
- interface NavmeshLib {
137
111
  /**
138
112
  * Returns the Nav Area contained in this position that also satisfies the elevation limit.
139
113
  *
@@ -143,9 +117,7 @@ interface NavmeshLib {
143
117
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNavArea
144
118
  */
145
119
  GetNavArea(pos: Vector, beneathLimit: number): CNavArea;
146
- }
147
120
 
148
- interface NavmeshLib {
149
121
  /**
150
122
  * Returns a [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) by the given ID.
151
123
  *
@@ -156,27 +128,21 @@ interface NavmeshLib {
156
128
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNavAreaByID
157
129
  */
158
130
  GetNavAreaByID(id: number): CNavArea;
159
- }
160
131
 
161
- interface NavmeshLib {
162
132
  /**
163
133
  * Returns the total count of nav areas on the map. If you want to get all nav areas, use [navmesh.GetAllNavAreas](https://wiki.facepunch.com/gmod/navmesh.GetAllNavAreas) instead as nav areas IDs are not always sequential.
164
134
  * @realm server
165
135
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNavAreaCount
166
136
  */
167
137
  GetNavAreaCount(): number;
168
- }
169
138
 
170
- interface NavmeshLib {
171
139
  /**
172
140
  * Returns a [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) by the given ID.
173
141
  * @realm server
174
142
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNavLadderByID
175
143
  */
176
144
  GetNavLadderByID(id: number): CNavLadder;
177
- }
178
145
 
179
- interface NavmeshLib {
180
146
  /**
181
147
  * Returns the closest [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to given position at the same height, or beneath it.
182
148
  *
@@ -186,36 +152,28 @@ interface NavmeshLib {
186
152
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNearestNavArea
187
153
  */
188
154
  GetNearestNavArea(pos: Vector, anyZ?: boolean, maxDist?: number, checkLOS?: boolean, checkGround?: boolean, team?: number): CNavArea;
189
- }
190
155
 
191
- interface NavmeshLib {
192
156
  /**
193
157
  * Returns the classname of the player spawn entity.
194
158
  * @realm server
195
159
  * @source https://wiki.facepunch.com/gmod/navmesh.GetPlayerSpawnName
196
160
  */
197
161
  GetPlayerSpawnName(): string;
198
- }
199
162
 
200
- interface NavmeshLib {
201
163
  /**
202
164
  * Whether we're currently generating a new navmesh with [navmesh.BeginGeneration](https://wiki.facepunch.com/gmod/navmesh.BeginGeneration).
203
165
  * @realm server
204
166
  * @source https://wiki.facepunch.com/gmod/navmesh.IsGenerating
205
167
  */
206
168
  IsGenerating(): boolean;
207
- }
208
169
 
209
- interface NavmeshLib {
210
170
  /**
211
171
  * Returns true if a navmesh has been loaded when loading the map.
212
172
  * @realm server
213
173
  * @source https://wiki.facepunch.com/gmod/navmesh.IsLoaded
214
174
  */
215
175
  IsLoaded(): boolean;
216
- }
217
176
 
218
- interface NavmeshLib {
219
177
  /**
220
178
  * Loads a new navmesh from the .nav file for current map discarding any changes made to the navmesh previously.
221
179
  * **WARNING**: Calling this function too soon, causes the Server to crash!
@@ -225,45 +183,35 @@ interface NavmeshLib {
225
183
  * @source https://wiki.facepunch.com/gmod/navmesh.Load
226
184
  */
227
185
  Load(): void;
228
- }
229
186
 
230
- interface NavmeshLib {
231
187
  /**
232
188
  * Deletes every [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) and [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) on the map **without saving the changes**.
233
189
  * @realm server
234
190
  * @source https://wiki.facepunch.com/gmod/navmesh.Reset
235
191
  */
236
192
  Reset(): void;
237
- }
238
193
 
239
- interface NavmeshLib {
240
194
  /**
241
195
  * Saves any changes made to navmesh to the .nav file.
242
196
  * @realm server
243
197
  * @source https://wiki.facepunch.com/gmod/navmesh.Save
244
198
  */
245
199
  Save(): void;
246
- }
247
200
 
248
- interface NavmeshLib {
249
201
  /**
250
202
  * Sets the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) as marked, so it can be used with editing console commands.
251
203
  * @realm server
252
204
  * @source https://wiki.facepunch.com/gmod/navmesh.SetMarkedArea
253
205
  */
254
206
  SetMarkedArea(area: CNavArea): void;
255
- }
256
207
 
257
- interface NavmeshLib {
258
208
  /**
259
209
  * Sets the [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) as marked, so it can be used with editing console commands.
260
210
  * @realm server
261
211
  * @source https://wiki.facepunch.com/gmod/navmesh.SetMarkedLadder
262
212
  */
263
213
  SetMarkedLadder(area: CNavLadder): void;
264
- }
265
214
 
266
- interface NavmeshLib {
267
215
  /**
268
216
  * Sets the classname of the default spawn point entity, used before generating a new navmesh with [navmesh.BeginGeneration](https://wiki.facepunch.com/gmod/navmesh.BeginGeneration).
269
217
  * @realm server
@@ -271,4 +219,3 @@ interface NavmeshLib {
271
219
  */
272
220
  SetPlayerSpawnName(spawnPointClass: string): void;
273
221
  }
274
-