@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.
Files changed (272) hide show
  1. package/package.json +1 -1
  2. package/types/achievementicon.d.tlua +0 -1
  3. package/types/achievements.d.tlua +0 -31
  4. package/types/ai.d.tlua +0 -11
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +0 -37
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +0 -4
  11. package/types/bf_read.d.tlua +0 -23
  12. package/types/bit.d.tlua +0 -23
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +0 -33
  15. package/types/ceffectdata.d.tlua +0 -65
  16. package/types/chat.d.tlua +0 -11
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +0 -15
  19. package/types/cluaemitter.d.tlua +0 -25
  20. package/types/clualocomotion.d.tlua +0 -81
  21. package/types/cluaparticle.d.tlua +0 -89
  22. package/types/cmovedata.d.tlua +0 -95
  23. package/types/cnavarea.d.tlua +0 -155
  24. package/types/cnavladder.d.tlua +0 -45
  25. package/types/cnewparticleeffect.d.tlua +0 -53
  26. package/types/color.d.tlua +0 -57
  27. package/types/concommand.d.tlua +0 -9
  28. package/types/constraint.d.tlua +0 -57
  29. package/types/construct.d.tlua +0 -3
  30. package/types/contentheader.d.tlua +1 -6
  31. package/types/contenticon.d.tlua +1 -18
  32. package/types/contentsidebar.d.tlua +1 -8
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +1 -8
  35. package/types/controlpanel.d.tlua +6 -31
  36. package/types/controlpresets.d.tlua +1 -26
  37. package/types/convar.d.tlua +0 -33
  38. package/types/cookie.d.tlua +0 -7
  39. package/types/coroutine.d.tlua +0 -15
  40. package/types/crecipientfilter.d.tlua +0 -33
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +0 -29
  43. package/types/ctakedamageinfo.d.tlua +0 -67
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +0 -13
  46. package/types/cusercmd.d.tlua +0 -55
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +0 -13
  49. package/types/dadjustablemodelpanel.d.tlua +1 -14
  50. package/types/dalphabar.d.tlua +1 -6
  51. package/types/dbinder.d.tlua +1 -8
  52. package/types/dbubblecontainer.d.tlua +1 -4
  53. package/types/dbutton.d.tlua +1 -16
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +1 -10
  57. package/types/dcheckboxlabel.d.tlua +0 -19
  58. package/types/dcollapsiblecategory.d.tlua +1 -46
  59. package/types/dcolorbutton.d.tlua +1 -14
  60. package/types/dcolorcombo.d.tlua +1 -10
  61. package/types/dcolorcube.d.tlua +1 -26
  62. package/types/dcolormixer.d.tlua +1 -54
  63. package/types/dcolorpalette.d.tlua +1 -46
  64. package/types/dcolumnsheet.d.tlua +1 -10
  65. package/types/dcombobox.d.tlua +1 -34
  66. package/types/ddragbase.d.tlua +1 -26
  67. package/types/ddrawer.d.tlua +1 -16
  68. package/types/debug.d.tlua +25 -60
  69. package/types/debugoverlay.d.tlua +0 -23
  70. package/types/dentityproperties.d.tlua +1 -10
  71. package/types/derma.d.tlua +0 -21
  72. package/types/dexpandbutton.d.tlua +1 -6
  73. package/types/dfilebrowser.d.tlua +0 -41
  74. package/types/dform.d.tlua +1 -36
  75. package/types/dframe.d.tlua +0 -49
  76. package/types/dgrid.d.tlua +1 -22
  77. package/types/dhorizontaldivider.d.tlua +1 -40
  78. package/types/dhorizontalscroller.d.tlua +1 -22
  79. package/types/dhscrollbar.d.tlua +1 -22
  80. package/types/dhtml.d.tlua +1 -16
  81. package/types/dhtmlcontrols.d.tlua +0 -11
  82. package/types/diconbrowser.d.tlua +1 -22
  83. package/types/diconlayout.d.tlua +1 -36
  84. package/types/dimage.d.tlua +1 -39
  85. package/types/dimagebutton.d.tlua +0 -19
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +1 -66
  88. package/types/dlabeleditable.d.tlua +1 -10
  89. package/types/dlabelurl.d.tlua +1 -20
  90. package/types/dlistbox.d.tlua +1 -16
  91. package/types/dlistboxitem.d.tlua +1 -8
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +1 -68
  94. package/types/dlistview_column.d.tlua +1 -28
  95. package/types/dlistview_columnplain.d.tlua +0 -1
  96. package/types/dlistview_draggerbar.d.tlua +0 -1
  97. package/types/dlistview_line.d.tlua +1 -26
  98. package/types/dlistviewheaderlabel.d.tlua +0 -1
  99. package/types/dlistviewlabel.d.tlua +0 -1
  100. package/types/dlistviewline.d.tlua +0 -1
  101. package/types/dmenu.d.tlua +1 -53
  102. package/types/dmenubar.d.tlua +1 -11
  103. package/types/dmenuoption.d.tlua +1 -26
  104. package/types/dmenuoptioncvar.d.tlua +1 -12
  105. package/types/dmodelpanel.d.tlua +1 -44
  106. package/types/dmodelselect.d.tlua +1 -4
  107. package/types/dmodelselectmulti.d.tlua +1 -4
  108. package/types/dnotify.d.tlua +1 -20
  109. package/types/dnumberscratch.d.tlua +1 -52
  110. package/types/dnumberwang.d.tlua +1 -32
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +0 -35
  113. package/types/dpanel.d.tlua +1 -28
  114. package/types/dpanellist.d.tlua +0 -23
  115. package/types/dpaneloverlay.d.tlua +1 -14
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +1 -12
  118. package/types/dprogress.d.tlua +1 -6
  119. package/types/dproperties.d.tlua +1 -8
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -6
  122. package/types/dproperty_entity.d.tlua +0 -1
  123. package/types/dproperty_float.d.tlua +0 -1
  124. package/types/dproperty_generic.d.tlua +1 -10
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +9 -41
  128. package/types/dragndrop.d.tlua +0 -21
  129. package/types/draw.d.tlua +0 -22
  130. package/types/drgbpicker.d.tlua +1 -8
  131. package/types/drive.d.tlua +6 -31
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +0 -21
  134. package/types/dshape.d.tlua +1 -14
  135. package/types/dsizetocontents.d.tlua +1 -10
  136. package/types/dslider.d.tlua +1 -56
  137. package/types/dsprite.d.tlua +1 -18
  138. package/types/dtab.d.tlua +1 -16
  139. package/types/dtextentry.d.tlua +1 -86
  140. package/types/dtilelayout.d.tlua +1 -42
  141. package/types/dtooltip.d.tlua +1 -12
  142. package/types/dtree.d.tlua +1 -32
  143. package/types/dtree_node.d.tlua +1 -136
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +0 -60
  146. package/types/dverticaldivider.d.tlua +1 -46
  147. package/types/dvscrollbar.d.tlua +1 -22
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +1 -8
  150. package/types/effects.d.tlua +0 -13
  151. package/types/engine.d.tlua +0 -43
  152. package/types/entity.d.tlua +2 -1319
  153. package/types/ents.d.tlua +0 -44
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +0 -79
  156. package/types/file_class.d.tlua +0 -1
  157. package/types/fingerposer.d.tlua +0 -1
  158. package/types/fingervar.d.tlua +0 -1
  159. package/types/frame.d.tlua +0 -1
  160. package/types/frame_blend.d.tlua +0 -15
  161. package/types/game.d.tlua +0 -79
  162. package/types/gameevent.d.tlua +4 -9
  163. package/types/gamemode.d.tlua +0 -6
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +0 -535
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +0 -9
  168. package/types/gui.d.tlua +0 -43
  169. package/types/gwen.d.tlua +0 -7
  170. package/types/halo.d.tlua +0 -5
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +0 -9
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +0 -3
  175. package/types/iconeditor.d.tlua +1 -22
  176. package/types/igmodaudiochannel.d.tlua +0 -83
  177. package/types/imagecheckbox.d.tlua +1 -8
  178. package/types/imaterial.d.tlua +0 -53
  179. package/types/imesh.d.tlua +0 -11
  180. package/types/input.d.tlua +0 -47
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +0 -19
  183. package/types/isave.d.tlua +0 -19
  184. package/types/itexture.d.tlua +0 -21
  185. package/types/ivideowriter.d.tlua +0 -11
  186. package/types/jit.d.tlua +9 -42
  187. package/types/killicon.d.tlua +0 -15
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +0 -3
  190. package/types/list.d.tlua +0 -17
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +0 -5
  193. package/types/markupobject.d.tlua +0 -11
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +200 -371
  196. package/types/matproxy.d.tlua +0 -7
  197. package/types/matselect.d.tlua +1 -22
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +0 -5
  200. package/types/mesh.d.tlua +0 -39
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +0 -21
  203. package/types/navmesh.d.tlua +0 -53
  204. package/types/net.d.tlua +0 -104
  205. package/types/nextbot.d.tlua +10 -83
  206. package/types/notification.d.tlua +0 -5
  207. package/types/npc.d.tlua +1 -364
  208. package/types/numpad.d.tlua +0 -15
  209. package/types/os.d.tlua +0 -8
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +2 -662
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +0 -63
  214. package/types/permissions.d.tlua +0 -13
  215. package/types/physcollide.d.tlua +0 -7
  216. package/types/physenv.d.tlua +0 -23
  217. package/types/physobj.d.tlua +0 -157
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +11 -594
  220. package/types/player_manager.d.tlua +0 -27
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +0 -13
  223. package/types/projectedtexture.d.tlua +0 -97
  224. package/types/properties.d.tlua +0 -11
  225. package/types/propselect.d.tlua +1 -10
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +0 -285
  228. package/types/resource.d.tlua +0 -5
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +1 -108
  231. package/types/saverestore.d.tlua +0 -25
  232. package/types/schedule.d.tlua +0 -13
  233. package/types/scripted_ents.d.tlua +0 -21
  234. package/types/search.d.tlua +0 -3
  235. package/types/serverlist.d.tlua +0 -15
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +0 -21
  239. package/types/spawnicon.d.tlua +1 -16
  240. package/types/spawnmenu.d.tlua +0 -48
  241. package/types/spawnmenucontentpanel.d.tlua +1 -10
  242. package/types/sql.d.tlua +0 -19
  243. package/types/stack.d.tlua +0 -11
  244. package/types/steamworks.d.tlua +0 -37
  245. package/types/string.d.tlua +0 -96
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +0 -69
  248. package/types/surfaceinfo.d.tlua +0 -11
  249. package/types/system.d.tlua +0 -21
  250. package/types/table.d.tlua +0 -93
  251. package/types/task.d.tlua +0 -19
  252. package/types/team.d.tlua +0 -39
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +0 -29
  256. package/types/tool.d.tlua +1 -90
  257. package/types/ugcpublishwindow.d.tlua +1 -18
  258. package/types/umsg.d.tlua +0 -25
  259. package/types/undo.d.tlua +0 -21
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +0 -5
  262. package/types/utf8.d.tlua +0 -15
  263. package/types/util.d.tlua +0 -185
  264. package/types/vector.d.tlua +0 -73
  265. package/types/vehicle.d.tlua +2 -102
  266. package/types/vgui.d.tlua +0 -33
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +0 -71
  269. package/types/weapon.d.tlua +2 -168
  270. package/types/weapons.d.tlua +0 -12
  271. package/types/widgets.d.tlua +0 -3
  272. package/types/workshopfilebase.d.tlua +0 -11
@@ -10,8 +10,6 @@
10
10
  *
11
11
  * @source https://wiki.facepunch.com/gmod/IMesh
12
12
  */
13
- interface IMesh {}
14
-
15
13
  interface IMesh {
16
14
  /**
17
15
  * Builds the mesh from a table mesh vertexes.
@@ -29,36 +27,28 @@ interface IMesh {
29
27
  * @source https://wiki.facepunch.com/gmod/IMesh:BuildFromTriangles
30
28
  */
31
29
  BuildFromTriangles(self: IMesh, vertexes: table): void;
32
- }
33
30
 
34
- interface IMesh {
35
31
  /**
36
32
  * Deletes the mesh and frees the memory used by it.
37
33
  * @realm client
38
34
  * @source https://wiki.facepunch.com/gmod/IMesh:Destroy
39
35
  */
40
36
  Destroy(self: IMesh): void;
41
- }
42
37
 
43
- interface IMesh {
44
38
  /**
45
39
  * Renders the mesh with the active matrix.
46
40
  * @realm client
47
41
  * @source https://wiki.facepunch.com/gmod/IMesh:Draw
48
42
  */
49
43
  Draw(self: IMesh): void;
50
- }
51
44
 
52
- interface IMesh {
53
45
  /**
54
46
  * Renders the mesh with the active matrix and given bone matrices.
55
47
  * @realm client
56
48
  * @source https://wiki.facepunch.com/gmod/IMesh:DrawSkinned
57
49
  */
58
50
  DrawSkinned(self: IMesh, bones: VMatrix[], multiply?: boolean): void;
59
- }
60
51
 
61
- interface IMesh {
62
52
  /**
63
53
  * Returns whether this [IMesh](https://wiki.facepunch.com/gmod/IMesh) is valid or not.
64
54
  *
@@ -67,4 +57,3 @@ interface IMesh {
67
57
  */
68
58
  IsValid(self: IMesh): boolean;
69
59
  }
70
-
@@ -13,18 +13,14 @@ interface InputLib {
13
13
  * @source https://wiki.facepunch.com/gmod/input.CheckKeyTrapping
14
14
  */
15
15
  CheckKeyTrapping(): number;
16
- }
17
16
 
18
- interface InputLib {
19
17
  /**
20
18
  * Returns the digital value of an analog stick on the current (set up via convars) controller.
21
19
  * @realm client and menu
22
20
  * @source https://wiki.facepunch.com/gmod/input.GetAnalogValue
23
21
  */
24
22
  GetAnalogValue(axis: ANALOG): number;
25
- }
26
23
 
27
- interface InputLib {
28
24
  /**
29
25
  * Returns the cursor's position on the screen.
30
26
  * On macOS, the cursor isn't locked on the middle of the screen which causes a significant offset of the positions returned by this function.
@@ -33,18 +29,14 @@ interface InputLib {
33
29
  * @source https://wiki.facepunch.com/gmod/input.GetCursorPos
34
30
  */
35
31
  GetCursorPos(): (number, number);
36
- }
37
32
 
38
- interface InputLib {
39
33
  /**
40
34
  * Gets the button code from a button name. This is opposite of [input.GetKeyName](https://wiki.facepunch.com/gmod/input.GetKeyName).
41
35
  * @realm client and menu
42
36
  * @source https://wiki.facepunch.com/gmod/input.GetKeyCode
43
37
  */
44
38
  GetKeyCode(button: string): BUTTON_CODE;
45
- }
46
39
 
47
- interface InputLib {
48
40
  /**
49
41
  * Gets the button name from a numeric button code. The name needs to be
50
42
  * translated with language.GetPhrase before being displayed.
@@ -56,10 +48,7 @@ interface InputLib {
56
48
  * @source https://wiki.facepunch.com/gmod/input.GetKeyName
57
49
  */
58
50
  GetKeyName(button: BUTTON_CODE | number): string;
59
- }
60
51
 
61
-
62
- interface InputLib {
63
52
  /**
64
53
  * Gets whether the specified button code is down.
65
54
  *
@@ -70,109 +59,84 @@ interface InputLib {
70
59
  * @source https://wiki.facepunch.com/gmod/input.IsButtonDown
71
60
  */
72
61
  IsButtonDown(button: BUTTON_CODE | number): boolean;
73
- }
74
62
 
75
-
76
- interface InputLib {
77
63
  /**
78
64
  * Returns whether a control key is being pressed.
79
65
  * @realm client and menu
80
66
  * @source https://wiki.facepunch.com/gmod/input.IsControlDown
81
67
  */
82
68
  IsControlDown(): boolean;
83
- }
84
69
 
85
- interface InputLib {
86
70
  /**
87
71
  * Gets whether a key is down.
88
72
  * @realm client and menu
89
73
  * @source https://wiki.facepunch.com/gmod/input.IsKeyDown
90
74
  */
91
75
  IsKeyDown(key: number): boolean;
92
- }
93
76
 
94
- interface InputLib {
95
77
  /**
96
78
  * Returns whether key trapping is activate and the next key press will be captured.
97
79
  * @realm client and menu
98
80
  * @source https://wiki.facepunch.com/gmod/input.IsKeyTrapping
99
81
  */
100
82
  IsKeyTrapping(): boolean;
101
- }
102
83
 
103
- interface InputLib {
104
84
  /**
105
85
  * Gets whether a mouse button is down.
106
86
  * @realm client and menu
107
87
  * @source https://wiki.facepunch.com/gmod/input.IsMouseDown
108
88
  */
109
89
  IsMouseDown(mouseKey: number): boolean;
110
- }
111
90
 
112
- interface InputLib {
113
91
  /**
114
92
  * Gets whether a shift key is being pressed
115
93
  * @realm client and menu
116
94
  * @source https://wiki.facepunch.com/gmod/input.IsShiftDown
117
95
  */
118
96
  IsShiftDown(): boolean;
119
- }
120
97
 
121
- interface InputLib {
122
98
  /**
123
99
  * Returns the client's bound key for the specified console command. If the player has multiple keys bound to a single command, then the key with the lowest [Enums/BUTTON_CODE](https://wiki.facepunch.com/gmod/Enums/BUTTON_CODE) will be returned.
124
100
  * @realm client and menu
125
101
  * @source https://wiki.facepunch.com/gmod/input.LookupBinding
126
102
  */
127
103
  LookupBinding(binding: string, exact?: boolean): string;
128
- }
129
104
 
130
- interface InputLib {
131
105
  /**
132
106
  * Returns the bind string that the given key is bound to.
133
107
  * @realm client and menu
134
108
  * @source https://wiki.facepunch.com/gmod/input.LookupKeyBinding
135
109
  */
136
110
  LookupKeyBinding(key: BUTTON_CODE): string;
137
- }
138
111
 
139
- interface InputLib {
140
112
  /**
141
113
  * Switches to the provided weapon on the next CUserCmd generation/CreateMove call. Direct binding to [CInput::MakeWeaponSelection](https://github.com/ValveSoftware/source-sdk-2013/blob/39f6dde8fbc238727c020d13b05ecadd31bda4c0/src/game/client/in_main.cpp#L989-L992).
142
114
  * @realm client
143
115
  * @source https://wiki.facepunch.com/gmod/input.SelectWeapon
144
116
  */
145
117
  SelectWeapon(weapon: Weapon): void;
146
- }
147
118
 
148
- interface InputLib {
149
119
  /**
150
120
  * Sets the cursor's position on the screen, relative to the topleft corner of the window
151
121
  * @realm client and menu
152
122
  * @source https://wiki.facepunch.com/gmod/input.SetCursorPos
153
123
  */
154
124
  SetCursorPos(mouseX: number, mouseY: number): void;
155
- }
156
125
 
157
- interface InputLib {
158
126
  /**
159
127
  * Begins waiting for a key to be pressed so we can save it for [input.CheckKeyTrapping](https://wiki.facepunch.com/gmod/input.CheckKeyTrapping). Used by the [DBinder](https://wiki.facepunch.com/gmod/DBinder).
160
128
  * @realm client and menu
161
129
  * @source https://wiki.facepunch.com/gmod/input.StartKeyTrapping
162
130
  */
163
131
  StartKeyTrapping(): void;
164
- }
165
132
 
166
- interface InputLib {
167
133
  /**
168
134
  * Translates a console command alias, basically reverse of the `alias` console command.
169
135
  * @realm client and menu
170
136
  * @source https://wiki.facepunch.com/gmod/input.TranslateAlias
171
137
  */
172
138
  TranslateAlias(command: string): string;
173
- }
174
139
 
175
- interface InputLib {
176
140
  /**
177
141
  * Returns whether a key was initially pressed in the same frame this function was called.
178
142
  *
@@ -182,9 +146,7 @@ interface InputLib {
182
146
  * @source https://wiki.facepunch.com/gmod/input.WasKeyPressed
183
147
  */
184
148
  WasKeyPressed(key: number): boolean;
185
- }
186
149
 
187
- interface InputLib {
188
150
  /**
189
151
  * Returns whether a key was released in the same frame this function was called.
190
152
  *
@@ -194,9 +156,7 @@ interface InputLib {
194
156
  * @source https://wiki.facepunch.com/gmod/input.WasKeyReleased
195
157
  */
196
158
  WasKeyReleased(key: number): boolean;
197
- }
198
159
 
199
- interface InputLib {
200
160
  /**
201
161
  * Returns whether the key is being held down or not.
202
162
  *
@@ -206,9 +166,7 @@ interface InputLib {
206
166
  * @source https://wiki.facepunch.com/gmod/input.WasKeyTyped
207
167
  */
208
168
  WasKeyTyped(key: number): boolean;
209
- }
210
169
 
211
- interface InputLib {
212
170
  /**
213
171
  * Returns whether a mouse key was double pressed in the same frame this function was called.
214
172
  *
@@ -221,9 +179,7 @@ interface InputLib {
221
179
  * @source https://wiki.facepunch.com/gmod/input.WasMouseDoublePressed
222
180
  */
223
181
  WasMouseDoublePressed(button: number): boolean;
224
- }
225
182
 
226
- interface InputLib {
227
183
  /**
228
184
  * Returns whether a mouse key was initially pressed in the same frame this function was called.
229
185
  *
@@ -236,9 +192,7 @@ interface InputLib {
236
192
  * @source https://wiki.facepunch.com/gmod/input.WasMousePressed
237
193
  */
238
194
  WasMousePressed(key: number): boolean;
239
- }
240
195
 
241
- interface InputLib {
242
196
  /**
243
197
  * Returns whether a mouse key was released in the same frame this function was called.
244
198
  *
@@ -249,4 +203,3 @@ interface InputLib {
249
203
  */
250
204
  WasMouseReleased(key: number): boolean;
251
205
  }
252
-
@@ -10,4 +10,3 @@
10
10
  * @source https://wiki.facepunch.com/gmod/InvalidateInternalEntityCache
11
11
  */
12
12
  declare function InvalidateInternalEntityCache(isPly: boolean): void;
13
-
@@ -6,8 +6,6 @@
6
6
  * It allows you to read blocks directly from the save game files used by Half-Life 2 save system when such save is loaded.
7
7
  * @source https://wiki.facepunch.com/gmod/IRestore
8
8
  */
9
- interface IRestore {}
10
-
11
9
  interface IRestore {
12
10
  /**
13
11
  * Ends current data block started with [IRestore:StartBlock](https://wiki.facepunch.com/gmod/IRestore:StartBlock) and returns to the parent block.
@@ -18,72 +16,56 @@ interface IRestore {
18
16
  * @source https://wiki.facepunch.com/gmod/IRestore:EndBlock
19
17
  */
20
18
  EndBlock(self: IRestore): void;
21
- }
22
19
 
23
- interface IRestore {
24
20
  /**
25
21
  * Reads next bytes from the restore object as an [Angle](https://wiki.facepunch.com/gmod/Angle).
26
22
  * @realm shared
27
23
  * @source https://wiki.facepunch.com/gmod/IRestore:ReadAngle
28
24
  */
29
25
  ReadAngle(self: IRestore): Angle;
30
- }
31
26
 
32
- interface IRestore {
33
27
  /**
34
28
  * Reads next bytes from the restore object as a [boolean](https://wiki.facepunch.com/gmod/boolean).
35
29
  * @realm shared
36
30
  * @source https://wiki.facepunch.com/gmod/IRestore:ReadBool
37
31
  */
38
32
  ReadBool(self: IRestore): boolean;
39
- }
40
33
 
41
- interface IRestore {
42
34
  /**
43
35
  * Reads next bytes from the restore object as an [Entity](https://wiki.facepunch.com/gmod/Entity).
44
36
  * @realm shared
45
37
  * @source https://wiki.facepunch.com/gmod/IRestore:ReadEntity
46
38
  */
47
39
  ReadEntity(self: IRestore): Entity;
48
- }
49
40
 
50
- interface IRestore {
51
41
  /**
52
42
  * Reads next bytes from the restore object as a floating point [number](https://wiki.facepunch.com/gmod/number).
53
43
  * @realm shared
54
44
  * @source https://wiki.facepunch.com/gmod/IRestore:ReadFloat
55
45
  */
56
46
  ReadFloat(self: IRestore): number;
57
- }
58
47
 
59
- interface IRestore {
60
48
  /**
61
49
  * Reads next bytes from the restore object as an integer [number](https://wiki.facepunch.com/gmod/number).
62
50
  * @realm shared
63
51
  * @source https://wiki.facepunch.com/gmod/IRestore:ReadInt
64
52
  */
65
53
  ReadInt(self: IRestore): number;
66
- }
67
54
 
68
- interface IRestore {
69
55
  /**
70
56
  * Reads next bytes from the restore object as a [string](https://wiki.facepunch.com/gmod/string).
71
57
  * @realm shared
72
58
  * @source https://wiki.facepunch.com/gmod/IRestore:ReadString
73
59
  */
74
60
  ReadString(self: IRestore): string;
75
- }
76
61
 
77
- interface IRestore {
78
62
  /**
79
63
  * Reads next bytes from the restore object as a [Vector](https://wiki.facepunch.com/gmod/Vector).
80
64
  * @realm shared
81
65
  * @source https://wiki.facepunch.com/gmod/IRestore:ReadVector
82
66
  */
83
67
  ReadVector(self: IRestore): Vector;
84
- }
85
68
 
86
- interface IRestore {
87
69
  /**
88
70
  * Loads next block of data to be read inside current block. Blocks **must** be ended with [IRestore:EndBlock](https://wiki.facepunch.com/gmod/IRestore:EndBlock).
89
71
  * @realm shared
@@ -91,4 +73,3 @@ interface IRestore {
91
73
  */
92
74
  StartBlock(self: IRestore): string;
93
75
  }
94
-
@@ -6,8 +6,6 @@
6
6
  * It allows you to write blocks directly into the save game files used by Half-Life 2 save system when such save is being saved.
7
7
  * @source https://wiki.facepunch.com/gmod/ISave
8
8
  */
9
- interface ISave {}
10
-
11
9
  interface ISave {
12
10
  /**
13
11
  * Ends current data block started with [ISave:StartBlock](https://wiki.facepunch.com/gmod/ISave:StartBlock) and returns to the parent block.
@@ -18,72 +16,56 @@ interface ISave {
18
16
  * @source https://wiki.facepunch.com/gmod/ISave:EndBlock
19
17
  */
20
18
  EndBlock(self: ISave): void;
21
- }
22
19
 
23
- interface ISave {
24
20
  /**
25
21
  * Starts a new block of data that you can write to inside current block. Blocks **must** be ended with [ISave:EndBlock](https://wiki.facepunch.com/gmod/ISave:EndBlock).
26
22
  * @realm shared
27
23
  * @source https://wiki.facepunch.com/gmod/ISave:StartBlock
28
24
  */
29
25
  StartBlock(self: ISave, name: string): void;
30
- }
31
26
 
32
- interface ISave {
33
27
  /**
34
28
  * Writes an [Angle](https://wiki.facepunch.com/gmod/Angle) to the save object.
35
29
  * @realm shared
36
30
  * @source https://wiki.facepunch.com/gmod/ISave:WriteAngle
37
31
  */
38
32
  WriteAngle(self: ISave, ang: Angle): void;
39
- }
40
33
 
41
- interface ISave {
42
34
  /**
43
35
  * Writes a [boolean](https://wiki.facepunch.com/gmod/boolean) to the save object.
44
36
  * @realm shared
45
37
  * @source https://wiki.facepunch.com/gmod/ISave:WriteBool
46
38
  */
47
39
  WriteBool(self: ISave, bool: boolean): void;
48
- }
49
40
 
50
- interface ISave {
51
41
  /**
52
42
  * Writes an [Entity](https://wiki.facepunch.com/gmod/Entity) to the save object.
53
43
  * @realm shared
54
44
  * @source https://wiki.facepunch.com/gmod/ISave:WriteEntity
55
45
  */
56
46
  WriteEntity(self: ISave, ent: Entity): void;
57
- }
58
47
 
59
- interface ISave {
60
48
  /**
61
49
  * Writes a floating point [number](https://wiki.facepunch.com/gmod/number) to the save object.
62
50
  * @realm shared
63
51
  * @source https://wiki.facepunch.com/gmod/ISave:WriteFloat
64
52
  */
65
53
  WriteFloat(self: ISave, float: number): void;
66
- }
67
54
 
68
- interface ISave {
69
55
  /**
70
56
  * Writes an integer [number](https://wiki.facepunch.com/gmod/number) to the save object.
71
57
  * @realm shared
72
58
  * @source https://wiki.facepunch.com/gmod/ISave:WriteInt
73
59
  */
74
60
  WriteInt(self: ISave, int: number): void;
75
- }
76
61
 
77
- interface ISave {
78
62
  /**
79
63
  * Writes a **null terminated** [string](https://wiki.facepunch.com/gmod/string) to the save object.
80
64
  * @realm shared
81
65
  * @source https://wiki.facepunch.com/gmod/ISave:WriteString
82
66
  */
83
67
  WriteString(self: ISave, str: string): void;
84
- }
85
68
 
86
- interface ISave {
87
69
  /**
88
70
  * Writes a [Vector](https://wiki.facepunch.com/gmod/Vector) to the save object.
89
71
  * @realm shared
@@ -91,4 +73,3 @@ interface ISave {
91
73
  */
92
74
  WriteVector(self: ISave, vec: Vector): void;
93
75
  }
94
-
@@ -9,8 +9,6 @@
9
9
  *
10
10
  * @source https://wiki.facepunch.com/gmod/ITexture
11
11
  */
12
- interface ITexture {}
13
-
14
12
  interface ITexture {
15
13
  /**
16
14
  * Invokes the generator of the texture. Reloads file based textures from disk and clears render target textures.
@@ -18,9 +16,7 @@ interface ITexture {
18
16
  * @source https://wiki.facepunch.com/gmod/ITexture:Download
19
17
  */
20
18
  Download(self: ITexture): void;
21
- }
22
19
 
23
- interface ITexture {
24
20
  /**
25
21
  * Returns the color of the specified pixel, only works for textures created from PNG files.
26
22
  *
@@ -28,54 +24,42 @@ interface ITexture {
28
24
  * @source https://wiki.facepunch.com/gmod/ITexture:GetColor
29
25
  */
30
26
  GetColor(self: ITexture, x: number, y: number): Color;
31
- }
32
27
 
33
- interface ITexture {
34
28
  /**
35
29
  * Returns the true unmodified height of the texture.
36
30
  * @realm shared and menu
37
31
  * @source https://wiki.facepunch.com/gmod/ITexture:GetMappingHeight
38
32
  */
39
33
  GetMappingHeight(self: ITexture): number;
40
- }
41
34
 
42
- interface ITexture {
43
35
  /**
44
36
  * Returns the true unmodified width of the texture.
45
37
  * @realm shared and menu
46
38
  * @source https://wiki.facepunch.com/gmod/ITexture:GetMappingWidth
47
39
  */
48
40
  GetMappingWidth(self: ITexture): number;
49
- }
50
41
 
51
- interface ITexture {
52
42
  /**
53
43
  * Returns the name of the texture, in most cases the path.
54
44
  * @realm shared and menu
55
45
  * @source https://wiki.facepunch.com/gmod/ITexture:GetName
56
46
  */
57
47
  GetName(self: ITexture): string;
58
- }
59
48
 
60
- interface ITexture {
61
49
  /**
62
50
  * Returns the number of animation frames in this texture.
63
51
  * @realm shared and menu
64
52
  * @source https://wiki.facepunch.com/gmod/ITexture:GetNumAnimationFrames
65
53
  */
66
54
  GetNumAnimationFrames(self: ITexture): number;
67
- }
68
55
 
69
- interface ITexture {
70
56
  /**
71
57
  * Returns the modified height of the texture, this value may be affected by mipmapping and other factors.
72
58
  * @realm shared and menu
73
59
  * @source https://wiki.facepunch.com/gmod/ITexture:Height
74
60
  */
75
61
  Height(self: ITexture): number;
76
- }
77
62
 
78
- interface ITexture {
79
63
  /**
80
64
  * Returns whenever the texture is valid. (i.e. was loaded successfully or not)
81
65
  *
@@ -86,18 +70,14 @@ interface ITexture {
86
70
  * @source https://wiki.facepunch.com/gmod/ITexture:IsError
87
71
  */
88
72
  IsError(self: ITexture): boolean;
89
- }
90
73
 
91
- interface ITexture {
92
74
  /**
93
75
  * Returns whenever the texture is the error texture (pink and black checkerboard pattern).
94
76
  * @realm shared and menu
95
77
  * @source https://wiki.facepunch.com/gmod/ITexture:IsErrorTexture
96
78
  */
97
79
  IsErrorTexture(self: ITexture): boolean;
98
- }
99
80
 
100
- interface ITexture {
101
81
  /**
102
82
  * Returns the modified width of the texture, this value may be affected by mipmapping and other factors.
103
83
  * @realm shared and menu
@@ -105,4 +85,3 @@ interface ITexture {
105
85
  */
106
86
  Width(self: ITexture): number;
107
87
  }
108
-
@@ -4,8 +4,6 @@
4
4
  * This is returned from [video.Record](https://wiki.facepunch.com/gmod/video.Record).
5
5
  * @source https://wiki.facepunch.com/gmod/IVideoWriter
6
6
  */
7
- interface IVideoWriter {}
8
-
9
7
  interface IVideoWriter {
10
8
  /**
11
9
  * Adds the current framebuffer to the video stream.
@@ -13,36 +11,28 @@ interface IVideoWriter {
13
11
  * @source https://wiki.facepunch.com/gmod/IVideoWriter:AddFrame
14
12
  */
15
13
  AddFrame(self: IVideoWriter, frameTime: number, downsample: boolean): void;
16
- }
17
14
 
18
- interface IVideoWriter {
19
15
  /**
20
16
  * Ends the video recording and dumps it to disk.
21
17
  * @realm client and menu
22
18
  * @source https://wiki.facepunch.com/gmod/IVideoWriter:Finish
23
19
  */
24
20
  Finish(self: IVideoWriter): void;
25
- }
26
21
 
27
- interface IVideoWriter {
28
22
  /**
29
23
  * Returns the height of the video stream.
30
24
  * @realm client and menu
31
25
  * @source https://wiki.facepunch.com/gmod/IVideoWriter:Height
32
26
  */
33
27
  Height(self: IVideoWriter): number;
34
- }
35
28
 
36
- interface IVideoWriter {
37
29
  /**
38
30
  * Sets whether to record sound or not.
39
31
  * @realm client and menu
40
32
  * @source https://wiki.facepunch.com/gmod/IVideoWriter:SetRecordSound
41
33
  */
42
34
  SetRecordSound(self: IVideoWriter, record: boolean): void;
43
- }
44
35
 
45
- interface IVideoWriter {
46
36
  /**
47
37
  * Returns the width of the video stream.
48
38
  * @realm client and menu
@@ -50,4 +40,3 @@ interface IVideoWriter {
50
40
  */
51
41
  Width(self: IVideoWriter): number;
52
42
  }
53
-