@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tlua/gmod",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Garry's Mod type declarations for tlua, generated from the GMod wiki.",
5
5
  "types": "index.d.tlua",
6
6
  "files": [
@@ -9,4 +9,3 @@
9
9
  * @source https://wiki.facepunch.com/gmod/AchievementIcon
10
10
  */
11
11
  interface AchievementIcon extends Panel {}
12
-
@@ -14,18 +14,14 @@ interface AchievementsLib {
14
14
  * @source https://wiki.facepunch.com/gmod/achievements.BalloonPopped
15
15
  */
16
16
  BalloonPopped(): void;
17
- }
18
17
 
19
- interface AchievementsLib {
20
18
  /**
21
19
  * Returns the amount of achievements currently in Garry's Mod.
22
20
  * @realm client and menu
23
21
  * @source https://wiki.facepunch.com/gmod/achievements.Count
24
22
  */
25
23
  Count(): number;
26
- }
27
24
 
28
- interface AchievementsLib {
29
25
  /**
30
26
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
31
27
  * Adds one to the count of balls eaten. Once this count reaches 200, the 'Ball Eater' achievement is unlocked.
@@ -33,45 +29,35 @@ interface AchievementsLib {
33
29
  * @source https://wiki.facepunch.com/gmod/achievements.EatBall
34
30
  */
35
31
  EatBall(): void;
36
- }
37
32
 
38
- interface AchievementsLib {
39
33
  /**
40
34
  * Retrieves progress of given achievement.
41
35
  * @realm client and menu
42
36
  * @source https://wiki.facepunch.com/gmod/achievements.GetCount
43
37
  */
44
38
  GetCount(achievementID: number): number;
45
- }
46
39
 
47
- interface AchievementsLib {
48
40
  /**
49
41
  * Retrieves the description of the given achievement.
50
42
  * @realm client and menu
51
43
  * @source https://wiki.facepunch.com/gmod/achievements.GetDesc
52
44
  */
53
45
  GetDesc(achievementID: number): string;
54
- }
55
46
 
56
- interface AchievementsLib {
57
47
  /**
58
48
  * Retrieves the end progress goal of the given achievement.
59
49
  * @realm client and menu
60
50
  * @source https://wiki.facepunch.com/gmod/achievements.GetGoal
61
51
  */
62
52
  GetGoal(achievementID: number): number;
63
- }
64
53
 
65
- interface AchievementsLib {
66
54
  /**
67
55
  * Retrieves the name of the given achievement.
68
56
  * @realm client and menu
69
57
  * @source https://wiki.facepunch.com/gmod/achievements.GetName
70
58
  */
71
59
  GetName(achievementID: number): string;
72
- }
73
60
 
74
- interface AchievementsLib {
75
61
  /**
76
62
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
77
63
  * Adds one to the count of baddies killed. Once this count reaches 1000, the 'War Zone' achievement is unlocked.
@@ -79,9 +65,7 @@ interface AchievementsLib {
79
65
  * @source https://wiki.facepunch.com/gmod/achievements.IncBaddies
80
66
  */
81
67
  IncBaddies(): void;
82
- }
83
68
 
84
- interface AchievementsLib {
85
69
  /**
86
70
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
87
71
  * Adds one to the count of innocent animals killed. Once this count reaches 1000, the 'Innocent Bystander' achievement is unlocked.
@@ -89,9 +73,7 @@ interface AchievementsLib {
89
73
  * @source https://wiki.facepunch.com/gmod/achievements.IncBystander
90
74
  */
91
75
  IncBystander(): void;
92
- }
93
76
 
94
- interface AchievementsLib {
95
77
  /**
96
78
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
97
79
  * Adds one to the count of friendly NPCs killed. Once this count reaches 1000, the 'Bad Friend' achievement is unlocked.
@@ -99,18 +81,14 @@ interface AchievementsLib {
99
81
  * @source https://wiki.facepunch.com/gmod/achievements.IncGoodies
100
82
  */
101
83
  IncGoodies(): void;
102
- }
103
84
 
104
- interface AchievementsLib {
105
85
  /**
106
86
  * Returns whether the given achievement is obtained or not.
107
87
  * @realm client and menu
108
88
  * @source https://wiki.facepunch.com/gmod/achievements.IsAchieved
109
89
  */
110
90
  IsAchieved(achievementID: number): boolean;
111
- }
112
91
 
113
- interface AchievementsLib {
114
92
  /**
115
93
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
116
94
  * Adds one to the count of things removed. Once this count reaches 5000, the 'Destroyer' achievement is unlocked.
@@ -118,9 +96,7 @@ interface AchievementsLib {
118
96
  * @source https://wiki.facepunch.com/gmod/achievements.Remover
119
97
  */
120
98
  Remover(): void;
121
- }
122
99
 
123
- interface AchievementsLib {
124
100
  /**
125
101
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
126
102
  * Adds one to the count of how many times the spawnmenu has been opened. Once this count reaches 100,000, the 'Menu User' achievement is unlocked.
@@ -128,9 +104,7 @@ interface AchievementsLib {
128
104
  * @source https://wiki.facepunch.com/gmod/achievements.SpawnMenuOpen
129
105
  */
130
106
  SpawnMenuOpen(): void;
131
- }
132
107
 
133
- interface AchievementsLib {
134
108
  /**
135
109
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
136
110
  * Adds one to the count of NPCs spawned. Once this count reaches 1000, the 'Procreator' achievement is unlocked.
@@ -138,9 +112,7 @@ interface AchievementsLib {
138
112
  * @source https://wiki.facepunch.com/gmod/achievements.SpawnedNPC
139
113
  */
140
114
  SpawnedNPC(): void;
141
- }
142
115
 
143
- interface AchievementsLib {
144
116
  /**
145
117
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
146
118
  * Adds one to the count of props spawned. Once this count reaches 5000, the 'Creator' achievement is unlocked.
@@ -148,9 +120,7 @@ interface AchievementsLib {
148
120
  * @source https://wiki.facepunch.com/gmod/achievements.SpawnedProp
149
121
  */
150
122
  SpawnedProp(): void;
151
- }
152
123
 
153
- interface AchievementsLib {
154
124
  /**
155
125
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
156
126
  * Adds one to the count of ragdolls spawned. Once this count reaches 2000, the 'Dollhouse' achievement is unlocked.
@@ -159,4 +129,3 @@ interface AchievementsLib {
159
129
  */
160
130
  SpawnedRagdoll(): void;
161
131
  }
162
-
package/types/ai.d.tlua CHANGED
@@ -16,45 +16,35 @@ interface AiLib {
16
16
  * @source https://wiki.facepunch.com/gmod/ai.GetNodeCount
17
17
  */
18
18
  GetNodeCount(): number;
19
- }
20
19
 
21
- interface AiLib {
22
20
  /**
23
21
  * Translates a schedule name to its corresponding ID.
24
22
  * @realm server
25
23
  * @source https://wiki.facepunch.com/gmod/ai.GetScheduleID
26
24
  */
27
25
  GetScheduleID(sched: string): number;
28
- }
29
26
 
30
- interface AiLib {
31
27
  /**
32
28
  * Returns the squad leader of the given squad.
33
29
  * @realm server
34
30
  * @source https://wiki.facepunch.com/gmod/ai.GetSquadLeader
35
31
  */
36
32
  GetSquadLeader(squad: string): NPC;
37
- }
38
33
 
39
- interface AiLib {
40
34
  /**
41
35
  * Returns the amount of members a given squad has. See also [ai.GetSquadMembers](https://wiki.facepunch.com/gmod/ai.GetSquadMembers).
42
36
  * @realm server
43
37
  * @source https://wiki.facepunch.com/gmod/ai.GetSquadMemberCount
44
38
  */
45
39
  GetSquadMemberCount(squad: string): number;
46
- }
47
40
 
48
- interface AiLib {
49
41
  /**
50
42
  * Returns all members of a given squad. See also [ai.GetSquadMemberCount](https://wiki.facepunch.com/gmod/ai.GetSquadMemberCount) and [NPC:GetSquad](https://wiki.facepunch.com/gmod/NPC:GetSquad).
51
43
  * @realm server
52
44
  * @source https://wiki.facepunch.com/gmod/ai.GetSquadMembers
53
45
  */
54
46
  GetSquadMembers(squad: string): table;
55
- }
56
47
 
57
- interface AiLib {
58
48
  /**
59
49
  * Translates a task name to its corresponding ID.
60
50
  * @realm server
@@ -62,4 +52,3 @@ interface AiLib {
62
52
  */
63
53
  GetTaskID(task: string): number;
64
54
  }
65
-
@@ -14,4 +14,3 @@ interface Ai_scheduleLib {
14
14
  */
15
15
  New(name: string): table;
16
16
  }
17
-
@@ -14,4 +14,3 @@ interface Ai_taskLib {
14
14
  */
15
15
  New(): Task;
16
16
  }
17
-
@@ -23,9 +23,7 @@ interface Angle {
23
23
  __mul(l: number, r: Angle): Angle;
24
24
  __div(l: Angle, r: number): Angle;
25
25
  __unm(a: Angle): Angle;
26
- }
27
26
 
28
- interface Angle {
29
27
  /**
30
28
  * Adds the values of the argument angle to the orignal angle.
31
29
  *
@@ -34,108 +32,84 @@ interface Angle {
34
32
  * @source https://wiki.facepunch.com/gmod/Angle:Add
35
33
  */
36
34
  Add(self: Angle, angle: Angle): void;
37
- }
38
35
 
39
- interface Angle {
40
36
  /**
41
37
  * Divides all values of the original angle by a scalar. This functions the same as angle1 / num without creating a new angle object, skipping object construction and garbage collection.
42
38
  * @realm shared and menu
43
39
  * @source https://wiki.facepunch.com/gmod/Angle:Div
44
40
  */
45
41
  Div(self: Angle, scalar: number): void;
46
- }
47
42
 
48
- interface Angle {
49
43
  /**
50
44
  * Returns a normal vector facing in the direction that the angle points.
51
45
  * @realm shared and menu
52
46
  * @source https://wiki.facepunch.com/gmod/Angle:Forward
53
47
  */
54
48
  Forward(self: Angle): Vector;
55
- }
56
49
 
57
- interface Angle {
58
50
  /**
59
51
  * Returns if the angle is equal to another angle with the given tolerance.
60
52
  * @realm shared and menu
61
53
  * @source https://wiki.facepunch.com/gmod/Angle:IsEqualTol
62
54
  */
63
55
  IsEqualTol(self: Angle, compare: Angle, tolerance: number): boolean;
64
- }
65
56
 
66
- interface Angle {
67
57
  /**
68
58
  * Returns whether the pitch, yaw and roll are 0 or not.
69
59
  * @realm shared and menu
70
60
  * @source https://wiki.facepunch.com/gmod/Angle:IsZero
71
61
  */
72
62
  IsZero(self: Angle): boolean;
73
- }
74
63
 
75
- interface Angle {
76
64
  /**
77
65
  * Multiplies a scalar to all the values of the orignal angle. This functions the same as num * angle without creating a new angle object, skipping object construction and garbage collection.
78
66
  * @realm shared and menu
79
67
  * @source https://wiki.facepunch.com/gmod/Angle:Mul
80
68
  */
81
69
  Mul(self: Angle, scalar: number): void;
82
- }
83
70
 
84
- interface Angle {
85
71
  /**
86
72
  * Normalizes the angles by applying a modulo with 360 to pitch, yaw and roll.
87
73
  * @realm shared and menu
88
74
  * @source https://wiki.facepunch.com/gmod/Angle:Normalize
89
75
  */
90
76
  Normalize(self: Angle): void;
91
- }
92
77
 
93
- interface Angle {
94
78
  /**
95
79
  * Randomizes each element of this Angle object.
96
80
  * @realm shared and menu
97
81
  * @source https://wiki.facepunch.com/gmod/Angle:Random
98
82
  */
99
83
  Random(self: Angle, min?: number, max?: number): void;
100
- }
101
84
 
102
- interface Angle {
103
85
  /**
104
86
  * Returns a normal vector facing in the direction that points right relative to the angle's direction.
105
87
  * @realm shared and menu
106
88
  * @source https://wiki.facepunch.com/gmod/Angle:Right
107
89
  */
108
90
  Right(self: Angle): Vector;
109
- }
110
91
 
111
- interface Angle {
112
92
  /**
113
93
  * Rotates the angle around the specified axis by the specified degrees.
114
94
  * @realm shared and menu
115
95
  * @source https://wiki.facepunch.com/gmod/Angle:RotateAroundAxis
116
96
  */
117
97
  RotateAroundAxis(self: Angle, axis: Vector, rotation: number): void;
118
- }
119
98
 
120
- interface Angle {
121
99
  /**
122
100
  * Copies pitch, yaw and roll from the second angle to the first.
123
101
  * @realm shared and menu
124
102
  * @source https://wiki.facepunch.com/gmod/Angle:Set
125
103
  */
126
104
  Set(self: Angle, originalAngle: Angle): void;
127
- }
128
105
 
129
- interface Angle {
130
106
  /**
131
107
  * Sets the p, y, and r of the angle.
132
108
  * @realm shared and menu
133
109
  * @source https://wiki.facepunch.com/gmod/Angle:SetUnpacked
134
110
  */
135
111
  SetUnpacked(self: Angle, p: number, y: number, r: number): void;
136
- }
137
112
 
138
- interface Angle {
139
113
  /**
140
114
  * Snaps the angle to nearest interval of degrees.
141
115
  *
@@ -146,45 +120,35 @@ interface Angle {
146
120
  * @source https://wiki.facepunch.com/gmod/Angle:SnapTo
147
121
  */
148
122
  SnapTo(self: Angle, axis: string, target: number): Angle;
149
- }
150
123
 
151
- interface Angle {
152
124
  /**
153
125
  * Subtracts the values of the argument angle to the orignal angle. This functions the same as angle1 - angle2 without creating a new angle object, skipping object construction and garbage collection.
154
126
  * @realm shared and menu
155
127
  * @source https://wiki.facepunch.com/gmod/Angle:Sub
156
128
  */
157
129
  Sub(self: Angle, angle: Angle): void;
158
- }
159
130
 
160
- interface Angle {
161
131
  /**
162
132
  * Returns the angle as a table with three elements.
163
133
  * @realm shared and menu
164
134
  * @source https://wiki.facepunch.com/gmod/Angle:ToTable
165
135
  */
166
136
  ToTable(self: Angle): table;
167
- }
168
137
 
169
- interface Angle {
170
138
  /**
171
139
  * Returns the pitch, yaw, and roll components of the angle.
172
140
  * @realm shared and menu
173
141
  * @source https://wiki.facepunch.com/gmod/Angle:Unpack
174
142
  */
175
143
  Unpack(self: Angle): (number, number, number);
176
- }
177
144
 
178
- interface Angle {
179
145
  /**
180
146
  * Returns a normal vector facing in the direction that points up relative to the angle's direction.
181
147
  * @realm shared and menu
182
148
  * @source https://wiki.facepunch.com/gmod/Angle:Up
183
149
  */
184
150
  Up(self: Angle): Vector;
185
- }
186
151
 
187
- interface Angle {
188
152
  /**
189
153
  * Sets pitch, yaw and roll to 0.
190
154
  * This function is faster than doing it manually.
@@ -194,4 +158,3 @@ interface Angle {
194
158
  */
195
159
  Zero(self: Angle): void;
196
160
  }
197
-
@@ -7,4 +7,3 @@
7
7
  * @source https://wiki.facepunch.com/gmod/AvatarImage
8
8
  */
9
9
  interface AvatarImage extends Panel {}
10
-
@@ -11,4 +11,3 @@
11
11
  * @deprecated You should be using HTML panel, which this is an alias of.
12
12
  */
13
13
  interface Awesomium extends Panel {}
14
-
@@ -20,10 +20,7 @@ interface BaseclassLib {
20
20
  * @source https://wiki.facepunch.com/gmod/baseclass.Get
21
21
  */
22
22
  Get<T>(name: T): T;
23
- }
24
-
25
23
 
26
- interface BaseclassLib {
27
24
  /**
28
25
  * Add a new base class that can be derived by others. This is done automatically for:
29
26
  * * [panels](https://wiki.facepunch.com/gmod/vgui.Register)
@@ -39,4 +36,3 @@ interface BaseclassLib {
39
36
  */
40
37
  Set(name: string, tab: table): void;
41
38
  }
42
-
@@ -7,8 +7,6 @@
7
7
  * @source https://wiki.facepunch.com/gmod/bf_read
8
8
  * @deprecated You should be using net instead
9
9
  */
10
- interface bf_read {}
11
-
12
10
  interface bf_read {
13
11
  /**
14
12
  * Reads and returns an angle object from the bitstream.
@@ -16,90 +14,70 @@ interface bf_read {
16
14
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadAngle
17
15
  */
18
16
  ReadAngle(self: bf_read): Angle;
19
- }
20
17
 
21
- interface bf_read {
22
18
  /**
23
19
  * Reads 1 bit and returns a bool representing the bit.
24
20
  * @realm client
25
21
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadBool
26
22
  */
27
23
  ReadBool(self: bf_read): boolean;
28
- }
29
24
 
30
- interface bf_read {
31
25
  /**
32
26
  * Reads a signed char and returns a number from -127 to 127 representing the ascii value of that char.
33
27
  * @realm client
34
28
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadChar
35
29
  */
36
30
  ReadChar(self: bf_read): number;
37
- }
38
31
 
39
- interface bf_read {
40
32
  /**
41
33
  * Reads a short representing an entity index and returns the matching entity handle.
42
34
  * @realm client
43
35
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadEntity
44
36
  */
45
37
  ReadEntity(self: bf_read): Entity;
46
- }
47
38
 
48
- interface bf_read {
49
39
  /**
50
40
  * Reads a 4 byte float from the bitstream and returns it.
51
41
  * @realm client
52
42
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadFloat
53
43
  */
54
44
  ReadFloat(self: bf_read): number;
55
- }
56
45
 
57
- interface bf_read {
58
46
  /**
59
47
  * Reads a 4 byte long from the bitstream and returns it.
60
48
  * @realm client
61
49
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadLong
62
50
  */
63
51
  ReadLong(self: bf_read): number;
64
- }
65
52
 
66
- interface bf_read {
67
53
  /**
68
54
  * Reads a 2 byte short from the bitstream and returns it.
69
55
  * @realm client
70
56
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadShort
71
57
  */
72
58
  ReadShort(self: bf_read): number;
73
- }
74
59
 
75
- interface bf_read {
76
60
  /**
77
61
  * Reads a null terminated string from the bitstream.
78
62
  * @realm client
79
63
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadString
80
64
  */
81
65
  ReadString(self: bf_read): string;
82
- }
83
66
 
84
- interface bf_read {
85
67
  /**
86
68
  * Reads a special encoded vector from the bitstream and returns it, this function is not suitable to send normals.
87
69
  * @realm client
88
70
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadVector
89
71
  */
90
72
  ReadVector(self: bf_read): Vector;
91
- }
92
73
 
93
- interface bf_read {
94
74
  /**
95
75
  * Reads a special encoded vector normal from the bitstream and returns it, this function is not suitable to send vectors that represent a position.
96
76
  * @realm client
97
77
  * @source https://wiki.facepunch.com/gmod/bf_read:ReadVectorNormal
98
78
  */
99
79
  ReadVectorNormal(self: bf_read): Vector;
100
- }
101
80
 
102
- interface bf_read {
103
81
  /**
104
82
  * Rewinds the bitstream so it can be read again.
105
83
  * @realm client
@@ -107,4 +85,3 @@ interface bf_read {
107
85
  */
108
86
  Reset(self: bf_read): void;
109
87
  }
110
-
package/types/bit.d.tlua CHANGED
@@ -12,54 +12,42 @@ interface BitLib {
12
12
  * @source https://wiki.facepunch.com/gmod/bit.arshift
13
13
  */
14
14
  arshift(value: number, shiftCount: number): number;
15
- }
16
15
 
17
- interface BitLib {
18
16
  /**
19
17
  * Performs the bitwise `and` for all values specified.
20
18
  * @realm shared and menu
21
19
  * @source https://wiki.facepunch.com/gmod/bit.band
22
20
  */
23
21
  band(value: number, ...: any): number;
24
- }
25
22
 
26
- interface BitLib {
27
23
  /**
28
24
  * Returns the bitwise not of the value. Inverts every bit of the 32bit integer.
29
25
  * @realm shared and menu
30
26
  * @source https://wiki.facepunch.com/gmod/bit.bnot
31
27
  */
32
28
  bnot(value: number): number;
33
- }
34
29
 
35
- interface BitLib {
36
30
  /**
37
31
  * Returns the bitwise OR of all values specified.
38
32
  * @realm shared and menu
39
33
  * @source https://wiki.facepunch.com/gmod/bit.bor
40
34
  */
41
35
  bor(value1: number, ...: any): number;
42
- }
43
36
 
44
- interface BitLib {
45
37
  /**
46
38
  * Swaps the byte order.
47
39
  * @realm shared and menu
48
40
  * @source https://wiki.facepunch.com/gmod/bit.bswap
49
41
  */
50
42
  bswap(value: number): number;
51
- }
52
43
 
53
- interface BitLib {
54
44
  /**
55
45
  * Returns the bitwise xor of all values specified.
56
46
  * @realm shared and menu
57
47
  * @source https://wiki.facepunch.com/gmod/bit.bxor
58
48
  */
59
49
  bxor(value: number, otherValues?: number): number;
60
- }
61
50
 
62
- interface BitLib {
63
51
  /**
64
52
  * Returns the result of shifting given value left bitwise by given number of bits. See [this wiki article](https://en.wikipedia.org/wiki/Bitwise_operation#Bit_shifts) for more details.
65
53
  * **NOTE**: The returned value will be clamped to a signed 32-bit integer, even on 64-bit builds.
@@ -69,27 +57,21 @@ interface BitLib {
69
57
  * @source https://wiki.facepunch.com/gmod/bit.lshift
70
58
  */
71
59
  lshift(value: number, shiftCount: number): number;
72
- }
73
60
 
74
- interface BitLib {
75
61
  /**
76
62
  * Returns the left rotated value.
77
63
  * @realm shared and menu
78
64
  * @source https://wiki.facepunch.com/gmod/bit.rol
79
65
  */
80
66
  rol(value: number, shiftCount: number): number;
81
- }
82
67
 
83
- interface BitLib {
84
68
  /**
85
69
  * Returns the right rotated value.
86
70
  * @realm shared and menu
87
71
  * @source https://wiki.facepunch.com/gmod/bit.ror
88
72
  */
89
73
  ror(value: number, shiftCount: number): number;
90
- }
91
74
 
92
- interface BitLib {
93
75
  /**
94
76
  * Returns the right shifted value.
95
77
  * **NOTE**: The returned value will be clamped to a signed 32-bit integer, even on 64-bit builds.
@@ -99,18 +81,14 @@ interface BitLib {
99
81
  * @source https://wiki.facepunch.com/gmod/bit.rshift
100
82
  */
101
83
  rshift(value: number, shiftCount: number): number;
102
- }
103
84
 
104
- interface BitLib {
105
85
  /**
106
86
  * Normalizes the specified value and clamps it in the range of a signed 32bit integer.
107
87
  * @realm shared and menu
108
88
  * @source https://wiki.facepunch.com/gmod/bit.tobit
109
89
  */
110
90
  tobit(value: number): number;
111
- }
112
91
 
113
- interface BitLib {
114
92
  /**
115
93
  * Returns the hexadecimal representation of the number with the specified number of characters.
116
94
  * @realm shared and menu
@@ -118,4 +96,3 @@ interface BitLib {
118
96
  */
119
97
  tohex(value: number, characters?: number): string;
120
98
  }
121
-
@@ -10,4 +10,3 @@
10
10
  * @deprecated Only exists for backwards compatibility with Panel:SetActionFunction. Use DButton instead.
11
11
  */
12
12
  interface Button extends DButton {}
13
-