@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
package/types/resource.d.tlua
CHANGED
|
@@ -27,9 +27,6 @@ interface ResourceLib {
|
|
|
27
27
|
* @source https://wiki.facepunch.com/gmod/resource.AddFile
|
|
28
28
|
*/
|
|
29
29
|
AddFile(path: string): void;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface ResourceLib {
|
|
33
30
|
/**
|
|
34
31
|
* Adds the specified file to the files the client should download from the server.
|
|
35
32
|
*
|
|
@@ -47,9 +44,6 @@ interface ResourceLib {
|
|
|
47
44
|
* @source https://wiki.facepunch.com/gmod/resource.AddSingleFile
|
|
48
45
|
*/
|
|
49
46
|
AddSingleFile(path: string): void;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
interface ResourceLib {
|
|
53
47
|
/**
|
|
54
48
|
* Adds a workshop addon for the client to download before entering the server. This will not "install" the addon on your server, see [Workshop for Dedicated Servers](https://wiki.facepunch.com/gmod/Workshop_for_Dedicated_Servers) for installing Steam Workshop addons onto your servers.
|
|
55
49
|
*
|
|
@@ -71,3 +65,5 @@ interface ResourceLib {
|
|
|
71
65
|
AddWorkshop(workshopid: string): void;
|
|
72
66
|
}
|
|
73
67
|
|
|
68
|
+
|
|
69
|
+
|
package/types/sandbox.d.tlua
CHANGED
|
@@ -17,9 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @source https://wiki.facepunch.com/gmod/SANDBOX_Hooks
|
|
19
19
|
*/
|
|
20
|
-
interface SANDBOX extends GM {
|
|
21
|
-
|
|
22
|
-
interface SANDBOX {
|
|
20
|
+
interface SANDBOX extends GM {
|
|
23
21
|
/**
|
|
24
22
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
25
23
|
*
|
|
@@ -32,9 +30,6 @@ interface SANDBOX {
|
|
|
32
30
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:AddGamemodeToolMenuCategories
|
|
33
31
|
*/
|
|
34
32
|
AddGamemodeToolMenuCategories(self: SANDBOX): void;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface SANDBOX {
|
|
38
33
|
/**
|
|
39
34
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
40
35
|
*
|
|
@@ -47,63 +42,42 @@ interface SANDBOX {
|
|
|
47
42
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:AddGamemodeToolMenuTabs
|
|
48
43
|
*/
|
|
49
44
|
AddGamemodeToolMenuTabs(self: SANDBOX): void;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
interface SANDBOX {
|
|
53
45
|
/**
|
|
54
46
|
* This hook is used to add new categories to spawnmenu tool tabs.
|
|
55
47
|
* @realm client
|
|
56
48
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:AddToolMenuCategories
|
|
57
49
|
*/
|
|
58
50
|
AddToolMenuCategories(self: SANDBOX): void;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
interface SANDBOX {
|
|
62
51
|
/**
|
|
63
52
|
* This hook is used to add new tool tabs to spawnmenu.
|
|
64
53
|
* @realm client
|
|
65
54
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:AddToolMenuTabs
|
|
66
55
|
*/
|
|
67
56
|
AddToolMenuTabs(self: SANDBOX): void;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
interface SANDBOX {
|
|
71
57
|
/**
|
|
72
58
|
* Called when a player attempts to "arm" a duplication with the Duplicator tool. Return false to prevent the player from sending data to server, and to ignore data if it was somehow sent anyway.
|
|
73
59
|
* @realm shared
|
|
74
60
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:CanArmDupe
|
|
75
61
|
*/
|
|
76
62
|
CanArmDupe(self: SANDBOX, ply: Player): (boolean, string);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
interface SANDBOX {
|
|
80
63
|
/**
|
|
81
64
|
* Called when a player attempts to drive a prop via Prop Drive
|
|
82
65
|
* @realm shared
|
|
83
66
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:CanDrive
|
|
84
67
|
*/
|
|
85
68
|
CanDrive(self: SANDBOX, ply: Player, ent: Entity): boolean;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
interface SANDBOX {
|
|
89
69
|
/**
|
|
90
70
|
* Called when a player attempts to fire their tool gun. Return true to specifically allow the attempt, false to block it.
|
|
91
71
|
* @realm shared
|
|
92
72
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:CanTool
|
|
93
73
|
*/
|
|
94
74
|
CanTool(self: SANDBOX, ply: Player, tr: TraceResult, toolname: string, tool: table, button: number): boolean;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
interface SANDBOX {
|
|
98
75
|
/**
|
|
99
76
|
* Called when player selects an item on the spawnmenu sidebar at the left.
|
|
100
77
|
* @realm client
|
|
101
78
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:ContentSidebarSelection
|
|
102
79
|
*/
|
|
103
80
|
ContentSidebarSelection(self: SANDBOX, parent: Panel, node: Panel): void;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
interface SANDBOX {
|
|
107
81
|
/**
|
|
108
82
|
* Called when the context menu is supposedly closed.
|
|
109
83
|
*
|
|
@@ -116,18 +90,12 @@ interface SANDBOX {
|
|
|
116
90
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuClosed
|
|
117
91
|
*/
|
|
118
92
|
ContextMenuClosed(self: SANDBOX): void;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
interface SANDBOX {
|
|
122
93
|
/**
|
|
123
94
|
* Called when the context menu is created.
|
|
124
95
|
* @realm client
|
|
125
96
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuCreated
|
|
126
97
|
*/
|
|
127
98
|
ContextMenuCreated(self: SANDBOX, g_ContextMenu: Panel): void;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
interface SANDBOX {
|
|
131
99
|
/**
|
|
132
100
|
* Allows to prevent the creation of the context menu. If the context menu is already created, this will have no effect.
|
|
133
101
|
*
|
|
@@ -135,18 +103,12 @@ interface SANDBOX {
|
|
|
135
103
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuEnabled
|
|
136
104
|
*/
|
|
137
105
|
ContextMenuEnabled(self: SANDBOX): boolean;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
interface SANDBOX {
|
|
141
106
|
/**
|
|
142
107
|
* Called when the context menu is trying to be opened.
|
|
143
108
|
* @realm client
|
|
144
109
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuOpen
|
|
145
110
|
*/
|
|
146
111
|
ContextMenuOpen(self: SANDBOX): boolean;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
interface SANDBOX {
|
|
150
112
|
/**
|
|
151
113
|
* Called when the context menu is supposedly opened.
|
|
152
114
|
*
|
|
@@ -159,36 +121,24 @@ interface SANDBOX {
|
|
|
159
121
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuOpened
|
|
160
122
|
*/
|
|
161
123
|
ContextMenuOpened(self: SANDBOX): void;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
interface SANDBOX {
|
|
165
124
|
/**
|
|
166
125
|
* Called to poll if active tool settings should appear in the context menu. Please note that this is only called on initial opening of the context menu, not every frame the context menu is in use.
|
|
167
126
|
* @realm client
|
|
168
127
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuShowTool
|
|
169
128
|
*/
|
|
170
129
|
ContextMenuShowTool(self: SANDBOX): boolean;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
interface SANDBOX {
|
|
174
130
|
/**
|
|
175
131
|
* Called when the Client reverts spawnlist changes
|
|
176
132
|
* @realm client
|
|
177
133
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:OnRevertSpawnlist
|
|
178
134
|
*/
|
|
179
135
|
OnRevertSpawnlist(self: SANDBOX): void;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
interface SANDBOX {
|
|
183
136
|
/**
|
|
184
137
|
* Called when a player saves his changes made to the spawnmenu
|
|
185
138
|
* @realm client
|
|
186
139
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:OnSaveSpawnlist
|
|
187
140
|
*/
|
|
188
141
|
OnSaveSpawnlist(self: SANDBOX): void;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
interface SANDBOX {
|
|
192
142
|
/**
|
|
193
143
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
194
144
|
*
|
|
@@ -198,9 +148,6 @@ interface SANDBOX {
|
|
|
198
148
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:OpenToolbox
|
|
199
149
|
*/
|
|
200
150
|
OpenToolbox(self: SANDBOX): void;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
interface SANDBOX {
|
|
204
151
|
/**
|
|
205
152
|
* Called from [GM:HUDPaint](https://wiki.facepunch.com/gmod/GM:HUDPaint); does nothing by default.
|
|
206
153
|
*
|
|
@@ -211,9 +158,6 @@ interface SANDBOX {
|
|
|
211
158
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PaintNotes
|
|
212
159
|
*/
|
|
213
160
|
PaintNotes(self: SANDBOX): void;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
interface SANDBOX {
|
|
217
161
|
/**
|
|
218
162
|
* Called from [GM:HUDPaint](https://wiki.facepunch.com/gmod/GM:HUDPaint) to draw world tips. By default, enabling cl_drawworldtooltips will stop world tips from being drawn here.
|
|
219
163
|
* See [Global.AddWorldTip](https://wiki.facepunch.com/gmod/Global.AddWorldTip) for more information.
|
|
@@ -225,27 +169,18 @@ interface SANDBOX {
|
|
|
225
169
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PaintWorldTips
|
|
226
170
|
*/
|
|
227
171
|
PaintWorldTips(self: SANDBOX): void;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
interface SANDBOX {
|
|
231
172
|
/**
|
|
232
173
|
* Called when persistent props are loaded.
|
|
233
174
|
* @realm server
|
|
234
175
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PersistenceLoad
|
|
235
176
|
*/
|
|
236
177
|
PersistenceLoad(self: SANDBOX, name: string): void;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
interface SANDBOX {
|
|
240
178
|
/**
|
|
241
179
|
* Called when persistent props are saved.
|
|
242
180
|
* @realm server
|
|
243
181
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PersistenceSave
|
|
244
182
|
*/
|
|
245
183
|
PersistenceSave(self: SANDBOX, name: string): void;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
interface SANDBOX {
|
|
249
184
|
/**
|
|
250
185
|
* Called when a player attempts to give themselves a weapon from the Q menu. (Left mouse clicks on an icon)
|
|
251
186
|
*
|
|
@@ -255,63 +190,42 @@ interface SANDBOX {
|
|
|
255
190
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerGiveSWEP
|
|
256
191
|
*/
|
|
257
192
|
PlayerGiveSWEP(self: SANDBOX, ply: Player, weapon: string, spawninfo: table): boolean;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
interface SANDBOX {
|
|
261
193
|
/**
|
|
262
194
|
* Called to ask if player allowed to spawn a particular effect or not.
|
|
263
195
|
* @realm server
|
|
264
196
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnEffect
|
|
265
197
|
*/
|
|
266
198
|
PlayerSpawnEffect(self: SANDBOX, ply: Player, model: string): boolean;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
interface SANDBOX {
|
|
270
199
|
/**
|
|
271
200
|
* Called to ask if player allowed to spawn a particular NPC or not.
|
|
272
201
|
* @realm server
|
|
273
202
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnNPC
|
|
274
203
|
*/
|
|
275
204
|
PlayerSpawnNPC(self: SANDBOX, ply: Player, npc_type: string, weapon: string): boolean;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
interface SANDBOX {
|
|
279
205
|
/**
|
|
280
206
|
* Called to ask whether player is allowed to spawn a given model. This includes props, effects, and ragdolls and is called before the respective PlayerSpawn* hook.
|
|
281
207
|
* @realm server
|
|
282
208
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnObject
|
|
283
209
|
*/
|
|
284
210
|
PlayerSpawnObject(self: SANDBOX, ply: Player, model: string, skin: number): boolean;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
interface SANDBOX {
|
|
288
211
|
/**
|
|
289
212
|
* Called when a player attempts to spawn a prop from the Q menu.
|
|
290
213
|
* @realm server
|
|
291
214
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnProp
|
|
292
215
|
*/
|
|
293
216
|
PlayerSpawnProp(self: SANDBOX, ply: Player, model: string): boolean;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
interface SANDBOX {
|
|
297
217
|
/**
|
|
298
218
|
* Called when a player attempts to spawn a ragdoll from the Q menu.
|
|
299
219
|
* @realm server
|
|
300
220
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnRagdoll
|
|
301
221
|
*/
|
|
302
222
|
PlayerSpawnRagdoll(self: SANDBOX, ply: Player, model: string): boolean;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
interface SANDBOX {
|
|
306
223
|
/**
|
|
307
224
|
* Called when a player attempts to spawn an Entity from the Q menu.
|
|
308
225
|
* @realm server
|
|
309
226
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnSENT
|
|
310
227
|
*/
|
|
311
228
|
PlayerSpawnSENT(self: SANDBOX, ply: Player, _class: string): boolean;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
interface SANDBOX {
|
|
315
229
|
/**
|
|
316
230
|
* Called when a player attempts to spawn a weapon from the spawnmenu as an entity on the ground, by middle mouse clicking (mouse wheel clicking) on a weapon icon.
|
|
317
231
|
*
|
|
@@ -323,63 +237,42 @@ interface SANDBOX {
|
|
|
323
237
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnSWEP
|
|
324
238
|
*/
|
|
325
239
|
PlayerSpawnSWEP(self: SANDBOX, ply: Player, weapon: string, swep: SWEP): boolean;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
interface SANDBOX {
|
|
329
240
|
/**
|
|
330
241
|
* Called to ask if player allowed to spawn a particular vehicle or not.
|
|
331
242
|
* @realm server
|
|
332
243
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnVehicle
|
|
333
244
|
*/
|
|
334
245
|
PlayerSpawnVehicle(self: SANDBOX, ply: Player, model: string, name: string, table: VehicleTable): boolean;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
interface SANDBOX {
|
|
338
246
|
/**
|
|
339
247
|
* Called after the player spawned an effect.
|
|
340
248
|
* @realm server
|
|
341
249
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedEffect
|
|
342
250
|
*/
|
|
343
251
|
PlayerSpawnedEffect(self: SANDBOX, ply: Player, model: string, ent: Entity): void;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
interface SANDBOX {
|
|
347
252
|
/**
|
|
348
253
|
* Called after the player spawned an NPC.
|
|
349
254
|
* @realm server
|
|
350
255
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedNPC
|
|
351
256
|
*/
|
|
352
257
|
PlayerSpawnedNPC(self: SANDBOX, ply: Player, ent: Entity): void;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
interface SANDBOX {
|
|
356
258
|
/**
|
|
357
259
|
* Called when a player has successfully spawned a prop from the Q menu.
|
|
358
260
|
* @realm server
|
|
359
261
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedProp
|
|
360
262
|
*/
|
|
361
263
|
PlayerSpawnedProp(self: SANDBOX, ply: Player, model: string, entity: Entity): void;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
interface SANDBOX {
|
|
365
264
|
/**
|
|
366
265
|
* Called after the player spawned a ragdoll.
|
|
367
266
|
* @realm server
|
|
368
267
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedRagdoll
|
|
369
268
|
*/
|
|
370
269
|
PlayerSpawnedRagdoll(self: SANDBOX, ply: Player, model: string, ent: Entity): void;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
interface SANDBOX {
|
|
374
270
|
/**
|
|
375
271
|
* Called after the player has spawned a scripted entity.
|
|
376
272
|
* @realm server
|
|
377
273
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedSENT
|
|
378
274
|
*/
|
|
379
275
|
PlayerSpawnedSENT(self: SANDBOX, ply: Player, ent: Entity): void;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
interface SANDBOX {
|
|
383
276
|
/**
|
|
384
277
|
* Called after the player has spawned a weapon from the spawnmenu with a middle mouse click (mouse wheel click).
|
|
385
278
|
*
|
|
@@ -390,18 +283,12 @@ interface SANDBOX {
|
|
|
390
283
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedSWEP
|
|
391
284
|
*/
|
|
392
285
|
PlayerSpawnedSWEP(self: SANDBOX, ply: Player, ent: Entity): void;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
interface SANDBOX {
|
|
396
286
|
/**
|
|
397
287
|
* Called after the player spawned a vehicle.
|
|
398
288
|
* @realm server
|
|
399
289
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedVehicle
|
|
400
290
|
*/
|
|
401
291
|
PlayerSpawnedVehicle(self: SANDBOX, ply: Player, ent: Entity): void;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
interface SANDBOX {
|
|
405
292
|
/**
|
|
406
293
|
* Called by the spawnmenu when the content tab is generated
|
|
407
294
|
* **WARNING**: Creating an error in this Hook will result in a completely broken Content Tab
|
|
@@ -410,9 +297,6 @@ interface SANDBOX {
|
|
|
410
297
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateContent
|
|
411
298
|
*/
|
|
412
299
|
PopulateContent(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
interface SANDBOX {
|
|
416
300
|
/**
|
|
417
301
|
* Called by the spawnmenu when the Entities tab is generated
|
|
418
302
|
* **WARNING**: Creating an error in this Hook will result in a completely broken Entites Tab
|
|
@@ -421,9 +305,6 @@ interface SANDBOX {
|
|
|
421
305
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateEntities
|
|
422
306
|
*/
|
|
423
307
|
PopulateEntities(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
interface SANDBOX {
|
|
427
308
|
/**
|
|
428
309
|
* Called by the spawnmenu when the NPCs tab is generated
|
|
429
310
|
* **WARNING**: Creating an error in this Hook will result in a completely broken NPCs Tab
|
|
@@ -432,9 +313,6 @@ interface SANDBOX {
|
|
|
432
313
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateNPCs
|
|
433
314
|
*/
|
|
434
315
|
PopulateNPCs(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
interface SANDBOX {
|
|
438
316
|
/**
|
|
439
317
|
* This hook makes the engine load the spawnlist text files.
|
|
440
318
|
* It calls [spawnmenu.PopulateFromEngineTextFiles](https://wiki.facepunch.com/gmod/spawnmenu.PopulateFromEngineTextFiles) by default.
|
|
@@ -443,18 +321,12 @@ interface SANDBOX {
|
|
|
443
321
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PopulatePropMenu
|
|
444
322
|
*/
|
|
445
323
|
PopulatePropMenu(self: SANDBOX): void;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
interface SANDBOX {
|
|
449
324
|
/**
|
|
450
325
|
* Add the [Scripted TOOLs](https://wiki.facepunch.com/gmod/TOOL) to the tool menu. You want to call [spawnmenu.AddToolMenuOption](https://wiki.facepunch.com/gmod/spawnmenu.AddToolMenuOption) in this hook.
|
|
451
326
|
* @realm client
|
|
452
327
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateToolMenu
|
|
453
328
|
*/
|
|
454
329
|
PopulateToolMenu(self: SANDBOX): void;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
interface SANDBOX {
|
|
458
330
|
/**
|
|
459
331
|
* Called by the spawnmenu when the Vehicles tab is generated
|
|
460
332
|
* **WARNING**: Creating an error in this Hook will result in a completely broken vehicles Tab
|
|
@@ -463,9 +335,6 @@ interface SANDBOX {
|
|
|
463
335
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateVehicles
|
|
464
336
|
*/
|
|
465
337
|
PopulateVehicles(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
interface SANDBOX {
|
|
469
338
|
/**
|
|
470
339
|
* Called by the spawnmenu when the Weapons tab is generated
|
|
471
340
|
* **WARNING**: Creating an error in this Hook will result in a completely broken Weapons Tab
|
|
@@ -474,45 +343,30 @@ interface SANDBOX {
|
|
|
474
343
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateWeapons
|
|
475
344
|
*/
|
|
476
345
|
PopulateWeapons(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
interface SANDBOX {
|
|
480
346
|
/**
|
|
481
347
|
* Called right after the Lua Loaded tool menus are reloaded. This is a good place to set up any [ControlPanel](https://wiki.facepunch.com/gmod/ControlPanel)s.
|
|
482
348
|
* @realm client
|
|
483
349
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PostReloadToolsMenu
|
|
484
350
|
*/
|
|
485
351
|
PostReloadToolsMenu(self: SANDBOX): void;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
interface SANDBOX {
|
|
489
352
|
/**
|
|
490
353
|
* Called just before registering a Sandbox scripted tool.
|
|
491
354
|
* @realm shared
|
|
492
355
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PreRegisterTOOL
|
|
493
356
|
*/
|
|
494
357
|
PreRegisterTOOL(self: SANDBOX, tool: TOOL, _class: string): boolean;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
interface SANDBOX {
|
|
498
358
|
/**
|
|
499
359
|
* Called right before the Lua Loaded tool menus are reloaded.
|
|
500
360
|
* @realm client
|
|
501
361
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:PreReloadToolsMenu
|
|
502
362
|
*/
|
|
503
363
|
PreReloadToolsMenu(self: SANDBOX): void;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
interface SANDBOX {
|
|
507
364
|
/**
|
|
508
365
|
* If false is returned then the spawn menu is never created. This saves load times if your mod doesn't actually use the spawn menu for any reason.
|
|
509
366
|
* @realm client
|
|
510
367
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnMenuEnabled
|
|
511
368
|
*/
|
|
512
369
|
SpawnMenuEnabled(self: SANDBOX): boolean;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
interface SANDBOX {
|
|
516
370
|
/**
|
|
517
371
|
* Called when spawnmenu is trying to be opened.
|
|
518
372
|
*
|
|
@@ -523,9 +377,6 @@ interface SANDBOX {
|
|
|
523
377
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnMenuOpen
|
|
524
378
|
*/
|
|
525
379
|
SpawnMenuOpen(self: SANDBOX): boolean;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
interface SANDBOX {
|
|
529
380
|
/**
|
|
530
381
|
* Called when the spawnmenu is opened.
|
|
531
382
|
*
|
|
@@ -538,18 +389,12 @@ interface SANDBOX {
|
|
|
538
389
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnMenuOpened
|
|
539
390
|
*/
|
|
540
391
|
SpawnMenuOpened(self: SANDBOX): void;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
interface SANDBOX {
|
|
544
392
|
/**
|
|
545
393
|
* Called when changes were made to the spawnmenu like creating a new category.
|
|
546
394
|
* @realm client
|
|
547
395
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnlistContentChanged
|
|
548
396
|
*/
|
|
549
397
|
SpawnlistContentChanged(self: SANDBOX): void;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
interface SANDBOX {
|
|
553
398
|
/**
|
|
554
399
|
* **INTERNAL**: Use [SANDBOX:SpawnmenuIconMenuOpen](https://wiki.facepunch.com/gmod/SANDBOX:SpawnmenuIconMenuOpen) if you wish to add new options to spawnmenu icon right click menus.
|
|
555
400
|
*
|
|
@@ -560,9 +405,6 @@ interface SANDBOX {
|
|
|
560
405
|
* @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnlistOpenGenericMenu
|
|
561
406
|
*/
|
|
562
407
|
SpawnlistOpenGenericMenu(self: SANDBOX, canvas: Panel): void;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
interface SANDBOX {
|
|
566
408
|
/**
|
|
567
409
|
* Called when the player opens a context menu by right clicking one of the spawnmenu icons. Either [ContentIcon](https://wiki.facepunch.com/gmod/ContentIcon) or [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon).
|
|
568
410
|
*
|
|
@@ -574,3 +416,56 @@ interface SANDBOX {
|
|
|
574
416
|
SpawnmenuIconMenuOpen(self: SANDBOX, menu: Panel, icon: Panel, contentType: string): void;
|
|
575
417
|
}
|
|
576
418
|
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
package/types/saverestore.d.tlua
CHANGED
|
@@ -13,27 +13,18 @@ interface SaverestoreLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/saverestore.AddRestoreHook
|
|
14
14
|
*/
|
|
15
15
|
AddRestoreHook(identifier: string, callback: (save: IRestore) => void): void;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface SaverestoreLib {
|
|
19
16
|
/**
|
|
20
17
|
* Adds a save hook for the Half-Life 2 save system. You can use this to carry data through level transitions in Half-Life 2.
|
|
21
18
|
* @realm shared
|
|
22
19
|
* @source https://wiki.facepunch.com/gmod/saverestore.AddSaveHook
|
|
23
20
|
*/
|
|
24
21
|
AddSaveHook(identifier: string, callback: (save: ISave) => void): void;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface SaverestoreLib {
|
|
28
22
|
/**
|
|
29
23
|
* Loads [Entity:GetTable](https://wiki.facepunch.com/gmod/Entity:GetTable) from the save game file that is being loaded and merges it with the given entitys [Entity:GetTable](https://wiki.facepunch.com/gmod/Entity:GetTable).
|
|
30
24
|
* @realm shared
|
|
31
25
|
* @source https://wiki.facepunch.com/gmod/saverestore.LoadEntity
|
|
32
26
|
*/
|
|
33
27
|
LoadEntity(ent: Entity, save: IRestore): void;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface SaverestoreLib {
|
|
37
28
|
/**
|
|
38
29
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
39
30
|
*
|
|
@@ -46,9 +37,6 @@ interface SaverestoreLib {
|
|
|
46
37
|
* @source https://wiki.facepunch.com/gmod/saverestore.LoadGlobal
|
|
47
38
|
*/
|
|
48
39
|
LoadGlobal(save: IRestore): void;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
interface SaverestoreLib {
|
|
52
40
|
/**
|
|
53
41
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
54
42
|
*
|
|
@@ -59,9 +47,6 @@ interface SaverestoreLib {
|
|
|
59
47
|
* @source https://wiki.facepunch.com/gmod/saverestore.PreRestore
|
|
60
48
|
*/
|
|
61
49
|
PreRestore(): void;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
interface SaverestoreLib {
|
|
65
50
|
/**
|
|
66
51
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
67
52
|
*
|
|
@@ -72,18 +57,12 @@ interface SaverestoreLib {
|
|
|
72
57
|
* @source https://wiki.facepunch.com/gmod/saverestore.PreSave
|
|
73
58
|
*/
|
|
74
59
|
PreSave(): void;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
interface SaverestoreLib {
|
|
78
60
|
/**
|
|
79
61
|
* Reads a table from the save game file that is being loaded.
|
|
80
62
|
* @realm shared
|
|
81
63
|
* @source https://wiki.facepunch.com/gmod/saverestore.ReadTable
|
|
82
64
|
*/
|
|
83
65
|
ReadTable(save: IRestore): table;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
interface SaverestoreLib {
|
|
87
66
|
/**
|
|
88
67
|
* Loads a variable from the save game file that is being loaded.
|
|
89
68
|
*
|
|
@@ -93,18 +72,12 @@ interface SaverestoreLib {
|
|
|
93
72
|
* @source https://wiki.facepunch.com/gmod/saverestore.ReadVar
|
|
94
73
|
*/
|
|
95
74
|
ReadVar(save: IRestore): any;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
interface SaverestoreLib {
|
|
99
75
|
/**
|
|
100
76
|
* Saves entitys [Entity:GetTable](https://wiki.facepunch.com/gmod/Entity:GetTable) to the save game file that is being saved.
|
|
101
77
|
* @realm shared
|
|
102
78
|
* @source https://wiki.facepunch.com/gmod/saverestore.SaveEntity
|
|
103
79
|
*/
|
|
104
80
|
SaveEntity(ent: Entity, save: ISave): void;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
interface SaverestoreLib {
|
|
108
81
|
/**
|
|
109
82
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
110
83
|
*
|
|
@@ -117,27 +90,18 @@ interface SaverestoreLib {
|
|
|
117
90
|
* @source https://wiki.facepunch.com/gmod/saverestore.SaveGlobal
|
|
118
91
|
*/
|
|
119
92
|
SaveGlobal(save: ISave): void;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
interface SaverestoreLib {
|
|
123
93
|
/**
|
|
124
94
|
* Returns how many writable keys are in the given table.
|
|
125
95
|
* @realm shared
|
|
126
96
|
* @source https://wiki.facepunch.com/gmod/saverestore.WritableKeysInTable
|
|
127
97
|
*/
|
|
128
98
|
WritableKeysInTable(table: table): number;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
interface SaverestoreLib {
|
|
132
99
|
/**
|
|
133
100
|
* Write a table to a save game file that is being saved.
|
|
134
101
|
* @realm shared
|
|
135
102
|
* @source https://wiki.facepunch.com/gmod/saverestore.WriteTable
|
|
136
103
|
*/
|
|
137
104
|
WriteTable(table: table, save: ISave): void;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
interface SaverestoreLib {
|
|
141
105
|
/**
|
|
142
106
|
* Writes a variable to the save game file that is being saved.
|
|
143
107
|
* @realm shared
|
|
@@ -146,3 +110,15 @@ interface SaverestoreLib {
|
|
|
146
110
|
WriteVar(value: any, save: ISave): void;
|
|
147
111
|
}
|
|
148
112
|
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|