@tlua/gmod 1.0.3 → 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 (216) hide show
  1. package/index.d.tlua +1 -0
  2. package/package.json +1 -1
  3. package/types/achievements.d.tlua +15 -45
  4. package/types/ai.d.tlua +5 -15
  5. package/types/angle.d.tlua +18 -54
  6. package/types/baseclass.d.tlua +2 -4
  7. package/types/bf_read.d.tlua +11 -32
  8. package/types/bit.d.tlua +11 -33
  9. package/types/cam.d.tlua +16 -48
  10. package/types/ceffectdata.d.tlua +32 -95
  11. package/types/chat.d.tlua +5 -15
  12. package/types/cleanup.d.tlua +7 -21
  13. package/types/cluaemitter.d.tlua +12 -35
  14. package/types/clualocomotion.d.tlua +40 -119
  15. package/types/cluaparticle.d.tlua +44 -131
  16. package/types/cmovedata.d.tlua +47 -140
  17. package/types/cnavarea.d.tlua +77 -230
  18. package/types/cnavladder.d.tlua +22 -65
  19. package/types/cnewparticleeffect.d.tlua +26 -77
  20. package/types/color.d.tlua +28 -84
  21. package/types/concommand.d.tlua +4 -12
  22. package/types/constraint.d.tlua +28 -84
  23. package/types/construct.d.tlua +1 -3
  24. package/types/contentheader.d.tlua +3 -6
  25. package/types/contenticon.d.tlua +9 -24
  26. package/types/contentsidebar.d.tlua +4 -9
  27. package/types/contextbase.d.tlua +4 -9
  28. package/types/controlpanel.d.tlua +18 -40
  29. package/types/controlpresets.d.tlua +13 -36
  30. package/types/convar.d.tlua +16 -47
  31. package/types/cookie.d.tlua +3 -9
  32. package/types/coroutine.d.tlua +7 -21
  33. package/types/crecipientfilter.d.tlua +16 -47
  34. package/types/csoundpatch.d.tlua +14 -41
  35. package/types/ctakedamageinfo.d.tlua +33 -98
  36. package/types/ctrlnumpad.d.tlua +6 -17
  37. package/types/cusercmd.d.tlua +27 -80
  38. package/types/cvars.d.tlua +6 -18
  39. package/types/dadjustablemodelpanel.d.tlua +7 -18
  40. package/types/dalphabar.d.tlua +3 -6
  41. package/types/dbinder.d.tlua +4 -9
  42. package/types/dbubblecontainer.d.tlua +2 -3
  43. package/types/dbutton.d.tlua +8 -21
  44. package/types/dcheckbox.d.tlua +5 -12
  45. package/types/dcheckboxlabel.d.tlua +9 -27
  46. package/types/dcollapsiblecategory.d.tlua +23 -66
  47. package/types/dcolorbutton.d.tlua +7 -18
  48. package/types/dcolorcombo.d.tlua +5 -12
  49. package/types/dcolorcube.d.tlua +13 -36
  50. package/types/dcolormixer.d.tlua +27 -78
  51. package/types/dcolorpalette.d.tlua +23 -66
  52. package/types/dcolumnsheet.d.tlua +5 -12
  53. package/types/dcombobox.d.tlua +17 -48
  54. package/types/ddragbase.d.tlua +13 -36
  55. package/types/ddrawer.d.tlua +8 -21
  56. package/types/debug.d.tlua +44 -76
  57. package/types/debugoverlay.d.tlua +11 -33
  58. package/types/dentityproperties.d.tlua +5 -12
  59. package/types/derma.d.tlua +10 -30
  60. package/types/dexpandbutton.d.tlua +3 -6
  61. package/types/dfilebrowser.d.tlua +20 -60
  62. package/types/dform.d.tlua +18 -51
  63. package/types/dframe.d.tlua +24 -72
  64. package/types/dgrid.d.tlua +11 -30
  65. package/types/dhorizontaldivider.d.tlua +20 -57
  66. package/types/dhorizontalscroller.d.tlua +11 -30
  67. package/types/dhscrollbar.d.tlua +11 -30
  68. package/types/dhtml.d.tlua +8 -21
  69. package/types/dhtmlcontrols.d.tlua +5 -15
  70. package/types/diconbrowser.d.tlua +11 -30
  71. package/types/diconlayout.d.tlua +18 -51
  72. package/types/dimage.d.tlua +20 -55
  73. package/types/dimagebutton.d.tlua +9 -27
  74. package/types/dlabel.d.tlua +33 -96
  75. package/types/dlabeleditable.d.tlua +5 -12
  76. package/types/dlabelurl.d.tlua +10 -27
  77. package/types/dlistbox.d.tlua +8 -21
  78. package/types/dlistboxitem.d.tlua +4 -9
  79. package/types/dlistview.d.tlua +34 -99
  80. package/types/dlistview_column.d.tlua +14 -39
  81. package/types/dlistview_line.d.tlua +13 -36
  82. package/types/dmenu.d.tlua +28 -75
  83. package/types/dmenubar.d.tlua +6 -11
  84. package/types/dmenuoption.d.tlua +13 -36
  85. package/types/dmenuoptioncvar.d.tlua +6 -15
  86. package/types/dmodelpanel.d.tlua +22 -63
  87. package/types/dmodelselect.d.tlua +2 -3
  88. package/types/dmodelselectmulti.d.tlua +2 -3
  89. package/types/dnotify.d.tlua +10 -27
  90. package/types/dnumberscratch.d.tlua +26 -75
  91. package/types/dnumberwang.d.tlua +16 -45
  92. package/types/dnumslider.d.tlua +17 -51
  93. package/types/dpanel.d.tlua +14 -39
  94. package/types/dpanellist.d.tlua +11 -33
  95. package/types/dpaneloverlay.d.tlua +7 -18
  96. package/types/dpanpanel.d.tlua +6 -15
  97. package/types/dprogress.d.tlua +3 -6
  98. package/types/dproperties.d.tlua +4 -9
  99. package/types/dproperty_combo.d.tlua +3 -6
  100. package/types/dproperty_generic.d.tlua +5 -12
  101. package/types/dpropertysheet.d.tlua +26 -56
  102. package/types/dragndrop.d.tlua +10 -30
  103. package/types/draw.d.tlua +11 -31
  104. package/types/drgbpicker.d.tlua +4 -9
  105. package/types/drive.d.tlua +18 -41
  106. package/types/dscrollpanel.d.tlua +10 -30
  107. package/types/dshape.d.tlua +7 -18
  108. package/types/dsizetocontents.d.tlua +5 -12
  109. package/types/dslider.d.tlua +28 -81
  110. package/types/dsprite.d.tlua +9 -24
  111. package/types/dtab.d.tlua +8 -21
  112. package/types/dtextentry.d.tlua +43 -126
  113. package/types/dtilelayout.d.tlua +21 -60
  114. package/types/dtooltip.d.tlua +6 -15
  115. package/types/dtree.d.tlua +16 -45
  116. package/types/dtree_node.d.tlua +68 -201
  117. package/types/duplicator.d.tlua +30 -88
  118. package/types/dverticaldivider.d.tlua +23 -66
  119. package/types/dvscrollbar.d.tlua +11 -30
  120. package/types/effect.d.tlua +4 -9
  121. package/types/effects.d.tlua +6 -18
  122. package/types/engine.d.tlua +21 -63
  123. package/types/entity.d.tlua +676 -1962
  124. package/types/ents.d.tlua +23 -61
  125. package/types/file.d.tlua +39 -117
  126. package/types/frame_blend.d.tlua +7 -21
  127. package/types/game.d.tlua +39 -117
  128. package/types/gameevent.d.tlua +4 -8
  129. package/types/gamemode.d.tlua +3 -7
  130. package/types/gm.d.tlua +267 -800
  131. package/types/gmsave.d.tlua +4 -12
  132. package/types/gui.d.tlua +21 -63
  133. package/types/gwen.d.tlua +3 -9
  134. package/types/halo.d.tlua +2 -6
  135. package/types/hook.d.tlua +8 -17
  136. package/types/hook_events.d.tlua +2412 -0
  137. package/types/http.d.tlua +1 -3
  138. package/types/iconeditor.d.tlua +11 -30
  139. package/types/igmodaudiochannel.d.tlua +41 -122
  140. package/types/imagecheckbox.d.tlua +4 -9
  141. package/types/imaterial.d.tlua +26 -77
  142. package/types/imesh.d.tlua +5 -14
  143. package/types/input.d.tlua +24 -68
  144. package/types/irestore.d.tlua +9 -26
  145. package/types/isave.d.tlua +9 -26
  146. package/types/itexture.d.tlua +10 -29
  147. package/types/ivideowriter.d.tlua +5 -14
  148. package/types/jit.d.tlua +21 -53
  149. package/types/killicon.d.tlua +7 -21
  150. package/types/language.d.tlua +1 -3
  151. package/types/list.d.tlua +8 -24
  152. package/types/markup.d.tlua +2 -6
  153. package/types/markupobject.d.tlua +5 -14
  154. package/types/math.d.tlua +277 -447
  155. package/types/matproxy.d.tlua +3 -9
  156. package/types/matselect.d.tlua +11 -30
  157. package/types/menubar.d.tlua +2 -6
  158. package/types/mesh.d.tlua +19 -57
  159. package/types/motionsensor.d.tlua +10 -30
  160. package/types/navmesh.d.tlua +26 -78
  161. package/types/net.d.tlua +52 -154
  162. package/types/nextbot.d.tlua +46 -116
  163. package/types/notification.d.tlua +2 -6
  164. package/types/npc.d.tlua +182 -543
  165. package/types/numpad.d.tlua +7 -21
  166. package/types/os.d.tlua +4 -10
  167. package/types/panel.d.tlua +333 -991
  168. package/types/pathfollower.d.tlua +31 -92
  169. package/types/permissions.d.tlua +6 -18
  170. package/types/physcollide.d.tlua +3 -8
  171. package/types/physenv.d.tlua +11 -33
  172. package/types/physobj.d.tlua +78 -233
  173. package/types/player.d.tlua +302 -880
  174. package/types/player_manager.d.tlua +13 -39
  175. package/types/presets.d.tlua +6 -18
  176. package/types/projectedtexture.d.tlua +48 -143
  177. package/types/properties.d.tlua +5 -15
  178. package/types/propselect.d.tlua +5 -12
  179. package/types/render.d.tlua +142 -426
  180. package/types/resource.d.tlua +2 -6
  181. package/types/sandbox.d.tlua +54 -159
  182. package/types/saverestore.d.tlua +12 -36
  183. package/types/schedule.d.tlua +6 -17
  184. package/types/scripted_ents.d.tlua +11 -29
  185. package/types/search.d.tlua +1 -3
  186. package/types/serverlist.d.tlua +7 -21
  187. package/types/sound.d.tlua +10 -30
  188. package/types/spawnicon.d.tlua +8 -21
  189. package/types/spawnmenu.d.tlua +24 -70
  190. package/types/spawnmenucontentpanel.d.tlua +5 -12
  191. package/types/sql.d.tlua +9 -27
  192. package/types/stack.d.tlua +5 -14
  193. package/types/steamworks.d.tlua +18 -54
  194. package/types/string.d.tlua +49 -141
  195. package/types/surface.d.tlua +34 -102
  196. package/types/surfaceinfo.d.tlua +5 -14
  197. package/types/system.d.tlua +10 -30
  198. package/types/table.d.tlua +47 -137
  199. package/types/task.d.tlua +9 -26
  200. package/types/team.d.tlua +19 -57
  201. package/types/timer.d.tlua +14 -42
  202. package/types/tool.d.tlua +46 -131
  203. package/types/ugcpublishwindow.d.tlua +9 -24
  204. package/types/umsg.d.tlua +12 -36
  205. package/types/undo.d.tlua +10 -30
  206. package/types/usermessage.d.tlua +2 -6
  207. package/types/utf8.d.tlua +7 -21
  208. package/types/util.d.tlua +94 -274
  209. package/types/vector.d.tlua +36 -108
  210. package/types/vehicle.d.tlua +52 -149
  211. package/types/vgui.d.tlua +18 -46
  212. package/types/vmatrix.d.tlua +35 -105
  213. package/types/weapon.d.tlua +85 -248
  214. package/types/weapons.d.tlua +6 -16
  215. package/types/widgets.d.tlua +1 -3
  216. package/types/workshopfilebase.d.tlua +5 -14
@@ -15,9 +15,6 @@ interface NavmeshLib {
15
15
  * @source https://wiki.facepunch.com/gmod/navmesh.AddWalkableSeed
16
16
  */
17
17
  AddWalkableSeed(pos: Vector, dir: Vector): void;
18
- }
19
-
20
- interface NavmeshLib {
21
18
  /**
22
19
  * Starts the generation of a new navmesh.
23
20
  *
@@ -28,81 +25,54 @@ interface NavmeshLib {
28
25
  * @source https://wiki.facepunch.com/gmod/navmesh.BeginGeneration
29
26
  */
30
27
  BeginGeneration(): void;
31
- }
32
-
33
- interface NavmeshLib {
34
28
  /**
35
29
  * Clears all the walkable positions, used before calling [navmesh.BeginGeneration](https://wiki.facepunch.com/gmod/navmesh.BeginGeneration).
36
30
  * @realm server
37
31
  * @source https://wiki.facepunch.com/gmod/navmesh.ClearWalkableSeeds
38
32
  */
39
33
  ClearWalkableSeeds(): void;
40
- }
41
-
42
- interface NavmeshLib {
43
34
  /**
44
35
  * Creates a new [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
45
36
  * @realm server
46
37
  * @source https://wiki.facepunch.com/gmod/navmesh.CreateNavArea
47
38
  */
48
39
  CreateNavArea(corner: Vector, opposite_corner: Vector): CNavArea;
49
- }
50
-
51
- interface NavmeshLib {
52
40
  /**
53
41
  * Creates a new [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder).
54
42
  * @realm server
55
43
  * @source https://wiki.facepunch.com/gmod/navmesh.CreateNavLadder
56
44
  */
57
45
  CreateNavLadder(top: Vector, bottom: Vector, width: number, dir: Vector, maxHeightAboveTopArea?: number): CNavLadder;
58
- }
59
-
60
- interface NavmeshLib {
61
46
  /**
62
47
  * Returns a list of areas within distance, used to find hiding spots by [NextBot](https://wiki.facepunch.com/gmod/NextBot)s for example.
63
48
  * @realm server
64
49
  * @source https://wiki.facepunch.com/gmod/navmesh.Find
65
50
  */
66
51
  Find(pos: Vector, radius: number, stepHeight: number, dropHeight: number): table;
67
- }
68
-
69
- interface NavmeshLib {
70
52
  /**
71
53
  * Returns a list of [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s overlapping the given cube extents.
72
54
  * @realm server
73
55
  * @source https://wiki.facepunch.com/gmod/navmesh.FindInBox
74
56
  */
75
57
  FindInBox(pos1: Vector, pos2: Vector): table;
76
- }
77
-
78
- interface NavmeshLib {
79
58
  /**
80
59
  * 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
60
  * @realm server
82
61
  * @source https://wiki.facepunch.com/gmod/navmesh.GetAllNavAreas
83
62
  */
84
63
  GetAllNavAreas(): CNavArea[];
85
- }
86
-
87
- interface NavmeshLib {
88
64
  /**
89
65
  * 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
66
  * @realm server
91
67
  * @source https://wiki.facepunch.com/gmod/navmesh.GetBlockedAreas
92
68
  */
93
69
  GetBlockedAreas(): table;
94
- }
95
-
96
- interface NavmeshLib {
97
70
  /**
98
71
  * Returns the position of the edit cursor when nav_edit is set to 1.
99
72
  * @realm server
100
73
  * @source https://wiki.facepunch.com/gmod/navmesh.GetEditCursorPosition
101
74
  */
102
75
  GetEditCursorPosition(): Vector;
103
- }
104
-
105
- interface NavmeshLib {
106
76
  /**
107
77
  * Finds the closest standable ground at, above, or below the provided position.
108
78
  *
@@ -113,27 +83,18 @@ interface NavmeshLib {
113
83
  * @source https://wiki.facepunch.com/gmod/navmesh.GetGroundHeight
114
84
  */
115
85
  GetGroundHeight(pos: Vector): (number, Vector);
116
- }
117
-
118
- interface NavmeshLib {
119
86
  /**
120
87
  * Returns the currently marked [CNavArea](https://wiki.facepunch.com/gmod/CNavArea), for use with editing console commands.
121
88
  * @realm server
122
89
  * @source https://wiki.facepunch.com/gmod/navmesh.GetMarkedArea
123
90
  */
124
91
  GetMarkedArea(): CNavArea;
125
- }
126
-
127
- interface NavmeshLib {
128
92
  /**
129
93
  * Returns the currently marked [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder), for use with editing console commands.
130
94
  * @realm server
131
95
  * @source https://wiki.facepunch.com/gmod/navmesh.GetMarkedLadder
132
96
  */
133
97
  GetMarkedLadder(): CNavLadder;
134
- }
135
-
136
- interface NavmeshLib {
137
98
  /**
138
99
  * Returns the Nav Area contained in this position that also satisfies the elevation limit.
139
100
  *
@@ -143,9 +104,6 @@ interface NavmeshLib {
143
104
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNavArea
144
105
  */
145
106
  GetNavArea(pos: Vector, beneathLimit: number): CNavArea;
146
- }
147
-
148
- interface NavmeshLib {
149
107
  /**
150
108
  * Returns a [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) by the given ID.
151
109
  *
@@ -156,27 +114,18 @@ interface NavmeshLib {
156
114
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNavAreaByID
157
115
  */
158
116
  GetNavAreaByID(id: number): CNavArea;
159
- }
160
-
161
- interface NavmeshLib {
162
117
  /**
163
118
  * 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
119
  * @realm server
165
120
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNavAreaCount
166
121
  */
167
122
  GetNavAreaCount(): number;
168
- }
169
-
170
- interface NavmeshLib {
171
123
  /**
172
124
  * Returns a [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) by the given ID.
173
125
  * @realm server
174
126
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNavLadderByID
175
127
  */
176
128
  GetNavLadderByID(id: number): CNavLadder;
177
- }
178
-
179
- interface NavmeshLib {
180
129
  /**
181
130
  * Returns the closest [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to given position at the same height, or beneath it.
182
131
  *
@@ -186,36 +135,24 @@ interface NavmeshLib {
186
135
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNearestNavArea
187
136
  */
188
137
  GetNearestNavArea(pos: Vector, anyZ?: boolean, maxDist?: number, checkLOS?: boolean, checkGround?: boolean, team?: number): CNavArea;
189
- }
190
-
191
- interface NavmeshLib {
192
138
  /**
193
139
  * Returns the classname of the player spawn entity.
194
140
  * @realm server
195
141
  * @source https://wiki.facepunch.com/gmod/navmesh.GetPlayerSpawnName
196
142
  */
197
143
  GetPlayerSpawnName(): string;
198
- }
199
-
200
- interface NavmeshLib {
201
144
  /**
202
145
  * Whether we're currently generating a new navmesh with [navmesh.BeginGeneration](https://wiki.facepunch.com/gmod/navmesh.BeginGeneration).
203
146
  * @realm server
204
147
  * @source https://wiki.facepunch.com/gmod/navmesh.IsGenerating
205
148
  */
206
149
  IsGenerating(): boolean;
207
- }
208
-
209
- interface NavmeshLib {
210
150
  /**
211
151
  * Returns true if a navmesh has been loaded when loading the map.
212
152
  * @realm server
213
153
  * @source https://wiki.facepunch.com/gmod/navmesh.IsLoaded
214
154
  */
215
155
  IsLoaded(): boolean;
216
- }
217
-
218
- interface NavmeshLib {
219
156
  /**
220
157
  * Loads a new navmesh from the .nav file for current map discarding any changes made to the navmesh previously.
221
158
  * **WARNING**: Calling this function too soon, causes the Server to crash!
@@ -225,45 +162,30 @@ interface NavmeshLib {
225
162
  * @source https://wiki.facepunch.com/gmod/navmesh.Load
226
163
  */
227
164
  Load(): void;
228
- }
229
-
230
- interface NavmeshLib {
231
165
  /**
232
166
  * 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
167
  * @realm server
234
168
  * @source https://wiki.facepunch.com/gmod/navmesh.Reset
235
169
  */
236
170
  Reset(): void;
237
- }
238
-
239
- interface NavmeshLib {
240
171
  /**
241
172
  * Saves any changes made to navmesh to the .nav file.
242
173
  * @realm server
243
174
  * @source https://wiki.facepunch.com/gmod/navmesh.Save
244
175
  */
245
176
  Save(): void;
246
- }
247
-
248
- interface NavmeshLib {
249
177
  /**
250
178
  * Sets the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) as marked, so it can be used with editing console commands.
251
179
  * @realm server
252
180
  * @source https://wiki.facepunch.com/gmod/navmesh.SetMarkedArea
253
181
  */
254
182
  SetMarkedArea(area: CNavArea): void;
255
- }
256
-
257
- interface NavmeshLib {
258
183
  /**
259
184
  * Sets the [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) as marked, so it can be used with editing console commands.
260
185
  * @realm server
261
186
  * @source https://wiki.facepunch.com/gmod/navmesh.SetMarkedLadder
262
187
  */
263
188
  SetMarkedLadder(area: CNavLadder): void;
264
- }
265
-
266
- interface NavmeshLib {
267
189
  /**
268
190
  * 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
191
  * @realm server
@@ -272,3 +194,29 @@ interface NavmeshLib {
272
194
  SetPlayerSpawnName(spawnPointClass: string): void;
273
195
  }
274
196
 
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+