@tlua/gmod 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/package.json +1 -1
  2. package/types/achievements.d.tlua +15 -45
  3. package/types/ai.d.tlua +5 -15
  4. package/types/angle.d.tlua +18 -54
  5. package/types/baseclass.d.tlua +2 -4
  6. package/types/bf_read.d.tlua +11 -32
  7. package/types/bit.d.tlua +11 -33
  8. package/types/cam.d.tlua +16 -48
  9. package/types/ceffectdata.d.tlua +32 -95
  10. package/types/chat.d.tlua +5 -15
  11. package/types/cleanup.d.tlua +7 -21
  12. package/types/cluaemitter.d.tlua +12 -35
  13. package/types/clualocomotion.d.tlua +40 -119
  14. package/types/cluaparticle.d.tlua +44 -131
  15. package/types/cmovedata.d.tlua +47 -140
  16. package/types/cnavarea.d.tlua +77 -230
  17. package/types/cnavladder.d.tlua +22 -65
  18. package/types/cnewparticleeffect.d.tlua +26 -77
  19. package/types/color.d.tlua +28 -84
  20. package/types/concommand.d.tlua +4 -12
  21. package/types/constraint.d.tlua +28 -84
  22. package/types/construct.d.tlua +1 -3
  23. package/types/contentheader.d.tlua +3 -6
  24. package/types/contenticon.d.tlua +9 -24
  25. package/types/contentsidebar.d.tlua +4 -9
  26. package/types/contextbase.d.tlua +4 -9
  27. package/types/controlpanel.d.tlua +18 -40
  28. package/types/controlpresets.d.tlua +13 -36
  29. package/types/convar.d.tlua +16 -47
  30. package/types/cookie.d.tlua +3 -9
  31. package/types/coroutine.d.tlua +7 -21
  32. package/types/crecipientfilter.d.tlua +16 -47
  33. package/types/csoundpatch.d.tlua +14 -41
  34. package/types/ctakedamageinfo.d.tlua +33 -98
  35. package/types/ctrlnumpad.d.tlua +6 -17
  36. package/types/cusercmd.d.tlua +27 -80
  37. package/types/cvars.d.tlua +6 -18
  38. package/types/dadjustablemodelpanel.d.tlua +7 -18
  39. package/types/dalphabar.d.tlua +3 -6
  40. package/types/dbinder.d.tlua +4 -9
  41. package/types/dbubblecontainer.d.tlua +2 -3
  42. package/types/dbutton.d.tlua +8 -21
  43. package/types/dcheckbox.d.tlua +5 -12
  44. package/types/dcheckboxlabel.d.tlua +9 -27
  45. package/types/dcollapsiblecategory.d.tlua +23 -66
  46. package/types/dcolorbutton.d.tlua +7 -18
  47. package/types/dcolorcombo.d.tlua +5 -12
  48. package/types/dcolorcube.d.tlua +13 -36
  49. package/types/dcolormixer.d.tlua +27 -78
  50. package/types/dcolorpalette.d.tlua +23 -66
  51. package/types/dcolumnsheet.d.tlua +5 -12
  52. package/types/dcombobox.d.tlua +17 -48
  53. package/types/ddragbase.d.tlua +13 -36
  54. package/types/ddrawer.d.tlua +8 -21
  55. package/types/debug.d.tlua +44 -76
  56. package/types/debugoverlay.d.tlua +11 -33
  57. package/types/dentityproperties.d.tlua +5 -12
  58. package/types/derma.d.tlua +10 -30
  59. package/types/dexpandbutton.d.tlua +3 -6
  60. package/types/dfilebrowser.d.tlua +20 -60
  61. package/types/dform.d.tlua +18 -51
  62. package/types/dframe.d.tlua +24 -72
  63. package/types/dgrid.d.tlua +11 -30
  64. package/types/dhorizontaldivider.d.tlua +20 -57
  65. package/types/dhorizontalscroller.d.tlua +11 -30
  66. package/types/dhscrollbar.d.tlua +11 -30
  67. package/types/dhtml.d.tlua +8 -21
  68. package/types/dhtmlcontrols.d.tlua +5 -15
  69. package/types/diconbrowser.d.tlua +11 -30
  70. package/types/diconlayout.d.tlua +18 -51
  71. package/types/dimage.d.tlua +20 -55
  72. package/types/dimagebutton.d.tlua +9 -27
  73. package/types/dlabel.d.tlua +33 -96
  74. package/types/dlabeleditable.d.tlua +5 -12
  75. package/types/dlabelurl.d.tlua +10 -27
  76. package/types/dlistbox.d.tlua +8 -21
  77. package/types/dlistboxitem.d.tlua +4 -9
  78. package/types/dlistview.d.tlua +34 -99
  79. package/types/dlistview_column.d.tlua +14 -39
  80. package/types/dlistview_line.d.tlua +13 -36
  81. package/types/dmenu.d.tlua +28 -75
  82. package/types/dmenubar.d.tlua +6 -11
  83. package/types/dmenuoption.d.tlua +13 -36
  84. package/types/dmenuoptioncvar.d.tlua +6 -15
  85. package/types/dmodelpanel.d.tlua +22 -63
  86. package/types/dmodelselect.d.tlua +2 -3
  87. package/types/dmodelselectmulti.d.tlua +2 -3
  88. package/types/dnotify.d.tlua +10 -27
  89. package/types/dnumberscratch.d.tlua +26 -75
  90. package/types/dnumberwang.d.tlua +16 -45
  91. package/types/dnumslider.d.tlua +17 -51
  92. package/types/dpanel.d.tlua +14 -39
  93. package/types/dpanellist.d.tlua +11 -33
  94. package/types/dpaneloverlay.d.tlua +7 -18
  95. package/types/dpanpanel.d.tlua +6 -15
  96. package/types/dprogress.d.tlua +3 -6
  97. package/types/dproperties.d.tlua +4 -9
  98. package/types/dproperty_combo.d.tlua +3 -6
  99. package/types/dproperty_generic.d.tlua +5 -12
  100. package/types/dpropertysheet.d.tlua +26 -56
  101. package/types/dragndrop.d.tlua +10 -30
  102. package/types/draw.d.tlua +11 -31
  103. package/types/drgbpicker.d.tlua +4 -9
  104. package/types/drive.d.tlua +18 -41
  105. package/types/dscrollpanel.d.tlua +10 -30
  106. package/types/dshape.d.tlua +7 -18
  107. package/types/dsizetocontents.d.tlua +5 -12
  108. package/types/dslider.d.tlua +28 -81
  109. package/types/dsprite.d.tlua +9 -24
  110. package/types/dtab.d.tlua +8 -21
  111. package/types/dtextentry.d.tlua +43 -126
  112. package/types/dtilelayout.d.tlua +21 -60
  113. package/types/dtooltip.d.tlua +6 -15
  114. package/types/dtree.d.tlua +16 -45
  115. package/types/dtree_node.d.tlua +68 -201
  116. package/types/duplicator.d.tlua +30 -88
  117. package/types/dverticaldivider.d.tlua +23 -66
  118. package/types/dvscrollbar.d.tlua +11 -30
  119. package/types/effect.d.tlua +4 -9
  120. package/types/effects.d.tlua +6 -18
  121. package/types/engine.d.tlua +21 -63
  122. package/types/entity.d.tlua +676 -1962
  123. package/types/ents.d.tlua +23 -61
  124. package/types/file.d.tlua +39 -117
  125. package/types/frame_blend.d.tlua +7 -21
  126. package/types/game.d.tlua +39 -117
  127. package/types/gameevent.d.tlua +4 -8
  128. package/types/gamemode.d.tlua +3 -7
  129. package/types/gm.d.tlua +267 -800
  130. package/types/gmsave.d.tlua +4 -12
  131. package/types/gui.d.tlua +21 -63
  132. package/types/gwen.d.tlua +3 -9
  133. package/types/halo.d.tlua +2 -6
  134. package/types/hook.d.tlua +4 -12
  135. package/types/http.d.tlua +1 -3
  136. package/types/iconeditor.d.tlua +11 -30
  137. package/types/igmodaudiochannel.d.tlua +41 -122
  138. package/types/imagecheckbox.d.tlua +4 -9
  139. package/types/imaterial.d.tlua +26 -77
  140. package/types/imesh.d.tlua +5 -14
  141. package/types/input.d.tlua +24 -68
  142. package/types/irestore.d.tlua +9 -26
  143. package/types/isave.d.tlua +9 -26
  144. package/types/itexture.d.tlua +10 -29
  145. package/types/ivideowriter.d.tlua +5 -14
  146. package/types/jit.d.tlua +21 -53
  147. package/types/killicon.d.tlua +7 -21
  148. package/types/language.d.tlua +1 -3
  149. package/types/list.d.tlua +8 -24
  150. package/types/markup.d.tlua +2 -6
  151. package/types/markupobject.d.tlua +5 -14
  152. package/types/math.d.tlua +277 -447
  153. package/types/matproxy.d.tlua +3 -9
  154. package/types/matselect.d.tlua +11 -30
  155. package/types/menubar.d.tlua +2 -6
  156. package/types/mesh.d.tlua +19 -57
  157. package/types/motionsensor.d.tlua +10 -30
  158. package/types/navmesh.d.tlua +26 -78
  159. package/types/net.d.tlua +52 -154
  160. package/types/nextbot.d.tlua +46 -116
  161. package/types/notification.d.tlua +2 -6
  162. package/types/npc.d.tlua +182 -543
  163. package/types/numpad.d.tlua +7 -21
  164. package/types/os.d.tlua +4 -10
  165. package/types/panel.d.tlua +333 -991
  166. package/types/pathfollower.d.tlua +31 -92
  167. package/types/permissions.d.tlua +6 -18
  168. package/types/physcollide.d.tlua +3 -8
  169. package/types/physenv.d.tlua +11 -33
  170. package/types/physobj.d.tlua +78 -233
  171. package/types/player.d.tlua +302 -880
  172. package/types/player_manager.d.tlua +13 -39
  173. package/types/presets.d.tlua +6 -18
  174. package/types/projectedtexture.d.tlua +48 -143
  175. package/types/properties.d.tlua +5 -15
  176. package/types/propselect.d.tlua +5 -12
  177. package/types/render.d.tlua +142 -426
  178. package/types/resource.d.tlua +2 -6
  179. package/types/sandbox.d.tlua +54 -159
  180. package/types/saverestore.d.tlua +12 -36
  181. package/types/schedule.d.tlua +6 -17
  182. package/types/scripted_ents.d.tlua +11 -29
  183. package/types/search.d.tlua +1 -3
  184. package/types/serverlist.d.tlua +7 -21
  185. package/types/sound.d.tlua +10 -30
  186. package/types/spawnicon.d.tlua +8 -21
  187. package/types/spawnmenu.d.tlua +24 -70
  188. package/types/spawnmenucontentpanel.d.tlua +5 -12
  189. package/types/sql.d.tlua +9 -27
  190. package/types/stack.d.tlua +5 -14
  191. package/types/steamworks.d.tlua +18 -54
  192. package/types/string.d.tlua +49 -141
  193. package/types/surface.d.tlua +34 -102
  194. package/types/surfaceinfo.d.tlua +5 -14
  195. package/types/system.d.tlua +10 -30
  196. package/types/table.d.tlua +47 -137
  197. package/types/task.d.tlua +9 -26
  198. package/types/team.d.tlua +19 -57
  199. package/types/timer.d.tlua +14 -42
  200. package/types/tool.d.tlua +46 -131
  201. package/types/ugcpublishwindow.d.tlua +9 -24
  202. package/types/umsg.d.tlua +12 -36
  203. package/types/undo.d.tlua +10 -30
  204. package/types/usermessage.d.tlua +2 -6
  205. package/types/utf8.d.tlua +7 -21
  206. package/types/util.d.tlua +94 -274
  207. package/types/vector.d.tlua +36 -108
  208. package/types/vehicle.d.tlua +52 -149
  209. package/types/vgui.d.tlua +18 -46
  210. package/types/vmatrix.d.tlua +35 -105
  211. package/types/weapon.d.tlua +85 -248
  212. package/types/weapons.d.tlua +6 -16
  213. package/types/widgets.d.tlua +1 -3
  214. package/types/workshopfilebase.d.tlua +5 -14
@@ -21,9 +21,6 @@ interface MatproxyLib {
21
21
  * @source https://wiki.facepunch.com/gmod/matproxy.Add
22
22
  */
23
23
  Add(matProxyData: MatProxyData): void;
24
- }
25
-
26
- interface MatproxyLib {
27
24
  /**
28
25
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
29
26
  *
@@ -33,9 +30,6 @@ interface MatproxyLib {
33
30
  * @source https://wiki.facepunch.com/gmod/matproxy.Call
34
31
  */
35
32
  Call(uname: string, mat: IMaterial, ent: Entity): void;
36
- }
37
-
38
- interface MatproxyLib {
39
33
  /**
40
34
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
41
35
  *
@@ -45,9 +39,6 @@ interface MatproxyLib {
45
39
  * @source https://wiki.facepunch.com/gmod/matproxy.Init
46
40
  */
47
41
  Init(name: string, uname: string, mat: IMaterial, values: table): void;
48
- }
49
-
50
- interface MatproxyLib {
51
42
  /**
52
43
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
53
44
  *
@@ -58,3 +49,6 @@ interface MatproxyLib {
58
49
  ShouldOverrideProxy(name: string): boolean;
59
50
  }
60
51
 
52
+
53
+
54
+
@@ -9,54 +9,37 @@
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
-
23
- interface MatSelect {
24
19
  /**
25
20
  * Adds a new material to the selection list, with some extra options.
26
21
  * @realm client
27
22
  * @source https://wiki.facepunch.com/gmod/MatSelect:AddMaterialEx
28
23
  */
29
24
  AddMaterialEx(self: MatSelect, label: string, path: string, value: any, convars: table): void;
30
- }
31
-
32
- interface MatSelect {
33
25
  /**
34
26
  * Find a material and selects it, if it exists in this panel.
35
27
  * @realm client
36
28
  * @source https://wiki.facepunch.com/gmod/MatSelect:FindAndSelectMaterial
37
29
  */
38
30
  FindAndSelectMaterial(self: MatSelect, mat: string): void;
39
- }
40
-
41
- interface MatSelect {
42
31
  /**
43
32
  * Find a [DImageButton](https://wiki.facepunch.com/gmod/DImageButton) panel based on the input material path.
44
33
  * @realm client
45
34
  * @source https://wiki.facepunch.com/gmod/MatSelect:FindMaterialByValue
46
35
  */
47
36
  FindMaterialByValue(self: MatSelect, mat: string): DImageButton;
48
- }
49
-
50
- interface MatSelect {
51
37
  /**
52
38
  * Returns whether the panel would set its own height to fit all materials within its height.
53
39
  * @realm client
54
40
  * @source https://wiki.facepunch.com/gmod/MatSelect:GetAutoHeight
55
41
  */
56
42
  GetAutoHeight(self: MatSelect): boolean;
57
- }
58
-
59
- interface MatSelect {
60
43
  /**
61
44
  * **INTERNAL**: Use [MatSelect:FindAndSelectMaterial](https://wiki.facepunch.com/gmod/MatSelect:FindAndSelectMaterial) instead.
62
45
  *
@@ -66,36 +49,24 @@ interface MatSelect {
66
49
  * @source https://wiki.facepunch.com/gmod/MatSelect:SelectMaterial
67
50
  */
68
51
  SelectMaterial(self: MatSelect, mat: DImageButton): void;
69
- }
70
-
71
- interface MatSelect {
72
52
  /**
73
53
  * Sets whether the panel should set its own height to fit all materials within its height.
74
54
  * @realm client
75
55
  * @source https://wiki.facepunch.com/gmod/MatSelect:SetAutoHeight
76
56
  */
77
57
  SetAutoHeight(self: MatSelect, autoSize: boolean): void;
78
- }
79
-
80
- interface MatSelect {
81
58
  /**
82
59
  * Sets the height of a single material in pixels.
83
60
  * @realm client
84
61
  * @source https://wiki.facepunch.com/gmod/MatSelect:SetItemHeight
85
62
  */
86
63
  SetItemHeight(self: MatSelect, height: number): void;
87
- }
88
-
89
- interface MatSelect {
90
64
  /**
91
65
  * Sets the width of a single material in pixels.
92
66
  * @realm client
93
67
  * @source https://wiki.facepunch.com/gmod/MatSelect:SetItemWidth
94
68
  */
95
69
  SetItemWidth(self: MatSelect, width: number): void;
96
- }
97
-
98
- interface MatSelect {
99
70
  /**
100
71
  * Sets the target height of the panel, in number of rows.
101
72
  * @realm client
@@ -104,3 +75,13 @@ interface MatSelect {
104
75
  SetNumRows(self: MatSelect, rows: number): void;
105
76
  }
106
77
 
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
@@ -17,18 +17,12 @@ interface MenubarLib {
17
17
  * @source https://wiki.facepunch.com/gmod/menubar.Init
18
18
  */
19
19
  Init(): void;
20
- }
21
-
22
- interface MenubarLib {
23
20
  /**
24
21
  * Checks if the supplied panel is parent to the menubar
25
22
  * @realm client
26
23
  * @source https://wiki.facepunch.com/gmod/menubar.IsParent
27
24
  */
28
25
  IsParent(pnl: Panel): boolean;
29
- }
30
-
31
- interface MenubarLib {
32
26
  /**
33
27
  * Parents the menubar to the panel and displays the menubar.
34
28
  * @realm client
@@ -37,3 +31,5 @@ interface MenubarLib {
37
31
  ParentTo(pnl: Panel): void;
38
32
  }
39
33
 
34
+
35
+
package/types/mesh.d.tlua CHANGED
@@ -13,9 +13,6 @@ interface MeshLib {
13
13
  * @source https://wiki.facepunch.com/gmod/mesh.AdvanceVertex
14
14
  */
15
15
  AdvanceVertex(): void;
16
- }
17
-
18
- interface MeshLib {
19
16
  /**
20
17
  * Begins creating or modifying a 3D mesh constructed from a given quantity and type of primitive 3D shapes such as triangles and quads.
21
18
  *
@@ -25,22 +22,13 @@ interface MeshLib {
25
22
  * @source https://wiki.facepunch.com/gmod/mesh.Begin
26
23
  */
27
24
  Begin(mesh: IMesh, primitiveType: number, primitiveCount: number): void;
28
- }
29
-
30
- interface MeshLib {
31
25
  Begin(primitiveType: number, primitiveCount: number): void;
32
- }
33
-
34
- interface MeshLib {
35
26
  /**
36
27
  * 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
28
  * @realm client
38
29
  * @source https://wiki.facepunch.com/gmod/mesh.BoneData
39
30
  */
40
31
  BoneData(index: number, matrixId: number, weight: number): void;
41
- }
42
-
43
- interface MeshLib {
44
32
  /**
45
33
  * Sets the color to be used for the next vertex. This is `COLOR0` semantic of
46
34
  * Vertex Shader. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
@@ -48,53 +36,32 @@ interface MeshLib {
48
36
  * @source https://wiki.facepunch.com/gmod/mesh.Color
49
37
  */
50
38
  Color(r: number, g: number, b: number, a: number): void;
51
- }
52
-
53
- interface MeshLib {
54
39
  /**
55
40
  * Ends the mesh (Started with [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin)) and renders it.
56
41
  * @realm client
57
42
  * @source https://wiki.facepunch.com/gmod/mesh.End
58
43
  */
59
44
  End(): void;
60
- }
61
-
62
- interface MeshLib {
63
45
  /**
64
46
  * Sets the normal to be used for the next vertex. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
65
47
  * @realm client
66
48
  * @source https://wiki.facepunch.com/gmod/mesh.Normal
67
49
  */
68
50
  Normal(normal: Vector): void;
69
- }
70
-
71
- interface MeshLib {
72
51
  Normal(x: number, y: number, z: number): void;
73
- }
74
-
75
- interface MeshLib {
76
52
  /**
77
53
  * Sets the position to be used for the next vertex. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
78
54
  * @realm client
79
55
  * @source https://wiki.facepunch.com/gmod/mesh.Position
80
56
  */
81
57
  Position(position: Vector): void;
82
- }
83
-
84
- interface MeshLib {
85
58
  Position(x: number, y: number, z: number): void;
86
- }
87
-
88
- interface MeshLib {
89
59
  /**
90
60
  * Adds a quad (4 vertices) to the currently built mesh. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
91
61
  * @realm client
92
62
  * @source https://wiki.facepunch.com/gmod/mesh.Quad
93
63
  */
94
64
  Quad(vertex1: Vector, vertex2: Vector, vertex3: Vector, vertex4: Vector, color: Color): void;
95
- }
96
-
97
- interface MeshLib {
98
65
  /**
99
66
  * 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
67
  *
@@ -103,9 +70,6 @@ interface MeshLib {
103
70
  * @source https://wiki.facepunch.com/gmod/mesh.QuadEasy
104
71
  */
105
72
  QuadEasy(position: Vector, normal: Vector, sizeX: number, sizeY: number, color: Color): void;
106
- }
107
-
108
- interface MeshLib {
109
73
  /**
110
74
  * 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
75
  *
@@ -113,9 +77,6 @@ interface MeshLib {
113
77
  * @source https://wiki.facepunch.com/gmod/mesh.Specular
114
78
  */
115
79
  Specular(r: number, g: number, b: number, a: number): void;
116
- }
117
-
118
- interface MeshLib {
119
80
  /**
120
81
  * Sets the `S` tangent to be used, also known as "binormal".
121
82
  *
@@ -127,13 +88,7 @@ interface MeshLib {
127
88
  * @source https://wiki.facepunch.com/gmod/mesh.TangentS
128
89
  */
129
90
  TangentS(tangentS: Vector): void;
130
- }
131
-
132
- interface MeshLib {
133
91
  TangentS(x: number, y: number, z: number): void;
134
- }
135
-
136
- interface MeshLib {
137
92
  /**
138
93
  * Sets the `T` tangent to be used.
139
94
  *
@@ -145,13 +100,7 @@ interface MeshLib {
145
100
  * @source https://wiki.facepunch.com/gmod/mesh.TangentT
146
101
  */
147
102
  TangentT(tangentT: Vector): void;
148
- }
149
-
150
- interface MeshLib {
151
103
  TangentT(x: number, y: number, z: number): void;
152
- }
153
-
154
- interface MeshLib {
155
104
  /**
156
105
  * Sets the texture coordinates for the next vertex for the current mesh. (See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin))
157
106
  *
@@ -159,9 +108,6 @@ interface MeshLib {
159
108
  * @source https://wiki.facepunch.com/gmod/mesh.TexCoord
160
109
  */
161
110
  TexCoord(set: number, s: number, t: number, u?: number, v?: number): void;
162
- }
163
-
164
- interface MeshLib {
165
111
  /**
166
112
  * A set of four numbers that can be used for arbitrary purposes by [Material](https://wiki.facepunch.com/gmod/Material) shaders.
167
113
  * This is most commonly used to provide tangent information about each vertex to the Material's shader.
@@ -170,9 +116,6 @@ interface MeshLib {
170
116
  * @source https://wiki.facepunch.com/gmod/mesh.UserData
171
117
  */
172
118
  UserData(tangentX: number, tangentY: number, tangentZ: number, tangentHandedness: number): void;
173
- }
174
-
175
- interface MeshLib {
176
119
  /**
177
120
  * Returns the amount of vertices that have been pushed via [mesh.AdvanceVertex](https://wiki.facepunch.com/gmod/mesh.AdvanceVertex).
178
121
  * @realm client
@@ -181,3 +124,22 @@ interface MeshLib {
181
124
  VertexCount(): number;
182
125
  }
183
126
 
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
@@ -17,53 +17,35 @@ 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
-
22
- interface MotionsensorLib {
23
20
  /**
24
21
  * @realm shared
25
22
  * @source https://wiki.facepunch.com/gmod/motionsensor.ChooseBuilderFromEntity
26
23
  */
27
24
  ChooseBuilderFromEntity(ent: Entity): string;
28
- }
29
-
30
- interface MotionsensorLib {
31
25
  /**
32
26
  * Returns the depth map material.
33
27
  * @realm client and menu
34
28
  * @source https://wiki.facepunch.com/gmod/motionsensor.GetColourMaterial
35
29
  */
36
30
  GetColourMaterial(): IMaterial;
37
- }
38
-
39
- interface MotionsensorLib {
40
31
  /**
41
32
  * 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
33
  * @realm client
43
34
  * @source https://wiki.facepunch.com/gmod/motionsensor.GetSkeleton
44
35
  */
45
36
  GetSkeleton(): table;
46
- }
47
-
48
- interface MotionsensorLib {
49
37
  /**
50
38
  * Return whether a kinect is connected - and active (ie - Start has been called).
51
39
  * @realm client
52
40
  * @source https://wiki.facepunch.com/gmod/motionsensor.IsActive
53
41
  */
54
42
  IsActive(): boolean;
55
- }
56
-
57
- interface MotionsensorLib {
58
43
  /**
59
44
  * Returns true if we have detected that there's a kinect connected to the PC
60
45
  * @realm client and menu
61
46
  * @source https://wiki.facepunch.com/gmod/motionsensor.IsAvailable
62
47
  */
63
48
  IsAvailable(): boolean;
64
- }
65
-
66
- interface MotionsensorLib {
67
49
  /**
68
50
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
69
51
  * 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 +53,6 @@ interface MotionsensorLib {
71
53
  * @source https://wiki.facepunch.com/gmod/motionsensor.ProcessAngle
72
54
  */
73
55
  ProcessAngle(translator: table, sensor: table, pos: Vector, ang: Angle, special_vectors: table, boneid: number, v: table): boolean;
74
- }
75
-
76
- interface MotionsensorLib {
77
56
  /**
78
57
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
79
58
  * 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 +62,6 @@ interface MotionsensorLib {
83
62
  * @source https://wiki.facepunch.com/gmod/motionsensor.ProcessAnglesTable
84
63
  */
85
64
  ProcessAnglesTable(translator: table, sensor: table, pos: Vector, rotation: Angle): table;
86
- }
87
-
88
- interface MotionsensorLib {
89
65
  /**
90
66
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
91
67
  * 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 +69,12 @@ interface MotionsensorLib {
93
69
  * @source https://wiki.facepunch.com/gmod/motionsensor.ProcessPositionTable
94
70
  */
95
71
  ProcessPositionTable(translator: table, sensor: table): table;
96
- }
97
-
98
- interface MotionsensorLib {
99
72
  /**
100
73
  * This starts access to the kinect sensor. Note that this usually freezes the game for a couple of seconds.
101
74
  * @realm client and menu
102
75
  * @source https://wiki.facepunch.com/gmod/motionsensor.Start
103
76
  */
104
77
  Start(): boolean;
105
- }
106
-
107
- interface MotionsensorLib {
108
78
  /**
109
79
  * Stops the motion capture.
110
80
  * @realm client
@@ -113,3 +83,13 @@ interface MotionsensorLib {
113
83
  Stop(): void;
114
84
  }
115
85
 
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+