@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/isave.d.tlua
CHANGED
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
* It allows you to write blocks directly into the save game files used by Half-Life 2 save system when such save is being saved.
|
|
7
7
|
* @source https://wiki.facepunch.com/gmod/ISave
|
|
8
8
|
*/
|
|
9
|
-
interface ISave {}
|
|
10
|
-
|
|
11
9
|
interface ISave {
|
|
12
10
|
/**
|
|
13
11
|
* Ends current data block started with [ISave:StartBlock](https://wiki.facepunch.com/gmod/ISave:StartBlock) and returns to the parent block.
|
|
@@ -18,72 +16,48 @@ interface ISave {
|
|
|
18
16
|
* @source https://wiki.facepunch.com/gmod/ISave:EndBlock
|
|
19
17
|
*/
|
|
20
18
|
EndBlock(self: ISave): void;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface ISave {
|
|
24
19
|
/**
|
|
25
20
|
* Starts a new block of data that you can write to inside current block. Blocks **must** be ended with [ISave:EndBlock](https://wiki.facepunch.com/gmod/ISave:EndBlock).
|
|
26
21
|
* @realm shared
|
|
27
22
|
* @source https://wiki.facepunch.com/gmod/ISave:StartBlock
|
|
28
23
|
*/
|
|
29
24
|
StartBlock(self: ISave, name: string): void;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface ISave {
|
|
33
25
|
/**
|
|
34
26
|
* Writes an [Angle](https://wiki.facepunch.com/gmod/Angle) to the save object.
|
|
35
27
|
* @realm shared
|
|
36
28
|
* @source https://wiki.facepunch.com/gmod/ISave:WriteAngle
|
|
37
29
|
*/
|
|
38
30
|
WriteAngle(self: ISave, ang: Angle): void;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
interface ISave {
|
|
42
31
|
/**
|
|
43
32
|
* Writes a [boolean](https://wiki.facepunch.com/gmod/boolean) to the save object.
|
|
44
33
|
* @realm shared
|
|
45
34
|
* @source https://wiki.facepunch.com/gmod/ISave:WriteBool
|
|
46
35
|
*/
|
|
47
36
|
WriteBool(self: ISave, bool: boolean): void;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
interface ISave {
|
|
51
37
|
/**
|
|
52
38
|
* Writes an [Entity](https://wiki.facepunch.com/gmod/Entity) to the save object.
|
|
53
39
|
* @realm shared
|
|
54
40
|
* @source https://wiki.facepunch.com/gmod/ISave:WriteEntity
|
|
55
41
|
*/
|
|
56
42
|
WriteEntity(self: ISave, ent: Entity): void;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
interface ISave {
|
|
60
43
|
/**
|
|
61
44
|
* Writes a floating point [number](https://wiki.facepunch.com/gmod/number) to the save object.
|
|
62
45
|
* @realm shared
|
|
63
46
|
* @source https://wiki.facepunch.com/gmod/ISave:WriteFloat
|
|
64
47
|
*/
|
|
65
48
|
WriteFloat(self: ISave, float: number): void;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
interface ISave {
|
|
69
49
|
/**
|
|
70
50
|
* Writes an integer [number](https://wiki.facepunch.com/gmod/number) to the save object.
|
|
71
51
|
* @realm shared
|
|
72
52
|
* @source https://wiki.facepunch.com/gmod/ISave:WriteInt
|
|
73
53
|
*/
|
|
74
54
|
WriteInt(self: ISave, int: number): void;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
interface ISave {
|
|
78
55
|
/**
|
|
79
56
|
* Writes a **null terminated** [string](https://wiki.facepunch.com/gmod/string) to the save object.
|
|
80
57
|
* @realm shared
|
|
81
58
|
* @source https://wiki.facepunch.com/gmod/ISave:WriteString
|
|
82
59
|
*/
|
|
83
60
|
WriteString(self: ISave, str: string): void;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
interface ISave {
|
|
87
61
|
/**
|
|
88
62
|
* Writes a [Vector](https://wiki.facepunch.com/gmod/Vector) to the save object.
|
|
89
63
|
* @realm shared
|
|
@@ -92,3 +66,12 @@ interface ISave {
|
|
|
92
66
|
WriteVector(self: ISave, vec: Vector): void;
|
|
93
67
|
}
|
|
94
68
|
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
package/types/itexture.d.tlua
CHANGED
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @source https://wiki.facepunch.com/gmod/ITexture
|
|
11
11
|
*/
|
|
12
|
-
interface ITexture {}
|
|
13
|
-
|
|
14
12
|
interface ITexture {
|
|
15
13
|
/**
|
|
16
14
|
* Invokes the generator of the texture. Reloads file based textures from disk and clears render target textures.
|
|
@@ -18,9 +16,6 @@ interface ITexture {
|
|
|
18
16
|
* @source https://wiki.facepunch.com/gmod/ITexture:Download
|
|
19
17
|
*/
|
|
20
18
|
Download(self: ITexture): void;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface ITexture {
|
|
24
19
|
/**
|
|
25
20
|
* Returns the color of the specified pixel, only works for textures created from PNG files.
|
|
26
21
|
*
|
|
@@ -28,54 +23,36 @@ interface ITexture {
|
|
|
28
23
|
* @source https://wiki.facepunch.com/gmod/ITexture:GetColor
|
|
29
24
|
*/
|
|
30
25
|
GetColor(self: ITexture, x: number, y: number): Color;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface ITexture {
|
|
34
26
|
/**
|
|
35
27
|
* Returns the true unmodified height of the texture.
|
|
36
28
|
* @realm shared and menu
|
|
37
29
|
* @source https://wiki.facepunch.com/gmod/ITexture:GetMappingHeight
|
|
38
30
|
*/
|
|
39
31
|
GetMappingHeight(self: ITexture): number;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
interface ITexture {
|
|
43
32
|
/**
|
|
44
33
|
* Returns the true unmodified width of the texture.
|
|
45
34
|
* @realm shared and menu
|
|
46
35
|
* @source https://wiki.facepunch.com/gmod/ITexture:GetMappingWidth
|
|
47
36
|
*/
|
|
48
37
|
GetMappingWidth(self: ITexture): number;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
interface ITexture {
|
|
52
38
|
/**
|
|
53
39
|
* Returns the name of the texture, in most cases the path.
|
|
54
40
|
* @realm shared and menu
|
|
55
41
|
* @source https://wiki.facepunch.com/gmod/ITexture:GetName
|
|
56
42
|
*/
|
|
57
43
|
GetName(self: ITexture): string;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
interface ITexture {
|
|
61
44
|
/**
|
|
62
45
|
* Returns the number of animation frames in this texture.
|
|
63
46
|
* @realm shared and menu
|
|
64
47
|
* @source https://wiki.facepunch.com/gmod/ITexture:GetNumAnimationFrames
|
|
65
48
|
*/
|
|
66
49
|
GetNumAnimationFrames(self: ITexture): number;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
interface ITexture {
|
|
70
50
|
/**
|
|
71
51
|
* Returns the modified height of the texture, this value may be affected by mipmapping and other factors.
|
|
72
52
|
* @realm shared and menu
|
|
73
53
|
* @source https://wiki.facepunch.com/gmod/ITexture:Height
|
|
74
54
|
*/
|
|
75
55
|
Height(self: ITexture): number;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
interface ITexture {
|
|
79
56
|
/**
|
|
80
57
|
* Returns whenever the texture is valid. (i.e. was loaded successfully or not)
|
|
81
58
|
*
|
|
@@ -86,18 +63,12 @@ interface ITexture {
|
|
|
86
63
|
* @source https://wiki.facepunch.com/gmod/ITexture:IsError
|
|
87
64
|
*/
|
|
88
65
|
IsError(self: ITexture): boolean;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
interface ITexture {
|
|
92
66
|
/**
|
|
93
67
|
* Returns whenever the texture is the error texture (pink and black checkerboard pattern).
|
|
94
68
|
* @realm shared and menu
|
|
95
69
|
* @source https://wiki.facepunch.com/gmod/ITexture:IsErrorTexture
|
|
96
70
|
*/
|
|
97
71
|
IsErrorTexture(self: ITexture): boolean;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
interface ITexture {
|
|
101
72
|
/**
|
|
102
73
|
* Returns the modified width of the texture, this value may be affected by mipmapping and other factors.
|
|
103
74
|
* @realm shared and menu
|
|
@@ -106,3 +77,13 @@ interface ITexture {
|
|
|
106
77
|
Width(self: ITexture): number;
|
|
107
78
|
}
|
|
108
79
|
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* This is returned from [video.Record](https://wiki.facepunch.com/gmod/video.Record).
|
|
5
5
|
* @source https://wiki.facepunch.com/gmod/IVideoWriter
|
|
6
6
|
*/
|
|
7
|
-
interface IVideoWriter {}
|
|
8
|
-
|
|
9
7
|
interface IVideoWriter {
|
|
10
8
|
/**
|
|
11
9
|
* Adds the current framebuffer to the video stream.
|
|
@@ -13,36 +11,24 @@ interface IVideoWriter {
|
|
|
13
11
|
* @source https://wiki.facepunch.com/gmod/IVideoWriter:AddFrame
|
|
14
12
|
*/
|
|
15
13
|
AddFrame(self: IVideoWriter, frameTime: number, downsample: boolean): void;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface IVideoWriter {
|
|
19
14
|
/**
|
|
20
15
|
* Ends the video recording and dumps it to disk.
|
|
21
16
|
* @realm client and menu
|
|
22
17
|
* @source https://wiki.facepunch.com/gmod/IVideoWriter:Finish
|
|
23
18
|
*/
|
|
24
19
|
Finish(self: IVideoWriter): void;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface IVideoWriter {
|
|
28
20
|
/**
|
|
29
21
|
* Returns the height of the video stream.
|
|
30
22
|
* @realm client and menu
|
|
31
23
|
* @source https://wiki.facepunch.com/gmod/IVideoWriter:Height
|
|
32
24
|
*/
|
|
33
25
|
Height(self: IVideoWriter): number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface IVideoWriter {
|
|
37
26
|
/**
|
|
38
27
|
* Sets whether to record sound or not.
|
|
39
28
|
* @realm client and menu
|
|
40
29
|
* @source https://wiki.facepunch.com/gmod/IVideoWriter:SetRecordSound
|
|
41
30
|
*/
|
|
42
31
|
SetRecordSound(self: IVideoWriter, record: boolean): void;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface IVideoWriter {
|
|
46
32
|
/**
|
|
47
33
|
* Returns the width of the video stream.
|
|
48
34
|
* @realm client and menu
|
|
@@ -51,3 +37,8 @@ interface IVideoWriter {
|
|
|
51
37
|
Width(self: IVideoWriter): number;
|
|
52
38
|
}
|
|
53
39
|
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
package/types/jit.d.tlua
CHANGED
|
@@ -25,39 +25,38 @@ interface JitLib {
|
|
|
25
25
|
* @deprecated This function was disabled due to security concerns.
|
|
26
26
|
*/
|
|
27
27
|
attach(callback: function, event: string): void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface JitLib {
|
|
31
28
|
/**
|
|
32
29
|
* Flushes the whole cache of compiled code.
|
|
33
30
|
* @realm shared and menu
|
|
34
31
|
* @source https://wiki.facepunch.com/gmod/jit.flush
|
|
35
32
|
*/
|
|
36
33
|
flush(): void;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface JitLib {
|
|
40
34
|
/**
|
|
41
35
|
* Disables LuaJIT Lua compilation.
|
|
42
36
|
* @realm shared and menu
|
|
43
37
|
* @source https://wiki.facepunch.com/gmod/jit.off
|
|
44
38
|
*/
|
|
45
39
|
off(): void;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface JitLib {
|
|
49
40
|
/**
|
|
50
41
|
* Enables LuaJIT Lua compilation.
|
|
51
42
|
* @realm shared and menu
|
|
52
43
|
* @source https://wiki.facepunch.com/gmod/jit.on
|
|
53
44
|
*/
|
|
54
45
|
on(): void;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface JitLib {
|
|
58
46
|
opt: JitoptLib;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the status of the JIT compiler and the current optimizations enabled.
|
|
49
|
+
* @realm shared and menu
|
|
50
|
+
* @source https://wiki.facepunch.com/gmod/jit.status
|
|
51
|
+
*/
|
|
52
|
+
status(): (boolean, any);
|
|
53
|
+
util: JitutilLib;
|
|
59
54
|
}
|
|
60
55
|
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
61
60
|
interface JitoptLib {
|
|
62
61
|
/**
|
|
63
62
|
* JIT compiler optimization control. The opt sub-module provides the backend for the -O command line LuaJIT option.
|
|
@@ -79,18 +78,7 @@ interface JitoptLib {
|
|
|
79
78
|
start(...: any): void;
|
|
80
79
|
}
|
|
81
80
|
|
|
82
|
-
interface JitLib {
|
|
83
|
-
/**
|
|
84
|
-
* Returns the status of the JIT compiler and the current optimizations enabled.
|
|
85
|
-
* @realm shared and menu
|
|
86
|
-
* @source https://wiki.facepunch.com/gmod/jit.status
|
|
87
|
-
*/
|
|
88
|
-
status(): (boolean, any);
|
|
89
|
-
}
|
|
90
81
|
|
|
91
|
-
interface JitLib {
|
|
92
|
-
util: JitutilLib;
|
|
93
|
-
}
|
|
94
82
|
|
|
95
83
|
interface JitutilLib {
|
|
96
84
|
/**
|
|
@@ -102,9 +90,6 @@ interface JitutilLib {
|
|
|
102
90
|
* @source https://wiki.facepunch.com/gmod/jit.util.funcbc
|
|
103
91
|
*/
|
|
104
92
|
funcbc(func: function, pos: number): (number, number);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
interface JitutilLib {
|
|
108
93
|
/**
|
|
109
94
|
* Retrieves LuaJIT information about a given function, similarly to [debug.getinfo](https://wiki.facepunch.com/gmod/debug.getinfo). Possible table fields:
|
|
110
95
|
* * linedefined: as for [debug.getinfo](https://wiki.facepunch.com/gmod/debug.getinfo)
|
|
@@ -127,9 +112,6 @@ interface JitutilLib {
|
|
|
127
112
|
* @source https://wiki.facepunch.com/gmod/jit.util.funcinfo
|
|
128
113
|
*/
|
|
129
114
|
funcinfo(func: function, pos?: number): table;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
interface JitutilLib {
|
|
133
115
|
/**
|
|
134
116
|
* Gets a constant at a certain index in a function.
|
|
135
117
|
*
|
|
@@ -146,9 +128,6 @@ interface JitutilLib {
|
|
|
146
128
|
* @deprecated This function was disabled due to security concerns.
|
|
147
129
|
*/
|
|
148
130
|
funck(func: function, index: number): any;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
interface JitutilLib {
|
|
152
131
|
/**
|
|
153
132
|
* Does the exact same thing as [debug.getupvalue](https://wiki.facepunch.com/gmod/debug.getupvalue) except it only returns the name, not the name and the object. The upvalue indexes also start at 0 rather than 1, so doing `jit.util.funcuvname(func, 0)` will get you the same name as `debug.getupvalue(func, 1)`
|
|
154
133
|
* **WARNING**: This function isn't officially documented on LuaJIT wiki, use it at your own risk.
|
|
@@ -159,9 +138,6 @@ interface JitutilLib {
|
|
|
159
138
|
* @deprecated This function was disabled due to security concerns.
|
|
160
139
|
*/
|
|
161
140
|
funcuvname(func: function, index: number): string;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
interface JitutilLib {
|
|
165
141
|
/**
|
|
166
142
|
* Previously got the address of a function from a set list of functions, but now always returns `0` as it is deprecated.
|
|
167
143
|
*
|
|
@@ -170,9 +146,6 @@ interface JitutilLib {
|
|
|
170
146
|
* @deprecated This function was disabled due to security concerns.
|
|
171
147
|
*/
|
|
172
148
|
ircalladdr(index: number): number;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
interface JitutilLib {
|
|
176
149
|
/**
|
|
177
150
|
* Grabs the address of a function based on it's trace exit number. Grabbed via [jit.attach](https://wiki.facepunch.com/gmod/jit.attach) (with the texit event).
|
|
178
151
|
*
|
|
@@ -181,9 +154,6 @@ interface JitutilLib {
|
|
|
181
154
|
* @deprecated This function was disabled due to security concerns. It will always return 0.
|
|
182
155
|
*/
|
|
183
156
|
traceexitstub(exitno: number): number;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
interface JitutilLib {
|
|
187
157
|
/**
|
|
188
158
|
* Return table fields:
|
|
189
159
|
* * link (number): the linked trace (0 for link types: none, return, interpreter)
|
|
@@ -197,36 +167,24 @@ interface JitutilLib {
|
|
|
197
167
|
* @deprecated This function was disabled due to security concerns.
|
|
198
168
|
*/
|
|
199
169
|
traceinfo(trace: number): table;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
interface JitutilLib {
|
|
203
170
|
/**
|
|
204
171
|
* @realm shared and menu
|
|
205
172
|
* @source https://wiki.facepunch.com/gmod/jit.util.traceir
|
|
206
173
|
* @deprecated This function was disabled due to security concerns.
|
|
207
174
|
*/
|
|
208
175
|
traceir(tr: number, index: number): (number, number, number, number, number);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
interface JitutilLib {
|
|
212
176
|
/**
|
|
213
177
|
* @realm shared and menu
|
|
214
178
|
* @source https://wiki.facepunch.com/gmod/jit.util.tracek
|
|
215
179
|
* @deprecated This function was disabled due to security concerns.
|
|
216
180
|
*/
|
|
217
181
|
tracek(tr: number, index: number): (any, number, number);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
interface JitutilLib {
|
|
221
182
|
/**
|
|
222
183
|
* @realm shared and menu
|
|
223
184
|
* @source https://wiki.facepunch.com/gmod/jit.util.tracemc
|
|
224
185
|
* @deprecated This function was disabled due to security concerns. It will always return 3 `0`s.
|
|
225
186
|
*/
|
|
226
187
|
tracemc(tr: number): (string, number, number);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
interface JitutilLib {
|
|
230
188
|
/**
|
|
231
189
|
* Return table fields:
|
|
232
190
|
* * 0 (ref) (number): first IR ref for the snapshot
|
|
@@ -241,3 +199,13 @@ interface JitutilLib {
|
|
|
241
199
|
tracesnap(tr: number, sn: number): table;
|
|
242
200
|
}
|
|
243
201
|
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
package/types/killicon.d.tlua
CHANGED
|
@@ -13,36 +13,24 @@ interface KilliconLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/killicon.Add
|
|
14
14
|
*/
|
|
15
15
|
Add(_class: string, texture: string, color: Color): void;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface KilliconLib {
|
|
19
16
|
/**
|
|
20
17
|
* Creates kill icon from existing one.
|
|
21
18
|
* @realm client
|
|
22
19
|
* @source https://wiki.facepunch.com/gmod/killicon.AddAlias
|
|
23
20
|
*/
|
|
24
21
|
AddAlias(new_class: string, existing_class: string): void;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface KilliconLib {
|
|
28
22
|
/**
|
|
29
23
|
* Adds kill icon for given weapon/entity class using special font.
|
|
30
24
|
* @realm client
|
|
31
25
|
* @source https://wiki.facepunch.com/gmod/killicon.AddFont
|
|
32
26
|
*/
|
|
33
27
|
AddFont(_class: string, font: string, symbol: string, color: Color, heightScale?: number): void;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface KilliconLib {
|
|
37
28
|
/**
|
|
38
29
|
* Creates new kill icon using a sub-rectangle of a texture.
|
|
39
30
|
* @realm client
|
|
40
31
|
* @source https://wiki.facepunch.com/gmod/killicon.AddTexCoord
|
|
41
32
|
*/
|
|
42
33
|
AddTexCoord(_class: string, texture: string, color: Color, x: number, y: number, w: number, h: number): void;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface KilliconLib {
|
|
46
34
|
/**
|
|
47
35
|
* Draws a kill icon.
|
|
48
36
|
*
|
|
@@ -53,27 +41,18 @@ interface KilliconLib {
|
|
|
53
41
|
* @deprecated This function applies unpredictable vertical offsets, you should use killicon.Render instead, which does not suffer from this issue.
|
|
54
42
|
*/
|
|
55
43
|
Draw(x: number, y: number, name: string, alpha?: number): void;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
interface KilliconLib {
|
|
59
44
|
/**
|
|
60
45
|
* Checks if kill icon exists for given class.
|
|
61
46
|
* @realm client
|
|
62
47
|
* @source https://wiki.facepunch.com/gmod/killicon.Exists
|
|
63
48
|
*/
|
|
64
49
|
Exists(_class: string): boolean;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
interface KilliconLib {
|
|
68
50
|
/**
|
|
69
51
|
* Returns the size of a kill icon.
|
|
70
52
|
* @realm client
|
|
71
53
|
* @source https://wiki.facepunch.com/gmod/killicon.GetSize
|
|
72
54
|
*/
|
|
73
55
|
GetSize(name: string, dontEqualizeHeight?: boolean): (number, number);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
interface KilliconLib {
|
|
77
56
|
/**
|
|
78
57
|
* Renders a kill icon.
|
|
79
58
|
* @realm client
|
|
@@ -82,3 +61,10 @@ interface KilliconLib {
|
|
|
82
61
|
Render(x: number, y: number, name: string, alpha?: number, dontEqualizeHeight?: number): void;
|
|
83
62
|
}
|
|
84
63
|
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
package/types/language.d.tlua
CHANGED
|
@@ -13,9 +13,6 @@ interface LanguageLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/language.Add
|
|
14
14
|
*/
|
|
15
15
|
Add(placeholder: string, fulltext: string): void;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface LanguageLib {
|
|
19
16
|
/**
|
|
20
17
|
* Retrieves the translated version of inputted string. Useful for concentrating multiple translated strings.
|
|
21
18
|
* @realm client and menu
|
|
@@ -24,3 +21,4 @@ interface LanguageLib {
|
|
|
24
21
|
GetPhrase(phrase: string): string;
|
|
25
22
|
}
|
|
26
23
|
|
|
24
|
+
|
package/types/list.d.tlua
CHANGED
|
@@ -17,9 +17,6 @@ interface ListLib {
|
|
|
17
17
|
* @source https://wiki.facepunch.com/gmod/list.Add
|
|
18
18
|
*/
|
|
19
19
|
Add(identifier: string, item: any): number;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
interface ListLib {
|
|
23
20
|
/**
|
|
24
21
|
* Returns true if the list contains the value. (as a value - not a key)
|
|
25
22
|
*
|
|
@@ -29,9 +26,6 @@ interface ListLib {
|
|
|
29
26
|
* @source https://wiki.facepunch.com/gmod/list.Contains
|
|
30
27
|
*/
|
|
31
28
|
Contains(list: string, value: any): boolean;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface ListLib {
|
|
35
29
|
/**
|
|
36
30
|
* Returns a copy of the list stored at identifier.
|
|
37
31
|
* **WARNING**: This function uses [table.Copy](https://wiki.facepunch.com/gmod/table.Copy) which can be very slow for larger lists. You should avoid calling it repeatedly or in performance sensitive hooks such as [GM:Think](https://wiki.facepunch.com/gmod/GM:Think).
|
|
@@ -47,9 +41,6 @@ interface ListLib {
|
|
|
47
41
|
* @source https://wiki.facepunch.com/gmod/list.Get
|
|
48
42
|
*/
|
|
49
43
|
Get(identifier: string): table;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
interface ListLib {
|
|
53
44
|
/**
|
|
54
45
|
* Returns a copy of the entry in the list `list` with key `key`.
|
|
55
46
|
*
|
|
@@ -57,27 +48,18 @@ interface ListLib {
|
|
|
57
48
|
* @source https://wiki.facepunch.com/gmod/list.GetEntry
|
|
58
49
|
*/
|
|
59
50
|
GetEntry(list: string, key: string): any | nil;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
interface ListLib {
|
|
63
51
|
/**
|
|
64
52
|
* Returns the actual table of the list stored at identifier. Modifying this will affect the stored list.
|
|
65
53
|
* @realm shared and menu
|
|
66
54
|
* @source https://wiki.facepunch.com/gmod/list.GetForEdit
|
|
67
55
|
*/
|
|
68
56
|
GetForEdit(identifier: string, dontCreate?: boolean): table;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
interface ListLib {
|
|
72
57
|
/**
|
|
73
58
|
* Returns a list of all lists currently in use.
|
|
74
59
|
* @realm shared and menu
|
|
75
60
|
* @source https://wiki.facepunch.com/gmod/list.GetTable
|
|
76
61
|
*/
|
|
77
62
|
GetTable(): table;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
interface ListLib {
|
|
81
63
|
/**
|
|
82
64
|
* Returns true if the list contains the given key.
|
|
83
65
|
*
|
|
@@ -87,9 +69,6 @@ interface ListLib {
|
|
|
87
69
|
* @source https://wiki.facepunch.com/gmod/list.HasEntry
|
|
88
70
|
*/
|
|
89
71
|
HasEntry(list: string, key: any): boolean;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
interface ListLib {
|
|
93
72
|
/**
|
|
94
73
|
* Removes a single entry from the list `list` with key `key`.
|
|
95
74
|
*
|
|
@@ -99,9 +78,6 @@ interface ListLib {
|
|
|
99
78
|
* @source https://wiki.facepunch.com/gmod/list.RemoveEntry
|
|
100
79
|
*/
|
|
101
80
|
RemoveEntry(list: string, key: string): void;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
interface ListLib {
|
|
105
81
|
/**
|
|
106
82
|
* Sets a specific position in the named list to a value.
|
|
107
83
|
* @realm shared and menu
|
|
@@ -110,3 +86,11 @@ interface ListLib {
|
|
|
110
86
|
Set(identifier: string, key: any, item: any): void;
|
|
111
87
|
}
|
|
112
88
|
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
package/types/markup.d.tlua
CHANGED
|
@@ -13,18 +13,12 @@ interface MarkupLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/markup.Color
|
|
14
14
|
*/
|
|
15
15
|
Color(col: Color): string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface MarkupLib {
|
|
19
16
|
/**
|
|
20
17
|
* Converts a string to its escaped, markup-safe equivalent.
|
|
21
18
|
* @realm client and menu
|
|
22
19
|
* @source https://wiki.facepunch.com/gmod/markup.Escape
|
|
23
20
|
*/
|
|
24
21
|
Escape(text: string): string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface MarkupLib {
|
|
28
22
|
/**
|
|
29
23
|
* Parses markup into a [MarkupObject](https://wiki.facepunch.com/gmod/MarkupObject). Currently, this only supports fonts and colors as demonstrated in the example.
|
|
30
24
|
* **WARNING**: This function is very slow! Always cache its result.
|
|
@@ -36,3 +30,5 @@ interface MarkupLib {
|
|
|
36
30
|
Parse(markup: string, maxWidth?: number): MarkupObject;
|
|
37
31
|
}
|
|
38
32
|
|
|
33
|
+
|
|
34
|
+
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* Object containing parsed markup for later rendering. Created by [markup.Parse](https://wiki.facepunch.com/gmod/markup.Parse).
|
|
5
5
|
* @source https://wiki.facepunch.com/gmod/MarkupObject
|
|
6
6
|
*/
|
|
7
|
-
interface MarkupObject {}
|
|
8
|
-
|
|
9
7
|
interface MarkupObject {
|
|
10
8
|
/**
|
|
11
9
|
* Draws the computed markupobject to the screen. See [markup.Parse](https://wiki.facepunch.com/gmod/markup.Parse).
|
|
@@ -13,36 +11,24 @@ interface MarkupObject {
|
|
|
13
11
|
* @source https://wiki.facepunch.com/gmod/MarkupObject:Draw
|
|
14
12
|
*/
|
|
15
13
|
Draw(self: MarkupObject, xOffset: number, yOffset: number, xAlign?: number, yAlign?: number, alphaoverride?: number, textAlign?: number): void;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface MarkupObject {
|
|
19
14
|
/**
|
|
20
15
|
* Gets computed the height of the markupobject.
|
|
21
16
|
* @realm client and menu
|
|
22
17
|
* @source https://wiki.facepunch.com/gmod/MarkupObject:GetHeight
|
|
23
18
|
*/
|
|
24
19
|
GetHeight(self: MarkupObject): number;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface MarkupObject {
|
|
28
20
|
/**
|
|
29
21
|
* Gets maximum width for this markup object as defined in [markup.Parse](https://wiki.facepunch.com/gmod/markup.Parse).
|
|
30
22
|
* @realm client and menu
|
|
31
23
|
* @source https://wiki.facepunch.com/gmod/MarkupObject:GetMaxWidth
|
|
32
24
|
*/
|
|
33
25
|
GetMaxWidth(self: MarkupObject): number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface MarkupObject {
|
|
37
26
|
/**
|
|
38
27
|
* Gets computed the width of the markupobject.
|
|
39
28
|
* @realm client and menu
|
|
40
29
|
* @source https://wiki.facepunch.com/gmod/MarkupObject:GetWidth
|
|
41
30
|
*/
|
|
42
31
|
GetWidth(self: MarkupObject): number;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface MarkupObject {
|
|
46
32
|
/**
|
|
47
33
|
* Gets computed the width and height of the markupobject.
|
|
48
34
|
* @realm client and menu
|
|
@@ -51,3 +37,8 @@ interface MarkupObject {
|
|
|
51
37
|
Size(self: MarkupObject): (number, number);
|
|
52
38
|
}
|
|
53
39
|
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|