@tlua/gmod 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/achievementicon.d.tlua +0 -1
- package/types/achievements.d.tlua +0 -31
- package/types/ai.d.tlua +0 -11
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +0 -37
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +0 -4
- package/types/bf_read.d.tlua +0 -23
- package/types/bit.d.tlua +0 -23
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +0 -33
- package/types/ceffectdata.d.tlua +0 -65
- package/types/chat.d.tlua +0 -11
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +0 -15
- package/types/cluaemitter.d.tlua +0 -25
- package/types/clualocomotion.d.tlua +0 -81
- package/types/cluaparticle.d.tlua +0 -89
- package/types/cmovedata.d.tlua +0 -95
- package/types/cnavarea.d.tlua +0 -155
- package/types/cnavladder.d.tlua +0 -45
- package/types/cnewparticleeffect.d.tlua +0 -53
- package/types/color.d.tlua +0 -57
- package/types/concommand.d.tlua +0 -9
- package/types/constraint.d.tlua +0 -57
- package/types/construct.d.tlua +0 -3
- package/types/contentheader.d.tlua +1 -6
- package/types/contenticon.d.tlua +1 -18
- package/types/contentsidebar.d.tlua +1 -8
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +1 -8
- package/types/controlpanel.d.tlua +6 -31
- package/types/controlpresets.d.tlua +1 -26
- package/types/convar.d.tlua +0 -33
- package/types/cookie.d.tlua +0 -7
- package/types/coroutine.d.tlua +0 -15
- package/types/crecipientfilter.d.tlua +0 -33
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +0 -29
- package/types/ctakedamageinfo.d.tlua +0 -67
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +0 -13
- package/types/cusercmd.d.tlua +0 -55
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +0 -13
- package/types/dadjustablemodelpanel.d.tlua +1 -14
- package/types/dalphabar.d.tlua +1 -6
- package/types/dbinder.d.tlua +1 -8
- package/types/dbubblecontainer.d.tlua +1 -4
- package/types/dbutton.d.tlua +1 -16
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +1 -10
- package/types/dcheckboxlabel.d.tlua +0 -19
- package/types/dcollapsiblecategory.d.tlua +1 -46
- package/types/dcolorbutton.d.tlua +1 -14
- package/types/dcolorcombo.d.tlua +1 -10
- package/types/dcolorcube.d.tlua +1 -26
- package/types/dcolormixer.d.tlua +1 -54
- package/types/dcolorpalette.d.tlua +1 -46
- package/types/dcolumnsheet.d.tlua +1 -10
- package/types/dcombobox.d.tlua +1 -34
- package/types/ddragbase.d.tlua +1 -26
- package/types/ddrawer.d.tlua +1 -16
- package/types/debug.d.tlua +25 -60
- package/types/debugoverlay.d.tlua +0 -23
- package/types/dentityproperties.d.tlua +1 -10
- package/types/derma.d.tlua +0 -21
- package/types/dexpandbutton.d.tlua +1 -6
- package/types/dfilebrowser.d.tlua +0 -41
- package/types/dform.d.tlua +1 -36
- package/types/dframe.d.tlua +0 -49
- package/types/dgrid.d.tlua +1 -22
- package/types/dhorizontaldivider.d.tlua +1 -40
- package/types/dhorizontalscroller.d.tlua +1 -22
- package/types/dhscrollbar.d.tlua +1 -22
- package/types/dhtml.d.tlua +1 -16
- package/types/dhtmlcontrols.d.tlua +0 -11
- package/types/diconbrowser.d.tlua +1 -22
- package/types/diconlayout.d.tlua +1 -36
- package/types/dimage.d.tlua +1 -39
- package/types/dimagebutton.d.tlua +0 -19
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +1 -66
- package/types/dlabeleditable.d.tlua +1 -10
- package/types/dlabelurl.d.tlua +1 -20
- package/types/dlistbox.d.tlua +1 -16
- package/types/dlistboxitem.d.tlua +1 -8
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +1 -68
- package/types/dlistview_column.d.tlua +1 -28
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +1 -26
- package/types/dlistviewheaderlabel.d.tlua +0 -1
- package/types/dlistviewlabel.d.tlua +0 -1
- package/types/dlistviewline.d.tlua +0 -1
- package/types/dmenu.d.tlua +1 -53
- package/types/dmenubar.d.tlua +1 -11
- package/types/dmenuoption.d.tlua +1 -26
- package/types/dmenuoptioncvar.d.tlua +1 -12
- package/types/dmodelpanel.d.tlua +1 -44
- package/types/dmodelselect.d.tlua +1 -4
- package/types/dmodelselectmulti.d.tlua +1 -4
- package/types/dnotify.d.tlua +1 -20
- package/types/dnumberscratch.d.tlua +1 -52
- package/types/dnumberwang.d.tlua +1 -32
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +0 -35
- package/types/dpanel.d.tlua +1 -28
- package/types/dpanellist.d.tlua +0 -23
- package/types/dpaneloverlay.d.tlua +1 -14
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +1 -12
- package/types/dprogress.d.tlua +1 -6
- package/types/dproperties.d.tlua +1 -8
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -6
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +1 -10
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +9 -41
- package/types/dragndrop.d.tlua +0 -21
- package/types/draw.d.tlua +0 -22
- package/types/drgbpicker.d.tlua +1 -8
- package/types/drive.d.tlua +6 -31
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +0 -21
- package/types/dshape.d.tlua +1 -14
- package/types/dsizetocontents.d.tlua +1 -10
- package/types/dslider.d.tlua +1 -56
- package/types/dsprite.d.tlua +1 -18
- package/types/dtab.d.tlua +1 -16
- package/types/dtextentry.d.tlua +1 -86
- package/types/dtilelayout.d.tlua +1 -42
- package/types/dtooltip.d.tlua +1 -12
- package/types/dtree.d.tlua +1 -32
- package/types/dtree_node.d.tlua +1 -136
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +0 -60
- package/types/dverticaldivider.d.tlua +1 -46
- package/types/dvscrollbar.d.tlua +1 -22
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +1 -8
- package/types/effects.d.tlua +0 -13
- package/types/engine.d.tlua +0 -43
- package/types/entity.d.tlua +2 -1319
- package/types/ents.d.tlua +0 -44
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +0 -79
- package/types/file_class.d.tlua +0 -1
- package/types/fingerposer.d.tlua +0 -1
- package/types/fingervar.d.tlua +0 -1
- package/types/frame.d.tlua +0 -1
- package/types/frame_blend.d.tlua +0 -15
- package/types/game.d.tlua +0 -79
- package/types/gameevent.d.tlua +4 -9
- package/types/gamemode.d.tlua +0 -6
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +0 -535
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +0 -9
- package/types/gui.d.tlua +0 -43
- package/types/gwen.d.tlua +0 -7
- package/types/halo.d.tlua +0 -5
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +0 -9
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +0 -3
- package/types/iconeditor.d.tlua +1 -22
- package/types/igmodaudiochannel.d.tlua +0 -83
- package/types/imagecheckbox.d.tlua +1 -8
- package/types/imaterial.d.tlua +0 -53
- package/types/imesh.d.tlua +0 -11
- package/types/input.d.tlua +0 -47
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +0 -19
- package/types/isave.d.tlua +0 -19
- package/types/itexture.d.tlua +0 -21
- package/types/ivideowriter.d.tlua +0 -11
- package/types/jit.d.tlua +9 -42
- package/types/killicon.d.tlua +0 -15
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +0 -3
- package/types/list.d.tlua +0 -17
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +0 -5
- package/types/markupobject.d.tlua +0 -11
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +200 -371
- package/types/matproxy.d.tlua +0 -7
- package/types/matselect.d.tlua +1 -22
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +0 -5
- package/types/mesh.d.tlua +0 -39
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +0 -21
- package/types/navmesh.d.tlua +0 -53
- package/types/net.d.tlua +0 -104
- package/types/nextbot.d.tlua +10 -83
- package/types/notification.d.tlua +0 -5
- package/types/npc.d.tlua +1 -364
- package/types/numpad.d.tlua +0 -15
- package/types/os.d.tlua +0 -8
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +2 -662
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +0 -63
- package/types/permissions.d.tlua +0 -13
- package/types/physcollide.d.tlua +0 -7
- package/types/physenv.d.tlua +0 -23
- package/types/physobj.d.tlua +0 -157
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +11 -594
- package/types/player_manager.d.tlua +0 -27
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +0 -13
- package/types/projectedtexture.d.tlua +0 -97
- package/types/properties.d.tlua +0 -11
- package/types/propselect.d.tlua +1 -10
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +0 -285
- package/types/resource.d.tlua +0 -5
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +1 -108
- package/types/saverestore.d.tlua +0 -25
- package/types/schedule.d.tlua +0 -13
- package/types/scripted_ents.d.tlua +0 -21
- package/types/search.d.tlua +0 -3
- package/types/serverlist.d.tlua +0 -15
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +0 -21
- package/types/spawnicon.d.tlua +1 -16
- package/types/spawnmenu.d.tlua +0 -48
- package/types/spawnmenucontentpanel.d.tlua +1 -10
- package/types/sql.d.tlua +0 -19
- package/types/stack.d.tlua +0 -11
- package/types/steamworks.d.tlua +0 -37
- package/types/string.d.tlua +0 -96
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +0 -69
- package/types/surfaceinfo.d.tlua +0 -11
- package/types/system.d.tlua +0 -21
- package/types/table.d.tlua +0 -93
- package/types/task.d.tlua +0 -19
- package/types/team.d.tlua +0 -39
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +0 -29
- package/types/tool.d.tlua +1 -90
- package/types/ugcpublishwindow.d.tlua +1 -18
- package/types/umsg.d.tlua +0 -25
- package/types/undo.d.tlua +0 -21
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +0 -5
- package/types/utf8.d.tlua +0 -15
- package/types/util.d.tlua +0 -185
- package/types/vector.d.tlua +0 -73
- package/types/vehicle.d.tlua +2 -102
- package/types/vgui.d.tlua +0 -33
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +0 -71
- package/types/weapon.d.tlua +2 -168
- package/types/weapons.d.tlua +0 -12
- package/types/widgets.d.tlua +0 -3
- package/types/workshopfilebase.d.tlua +0 -11
package/types/umsg.d.tlua
CHANGED
|
@@ -18,9 +18,7 @@ interface UmsgLib {
|
|
|
18
18
|
* @deprecated You should be using the net instead
|
|
19
19
|
*/
|
|
20
20
|
Angle(angle: Angle): void;
|
|
21
|
-
}
|
|
22
21
|
|
|
23
|
-
interface UmsgLib {
|
|
24
22
|
/**
|
|
25
23
|
* Writes a bool to the usermessage.
|
|
26
24
|
* @realm server
|
|
@@ -28,9 +26,7 @@ interface UmsgLib {
|
|
|
28
26
|
* @deprecated You should be using the net instead
|
|
29
27
|
*/
|
|
30
28
|
Bool(bool: boolean): void;
|
|
31
|
-
}
|
|
32
29
|
|
|
33
|
-
interface UmsgLib {
|
|
34
30
|
/**
|
|
35
31
|
* Writes a signed char to the usermessage.
|
|
36
32
|
* @realm server
|
|
@@ -38,9 +34,7 @@ interface UmsgLib {
|
|
|
38
34
|
* @deprecated You should be using the net instead
|
|
39
35
|
*/
|
|
40
36
|
Char(char: number): void;
|
|
41
|
-
}
|
|
42
37
|
|
|
43
|
-
interface UmsgLib {
|
|
44
38
|
/**
|
|
45
39
|
* Dispatches the usermessage to the client(s).
|
|
46
40
|
* @realm server
|
|
@@ -48,9 +42,7 @@ interface UmsgLib {
|
|
|
48
42
|
* @deprecated You should be using the net instead
|
|
49
43
|
*/
|
|
50
44
|
End(): void;
|
|
51
|
-
}
|
|
52
45
|
|
|
53
|
-
interface UmsgLib {
|
|
54
46
|
/**
|
|
55
47
|
* Writes an entity object to the usermessage. (As an entity handle, which means the entity index + its serial number)
|
|
56
48
|
* @realm server
|
|
@@ -58,9 +50,7 @@ interface UmsgLib {
|
|
|
58
50
|
* @deprecated You should be using the net instead
|
|
59
51
|
*/
|
|
60
52
|
Entity(entity: Entity): void;
|
|
61
|
-
}
|
|
62
53
|
|
|
63
|
-
interface UmsgLib {
|
|
64
54
|
/**
|
|
65
55
|
* Writes a float to the usermessage.
|
|
66
56
|
* @realm server
|
|
@@ -68,9 +58,7 @@ interface UmsgLib {
|
|
|
68
58
|
* @deprecated You should be using the net instead
|
|
69
59
|
*/
|
|
70
60
|
Float(float: number): void;
|
|
71
|
-
}
|
|
72
61
|
|
|
73
|
-
interface UmsgLib {
|
|
74
62
|
/**
|
|
75
63
|
* Writes a signed int (32 bit) to the usermessage.
|
|
76
64
|
* @realm server
|
|
@@ -78,9 +66,7 @@ interface UmsgLib {
|
|
|
78
66
|
* @deprecated You should be using the net instead
|
|
79
67
|
*/
|
|
80
68
|
Long(int: number): void;
|
|
81
|
-
}
|
|
82
69
|
|
|
83
|
-
interface UmsgLib {
|
|
84
70
|
/**
|
|
85
71
|
* The string specified will be networked to the client and receive a identifying number, which will be sent instead of the string to optimize networking.
|
|
86
72
|
*
|
|
@@ -89,9 +75,7 @@ interface UmsgLib {
|
|
|
89
75
|
* @deprecated Inferior version of util.AddNetworkString
|
|
90
76
|
*/
|
|
91
77
|
PoolString(string: string): void;
|
|
92
|
-
}
|
|
93
78
|
|
|
94
|
-
interface UmsgLib {
|
|
95
79
|
/**
|
|
96
80
|
* Writes a signed short (16 bit) to the usermessage.
|
|
97
81
|
* @realm server
|
|
@@ -99,9 +83,7 @@ interface UmsgLib {
|
|
|
99
83
|
* @deprecated You should be using the net instead
|
|
100
84
|
*/
|
|
101
85
|
Short(short: number): void;
|
|
102
|
-
}
|
|
103
86
|
|
|
104
|
-
interface UmsgLib {
|
|
105
87
|
/**
|
|
106
88
|
* Starts a new usermessage.
|
|
107
89
|
*
|
|
@@ -113,9 +95,7 @@ interface UmsgLib {
|
|
|
113
95
|
* @deprecated You should be using net instead
|
|
114
96
|
*/
|
|
115
97
|
Start(name: string, filter?: Player): void;
|
|
116
|
-
}
|
|
117
98
|
|
|
118
|
-
interface UmsgLib {
|
|
119
99
|
/**
|
|
120
100
|
* Writes a null terminated string to the usermessage.
|
|
121
101
|
* @realm server
|
|
@@ -123,9 +103,7 @@ interface UmsgLib {
|
|
|
123
103
|
* @deprecated You should be using the net instead
|
|
124
104
|
*/
|
|
125
105
|
String(string: string): void;
|
|
126
|
-
}
|
|
127
106
|
|
|
128
|
-
interface UmsgLib {
|
|
129
107
|
/**
|
|
130
108
|
* Writes a Vector to the usermessage.
|
|
131
109
|
* @realm server
|
|
@@ -133,9 +111,7 @@ interface UmsgLib {
|
|
|
133
111
|
* @deprecated You should be using the net instead
|
|
134
112
|
*/
|
|
135
113
|
Vector(vector: Vector): void;
|
|
136
|
-
}
|
|
137
114
|
|
|
138
|
-
interface UmsgLib {
|
|
139
115
|
/**
|
|
140
116
|
* Writes a vector normal to the usermessage.
|
|
141
117
|
* @realm server
|
|
@@ -144,4 +120,3 @@ interface UmsgLib {
|
|
|
144
120
|
*/
|
|
145
121
|
VectorNormal(normal: Vector): void;
|
|
146
122
|
}
|
|
147
|
-
|
package/types/undo.d.tlua
CHANGED
|
@@ -13,27 +13,21 @@ interface UndoLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/undo.AddEntity
|
|
14
14
|
*/
|
|
15
15
|
AddEntity(ent: Entity): void;
|
|
16
|
-
}
|
|
17
16
|
|
|
18
|
-
interface UndoLib {
|
|
19
17
|
/**
|
|
20
18
|
* Adds a function to call when the current undo block is undone. Note that if an undo has a function, the player will always be notified when this undo is performed, even if the entity it is meant to undo no longer exists.
|
|
21
19
|
* @realm server
|
|
22
20
|
* @source https://wiki.facepunch.com/gmod/undo.AddFunction
|
|
23
21
|
*/
|
|
24
22
|
AddFunction(func: (undo: table, ...: any) => boolean, ...: any): void;
|
|
25
|
-
}
|
|
26
23
|
|
|
27
|
-
interface UndoLib {
|
|
28
24
|
/**
|
|
29
25
|
* Begins a new undo entry
|
|
30
26
|
* @realm server
|
|
31
27
|
* @source https://wiki.facepunch.com/gmod/undo.Create
|
|
32
28
|
*/
|
|
33
29
|
Create(name: string): void;
|
|
34
|
-
}
|
|
35
30
|
|
|
36
|
-
interface UndoLib {
|
|
37
31
|
/**
|
|
38
32
|
* Processes an undo block (in table form). This is used internally by the undo manager when a player presses Z.
|
|
39
33
|
*
|
|
@@ -43,18 +37,14 @@ interface UndoLib {
|
|
|
43
37
|
* @source https://wiki.facepunch.com/gmod/undo.Do_Undo
|
|
44
38
|
*/
|
|
45
39
|
Do_Undo(tab: Undo): number;
|
|
46
|
-
}
|
|
47
40
|
|
|
48
|
-
interface UndoLib {
|
|
49
41
|
/**
|
|
50
42
|
* Completes an undo entry, and registers it with the player's client
|
|
51
43
|
* @realm server
|
|
52
44
|
* @source https://wiki.facepunch.com/gmod/undo.Finish
|
|
53
45
|
*/
|
|
54
46
|
Finish(NiceText?: string): void;
|
|
55
|
-
}
|
|
56
47
|
|
|
57
|
-
interface UndoLib {
|
|
58
48
|
/**
|
|
59
49
|
* Serverside, returns a table containing all undo blocks of all players. Clientside, returns a table of the local player's undo blocks.
|
|
60
50
|
* **NOTE**: Serverside, this table's keys use [Player:UniqueID](https://wiki.facepunch.com/gmod/Player:UniqueID) to store a player's undo blocks.
|
|
@@ -64,9 +54,7 @@ interface UndoLib {
|
|
|
64
54
|
* @source https://wiki.facepunch.com/gmod/undo.GetTable
|
|
65
55
|
*/
|
|
66
56
|
GetTable(): Undo[];
|
|
67
|
-
}
|
|
68
57
|
|
|
69
|
-
interface UndoLib {
|
|
70
58
|
/**
|
|
71
59
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
72
60
|
*
|
|
@@ -76,9 +64,7 @@ interface UndoLib {
|
|
|
76
64
|
* @source https://wiki.facepunch.com/gmod/undo.MakeUIDirty
|
|
77
65
|
*/
|
|
78
66
|
MakeUIDirty(): void;
|
|
79
|
-
}
|
|
80
67
|
|
|
81
|
-
interface UndoLib {
|
|
82
68
|
/**
|
|
83
69
|
* Replaces any instance of the "from" reference with the "to" reference, in any existing undo block.
|
|
84
70
|
*
|
|
@@ -88,27 +74,21 @@ interface UndoLib {
|
|
|
88
74
|
* @source https://wiki.facepunch.com/gmod/undo.ReplaceEntity
|
|
89
75
|
*/
|
|
90
76
|
ReplaceEntity(from: Entity, to: Entity | nil): boolean;
|
|
91
|
-
}
|
|
92
77
|
|
|
93
|
-
interface UndoLib {
|
|
94
78
|
/**
|
|
95
79
|
* Sets a custom undo text for the current undo block
|
|
96
80
|
* @realm server
|
|
97
81
|
* @source https://wiki.facepunch.com/gmod/undo.SetCustomUndoText
|
|
98
82
|
*/
|
|
99
83
|
SetCustomUndoText(customText: string): void;
|
|
100
|
-
}
|
|
101
84
|
|
|
102
|
-
interface UndoLib {
|
|
103
85
|
/**
|
|
104
86
|
* Sets the player which the current undo block belongs to
|
|
105
87
|
* @realm server
|
|
106
88
|
* @source https://wiki.facepunch.com/gmod/undo.SetPlayer
|
|
107
89
|
*/
|
|
108
90
|
SetPlayer(ply: Player): void;
|
|
109
|
-
}
|
|
110
91
|
|
|
111
|
-
interface UndoLib {
|
|
112
92
|
/**
|
|
113
93
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
114
94
|
*
|
|
@@ -119,4 +99,3 @@ interface UndoLib {
|
|
|
119
99
|
*/
|
|
120
100
|
SetupUI(): void;
|
|
121
101
|
}
|
|
122
|
-
|
package/types/urllabel.d.tlua
CHANGED
package/types/usermessage.d.tlua
CHANGED
|
@@ -18,9 +18,7 @@ interface UsermessageLib {
|
|
|
18
18
|
* @deprecated You should be using net instead
|
|
19
19
|
*/
|
|
20
20
|
GetTable(): table;
|
|
21
|
-
}
|
|
22
21
|
|
|
23
|
-
interface UsermessageLib {
|
|
24
22
|
/**
|
|
25
23
|
* Sets a hook for the specified to be called when a usermessage with the specified name arrives.
|
|
26
24
|
*
|
|
@@ -32,9 +30,7 @@ interface UsermessageLib {
|
|
|
32
30
|
* @deprecated You should be using net instead
|
|
33
31
|
*/
|
|
34
32
|
Hook(name: string, callback: (msg: bf_read, ...: any) => void, ...: any): void;
|
|
35
|
-
}
|
|
36
33
|
|
|
37
|
-
interface UsermessageLib {
|
|
38
34
|
/**
|
|
39
35
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
40
36
|
*
|
|
@@ -45,4 +41,3 @@ interface UsermessageLib {
|
|
|
45
41
|
*/
|
|
46
42
|
IncomingMessage(name: string, msg: bf_read): void;
|
|
47
43
|
}
|
|
48
|
-
|
package/types/utf8.d.tlua
CHANGED
|
@@ -16,36 +16,28 @@ interface Utf8Lib {
|
|
|
16
16
|
* @source https://wiki.facepunch.com/gmod/utf8.GetChar
|
|
17
17
|
*/
|
|
18
18
|
GetChar(str: string, index: number): string;
|
|
19
|
-
}
|
|
20
19
|
|
|
21
|
-
interface Utf8Lib {
|
|
22
20
|
/**
|
|
23
21
|
* Receives zero or more integers, converts each one to its corresponding UTF-8 byte sequence and returns a string with the concatenation of all these sequences.
|
|
24
22
|
* @realm shared and menu
|
|
25
23
|
* @source https://wiki.facepunch.com/gmod/utf8.char
|
|
26
24
|
*/
|
|
27
25
|
char(...: any): string;
|
|
28
|
-
}
|
|
29
26
|
|
|
30
|
-
interface Utf8Lib {
|
|
31
27
|
/**
|
|
32
28
|
* Returns the codepoints (as numbers) from all characters in the given string that start between byte position startPos and endPos. It raises an error if it meets any invalid byte sequence. This functions similarly to [string.byte](https://wiki.facepunch.com/gmod/string.byte).
|
|
33
29
|
* @realm shared and menu
|
|
34
30
|
* @source https://wiki.facepunch.com/gmod/utf8.codepoint
|
|
35
31
|
*/
|
|
36
32
|
codepoint(string: string, startPos?: number, endPos?: number): (...any);
|
|
37
|
-
}
|
|
38
33
|
|
|
39
|
-
interface Utf8Lib {
|
|
40
34
|
/**
|
|
41
35
|
* Returns an iterator (like [string.gmatch](https://wiki.facepunch.com/gmod/string.gmatch)) which returns both the position and codepoint of each utf8 character in the string. It raises an error if it meets any invalid byte sequence.
|
|
42
36
|
* @realm shared and menu
|
|
43
37
|
* @source https://wiki.facepunch.com/gmod/utf8.codes
|
|
44
38
|
*/
|
|
45
39
|
codes(string: string): function;
|
|
46
|
-
}
|
|
47
40
|
|
|
48
|
-
interface Utf8Lib {
|
|
49
41
|
/**
|
|
50
42
|
* Forces a string to contain only valid UTF-8 data. Invalid sequences are replaced with U+FFFD (the Unicode replacement character).
|
|
51
43
|
*
|
|
@@ -55,27 +47,21 @@ interface Utf8Lib {
|
|
|
55
47
|
* @source https://wiki.facepunch.com/gmod/utf8.force
|
|
56
48
|
*/
|
|
57
49
|
force(string: string): string;
|
|
58
|
-
}
|
|
59
50
|
|
|
60
|
-
interface Utf8Lib {
|
|
61
51
|
/**
|
|
62
52
|
* Returns the number of UTF-8 sequences in the given string between positions startPos and endPos (both inclusive). If it finds any invalid UTF-8 byte sequence, returns false as well as the position of the first invalid byte.
|
|
63
53
|
* @realm shared and menu
|
|
64
54
|
* @source https://wiki.facepunch.com/gmod/utf8.len
|
|
65
55
|
*/
|
|
66
56
|
len(string: string, startPos?: number, endPos?: number): (number, number);
|
|
67
|
-
}
|
|
68
57
|
|
|
69
|
-
interface Utf8Lib {
|
|
70
58
|
/**
|
|
71
59
|
* Returns the byte-index of the n'th UTF-8-character after the given startPos (nil if none). startPos defaults to 1 when n is positive and -1 when n is negative. If n is zero, this function instead returns the byte-index of the UTF-8-character startPos lies within.
|
|
72
60
|
* @realm shared and menu
|
|
73
61
|
* @source https://wiki.facepunch.com/gmod/utf8.offset
|
|
74
62
|
*/
|
|
75
63
|
offset(string: string, n: number, startPos?: number): number;
|
|
76
|
-
}
|
|
77
64
|
|
|
78
|
-
interface Utf8Lib {
|
|
79
65
|
/**
|
|
80
66
|
* A UTF-8 compatible version of [string.sub](https://wiki.facepunch.com/gmod/string.sub).
|
|
81
67
|
* **WARNING**: Avoid using this function on large strings every tick/frame, as it may cause lags.
|
|
@@ -86,4 +72,3 @@ interface Utf8Lib {
|
|
|
86
72
|
*/
|
|
87
73
|
sub(string: string, StartPos: number, EndPos?: number): string;
|
|
88
74
|
}
|
|
89
|
-
|