@tlua/gmod 1.0.4 → 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.
- package/package.json +1 -1
- package/types/achievements.d.tlua +15 -45
- package/types/ai.d.tlua +5 -15
- package/types/angle.d.tlua +18 -54
- package/types/baseclass.d.tlua +2 -4
- package/types/bf_read.d.tlua +11 -32
- package/types/bit.d.tlua +11 -33
- package/types/cam.d.tlua +16 -48
- package/types/ceffectdata.d.tlua +32 -95
- package/types/chat.d.tlua +5 -15
- package/types/cleanup.d.tlua +7 -21
- package/types/cluaemitter.d.tlua +12 -35
- package/types/clualocomotion.d.tlua +40 -119
- package/types/cluaparticle.d.tlua +44 -131
- package/types/cmovedata.d.tlua +47 -140
- package/types/cnavarea.d.tlua +77 -230
- package/types/cnavladder.d.tlua +22 -65
- package/types/cnewparticleeffect.d.tlua +26 -77
- package/types/color.d.tlua +28 -84
- package/types/concommand.d.tlua +4 -12
- package/types/constraint.d.tlua +28 -84
- package/types/construct.d.tlua +1 -3
- package/types/contentheader.d.tlua +3 -6
- package/types/contenticon.d.tlua +9 -24
- package/types/contentsidebar.d.tlua +4 -9
- package/types/contextbase.d.tlua +4 -9
- package/types/controlpanel.d.tlua +18 -40
- package/types/controlpresets.d.tlua +13 -36
- package/types/convar.d.tlua +16 -47
- package/types/cookie.d.tlua +3 -9
- package/types/coroutine.d.tlua +7 -21
- package/types/crecipientfilter.d.tlua +16 -47
- package/types/csoundpatch.d.tlua +14 -41
- package/types/ctakedamageinfo.d.tlua +33 -98
- package/types/ctrlnumpad.d.tlua +6 -17
- package/types/cusercmd.d.tlua +27 -80
- package/types/cvars.d.tlua +6 -18
- package/types/dadjustablemodelpanel.d.tlua +7 -18
- package/types/dalphabar.d.tlua +3 -6
- package/types/dbinder.d.tlua +4 -9
- package/types/dbubblecontainer.d.tlua +2 -3
- package/types/dbutton.d.tlua +8 -21
- package/types/dcheckbox.d.tlua +5 -12
- package/types/dcheckboxlabel.d.tlua +9 -27
- package/types/dcollapsiblecategory.d.tlua +23 -66
- package/types/dcolorbutton.d.tlua +7 -18
- package/types/dcolorcombo.d.tlua +5 -12
- package/types/dcolorcube.d.tlua +13 -36
- package/types/dcolormixer.d.tlua +27 -78
- package/types/dcolorpalette.d.tlua +23 -66
- package/types/dcolumnsheet.d.tlua +5 -12
- package/types/dcombobox.d.tlua +17 -48
- package/types/ddragbase.d.tlua +13 -36
- package/types/ddrawer.d.tlua +8 -21
- package/types/debug.d.tlua +44 -76
- package/types/debugoverlay.d.tlua +11 -33
- package/types/dentityproperties.d.tlua +5 -12
- package/types/derma.d.tlua +10 -30
- package/types/dexpandbutton.d.tlua +3 -6
- package/types/dfilebrowser.d.tlua +20 -60
- package/types/dform.d.tlua +18 -51
- package/types/dframe.d.tlua +24 -72
- package/types/dgrid.d.tlua +11 -30
- package/types/dhorizontaldivider.d.tlua +20 -57
- package/types/dhorizontalscroller.d.tlua +11 -30
- package/types/dhscrollbar.d.tlua +11 -30
- package/types/dhtml.d.tlua +8 -21
- package/types/dhtmlcontrols.d.tlua +5 -15
- package/types/diconbrowser.d.tlua +11 -30
- package/types/diconlayout.d.tlua +18 -51
- package/types/dimage.d.tlua +20 -55
- package/types/dimagebutton.d.tlua +9 -27
- package/types/dlabel.d.tlua +33 -96
- package/types/dlabeleditable.d.tlua +5 -12
- package/types/dlabelurl.d.tlua +10 -27
- package/types/dlistbox.d.tlua +8 -21
- package/types/dlistboxitem.d.tlua +4 -9
- package/types/dlistview.d.tlua +34 -99
- package/types/dlistview_column.d.tlua +14 -39
- package/types/dlistview_line.d.tlua +13 -36
- package/types/dmenu.d.tlua +28 -75
- package/types/dmenubar.d.tlua +6 -11
- package/types/dmenuoption.d.tlua +13 -36
- package/types/dmenuoptioncvar.d.tlua +6 -15
- package/types/dmodelpanel.d.tlua +22 -63
- package/types/dmodelselect.d.tlua +2 -3
- package/types/dmodelselectmulti.d.tlua +2 -3
- package/types/dnotify.d.tlua +10 -27
- package/types/dnumberscratch.d.tlua +26 -75
- package/types/dnumberwang.d.tlua +16 -45
- package/types/dnumslider.d.tlua +17 -51
- package/types/dpanel.d.tlua +14 -39
- package/types/dpanellist.d.tlua +11 -33
- package/types/dpaneloverlay.d.tlua +7 -18
- package/types/dpanpanel.d.tlua +6 -15
- package/types/dprogress.d.tlua +3 -6
- package/types/dproperties.d.tlua +4 -9
- package/types/dproperty_combo.d.tlua +3 -6
- package/types/dproperty_generic.d.tlua +5 -12
- package/types/dpropertysheet.d.tlua +26 -56
- package/types/dragndrop.d.tlua +10 -30
- package/types/draw.d.tlua +11 -31
- package/types/drgbpicker.d.tlua +4 -9
- package/types/drive.d.tlua +18 -41
- package/types/dscrollpanel.d.tlua +10 -30
- package/types/dshape.d.tlua +7 -18
- package/types/dsizetocontents.d.tlua +5 -12
- package/types/dslider.d.tlua +28 -81
- package/types/dsprite.d.tlua +9 -24
- package/types/dtab.d.tlua +8 -21
- package/types/dtextentry.d.tlua +43 -126
- package/types/dtilelayout.d.tlua +21 -60
- package/types/dtooltip.d.tlua +6 -15
- package/types/dtree.d.tlua +16 -45
- package/types/dtree_node.d.tlua +68 -201
- package/types/duplicator.d.tlua +30 -88
- package/types/dverticaldivider.d.tlua +23 -66
- package/types/dvscrollbar.d.tlua +11 -30
- package/types/effect.d.tlua +4 -9
- package/types/effects.d.tlua +6 -18
- package/types/engine.d.tlua +21 -63
- package/types/entity.d.tlua +676 -1962
- package/types/ents.d.tlua +23 -61
- package/types/file.d.tlua +39 -117
- package/types/frame_blend.d.tlua +7 -21
- package/types/game.d.tlua +39 -117
- package/types/gameevent.d.tlua +4 -8
- package/types/gamemode.d.tlua +3 -7
- package/types/gm.d.tlua +267 -800
- package/types/gmsave.d.tlua +4 -12
- package/types/gui.d.tlua +21 -63
- package/types/gwen.d.tlua +3 -9
- package/types/halo.d.tlua +2 -6
- package/types/hook.d.tlua +4 -12
- package/types/http.d.tlua +1 -3
- package/types/iconeditor.d.tlua +11 -30
- package/types/igmodaudiochannel.d.tlua +41 -122
- package/types/imagecheckbox.d.tlua +4 -9
- package/types/imaterial.d.tlua +26 -77
- package/types/imesh.d.tlua +5 -14
- package/types/input.d.tlua +24 -68
- package/types/irestore.d.tlua +9 -26
- package/types/isave.d.tlua +9 -26
- package/types/itexture.d.tlua +10 -29
- package/types/ivideowriter.d.tlua +5 -14
- package/types/jit.d.tlua +21 -53
- package/types/killicon.d.tlua +7 -21
- package/types/language.d.tlua +1 -3
- package/types/list.d.tlua +8 -24
- package/types/markup.d.tlua +2 -6
- package/types/markupobject.d.tlua +5 -14
- package/types/math.d.tlua +277 -447
- package/types/matproxy.d.tlua +3 -9
- package/types/matselect.d.tlua +11 -30
- package/types/menubar.d.tlua +2 -6
- package/types/mesh.d.tlua +19 -57
- package/types/motionsensor.d.tlua +10 -30
- package/types/navmesh.d.tlua +26 -78
- package/types/net.d.tlua +52 -154
- package/types/nextbot.d.tlua +46 -116
- package/types/notification.d.tlua +2 -6
- package/types/npc.d.tlua +182 -543
- package/types/numpad.d.tlua +7 -21
- package/types/os.d.tlua +4 -10
- package/types/panel.d.tlua +333 -991
- package/types/pathfollower.d.tlua +31 -92
- package/types/permissions.d.tlua +6 -18
- package/types/physcollide.d.tlua +3 -8
- package/types/physenv.d.tlua +11 -33
- package/types/physobj.d.tlua +78 -233
- package/types/player.d.tlua +302 -880
- package/types/player_manager.d.tlua +13 -39
- package/types/presets.d.tlua +6 -18
- package/types/projectedtexture.d.tlua +48 -143
- package/types/properties.d.tlua +5 -15
- package/types/propselect.d.tlua +5 -12
- package/types/render.d.tlua +142 -426
- package/types/resource.d.tlua +2 -6
- package/types/sandbox.d.tlua +54 -159
- package/types/saverestore.d.tlua +12 -36
- package/types/schedule.d.tlua +6 -17
- package/types/scripted_ents.d.tlua +11 -29
- package/types/search.d.tlua +1 -3
- package/types/serverlist.d.tlua +7 -21
- package/types/sound.d.tlua +10 -30
- package/types/spawnicon.d.tlua +8 -21
- package/types/spawnmenu.d.tlua +24 -70
- package/types/spawnmenucontentpanel.d.tlua +5 -12
- package/types/sql.d.tlua +9 -27
- package/types/stack.d.tlua +5 -14
- package/types/steamworks.d.tlua +18 -54
- package/types/string.d.tlua +49 -141
- package/types/surface.d.tlua +34 -102
- package/types/surfaceinfo.d.tlua +5 -14
- package/types/system.d.tlua +10 -30
- package/types/table.d.tlua +47 -137
- package/types/task.d.tlua +9 -26
- package/types/team.d.tlua +19 -57
- package/types/timer.d.tlua +14 -42
- package/types/tool.d.tlua +46 -131
- package/types/ugcpublishwindow.d.tlua +9 -24
- package/types/umsg.d.tlua +12 -36
- package/types/undo.d.tlua +10 -30
- package/types/usermessage.d.tlua +2 -6
- package/types/utf8.d.tlua +7 -21
- package/types/util.d.tlua +94 -274
- package/types/vector.d.tlua +36 -108
- package/types/vehicle.d.tlua +52 -149
- package/types/vgui.d.tlua +18 -46
- package/types/vmatrix.d.tlua +35 -105
- package/types/weapon.d.tlua +85 -248
- package/types/weapons.d.tlua +6 -16
- package/types/widgets.d.tlua +1 -3
- package/types/workshopfilebase.d.tlua +5 -14
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
* @realm client
|
|
9
9
|
* @source https://wiki.facepunch.com/gmod/SpawnmenuContentPanel
|
|
10
10
|
*/
|
|
11
|
-
interface SpawnmenuContentPanel extends DPanel {
|
|
12
|
-
|
|
13
|
-
interface SpawnmenuContentPanel {
|
|
11
|
+
interface SpawnmenuContentPanel extends DPanel {
|
|
14
12
|
/**
|
|
15
13
|
* Changes the Spawnmenu category to search in
|
|
16
14
|
*
|
|
@@ -18,9 +16,6 @@ interface SpawnmenuContentPanel {
|
|
|
18
16
|
* @source https://wiki.facepunch.com/gmod/SpawnmenuContentPanel:CallPopulateHook
|
|
19
17
|
*/
|
|
20
18
|
CallPopulateHook(self: SpawnmenuContentPanel, hookname: string): void;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface SpawnmenuContentPanel {
|
|
24
19
|
/**
|
|
25
20
|
* Allows the modification of the ContentSidebar
|
|
26
21
|
*
|
|
@@ -28,9 +23,6 @@ interface SpawnmenuContentPanel {
|
|
|
28
23
|
* @source https://wiki.facepunch.com/gmod/SpawnmenuContentPanel:EnableModify
|
|
29
24
|
*/
|
|
30
25
|
EnableModify(self: SpawnmenuContentPanel): void;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface SpawnmenuContentPanel {
|
|
34
26
|
/**
|
|
35
27
|
* Changes the Spawnmenu category to search in
|
|
36
28
|
*
|
|
@@ -38,9 +30,6 @@ interface SpawnmenuContentPanel {
|
|
|
38
30
|
* @source https://wiki.facepunch.com/gmod/SpawnmenuContentPanel:EnableSearch
|
|
39
31
|
*/
|
|
40
32
|
EnableSearch(self: SpawnmenuContentPanel, category: string, hookname: string): void;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface SpawnmenuContentPanel {
|
|
44
33
|
/**
|
|
45
34
|
* Switches the current panel with the given panel
|
|
46
35
|
*
|
|
@@ -50,3 +39,7 @@ interface SpawnmenuContentPanel {
|
|
|
50
39
|
SwitchPanel(self: SpawnmenuContentPanel, panel: Panel): void;
|
|
51
40
|
}
|
|
52
41
|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
package/types/sql.d.tlua
CHANGED
|
@@ -42,9 +42,6 @@ interface SqlLib {
|
|
|
42
42
|
* @source https://wiki.facepunch.com/gmod/sql.Begin
|
|
43
43
|
*/
|
|
44
44
|
Begin(): void;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface SqlLib {
|
|
48
45
|
/**
|
|
49
46
|
* 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
47
|
*
|
|
@@ -54,27 +51,18 @@ interface SqlLib {
|
|
|
54
51
|
* @source https://wiki.facepunch.com/gmod/sql.Commit
|
|
55
52
|
*/
|
|
56
53
|
Commit(): void;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
interface SqlLib {
|
|
60
54
|
/**
|
|
61
55
|
* Returns true if the index with the specified name exists.
|
|
62
56
|
* @realm shared and menu
|
|
63
57
|
* @source https://wiki.facepunch.com/gmod/sql.IndexExists
|
|
64
58
|
*/
|
|
65
59
|
IndexExists(indexName: string): boolean;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
interface SqlLib {
|
|
69
60
|
/**
|
|
70
61
|
* Returns the last error from a SQLite query.
|
|
71
62
|
* @realm shared and menu
|
|
72
63
|
* @source https://wiki.facepunch.com/gmod/sql.LastError
|
|
73
64
|
*/
|
|
74
65
|
LastError(): string;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
interface SqlLib {
|
|
78
66
|
/**
|
|
79
67
|
* Performs a query on the local SQLite database, returns a table as result set, nil if result is empty and false on error.
|
|
80
68
|
* **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 +74,6 @@ interface SqlLib {
|
|
|
86
74
|
* @source https://wiki.facepunch.com/gmod/sql.Query
|
|
87
75
|
*/
|
|
88
76
|
Query(query: string): table | boolean | nil;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
interface SqlLib {
|
|
92
77
|
/**
|
|
93
78
|
* Performs the [sql.Query](https://wiki.facepunch.com/gmod/sql.Query) and returns the n'th row.
|
|
94
79
|
*
|
|
@@ -101,9 +86,6 @@ interface SqlLib {
|
|
|
101
86
|
* @source https://wiki.facepunch.com/gmod/sql.QueryRow
|
|
102
87
|
*/
|
|
103
88
|
QueryRow(query: string, row?: number): table;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
interface SqlLib {
|
|
107
89
|
/**
|
|
108
90
|
* 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
91
|
* **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 +99,12 @@ interface SqlLib {
|
|
|
117
99
|
* @source https://wiki.facepunch.com/gmod/sql.QueryTyped
|
|
118
100
|
*/
|
|
119
101
|
QueryTyped(query: string, ...: any): table | boolean;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
interface SqlLib {
|
|
123
102
|
/**
|
|
124
103
|
* Performs the query like [sql.QueryRow](https://wiki.facepunch.com/gmod/sql.QueryRow), but returns the first value found.
|
|
125
104
|
* @realm shared and menu
|
|
126
105
|
* @source https://wiki.facepunch.com/gmod/sql.QueryValue
|
|
127
106
|
*/
|
|
128
107
|
QueryValue(query: string): string;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
interface SqlLib {
|
|
132
108
|
/**
|
|
133
109
|
* Escapes dangerous characters and symbols from user input used in an SQLite SQL Query.
|
|
134
110
|
*
|
|
@@ -141,9 +117,6 @@ interface SqlLib {
|
|
|
141
117
|
* @source https://wiki.facepunch.com/gmod/sql.SQLStr
|
|
142
118
|
*/
|
|
143
119
|
SQLStr(string: string, bNoQuotes?: boolean): string;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
interface SqlLib {
|
|
147
120
|
/**
|
|
148
121
|
* Returns true if the table with the specified name exists.
|
|
149
122
|
* @realm shared and menu
|
|
@@ -152,3 +125,12 @@ interface SqlLib {
|
|
|
152
125
|
TableExists(tableName: string): boolean;
|
|
153
126
|
}
|
|
154
127
|
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
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,24 @@ interface Stack {
|
|
|
17
15
|
* @source https://wiki.facepunch.com/gmod/Stack:Pop
|
|
18
16
|
*/
|
|
19
17
|
Pop(self: Stack, amount?: number): any;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
interface Stack {
|
|
23
18
|
/**
|
|
24
19
|
* Pop an item from the stack
|
|
25
20
|
* @realm shared and menu
|
|
26
21
|
* @source https://wiki.facepunch.com/gmod/Stack:PopMulti
|
|
27
22
|
*/
|
|
28
23
|
PopMulti(self: Stack, amount?: number): table;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface Stack {
|
|
32
24
|
/**
|
|
33
25
|
* Push an item onto the stack
|
|
34
26
|
* @realm shared and menu
|
|
35
27
|
* @source https://wiki.facepunch.com/gmod/Stack:Push
|
|
36
28
|
*/
|
|
37
29
|
Push(self: Stack, object: any): void;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface Stack {
|
|
41
30
|
/**
|
|
42
31
|
* Returns the size of the stack
|
|
43
32
|
* @realm shared and menu
|
|
44
33
|
* @source https://wiki.facepunch.com/gmod/Stack:Size
|
|
45
34
|
*/
|
|
46
35
|
Size(self: Stack): number;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
interface Stack {
|
|
50
36
|
/**
|
|
51
37
|
* Get the item at the top of the stack
|
|
52
38
|
* @realm shared and menu
|
|
@@ -55,3 +41,8 @@ interface Stack {
|
|
|
55
41
|
Top(self: Stack): any;
|
|
56
42
|
}
|
|
57
43
|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
package/types/steamworks.d.tlua
CHANGED
|
@@ -13,9 +13,6 @@ interface SteamworksLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/steamworks.ApplyAddons
|
|
14
14
|
*/
|
|
15
15
|
ApplyAddons(): void;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface SteamworksLib {
|
|
19
16
|
/**
|
|
20
17
|
* **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
18
|
*
|
|
@@ -30,18 +27,12 @@ interface SteamworksLib {
|
|
|
30
27
|
* @source https://wiki.facepunch.com/gmod/steamworks.Download
|
|
31
28
|
*/
|
|
32
29
|
Download(workshopPreviewID: string, uncompress: boolean, resultCallback: (path: string) => void): void;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface SteamworksLib {
|
|
36
30
|
/**
|
|
37
31
|
* 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
32
|
* @realm client and menu
|
|
39
33
|
* @source https://wiki.facepunch.com/gmod/steamworks.DownloadUGC
|
|
40
34
|
*/
|
|
41
35
|
DownloadUGC(workshopID: string, resultCallback: (path: string, file: file_class) => void): void;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
interface SteamworksLib {
|
|
45
36
|
/**
|
|
46
37
|
* Retrieves info about supplied Steam Workshop addon.
|
|
47
38
|
*
|
|
@@ -49,18 +40,12 @@ interface SteamworksLib {
|
|
|
49
40
|
* @source https://wiki.facepunch.com/gmod/steamworks.FileInfo
|
|
50
41
|
*/
|
|
51
42
|
FileInfo(workshopItemID: string, resultCallback: (data: table) => void, extraInfo?: boolean): void;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface SteamworksLib {
|
|
55
43
|
/**
|
|
56
44
|
* Retrieves a customized list of Steam Workshop addons.
|
|
57
45
|
* @realm shared and menu
|
|
58
46
|
* @source https://wiki.facepunch.com/gmod/steamworks.GetList
|
|
59
47
|
*/
|
|
60
48
|
GetList(type: string, tags: table, offset: number, numRetrieve: number, days: number, userID?: string, resultCallback?: (data: table) => void, searchText?: string): void;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface SteamworksLib {
|
|
64
49
|
/**
|
|
65
50
|
* Retrieves players name by their 64bit SteamID.
|
|
66
51
|
*
|
|
@@ -71,27 +56,18 @@ interface SteamworksLib {
|
|
|
71
56
|
* @deprecated You should use the callback of steamworks.RequestPlayerInfo instead.
|
|
72
57
|
*/
|
|
73
58
|
GetPlayerName(steamID64: string): string;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
interface SteamworksLib {
|
|
77
59
|
/**
|
|
78
60
|
* Returns whenever the client is subscribed to the specified Steam Workshop item.
|
|
79
61
|
* @realm client and menu
|
|
80
62
|
* @source https://wiki.facepunch.com/gmod/steamworks.IsSubscribed
|
|
81
63
|
*/
|
|
82
64
|
IsSubscribed(workshopItemID: string): boolean;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
interface SteamworksLib {
|
|
86
65
|
/**
|
|
87
66
|
* Opens the workshop website in the steam overlay browser.
|
|
88
67
|
* @realm client and menu
|
|
89
68
|
* @source https://wiki.facepunch.com/gmod/steamworks.OpenWorkshop
|
|
90
69
|
*/
|
|
91
70
|
OpenWorkshop(): void;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
interface SteamworksLib {
|
|
95
71
|
/**
|
|
96
72
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
97
73
|
*
|
|
@@ -101,27 +77,18 @@ interface SteamworksLib {
|
|
|
101
77
|
* @source https://wiki.facepunch.com/gmod/steamworks.Publish
|
|
102
78
|
*/
|
|
103
79
|
Publish(filename: string, image: string, name: string, desc: string, tags: table, callback: (fileID: number, error: string) => void, fileid?: number, changelist?: string): void;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
interface SteamworksLib {
|
|
107
80
|
/**
|
|
108
81
|
* Requests information of the player with SteamID64 for later use with [steamworks.GetPlayerName](https://wiki.facepunch.com/gmod/steamworks.GetPlayerName).
|
|
109
82
|
* @realm client and menu
|
|
110
83
|
* @source https://wiki.facepunch.com/gmod/steamworks.RequestPlayerInfo
|
|
111
84
|
*/
|
|
112
85
|
RequestPlayerInfo(steamID64: string, callback: (name: string) => void): void;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
interface SteamworksLib {
|
|
116
86
|
/**
|
|
117
87
|
* Sets the workshop item as "completed" by the player. There will be a visual indicator on the Steam Workshop for completed items.
|
|
118
88
|
* @realm menu
|
|
119
89
|
* @source https://wiki.facepunch.com/gmod/steamworks.SetFileCompleted
|
|
120
90
|
*/
|
|
121
91
|
SetFileCompleted(workshopid: string): string;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
interface SteamworksLib {
|
|
125
92
|
/**
|
|
126
93
|
* Sets whether you have played this addon or not. This will be shown to the user in the Steam Workshop itself:
|
|
127
94
|
*
|
|
@@ -130,27 +97,18 @@ interface SteamworksLib {
|
|
|
130
97
|
* @source https://wiki.facepunch.com/gmod/steamworks.SetFilePlayed
|
|
131
98
|
*/
|
|
132
99
|
SetFilePlayed(workshopid: string): string;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
interface SteamworksLib {
|
|
136
100
|
/**
|
|
137
101
|
* Sets if an addon should be enabled or disabled. Call [steamworks.ApplyAddons](https://wiki.facepunch.com/gmod/steamworks.ApplyAddons) afterwards to update.
|
|
138
102
|
* @realm menu
|
|
139
103
|
* @source https://wiki.facepunch.com/gmod/steamworks.SetShouldMountAddon
|
|
140
104
|
*/
|
|
141
105
|
SetShouldMountAddon(workshopItemID: string, shouldMount: boolean): void;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
interface SteamworksLib {
|
|
145
106
|
/**
|
|
146
107
|
* Returns whenever the specified Steam Workshop addon will be mounted or not.
|
|
147
108
|
* @realm client and menu
|
|
148
109
|
* @source https://wiki.facepunch.com/gmod/steamworks.ShouldMountAddon
|
|
149
110
|
*/
|
|
150
111
|
ShouldMountAddon(workshopItemID: string): boolean;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
interface SteamworksLib {
|
|
154
112
|
/**
|
|
155
113
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
156
114
|
*
|
|
@@ -161,9 +119,6 @@ interface SteamworksLib {
|
|
|
161
119
|
* @source https://wiki.facepunch.com/gmod/steamworks.Subscribe
|
|
162
120
|
*/
|
|
163
121
|
Subscribe(workshopItemID: string): void;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
interface SteamworksLib {
|
|
167
122
|
/**
|
|
168
123
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
169
124
|
* Unsubscribes to the specified workshop addon. Call [steamworks.ApplyAddons](https://wiki.facepunch.com/gmod/steamworks.ApplyAddons) afterwards to update.
|
|
@@ -174,18 +129,12 @@ interface SteamworksLib {
|
|
|
174
129
|
* @source https://wiki.facepunch.com/gmod/steamworks.Unsubscribe
|
|
175
130
|
*/
|
|
176
131
|
Unsubscribe(workshopItemID: string): void;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
interface SteamworksLib {
|
|
180
132
|
/**
|
|
181
133
|
* Opens the workshop website for specified Steam Workshop item in the Steam overlay browser.
|
|
182
134
|
* @realm client and menu
|
|
183
135
|
* @source https://wiki.facepunch.com/gmod/steamworks.ViewFile
|
|
184
136
|
*/
|
|
185
137
|
ViewFile(workshopItemID: string): void;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
interface SteamworksLib {
|
|
189
138
|
/**
|
|
190
139
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
191
140
|
* Makes the user vote for the specified addon
|
|
@@ -193,9 +142,6 @@ interface SteamworksLib {
|
|
|
193
142
|
* @source https://wiki.facepunch.com/gmod/steamworks.Vote
|
|
194
143
|
*/
|
|
195
144
|
Vote(workshopItemID: string, upOrDown: boolean): void;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
interface SteamworksLib {
|
|
199
145
|
/**
|
|
200
146
|
* Retrieves vote info of supplied addon.
|
|
201
147
|
*
|
|
@@ -206,3 +152,21 @@ interface SteamworksLib {
|
|
|
206
152
|
VoteInfo(workshopItemID: string, resultCallback: (data: table) => void): void;
|
|
207
153
|
}
|
|
208
154
|
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|