@tlua/gmod 1.0.1

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 (278) hide show
  1. package/README.md +28 -0
  2. package/__metadata.json +4 -0
  3. package/_globals.d.tlua +178 -0
  4. package/_gmod-std.d.tlua +35 -0
  5. package/achievementicon.d.tlua +12 -0
  6. package/achievements.d.tlua +162 -0
  7. package/ai.d.tlua +65 -0
  8. package/ai_schedule.d.tlua +17 -0
  9. package/ai_task.d.tlua +17 -0
  10. package/angle.d.tlua +197 -0
  11. package/avatarimage.d.tlua +10 -0
  12. package/awesomium.d.tlua +14 -0
  13. package/baseclass.d.tlua +42 -0
  14. package/bf_read.d.tlua +110 -0
  15. package/bit.d.tlua +121 -0
  16. package/button.d.tlua +13 -0
  17. package/cam.d.tlua +220 -0
  18. package/ceffectdata.d.tlua +337 -0
  19. package/chat.d.tlua +62 -0
  20. package/checkbutton.d.tlua +14 -0
  21. package/cleanup.d.tlua +88 -0
  22. package/cluaemitter.d.tlua +119 -0
  23. package/clualocomotion.d.tlua +383 -0
  24. package/cluaparticle.d.tlua +426 -0
  25. package/cmovedata.d.tlua +476 -0
  26. package/cnavarea.d.tlua +845 -0
  27. package/cnavladder.d.tlua +209 -0
  28. package/cnewparticleeffect.d.tlua +259 -0
  29. package/color.d.tlua +339 -0
  30. package/concommand.d.tlua +69 -0
  31. package/constraint.d.tlua +311 -0
  32. package/construct.d.tlua +26 -0
  33. package/contentheader.d.tlua +32 -0
  34. package/contenticon.d.tlua +86 -0
  35. package/contentsidebar.d.tlua +45 -0
  36. package/contentsidebartoolbox.d.tlua +13 -0
  37. package/contextbase.d.tlua +37 -0
  38. package/controlpanel.d.tlua +140 -0
  39. package/controlpresets.d.tlua +118 -0
  40. package/convar.d.tlua +162 -0
  41. package/cookie.d.tlua +60 -0
  42. package/coroutine.d.tlua +90 -0
  43. package/crecipientfilter.d.tlua +152 -0
  44. package/csent.d.tlua +10 -0
  45. package/csoundpatch.d.tlua +150 -0
  46. package/ctakedamageinfo.d.tlua +366 -0
  47. package/ctrllistbox.d.tlua +12 -0
  48. package/ctrlnumpad.d.tlua +73 -0
  49. package/cusercmd.d.tlua +320 -0
  50. package/custom_classes.d.tlua +65 -0
  51. package/custom_entity_fields.d.tlua +96 -0
  52. package/cvars.d.tlua +80 -0
  53. package/dadjustablemodelpanel.d.tlua +81 -0
  54. package/dalphabar.d.tlua +27 -0
  55. package/dbinder.d.tlua +37 -0
  56. package/dbubblecontainer.d.tlua +18 -0
  57. package/dbutton.d.tlua +88 -0
  58. package/dcategoryheader.d.tlua +13 -0
  59. package/dcategorylist.d.tlua +11 -0
  60. package/dcheckbox.d.tlua +46 -0
  61. package/dcheckboxlabel.d.tlua +90 -0
  62. package/dcollapsiblecategory.d.tlua +240 -0
  63. package/dcolorbutton.d.tlua +73 -0
  64. package/dcolorcombo.d.tlua +54 -0
  65. package/dcolorcube.d.tlua +137 -0
  66. package/dcolormixer.d.tlua +303 -0
  67. package/dcolorpalette.d.tlua +294 -0
  68. package/dcolumnsheet.d.tlua +49 -0
  69. package/dcombobox.d.tlua +161 -0
  70. package/ddragbase.d.tlua +151 -0
  71. package/ddrawer.d.tlua +72 -0
  72. package/debug.d.tlua +236 -0
  73. package/debugoverlay.d.tlua +193 -0
  74. package/dentityproperties.d.tlua +63 -0
  75. package/derma.d.tlua +119 -0
  76. package/dexpandbutton.d.tlua +30 -0
  77. package/dfilebrowser.d.tlua +228 -0
  78. package/dform.d.tlua +176 -0
  79. package/dframe.d.tlua +261 -0
  80. package/dgrid.d.tlua +113 -0
  81. package/dhorizontaldivider.d.tlua +196 -0
  82. package/dhorizontalscroller.d.tlua +104 -0
  83. package/dhscrollbar.d.tlua +109 -0
  84. package/dhtml.d.tlua +91 -0
  85. package/dhtmlcontrols.d.tlua +62 -0
  86. package/diconbrowser.d.tlua +113 -0
  87. package/diconlayout.d.tlua +190 -0
  88. package/dimage.d.tlua +221 -0
  89. package/dimagebutton.d.tlua +103 -0
  90. package/dkillicon.d.tlua +9 -0
  91. package/dlabel.d.tlua +385 -0
  92. package/dlabeleditable.d.tlua +51 -0
  93. package/dlabelurl.d.tlua +100 -0
  94. package/dlistbox.d.tlua +82 -0
  95. package/dlistboxitem.d.tlua +42 -0
  96. package/dlistlayout.d.tlua +14 -0
  97. package/dlistview.d.tlua +360 -0
  98. package/dlistview_column.d.tlua +135 -0
  99. package/dlistview_columnplain.d.tlua +11 -0
  100. package/dlistview_draggerbar.d.tlua +11 -0
  101. package/dlistview_line.d.tlua +140 -0
  102. package/dlistviewheaderlabel.d.tlua +11 -0
  103. package/dlistviewlabel.d.tlua +11 -0
  104. package/dlistviewline.d.tlua +11 -0
  105. package/dmenu.d.tlua +266 -0
  106. package/dmenubar.d.tlua +42 -0
  107. package/dmenuoption.d.tlua +135 -0
  108. package/dmenuoptioncvar.d.tlua +64 -0
  109. package/dmodelpanel.d.tlua +207 -0
  110. package/dmodelselect.d.tlua +20 -0
  111. package/dmodelselectmulti.d.tlua +19 -0
  112. package/dnotify.d.tlua +93 -0
  113. package/dnumberscratch.d.tlua +284 -0
  114. package/dnumberwang.d.tlua +147 -0
  115. package/dnumpad.d.tlua +11 -0
  116. package/dnumslider.d.tlua +182 -0
  117. package/dpanel.d.tlua +152 -0
  118. package/dpanellist.d.tlua +109 -0
  119. package/dpaneloverlay.d.tlua +65 -0
  120. package/dpanelselect.d.tlua +13 -0
  121. package/dpanpanel.d.tlua +64 -0
  122. package/dprogress.d.tlua +27 -0
  123. package/dproperties.d.tlua +52 -0
  124. package/dproperty_boolean.d.tlua +12 -0
  125. package/dproperty_combo.d.tlua +31 -0
  126. package/dproperty_entity.d.tlua +12 -0
  127. package/dproperty_float.d.tlua +12 -0
  128. package/dproperty_generic.d.tlua +50 -0
  129. package/dproperty_int.d.tlua +12 -0
  130. package/dproperty_vectorcolor.d.tlua +14 -0
  131. package/dpropertysheet.d.tlua +167 -0
  132. package/dragndrop.d.tlua +123 -0
  133. package/draw.d.tlua +162 -0
  134. package/drgbpicker.d.tlua +49 -0
  135. package/drive.d.tlua +159 -0
  136. package/dscrollbargrip.d.tlua +13 -0
  137. package/dscrollpanel.d.tlua +110 -0
  138. package/dshape.d.tlua +72 -0
  139. package/dsizetocontents.d.tlua +46 -0
  140. package/dslider.d.tlua +302 -0
  141. package/dsprite.d.tlua +84 -0
  142. package/dtab.d.tlua +81 -0
  143. package/dtextentry.d.tlua +442 -0
  144. package/dtilelayout.d.tlua +218 -0
  145. package/dtooltip.d.tlua +76 -0
  146. package/dtree.d.tlua +185 -0
  147. package/dtree_node.d.tlua +793 -0
  148. package/dtree_node_button.d.tlua +13 -0
  149. package/duplicator.d.tlua +338 -0
  150. package/dverticaldivider.d.tlua +223 -0
  151. package/dvscrollbar.d.tlua +109 -0
  152. package/editablepanel.d.tlua +10 -0
  153. package/effect.d.tlua +121 -0
  154. package/effects.d.tlua +77 -0
  155. package/engine.d.tlua +248 -0
  156. package/entity.d.tlua +8295 -0
  157. package/ents.d.tlua +267 -0
  158. package/enums.d.tlua +7082 -0
  159. package/file.d.tlua +419 -0
  160. package/file_class.d.tlua +7 -0
  161. package/fingerposer.d.tlua +12 -0
  162. package/fingervar.d.tlua +13 -0
  163. package/frame.d.tlua +11 -0
  164. package/frame_blend.d.tlua +105 -0
  165. package/game.d.tlua +482 -0
  166. package/gameevent.d.tlua +968 -0
  167. package/gamemode.d.tlua +48 -0
  168. package/global.d.tlua +3156 -0
  169. package/gm.d.tlua +3218 -0
  170. package/gmod.d.tlua +20 -0
  171. package/gmsave.d.tlua +53 -0
  172. package/gui.d.tlua +232 -0
  173. package/gwen.d.tlua +55 -0
  174. package/halo.d.tlua +42 -0
  175. package/hammer.d.tlua +17 -0
  176. package/hook.d.tlua +64 -0
  177. package/html.d.tlua +22 -0
  178. package/http.d.tlua +72 -0
  179. package/iconeditor.d.tlua +130 -0
  180. package/igmodaudiochannel.d.tlua +419 -0
  181. package/imagecheckbox.d.tlua +48 -0
  182. package/imaterial.d.tlua +288 -0
  183. package/imesh.d.tlua +70 -0
  184. package/index.d.tlua +277 -0
  185. package/input.d.tlua +252 -0
  186. package/invalidateinternalentitycache.d.tlua +13 -0
  187. package/irestore.d.tlua +94 -0
  188. package/isave.d.tlua +94 -0
  189. package/itexture.d.tlua +108 -0
  190. package/ivideowriter.d.tlua +53 -0
  191. package/jit.d.tlua +243 -0
  192. package/killicon.d.tlua +84 -0
  193. package/label.d.tlua +20 -0
  194. package/language.d.tlua +26 -0
  195. package/list.d.tlua +112 -0
  196. package/makeballoon.d.tlua +15 -0
  197. package/markup.d.tlua +38 -0
  198. package/markupobject.d.tlua +53 -0
  199. package/material.d.tlua +9 -0
  200. package/math.d.tlua +899 -0
  201. package/matproxy.d.tlua +60 -0
  202. package/matselect.d.tlua +106 -0
  203. package/menu.d.tlua +20 -0
  204. package/menubar.d.tlua +39 -0
  205. package/mesh.d.tlua +183 -0
  206. package/modelimage.d.tlua +12 -0
  207. package/motionsensor.d.tlua +115 -0
  208. package/navmesh.d.tlua +274 -0
  209. package/net.d.tlua +639 -0
  210. package/nextbot.d.tlua +380 -0
  211. package/notification.d.tlua +35 -0
  212. package/npc.d.tlua +1787 -0
  213. package/numpad.d.tlua +89 -0
  214. package/os.d.tlua +56 -0
  215. package/package.d.tlua +15 -0
  216. package/package.json +18 -0
  217. package/panel.d.tlua +3650 -0
  218. package/panellist.d.tlua +13 -0
  219. package/pathfollower.d.tlua +301 -0
  220. package/permissions.d.tlua +77 -0
  221. package/physcollide.d.tlua +40 -0
  222. package/physenv.d.tlua +136 -0
  223. package/physobj.d.tlua +799 -0
  224. package/pixelvis_handle_t.d.tlua +9 -0
  225. package/player.d.tlua +3320 -0
  226. package/player_manager.d.tlua +147 -0
  227. package/preseteditor.d.tlua +13 -0
  228. package/presets.d.tlua +79 -0
  229. package/projectedtexture.d.tlua +553 -0
  230. package/properties.d.tlua +65 -0
  231. package/propselect.d.tlua +50 -0
  232. package/radiobutton.d.tlua +13 -0
  233. package/render.d.tlua +1700 -0
  234. package/resource.d.tlua +73 -0
  235. package/richtext.d.tlua +17 -0
  236. package/sandbox.d.tlua +576 -0
  237. package/saverestore.d.tlua +148 -0
  238. package/schedule.d.tlua +69 -0
  239. package/scripted_ents.d.tlua +124 -0
  240. package/search.d.tlua +26 -0
  241. package/serverlist.d.tlua +85 -0
  242. package/slidebar.d.tlua +12 -0
  243. package/slider.d.tlua +11 -0
  244. package/sound.d.tlua +140 -0
  245. package/spawnicon.d.tlua +95 -0
  246. package/spawnmenu.d.tlua +286 -0
  247. package/spawnmenucontentpanel.d.tlua +52 -0
  248. package/sql.d.tlua +154 -0
  249. package/stack.d.tlua +57 -0
  250. package/steamworks.d.tlua +208 -0
  251. package/string.d.tlua +535 -0
  252. package/structures.d.tlua +4442 -0
  253. package/surface.d.tlua +463 -0
  254. package/surfaceinfo.d.tlua +70 -0
  255. package/system.d.tlua +134 -0
  256. package/table.d.tlua +533 -0
  257. package/task.d.tlua +92 -0
  258. package/team.d.tlua +195 -0
  259. package/textentry.d.tlua +12 -0
  260. package/tgaimage.d.tlua +11 -0
  261. package/timer.d.tlua +198 -0
  262. package/tool.d.tlua +466 -0
  263. package/ugcpublishwindow.d.tlua +83 -0
  264. package/umsg.d.tlua +147 -0
  265. package/undo.d.tlua +122 -0
  266. package/urllabel.d.tlua +13 -0
  267. package/usermessage.d.tlua +48 -0
  268. package/utf8.d.tlua +89 -0
  269. package/util.d.tlua +1087 -0
  270. package/vector.d.tlua +413 -0
  271. package/vehicle.d.tlua +472 -0
  272. package/vgui.d.tlua +201 -0
  273. package/video.d.tlua +17 -0
  274. package/vmatrix.d.tlua +392 -0
  275. package/weapon.d.tlua +913 -0
  276. package/weapons.d.tlua +90 -0
  277. package/widgets.d.tlua +29 -0
  278. package/workshopfilebase.d.tlua +68 -0
@@ -0,0 +1,288 @@
1
+ // AUTO-GENERATED tlua declarations. Do not edit by hand.
2
+
3
+ /**
4
+ * A Material object. It represents a game material, similarly to how a `.vmt` file does, which are in fact loaded into an **IMaterial** object.
5
+ *
6
+ * In most cases the game works with materials as far as file paths go. Materials then point to different [ITexture](https://wiki.facepunch.com/gmod/ITexture)s (`.vtf` files) they might be using.
7
+ * They are not the same and cannot be interchanged.
8
+ *
9
+ * A material object can be created with [Global.Material](https://wiki.facepunch.com/gmod/Global.Material) or [Global.CreateMaterial](https://wiki.facepunch.com/gmod/Global.CreateMaterial).
10
+ * @source https://wiki.facepunch.com/gmod/IMaterial
11
+ */
12
+ interface IMaterial {}
13
+
14
+ interface IMaterial {
15
+ /**
16
+ * Returns the color of the specified pixel of the `$basetexture`, only works for materials created from PNG files.
17
+ *
18
+ * Basically identical to [ITexture:GetColor](https://wiki.facepunch.com/gmod/ITexture:GetColor) used on [IMaterial:GetTexture](https://wiki.facepunch.com/gmod/IMaterial:GetTexture)`( "$basetexture" )`.
19
+ *
20
+ * @realm shared and menu
21
+ * @source https://wiki.facepunch.com/gmod/IMaterial:GetColor
22
+ */
23
+ GetColor(self: IMaterial, x: number, y: number): Color;
24
+ }
25
+
26
+ interface IMaterial {
27
+ /**
28
+ * Returns the specified material value as a float, or nil if the value is not set.
29
+ * @realm shared and menu
30
+ * @source https://wiki.facepunch.com/gmod/IMaterial:GetFloat
31
+ */
32
+ GetFloat(self: IMaterial, materialFloat: string): number;
33
+ }
34
+
35
+ interface IMaterial {
36
+ /**
37
+ * Returns the specified material value as a int, rounds the value if its a float, or nil if the value is not set.
38
+ *
39
+ * **NOTE**: Please note that certain material flags such as `$model` are stored in the `$flags` variable and cannot be directly retrieved with this function. See the full list here: [Material Flags](https://wiki.facepunch.com/gmod/Material_Flags)
40
+ *
41
+ *
42
+ * @realm shared and menu
43
+ * @source https://wiki.facepunch.com/gmod/IMaterial:GetInt
44
+ */
45
+ GetInt(self: IMaterial, materialInt: string): number;
46
+ }
47
+
48
+ interface IMaterial {
49
+ /**
50
+ * Gets all the key values defined for the material.
51
+ * @realm shared
52
+ * @source https://wiki.facepunch.com/gmod/IMaterial:GetKeyValues
53
+ */
54
+ GetKeyValues(self: IMaterial): Table<string, any>;
55
+ }
56
+
57
+ interface IMaterial {
58
+ /**
59
+ * Returns the specified material matrix as a int, or nil if the value is not set or is not a matrix.
60
+ * @realm shared
61
+ * @source https://wiki.facepunch.com/gmod/IMaterial:GetMatrix
62
+ */
63
+ GetMatrix(self: IMaterial, materialMatrix: string): VMatrix;
64
+ }
65
+
66
+ interface IMaterial {
67
+ /**
68
+ * Returns the name of the material, in most cases the path.
69
+ * @realm shared and menu
70
+ * @source https://wiki.facepunch.com/gmod/IMaterial:GetName
71
+ */
72
+ GetName(self: IMaterial): string;
73
+ }
74
+
75
+ interface IMaterial {
76
+ /**
77
+ * Returns the name of the materials shader.
78
+ *
79
+ * This function does not work serverside on Linux SRCDS and always returns `shader_error`.
80
+ *
81
+ * This bug is fixed on `dev` beta and in the next update.
82
+ *
83
+ *
84
+ * @realm shared and menu
85
+ * @source https://wiki.facepunch.com/gmod/IMaterial:GetShader
86
+ */
87
+ GetShader(self: IMaterial): string;
88
+ }
89
+
90
+ interface IMaterial {
91
+ /**
92
+ * Returns the specified material string, or nil if the value is not set or if the value can not be converted to a string.
93
+ * @realm shared and menu
94
+ * @source https://wiki.facepunch.com/gmod/IMaterial:GetString
95
+ */
96
+ GetString(self: IMaterial, materialString: string): string;
97
+ }
98
+
99
+ interface IMaterial {
100
+ /**
101
+ * Returns an [ITexture](https://wiki.facepunch.com/gmod/ITexture) based on the passed shader parameter.
102
+ * @realm shared and menu
103
+ * @source https://wiki.facepunch.com/gmod/IMaterial:GetTexture
104
+ */
105
+ GetTexture(self: IMaterial, param: string): ITexture;
106
+ }
107
+
108
+ interface IMaterial {
109
+ /**
110
+ * Returns the specified material vector, or nil if the value is not set.
111
+ *
112
+ * See also [IMaterial:GetVectorLinear](https://wiki.facepunch.com/gmod/IMaterial:GetVectorLinear)
113
+ *
114
+ * @realm shared and menu
115
+ * @source https://wiki.facepunch.com/gmod/IMaterial:GetVector
116
+ */
117
+ GetVector(self: IMaterial, materialVector: string): Vector;
118
+ }
119
+
120
+ interface IMaterial {
121
+ /**
122
+ * Returns the specified material vector as a 4 component vector.
123
+ * @realm shared and menu
124
+ * @source https://wiki.facepunch.com/gmod/IMaterial:GetVector4D
125
+ */
126
+ GetVector4D(self: IMaterial, name: string): (number, number, number, number);
127
+ }
128
+
129
+ interface IMaterial {
130
+ /**
131
+ * Returns the specified material linear color vector, or nil if the value is not set.
132
+ *
133
+ * See https://en.wikipedia.org/wiki/Gamma_correction
134
+ *
135
+ * See also [IMaterial:GetVector](https://wiki.facepunch.com/gmod/IMaterial:GetVector)
136
+ *
137
+ * @realm shared and menu
138
+ * @source https://wiki.facepunch.com/gmod/IMaterial:GetVectorLinear
139
+ */
140
+ GetVectorLinear(self: IMaterial, materialVector: string): Vector;
141
+ }
142
+
143
+ interface IMaterial {
144
+ /**
145
+ * Returns the height of the member texture set for `$basetexture`.
146
+ * @realm shared and menu
147
+ * @source https://wiki.facepunch.com/gmod/IMaterial:Height
148
+ */
149
+ Height(self: IMaterial): number;
150
+ }
151
+
152
+ interface IMaterial {
153
+ /**
154
+ * Returns whenever the material is valid, i.e. whether it was not loaded successfully from disk or not.
155
+ * @realm shared and menu
156
+ * @source https://wiki.facepunch.com/gmod/IMaterial:IsError
157
+ */
158
+ IsError(self: IMaterial): boolean;
159
+ }
160
+
161
+ interface IMaterial {
162
+ /**
163
+ * Recomputes the material's snapshot. This needs to be called if you have changed variables on your material and it isn't changing.
164
+ *
165
+ * Be careful though - this function is slow - so try to call it only when needed!
166
+ *
167
+ * @realm shared and menu
168
+ * @source https://wiki.facepunch.com/gmod/IMaterial:Recompute
169
+ */
170
+ Recompute(self: IMaterial): void;
171
+ }
172
+
173
+ interface IMaterial {
174
+ /**
175
+ * Changes the Material into the give Image.
176
+ * **INTERNAL**: This is used by the Background to change the Image.
177
+ *
178
+ *
179
+ * @realm menu
180
+ * @source https://wiki.facepunch.com/gmod/IMaterial:SetDynamicImage
181
+ */
182
+ SetDynamicImage(self: IMaterial, path: string): void;
183
+ }
184
+
185
+ interface IMaterial {
186
+ /**
187
+ * Sets the specified material float to the specified float, does nothing on a type mismatch.
188
+ *
189
+ * Unlike [IMaterial:SetInt](https://wiki.facepunch.com/gmod/IMaterial:SetInt), this function **does not** call [IMaterial:Recompute](https://wiki.facepunch.com/gmod/IMaterial:Recompute) internally.
190
+ *
191
+ * @realm shared and menu
192
+ * @source https://wiki.facepunch.com/gmod/IMaterial:SetFloat
193
+ */
194
+ SetFloat(self: IMaterial, materialFloat: string, float: number): void;
195
+ }
196
+
197
+ interface IMaterial {
198
+ /**
199
+ * Sets the specified material value to the specified int, does nothing on a type mismatch.
200
+ *
201
+ * Calls [IMaterial:Recompute](https://wiki.facepunch.com/gmod/IMaterial:Recompute) internally.
202
+ *
203
+ * **NOTE**: Please note that certain material flags such as `$model` are stored in the `$flags` variable and cannot be directly set with this function. See the full list here: [Material Flags](https://wiki.facepunch.com/gmod/Material_Flags)
204
+ *
205
+ *
206
+ *
207
+ * @realm shared and menu
208
+ * @source https://wiki.facepunch.com/gmod/IMaterial:SetInt
209
+ */
210
+ SetInt(self: IMaterial, materialInt: string, int: number): void;
211
+ }
212
+
213
+ interface IMaterial {
214
+ /**
215
+ * Sets the specified material value to the specified matrix, does nothing on a type mismatch.
216
+ * @realm shared
217
+ * @source https://wiki.facepunch.com/gmod/IMaterial:SetMatrix
218
+ */
219
+ SetMatrix(self: IMaterial, materialMatrix: string, matrix: VMatrix): void;
220
+ }
221
+
222
+ interface IMaterial {
223
+ /**
224
+ * The functionality of this function was removed due to the amount of crashes it caused.
225
+ * @realm shared and menu
226
+ * @source https://wiki.facepunch.com/gmod/IMaterial:SetShader
227
+ * @deprecated This function does nothing
228
+ */
229
+ SetShader(self: IMaterial, shaderName: string): void;
230
+ }
231
+
232
+ interface IMaterial {
233
+ /**
234
+ * Sets the specified material value to the specified string, does nothing on a type mismatch.
235
+ * @realm shared and menu
236
+ * @source https://wiki.facepunch.com/gmod/IMaterial:SetString
237
+ */
238
+ SetString(self: IMaterial, materialString: string, string: string): void;
239
+ }
240
+
241
+ interface IMaterial {
242
+ /**
243
+ * Sets the specified material texture to the specified texture, does nothing on a type mismatch.
244
+ *
245
+ * Calls [IMaterial:Recompute](https://wiki.facepunch.com/gmod/IMaterial:Recompute) internally.
246
+ *
247
+ * @realm shared and menu
248
+ * @source https://wiki.facepunch.com/gmod/IMaterial:SetTexture
249
+ */
250
+ SetTexture(self: IMaterial, materialTexture: string, texture: ITexture): void;
251
+ }
252
+
253
+ interface IMaterial {
254
+ /**
255
+ * Unsets the value for the specified material value.
256
+ * @realm shared and menu
257
+ * @source https://wiki.facepunch.com/gmod/IMaterial:SetUndefined
258
+ */
259
+ SetUndefined(self: IMaterial, materialValueName: string): void;
260
+ }
261
+
262
+ interface IMaterial {
263
+ /**
264
+ * Sets the specified material vector to the specified vector, does nothing on a type mismatch.
265
+ * @realm shared and menu
266
+ * @source https://wiki.facepunch.com/gmod/IMaterial:SetVector
267
+ */
268
+ SetVector(self: IMaterial, MaterialVector: string, vec: Vector): void;
269
+ }
270
+
271
+ interface IMaterial {
272
+ /**
273
+ * Sets the specified material vector to the specified 4 component vector, does nothing on a type mismatch.
274
+ * @realm shared and menu
275
+ * @source https://wiki.facepunch.com/gmod/IMaterial:SetVector4D
276
+ */
277
+ SetVector4D(self: IMaterial, name: string, x: number, y: number, z: number, w: number): void;
278
+ }
279
+
280
+ interface IMaterial {
281
+ /**
282
+ * Returns the width of the member texture set for `$basetexture`.
283
+ * @realm shared and menu
284
+ * @source https://wiki.facepunch.com/gmod/IMaterial:Width
285
+ */
286
+ Width(self: IMaterial): number;
287
+ }
288
+
package/imesh.d.tlua ADDED
@@ -0,0 +1,70 @@
1
+ // AUTO-GENERATED tlua declarations. Do not edit by hand.
2
+
3
+ /**
4
+ * Renderable mesh object, can be used to create models on the fly.
5
+ * The only way to create your own IMesh object is to call [Global.Mesh](https://wiki.facepunch.com/gmod/Global.Mesh).
6
+ *
7
+ * **NOTE**: IMeshes only respond to one projected texture.
8
+ * See the [render.RenderFlashlights](https://wiki.facepunch.com/gmod/render.RenderFlashlights) function and example that solves this problem.
9
+ *
10
+ *
11
+ * @source https://wiki.facepunch.com/gmod/IMesh
12
+ */
13
+ interface IMesh {}
14
+
15
+ interface IMesh {
16
+ /**
17
+ * Builds the mesh from a table mesh vertexes.
18
+ *
19
+ * When modifying a previously built mesh, your new mesh must match the vertex count!
20
+ *
21
+ * See [Global.Mesh](https://wiki.facepunch.com/gmod/Global.Mesh) and [util.GetModelMeshes](https://wiki.facepunch.com/gmod/util.GetModelMeshes) for examples.
22
+ *
23
+ * **WARNING**: [IMesh](https://wiki.facepunch.com/gmod/IMesh) appears to have a limit of 65535 vertices. You should split your mesh into multiple meshes when above this limit.
24
+ *
25
+ * Exceeding the limit may lead to undefined rendering behavior.
26
+ *
27
+ *
28
+ * @realm client
29
+ * @source https://wiki.facepunch.com/gmod/IMesh:BuildFromTriangles
30
+ */
31
+ BuildFromTriangles(self: IMesh, vertexes: table): void;
32
+ }
33
+
34
+ interface IMesh {
35
+ /**
36
+ * Deletes the mesh and frees the memory used by it.
37
+ * @realm client
38
+ * @source https://wiki.facepunch.com/gmod/IMesh:Destroy
39
+ */
40
+ Destroy(self: IMesh): void;
41
+ }
42
+
43
+ interface IMesh {
44
+ /**
45
+ * Renders the mesh with the active matrix.
46
+ * @realm client
47
+ * @source https://wiki.facepunch.com/gmod/IMesh:Draw
48
+ */
49
+ Draw(self: IMesh): void;
50
+ }
51
+
52
+ interface IMesh {
53
+ /**
54
+ * Renders the mesh with the active matrix and given bone matrices.
55
+ * @realm client
56
+ * @source https://wiki.facepunch.com/gmod/IMesh:DrawSkinned
57
+ */
58
+ DrawSkinned(self: IMesh, bones: VMatrix[], multiply?: boolean): void;
59
+ }
60
+
61
+ interface IMesh {
62
+ /**
63
+ * Returns whether this [IMesh](https://wiki.facepunch.com/gmod/IMesh) is valid or not.
64
+ *
65
+ * @realm client
66
+ * @source https://wiki.facepunch.com/gmod/IMesh:IsValid
67
+ */
68
+ IsValid(self: IMesh): boolean;
69
+ }
70
+
package/index.d.tlua ADDED
@@ -0,0 +1,277 @@
1
+ // Ambient Garry's Mod type declarations for tlua. Generated file -- do not edit.
2
+ // Install this package and add its name to `types` in your tluaconfig.json, e.g.
3
+ // { "compilerOptions": { "types": ["@tlua/gmod"] } }
4
+ /// <reference path="./_globals.d.tlua" />
5
+ /// <reference path="./_gmod-std.d.tlua" />
6
+ /// <reference path="./achievementicon.d.tlua" />
7
+ /// <reference path="./achievements.d.tlua" />
8
+ /// <reference path="./ai.d.tlua" />
9
+ /// <reference path="./ai_schedule.d.tlua" />
10
+ /// <reference path="./ai_task.d.tlua" />
11
+ /// <reference path="./angle.d.tlua" />
12
+ /// <reference path="./avatarimage.d.tlua" />
13
+ /// <reference path="./awesomium.d.tlua" />
14
+ /// <reference path="./baseclass.d.tlua" />
15
+ /// <reference path="./bf_read.d.tlua" />
16
+ /// <reference path="./bit.d.tlua" />
17
+ /// <reference path="./button.d.tlua" />
18
+ /// <reference path="./cam.d.tlua" />
19
+ /// <reference path="./ceffectdata.d.tlua" />
20
+ /// <reference path="./chat.d.tlua" />
21
+ /// <reference path="./checkbutton.d.tlua" />
22
+ /// <reference path="./cleanup.d.tlua" />
23
+ /// <reference path="./cluaemitter.d.tlua" />
24
+ /// <reference path="./clualocomotion.d.tlua" />
25
+ /// <reference path="./cluaparticle.d.tlua" />
26
+ /// <reference path="./cmovedata.d.tlua" />
27
+ /// <reference path="./cnavarea.d.tlua" />
28
+ /// <reference path="./cnavladder.d.tlua" />
29
+ /// <reference path="./cnewparticleeffect.d.tlua" />
30
+ /// <reference path="./color.d.tlua" />
31
+ /// <reference path="./concommand.d.tlua" />
32
+ /// <reference path="./constraint.d.tlua" />
33
+ /// <reference path="./construct.d.tlua" />
34
+ /// <reference path="./contentheader.d.tlua" />
35
+ /// <reference path="./contenticon.d.tlua" />
36
+ /// <reference path="./contentsidebar.d.tlua" />
37
+ /// <reference path="./contentsidebartoolbox.d.tlua" />
38
+ /// <reference path="./contextbase.d.tlua" />
39
+ /// <reference path="./controlpanel.d.tlua" />
40
+ /// <reference path="./controlpresets.d.tlua" />
41
+ /// <reference path="./convar.d.tlua" />
42
+ /// <reference path="./cookie.d.tlua" />
43
+ /// <reference path="./coroutine.d.tlua" />
44
+ /// <reference path="./crecipientfilter.d.tlua" />
45
+ /// <reference path="./csent.d.tlua" />
46
+ /// <reference path="./csoundpatch.d.tlua" />
47
+ /// <reference path="./ctakedamageinfo.d.tlua" />
48
+ /// <reference path="./ctrllistbox.d.tlua" />
49
+ /// <reference path="./ctrlnumpad.d.tlua" />
50
+ /// <reference path="./cusercmd.d.tlua" />
51
+ /// <reference path="./custom_classes.d.tlua" />
52
+ /// <reference path="./custom_entity_fields.d.tlua" />
53
+ /// <reference path="./cvars.d.tlua" />
54
+ /// <reference path="./dadjustablemodelpanel.d.tlua" />
55
+ /// <reference path="./dalphabar.d.tlua" />
56
+ /// <reference path="./dbinder.d.tlua" />
57
+ /// <reference path="./dbubblecontainer.d.tlua" />
58
+ /// <reference path="./dbutton.d.tlua" />
59
+ /// <reference path="./dcategoryheader.d.tlua" />
60
+ /// <reference path="./dcategorylist.d.tlua" />
61
+ /// <reference path="./dcheckbox.d.tlua" />
62
+ /// <reference path="./dcheckboxlabel.d.tlua" />
63
+ /// <reference path="./dcollapsiblecategory.d.tlua" />
64
+ /// <reference path="./dcolorbutton.d.tlua" />
65
+ /// <reference path="./dcolorcombo.d.tlua" />
66
+ /// <reference path="./dcolorcube.d.tlua" />
67
+ /// <reference path="./dcolormixer.d.tlua" />
68
+ /// <reference path="./dcolorpalette.d.tlua" />
69
+ /// <reference path="./dcolumnsheet.d.tlua" />
70
+ /// <reference path="./dcombobox.d.tlua" />
71
+ /// <reference path="./ddragbase.d.tlua" />
72
+ /// <reference path="./ddrawer.d.tlua" />
73
+ /// <reference path="./debug.d.tlua" />
74
+ /// <reference path="./debugoverlay.d.tlua" />
75
+ /// <reference path="./dentityproperties.d.tlua" />
76
+ /// <reference path="./derma.d.tlua" />
77
+ /// <reference path="./dexpandbutton.d.tlua" />
78
+ /// <reference path="./dfilebrowser.d.tlua" />
79
+ /// <reference path="./dform.d.tlua" />
80
+ /// <reference path="./dframe.d.tlua" />
81
+ /// <reference path="./dgrid.d.tlua" />
82
+ /// <reference path="./dhorizontaldivider.d.tlua" />
83
+ /// <reference path="./dhorizontalscroller.d.tlua" />
84
+ /// <reference path="./dhscrollbar.d.tlua" />
85
+ /// <reference path="./dhtml.d.tlua" />
86
+ /// <reference path="./dhtmlcontrols.d.tlua" />
87
+ /// <reference path="./diconbrowser.d.tlua" />
88
+ /// <reference path="./diconlayout.d.tlua" />
89
+ /// <reference path="./dimage.d.tlua" />
90
+ /// <reference path="./dimagebutton.d.tlua" />
91
+ /// <reference path="./dkillicon.d.tlua" />
92
+ /// <reference path="./dlabel.d.tlua" />
93
+ /// <reference path="./dlabeleditable.d.tlua" />
94
+ /// <reference path="./dlabelurl.d.tlua" />
95
+ /// <reference path="./dlistbox.d.tlua" />
96
+ /// <reference path="./dlistboxitem.d.tlua" />
97
+ /// <reference path="./dlistlayout.d.tlua" />
98
+ /// <reference path="./dlistview.d.tlua" />
99
+ /// <reference path="./dlistview_column.d.tlua" />
100
+ /// <reference path="./dlistview_columnplain.d.tlua" />
101
+ /// <reference path="./dlistview_draggerbar.d.tlua" />
102
+ /// <reference path="./dlistview_line.d.tlua" />
103
+ /// <reference path="./dlistviewheaderlabel.d.tlua" />
104
+ /// <reference path="./dlistviewlabel.d.tlua" />
105
+ /// <reference path="./dlistviewline.d.tlua" />
106
+ /// <reference path="./dmenu.d.tlua" />
107
+ /// <reference path="./dmenubar.d.tlua" />
108
+ /// <reference path="./dmenuoption.d.tlua" />
109
+ /// <reference path="./dmenuoptioncvar.d.tlua" />
110
+ /// <reference path="./dmodelpanel.d.tlua" />
111
+ /// <reference path="./dmodelselect.d.tlua" />
112
+ /// <reference path="./dmodelselectmulti.d.tlua" />
113
+ /// <reference path="./dnotify.d.tlua" />
114
+ /// <reference path="./dnumberscratch.d.tlua" />
115
+ /// <reference path="./dnumberwang.d.tlua" />
116
+ /// <reference path="./dnumpad.d.tlua" />
117
+ /// <reference path="./dnumslider.d.tlua" />
118
+ /// <reference path="./dpanel.d.tlua" />
119
+ /// <reference path="./dpanellist.d.tlua" />
120
+ /// <reference path="./dpaneloverlay.d.tlua" />
121
+ /// <reference path="./dpanelselect.d.tlua" />
122
+ /// <reference path="./dpanpanel.d.tlua" />
123
+ /// <reference path="./dprogress.d.tlua" />
124
+ /// <reference path="./dproperties.d.tlua" />
125
+ /// <reference path="./dproperty_boolean.d.tlua" />
126
+ /// <reference path="./dproperty_combo.d.tlua" />
127
+ /// <reference path="./dproperty_entity.d.tlua" />
128
+ /// <reference path="./dproperty_float.d.tlua" />
129
+ /// <reference path="./dproperty_generic.d.tlua" />
130
+ /// <reference path="./dproperty_int.d.tlua" />
131
+ /// <reference path="./dproperty_vectorcolor.d.tlua" />
132
+ /// <reference path="./dpropertysheet.d.tlua" />
133
+ /// <reference path="./dragndrop.d.tlua" />
134
+ /// <reference path="./draw.d.tlua" />
135
+ /// <reference path="./drgbpicker.d.tlua" />
136
+ /// <reference path="./drive.d.tlua" />
137
+ /// <reference path="./dscrollbargrip.d.tlua" />
138
+ /// <reference path="./dscrollpanel.d.tlua" />
139
+ /// <reference path="./dshape.d.tlua" />
140
+ /// <reference path="./dsizetocontents.d.tlua" />
141
+ /// <reference path="./dslider.d.tlua" />
142
+ /// <reference path="./dsprite.d.tlua" />
143
+ /// <reference path="./dtab.d.tlua" />
144
+ /// <reference path="./dtextentry.d.tlua" />
145
+ /// <reference path="./dtilelayout.d.tlua" />
146
+ /// <reference path="./dtooltip.d.tlua" />
147
+ /// <reference path="./dtree.d.tlua" />
148
+ /// <reference path="./dtree_node.d.tlua" />
149
+ /// <reference path="./dtree_node_button.d.tlua" />
150
+ /// <reference path="./duplicator.d.tlua" />
151
+ /// <reference path="./dverticaldivider.d.tlua" />
152
+ /// <reference path="./dvscrollbar.d.tlua" />
153
+ /// <reference path="./editablepanel.d.tlua" />
154
+ /// <reference path="./effect.d.tlua" />
155
+ /// <reference path="./effects.d.tlua" />
156
+ /// <reference path="./engine.d.tlua" />
157
+ /// <reference path="./entity.d.tlua" />
158
+ /// <reference path="./ents.d.tlua" />
159
+ /// <reference path="./enums.d.tlua" />
160
+ /// <reference path="./file.d.tlua" />
161
+ /// <reference path="./file_class.d.tlua" />
162
+ /// <reference path="./fingerposer.d.tlua" />
163
+ /// <reference path="./fingervar.d.tlua" />
164
+ /// <reference path="./frame.d.tlua" />
165
+ /// <reference path="./frame_blend.d.tlua" />
166
+ /// <reference path="./game.d.tlua" />
167
+ /// <reference path="./gameevent.d.tlua" />
168
+ /// <reference path="./gamemode.d.tlua" />
169
+ /// <reference path="./global.d.tlua" />
170
+ /// <reference path="./gm.d.tlua" />
171
+ /// <reference path="./gmod.d.tlua" />
172
+ /// <reference path="./gmsave.d.tlua" />
173
+ /// <reference path="./gui.d.tlua" />
174
+ /// <reference path="./gwen.d.tlua" />
175
+ /// <reference path="./halo.d.tlua" />
176
+ /// <reference path="./hammer.d.tlua" />
177
+ /// <reference path="./hook.d.tlua" />
178
+ /// <reference path="./html.d.tlua" />
179
+ /// <reference path="./http.d.tlua" />
180
+ /// <reference path="./iconeditor.d.tlua" />
181
+ /// <reference path="./igmodaudiochannel.d.tlua" />
182
+ /// <reference path="./imagecheckbox.d.tlua" />
183
+ /// <reference path="./imaterial.d.tlua" />
184
+ /// <reference path="./imesh.d.tlua" />
185
+ /// <reference path="./input.d.tlua" />
186
+ /// <reference path="./invalidateinternalentitycache.d.tlua" />
187
+ /// <reference path="./irestore.d.tlua" />
188
+ /// <reference path="./isave.d.tlua" />
189
+ /// <reference path="./itexture.d.tlua" />
190
+ /// <reference path="./ivideowriter.d.tlua" />
191
+ /// <reference path="./jit.d.tlua" />
192
+ /// <reference path="./killicon.d.tlua" />
193
+ /// <reference path="./label.d.tlua" />
194
+ /// <reference path="./language.d.tlua" />
195
+ /// <reference path="./list.d.tlua" />
196
+ /// <reference path="./makeballoon.d.tlua" />
197
+ /// <reference path="./markup.d.tlua" />
198
+ /// <reference path="./markupobject.d.tlua" />
199
+ /// <reference path="./material.d.tlua" />
200
+ /// <reference path="./math.d.tlua" />
201
+ /// <reference path="./matproxy.d.tlua" />
202
+ /// <reference path="./matselect.d.tlua" />
203
+ /// <reference path="./menu.d.tlua" />
204
+ /// <reference path="./menubar.d.tlua" />
205
+ /// <reference path="./mesh.d.tlua" />
206
+ /// <reference path="./modelimage.d.tlua" />
207
+ /// <reference path="./motionsensor.d.tlua" />
208
+ /// <reference path="./navmesh.d.tlua" />
209
+ /// <reference path="./net.d.tlua" />
210
+ /// <reference path="./nextbot.d.tlua" />
211
+ /// <reference path="./notification.d.tlua" />
212
+ /// <reference path="./npc.d.tlua" />
213
+ /// <reference path="./numpad.d.tlua" />
214
+ /// <reference path="./os.d.tlua" />
215
+ /// <reference path="./package.d.tlua" />
216
+ /// <reference path="./panel.d.tlua" />
217
+ /// <reference path="./panellist.d.tlua" />
218
+ /// <reference path="./pathfollower.d.tlua" />
219
+ /// <reference path="./permissions.d.tlua" />
220
+ /// <reference path="./physcollide.d.tlua" />
221
+ /// <reference path="./physenv.d.tlua" />
222
+ /// <reference path="./physobj.d.tlua" />
223
+ /// <reference path="./pixelvis_handle_t.d.tlua" />
224
+ /// <reference path="./player.d.tlua" />
225
+ /// <reference path="./player_manager.d.tlua" />
226
+ /// <reference path="./preseteditor.d.tlua" />
227
+ /// <reference path="./presets.d.tlua" />
228
+ /// <reference path="./projectedtexture.d.tlua" />
229
+ /// <reference path="./properties.d.tlua" />
230
+ /// <reference path="./propselect.d.tlua" />
231
+ /// <reference path="./radiobutton.d.tlua" />
232
+ /// <reference path="./render.d.tlua" />
233
+ /// <reference path="./resource.d.tlua" />
234
+ /// <reference path="./richtext.d.tlua" />
235
+ /// <reference path="./sandbox.d.tlua" />
236
+ /// <reference path="./saverestore.d.tlua" />
237
+ /// <reference path="./schedule.d.tlua" />
238
+ /// <reference path="./scripted_ents.d.tlua" />
239
+ /// <reference path="./search.d.tlua" />
240
+ /// <reference path="./serverlist.d.tlua" />
241
+ /// <reference path="./slidebar.d.tlua" />
242
+ /// <reference path="./slider.d.tlua" />
243
+ /// <reference path="./sound.d.tlua" />
244
+ /// <reference path="./spawnicon.d.tlua" />
245
+ /// <reference path="./spawnmenu.d.tlua" />
246
+ /// <reference path="./spawnmenucontentpanel.d.tlua" />
247
+ /// <reference path="./sql.d.tlua" />
248
+ /// <reference path="./stack.d.tlua" />
249
+ /// <reference path="./steamworks.d.tlua" />
250
+ /// <reference path="./string.d.tlua" />
251
+ /// <reference path="./structures.d.tlua" />
252
+ /// <reference path="./surface.d.tlua" />
253
+ /// <reference path="./surfaceinfo.d.tlua" />
254
+ /// <reference path="./system.d.tlua" />
255
+ /// <reference path="./table.d.tlua" />
256
+ /// <reference path="./task.d.tlua" />
257
+ /// <reference path="./team.d.tlua" />
258
+ /// <reference path="./textentry.d.tlua" />
259
+ /// <reference path="./tgaimage.d.tlua" />
260
+ /// <reference path="./timer.d.tlua" />
261
+ /// <reference path="./tool.d.tlua" />
262
+ /// <reference path="./ugcpublishwindow.d.tlua" />
263
+ /// <reference path="./umsg.d.tlua" />
264
+ /// <reference path="./undo.d.tlua" />
265
+ /// <reference path="./urllabel.d.tlua" />
266
+ /// <reference path="./usermessage.d.tlua" />
267
+ /// <reference path="./utf8.d.tlua" />
268
+ /// <reference path="./util.d.tlua" />
269
+ /// <reference path="./vector.d.tlua" />
270
+ /// <reference path="./vehicle.d.tlua" />
271
+ /// <reference path="./vgui.d.tlua" />
272
+ /// <reference path="./video.d.tlua" />
273
+ /// <reference path="./vmatrix.d.tlua" />
274
+ /// <reference path="./weapon.d.tlua" />
275
+ /// <reference path="./weapons.d.tlua" />
276
+ /// <reference path="./widgets.d.tlua" />
277
+ /// <reference path="./workshopfilebase.d.tlua" />