@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
@@ -13,27 +13,18 @@ interface EffectsLib {
13
13
  * @source https://wiki.facepunch.com/gmod/effects.BeamRingPoint
14
14
  */
15
15
  BeamRingPoint(pos: Vector, lifetime: number, startRad: number, endRad: number, width: number, amplitude: number, color: Color, extra: table): void;
16
- }
17
-
18
- interface EffectsLib {
19
16
  /**
20
17
  * Creates a bubble trail effect, the very same you get when shooting underwater.
21
18
  * @realm shared
22
19
  * @source https://wiki.facepunch.com/gmod/effects.BubbleTrail
23
20
  */
24
21
  BubbleTrail(startPos: Vector, endPos: Vector, count: number, height: number, speed?: number, delay?: number): void;
25
- }
26
-
27
- interface EffectsLib {
28
22
  /**
29
23
  * Creates a bunch of bubbles inside a defined box.
30
24
  * @realm shared
31
25
  * @source https://wiki.facepunch.com/gmod/effects.Bubbles
32
26
  */
33
27
  Bubbles(mins: Vector, maxs: Vector, count: number, height: number, speed?: number, delay?: number): void;
34
- }
35
-
36
- interface EffectsLib {
37
28
  /**
38
29
  * **INTERNAL**: You are looking for [util.Effect](https://wiki.facepunch.com/gmod/util.Effect).
39
30
  * Returns the table of the effect specified.
@@ -41,9 +32,6 @@ interface EffectsLib {
41
32
  * @source https://wiki.facepunch.com/gmod/effects.Create
42
33
  */
43
34
  Create(name: string): table;
44
- }
45
-
46
- interface EffectsLib {
47
35
  /**
48
36
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
49
37
  * Returns a list of all Lua-defined effects.
@@ -51,9 +39,6 @@ interface EffectsLib {
51
39
  * @source https://wiki.facepunch.com/gmod/effects.GetList
52
40
  */
53
41
  GetList(): table;
54
- }
55
-
56
- interface EffectsLib {
57
42
  /**
58
43
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
59
44
  * Registers a new effect.
@@ -61,9 +46,6 @@ interface EffectsLib {
61
46
  * @source https://wiki.facepunch.com/gmod/effects.Register
62
47
  */
63
48
  Register(effect_table: table, name: string): void;
64
- }
65
-
66
- interface EffectsLib {
67
49
  /**
68
50
  * Imitates the "near miss" tracer sound, with the ability to override the sound played.
69
51
  *
@@ -75,3 +57,9 @@ interface EffectsLib {
75
57
  TracerSound(start: Vector, endpos: Vector, tracerType?: number, soundOverride?: string): void;
76
58
  }
77
59
 
60
+
61
+
62
+
63
+
64
+
65
+
@@ -13,18 +13,12 @@ interface EngineLib {
13
13
  * @source https://wiki.facepunch.com/gmod/engine.AbsoluteFrameTime
14
14
  */
15
15
  AbsoluteFrameTime(): number;
16
- }
17
-
18
- interface EngineLib {
19
16
  /**
20
17
  * Returns the name of the currently running gamemode.
21
18
  * @realm shared and menu
22
19
  * @source https://wiki.facepunch.com/gmod/engine.ActiveGamemode
23
20
  */
24
21
  ActiveGamemode(): string;
25
- }
26
-
27
- interface EngineLib {
28
22
  /**
29
23
  * Closes the server and completely exits.
30
24
  *
@@ -37,9 +31,6 @@ interface EngineLib {
37
31
  * @source https://wiki.facepunch.com/gmod/engine.CloseServer
38
32
  */
39
33
  CloseServer(): void;
40
- }
41
-
42
- interface EngineLib {
43
34
  /**
44
35
  * Returns a list of addons the player have subscribed to on the workshop.
45
36
  *
@@ -49,18 +40,12 @@ interface EngineLib {
49
40
  * @source https://wiki.facepunch.com/gmod/engine.GetAddons
50
41
  */
51
42
  GetAddons(): table;
52
- }
53
-
54
- interface EngineLib {
55
43
  /**
56
44
  * When starting playing a demo, [engine.GetDemoPlaybackTick](https://wiki.facepunch.com/gmod/engine.GetDemoPlaybackTick) will be reset and its old value will be added to this functions return value.
57
45
  * @realm client and menu
58
46
  * @source https://wiki.facepunch.com/gmod/engine.GetDemoPlaybackStartTick
59
47
  */
60
48
  GetDemoPlaybackStartTick(): number;
61
- }
62
-
63
- interface EngineLib {
64
49
  /**
65
50
  * Current tick of currently loaded demo.
66
51
  *
@@ -70,9 +55,6 @@ interface EngineLib {
70
55
  * @source https://wiki.facepunch.com/gmod/engine.GetDemoPlaybackTick
71
56
  */
72
57
  GetDemoPlaybackTick(): number;
73
- }
74
-
75
- interface EngineLib {
76
58
  /**
77
59
  * Returns time scale of demo playback.
78
60
  *
@@ -82,9 +64,6 @@ interface EngineLib {
82
64
  * @source https://wiki.facepunch.com/gmod/engine.GetDemoPlaybackTimeScale
83
65
  */
84
66
  GetDemoPlaybackTimeScale(): number;
85
- }
86
-
87
- interface EngineLib {
88
67
  /**
89
68
  * Returns total amount of ticks of currently loaded demo.
90
69
  *
@@ -94,27 +73,18 @@ interface EngineLib {
94
73
  * @source https://wiki.facepunch.com/gmod/engine.GetDemoPlaybackTotalTicks
95
74
  */
96
75
  GetDemoPlaybackTotalTicks(): number;
97
- }
98
-
99
- interface EngineLib {
100
76
  /**
101
77
  * Returns a table containing info for all installed gamemodes.
102
78
  * @realm shared and menu
103
79
  * @source https://wiki.facepunch.com/gmod/engine.GetGamemodes
104
80
  */
105
81
  GetGamemodes(): table;
106
- }
107
-
108
- interface EngineLib {
109
82
  /**
110
83
  * Returns an array of tables corresponding to all games from which Garry's Mod supports mounting content.
111
84
  * @realm shared and menu
112
85
  * @source https://wiki.facepunch.com/gmod/engine.GetGames
113
86
  */
114
87
  GetGames(): table;
115
- }
116
-
117
- interface EngineLib {
118
88
  /**
119
89
  * Returns the UGC (demos, saves and dupes) the player have subscribed to on the workshop.
120
90
  *
@@ -123,9 +93,6 @@ interface EngineLib {
123
93
  * @deprecated Used internally for in-game menus, may be merged in the future into engine.GetAddons.
124
94
  */
125
95
  GetUserContent(): table;
126
- }
127
-
128
- interface EngineLib {
129
96
  /**
130
97
  * Returns true if we're currently playing a demo.
131
98
  *
@@ -135,18 +102,12 @@ interface EngineLib {
135
102
  * @source https://wiki.facepunch.com/gmod/engine.IsPlayingDemo
136
103
  */
137
104
  IsPlayingDemo(): boolean;
138
- }
139
-
140
- interface EngineLib {
141
105
  /**
142
106
  * Returns true if the game is currently recording a demo file (.dem) using gm_demo.
143
107
  * @realm client and menu
144
108
  * @source https://wiki.facepunch.com/gmod/engine.IsRecordingDemo
145
109
  */
146
110
  IsRecordingDemo(): boolean;
147
- }
148
-
149
- interface EngineLib {
150
111
  /**
151
112
  * This is a direct binding to the function `engine->LightStyle`. This function allows you to change the default light style of the map - so you can make lighting lighter or darker. You’ll need to call [render.RedownloadAllLightmaps](https://wiki.facepunch.com/gmod/render.RedownloadAllLightmaps) clientside to refresh the lightmaps to this new color.
152
113
  *
@@ -156,45 +117,30 @@ interface EngineLib {
156
117
  * @source https://wiki.facepunch.com/gmod/engine.LightStyle
157
118
  */
158
119
  LightStyle(lightstyle: number, pattern: string): void;
159
- }
160
-
161
- interface EngineLib {
162
120
  /**
163
121
  * Loads a duplication from the local filesystem.
164
122
  * @realm client
165
123
  * @source https://wiki.facepunch.com/gmod/engine.OpenDupe
166
124
  */
167
125
  OpenDupe(dupeName: string): table;
168
- }
169
-
170
- interface EngineLib {
171
126
  /**
172
127
  * Returns an estimate of the server's performance. Equivalent to calling [Global.FrameTime](https://wiki.facepunch.com/gmod/Global.FrameTime) from the server, according to source code.
173
128
  * @realm client
174
129
  * @source https://wiki.facepunch.com/gmod/engine.ServerFrameTime
175
130
  */
176
131
  ServerFrameTime(): (number, number);
177
- }
178
-
179
- interface EngineLib {
180
132
  /**
181
133
  * Sets the mounting options for mountable content.
182
134
  * @realm menu
183
135
  * @source https://wiki.facepunch.com/gmod/engine.SetMounted
184
136
  */
185
137
  SetMounted(depotID: string, doMount: boolean): void;
186
- }
187
-
188
- interface EngineLib {
189
138
  /**
190
139
  * Returns the number of ticks since the game server started.
191
140
  * @realm shared and menu
192
141
  * @source https://wiki.facepunch.com/gmod/engine.TickCount
193
142
  */
194
143
  TickCount(): number;
195
- }
196
-
197
- interface EngineLib {
198
144
  /**
199
145
  * Returns the time interval between each game tick in seconds.
200
146
  *
@@ -209,9 +155,6 @@ interface EngineLib {
209
155
  * @source https://wiki.facepunch.com/gmod/engine.TickInterval
210
156
  */
211
157
  TickInterval(): number;
212
- }
213
-
214
- interface EngineLib {
215
158
  /**
216
159
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
217
160
  *
@@ -221,9 +164,6 @@ interface EngineLib {
221
164
  * @source https://wiki.facepunch.com/gmod/engine.VideoSettings
222
165
  */
223
166
  VideoSettings(): table;
224
- }
225
-
226
- interface EngineLib {
227
167
  /**
228
168
  * **INTERNAL**: Do not use.
229
169
  *
@@ -233,9 +173,6 @@ interface EngineLib {
233
173
  * @source https://wiki.facepunch.com/gmod/engine.WriteDupe
234
174
  */
235
175
  WriteDupe(dupe: string, jpeg: string): void;
236
- }
237
-
238
- interface EngineLib {
239
176
  /**
240
177
  * **INTERNAL**: Do not use.
241
178
  *
@@ -246,3 +183,24 @@ interface EngineLib {
246
183
  WriteSave(saveData: string, name: string): void;
247
184
  }
248
185
 
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+