@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/ents.d.tlua
CHANGED
|
@@ -18,20 +18,12 @@ interface EntsLib {
|
|
|
18
18
|
* @source https://wiki.facepunch.com/gmod/ents.Create
|
|
19
19
|
*/
|
|
20
20
|
Create(class: string): Entity;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
interface EntsLib {
|
|
25
21
|
/**
|
|
26
22
|
* Creates a clientside only prop with optional physics.
|
|
27
23
|
* @realm client
|
|
28
24
|
* @source https://wiki.facepunch.com/gmod/ents.CreateClientProp
|
|
29
25
|
*/
|
|
30
26
|
CreateClientProp(model?: string): Entity;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
interface EntsLib {
|
|
35
27
|
/**
|
|
36
28
|
* Creates a clientside only rope, similar to those used by the Dog and Fast
|
|
37
29
|
* Zombie models from Half-Life 2. Created ropes are automatically cleaned up
|
|
@@ -43,10 +35,6 @@ interface EntsLib {
|
|
|
43
35
|
* @source https://wiki.facepunch.com/gmod/ents.CreateClientRope
|
|
44
36
|
*/
|
|
45
37
|
CreateClientRope(ent1: Entity, ent1attach: number | Vector, ent2: Entity, ent2attach: number | Vector, extra?: table): Entity;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
interface EntsLib {
|
|
50
38
|
/**
|
|
51
39
|
* Creates a clientside only scripted entity. The scripted entity must be of
|
|
52
40
|
* "anim" type.
|
|
@@ -58,10 +46,6 @@ interface EntsLib {
|
|
|
58
46
|
* @source https://wiki.facepunch.com/gmod/ents.CreateClientside
|
|
59
47
|
*/
|
|
60
48
|
CreateClientside(class: string): Entity;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
interface EntsLib {
|
|
65
49
|
/**
|
|
66
50
|
* Returns a table of all entities along the ray. The ray does not stop on collisions, meaning it will go through walls/entities.
|
|
67
51
|
*
|
|
@@ -73,9 +57,6 @@ interface EntsLib {
|
|
|
73
57
|
* @source https://wiki.facepunch.com/gmod/ents.FindAlongRay
|
|
74
58
|
*/
|
|
75
59
|
FindAlongRay(start: Vector, _end: Vector, mins?: Vector, maxs?: Vector): Entity[];
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
interface EntsLib {
|
|
79
60
|
/**
|
|
80
61
|
* Gets all entities with the given class, supports wildcards.
|
|
81
62
|
*
|
|
@@ -87,18 +68,12 @@ interface EntsLib {
|
|
|
87
68
|
* @source https://wiki.facepunch.com/gmod/ents.FindByClass
|
|
88
69
|
*/
|
|
89
70
|
FindByClass(_class: string): Entity[];
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
interface EntsLib {
|
|
93
71
|
/**
|
|
94
72
|
* Finds all entities that are of given class and are children of given entity. This works internally by iterating over [ents.FindByClass](https://wiki.facepunch.com/gmod/ents.FindByClass).
|
|
95
73
|
* @realm shared
|
|
96
74
|
* @source https://wiki.facepunch.com/gmod/ents.FindByClassAndParent
|
|
97
75
|
*/
|
|
98
76
|
FindByClassAndParent(_class: string, parent: Entity): Entity[];
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
interface EntsLib {
|
|
102
77
|
/**
|
|
103
78
|
* Gets all entities with the given model, supports wildcards.
|
|
104
79
|
*
|
|
@@ -108,9 +83,6 @@ interface EntsLib {
|
|
|
108
83
|
* @source https://wiki.facepunch.com/gmod/ents.FindByModel
|
|
109
84
|
*/
|
|
110
85
|
FindByModel(model: string): Entity[];
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
interface EntsLib {
|
|
114
86
|
/**
|
|
115
87
|
* Gets all entities with the given hammer targetname. This works internally by iterating over [ents.GetAll](https://wiki.facepunch.com/gmod/ents.GetAll).
|
|
116
88
|
*
|
|
@@ -120,9 +92,6 @@ interface EntsLib {
|
|
|
120
92
|
* @source https://wiki.facepunch.com/gmod/ents.FindByName
|
|
121
93
|
*/
|
|
122
94
|
FindByName(name: string): Entity[];
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
interface EntsLib {
|
|
126
95
|
/**
|
|
127
96
|
* Returns all entities within the specified box.
|
|
128
97
|
*
|
|
@@ -136,9 +105,6 @@ interface EntsLib {
|
|
|
136
105
|
* @source https://wiki.facepunch.com/gmod/ents.FindInBox
|
|
137
106
|
*/
|
|
138
107
|
FindInBox(boxMins: Vector, boxMaxs: Vector): Entity[];
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
interface EntsLib {
|
|
142
108
|
/**
|
|
143
109
|
* Finds and returns all entities within the specified cone. Only entities whose [Entity:WorldSpaceCenter](https://wiki.facepunch.com/gmod/Entity:WorldSpaceCenter) is within the cone are considered to be in it.
|
|
144
110
|
*
|
|
@@ -152,9 +118,6 @@ interface EntsLib {
|
|
|
152
118
|
* @source https://wiki.facepunch.com/gmod/ents.FindInCone
|
|
153
119
|
*/
|
|
154
120
|
FindInCone(origin: Vector, normal: Vector, range: number, angle_cos: number): Entity[];
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
interface EntsLib {
|
|
158
121
|
/**
|
|
159
122
|
* Finds all entities that lie within a [PVS (Potential Visibility Set)](https://developer.valvesoftware.com/wiki/PVS "PVS - Valve Developer Community").
|
|
160
123
|
*
|
|
@@ -165,9 +128,6 @@ interface EntsLib {
|
|
|
165
128
|
* @source https://wiki.facepunch.com/gmod/ents.FindInPVS
|
|
166
129
|
*/
|
|
167
130
|
FindInPVS(viewPoint: Entity | Vector): Entity[];
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
interface EntsLib {
|
|
171
131
|
/**
|
|
172
132
|
* Gets all entities within the specified sphere.
|
|
173
133
|
*
|
|
@@ -177,18 +137,12 @@ interface EntsLib {
|
|
|
177
137
|
* @source https://wiki.facepunch.com/gmod/ents.FindInSphere
|
|
178
138
|
*/
|
|
179
139
|
FindInSphere(origin: Vector, radius: number): Entity[];
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
interface EntsLib {
|
|
183
140
|
/**
|
|
184
141
|
* Fires a use event.
|
|
185
142
|
* @realm server
|
|
186
143
|
* @source https://wiki.facepunch.com/gmod/ents.FireTargets
|
|
187
144
|
*/
|
|
188
145
|
FireTargets(target: string, activator: Entity, caller: Entity, usetype: USE, value: number): void;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
interface EntsLib {
|
|
192
146
|
/**
|
|
193
147
|
* Returns a table of all existing entities.
|
|
194
148
|
*
|
|
@@ -199,18 +153,12 @@ interface EntsLib {
|
|
|
199
153
|
* @source https://wiki.facepunch.com/gmod/ents.GetAll
|
|
200
154
|
*/
|
|
201
155
|
GetAll(): Entity[];
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
interface EntsLib {
|
|
205
156
|
/**
|
|
206
157
|
* Returns an entity by its index. Same as [Global.Entity](https://wiki.facepunch.com/gmod/Global.Entity).
|
|
207
158
|
* @realm shared
|
|
208
159
|
* @source https://wiki.facepunch.com/gmod/ents.GetByIndex
|
|
209
160
|
*/
|
|
210
161
|
GetByIndex(entIdx: number): Entity;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
interface EntsLib {
|
|
214
162
|
/**
|
|
215
163
|
* Gives you the amount of currently existing entities.
|
|
216
164
|
*
|
|
@@ -221,9 +169,6 @@ interface EntsLib {
|
|
|
221
169
|
* @source https://wiki.facepunch.com/gmod/ents.GetCount
|
|
222
170
|
*/
|
|
223
171
|
GetCount(IncludeKillMe?: boolean): number;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
interface EntsLib {
|
|
227
172
|
/**
|
|
228
173
|
* Returns the amount of networked entities, which is limited to 8192.
|
|
229
174
|
*
|
|
@@ -235,9 +180,6 @@ interface EntsLib {
|
|
|
235
180
|
* @source https://wiki.facepunch.com/gmod/ents.GetEdictCount
|
|
236
181
|
*/
|
|
237
182
|
GetEdictCount(): number;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
interface EntsLib {
|
|
241
183
|
/**
|
|
242
184
|
* Returns entity that has given [Entity:MapCreationID](https://wiki.facepunch.com/gmod/Entity:MapCreationID).
|
|
243
185
|
*
|
|
@@ -248,9 +190,6 @@ interface EntsLib {
|
|
|
248
190
|
* @source https://wiki.facepunch.com/gmod/ents.GetMapCreatedEntity
|
|
249
191
|
*/
|
|
250
192
|
GetMapCreatedEntity(id: number): Entity | nil;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
interface EntsLib {
|
|
254
193
|
/**
|
|
255
194
|
* Returns a Stateless Iterator for all entities, intended for use in generic
|
|
256
195
|
* for-loops. Internally uses cached values stored in Lua, making it more
|
|
@@ -265,3 +204,26 @@ interface EntsLib {
|
|
|
265
204
|
}
|
|
266
205
|
|
|
267
206
|
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
package/types/file.d.tlua
CHANGED
|
@@ -22,72 +22,48 @@ interface File {
|
|
|
22
22
|
* @source https://wiki.facepunch.com/gmod/File:Close
|
|
23
23
|
*/
|
|
24
24
|
Close(self: File): void;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface File {
|
|
28
25
|
/**
|
|
29
26
|
* Returns whether the [File](https://wiki.facepunch.com/gmod/File) object has reached the end of file or not.
|
|
30
27
|
* @realm shared and menu
|
|
31
28
|
* @source https://wiki.facepunch.com/gmod/File:EndOfFile
|
|
32
29
|
*/
|
|
33
30
|
EndOfFile(self: File): boolean;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface File {
|
|
37
31
|
/**
|
|
38
32
|
* Dumps the file changes to disk and saves the file.
|
|
39
33
|
* @realm shared and menu
|
|
40
34
|
* @source https://wiki.facepunch.com/gmod/File:Flush
|
|
41
35
|
*/
|
|
42
36
|
Flush(self: File): void;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface File {
|
|
46
37
|
/**
|
|
47
38
|
* Reads the specified amount of chars and returns them as a binary string.
|
|
48
39
|
* @realm shared and menu
|
|
49
40
|
* @source https://wiki.facepunch.com/gmod/File:Read
|
|
50
41
|
*/
|
|
51
42
|
Read(self: File, length?: number): string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface File {
|
|
55
43
|
/**
|
|
56
44
|
* Reads one byte of the file and returns whether that byte was not 0.
|
|
57
45
|
* @realm shared and menu
|
|
58
46
|
* @source https://wiki.facepunch.com/gmod/File:ReadBool
|
|
59
47
|
*/
|
|
60
48
|
ReadBool(self: File): boolean;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface File {
|
|
64
49
|
/**
|
|
65
50
|
* Reads one unsigned 8-bit integer from the file.
|
|
66
51
|
* @realm shared and menu
|
|
67
52
|
* @source https://wiki.facepunch.com/gmod/File:ReadByte
|
|
68
53
|
*/
|
|
69
54
|
ReadByte(self: File): number;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
interface File {
|
|
73
55
|
/**
|
|
74
56
|
* Reads an 8-byte little-endian IEEE-754 floating point double from the file.
|
|
75
57
|
* @realm shared and menu
|
|
76
58
|
* @source https://wiki.facepunch.com/gmod/File:ReadDouble
|
|
77
59
|
*/
|
|
78
60
|
ReadDouble(self: File): number;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
interface File {
|
|
82
61
|
/**
|
|
83
62
|
* Reads an IEEE 754 little-endian 4-byte float from the file.
|
|
84
63
|
* @realm shared and menu
|
|
85
64
|
* @source https://wiki.facepunch.com/gmod/File:ReadFloat
|
|
86
65
|
*/
|
|
87
66
|
ReadFloat(self: File): number;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
interface File {
|
|
91
67
|
/**
|
|
92
68
|
* Returns the contents of the file from the current position up until the end of the current line.
|
|
93
69
|
*
|
|
@@ -102,171 +78,114 @@ interface File {
|
|
|
102
78
|
* @source https://wiki.facepunch.com/gmod/File:ReadLine
|
|
103
79
|
*/
|
|
104
80
|
ReadLine(self: File): string;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
interface File {
|
|
108
81
|
/**
|
|
109
82
|
* Reads a signed little-endian 32-bit integer from the file.
|
|
110
83
|
* @realm shared and menu
|
|
111
84
|
* @source https://wiki.facepunch.com/gmod/File:ReadLong
|
|
112
85
|
*/
|
|
113
86
|
ReadLong(self: File): number;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
interface File {
|
|
117
87
|
/**
|
|
118
88
|
* Reads a signed little-endian 16-bit integer from the file.
|
|
119
89
|
* @realm shared and menu
|
|
120
90
|
* @source https://wiki.facepunch.com/gmod/File:ReadShort
|
|
121
91
|
*/
|
|
122
92
|
ReadShort(self: File): number;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
interface File {
|
|
126
93
|
/**
|
|
127
94
|
* Reads an unsigned 64-bit integer from the file.
|
|
128
95
|
* @realm shared and menu
|
|
129
96
|
* @source https://wiki.facepunch.com/gmod/File:ReadUInt64
|
|
130
97
|
*/
|
|
131
98
|
ReadUInt64(self: File): string;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
interface File {
|
|
135
99
|
/**
|
|
136
100
|
* Reads an unsigned little-endian 32-bit integer from the file.
|
|
137
101
|
* @realm shared and menu
|
|
138
102
|
* @source https://wiki.facepunch.com/gmod/File:ReadULong
|
|
139
103
|
*/
|
|
140
104
|
ReadULong(self: File): number;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
interface File {
|
|
144
105
|
/**
|
|
145
106
|
* Reads an unsigned little-endian 16-bit integer from the file.
|
|
146
107
|
* @realm shared and menu
|
|
147
108
|
* @source https://wiki.facepunch.com/gmod/File:ReadUShort
|
|
148
109
|
*/
|
|
149
110
|
ReadUShort(self: File): number;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
interface File {
|
|
153
111
|
/**
|
|
154
112
|
* Sets the file pointer to the specified position.
|
|
155
113
|
* @realm shared and menu
|
|
156
114
|
* @source https://wiki.facepunch.com/gmod/File:Seek
|
|
157
115
|
*/
|
|
158
116
|
Seek(self: File, pos: number): void;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
interface File {
|
|
162
117
|
/**
|
|
163
118
|
* Returns the size of the file in bytes.
|
|
164
119
|
* @realm shared and menu
|
|
165
120
|
* @source https://wiki.facepunch.com/gmod/File:Size
|
|
166
121
|
*/
|
|
167
122
|
Size(self: File): number;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
interface File {
|
|
171
123
|
/**
|
|
172
124
|
* Moves the file pointer by the specified amount of chars.
|
|
173
125
|
* @realm shared and menu
|
|
174
126
|
* @source https://wiki.facepunch.com/gmod/File:Skip
|
|
175
127
|
*/
|
|
176
128
|
Skip(self: File, amount: number): number;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
interface File {
|
|
180
129
|
/**
|
|
181
130
|
* Returns the current position of the file pointer.
|
|
182
131
|
* @realm shared and menu
|
|
183
132
|
* @source https://wiki.facepunch.com/gmod/File:Tell
|
|
184
133
|
*/
|
|
185
134
|
Tell(self: File): number;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
interface File {
|
|
189
135
|
/**
|
|
190
136
|
* Writes the given string into the file.
|
|
191
137
|
* @realm shared and menu
|
|
192
138
|
* @source https://wiki.facepunch.com/gmod/File:Write
|
|
193
139
|
*/
|
|
194
140
|
Write(self: File, data: string): void;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
interface File {
|
|
198
141
|
/**
|
|
199
142
|
* Writes a boolean value to the file as one **byte**.
|
|
200
143
|
* @realm shared and menu
|
|
201
144
|
* @source https://wiki.facepunch.com/gmod/File:WriteBool
|
|
202
145
|
*/
|
|
203
146
|
WriteBool(self: File, bool: boolean): void;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
interface File {
|
|
207
147
|
/**
|
|
208
148
|
* Write an 8-bit unsigned integer to the file.
|
|
209
149
|
* @realm shared and menu
|
|
210
150
|
* @source https://wiki.facepunch.com/gmod/File:WriteByte
|
|
211
151
|
*/
|
|
212
152
|
WriteByte(self: File, uint8: number): void;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
interface File {
|
|
216
153
|
/**
|
|
217
154
|
* Writes an 8-byte little-endian IEEE-754 floating point double to the file.
|
|
218
155
|
* @realm shared and menu
|
|
219
156
|
* @source https://wiki.facepunch.com/gmod/File:WriteDouble
|
|
220
157
|
*/
|
|
221
158
|
WriteDouble(self: File, double: number): void;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
interface File {
|
|
225
159
|
/**
|
|
226
160
|
* Writes an IEEE 754 little-endian 4-byte float to the file.
|
|
227
161
|
* @realm shared and menu
|
|
228
162
|
* @source https://wiki.facepunch.com/gmod/File:WriteFloat
|
|
229
163
|
*/
|
|
230
164
|
WriteFloat(self: File, float: number): void;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
interface File {
|
|
234
165
|
/**
|
|
235
166
|
* Writes a signed little-endian 32-bit integer to the file.
|
|
236
167
|
* @realm shared and menu
|
|
237
168
|
* @source https://wiki.facepunch.com/gmod/File:WriteLong
|
|
238
169
|
*/
|
|
239
170
|
WriteLong(self: File, int32: number): void;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
interface File {
|
|
243
171
|
/**
|
|
244
172
|
* Writes a signed little-endian 16-bit integer to the file.
|
|
245
173
|
* @realm shared and menu
|
|
246
174
|
* @source https://wiki.facepunch.com/gmod/File:WriteShort
|
|
247
175
|
*/
|
|
248
176
|
WriteShort(self: File, int16: number): void;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
interface File {
|
|
252
177
|
/**
|
|
253
178
|
* Writes an unsigned 64-bit integer to the file.
|
|
254
179
|
* @realm shared and menu
|
|
255
180
|
* @source https://wiki.facepunch.com/gmod/File:WriteUInt64
|
|
256
181
|
*/
|
|
257
182
|
WriteUInt64(self: File, uint64: string): void;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
interface File {
|
|
261
183
|
/**
|
|
262
184
|
* Writes an unsigned little-endian 32-bit integer to the file.
|
|
263
185
|
* @realm shared and menu
|
|
264
186
|
* @source https://wiki.facepunch.com/gmod/File:WriteULong
|
|
265
187
|
*/
|
|
266
188
|
WriteULong(self: File, uint32: number): void;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
interface File {
|
|
270
189
|
/**
|
|
271
190
|
* Writes an unsigned little-endian 16-bit integer to the file.
|
|
272
191
|
* @realm shared and menu
|
|
@@ -275,6 +194,33 @@ interface File {
|
|
|
275
194
|
WriteUShort(self: File, uint16: number): void;
|
|
276
195
|
}
|
|
277
196
|
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
278
224
|
interface FileLib {
|
|
279
225
|
/**
|
|
280
226
|
* Appends data to a file in the `data/` folder.
|
|
@@ -282,9 +228,6 @@ interface FileLib {
|
|
|
282
228
|
* @source https://wiki.facepunch.com/gmod/file.Append
|
|
283
229
|
*/
|
|
284
230
|
Append(name: string, content: string): boolean;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
interface FileLib {
|
|
288
231
|
/**
|
|
289
232
|
* Returns the content of a file asynchronously.
|
|
290
233
|
*
|
|
@@ -294,18 +237,12 @@ interface FileLib {
|
|
|
294
237
|
* @source https://wiki.facepunch.com/gmod/file.AsyncRead
|
|
295
238
|
*/
|
|
296
239
|
AsyncRead(fileName: string, gamePath: string, callback: (fileName: string, gamePath: string, status: number, data: string) => void, sync?: boolean): FSASYNC;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
interface FileLib {
|
|
300
240
|
/**
|
|
301
241
|
* Creates a directory that is relative to the `data` folder.
|
|
302
242
|
* @realm shared and menu
|
|
303
243
|
* @source https://wiki.facepunch.com/gmod/file.CreateDir
|
|
304
244
|
*/
|
|
305
245
|
CreateDir(name: string): void;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
interface FileLib {
|
|
309
246
|
/**
|
|
310
247
|
* Deletes a file or `empty` folder that is relative to the **data** folder. You can't remove any files outside of **data** folder.
|
|
311
248
|
* **NOTE**: You are able to delete **any** file in the Menu state.
|
|
@@ -315,9 +252,6 @@ interface FileLib {
|
|
|
315
252
|
* @source https://wiki.facepunch.com/gmod/file.Delete
|
|
316
253
|
*/
|
|
317
254
|
Delete(name: string, path?: string): boolean;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
interface FileLib {
|
|
321
255
|
/**
|
|
322
256
|
* Returns a boolean of whether the file or directory exists or not.
|
|
323
257
|
* If you want to check for a directory, [file.IsDir](https://wiki.facepunch.com/gmod/file.IsDir) will be faster since it won't check for files.
|
|
@@ -326,9 +260,6 @@ interface FileLib {
|
|
|
326
260
|
* @source https://wiki.facepunch.com/gmod/file.Exists
|
|
327
261
|
*/
|
|
328
262
|
Exists(name: string, gamePath: string): boolean;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
interface FileLib {
|
|
332
263
|
/**
|
|
333
264
|
* Returns a list of files and directories inside a single folder.
|
|
334
265
|
* **WARNING**: It seems that paths with capital letters (e.g. lua/MyFolder/*) don't work as expected on Linux.
|
|
@@ -338,9 +269,6 @@ interface FileLib {
|
|
|
338
269
|
* @source https://wiki.facepunch.com/gmod/file.Find
|
|
339
270
|
*/
|
|
340
271
|
Find(name: string, path: string, sorting?: string): (table, table);
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
interface FileLib {
|
|
344
272
|
/**
|
|
345
273
|
* Returns whether the given file is a directory or not.
|
|
346
274
|
*
|
|
@@ -348,9 +276,6 @@ interface FileLib {
|
|
|
348
276
|
* @source https://wiki.facepunch.com/gmod/file.IsDir
|
|
349
277
|
*/
|
|
350
278
|
IsDir(fileName: string, gamePath: string): boolean;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
interface FileLib {
|
|
354
279
|
/**
|
|
355
280
|
* Attempts to open a file with the given mode.
|
|
356
281
|
* **WARNING**: When trying to open files with the following characteristics, it returns nil:
|
|
@@ -363,9 +288,6 @@ interface FileLib {
|
|
|
363
288
|
* @source https://wiki.facepunch.com/gmod/file.Open
|
|
364
289
|
*/
|
|
365
290
|
Open(fileName: string, fileMode: string, gamePath: string): file_class;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
interface FileLib {
|
|
369
291
|
/**
|
|
370
292
|
* Returns the content of a file.
|
|
371
293
|
*
|
|
@@ -376,9 +298,6 @@ interface FileLib {
|
|
|
376
298
|
* @source https://wiki.facepunch.com/gmod/file.Read
|
|
377
299
|
*/
|
|
378
300
|
Read(fileName: string, gamePath?: string): string;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
interface FileLib {
|
|
382
301
|
/**
|
|
383
302
|
* Attempts to rename a file with the given name to another given name.
|
|
384
303
|
*
|
|
@@ -388,27 +307,18 @@ interface FileLib {
|
|
|
388
307
|
* @source https://wiki.facepunch.com/gmod/file.Rename
|
|
389
308
|
*/
|
|
390
309
|
Rename(orignalFileName: string, targetFileName: string): boolean;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
interface FileLib {
|
|
394
310
|
/**
|
|
395
311
|
* Returns the file's size in bytes.
|
|
396
312
|
* @realm shared and menu
|
|
397
313
|
* @source https://wiki.facepunch.com/gmod/file.Size
|
|
398
314
|
*/
|
|
399
315
|
Size(fileName: string, gamePath: string): number;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
interface FileLib {
|
|
403
316
|
/**
|
|
404
317
|
* Returns when the file or folder was last modified in Unix time.
|
|
405
318
|
* @realm shared and menu
|
|
406
319
|
* @source https://wiki.facepunch.com/gmod/file.Time
|
|
407
320
|
*/
|
|
408
321
|
Time(path: string, gamePath: string): number;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
interface FileLib {
|
|
412
322
|
/**
|
|
413
323
|
* Writes the given string to a file. Erases all previous data in the file. To add data without deleting previous data, use [file.Append](https://wiki.facepunch.com/gmod/file.Append).
|
|
414
324
|
* @realm shared and menu
|
|
@@ -417,3 +327,15 @@ interface FileLib {
|
|
|
417
327
|
Write(fileName: string, content: string): boolean;
|
|
418
328
|
}
|
|
419
329
|
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
package/types/frame_blend.d.tlua
CHANGED
|
@@ -17,9 +17,6 @@ interface Frame_blendLib {
|
|
|
17
17
|
* @source https://wiki.facepunch.com/gmod/frame_blend.AddFrame
|
|
18
18
|
*/
|
|
19
19
|
AddFrame(): void;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
interface Frame_blendLib {
|
|
23
20
|
/**
|
|
24
21
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
25
22
|
*
|
|
@@ -30,9 +27,6 @@ interface Frame_blendLib {
|
|
|
30
27
|
* @source https://wiki.facepunch.com/gmod/frame_blend.BlendFrame
|
|
31
28
|
*/
|
|
32
29
|
BlendFrame(): void;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface Frame_blendLib {
|
|
36
30
|
/**
|
|
37
31
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
38
32
|
*
|
|
@@ -43,9 +37,6 @@ interface Frame_blendLib {
|
|
|
43
37
|
* @source https://wiki.facepunch.com/gmod/frame_blend.CompleteFrame
|
|
44
38
|
*/
|
|
45
39
|
CompleteFrame(): void;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface Frame_blendLib {
|
|
49
40
|
/**
|
|
50
41
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
51
42
|
*
|
|
@@ -56,18 +47,12 @@ interface Frame_blendLib {
|
|
|
56
47
|
* @source https://wiki.facepunch.com/gmod/frame_blend.DrawPreview
|
|
57
48
|
*/
|
|
58
49
|
DrawPreview(): void;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
interface Frame_blendLib {
|
|
62
50
|
/**
|
|
63
51
|
* Returns whether frame blend post processing effect is enabled or not.
|
|
64
52
|
* @realm client
|
|
65
53
|
* @source https://wiki.facepunch.com/gmod/frame_blend.IsActive
|
|
66
54
|
*/
|
|
67
55
|
IsActive(): boolean;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
interface Frame_blendLib {
|
|
71
56
|
/**
|
|
72
57
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
73
58
|
*
|
|
@@ -79,9 +64,6 @@ interface Frame_blendLib {
|
|
|
79
64
|
* @source https://wiki.facepunch.com/gmod/frame_blend.IsLastFrame
|
|
80
65
|
*/
|
|
81
66
|
IsLastFrame(): boolean;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
interface Frame_blendLib {
|
|
85
67
|
/**
|
|
86
68
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
87
69
|
*
|
|
@@ -92,9 +74,6 @@ interface Frame_blendLib {
|
|
|
92
74
|
* @source https://wiki.facepunch.com/gmod/frame_blend.RenderableFrames
|
|
93
75
|
*/
|
|
94
76
|
RenderableFrames(): number;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
interface Frame_blendLib {
|
|
98
77
|
/**
|
|
99
78
|
* Returns whether we should skip frame or not.
|
|
100
79
|
* @realm client
|
|
@@ -103,3 +82,10 @@ interface Frame_blendLib {
|
|
|
103
82
|
ShouldSkipFrame(): boolean;
|
|
104
83
|
}
|
|
105
84
|
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|