@tlua/gmod 1.0.3 → 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/index.d.tlua +1 -0
- 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 +8 -17
- package/types/hook_events.d.tlua +2412 -0
- 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/team.d.tlua
CHANGED
|
@@ -13,54 +13,36 @@ interface TeamLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/team.AddScore
|
|
14
14
|
*/
|
|
15
15
|
AddScore(index: number, increment: number): void;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface TeamLib {
|
|
19
16
|
/**
|
|
20
17
|
* Returns the team index of the team with the least players. Falls back to TEAM_UNASSIGNED
|
|
21
18
|
* @realm shared
|
|
22
19
|
* @source https://wiki.facepunch.com/gmod/team.BestAutoJoinTeam
|
|
23
20
|
*/
|
|
24
21
|
BestAutoJoinTeam(): number;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface TeamLib {
|
|
28
22
|
/**
|
|
29
23
|
* Returns the real table consisting of information on every defined team
|
|
30
24
|
* @realm shared
|
|
31
25
|
* @source https://wiki.facepunch.com/gmod/team.GetAllTeams
|
|
32
26
|
*/
|
|
33
27
|
GetAllTeams(): table;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface TeamLib {
|
|
37
28
|
/**
|
|
38
29
|
* Returns the selectable classes for the given team. This can be added to with [team.SetClass](https://wiki.facepunch.com/gmod/team.SetClass)
|
|
39
30
|
* @realm shared
|
|
40
31
|
* @source https://wiki.facepunch.com/gmod/team.GetClass
|
|
41
32
|
*/
|
|
42
33
|
GetClass(index: number): table;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface TeamLib {
|
|
46
34
|
/**
|
|
47
35
|
* Returns the team's color.
|
|
48
36
|
* @realm shared
|
|
49
37
|
* @source https://wiki.facepunch.com/gmod/team.GetColor
|
|
50
38
|
*/
|
|
51
39
|
GetColor(teamIndex: number): Color;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface TeamLib {
|
|
55
40
|
/**
|
|
56
41
|
* Returns the name of the team.
|
|
57
42
|
* @realm shared
|
|
58
43
|
* @source https://wiki.facepunch.com/gmod/team.GetName
|
|
59
44
|
*/
|
|
60
45
|
GetName(teamIndex: number): string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface TeamLib {
|
|
64
46
|
/**
|
|
65
47
|
* Returns a table with all player of the specified team.
|
|
66
48
|
* **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 +52,54 @@ interface TeamLib {
|
|
|
70
52
|
* @source https://wiki.facepunch.com/gmod/team.GetPlayers
|
|
71
53
|
*/
|
|
72
54
|
GetPlayers(teamIndex: number): table;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
interface TeamLib {
|
|
76
55
|
/**
|
|
77
56
|
* Returns the score of the team.
|
|
78
57
|
* @realm shared
|
|
79
58
|
* @source https://wiki.facepunch.com/gmod/team.GetScore
|
|
80
59
|
*/
|
|
81
60
|
GetScore(teamIndex: number): number;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
interface TeamLib {
|
|
85
61
|
/**
|
|
86
62
|
* 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
63
|
* @realm shared
|
|
88
64
|
* @source https://wiki.facepunch.com/gmod/team.GetSpawnPoint
|
|
89
65
|
*/
|
|
90
66
|
GetSpawnPoint(index: number): table;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
interface TeamLib {
|
|
94
67
|
/**
|
|
95
68
|
* 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
69
|
* @realm shared
|
|
97
70
|
* @source https://wiki.facepunch.com/gmod/team.GetSpawnPoints
|
|
98
71
|
*/
|
|
99
72
|
GetSpawnPoints(index: number): table;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
interface TeamLib {
|
|
103
73
|
/**
|
|
104
74
|
* Returns if a team is joinable or not. This is set in [team.SetUp](https://wiki.facepunch.com/gmod/team.SetUp).
|
|
105
75
|
* @realm shared
|
|
106
76
|
* @source https://wiki.facepunch.com/gmod/team.Joinable
|
|
107
77
|
*/
|
|
108
78
|
Joinable(index: number): boolean;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
interface TeamLib {
|
|
112
79
|
/**
|
|
113
80
|
* Returns the amount of players in a team.
|
|
114
81
|
* @realm shared
|
|
115
82
|
* @source https://wiki.facepunch.com/gmod/team.NumPlayers
|
|
116
83
|
*/
|
|
117
84
|
NumPlayers(teamIndex: number): number;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
interface TeamLib {
|
|
121
85
|
/**
|
|
122
86
|
* 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
87
|
* @realm shared
|
|
124
88
|
* @source https://wiki.facepunch.com/gmod/team.SetClass
|
|
125
89
|
*/
|
|
126
90
|
SetClass(index: number, classes: any): void;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
interface TeamLib {
|
|
130
91
|
/**
|
|
131
92
|
* Sets the team's color.
|
|
132
93
|
* @realm shared
|
|
133
94
|
* @source https://wiki.facepunch.com/gmod/team.SetColor
|
|
134
95
|
*/
|
|
135
96
|
SetColor(teamIndex: number, color: Color): void;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
interface TeamLib {
|
|
139
97
|
/**
|
|
140
98
|
* Sets the score of the given team
|
|
141
99
|
* @realm shared
|
|
142
100
|
* @source https://wiki.facepunch.com/gmod/team.SetScore
|
|
143
101
|
*/
|
|
144
102
|
SetScore(index: number, score: number): void;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
interface TeamLib {
|
|
148
103
|
/**
|
|
149
104
|
* Sets valid spawnpoint classes for use by a team.
|
|
150
105
|
*
|
|
@@ -155,36 +110,24 @@ interface TeamLib {
|
|
|
155
110
|
* @source https://wiki.facepunch.com/gmod/team.SetSpawnPoint
|
|
156
111
|
*/
|
|
157
112
|
SetSpawnPoint(index: number, classes: any): void;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
interface TeamLib {
|
|
161
113
|
/**
|
|
162
114
|
* Creates a new team. See [GM:CreateTeams](https://wiki.facepunch.com/gmod/GM:CreateTeams) for the hook to call this in.
|
|
163
115
|
* @realm shared
|
|
164
116
|
* @source https://wiki.facepunch.com/gmod/team.SetUp
|
|
165
117
|
*/
|
|
166
118
|
SetUp(teamIndex: number, teamName: string, teamColor: Color, isJoinable?: boolean): void;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
interface TeamLib {
|
|
170
119
|
/**
|
|
171
120
|
* Returns the total number of deaths of all players in the team.
|
|
172
121
|
* @realm shared
|
|
173
122
|
* @source https://wiki.facepunch.com/gmod/team.TotalDeaths
|
|
174
123
|
*/
|
|
175
124
|
TotalDeaths(index: number): number;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
interface TeamLib {
|
|
179
125
|
/**
|
|
180
126
|
* Get's the total frags in a team.
|
|
181
127
|
* @realm shared
|
|
182
128
|
* @source https://wiki.facepunch.com/gmod/team.TotalFrags
|
|
183
129
|
*/
|
|
184
130
|
TotalFrags(entityOrNumber: Entity): number;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
interface TeamLib {
|
|
188
131
|
/**
|
|
189
132
|
* Returns true if the given team index is valid
|
|
190
133
|
* @realm shared
|
|
@@ -193,3 +136,22 @@ interface TeamLib {
|
|
|
193
136
|
Valid(index: number): boolean;
|
|
194
137
|
}
|
|
195
138
|
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
package/types/timer.d.tlua
CHANGED
|
@@ -13,9 +13,6 @@ interface TimerLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/timer.Adjust
|
|
14
14
|
*/
|
|
15
15
|
Adjust(identifier: any, delay: number, repetitions?: number, func?: function): boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface TimerLib {
|
|
19
16
|
/**
|
|
20
17
|
* This function does nothing.
|
|
21
18
|
* @realm shared and menu
|
|
@@ -23,9 +20,6 @@ interface TimerLib {
|
|
|
23
20
|
* @deprecated If you want to check if whether or not a timer exists, use timer.Exists.
|
|
24
21
|
*/
|
|
25
22
|
Check(): void;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
interface TimerLib {
|
|
29
23
|
/**
|
|
30
24
|
* Creates a new timer that will repeat its function given amount of times.
|
|
31
25
|
* This function also requires the timer to be named, which allows you to control it after it was created via the [timer](https://wiki.facepunch.com/gmod/timer).
|
|
@@ -39,9 +33,6 @@ interface TimerLib {
|
|
|
39
33
|
* @source https://wiki.facepunch.com/gmod/timer.Create
|
|
40
34
|
*/
|
|
41
35
|
Create(identifier: string, delay: number, repetitions: number, func: function): void;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
interface TimerLib {
|
|
45
36
|
/**
|
|
46
37
|
* Stops and destroys the given timer. Alias of [timer.Remove](https://wiki.facepunch.com/gmod/timer.Remove).
|
|
47
38
|
* @realm shared and menu
|
|
@@ -49,9 +40,6 @@ interface TimerLib {
|
|
|
49
40
|
* @deprecated You should be using timer.Remove instead.
|
|
50
41
|
*/
|
|
51
42
|
Destroy(identifier: string): void;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface TimerLib {
|
|
55
43
|
/**
|
|
56
44
|
* Returns whenever the given timer exists or not.
|
|
57
45
|
*
|
|
@@ -66,9 +54,6 @@ interface TimerLib {
|
|
|
66
54
|
* @source https://wiki.facepunch.com/gmod/timer.Exists
|
|
67
55
|
*/
|
|
68
56
|
Exists(identifier: string): boolean;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
interface TimerLib {
|
|
72
57
|
/**
|
|
73
58
|
* Returns whenever the given timer is paused or not. ([timer.Pause](https://wiki.facepunch.com/gmod/timer.Pause))
|
|
74
59
|
*
|
|
@@ -77,18 +62,12 @@ interface TimerLib {
|
|
|
77
62
|
* @source https://wiki.facepunch.com/gmod/timer.IsPaused
|
|
78
63
|
*/
|
|
79
64
|
IsPaused(identifier: string): boolean;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
interface TimerLib {
|
|
83
65
|
/**
|
|
84
66
|
* Pauses the given timer.
|
|
85
67
|
* @realm shared and menu
|
|
86
68
|
* @source https://wiki.facepunch.com/gmod/timer.Pause
|
|
87
69
|
*/
|
|
88
70
|
Pause(identifier: any): void;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
interface TimerLib {
|
|
92
71
|
/**
|
|
93
72
|
* Stops and removes a timer created by [timer.Create](https://wiki.facepunch.com/gmod/timer.Create).
|
|
94
73
|
* **WARNING**: The timers are removed in the next frame! Keep this in mind when storing identifiers in variables.
|
|
@@ -98,9 +77,6 @@ interface TimerLib {
|
|
|
98
77
|
* @source https://wiki.facepunch.com/gmod/timer.Remove
|
|
99
78
|
*/
|
|
100
79
|
Remove(identifier: string): void;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
interface TimerLib {
|
|
104
80
|
/**
|
|
105
81
|
* Returns amount of repetitions/executions left before the timer destroys itself.
|
|
106
82
|
*
|
|
@@ -108,9 +84,6 @@ interface TimerLib {
|
|
|
108
84
|
* @source https://wiki.facepunch.com/gmod/timer.RepsLeft
|
|
109
85
|
*/
|
|
110
86
|
RepsLeft(identifier: any): number;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
interface TimerLib {
|
|
114
87
|
/**
|
|
115
88
|
* Creates a simple timer that runs the given function after a specified delay.
|
|
116
89
|
*
|
|
@@ -141,9 +114,6 @@ interface TimerLib {
|
|
|
141
114
|
* @source https://wiki.facepunch.com/gmod/timer.Simple
|
|
142
115
|
*/
|
|
143
116
|
Simple(delay: number, func: function): void;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
interface TimerLib {
|
|
147
117
|
/**
|
|
148
118
|
* Restarts the given timer.
|
|
149
119
|
*
|
|
@@ -154,18 +124,12 @@ interface TimerLib {
|
|
|
154
124
|
* @source https://wiki.facepunch.com/gmod/timer.Start
|
|
155
125
|
*/
|
|
156
126
|
Start(identifier: any): void;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
interface TimerLib {
|
|
160
127
|
/**
|
|
161
128
|
* Stops the given timer and rewinds it.
|
|
162
129
|
* @realm shared and menu
|
|
163
130
|
* @source https://wiki.facepunch.com/gmod/timer.Stop
|
|
164
131
|
*/
|
|
165
132
|
Stop(identifier: any): void;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
interface TimerLib {
|
|
169
133
|
/**
|
|
170
134
|
* Returns amount of time left (in seconds) before the timer executes its function.
|
|
171
135
|
*
|
|
@@ -176,18 +140,12 @@ interface TimerLib {
|
|
|
176
140
|
* @source https://wiki.facepunch.com/gmod/timer.TimeLeft
|
|
177
141
|
*/
|
|
178
142
|
TimeLeft(identifier: any): number;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
interface TimerLib {
|
|
182
143
|
/**
|
|
183
144
|
* Runs either [timer.Pause](https://wiki.facepunch.com/gmod/timer.Pause) or [timer.UnPause](https://wiki.facepunch.com/gmod/timer.UnPause) based on the timer's current status.
|
|
184
145
|
* @realm shared and menu
|
|
185
146
|
* @source https://wiki.facepunch.com/gmod/timer.Toggle
|
|
186
147
|
*/
|
|
187
148
|
Toggle(identifier: any): void;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
interface TimerLib {
|
|
191
149
|
/**
|
|
192
150
|
* Unpauses the timer.
|
|
193
151
|
* @realm shared and menu
|
|
@@ -196,3 +154,17 @@ interface TimerLib {
|
|
|
196
154
|
UnPause(identifier: any): void;
|
|
197
155
|
}
|
|
198
156
|
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|