@tlua/gmod 1.0.4 → 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 +0 -31
- package/types/ai.d.tlua +0 -11
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +0 -37
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +0 -4
- package/types/bf_read.d.tlua +0 -23
- package/types/bit.d.tlua +0 -23
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +0 -33
- package/types/ceffectdata.d.tlua +0 -65
- package/types/chat.d.tlua +0 -11
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +0 -15
- package/types/cluaemitter.d.tlua +0 -25
- package/types/clualocomotion.d.tlua +0 -81
- package/types/cluaparticle.d.tlua +0 -89
- package/types/cmovedata.d.tlua +0 -95
- package/types/cnavarea.d.tlua +0 -155
- package/types/cnavladder.d.tlua +0 -45
- package/types/cnewparticleeffect.d.tlua +0 -53
- package/types/color.d.tlua +0 -57
- package/types/concommand.d.tlua +0 -9
- package/types/constraint.d.tlua +0 -57
- package/types/construct.d.tlua +0 -3
- package/types/contentheader.d.tlua +1 -6
- package/types/contenticon.d.tlua +1 -18
- package/types/contentsidebar.d.tlua +1 -8
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +1 -8
- package/types/controlpanel.d.tlua +6 -31
- package/types/controlpresets.d.tlua +1 -26
- package/types/convar.d.tlua +0 -33
- package/types/cookie.d.tlua +0 -7
- package/types/coroutine.d.tlua +0 -15
- package/types/crecipientfilter.d.tlua +0 -33
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +0 -29
- package/types/ctakedamageinfo.d.tlua +0 -67
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +0 -13
- package/types/cusercmd.d.tlua +0 -55
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +0 -13
- package/types/dadjustablemodelpanel.d.tlua +1 -14
- package/types/dalphabar.d.tlua +1 -6
- package/types/dbinder.d.tlua +1 -8
- package/types/dbubblecontainer.d.tlua +1 -4
- package/types/dbutton.d.tlua +1 -16
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +1 -10
- package/types/dcheckboxlabel.d.tlua +0 -19
- package/types/dcollapsiblecategory.d.tlua +1 -46
- package/types/dcolorbutton.d.tlua +1 -14
- package/types/dcolorcombo.d.tlua +1 -10
- package/types/dcolorcube.d.tlua +1 -26
- package/types/dcolormixer.d.tlua +1 -54
- package/types/dcolorpalette.d.tlua +1 -46
- package/types/dcolumnsheet.d.tlua +1 -10
- package/types/dcombobox.d.tlua +1 -34
- package/types/ddragbase.d.tlua +1 -26
- package/types/ddrawer.d.tlua +1 -16
- package/types/debug.d.tlua +25 -60
- package/types/debugoverlay.d.tlua +0 -23
- package/types/dentityproperties.d.tlua +1 -10
- package/types/derma.d.tlua +0 -21
- package/types/dexpandbutton.d.tlua +1 -6
- package/types/dfilebrowser.d.tlua +0 -41
- package/types/dform.d.tlua +1 -36
- package/types/dframe.d.tlua +0 -49
- package/types/dgrid.d.tlua +1 -22
- package/types/dhorizontaldivider.d.tlua +1 -40
- package/types/dhorizontalscroller.d.tlua +1 -22
- package/types/dhscrollbar.d.tlua +1 -22
- package/types/dhtml.d.tlua +1 -16
- package/types/dhtmlcontrols.d.tlua +0 -11
- package/types/diconbrowser.d.tlua +1 -22
- package/types/diconlayout.d.tlua +1 -36
- package/types/dimage.d.tlua +1 -39
- package/types/dimagebutton.d.tlua +0 -19
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +1 -66
- package/types/dlabeleditable.d.tlua +1 -10
- package/types/dlabelurl.d.tlua +1 -20
- package/types/dlistbox.d.tlua +1 -16
- package/types/dlistboxitem.d.tlua +1 -8
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +1 -68
- package/types/dlistview_column.d.tlua +1 -28
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +1 -26
- 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 +1 -53
- package/types/dmenubar.d.tlua +1 -11
- package/types/dmenuoption.d.tlua +1 -26
- package/types/dmenuoptioncvar.d.tlua +1 -12
- package/types/dmodelpanel.d.tlua +1 -44
- package/types/dmodelselect.d.tlua +1 -4
- package/types/dmodelselectmulti.d.tlua +1 -4
- package/types/dnotify.d.tlua +1 -20
- package/types/dnumberscratch.d.tlua +1 -52
- package/types/dnumberwang.d.tlua +1 -32
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +0 -35
- package/types/dpanel.d.tlua +1 -28
- package/types/dpanellist.d.tlua +0 -23
- package/types/dpaneloverlay.d.tlua +1 -14
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +1 -12
- package/types/dprogress.d.tlua +1 -6
- package/types/dproperties.d.tlua +1 -8
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -6
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +1 -10
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +9 -41
- package/types/dragndrop.d.tlua +0 -21
- package/types/draw.d.tlua +0 -22
- package/types/drgbpicker.d.tlua +1 -8
- package/types/drive.d.tlua +6 -31
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +0 -21
- package/types/dshape.d.tlua +1 -14
- package/types/dsizetocontents.d.tlua +1 -10
- package/types/dslider.d.tlua +1 -56
- package/types/dsprite.d.tlua +1 -18
- package/types/dtab.d.tlua +1 -16
- package/types/dtextentry.d.tlua +1 -86
- package/types/dtilelayout.d.tlua +1 -42
- package/types/dtooltip.d.tlua +1 -12
- package/types/dtree.d.tlua +1 -32
- package/types/dtree_node.d.tlua +1 -136
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +0 -60
- package/types/dverticaldivider.d.tlua +1 -46
- package/types/dvscrollbar.d.tlua +1 -22
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +1 -8
- package/types/effects.d.tlua +0 -13
- package/types/engine.d.tlua +0 -43
- package/types/entity.d.tlua +2 -1319
- package/types/ents.d.tlua +0 -44
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +0 -79
- 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 +0 -15
- package/types/game.d.tlua +0 -79
- package/types/gameevent.d.tlua +4 -9
- package/types/gamemode.d.tlua +0 -6
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +0 -535
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +0 -9
- package/types/gui.d.tlua +0 -43
- package/types/gwen.d.tlua +0 -7
- package/types/halo.d.tlua +0 -5
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +0 -9
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +0 -3
- package/types/iconeditor.d.tlua +1 -22
- package/types/igmodaudiochannel.d.tlua +0 -83
- package/types/imagecheckbox.d.tlua +1 -8
- package/types/imaterial.d.tlua +0 -53
- package/types/imesh.d.tlua +0 -11
- package/types/input.d.tlua +0 -47
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +0 -19
- package/types/isave.d.tlua +0 -19
- package/types/itexture.d.tlua +0 -21
- package/types/ivideowriter.d.tlua +0 -11
- package/types/jit.d.tlua +9 -42
- package/types/killicon.d.tlua +0 -15
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +0 -3
- package/types/list.d.tlua +0 -17
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +0 -5
- package/types/markupobject.d.tlua +0 -11
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +200 -371
- package/types/matproxy.d.tlua +0 -7
- package/types/matselect.d.tlua +1 -22
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +0 -5
- package/types/mesh.d.tlua +0 -39
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +0 -21
- package/types/navmesh.d.tlua +0 -53
- package/types/net.d.tlua +0 -104
- package/types/nextbot.d.tlua +10 -83
- package/types/notification.d.tlua +0 -5
- package/types/npc.d.tlua +1 -364
- package/types/numpad.d.tlua +0 -15
- package/types/os.d.tlua +0 -8
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +2 -662
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +0 -63
- package/types/permissions.d.tlua +0 -13
- package/types/physcollide.d.tlua +0 -7
- package/types/physenv.d.tlua +0 -23
- package/types/physobj.d.tlua +0 -157
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +11 -594
- package/types/player_manager.d.tlua +0 -27
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +0 -13
- package/types/projectedtexture.d.tlua +0 -97
- package/types/properties.d.tlua +0 -11
- package/types/propselect.d.tlua +1 -10
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +0 -285
- package/types/resource.d.tlua +0 -5
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +1 -108
- package/types/saverestore.d.tlua +0 -25
- package/types/schedule.d.tlua +0 -13
- package/types/scripted_ents.d.tlua +0 -21
- package/types/search.d.tlua +0 -3
- package/types/serverlist.d.tlua +0 -15
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +0 -21
- package/types/spawnicon.d.tlua +1 -16
- package/types/spawnmenu.d.tlua +0 -48
- package/types/spawnmenucontentpanel.d.tlua +1 -10
- package/types/sql.d.tlua +0 -19
- package/types/stack.d.tlua +0 -11
- package/types/steamworks.d.tlua +0 -37
- package/types/string.d.tlua +0 -96
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +0 -69
- package/types/surfaceinfo.d.tlua +0 -11
- package/types/system.d.tlua +0 -21
- package/types/table.d.tlua +0 -93
- package/types/task.d.tlua +0 -19
- package/types/team.d.tlua +0 -39
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +0 -29
- package/types/tool.d.tlua +1 -90
- package/types/ugcpublishwindow.d.tlua +1 -18
- package/types/umsg.d.tlua +0 -25
- package/types/undo.d.tlua +0 -21
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +0 -5
- package/types/utf8.d.tlua +0 -15
- package/types/util.d.tlua +0 -185
- package/types/vector.d.tlua +0 -73
- package/types/vehicle.d.tlua +2 -102
- package/types/vgui.d.tlua +0 -33
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +0 -71
- package/types/weapon.d.tlua +2 -168
- package/types/weapons.d.tlua +0 -12
- package/types/widgets.d.tlua +0 -3
- package/types/workshopfilebase.d.tlua +0 -11
package/types/sql.d.tlua
CHANGED
|
@@ -42,9 +42,7 @@ interface SqlLib {
|
|
|
42
42
|
* @source https://wiki.facepunch.com/gmod/sql.Begin
|
|
43
43
|
*/
|
|
44
44
|
Begin(): void;
|
|
45
|
-
}
|
|
46
45
|
|
|
47
|
-
interface SqlLib {
|
|
48
46
|
/**
|
|
49
47
|
* Tells the engine to execute a series of queries queued for execution, must be preceded by [sql.Begin](https://wiki.facepunch.com/gmod/sql.Begin).
|
|
50
48
|
*
|
|
@@ -54,27 +52,21 @@ interface SqlLib {
|
|
|
54
52
|
* @source https://wiki.facepunch.com/gmod/sql.Commit
|
|
55
53
|
*/
|
|
56
54
|
Commit(): void;
|
|
57
|
-
}
|
|
58
55
|
|
|
59
|
-
interface SqlLib {
|
|
60
56
|
/**
|
|
61
57
|
* Returns true if the index with the specified name exists.
|
|
62
58
|
* @realm shared and menu
|
|
63
59
|
* @source https://wiki.facepunch.com/gmod/sql.IndexExists
|
|
64
60
|
*/
|
|
65
61
|
IndexExists(indexName: string): boolean;
|
|
66
|
-
}
|
|
67
62
|
|
|
68
|
-
interface SqlLib {
|
|
69
63
|
/**
|
|
70
64
|
* Returns the last error from a SQLite query.
|
|
71
65
|
* @realm shared and menu
|
|
72
66
|
* @source https://wiki.facepunch.com/gmod/sql.LastError
|
|
73
67
|
*/
|
|
74
68
|
LastError(): string;
|
|
75
|
-
}
|
|
76
69
|
|
|
77
|
-
interface SqlLib {
|
|
78
70
|
/**
|
|
79
71
|
* Performs a query on the local SQLite database, returns a table as result set, nil if result is empty and false on error.
|
|
80
72
|
* **WARNING**: To run SQL queries with this function safely, it is crucial to ensure that the concatenated variables in the query string are safe to avoid vulnerabilities like SQL injections. For this, it is recommended to use the [sql.SQLStr](https://wiki.facepunch.com/gmod/sql.SQLStr), which allows arguments to be escaped correctly.
|
|
@@ -86,9 +78,7 @@ interface SqlLib {
|
|
|
86
78
|
* @source https://wiki.facepunch.com/gmod/sql.Query
|
|
87
79
|
*/
|
|
88
80
|
Query(query: string): table | boolean | nil;
|
|
89
|
-
}
|
|
90
81
|
|
|
91
|
-
interface SqlLib {
|
|
92
82
|
/**
|
|
93
83
|
* Performs the [sql.Query](https://wiki.facepunch.com/gmod/sql.Query) and returns the n'th row.
|
|
94
84
|
*
|
|
@@ -101,9 +91,7 @@ interface SqlLib {
|
|
|
101
91
|
* @source https://wiki.facepunch.com/gmod/sql.QueryRow
|
|
102
92
|
*/
|
|
103
93
|
QueryRow(query: string, row?: number): table;
|
|
104
|
-
}
|
|
105
94
|
|
|
106
|
-
interface SqlLib {
|
|
107
95
|
/**
|
|
108
96
|
* Performs a query on the local SQLite database with proper type handling and parameter binding, returns a table as result set, empty table if no results, and false on error. Unlike [sql.Query](https://wiki.facepunch.com/gmod/sql.Query), this function properly handles SQLite data types and allows safe parameter binding to prevent SQL injection attacks.
|
|
109
97
|
* **WARNING**: * This function only executes a single SQL statement, unlike [sql.Query](https://wiki.facepunch.com/gmod/sql.Query) which can execute multiple statements separated by semicolons.
|
|
@@ -117,18 +105,14 @@ interface SqlLib {
|
|
|
117
105
|
* @source https://wiki.facepunch.com/gmod/sql.QueryTyped
|
|
118
106
|
*/
|
|
119
107
|
QueryTyped(query: string, ...: any): table | boolean;
|
|
120
|
-
}
|
|
121
108
|
|
|
122
|
-
interface SqlLib {
|
|
123
109
|
/**
|
|
124
110
|
* Performs the query like [sql.QueryRow](https://wiki.facepunch.com/gmod/sql.QueryRow), but returns the first value found.
|
|
125
111
|
* @realm shared and menu
|
|
126
112
|
* @source https://wiki.facepunch.com/gmod/sql.QueryValue
|
|
127
113
|
*/
|
|
128
114
|
QueryValue(query: string): string;
|
|
129
|
-
}
|
|
130
115
|
|
|
131
|
-
interface SqlLib {
|
|
132
116
|
/**
|
|
133
117
|
* Escapes dangerous characters and symbols from user input used in an SQLite SQL Query.
|
|
134
118
|
*
|
|
@@ -141,9 +125,7 @@ interface SqlLib {
|
|
|
141
125
|
* @source https://wiki.facepunch.com/gmod/sql.SQLStr
|
|
142
126
|
*/
|
|
143
127
|
SQLStr(string: string, bNoQuotes?: boolean): string;
|
|
144
|
-
}
|
|
145
128
|
|
|
146
|
-
interface SqlLib {
|
|
147
129
|
/**
|
|
148
130
|
* Returns true if the table with the specified name exists.
|
|
149
131
|
* @realm shared and menu
|
|
@@ -151,4 +133,3 @@ interface SqlLib {
|
|
|
151
133
|
*/
|
|
152
134
|
TableExists(tableName: string): boolean;
|
|
153
135
|
}
|
|
154
|
-
|
package/types/stack.d.tlua
CHANGED
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
* The Stack works like a stack of papers: the first page you put down (push) will be the last one you remove (pop). That also means that the last page you put down, will be the first to be removed.
|
|
9
9
|
* @source https://wiki.facepunch.com/gmod/Stack
|
|
10
10
|
*/
|
|
11
|
-
interface Stack {}
|
|
12
|
-
|
|
13
11
|
interface Stack {
|
|
14
12
|
/**
|
|
15
13
|
* Pop an item from the stack
|
|
@@ -17,36 +15,28 @@ interface Stack {
|
|
|
17
15
|
* @source https://wiki.facepunch.com/gmod/Stack:Pop
|
|
18
16
|
*/
|
|
19
17
|
Pop(self: Stack, amount?: number): any;
|
|
20
|
-
}
|
|
21
18
|
|
|
22
|
-
interface Stack {
|
|
23
19
|
/**
|
|
24
20
|
* Pop an item from the stack
|
|
25
21
|
* @realm shared and menu
|
|
26
22
|
* @source https://wiki.facepunch.com/gmod/Stack:PopMulti
|
|
27
23
|
*/
|
|
28
24
|
PopMulti(self: Stack, amount?: number): table;
|
|
29
|
-
}
|
|
30
25
|
|
|
31
|
-
interface Stack {
|
|
32
26
|
/**
|
|
33
27
|
* Push an item onto the stack
|
|
34
28
|
* @realm shared and menu
|
|
35
29
|
* @source https://wiki.facepunch.com/gmod/Stack:Push
|
|
36
30
|
*/
|
|
37
31
|
Push(self: Stack, object: any): void;
|
|
38
|
-
}
|
|
39
32
|
|
|
40
|
-
interface Stack {
|
|
41
33
|
/**
|
|
42
34
|
* Returns the size of the stack
|
|
43
35
|
* @realm shared and menu
|
|
44
36
|
* @source https://wiki.facepunch.com/gmod/Stack:Size
|
|
45
37
|
*/
|
|
46
38
|
Size(self: Stack): number;
|
|
47
|
-
}
|
|
48
39
|
|
|
49
|
-
interface Stack {
|
|
50
40
|
/**
|
|
51
41
|
* Get the item at the top of the stack
|
|
52
42
|
* @realm shared and menu
|
|
@@ -54,4 +44,3 @@ interface Stack {
|
|
|
54
44
|
*/
|
|
55
45
|
Top(self: Stack): any;
|
|
56
46
|
}
|
|
57
|
-
|
package/types/steamworks.d.tlua
CHANGED
|
@@ -13,9 +13,7 @@ interface SteamworksLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/steamworks.ApplyAddons
|
|
14
14
|
*/
|
|
15
15
|
ApplyAddons(): void;
|
|
16
|
-
}
|
|
17
16
|
|
|
18
|
-
interface SteamworksLib {
|
|
19
17
|
/**
|
|
20
18
|
* **NOTE**: You really should be using [steamworks.DownloadUGC](https://wiki.facepunch.com/gmod/steamworks.DownloadUGC) when downloading Steam Workshop items. This is a legacy function for preview images.
|
|
21
19
|
*
|
|
@@ -30,18 +28,14 @@ interface SteamworksLib {
|
|
|
30
28
|
* @source https://wiki.facepunch.com/gmod/steamworks.Download
|
|
31
29
|
*/
|
|
32
30
|
Download(workshopPreviewID: string, uncompress: boolean, resultCallback: (path: string) => void): void;
|
|
33
|
-
}
|
|
34
31
|
|
|
35
|
-
interface SteamworksLib {
|
|
36
32
|
/**
|
|
37
33
|
* Downloads the Fire Extinguisher addon from Steam Workshop prints path to its .gma file to be used with [game.MountGMA](https://wiki.facepunch.com/gmod/game.MountGMA).
|
|
38
34
|
* @realm client and menu
|
|
39
35
|
* @source https://wiki.facepunch.com/gmod/steamworks.DownloadUGC
|
|
40
36
|
*/
|
|
41
37
|
DownloadUGC(workshopID: string, resultCallback: (path: string, file: file_class) => void): void;
|
|
42
|
-
}
|
|
43
38
|
|
|
44
|
-
interface SteamworksLib {
|
|
45
39
|
/**
|
|
46
40
|
* Retrieves info about supplied Steam Workshop addon.
|
|
47
41
|
*
|
|
@@ -49,18 +43,14 @@ interface SteamworksLib {
|
|
|
49
43
|
* @source https://wiki.facepunch.com/gmod/steamworks.FileInfo
|
|
50
44
|
*/
|
|
51
45
|
FileInfo(workshopItemID: string, resultCallback: (data: table) => void, extraInfo?: boolean): void;
|
|
52
|
-
}
|
|
53
46
|
|
|
54
|
-
interface SteamworksLib {
|
|
55
47
|
/**
|
|
56
48
|
* Retrieves a customized list of Steam Workshop addons.
|
|
57
49
|
* @realm shared and menu
|
|
58
50
|
* @source https://wiki.facepunch.com/gmod/steamworks.GetList
|
|
59
51
|
*/
|
|
60
52
|
GetList(type: string, tags: table, offset: number, numRetrieve: number, days: number, userID?: string, resultCallback?: (data: table) => void, searchText?: string): void;
|
|
61
|
-
}
|
|
62
53
|
|
|
63
|
-
interface SteamworksLib {
|
|
64
54
|
/**
|
|
65
55
|
* Retrieves players name by their 64bit SteamID.
|
|
66
56
|
*
|
|
@@ -71,27 +61,21 @@ interface SteamworksLib {
|
|
|
71
61
|
* @deprecated You should use the callback of steamworks.RequestPlayerInfo instead.
|
|
72
62
|
*/
|
|
73
63
|
GetPlayerName(steamID64: string): string;
|
|
74
|
-
}
|
|
75
64
|
|
|
76
|
-
interface SteamworksLib {
|
|
77
65
|
/**
|
|
78
66
|
* Returns whenever the client is subscribed to the specified Steam Workshop item.
|
|
79
67
|
* @realm client and menu
|
|
80
68
|
* @source https://wiki.facepunch.com/gmod/steamworks.IsSubscribed
|
|
81
69
|
*/
|
|
82
70
|
IsSubscribed(workshopItemID: string): boolean;
|
|
83
|
-
}
|
|
84
71
|
|
|
85
|
-
interface SteamworksLib {
|
|
86
72
|
/**
|
|
87
73
|
* Opens the workshop website in the steam overlay browser.
|
|
88
74
|
* @realm client and menu
|
|
89
75
|
* @source https://wiki.facepunch.com/gmod/steamworks.OpenWorkshop
|
|
90
76
|
*/
|
|
91
77
|
OpenWorkshop(): void;
|
|
92
|
-
}
|
|
93
78
|
|
|
94
|
-
interface SteamworksLib {
|
|
95
79
|
/**
|
|
96
80
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
97
81
|
*
|
|
@@ -101,27 +85,21 @@ interface SteamworksLib {
|
|
|
101
85
|
* @source https://wiki.facepunch.com/gmod/steamworks.Publish
|
|
102
86
|
*/
|
|
103
87
|
Publish(filename: string, image: string, name: string, desc: string, tags: table, callback: (fileID: number, error: string) => void, fileid?: number, changelist?: string): void;
|
|
104
|
-
}
|
|
105
88
|
|
|
106
|
-
interface SteamworksLib {
|
|
107
89
|
/**
|
|
108
90
|
* Requests information of the player with SteamID64 for later use with [steamworks.GetPlayerName](https://wiki.facepunch.com/gmod/steamworks.GetPlayerName).
|
|
109
91
|
* @realm client and menu
|
|
110
92
|
* @source https://wiki.facepunch.com/gmod/steamworks.RequestPlayerInfo
|
|
111
93
|
*/
|
|
112
94
|
RequestPlayerInfo(steamID64: string, callback: (name: string) => void): void;
|
|
113
|
-
}
|
|
114
95
|
|
|
115
|
-
interface SteamworksLib {
|
|
116
96
|
/**
|
|
117
97
|
* Sets the workshop item as "completed" by the player. There will be a visual indicator on the Steam Workshop for completed items.
|
|
118
98
|
* @realm menu
|
|
119
99
|
* @source https://wiki.facepunch.com/gmod/steamworks.SetFileCompleted
|
|
120
100
|
*/
|
|
121
101
|
SetFileCompleted(workshopid: string): string;
|
|
122
|
-
}
|
|
123
102
|
|
|
124
|
-
interface SteamworksLib {
|
|
125
103
|
/**
|
|
126
104
|
* Sets whether you have played this addon or not. This will be shown to the user in the Steam Workshop itself:
|
|
127
105
|
*
|
|
@@ -130,27 +108,21 @@ interface SteamworksLib {
|
|
|
130
108
|
* @source https://wiki.facepunch.com/gmod/steamworks.SetFilePlayed
|
|
131
109
|
*/
|
|
132
110
|
SetFilePlayed(workshopid: string): string;
|
|
133
|
-
}
|
|
134
111
|
|
|
135
|
-
interface SteamworksLib {
|
|
136
112
|
/**
|
|
137
113
|
* Sets if an addon should be enabled or disabled. Call [steamworks.ApplyAddons](https://wiki.facepunch.com/gmod/steamworks.ApplyAddons) afterwards to update.
|
|
138
114
|
* @realm menu
|
|
139
115
|
* @source https://wiki.facepunch.com/gmod/steamworks.SetShouldMountAddon
|
|
140
116
|
*/
|
|
141
117
|
SetShouldMountAddon(workshopItemID: string, shouldMount: boolean): void;
|
|
142
|
-
}
|
|
143
118
|
|
|
144
|
-
interface SteamworksLib {
|
|
145
119
|
/**
|
|
146
120
|
* Returns whenever the specified Steam Workshop addon will be mounted or not.
|
|
147
121
|
* @realm client and menu
|
|
148
122
|
* @source https://wiki.facepunch.com/gmod/steamworks.ShouldMountAddon
|
|
149
123
|
*/
|
|
150
124
|
ShouldMountAddon(workshopItemID: string): boolean;
|
|
151
|
-
}
|
|
152
125
|
|
|
153
|
-
interface SteamworksLib {
|
|
154
126
|
/**
|
|
155
127
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
156
128
|
*
|
|
@@ -161,9 +133,7 @@ interface SteamworksLib {
|
|
|
161
133
|
* @source https://wiki.facepunch.com/gmod/steamworks.Subscribe
|
|
162
134
|
*/
|
|
163
135
|
Subscribe(workshopItemID: string): void;
|
|
164
|
-
}
|
|
165
136
|
|
|
166
|
-
interface SteamworksLib {
|
|
167
137
|
/**
|
|
168
138
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
169
139
|
* Unsubscribes to the specified workshop addon. Call [steamworks.ApplyAddons](https://wiki.facepunch.com/gmod/steamworks.ApplyAddons) afterwards to update.
|
|
@@ -174,18 +144,14 @@ interface SteamworksLib {
|
|
|
174
144
|
* @source https://wiki.facepunch.com/gmod/steamworks.Unsubscribe
|
|
175
145
|
*/
|
|
176
146
|
Unsubscribe(workshopItemID: string): void;
|
|
177
|
-
}
|
|
178
147
|
|
|
179
|
-
interface SteamworksLib {
|
|
180
148
|
/**
|
|
181
149
|
* Opens the workshop website for specified Steam Workshop item in the Steam overlay browser.
|
|
182
150
|
* @realm client and menu
|
|
183
151
|
* @source https://wiki.facepunch.com/gmod/steamworks.ViewFile
|
|
184
152
|
*/
|
|
185
153
|
ViewFile(workshopItemID: string): void;
|
|
186
|
-
}
|
|
187
154
|
|
|
188
|
-
interface SteamworksLib {
|
|
189
155
|
/**
|
|
190
156
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
191
157
|
* Makes the user vote for the specified addon
|
|
@@ -193,9 +159,7 @@ interface SteamworksLib {
|
|
|
193
159
|
* @source https://wiki.facepunch.com/gmod/steamworks.Vote
|
|
194
160
|
*/
|
|
195
161
|
Vote(workshopItemID: string, upOrDown: boolean): void;
|
|
196
|
-
}
|
|
197
162
|
|
|
198
|
-
interface SteamworksLib {
|
|
199
163
|
/**
|
|
200
164
|
* Retrieves vote info of supplied addon.
|
|
201
165
|
*
|
|
@@ -205,4 +169,3 @@ interface SteamworksLib {
|
|
|
205
169
|
*/
|
|
206
170
|
VoteInfo(workshopItemID: string, resultCallback: (data: table) => void): void;
|
|
207
171
|
}
|
|
208
|
-
|