@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/convar.d.tlua
CHANGED
|
@@ -13,66 +13,77 @@ interface ConVar {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetBool
|
|
14
14
|
*/
|
|
15
15
|
GetBool(self: ConVar): boolean;
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Returns the default value of the [ConVar](https://wiki.facepunch.com/gmod/ConVar)
|
|
18
19
|
* @realm shared and menu
|
|
19
20
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetDefault
|
|
20
21
|
*/
|
|
21
22
|
GetDefault(self: ConVar): string;
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* Returns the [Enums/FCVAR](https://wiki.facepunch.com/gmod/Enums/FCVAR) flags of the ConVar
|
|
24
26
|
* @realm shared and menu
|
|
25
27
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetFlags
|
|
26
28
|
*/
|
|
27
29
|
GetFlags(self: ConVar): number;
|
|
30
|
+
|
|
28
31
|
/**
|
|
29
32
|
* Attempts to convert the [ConVar](https://wiki.facepunch.com/gmod/ConVar) value to a float
|
|
30
33
|
* @realm shared and menu
|
|
31
34
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetFloat
|
|
32
35
|
*/
|
|
33
36
|
GetFloat(self: ConVar): number;
|
|
37
|
+
|
|
34
38
|
/**
|
|
35
39
|
* Returns the help text assigned to that convar.
|
|
36
40
|
* @realm shared and menu
|
|
37
41
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetHelpText
|
|
38
42
|
*/
|
|
39
43
|
GetHelpText(self: ConVar): string;
|
|
44
|
+
|
|
40
45
|
/**
|
|
41
46
|
* Attempts to convert the [ConVar](https://wiki.facepunch.com/gmod/ConVar) value to a integer.
|
|
42
47
|
* @realm shared and menu
|
|
43
48
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetInt
|
|
44
49
|
*/
|
|
45
50
|
GetInt(self: ConVar): number;
|
|
51
|
+
|
|
46
52
|
/**
|
|
47
53
|
* Returns the maximum value of the [ConVar](https://wiki.facepunch.com/gmod/ConVar)
|
|
48
54
|
* @realm shared and menu
|
|
49
55
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetMax
|
|
50
56
|
*/
|
|
51
57
|
GetMax(self: ConVar): number;
|
|
58
|
+
|
|
52
59
|
/**
|
|
53
60
|
* Returns the minimum value of the [ConVar](https://wiki.facepunch.com/gmod/ConVar)
|
|
54
61
|
* @realm shared and menu
|
|
55
62
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetMin
|
|
56
63
|
*/
|
|
57
64
|
GetMin(self: ConVar): number;
|
|
65
|
+
|
|
58
66
|
/**
|
|
59
67
|
* Returns the name of the [ConVar](https://wiki.facepunch.com/gmod/ConVar).
|
|
60
68
|
* @realm shared and menu
|
|
61
69
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetName
|
|
62
70
|
*/
|
|
63
71
|
GetName(self: ConVar): string;
|
|
72
|
+
|
|
64
73
|
/**
|
|
65
74
|
* Returns the current [ConVar](https://wiki.facepunch.com/gmod/ConVar) value as a string.
|
|
66
75
|
* @realm shared and menu
|
|
67
76
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetString
|
|
68
77
|
*/
|
|
69
78
|
GetString(self: ConVar): string;
|
|
79
|
+
|
|
70
80
|
/**
|
|
71
81
|
* Returns whether the specified flag is set on the [ConVar](https://wiki.facepunch.com/gmod/ConVar)
|
|
72
82
|
* @realm shared and menu
|
|
73
83
|
* @source https://wiki.facepunch.com/gmod/ConVar:IsFlagSet
|
|
74
84
|
*/
|
|
75
85
|
IsFlagSet(self: ConVar, flag: number): boolean;
|
|
86
|
+
|
|
76
87
|
/**
|
|
77
88
|
* Reverts [ConVar](https://wiki.facepunch.com/gmod/ConVar) to its default value
|
|
78
89
|
*
|
|
@@ -82,12 +93,14 @@ interface ConVar {
|
|
|
82
93
|
* @source https://wiki.facepunch.com/gmod/ConVar:Revert
|
|
83
94
|
*/
|
|
84
95
|
Revert(self: ConVar): void;
|
|
96
|
+
|
|
85
97
|
/**
|
|
86
98
|
* Sets a ConVar's value to 1 or 0 based on the input boolean. This can only be ran on ConVars created from within Lua.
|
|
87
99
|
* @realm shared and menu
|
|
88
100
|
* @source https://wiki.facepunch.com/gmod/ConVar:SetBool
|
|
89
101
|
*/
|
|
90
102
|
SetBool(self: ConVar, value: boolean): void;
|
|
103
|
+
|
|
91
104
|
/**
|
|
92
105
|
* Sets a ConVar's value to the input number.
|
|
93
106
|
* **NOTE**: This can only be ran on ConVars created from within Lua.
|
|
@@ -96,6 +109,7 @@ interface ConVar {
|
|
|
96
109
|
* @source https://wiki.facepunch.com/gmod/ConVar:SetFloat
|
|
97
110
|
*/
|
|
98
111
|
SetFloat(self: ConVar, value: number): void;
|
|
112
|
+
|
|
99
113
|
/**
|
|
100
114
|
* Sets a ConVar's value to the input number after converting it to an integer.
|
|
101
115
|
*
|
|
@@ -105,6 +119,7 @@ interface ConVar {
|
|
|
105
119
|
* @source https://wiki.facepunch.com/gmod/ConVar:SetInt
|
|
106
120
|
*/
|
|
107
121
|
SetInt(self: ConVar, value: number): void;
|
|
122
|
+
|
|
108
123
|
/**
|
|
109
124
|
* Sets a ConVar's value to the input string. This can only be ran on ConVars created from within Lua.
|
|
110
125
|
* @realm shared and menu
|
|
@@ -112,20 +127,3 @@ interface ConVar {
|
|
|
112
127
|
*/
|
|
113
128
|
SetString(self: ConVar, value: string): void;
|
|
114
129
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
package/types/cookie.d.tlua
CHANGED
|
@@ -27,18 +27,21 @@ interface CookieLib {
|
|
|
27
27
|
* @source https://wiki.facepunch.com/gmod/cookie.Delete
|
|
28
28
|
*/
|
|
29
29
|
Delete(key: string): void;
|
|
30
|
+
|
|
30
31
|
/**
|
|
31
32
|
* Gets the value of a cookie on the client as a number.
|
|
32
33
|
* @realm shared and menu
|
|
33
34
|
* @source https://wiki.facepunch.com/gmod/cookie.GetNumber
|
|
34
35
|
*/
|
|
35
36
|
GetNumber(name: string, _default?: any): number;
|
|
37
|
+
|
|
36
38
|
/**
|
|
37
39
|
* Gets the value of a cookie on the client as a string.
|
|
38
40
|
* @realm shared and menu
|
|
39
41
|
* @source https://wiki.facepunch.com/gmod/cookie.GetString
|
|
40
42
|
*/
|
|
41
43
|
GetString(name: string, _default?: any): string;
|
|
44
|
+
|
|
42
45
|
/**
|
|
43
46
|
* Creates / updates a cookie in the [Database](https://wiki.facepunch.com/gmod/cookie).
|
|
44
47
|
*
|
|
@@ -48,7 +51,3 @@ interface CookieLib {
|
|
|
48
51
|
*/
|
|
49
52
|
Set(key: string, value: string): void;
|
|
50
53
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
package/types/coroutine.d.tlua
CHANGED
|
@@ -11,6 +11,7 @@ interface CoroutineLib {
|
|
|
11
11
|
* @source https://wiki.facepunch.com/gmod/coroutine.create
|
|
12
12
|
*/
|
|
13
13
|
create(func: function): thread;
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Returns whether the running coroutine can yield.
|
|
16
17
|
* A running coroutine is yieldable if it is not in the main thread, and it is not inside a non-yieldable C function.
|
|
@@ -21,24 +22,28 @@ interface CoroutineLib {
|
|
|
21
22
|
* @source https://wiki.facepunch.com/gmod/coroutine.isyieldable
|
|
22
23
|
*/
|
|
23
24
|
isyieldable(): boolean;
|
|
25
|
+
|
|
24
26
|
/**
|
|
25
27
|
* Resumes the given coroutine and passes the given vararg to either the function arguments or the [coroutine.yield](https://wiki.facepunch.com/gmod/coroutine.yield) that is inside that function and returns whatever yield is called with the next time or by the final return in the function.
|
|
26
28
|
* @realm shared and menu
|
|
27
29
|
* @source https://wiki.facepunch.com/gmod/coroutine.resume
|
|
28
30
|
*/
|
|
29
31
|
resume(coroutine: thread, ...: any): (boolean, ...any);
|
|
32
|
+
|
|
30
33
|
/**
|
|
31
34
|
* Returns the active coroutine or nil if we are not within a coroutine.
|
|
32
35
|
* @realm shared and menu
|
|
33
36
|
* @source https://wiki.facepunch.com/gmod/coroutine.running
|
|
34
37
|
*/
|
|
35
38
|
running(): thread;
|
|
39
|
+
|
|
36
40
|
/**
|
|
37
41
|
* Returns the status of the coroutine passed to it, the possible statuses are "suspended", "running", and "dead".
|
|
38
42
|
* @realm shared and menu
|
|
39
43
|
* @source https://wiki.facepunch.com/gmod/coroutine.status
|
|
40
44
|
*/
|
|
41
45
|
status(coroutine: thread): string;
|
|
46
|
+
|
|
42
47
|
/**
|
|
43
48
|
* Repeatedly yields the coroutine for the given duration before continuing.
|
|
44
49
|
*
|
|
@@ -50,6 +55,7 @@ interface CoroutineLib {
|
|
|
50
55
|
* @source https://wiki.facepunch.com/gmod/coroutine.wait
|
|
51
56
|
*/
|
|
52
57
|
wait(duration: number): void;
|
|
58
|
+
|
|
53
59
|
/**
|
|
54
60
|
* Returns a function which calling is equivalent with calling [coroutine.resume](https://wiki.facepunch.com/gmod/coroutine.resume) with the coroutine and all extra parameters.
|
|
55
61
|
*
|
|
@@ -59,6 +65,7 @@ interface CoroutineLib {
|
|
|
59
65
|
* @source https://wiki.facepunch.com/gmod/coroutine.wrap
|
|
60
66
|
*/
|
|
61
67
|
wrap(coroutine: function): function;
|
|
68
|
+
|
|
62
69
|
/**
|
|
63
70
|
* Pauses the active coroutine and passes all additional variables to the call of [coroutine.resume](https://wiki.facepunch.com/gmod/coroutine.resume) that resumed the coroutine last time, and returns all additional variables that were passed to the previous call of resume.
|
|
64
71
|
* @realm shared and menu
|
|
@@ -66,11 +73,3 @@ interface CoroutineLib {
|
|
|
66
73
|
*/
|
|
67
74
|
yield(...: any): (...any);
|
|
68
75
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
@@ -11,90 +11,105 @@ interface CRecipientFilter {
|
|
|
11
11
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:AddAllPlayers
|
|
12
12
|
*/
|
|
13
13
|
AddAllPlayers(self: CRecipientFilter): void;
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Adds all players that are in the same [PAS (Potentially Audible Set)](https://developer.valvesoftware.com/wiki/PAS "PAS - Valve Developer Community") as this position.
|
|
16
17
|
* @realm server
|
|
17
18
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:AddPAS
|
|
18
19
|
*/
|
|
19
20
|
AddPAS(self: CRecipientFilter, pos: Vector): void;
|
|
21
|
+
|
|
20
22
|
/**
|
|
21
23
|
* Adds all players that are in the same [PVS (Potential Visibility Set)](https://developer.valvesoftware.com/wiki/PVS "PVS - Valve Developer Community") as this position.
|
|
22
24
|
* @realm server
|
|
23
25
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:AddPVS
|
|
24
26
|
*/
|
|
25
27
|
AddPVS(self: CRecipientFilter, Position: Vector): void;
|
|
28
|
+
|
|
26
29
|
/**
|
|
27
30
|
* Adds a player to the recipient filter
|
|
28
31
|
* @realm server
|
|
29
32
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:AddPlayer
|
|
30
33
|
*/
|
|
31
34
|
AddPlayer(self: CRecipientFilter, Player: Player): void;
|
|
35
|
+
|
|
32
36
|
/**
|
|
33
37
|
* Adds players to the recipient filter from a given table or another recipient filter.
|
|
34
38
|
* @realm server
|
|
35
39
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:AddPlayers
|
|
36
40
|
*/
|
|
37
41
|
AddPlayers(self: CRecipientFilter, input: CRecipientFilter | Player[]): void;
|
|
42
|
+
|
|
38
43
|
/**
|
|
39
44
|
* Adds all players that are on the given team to the filter.
|
|
40
45
|
* @realm server
|
|
41
46
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:AddRecipientsByTeam
|
|
42
47
|
*/
|
|
43
48
|
AddRecipientsByTeam(self: CRecipientFilter, teamid: number): void;
|
|
49
|
+
|
|
44
50
|
/**
|
|
45
51
|
* Returns the number of valid players in the recipient filter.
|
|
46
52
|
* @realm server
|
|
47
53
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:GetCount
|
|
48
54
|
*/
|
|
49
55
|
GetCount(self: CRecipientFilter): number;
|
|
56
|
+
|
|
50
57
|
/**
|
|
51
58
|
* Returns a table of all valid players currently in the recipient filter.
|
|
52
59
|
* @realm server
|
|
53
60
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:GetPlayers
|
|
54
61
|
*/
|
|
55
62
|
GetPlayers(self: CRecipientFilter): Player[];
|
|
63
|
+
|
|
56
64
|
/**
|
|
57
65
|
* Removes all players from the recipient filter.
|
|
58
66
|
* @realm server
|
|
59
67
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:RemoveAllPlayers
|
|
60
68
|
*/
|
|
61
69
|
RemoveAllPlayers(self: CRecipientFilter): void;
|
|
70
|
+
|
|
62
71
|
/**
|
|
63
72
|
* Remove players from this recipient filter that are **NOT** present in a given table or recipient filter.
|
|
64
73
|
* @realm server
|
|
65
74
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:RemoveMismatchedPlayers
|
|
66
75
|
*/
|
|
67
76
|
RemoveMismatchedPlayers(self: CRecipientFilter, input: CRecipientFilter): void;
|
|
77
|
+
|
|
68
78
|
/**
|
|
69
79
|
* Removes all players from the filter that are in [PAS (Potentially Audible Set)](https://developer.valvesoftware.com/wiki/PAS "PAS - Valve Developer Community") for given position.
|
|
70
80
|
* @realm server
|
|
71
81
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:RemovePAS
|
|
72
82
|
*/
|
|
73
83
|
RemovePAS(self: CRecipientFilter, position: Vector): void;
|
|
84
|
+
|
|
74
85
|
/**
|
|
75
86
|
* Removes all players that can see this [PVS (Potential Visibility Set)](https://developer.valvesoftware.com/wiki/PVS "PVS - Valve Developer Community") from the recipient filter.
|
|
76
87
|
* @realm server
|
|
77
88
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:RemovePVS
|
|
78
89
|
*/
|
|
79
90
|
RemovePVS(self: CRecipientFilter, pos: Vector): void;
|
|
91
|
+
|
|
80
92
|
/**
|
|
81
93
|
* Removes the player from the recipient filter.
|
|
82
94
|
* @realm server
|
|
83
95
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:RemovePlayer
|
|
84
96
|
*/
|
|
85
97
|
RemovePlayer(self: CRecipientFilter, Player: Player): void;
|
|
98
|
+
|
|
86
99
|
/**
|
|
87
100
|
* Remove players from this recipient filter that are present in a given table or recipient filter.
|
|
88
101
|
* @realm server
|
|
89
102
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:RemovePlayers
|
|
90
103
|
*/
|
|
91
104
|
RemovePlayers(self: CRecipientFilter, input: CRecipientFilter): void;
|
|
105
|
+
|
|
92
106
|
/**
|
|
93
107
|
* Removes all players that are on the given team from the filter.
|
|
94
108
|
* @realm server
|
|
95
109
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:RemoveRecipientsByTeam
|
|
96
110
|
*/
|
|
97
111
|
RemoveRecipientsByTeam(self: CRecipientFilter, teamid: number): void;
|
|
112
|
+
|
|
98
113
|
/**
|
|
99
114
|
* Removes all players that are not on the given team from the filter.
|
|
100
115
|
* @realm server
|
|
@@ -102,20 +117,3 @@ interface CRecipientFilter {
|
|
|
102
117
|
*/
|
|
103
118
|
RemoveRecipientsNotOnTeam(self: CRecipientFilter, teamid: number): void;
|
|
104
119
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
package/types/csent.d.tlua
CHANGED
package/types/csoundpatch.d.tlua
CHANGED
|
@@ -18,6 +18,7 @@ interface CSoundPatch {
|
|
|
18
18
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:ChangePitch
|
|
19
19
|
*/
|
|
20
20
|
ChangePitch(self: CSoundPatch, pitch: number, deltaTime?: number): void;
|
|
21
|
+
|
|
21
22
|
/**
|
|
22
23
|
* Adjusts the volume of the sound played.
|
|
23
24
|
*
|
|
@@ -27,60 +28,70 @@ interface CSoundPatch {
|
|
|
27
28
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:ChangeVolume
|
|
28
29
|
*/
|
|
29
30
|
ChangeVolume(self: CSoundPatch, volume: number, deltaTime?: number): void;
|
|
31
|
+
|
|
30
32
|
/**
|
|
31
33
|
* Fades out the volume of the sound from the current volume to 0 in the given amount of seconds.
|
|
32
34
|
* @realm shared
|
|
33
35
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:FadeOut
|
|
34
36
|
*/
|
|
35
37
|
FadeOut(self: CSoundPatch, seconds: number): void;
|
|
38
|
+
|
|
36
39
|
/**
|
|
37
40
|
* Returns the DSP (Digital Signal Processor) effect ID for the sound.
|
|
38
41
|
* @realm shared
|
|
39
42
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:GetDSP
|
|
40
43
|
*/
|
|
41
44
|
GetDSP(self: CSoundPatch): number;
|
|
45
|
+
|
|
42
46
|
/**
|
|
43
47
|
* Returns the current pitch.
|
|
44
48
|
* @realm shared
|
|
45
49
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:GetPitch
|
|
46
50
|
*/
|
|
47
51
|
GetPitch(self: CSoundPatch): number;
|
|
52
|
+
|
|
48
53
|
/**
|
|
49
54
|
* Returns the current sound level.
|
|
50
55
|
* @realm shared
|
|
51
56
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:GetSoundLevel
|
|
52
57
|
*/
|
|
53
58
|
GetSoundLevel(self: CSoundPatch): number;
|
|
59
|
+
|
|
54
60
|
/**
|
|
55
61
|
* Returns the sound name of this sound patch. This may be name of a sound script ([sound.Add](https://wiki.facepunch.com/gmod/sound.Add)) or a file path.
|
|
56
62
|
* @realm shared
|
|
57
63
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:GetSoundName
|
|
58
64
|
*/
|
|
59
65
|
GetSoundName(self: CSoundPatch): string;
|
|
66
|
+
|
|
60
67
|
/**
|
|
61
68
|
* Returns the current volume.
|
|
62
69
|
* @realm shared
|
|
63
70
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:GetVolume
|
|
64
71
|
*/
|
|
65
72
|
GetVolume(self: CSoundPatch): number;
|
|
73
|
+
|
|
66
74
|
/**
|
|
67
75
|
* Returns whenever the sound is being played.
|
|
68
76
|
* @realm shared
|
|
69
77
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:IsPlaying
|
|
70
78
|
*/
|
|
71
79
|
IsPlaying(self: CSoundPatch): boolean;
|
|
80
|
+
|
|
72
81
|
/**
|
|
73
82
|
* Starts to play the sound. This will reset the sound's volume and pitch to their default values. See [CSoundPatch:PlayEx](https://wiki.facepunch.com/gmod/CSoundPatch:PlayEx)
|
|
74
83
|
* @realm shared
|
|
75
84
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:Play
|
|
76
85
|
*/
|
|
77
86
|
Play(self: CSoundPatch): void;
|
|
87
|
+
|
|
78
88
|
/**
|
|
79
89
|
* Same as [CSoundPatch:Play](https://wiki.facepunch.com/gmod/CSoundPatch:Play) but with 2 extra arguments allowing to set volume and pitch directly.
|
|
80
90
|
* @realm shared
|
|
81
91
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:PlayEx
|
|
82
92
|
*/
|
|
83
93
|
PlayEx(self: CSoundPatch, volume: number, pitch: number): void;
|
|
94
|
+
|
|
84
95
|
/**
|
|
85
96
|
* Sets the DSP (Digital Signal Processor) effect for the sound.
|
|
86
97
|
*
|
|
@@ -90,12 +101,14 @@ interface CSoundPatch {
|
|
|
90
101
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:SetDSP
|
|
91
102
|
*/
|
|
92
103
|
SetDSP(self: CSoundPatch, dspEffectId: number): void;
|
|
104
|
+
|
|
93
105
|
/**
|
|
94
106
|
* Sets the sound level in decibel.
|
|
95
107
|
* @realm shared
|
|
96
108
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:SetSoundLevel
|
|
97
109
|
*/
|
|
98
110
|
SetSoundLevel(self: CSoundPatch, level: number): void;
|
|
111
|
+
|
|
99
112
|
/**
|
|
100
113
|
* Stops the sound from being played.
|
|
101
114
|
*
|
|
@@ -106,18 +119,3 @@ interface CSoundPatch {
|
|
|
106
119
|
*/
|
|
107
120
|
Stop(self: CSoundPatch): void;
|
|
108
121
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|