@tlua/gmod 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/achievementicon.d.tlua +0 -1
- package/types/achievements.d.tlua +15 -16
- package/types/ai.d.tlua +5 -6
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +18 -19
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +1 -3
- package/types/bf_read.d.tlua +10 -12
- package/types/bit.d.tlua +11 -12
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +16 -17
- package/types/ceffectdata.d.tlua +31 -33
- package/types/chat.d.tlua +5 -6
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +7 -8
- package/types/cluaemitter.d.tlua +11 -13
- package/types/clualocomotion.d.tlua +39 -41
- package/types/cluaparticle.d.tlua +43 -45
- package/types/cmovedata.d.tlua +46 -48
- package/types/cnavarea.d.tlua +76 -78
- package/types/cnavladder.d.tlua +21 -23
- package/types/cnewparticleeffect.d.tlua +25 -27
- package/types/color.d.tlua +28 -29
- package/types/concommand.d.tlua +4 -5
- package/types/constraint.d.tlua +28 -29
- package/types/construct.d.tlua +1 -2
- package/types/contentheader.d.tlua +1 -3
- package/types/contenticon.d.tlua +7 -9
- package/types/contentsidebar.d.tlua +2 -4
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +2 -4
- package/types/controlpanel.d.tlua +11 -14
- package/types/controlpresets.d.tlua +11 -13
- package/types/convar.d.tlua +15 -17
- package/types/cookie.d.tlua +3 -4
- package/types/coroutine.d.tlua +7 -8
- package/types/crecipientfilter.d.tlua +15 -17
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +13 -15
- package/types/ctakedamageinfo.d.tlua +32 -34
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +5 -7
- package/types/cusercmd.d.tlua +26 -28
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +6 -7
- package/types/dadjustablemodelpanel.d.tlua +5 -7
- package/types/dalphabar.d.tlua +1 -3
- package/types/dbinder.d.tlua +2 -4
- package/types/dbubblecontainer.d.tlua +0 -2
- package/types/dbutton.d.tlua +6 -8
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +3 -5
- package/types/dcheckboxlabel.d.tlua +9 -10
- package/types/dcollapsiblecategory.d.tlua +21 -23
- package/types/dcolorbutton.d.tlua +5 -7
- package/types/dcolorcombo.d.tlua +3 -5
- package/types/dcolorcube.d.tlua +11 -13
- package/types/dcolormixer.d.tlua +25 -27
- package/types/dcolorpalette.d.tlua +21 -23
- package/types/dcolumnsheet.d.tlua +3 -5
- package/types/dcombobox.d.tlua +15 -17
- package/types/ddragbase.d.tlua +11 -13
- package/types/ddrawer.d.tlua +6 -8
- package/types/debug.d.tlua +16 -19
- package/types/debugoverlay.d.tlua +11 -12
- package/types/dentityproperties.d.tlua +3 -5
- package/types/derma.d.tlua +10 -11
- package/types/dexpandbutton.d.tlua +1 -3
- package/types/dfilebrowser.d.tlua +20 -21
- package/types/dform.d.tlua +16 -18
- package/types/dframe.d.tlua +24 -25
- package/types/dgrid.d.tlua +9 -11
- package/types/dhorizontaldivider.d.tlua +18 -20
- package/types/dhorizontalscroller.d.tlua +9 -11
- package/types/dhscrollbar.d.tlua +9 -11
- package/types/dhtml.d.tlua +6 -8
- package/types/dhtmlcontrols.d.tlua +5 -6
- package/types/diconbrowser.d.tlua +9 -11
- package/types/diconlayout.d.tlua +16 -18
- package/types/dimage.d.tlua +17 -20
- package/types/dimagebutton.d.tlua +9 -10
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +31 -33
- package/types/dlabeleditable.d.tlua +3 -5
- package/types/dlabelurl.d.tlua +8 -10
- package/types/dlistbox.d.tlua +6 -8
- package/types/dlistboxitem.d.tlua +2 -4
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +32 -34
- package/types/dlistview_column.d.tlua +12 -14
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +11 -13
- package/types/dlistviewheaderlabel.d.tlua +0 -1
- package/types/dlistviewlabel.d.tlua +0 -1
- package/types/dlistviewline.d.tlua +0 -1
- package/types/dmenu.d.tlua +23 -28
- package/types/dmenubar.d.tlua +2 -7
- package/types/dmenuoption.d.tlua +11 -13
- package/types/dmenuoptioncvar.d.tlua +4 -6
- package/types/dmodelpanel.d.tlua +20 -22
- package/types/dmodelselect.d.tlua +0 -2
- package/types/dmodelselectmulti.d.tlua +0 -2
- package/types/dnotify.d.tlua +8 -10
- package/types/dnumberscratch.d.tlua +24 -26
- package/types/dnumberwang.d.tlua +14 -16
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +17 -18
- package/types/dpanel.d.tlua +12 -14
- package/types/dpanellist.d.tlua +11 -12
- package/types/dpaneloverlay.d.tlua +5 -7
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +4 -6
- package/types/dprogress.d.tlua +1 -3
- package/types/dproperties.d.tlua +2 -4
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -3
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +3 -5
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +15 -17
- package/types/dragndrop.d.tlua +10 -11
- package/types/draw.d.tlua +10 -12
- package/types/drgbpicker.d.tlua +2 -4
- package/types/drive.d.tlua +11 -13
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +10 -11
- package/types/dshape.d.tlua +5 -7
- package/types/dsizetocontents.d.tlua +3 -5
- package/types/dslider.d.tlua +26 -28
- package/types/dsprite.d.tlua +7 -9
- package/types/dtab.d.tlua +6 -8
- package/types/dtextentry.d.tlua +41 -43
- package/types/dtilelayout.d.tlua +19 -21
- package/types/dtooltip.d.tlua +4 -6
- package/types/dtree.d.tlua +14 -16
- package/types/dtree_node.d.tlua +66 -68
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +29 -31
- package/types/dverticaldivider.d.tlua +21 -23
- package/types/dvscrollbar.d.tlua +9 -11
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +2 -4
- package/types/effects.d.tlua +6 -7
- package/types/engine.d.tlua +21 -22
- package/types/entity.d.tlua +643 -674
- package/types/ents.d.tlua +19 -25
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +39 -40
- package/types/file_class.d.tlua +0 -1
- package/types/fingerposer.d.tlua +0 -1
- package/types/fingervar.d.tlua +0 -1
- package/types/frame.d.tlua +0 -1
- package/types/frame_blend.d.tlua +7 -8
- package/types/game.d.tlua +39 -40
- package/types/gameevent.d.tlua +0 -1
- package/types/gamemode.d.tlua +2 -4
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +266 -268
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +4 -5
- package/types/gui.d.tlua +21 -22
- package/types/gwen.d.tlua +3 -4
- package/types/halo.d.tlua +2 -3
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +4 -5
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +1 -2
- package/types/iconeditor.d.tlua +9 -11
- package/types/igmodaudiochannel.d.tlua +40 -42
- package/types/imagecheckbox.d.tlua +2 -4
- package/types/imaterial.d.tlua +25 -27
- package/types/imesh.d.tlua +4 -6
- package/types/input.d.tlua +22 -25
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +8 -10
- package/types/isave.d.tlua +8 -10
- package/types/itexture.d.tlua +9 -11
- package/types/ivideowriter.d.tlua +4 -6
- package/types/jit.d.tlua +16 -17
- package/types/killicon.d.tlua +7 -8
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +1 -2
- package/types/list.d.tlua +8 -9
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +2 -3
- package/types/markupobject.d.tlua +4 -6
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +83 -84
- package/types/matproxy.d.tlua +3 -4
- package/types/matselect.d.tlua +9 -11
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +2 -3
- package/types/mesh.d.tlua +19 -20
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +10 -11
- package/types/navmesh.d.tlua +26 -27
- package/types/net.d.tlua +51 -53
- package/types/nextbot.d.tlua +34 -37
- package/types/notification.d.tlua +2 -3
- package/types/npc.d.tlua +180 -182
- package/types/numpad.d.tlua +7 -8
- package/types/os.d.tlua +3 -5
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +329 -331
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +30 -32
- package/types/permissions.d.tlua +6 -7
- package/types/physcollide.d.tlua +2 -4
- package/types/physenv.d.tlua +11 -12
- package/types/physobj.d.tlua +77 -79
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +288 -293
- package/types/player_manager.d.tlua +13 -14
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +6 -7
- package/types/projectedtexture.d.tlua +47 -49
- package/types/properties.d.tlua +5 -6
- package/types/propselect.d.tlua +3 -5
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +142 -143
- package/types/resource.d.tlua +2 -3
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +52 -54
- package/types/saverestore.d.tlua +12 -13
- package/types/schedule.d.tlua +5 -7
- package/types/scripted_ents.d.tlua +9 -12
- package/types/search.d.tlua +1 -2
- package/types/serverlist.d.tlua +7 -8
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +10 -11
- package/types/spawnicon.d.tlua +6 -8
- package/types/spawnmenu.d.tlua +23 -25
- package/types/spawnmenucontentpanel.d.tlua +3 -5
- package/types/sql.d.tlua +9 -10
- package/types/stack.d.tlua +4 -6
- package/types/steamworks.d.tlua +18 -19
- package/types/string.d.tlua +46 -50
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +34 -35
- package/types/surfaceinfo.d.tlua +4 -6
- package/types/system.d.tlua +10 -11
- package/types/table.d.tlua +45 -48
- package/types/task.d.tlua +8 -10
- package/types/team.d.tlua +19 -20
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +14 -15
- package/types/tool.d.tlua +42 -46
- package/types/ugcpublishwindow.d.tlua +7 -9
- package/types/umsg.d.tlua +12 -13
- package/types/undo.d.tlua +10 -11
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +2 -3
- package/types/utf8.d.tlua +7 -8
- package/types/util.d.tlua +90 -95
- package/types/vector.d.tlua +36 -37
- package/types/vehicle.d.tlua +48 -51
- package/types/vgui.d.tlua +14 -19
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +35 -36
- package/types/weapon.d.tlua +81 -84
- package/types/weapons.d.tlua +5 -7
- package/types/widgets.d.tlua +1 -2
- package/types/workshopfilebase.d.tlua +4 -6
package/types/engine.d.tlua
CHANGED
|
@@ -13,12 +13,14 @@ interface EngineLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/engine.AbsoluteFrameTime
|
|
14
14
|
*/
|
|
15
15
|
AbsoluteFrameTime(): number;
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Returns the name of the currently running gamemode.
|
|
18
19
|
* @realm shared and menu
|
|
19
20
|
* @source https://wiki.facepunch.com/gmod/engine.ActiveGamemode
|
|
20
21
|
*/
|
|
21
22
|
ActiveGamemode(): string;
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* Closes the server and completely exits.
|
|
24
26
|
*
|
|
@@ -31,6 +33,7 @@ interface EngineLib {
|
|
|
31
33
|
* @source https://wiki.facepunch.com/gmod/engine.CloseServer
|
|
32
34
|
*/
|
|
33
35
|
CloseServer(): void;
|
|
36
|
+
|
|
34
37
|
/**
|
|
35
38
|
* Returns a list of addons the player have subscribed to on the workshop.
|
|
36
39
|
*
|
|
@@ -40,12 +43,14 @@ interface EngineLib {
|
|
|
40
43
|
* @source https://wiki.facepunch.com/gmod/engine.GetAddons
|
|
41
44
|
*/
|
|
42
45
|
GetAddons(): table;
|
|
46
|
+
|
|
43
47
|
/**
|
|
44
48
|
* 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.
|
|
45
49
|
* @realm client and menu
|
|
46
50
|
* @source https://wiki.facepunch.com/gmod/engine.GetDemoPlaybackStartTick
|
|
47
51
|
*/
|
|
48
52
|
GetDemoPlaybackStartTick(): number;
|
|
53
|
+
|
|
49
54
|
/**
|
|
50
55
|
* Current tick of currently loaded demo.
|
|
51
56
|
*
|
|
@@ -55,6 +60,7 @@ interface EngineLib {
|
|
|
55
60
|
* @source https://wiki.facepunch.com/gmod/engine.GetDemoPlaybackTick
|
|
56
61
|
*/
|
|
57
62
|
GetDemoPlaybackTick(): number;
|
|
63
|
+
|
|
58
64
|
/**
|
|
59
65
|
* Returns time scale of demo playback.
|
|
60
66
|
*
|
|
@@ -64,6 +70,7 @@ interface EngineLib {
|
|
|
64
70
|
* @source https://wiki.facepunch.com/gmod/engine.GetDemoPlaybackTimeScale
|
|
65
71
|
*/
|
|
66
72
|
GetDemoPlaybackTimeScale(): number;
|
|
73
|
+
|
|
67
74
|
/**
|
|
68
75
|
* Returns total amount of ticks of currently loaded demo.
|
|
69
76
|
*
|
|
@@ -73,18 +80,21 @@ interface EngineLib {
|
|
|
73
80
|
* @source https://wiki.facepunch.com/gmod/engine.GetDemoPlaybackTotalTicks
|
|
74
81
|
*/
|
|
75
82
|
GetDemoPlaybackTotalTicks(): number;
|
|
83
|
+
|
|
76
84
|
/**
|
|
77
85
|
* Returns a table containing info for all installed gamemodes.
|
|
78
86
|
* @realm shared and menu
|
|
79
87
|
* @source https://wiki.facepunch.com/gmod/engine.GetGamemodes
|
|
80
88
|
*/
|
|
81
89
|
GetGamemodes(): table;
|
|
90
|
+
|
|
82
91
|
/**
|
|
83
92
|
* Returns an array of tables corresponding to all games from which Garry's Mod supports mounting content.
|
|
84
93
|
* @realm shared and menu
|
|
85
94
|
* @source https://wiki.facepunch.com/gmod/engine.GetGames
|
|
86
95
|
*/
|
|
87
96
|
GetGames(): table;
|
|
97
|
+
|
|
88
98
|
/**
|
|
89
99
|
* Returns the UGC (demos, saves and dupes) the player have subscribed to on the workshop.
|
|
90
100
|
*
|
|
@@ -93,6 +103,7 @@ interface EngineLib {
|
|
|
93
103
|
* @deprecated Used internally for in-game menus, may be merged in the future into engine.GetAddons.
|
|
94
104
|
*/
|
|
95
105
|
GetUserContent(): table;
|
|
106
|
+
|
|
96
107
|
/**
|
|
97
108
|
* Returns true if we're currently playing a demo.
|
|
98
109
|
*
|
|
@@ -102,12 +113,14 @@ interface EngineLib {
|
|
|
102
113
|
* @source https://wiki.facepunch.com/gmod/engine.IsPlayingDemo
|
|
103
114
|
*/
|
|
104
115
|
IsPlayingDemo(): boolean;
|
|
116
|
+
|
|
105
117
|
/**
|
|
106
118
|
* Returns true if the game is currently recording a demo file (.dem) using gm_demo.
|
|
107
119
|
* @realm client and menu
|
|
108
120
|
* @source https://wiki.facepunch.com/gmod/engine.IsRecordingDemo
|
|
109
121
|
*/
|
|
110
122
|
IsRecordingDemo(): boolean;
|
|
123
|
+
|
|
111
124
|
/**
|
|
112
125
|
* 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.
|
|
113
126
|
*
|
|
@@ -117,30 +130,35 @@ interface EngineLib {
|
|
|
117
130
|
* @source https://wiki.facepunch.com/gmod/engine.LightStyle
|
|
118
131
|
*/
|
|
119
132
|
LightStyle(lightstyle: number, pattern: string): void;
|
|
133
|
+
|
|
120
134
|
/**
|
|
121
135
|
* Loads a duplication from the local filesystem.
|
|
122
136
|
* @realm client
|
|
123
137
|
* @source https://wiki.facepunch.com/gmod/engine.OpenDupe
|
|
124
138
|
*/
|
|
125
139
|
OpenDupe(dupeName: string): table;
|
|
140
|
+
|
|
126
141
|
/**
|
|
127
142
|
* 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.
|
|
128
143
|
* @realm client
|
|
129
144
|
* @source https://wiki.facepunch.com/gmod/engine.ServerFrameTime
|
|
130
145
|
*/
|
|
131
146
|
ServerFrameTime(): (number, number);
|
|
147
|
+
|
|
132
148
|
/**
|
|
133
149
|
* Sets the mounting options for mountable content.
|
|
134
150
|
* @realm menu
|
|
135
151
|
* @source https://wiki.facepunch.com/gmod/engine.SetMounted
|
|
136
152
|
*/
|
|
137
153
|
SetMounted(depotID: string, doMount: boolean): void;
|
|
154
|
+
|
|
138
155
|
/**
|
|
139
156
|
* Returns the number of ticks since the game server started.
|
|
140
157
|
* @realm shared and menu
|
|
141
158
|
* @source https://wiki.facepunch.com/gmod/engine.TickCount
|
|
142
159
|
*/
|
|
143
160
|
TickCount(): number;
|
|
161
|
+
|
|
144
162
|
/**
|
|
145
163
|
* Returns the time interval between each game tick in seconds.
|
|
146
164
|
*
|
|
@@ -155,6 +173,7 @@ interface EngineLib {
|
|
|
155
173
|
* @source https://wiki.facepunch.com/gmod/engine.TickInterval
|
|
156
174
|
*/
|
|
157
175
|
TickInterval(): number;
|
|
176
|
+
|
|
158
177
|
/**
|
|
159
178
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
160
179
|
*
|
|
@@ -164,6 +183,7 @@ interface EngineLib {
|
|
|
164
183
|
* @source https://wiki.facepunch.com/gmod/engine.VideoSettings
|
|
165
184
|
*/
|
|
166
185
|
VideoSettings(): table;
|
|
186
|
+
|
|
167
187
|
/**
|
|
168
188
|
* **INTERNAL**: Do not use.
|
|
169
189
|
*
|
|
@@ -173,6 +193,7 @@ interface EngineLib {
|
|
|
173
193
|
* @source https://wiki.facepunch.com/gmod/engine.WriteDupe
|
|
174
194
|
*/
|
|
175
195
|
WriteDupe(dupe: string, jpeg: string): void;
|
|
196
|
+
|
|
176
197
|
/**
|
|
177
198
|
* **INTERNAL**: Do not use.
|
|
178
199
|
*
|
|
@@ -182,25 +203,3 @@ interface EngineLib {
|
|
|
182
203
|
*/
|
|
183
204
|
WriteSave(saveData: string, name: string): void;
|
|
184
205
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|