@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,4 +10,3 @@
10
10
  * @deprecated You should use DScrollPanel instead
11
11
  */
12
12
  interface PanelList extends Panel {}
13
-
@@ -4,8 +4,6 @@
4
4
  * Path object for a NextBot NPC and bots created by [player.CreateNextbot](https://wiki.facepunch.com/gmod/player.CreateNextbot). Returned by [Global.Path](https://wiki.facepunch.com/gmod/Global.Path).
5
5
  * @source https://wiki.facepunch.com/gmod/PathFollower
6
6
  */
7
- interface PathFollower {}
8
-
9
7
  interface PathFollower {
10
8
  /**
11
9
  * Computes the shortest path to the provided entity arg. PathFollower Object must have `Chase` type.
@@ -15,9 +13,7 @@ interface PathFollower {
15
13
  * @source https://wiki.facepunch.com/gmod/PathFollower:Chase
16
14
  */
17
15
  Chase(self: PathFollower, bot: NextBot, ent: Entity, generator?: (area: CNavArea, fromArea: CNavArea, ladder: CNavLadder, elevator: Entity, length: number) => number): void;
18
- }
19
16
 
20
- interface PathFollower {
21
17
  /**
22
18
  * Compute shortest path from bot to 'goal' via A* algorithm. This only works if the PathFollower is the `Follow` Type.
23
19
  *
@@ -26,99 +22,77 @@ interface PathFollower {
26
22
  * @source https://wiki.facepunch.com/gmod/PathFollower:Compute
27
23
  */
28
24
  Compute(self: PathFollower, bot: NextBot, goal: Vector, generator?: (area: CNavArea, fromArea: CNavArea, ladder: CNavLadder, elevator: Entity, length: number) => number): boolean;
29
- }
30
25
 
31
- interface PathFollower {
32
26
  /**
33
27
  * Draws the path. This is meant for debugging - and uses [debugoverlay](https://wiki.facepunch.com/gmod/debugoverlay).
34
28
  * @realm server
35
29
  * @source https://wiki.facepunch.com/gmod/PathFollower:Draw
36
30
  */
37
31
  Draw(self: PathFollower): void;
38
- }
39
32
 
40
- interface PathFollower {
41
33
  /**
42
34
  * Returns the first segment of the path.
43
35
  * @realm server
44
36
  * @source https://wiki.facepunch.com/gmod/PathFollower:FirstSegment
45
37
  */
46
38
  FirstSegment(self: PathFollower): table;
47
- }
48
39
 
49
- interface PathFollower {
50
40
  /**
51
41
  * Returns the age since the path was built
52
42
  * @realm server
53
43
  * @source https://wiki.facepunch.com/gmod/PathFollower:GetAge
54
44
  */
55
45
  GetAge(self: PathFollower): number;
56
- }
57
46
 
58
- interface PathFollower {
59
47
  /**
60
48
  * Returns all of the segments of the given path.
61
49
  * @realm server
62
50
  * @source https://wiki.facepunch.com/gmod/PathFollower:GetAllSegments
63
51
  */
64
52
  GetAllSegments(self: PathFollower): PathSegment;
65
- }
66
53
 
67
- interface PathFollower {
68
54
  /**
69
55
  * The closest position along the path to a position
70
56
  * @realm server
71
57
  * @source https://wiki.facepunch.com/gmod/PathFollower:GetClosestPosition
72
58
  */
73
59
  GetClosestPosition(self: PathFollower, position: Vector): Vector;
74
- }
75
60
 
76
- interface PathFollower {
77
61
  /**
78
62
  * Returns the current goal data. Can return nil if the current goal is invalid, for example immediately after [PathFollower:Update](https://wiki.facepunch.com/gmod/PathFollower:Update).
79
63
  * @realm server
80
64
  * @source https://wiki.facepunch.com/gmod/PathFollower:GetCurrentGoal
81
65
  */
82
66
  GetCurrentGoal(self: PathFollower): table;
83
- }
84
67
 
85
- interface PathFollower {
86
68
  /**
87
69
  * Returns the cursor data
88
70
  * @realm server
89
71
  * @source https://wiki.facepunch.com/gmod/PathFollower:GetCursorData
90
72
  */
91
73
  GetCursorData(self: PathFollower): table;
92
- }
93
74
 
94
- interface PathFollower {
95
75
  /**
96
76
  * Returns the current progress along the path
97
77
  * @realm server
98
78
  * @source https://wiki.facepunch.com/gmod/PathFollower:GetCursorPosition
99
79
  */
100
80
  GetCursorPosition(self: PathFollower): number;
101
- }
102
81
 
103
- interface PathFollower {
104
82
  /**
105
83
  * Returns the path end position
106
84
  * @realm server
107
85
  * @source https://wiki.facepunch.com/gmod/PathFollower:GetEnd
108
86
  */
109
87
  GetEnd(self: PathFollower): Vector;
110
- }
111
88
 
112
- interface PathFollower {
113
89
  /**
114
90
  * Returns how close we can get to the goal to call it done.
115
91
  * @realm server
116
92
  * @source https://wiki.facepunch.com/gmod/PathFollower:GetGoalTolerance
117
93
  */
118
94
  GetGoalTolerance(self: PathFollower): number;
119
- }
120
95
 
121
- interface PathFollower {
122
96
  /**
123
97
  * Returns the entity the bot is currently trying to avoid.
124
98
  * @realm server
@@ -126,72 +100,56 @@ interface PathFollower {
126
100
  * @deprecated Currently always returns NULL due to internal implementation of Lua Nextbots, where nothing is considered a hindrance, so do not try to use.
127
101
  */
128
102
  GetHindrance(self: PathFollower): Entity;
129
- }
130
103
 
131
- interface PathFollower {
132
104
  /**
133
105
  * Returns the total length of the path
134
106
  * @realm server
135
107
  * @source https://wiki.facepunch.com/gmod/PathFollower:GetLength
136
108
  */
137
109
  GetLength(self: PathFollower): number;
138
- }
139
110
 
140
- interface PathFollower {
141
111
  /**
142
112
  * Returns the minimum range movement goal must be along path.
143
113
  * @realm server
144
114
  * @source https://wiki.facepunch.com/gmod/PathFollower:GetMinLookAheadDistance
145
115
  */
146
116
  GetMinLookAheadDistance(self: PathFollower): number;
147
- }
148
117
 
149
- interface PathFollower {
150
118
  /**
151
119
  * Returns the vector position of distance along path
152
120
  * @realm server
153
121
  * @source https://wiki.facepunch.com/gmod/PathFollower:GetPositionOnPath
154
122
  */
155
123
  GetPositionOnPath(self: PathFollower, distance: number): Vector;
156
- }
157
124
 
158
- interface PathFollower {
159
125
  /**
160
126
  * Returns the path start position
161
127
  * @realm server
162
128
  * @source https://wiki.facepunch.com/gmod/PathFollower:GetStart
163
129
  */
164
130
  GetStart(self: PathFollower): Vector;
165
- }
166
131
 
167
- interface PathFollower {
168
132
  /**
169
133
  * Invalidates the current path
170
134
  * @realm server
171
135
  * @source https://wiki.facepunch.com/gmod/PathFollower:Invalidate
172
136
  */
173
137
  Invalidate(self: PathFollower): void;
174
- }
175
138
 
176
- interface PathFollower {
177
139
  /**
178
140
  * Returns true if the path is valid
179
141
  * @realm server
180
142
  * @source https://wiki.facepunch.com/gmod/PathFollower:IsValid
181
143
  */
182
144
  IsValid(self: PathFollower): boolean;
183
- }
184
145
 
185
- interface PathFollower {
186
146
  /**
187
147
  * Returns the last segment of the path.
188
148
  * @realm server
189
149
  * @source https://wiki.facepunch.com/gmod/PathFollower:LastSegment
190
150
  */
191
151
  LastSegment(self: PathFollower): table;
192
- }
193
152
 
194
- interface PathFollower {
195
153
  /**
196
154
  * Moves the cursor by give distance.
197
155
  *
@@ -201,9 +159,7 @@ interface PathFollower {
201
159
  * @source https://wiki.facepunch.com/gmod/PathFollower:MoveCursor
202
160
  */
203
161
  MoveCursor(self: PathFollower, distance: number): void;
204
- }
205
162
 
206
- interface PathFollower {
207
163
  /**
208
164
  * Sets the cursor position to given distance.
209
165
  *
@@ -213,81 +169,63 @@ interface PathFollower {
213
169
  * @source https://wiki.facepunch.com/gmod/PathFollower:MoveCursorTo
214
170
  */
215
171
  MoveCursorTo(self: PathFollower, distance: number): void;
216
- }
217
172
 
218
- interface PathFollower {
219
173
  /**
220
174
  * Moves the cursor of the path to the closest position compared to given vector.
221
175
  * @realm server
222
176
  * @source https://wiki.facepunch.com/gmod/PathFollower:MoveCursorToClosestPosition
223
177
  */
224
178
  MoveCursorToClosestPosition(self: PathFollower, pos: Vector, type?: number, alongLimit?: number): void;
225
- }
226
179
 
227
- interface PathFollower {
228
180
  /**
229
181
  * Moves the cursor to the end of the path
230
182
  * @realm server
231
183
  * @source https://wiki.facepunch.com/gmod/PathFollower:MoveCursorToEnd
232
184
  */
233
185
  MoveCursorToEnd(self: PathFollower): void;
234
- }
235
186
 
236
- interface PathFollower {
237
187
  /**
238
188
  * Moves the cursor to the end of the path
239
189
  * @realm server
240
190
  * @source https://wiki.facepunch.com/gmod/PathFollower:MoveCursorToStart
241
191
  */
242
192
  MoveCursorToStart(self: PathFollower): void;
243
- }
244
193
 
245
- interface PathFollower {
246
194
  /**
247
195
  * Returns the next segment of the path.
248
196
  * @realm server
249
197
  * @source https://wiki.facepunch.com/gmod/PathFollower:NextSegment
250
198
  */
251
199
  NextSegment(self: PathFollower): table;
252
- }
253
200
 
254
- interface PathFollower {
255
201
  /**
256
202
  * Returns the previous segment of the path.
257
203
  * @realm server
258
204
  * @source https://wiki.facepunch.com/gmod/PathFollower:PriorSegment
259
205
  */
260
206
  PriorSegment(self: PathFollower): table;
261
- }
262
207
 
263
- interface PathFollower {
264
208
  /**
265
209
  * Resets the age which is retrieved by [PathFollower:GetAge](https://wiki.facepunch.com/gmod/PathFollower:GetAge) to 0.
266
210
  * @realm server
267
211
  * @source https://wiki.facepunch.com/gmod/PathFollower:ResetAge
268
212
  */
269
213
  ResetAge(self: PathFollower): void;
270
- }
271
214
 
272
- interface PathFollower {
273
215
  /**
274
216
  * How close we can get to the goal to call it done
275
217
  * @realm server
276
218
  * @source https://wiki.facepunch.com/gmod/PathFollower:SetGoalTolerance
277
219
  */
278
220
  SetGoalTolerance(self: PathFollower, distance: number): void;
279
- }
280
221
 
281
- interface PathFollower {
282
222
  /**
283
223
  * Sets minimum range movement goal must be along path
284
224
  * @realm server
285
225
  * @source https://wiki.facepunch.com/gmod/PathFollower:SetMinLookAheadDistance
286
226
  */
287
227
  SetMinLookAheadDistance(self: PathFollower, mindist: number): void;
288
- }
289
228
 
290
- interface PathFollower {
291
229
  /**
292
230
  * Move the bot along the path.
293
231
  * **NOTE**: player nextbots require [CUserCmd:SetForwardMove](https://wiki.facepunch.com/gmod/CUserCmd:SetForwardMove) to move forward along the path
@@ -298,4 +236,3 @@ interface PathFollower {
298
236
  */
299
237
  Update(self: PathFollower, bot: NextBot): void;
300
238
  }
301
-
@@ -14,9 +14,7 @@ interface PermissionsLib {
14
14
  * @source https://wiki.facepunch.com/gmod/permissions.AskToConnect
15
15
  */
16
16
  AskToConnect(address: string): void;
17
- }
18
17
 
19
- interface PermissionsLib {
20
18
  /**
21
19
  * Connects player to the server. This is what [permissions.AskToConnect](https://wiki.facepunch.com/gmod/permissions.AskToConnect) uses internally.
22
20
  *
@@ -24,9 +22,7 @@ interface PermissionsLib {
24
22
  * @source https://wiki.facepunch.com/gmod/permissions.Connect
25
23
  */
26
24
  Connect(ip: string): void;
27
- }
28
25
 
29
- interface PermissionsLib {
30
26
  /**
31
27
  * Activates player's microphone as if they pressed the speak button themself. The player will be prompted with a confirmation window which grants permission temporarily/permanently(depending on checkbox state) for the connected server (revokable).
32
28
  * This is used for TTT's traitor voice channel.
@@ -35,9 +31,7 @@ interface PermissionsLib {
35
31
  * @source https://wiki.facepunch.com/gmod/permissions.EnableVoiceChat
36
32
  */
37
33
  EnableVoiceChat(enable: boolean): void;
38
- }
39
34
 
40
- interface PermissionsLib {
41
35
  /**
42
36
  * Returns all permissions per server. Permanent permissions are stored in `settings/permissions.bin`.
43
37
  *
@@ -45,18 +39,14 @@ interface PermissionsLib {
45
39
  * @source https://wiki.facepunch.com/gmod/permissions.GetAll
46
40
  */
47
41
  GetAll(): Table<string, table>;
48
- }
49
42
 
50
- interface PermissionsLib {
51
43
  /**
52
44
  * Grants permission to the current connected server.
53
45
  * @realm menu
54
46
  * @source https://wiki.facepunch.com/gmod/permissions.Grant
55
47
  */
56
48
  Grant(permission: string, temporary: boolean): void;
57
- }
58
49
 
59
- interface PermissionsLib {
60
50
  /**
61
51
  * Returns whether the player has granted the current server a specific permission.
62
52
  *
@@ -64,9 +54,7 @@ interface PermissionsLib {
64
54
  * @source https://wiki.facepunch.com/gmod/permissions.IsGranted
65
55
  */
66
56
  IsGranted(permission: string): boolean;
67
- }
68
57
 
69
- interface PermissionsLib {
70
58
  /**
71
59
  * Revokes permission from the server.
72
60
  * @realm menu
@@ -74,4 +62,3 @@ interface PermissionsLib {
74
62
  */
75
63
  Revoke(permission: string, ip: string): void;
76
64
  }
77
-
@@ -6,8 +6,6 @@
6
6
  * Created by [Global.CreatePhysCollideBox](https://wiki.facepunch.com/gmod/Global.CreatePhysCollideBox) or [Global.CreatePhysCollidesFromModel](https://wiki.facepunch.com/gmod/Global.CreatePhysCollidesFromModel).
7
7
  * @source https://wiki.facepunch.com/gmod/PhysCollide
8
8
  */
9
- interface PhysCollide {}
10
-
11
9
  interface PhysCollide {
12
10
  /**
13
11
  * Destroys the [PhysCollide](https://wiki.facepunch.com/gmod/PhysCollide) object.
@@ -15,9 +13,7 @@ interface PhysCollide {
15
13
  * @source https://wiki.facepunch.com/gmod/PhysCollide:Destroy
16
14
  */
17
15
  Destroy(self: PhysCollide): void;
18
- }
19
16
 
20
- interface PhysCollide {
21
17
  /**
22
18
  * Checks whether this [PhysCollide](https://wiki.facepunch.com/gmod/PhysCollide) object is valid or not.
23
19
  *
@@ -27,9 +23,7 @@ interface PhysCollide {
27
23
  * @source https://wiki.facepunch.com/gmod/PhysCollide:IsValid
28
24
  */
29
25
  IsValid(self: PhysCollide): boolean;
30
- }
31
26
 
32
- interface PhysCollide {
33
27
  /**
34
28
  * Performs a trace against this PhysCollide with the given parameters. This can be used for both line traces and box traces.
35
29
  * @realm shared
@@ -37,4 +31,3 @@ interface PhysCollide {
37
31
  */
38
32
  TraceBox(self: PhysCollide, origin: Vector, angles: Angle, rayStart: Vector, rayEnd: Vector, rayMins: Vector, rayMaxs: Vector): (Vector, Vector, number);
39
33
  }
40
-
@@ -21,9 +21,7 @@ interface PhysenvLib {
21
21
  * @source https://wiki.facepunch.com/gmod/physenv.AddSurfaceData
22
22
  */
23
23
  AddSurfaceData(properties: string): void;
24
- }
25
24
 
26
- interface PhysenvLib {
27
25
  /**
28
26
  * Returns the air density used to calculate drag on physics objects.
29
27
  * The unit is in `kg/m³`.
@@ -32,18 +30,14 @@ interface PhysenvLib {
32
30
  * @source https://wiki.facepunch.com/gmod/physenv.GetAirDensity
33
31
  */
34
32
  GetAirDensity(): number;
35
- }
36
33
 
37
- interface PhysenvLib {
38
34
  /**
39
35
  * Gets the gravitational acceleration used for physics objects in `source_unit/s^2`.
40
36
  * @realm shared
41
37
  * @source https://wiki.facepunch.com/gmod/physenv.GetGravity
42
38
  */
43
39
  GetGravity(): Vector;
44
- }
45
40
 
46
- interface PhysenvLib {
47
41
  /**
48
42
  * Returns the last simulation duration of the in-game physics.
49
43
  *
@@ -51,27 +45,21 @@ interface PhysenvLib {
51
45
  * @source https://wiki.facepunch.com/gmod/physenv.GetLastSimulationTime
52
46
  */
53
47
  GetLastSimulationTime(): number;
54
- }
55
48
 
56
- interface PhysenvLib {
57
49
  /**
58
50
  * Gets the current performance settings in table form.
59
51
  * @realm shared
60
52
  * @source https://wiki.facepunch.com/gmod/physenv.GetPerformanceSettings
61
53
  */
62
54
  GetPerformanceSettings(): table;
63
- }
64
55
 
65
- interface PhysenvLib {
66
56
  /**
67
57
  * Returns the pause status of global physics simulation. See [physenv.SetPhysicsPaused](https://wiki.facepunch.com/gmod/physenv.SetPhysicsPaused) for the setter.
68
58
  * @realm shared
69
59
  * @source https://wiki.facepunch.com/gmod/physenv.GetPhysicsPaused
70
60
  */
71
61
  GetPhysicsPaused(): boolean;
72
- }
73
62
 
74
- interface PhysenvLib {
75
63
  /**
76
64
  * Returns the physics time scale set with [physenv.SetTimeScale](https://wiki.facepunch.com/gmod/physenv.SetTimeScale).
77
65
  *
@@ -79,18 +67,14 @@ interface PhysenvLib {
79
67
  * @source https://wiki.facepunch.com/gmod/physenv.GetTimeScale
80
68
  */
81
69
  GetTimeScale(): number;
82
- }
83
70
 
84
- interface PhysenvLib {
85
71
  /**
86
72
  * Sets the air density.
87
73
  * @realm shared
88
74
  * @source https://wiki.facepunch.com/gmod/physenv.SetAirDensity
89
75
  */
90
76
  SetAirDensity(airDensity: number): void;
91
- }
92
77
 
93
- interface PhysenvLib {
94
78
  /**
95
79
  * Sets the gravitational acceleration used for physics objects. Does not affect players.
96
80
  *
@@ -98,27 +82,21 @@ interface PhysenvLib {
98
82
  * @source https://wiki.facepunch.com/gmod/physenv.SetGravity
99
83
  */
100
84
  SetGravity(gravAccel: Vector): void;
101
- }
102
85
 
103
- interface PhysenvLib {
104
86
  /**
105
87
  * Sets the performance settings.
106
88
  * @realm shared
107
89
  * @source https://wiki.facepunch.com/gmod/physenv.SetPerformanceSettings
108
90
  */
109
91
  SetPerformanceSettings(performanceSettings: PhysEnvPerformanceSettings): void;
110
- }
111
92
 
112
- interface PhysenvLib {
113
93
  /**
114
94
  * Pauses or unpauses the physics simulation globally. See [physenv.GetPhysicsPaused](https://wiki.facepunch.com/gmod/physenv.GetPhysicsPaused) for the getter.
115
95
  * @realm shared
116
96
  * @source https://wiki.facepunch.com/gmod/physenv.SetPhysicsPaused
117
97
  */
118
98
  SetPhysicsPaused(pause: boolean): void;
119
- }
120
99
 
121
- interface PhysenvLib {
122
100
  /**
123
101
  * Sets the time scale of the physics simulation.
124
102
  *
@@ -133,4 +111,3 @@ interface PhysenvLib {
133
111
  */
134
112
  SetTimeScale(timeScale: number): void;
135
113
  }
136
-