@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/table.d.tlua
CHANGED
|
@@ -18,27 +18,21 @@ interface TableLib {
|
|
|
18
18
|
* @source https://wiki.facepunch.com/gmod/table.Add
|
|
19
19
|
*/
|
|
20
20
|
Add(target: table, source: table): table;
|
|
21
|
-
}
|
|
22
21
|
|
|
23
|
-
interface TableLib {
|
|
24
22
|
/**
|
|
25
23
|
* Changes all keys to sequential integers. This creates a new table object and does not affect the original.
|
|
26
24
|
* @realm shared and menu
|
|
27
25
|
* @source https://wiki.facepunch.com/gmod/table.ClearKeys
|
|
28
26
|
*/
|
|
29
27
|
ClearKeys(table: table, saveKeys?: boolean): table;
|
|
30
|
-
}
|
|
31
28
|
|
|
32
|
-
interface TableLib {
|
|
33
29
|
/**
|
|
34
30
|
* Collapses a table with keyvalue structure
|
|
35
31
|
* @realm shared and menu
|
|
36
32
|
* @source https://wiki.facepunch.com/gmod/table.CollapseKeyValue
|
|
37
33
|
*/
|
|
38
34
|
CollapseKeyValue(input: table): table;
|
|
39
|
-
}
|
|
40
35
|
|
|
41
|
-
interface TableLib {
|
|
42
36
|
/**
|
|
43
37
|
* Creates and returns a deep copy of a table.
|
|
44
38
|
*
|
|
@@ -49,19 +43,14 @@ interface TableLib {
|
|
|
49
43
|
* @source https://wiki.facepunch.com/gmod/table.Copy
|
|
50
44
|
*/
|
|
51
45
|
Copy<T extends table>(originalTable: T): T;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
46
|
|
|
55
|
-
interface TableLib {
|
|
56
47
|
/**
|
|
57
48
|
* Empties the target table, and merges all values from the source table into it.
|
|
58
49
|
* @realm shared and menu
|
|
59
50
|
* @source https://wiki.facepunch.com/gmod/table.CopyFromTo
|
|
60
51
|
*/
|
|
61
52
|
CopyFromTo(source: table, target: table): void;
|
|
62
|
-
}
|
|
63
53
|
|
|
64
|
-
interface TableLib {
|
|
65
54
|
/**
|
|
66
55
|
* Counts the amount of keys in a table. This should only be used when a table is not numerically and sequentially indexed. For those tables, consider the length (**#**) operator.
|
|
67
56
|
*
|
|
@@ -71,27 +60,21 @@ interface TableLib {
|
|
|
71
60
|
* @source https://wiki.facepunch.com/gmod/table.Count
|
|
72
61
|
*/
|
|
73
62
|
Count(tbl: table): number;
|
|
74
|
-
}
|
|
75
63
|
|
|
76
|
-
interface TableLib {
|
|
77
64
|
/**
|
|
78
65
|
* Converts a table that has been sanitised with [table.Sanitise](https://wiki.facepunch.com/gmod/table.Sanitise) back to its original form
|
|
79
66
|
* @realm shared and menu
|
|
80
67
|
* @source https://wiki.facepunch.com/gmod/table.DeSanitise
|
|
81
68
|
*/
|
|
82
69
|
DeSanitise(tbl: table): table;
|
|
83
|
-
}
|
|
84
70
|
|
|
85
|
-
interface TableLib {
|
|
86
71
|
/**
|
|
87
72
|
* Removes all values from a table. If your table is not a metatable, it is almost always better to use `tab = {}` to preserve performance.
|
|
88
73
|
* @realm shared and menu
|
|
89
74
|
* @source https://wiki.facepunch.com/gmod/table.Empty
|
|
90
75
|
*/
|
|
91
76
|
Empty(tbl: table): void;
|
|
92
|
-
}
|
|
93
77
|
|
|
94
|
-
interface TableLib {
|
|
95
78
|
/**
|
|
96
79
|
* Returns the value positioned after the supplied value in a table. If it isn't found then the first element in the table is returned
|
|
97
80
|
*
|
|
@@ -100,9 +83,7 @@ interface TableLib {
|
|
|
100
83
|
* @deprecated Instead, iterate the table using ipairs or increment from the previous index using Global.next. Non-numerically indexed tables are not ordered.
|
|
101
84
|
*/
|
|
102
85
|
FindNext(tbl: table, value: any): any;
|
|
103
|
-
}
|
|
104
86
|
|
|
105
|
-
interface TableLib {
|
|
106
87
|
/**
|
|
107
88
|
* Returns the value positioned before the supplied value in a table. If it isn't found then the last element in the table is returned
|
|
108
89
|
*
|
|
@@ -111,9 +92,7 @@ interface TableLib {
|
|
|
111
92
|
* @deprecated Instead, iterate your table with ipairs, storing the previous value and checking for the target. Non-numerically indexed tables are not ordered.
|
|
112
93
|
*/
|
|
113
94
|
FindPrev(tbl: table, value: any): any;
|
|
114
|
-
}
|
|
115
95
|
|
|
116
|
-
interface TableLib {
|
|
117
96
|
/**
|
|
118
97
|
* Flips key-value pairs of each element within a table, so that each value becomes the key, and each key becomes the value.
|
|
119
98
|
*
|
|
@@ -131,18 +110,14 @@ interface TableLib {
|
|
|
131
110
|
* @source https://wiki.facepunch.com/gmod/table.Flip
|
|
132
111
|
*/
|
|
133
112
|
Flip(input: table): table;
|
|
134
|
-
}
|
|
135
113
|
|
|
136
|
-
interface TableLib {
|
|
137
114
|
/**
|
|
138
115
|
* Inserts a value in to the given table even if the table is non-existent
|
|
139
116
|
* @realm shared and menu
|
|
140
117
|
* @source https://wiki.facepunch.com/gmod/table.ForceInsert
|
|
141
118
|
*/
|
|
142
119
|
ForceInsert(tab?: table, value?: any): table;
|
|
143
|
-
}
|
|
144
120
|
|
|
145
|
-
interface TableLib {
|
|
146
121
|
/**
|
|
147
122
|
* Returns the first key found in the given table
|
|
148
123
|
*
|
|
@@ -151,9 +126,7 @@ interface TableLib {
|
|
|
151
126
|
* @deprecated Instead, expect the first key to be 1. Non-numerically indexed tables are not ordered and do not have a first key.
|
|
152
127
|
*/
|
|
153
128
|
GetFirstKey(tab: table): any;
|
|
154
|
-
}
|
|
155
129
|
|
|
156
|
-
interface TableLib {
|
|
157
130
|
/**
|
|
158
131
|
* Returns the first value found in the given table
|
|
159
132
|
*
|
|
@@ -162,18 +135,14 @@ interface TableLib {
|
|
|
162
135
|
* @deprecated Instead, index the table with a key of 1. Non-numerically indexed tables are not ordered and do not have a first key.
|
|
163
136
|
*/
|
|
164
137
|
GetFirstValue(tab: table): any;
|
|
165
|
-
}
|
|
166
138
|
|
|
167
|
-
interface TableLib {
|
|
168
139
|
/**
|
|
169
140
|
* Returns all keys of a table.
|
|
170
141
|
* @realm shared and menu
|
|
171
142
|
* @source https://wiki.facepunch.com/gmod/table.GetKeys
|
|
172
143
|
*/
|
|
173
144
|
GetKeys(tabl: table): table;
|
|
174
|
-
}
|
|
175
145
|
|
|
176
|
-
interface TableLib {
|
|
177
146
|
/**
|
|
178
147
|
* Returns the last key found in the given table
|
|
179
148
|
*
|
|
@@ -182,9 +151,7 @@ interface TableLib {
|
|
|
182
151
|
* @deprecated Instead, use the result of the length (#) operator, ensuring it is not zero. Non-numerically indexed tables are not ordered and do not have a last key.
|
|
183
152
|
*/
|
|
184
153
|
GetLastKey(tab: table): any;
|
|
185
|
-
}
|
|
186
154
|
|
|
187
|
-
interface TableLib {
|
|
188
155
|
/**
|
|
189
156
|
* Returns the last value found in the given table
|
|
190
157
|
*
|
|
@@ -193,18 +160,14 @@ interface TableLib {
|
|
|
193
160
|
* @deprecated Instead, index the table with the result of the length (#) operator, ensuring it is not zero. Non-numerically indexed tables are not ordered and do not have a last key.
|
|
194
161
|
*/
|
|
195
162
|
GetLastValue(tab: table): any;
|
|
196
|
-
}
|
|
197
163
|
|
|
198
|
-
interface TableLib {
|
|
199
164
|
/**
|
|
200
165
|
* Returns a key of the supplied table with the highest number value.
|
|
201
166
|
* @realm shared and menu
|
|
202
167
|
* @source https://wiki.facepunch.com/gmod/table.GetWinningKey
|
|
203
168
|
*/
|
|
204
169
|
GetWinningKey(inputTable: table): any;
|
|
205
|
-
}
|
|
206
170
|
|
|
207
|
-
interface TableLib {
|
|
208
171
|
/**
|
|
209
172
|
* Checks if a table has a value.
|
|
210
173
|
* **WARNING**: This function is **very inefficient for large tables** (O(n)) and should probably not be called in things that run each frame. Instead, consider a table structure such as example 2 below. Also see: [Tables: Bad Habits](https://wiki.facepunch.com/gmod/Tables:_Bad_Habits)
|
|
@@ -216,9 +179,7 @@ interface TableLib {
|
|
|
216
179
|
* @source https://wiki.facepunch.com/gmod/table.HasValue
|
|
217
180
|
*/
|
|
218
181
|
HasValue(tbl: table, value: any): boolean;
|
|
219
|
-
}
|
|
220
182
|
|
|
221
|
-
interface TableLib {
|
|
222
183
|
/**
|
|
223
184
|
* Copies any missing data from `base` to `target`, and sets the `target`'s `BaseClass` member to the `base` table's pointer.
|
|
224
185
|
*
|
|
@@ -233,9 +194,7 @@ interface TableLib {
|
|
|
233
194
|
* @source https://wiki.facepunch.com/gmod/table.Inherit
|
|
234
195
|
*/
|
|
235
196
|
Inherit(target: table, base: table): table;
|
|
236
|
-
}
|
|
237
197
|
|
|
238
|
-
interface TableLib {
|
|
239
198
|
/**
|
|
240
199
|
* Returns whether or not the given table is empty.
|
|
241
200
|
*
|
|
@@ -247,45 +206,35 @@ interface TableLib {
|
|
|
247
206
|
* @source https://wiki.facepunch.com/gmod/table.IsEmpty
|
|
248
207
|
*/
|
|
249
208
|
IsEmpty(tab: table): boolean;
|
|
250
|
-
}
|
|
251
209
|
|
|
252
|
-
interface TableLib {
|
|
253
210
|
/**
|
|
254
211
|
* Returns whether or not the table's keys are sequential
|
|
255
212
|
* @realm shared and menu
|
|
256
213
|
* @source https://wiki.facepunch.com/gmod/table.IsSequential
|
|
257
214
|
*/
|
|
258
215
|
IsSequential(tab: table): boolean;
|
|
259
|
-
}
|
|
260
216
|
|
|
261
|
-
interface TableLib {
|
|
262
217
|
/**
|
|
263
218
|
* Returns the first key found to be containing the supplied value
|
|
264
219
|
* @realm shared and menu
|
|
265
220
|
* @source https://wiki.facepunch.com/gmod/table.KeyFromValue
|
|
266
221
|
*/
|
|
267
222
|
KeyFromValue(tab: table, value: any): any;
|
|
268
|
-
}
|
|
269
223
|
|
|
270
|
-
interface TableLib {
|
|
271
224
|
/**
|
|
272
225
|
* Returns a table of keys containing the supplied value
|
|
273
226
|
* @realm shared and menu
|
|
274
227
|
* @source https://wiki.facepunch.com/gmod/table.KeysFromValue
|
|
275
228
|
*/
|
|
276
229
|
KeysFromValue(tab: table, value: any): table;
|
|
277
|
-
}
|
|
278
230
|
|
|
279
|
-
interface TableLib {
|
|
280
231
|
/**
|
|
281
232
|
* Returns a copy of the input table with all string keys converted to be lowercase recursively
|
|
282
233
|
* @realm shared and menu
|
|
283
234
|
* @source https://wiki.facepunch.com/gmod/table.LowerKeyNames
|
|
284
235
|
*/
|
|
285
236
|
LowerKeyNames(tbl: table): table;
|
|
286
|
-
}
|
|
287
237
|
|
|
288
|
-
interface TableLib {
|
|
289
238
|
/**
|
|
290
239
|
* Returns an array of values of given with given key from each table of given table.
|
|
291
240
|
*
|
|
@@ -294,9 +243,7 @@ interface TableLib {
|
|
|
294
243
|
* @source https://wiki.facepunch.com/gmod/table.MemberValuesFromKey
|
|
295
244
|
*/
|
|
296
245
|
MemberValuesFromKey(inputTable: table, keyName: any): table;
|
|
297
|
-
}
|
|
298
246
|
|
|
299
|
-
interface TableLib {
|
|
300
247
|
/**
|
|
301
248
|
* **NOTE**: This function can cause a stack overflow under certain circumstances.
|
|
302
249
|
*
|
|
@@ -312,9 +259,7 @@ interface TableLib {
|
|
|
312
259
|
* @source https://wiki.facepunch.com/gmod/table.Merge
|
|
313
260
|
*/
|
|
314
261
|
Merge(destination: table, source: table, forceOverride?: boolean): table;
|
|
315
|
-
}
|
|
316
262
|
|
|
317
|
-
interface TableLib {
|
|
318
263
|
/**
|
|
319
264
|
* Packs a set of items into a table and returns the new table. It is meant as an alternative implementation of `table.pack` from newer versions of Lua.
|
|
320
265
|
*
|
|
@@ -322,9 +267,7 @@ interface TableLib {
|
|
|
322
267
|
* @source https://wiki.facepunch.com/gmod/table.Pack
|
|
323
268
|
*/
|
|
324
269
|
Pack(...: any): (table, number);
|
|
325
|
-
}
|
|
326
270
|
|
|
327
|
-
interface TableLib {
|
|
328
271
|
/**
|
|
329
272
|
* Returns a random value from the supplied table.
|
|
330
273
|
*
|
|
@@ -339,9 +282,7 @@ interface TableLib {
|
|
|
339
282
|
* @source https://wiki.facepunch.com/gmod/table.Random
|
|
340
283
|
*/
|
|
341
284
|
Random(haystack: table): (any, any);
|
|
342
|
-
}
|
|
343
285
|
|
|
344
|
-
interface TableLib {
|
|
345
286
|
/**
|
|
346
287
|
* Removes the first instance of a given value from the specified table with [table.remove](https://wiki.facepunch.com/gmod/table.remove), then returns the key that the value was found at.
|
|
347
288
|
*
|
|
@@ -351,18 +292,14 @@ interface TableLib {
|
|
|
351
292
|
* @source https://wiki.facepunch.com/gmod/table.RemoveByValue
|
|
352
293
|
*/
|
|
353
294
|
RemoveByValue(tbl: table, val: any): any;
|
|
354
|
-
}
|
|
355
295
|
|
|
356
|
-
interface TableLib {
|
|
357
296
|
/**
|
|
358
297
|
* Returns a reversed copy of a sequential table. Any non-sequential and non-numeric keyvalue pairs will not be copied.
|
|
359
298
|
* @realm shared and menu
|
|
360
299
|
* @source https://wiki.facepunch.com/gmod/table.Reverse
|
|
361
300
|
*/
|
|
362
301
|
Reverse(tbl: table): table;
|
|
363
|
-
}
|
|
364
302
|
|
|
365
|
-
interface TableLib {
|
|
366
303
|
/**
|
|
367
304
|
* Converts [Vector](https://wiki.facepunch.com/gmod/Vector)s, [Angle](https://wiki.facepunch.com/gmod/Angle)s and [boolean](https://wiki.facepunch.com/gmod/boolean)s to be able to be converted to and from key-values via [util.TableToKeyValues](https://wiki.facepunch.com/gmod/util.TableToKeyValues).
|
|
368
305
|
*
|
|
@@ -371,9 +308,7 @@ interface TableLib {
|
|
|
371
308
|
* @source https://wiki.facepunch.com/gmod/table.Sanitise
|
|
372
309
|
*/
|
|
373
310
|
Sanitise(tab: table): table;
|
|
374
|
-
}
|
|
375
311
|
|
|
376
|
-
interface TableLib {
|
|
377
312
|
/**
|
|
378
313
|
* Performs an inline [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle) on the table in `O(n)` time
|
|
379
314
|
*
|
|
@@ -381,9 +316,7 @@ interface TableLib {
|
|
|
381
316
|
* @source https://wiki.facepunch.com/gmod/table.Shuffle
|
|
382
317
|
*/
|
|
383
318
|
Shuffle(target: table): void;
|
|
384
|
-
}
|
|
385
319
|
|
|
386
|
-
interface TableLib {
|
|
387
320
|
/**
|
|
388
321
|
* Returns a list of keys sorted based on values of those keys.
|
|
389
322
|
*
|
|
@@ -393,18 +326,14 @@ interface TableLib {
|
|
|
393
326
|
* @source https://wiki.facepunch.com/gmod/table.SortByKey
|
|
394
327
|
*/
|
|
395
328
|
SortByKey(tab: table, descending?: boolean): table;
|
|
396
|
-
}
|
|
397
329
|
|
|
398
|
-
interface TableLib {
|
|
399
330
|
/**
|
|
400
331
|
* Sorts a table by a named member.
|
|
401
332
|
* @realm shared and menu
|
|
402
333
|
* @source https://wiki.facepunch.com/gmod/table.SortByMember
|
|
403
334
|
*/
|
|
404
335
|
SortByMember(tab: table, memberKey: any, ascending?: boolean): void;
|
|
405
|
-
}
|
|
406
336
|
|
|
407
|
-
interface TableLib {
|
|
408
337
|
/**
|
|
409
338
|
* Sorts a table in reverse order from [table.sort](https://wiki.facepunch.com/gmod/table.sort).
|
|
410
339
|
* **NOTE**: This function modifies the table you give to it. Like table.sort, it does not return anything.
|
|
@@ -414,27 +343,21 @@ interface TableLib {
|
|
|
414
343
|
* @source https://wiki.facepunch.com/gmod/table.SortDesc
|
|
415
344
|
*/
|
|
416
345
|
SortDesc(tbl: table): void;
|
|
417
|
-
}
|
|
418
346
|
|
|
419
|
-
interface TableLib {
|
|
420
347
|
/**
|
|
421
348
|
* Converts a table into a string
|
|
422
349
|
* @realm shared and menu
|
|
423
350
|
* @source https://wiki.facepunch.com/gmod/table.ToString
|
|
424
351
|
*/
|
|
425
352
|
ToString(tbl: table, displayName?: string, niceFormatting?: boolean): string;
|
|
426
|
-
}
|
|
427
353
|
|
|
428
|
-
interface TableLib {
|
|
429
354
|
/**
|
|
430
355
|
* Concatenates the contents of a table to a string.
|
|
431
356
|
* @realm shared and menu
|
|
432
357
|
* @source https://wiki.facepunch.com/gmod/table.concat
|
|
433
358
|
*/
|
|
434
359
|
concat(tbl: table, concatenator?: string, startPos?: number, endPos?: number): string;
|
|
435
|
-
}
|
|
436
360
|
|
|
437
|
-
interface TableLib {
|
|
438
361
|
/**
|
|
439
362
|
* Iterates for each key-value pair in the table, calling the function with the key and value of the pair. If the function returns anything, the loop is broken.
|
|
440
363
|
*
|
|
@@ -445,9 +368,7 @@ interface TableLib {
|
|
|
445
368
|
* @deprecated This was deprecated in Lua 5.1 and removed in 5.2. You should use Global.pairs instead.
|
|
446
369
|
*/
|
|
447
370
|
ForEach(tbl: table, callback: (key: any, val: any) => void): void;
|
|
448
|
-
}
|
|
449
371
|
|
|
450
|
-
interface TableLib {
|
|
451
372
|
/**
|
|
452
373
|
* Iterates for each numeric index in the table in order.
|
|
453
374
|
*
|
|
@@ -458,9 +379,7 @@ interface TableLib {
|
|
|
458
379
|
* @deprecated This was deprecated in Lua 5.1 and removed in 5.2. You should use Global.ipairs() instead.
|
|
459
380
|
*/
|
|
460
381
|
foreachi(table: table, func: function): void;
|
|
461
|
-
}
|
|
462
382
|
|
|
463
|
-
interface TableLib {
|
|
464
383
|
/**
|
|
465
384
|
* Returns the length of the table.
|
|
466
385
|
* @realm shared and menu
|
|
@@ -468,9 +387,7 @@ interface TableLib {
|
|
|
468
387
|
* @deprecated This function was deprecated in Lua 5.1 and is removed in 5.2. Use the length (#) operator instead.
|
|
469
388
|
*/
|
|
470
389
|
getn(tbl: table): number;
|
|
471
|
-
}
|
|
472
390
|
|
|
473
|
-
interface TableLib {
|
|
474
391
|
/**
|
|
475
392
|
* Inserts a value at the end of the table.
|
|
476
393
|
* @realm shared
|
|
@@ -486,19 +403,14 @@ interface TableLib {
|
|
|
486
403
|
* @realm menu
|
|
487
404
|
*/
|
|
488
405
|
insert(tbl: table, position: number, value: any): number;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
406
|
|
|
492
|
-
interface TableLib {
|
|
493
407
|
/**
|
|
494
408
|
* Returns the highest numerical key.
|
|
495
409
|
* @realm shared and menu
|
|
496
410
|
* @source https://wiki.facepunch.com/gmod/table.maxn
|
|
497
411
|
*/
|
|
498
412
|
maxn(tbl: table): number;
|
|
499
|
-
}
|
|
500
413
|
|
|
501
|
-
interface TableLib {
|
|
502
414
|
/**
|
|
503
415
|
* Moves elements from one part of a table to another part a given table. This is similar to assigning elements from the source table to the destination table in multiple assignments.
|
|
504
416
|
*
|
|
@@ -506,9 +418,7 @@ interface TableLib {
|
|
|
506
418
|
* @source https://wiki.facepunch.com/gmod/table.move
|
|
507
419
|
*/
|
|
508
420
|
move(sourceTbl: table, from: number, to: number, dest: number, destTbl?: table): table;
|
|
509
|
-
}
|
|
510
421
|
|
|
511
|
-
interface TableLib {
|
|
512
422
|
/**
|
|
513
423
|
* Removes a value from a table and shifts any other values down to fill the gap.
|
|
514
424
|
* **NOTE**: Does nothing if index is less than 1 or greater than `#tbl`
|
|
@@ -517,9 +427,7 @@ interface TableLib {
|
|
|
517
427
|
* @source https://wiki.facepunch.com/gmod/table.remove
|
|
518
428
|
*/
|
|
519
429
|
remove(tbl: table, index?: number): any;
|
|
520
|
-
}
|
|
521
430
|
|
|
522
|
-
interface TableLib {
|
|
523
431
|
/**
|
|
524
432
|
* Sorts a sequential table either ascending or by the given sort function.
|
|
525
433
|
* **NOTE**: This function modifies the table you give to it and internally uses the [quick sort algorithm](http://www.lua.org/source/5.2/ltablib.c.html#sort).
|
|
@@ -530,4 +438,3 @@ interface TableLib {
|
|
|
530
438
|
*/
|
|
531
439
|
sort(tbl: table, sorter?: (a: any, b: any) => boolean): void;
|
|
532
440
|
}
|
|
533
|
-
|
package/types/task.d.tlua
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* A single AI task. Returned by [ai_task.New](https://wiki.facepunch.com/gmod/ai_task.New).
|
|
5
5
|
* @source https://wiki.facepunch.com/gmod/Task
|
|
6
6
|
*/
|
|
7
|
-
interface Task {}
|
|
8
|
-
|
|
9
7
|
interface Task {
|
|
10
8
|
/**
|
|
11
9
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
@@ -14,54 +12,42 @@ interface Task {
|
|
|
14
12
|
* @source https://wiki.facepunch.com/gmod/Task:Init
|
|
15
13
|
*/
|
|
16
14
|
Init(self: Task): void;
|
|
17
|
-
}
|
|
18
15
|
|
|
19
|
-
interface Task {
|
|
20
16
|
/**
|
|
21
17
|
* Initialises the AI task as an engine task.
|
|
22
18
|
* @realm server
|
|
23
19
|
* @source https://wiki.facepunch.com/gmod/Task:InitEngine
|
|
24
20
|
*/
|
|
25
21
|
InitEngine(self: Task, taskname: string, taskdata: number): void;
|
|
26
|
-
}
|
|
27
22
|
|
|
28
|
-
interface Task {
|
|
29
23
|
/**
|
|
30
24
|
* Initialises the AI task as NPC method-based.
|
|
31
25
|
* @realm server
|
|
32
26
|
* @source https://wiki.facepunch.com/gmod/Task:InitFunctionName
|
|
33
27
|
*/
|
|
34
28
|
InitFunctionName(self: Task, startname: string, runname: string, taskdata: number): void;
|
|
35
|
-
}
|
|
36
29
|
|
|
37
|
-
interface Task {
|
|
38
30
|
/**
|
|
39
31
|
* Determines if the task is an engine task (`TYPE_ENGINE`, 1).
|
|
40
32
|
* @realm server
|
|
41
33
|
* @source https://wiki.facepunch.com/gmod/Task:IsEngineType
|
|
42
34
|
*/
|
|
43
35
|
IsEngineType(self: Task): void;
|
|
44
|
-
}
|
|
45
36
|
|
|
46
|
-
interface Task {
|
|
47
37
|
/**
|
|
48
38
|
* Determines if the task is an NPC method-based task (`TYPE_FNAME`, 2).
|
|
49
39
|
* @realm server
|
|
50
40
|
* @source https://wiki.facepunch.com/gmod/Task:IsFNameType
|
|
51
41
|
*/
|
|
52
42
|
IsFNameType(self: Task): void;
|
|
53
|
-
}
|
|
54
43
|
|
|
55
|
-
interface Task {
|
|
56
44
|
/**
|
|
57
45
|
* Runs the AI task.
|
|
58
46
|
* @realm server
|
|
59
47
|
* @source https://wiki.facepunch.com/gmod/Task:Run
|
|
60
48
|
*/
|
|
61
49
|
Run(self: Task, target: NPC): void;
|
|
62
|
-
}
|
|
63
50
|
|
|
64
|
-
interface Task {
|
|
65
51
|
/**
|
|
66
52
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
67
53
|
* Runs the AI task as an NPC method. This requires the task to be of type `TYPE_FNAME`.
|
|
@@ -69,18 +55,14 @@ interface Task {
|
|
|
69
55
|
* @source https://wiki.facepunch.com/gmod/Task:Run_FName
|
|
70
56
|
*/
|
|
71
57
|
Run_FName(self: Task, target: NPC): void;
|
|
72
|
-
}
|
|
73
58
|
|
|
74
|
-
interface Task {
|
|
75
59
|
/**
|
|
76
60
|
* Starts the AI task.
|
|
77
61
|
* @realm server
|
|
78
62
|
* @source https://wiki.facepunch.com/gmod/Task:Start
|
|
79
63
|
*/
|
|
80
64
|
Start(self: Task, target: NPC): void;
|
|
81
|
-
}
|
|
82
65
|
|
|
83
|
-
interface Task {
|
|
84
66
|
/**
|
|
85
67
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
86
68
|
* Starts the AI task as an NPC method.
|
|
@@ -89,4 +71,3 @@ interface Task {
|
|
|
89
71
|
*/
|
|
90
72
|
Start_FName(self: Task, target: NPC): void;
|
|
91
73
|
}
|
|
92
|
-
|
package/types/team.d.tlua
CHANGED
|
@@ -13,54 +13,42 @@ interface TeamLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/team.AddScore
|
|
14
14
|
*/
|
|
15
15
|
AddScore(index: number, increment: number): void;
|
|
16
|
-
}
|
|
17
16
|
|
|
18
|
-
interface TeamLib {
|
|
19
17
|
/**
|
|
20
18
|
* Returns the team index of the team with the least players. Falls back to TEAM_UNASSIGNED
|
|
21
19
|
* @realm shared
|
|
22
20
|
* @source https://wiki.facepunch.com/gmod/team.BestAutoJoinTeam
|
|
23
21
|
*/
|
|
24
22
|
BestAutoJoinTeam(): number;
|
|
25
|
-
}
|
|
26
23
|
|
|
27
|
-
interface TeamLib {
|
|
28
24
|
/**
|
|
29
25
|
* Returns the real table consisting of information on every defined team
|
|
30
26
|
* @realm shared
|
|
31
27
|
* @source https://wiki.facepunch.com/gmod/team.GetAllTeams
|
|
32
28
|
*/
|
|
33
29
|
GetAllTeams(): table;
|
|
34
|
-
}
|
|
35
30
|
|
|
36
|
-
interface TeamLib {
|
|
37
31
|
/**
|
|
38
32
|
* Returns the selectable classes for the given team. This can be added to with [team.SetClass](https://wiki.facepunch.com/gmod/team.SetClass)
|
|
39
33
|
* @realm shared
|
|
40
34
|
* @source https://wiki.facepunch.com/gmod/team.GetClass
|
|
41
35
|
*/
|
|
42
36
|
GetClass(index: number): table;
|
|
43
|
-
}
|
|
44
37
|
|
|
45
|
-
interface TeamLib {
|
|
46
38
|
/**
|
|
47
39
|
* Returns the team's color.
|
|
48
40
|
* @realm shared
|
|
49
41
|
* @source https://wiki.facepunch.com/gmod/team.GetColor
|
|
50
42
|
*/
|
|
51
43
|
GetColor(teamIndex: number): Color;
|
|
52
|
-
}
|
|
53
44
|
|
|
54
|
-
interface TeamLib {
|
|
55
45
|
/**
|
|
56
46
|
* Returns the name of the team.
|
|
57
47
|
* @realm shared
|
|
58
48
|
* @source https://wiki.facepunch.com/gmod/team.GetName
|
|
59
49
|
*/
|
|
60
50
|
GetName(teamIndex: number): string;
|
|
61
|
-
}
|
|
62
51
|
|
|
63
|
-
interface TeamLib {
|
|
64
52
|
/**
|
|
65
53
|
* Returns a table with all player of the specified team.
|
|
66
54
|
* **NOTE**: This function returns a sequential table, meaning it should be looped with [Global.ipairs](https://wiki.facepunch.com/gmod/Global.ipairs) instead of [Global.pairs](https://wiki.facepunch.com/gmod/Global.pairs) for efficiency reasons.
|
|
@@ -70,81 +58,63 @@ interface TeamLib {
|
|
|
70
58
|
* @source https://wiki.facepunch.com/gmod/team.GetPlayers
|
|
71
59
|
*/
|
|
72
60
|
GetPlayers(teamIndex: number): table;
|
|
73
|
-
}
|
|
74
61
|
|
|
75
|
-
interface TeamLib {
|
|
76
62
|
/**
|
|
77
63
|
* Returns the score of the team.
|
|
78
64
|
* @realm shared
|
|
79
65
|
* @source https://wiki.facepunch.com/gmod/team.GetScore
|
|
80
66
|
*/
|
|
81
67
|
GetScore(teamIndex: number): number;
|
|
82
|
-
}
|
|
83
68
|
|
|
84
|
-
interface TeamLib {
|
|
85
69
|
/**
|
|
86
70
|
* Returns a table of valid spawnpoint classes the team can use. These are set with [team.SetSpawnPoint](https://wiki.facepunch.com/gmod/team.SetSpawnPoint).
|
|
87
71
|
* @realm shared
|
|
88
72
|
* @source https://wiki.facepunch.com/gmod/team.GetSpawnPoint
|
|
89
73
|
*/
|
|
90
74
|
GetSpawnPoint(index: number): table;
|
|
91
|
-
}
|
|
92
75
|
|
|
93
|
-
interface TeamLib {
|
|
94
76
|
/**
|
|
95
77
|
* Returns a table of valid spawnpoint entities the team can use. These are set with [team.SetSpawnPoint](https://wiki.facepunch.com/gmod/team.SetSpawnPoint).
|
|
96
78
|
* @realm shared
|
|
97
79
|
* @source https://wiki.facepunch.com/gmod/team.GetSpawnPoints
|
|
98
80
|
*/
|
|
99
81
|
GetSpawnPoints(index: number): table;
|
|
100
|
-
}
|
|
101
82
|
|
|
102
|
-
interface TeamLib {
|
|
103
83
|
/**
|
|
104
84
|
* Returns if a team is joinable or not. This is set in [team.SetUp](https://wiki.facepunch.com/gmod/team.SetUp).
|
|
105
85
|
* @realm shared
|
|
106
86
|
* @source https://wiki.facepunch.com/gmod/team.Joinable
|
|
107
87
|
*/
|
|
108
88
|
Joinable(index: number): boolean;
|
|
109
|
-
}
|
|
110
89
|
|
|
111
|
-
interface TeamLib {
|
|
112
90
|
/**
|
|
113
91
|
* Returns the amount of players in a team.
|
|
114
92
|
* @realm shared
|
|
115
93
|
* @source https://wiki.facepunch.com/gmod/team.NumPlayers
|
|
116
94
|
*/
|
|
117
95
|
NumPlayers(teamIndex: number): number;
|
|
118
|
-
}
|
|
119
96
|
|
|
120
|
-
interface TeamLib {
|
|
121
97
|
/**
|
|
122
98
|
* Sets valid classes for use by a team. Classes can be created using [player_manager.RegisterClass](https://wiki.facepunch.com/gmod/player_manager.RegisterClass)
|
|
123
99
|
* @realm shared
|
|
124
100
|
* @source https://wiki.facepunch.com/gmod/team.SetClass
|
|
125
101
|
*/
|
|
126
102
|
SetClass(index: number, classes: any): void;
|
|
127
|
-
}
|
|
128
103
|
|
|
129
|
-
interface TeamLib {
|
|
130
104
|
/**
|
|
131
105
|
* Sets the team's color.
|
|
132
106
|
* @realm shared
|
|
133
107
|
* @source https://wiki.facepunch.com/gmod/team.SetColor
|
|
134
108
|
*/
|
|
135
109
|
SetColor(teamIndex: number, color: Color): void;
|
|
136
|
-
}
|
|
137
110
|
|
|
138
|
-
interface TeamLib {
|
|
139
111
|
/**
|
|
140
112
|
* Sets the score of the given team
|
|
141
113
|
* @realm shared
|
|
142
114
|
* @source https://wiki.facepunch.com/gmod/team.SetScore
|
|
143
115
|
*/
|
|
144
116
|
SetScore(index: number, score: number): void;
|
|
145
|
-
}
|
|
146
117
|
|
|
147
|
-
interface TeamLib {
|
|
148
118
|
/**
|
|
149
119
|
* Sets valid spawnpoint classes for use by a team.
|
|
150
120
|
*
|
|
@@ -155,36 +125,28 @@ interface TeamLib {
|
|
|
155
125
|
* @source https://wiki.facepunch.com/gmod/team.SetSpawnPoint
|
|
156
126
|
*/
|
|
157
127
|
SetSpawnPoint(index: number, classes: any): void;
|
|
158
|
-
}
|
|
159
128
|
|
|
160
|
-
interface TeamLib {
|
|
161
129
|
/**
|
|
162
130
|
* Creates a new team. See [GM:CreateTeams](https://wiki.facepunch.com/gmod/GM:CreateTeams) for the hook to call this in.
|
|
163
131
|
* @realm shared
|
|
164
132
|
* @source https://wiki.facepunch.com/gmod/team.SetUp
|
|
165
133
|
*/
|
|
166
134
|
SetUp(teamIndex: number, teamName: string, teamColor: Color, isJoinable?: boolean): void;
|
|
167
|
-
}
|
|
168
135
|
|
|
169
|
-
interface TeamLib {
|
|
170
136
|
/**
|
|
171
137
|
* Returns the total number of deaths of all players in the team.
|
|
172
138
|
* @realm shared
|
|
173
139
|
* @source https://wiki.facepunch.com/gmod/team.TotalDeaths
|
|
174
140
|
*/
|
|
175
141
|
TotalDeaths(index: number): number;
|
|
176
|
-
}
|
|
177
142
|
|
|
178
|
-
interface TeamLib {
|
|
179
143
|
/**
|
|
180
144
|
* Get's the total frags in a team.
|
|
181
145
|
* @realm shared
|
|
182
146
|
* @source https://wiki.facepunch.com/gmod/team.TotalFrags
|
|
183
147
|
*/
|
|
184
148
|
TotalFrags(entityOrNumber: Entity): number;
|
|
185
|
-
}
|
|
186
149
|
|
|
187
|
-
interface TeamLib {
|
|
188
150
|
/**
|
|
189
151
|
* Returns true if the given team index is valid
|
|
190
152
|
* @realm shared
|
|
@@ -192,4 +154,3 @@ interface TeamLib {
|
|
|
192
154
|
*/
|
|
193
155
|
Valid(index: number): boolean;
|
|
194
156
|
}
|
|
195
|
-
|
package/types/textentry.d.tlua
CHANGED
package/types/tgaimage.d.tlua
CHANGED