@tlua/gmod 1.0.1

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 (278) hide show
  1. package/README.md +28 -0
  2. package/__metadata.json +4 -0
  3. package/_globals.d.tlua +178 -0
  4. package/_gmod-std.d.tlua +35 -0
  5. package/achievementicon.d.tlua +12 -0
  6. package/achievements.d.tlua +162 -0
  7. package/ai.d.tlua +65 -0
  8. package/ai_schedule.d.tlua +17 -0
  9. package/ai_task.d.tlua +17 -0
  10. package/angle.d.tlua +197 -0
  11. package/avatarimage.d.tlua +10 -0
  12. package/awesomium.d.tlua +14 -0
  13. package/baseclass.d.tlua +42 -0
  14. package/bf_read.d.tlua +110 -0
  15. package/bit.d.tlua +121 -0
  16. package/button.d.tlua +13 -0
  17. package/cam.d.tlua +220 -0
  18. package/ceffectdata.d.tlua +337 -0
  19. package/chat.d.tlua +62 -0
  20. package/checkbutton.d.tlua +14 -0
  21. package/cleanup.d.tlua +88 -0
  22. package/cluaemitter.d.tlua +119 -0
  23. package/clualocomotion.d.tlua +383 -0
  24. package/cluaparticle.d.tlua +426 -0
  25. package/cmovedata.d.tlua +476 -0
  26. package/cnavarea.d.tlua +845 -0
  27. package/cnavladder.d.tlua +209 -0
  28. package/cnewparticleeffect.d.tlua +259 -0
  29. package/color.d.tlua +339 -0
  30. package/concommand.d.tlua +69 -0
  31. package/constraint.d.tlua +311 -0
  32. package/construct.d.tlua +26 -0
  33. package/contentheader.d.tlua +32 -0
  34. package/contenticon.d.tlua +86 -0
  35. package/contentsidebar.d.tlua +45 -0
  36. package/contentsidebartoolbox.d.tlua +13 -0
  37. package/contextbase.d.tlua +37 -0
  38. package/controlpanel.d.tlua +140 -0
  39. package/controlpresets.d.tlua +118 -0
  40. package/convar.d.tlua +162 -0
  41. package/cookie.d.tlua +60 -0
  42. package/coroutine.d.tlua +90 -0
  43. package/crecipientfilter.d.tlua +152 -0
  44. package/csent.d.tlua +10 -0
  45. package/csoundpatch.d.tlua +150 -0
  46. package/ctakedamageinfo.d.tlua +366 -0
  47. package/ctrllistbox.d.tlua +12 -0
  48. package/ctrlnumpad.d.tlua +73 -0
  49. package/cusercmd.d.tlua +320 -0
  50. package/custom_classes.d.tlua +65 -0
  51. package/custom_entity_fields.d.tlua +96 -0
  52. package/cvars.d.tlua +80 -0
  53. package/dadjustablemodelpanel.d.tlua +81 -0
  54. package/dalphabar.d.tlua +27 -0
  55. package/dbinder.d.tlua +37 -0
  56. package/dbubblecontainer.d.tlua +18 -0
  57. package/dbutton.d.tlua +88 -0
  58. package/dcategoryheader.d.tlua +13 -0
  59. package/dcategorylist.d.tlua +11 -0
  60. package/dcheckbox.d.tlua +46 -0
  61. package/dcheckboxlabel.d.tlua +90 -0
  62. package/dcollapsiblecategory.d.tlua +240 -0
  63. package/dcolorbutton.d.tlua +73 -0
  64. package/dcolorcombo.d.tlua +54 -0
  65. package/dcolorcube.d.tlua +137 -0
  66. package/dcolormixer.d.tlua +303 -0
  67. package/dcolorpalette.d.tlua +294 -0
  68. package/dcolumnsheet.d.tlua +49 -0
  69. package/dcombobox.d.tlua +161 -0
  70. package/ddragbase.d.tlua +151 -0
  71. package/ddrawer.d.tlua +72 -0
  72. package/debug.d.tlua +236 -0
  73. package/debugoverlay.d.tlua +193 -0
  74. package/dentityproperties.d.tlua +63 -0
  75. package/derma.d.tlua +119 -0
  76. package/dexpandbutton.d.tlua +30 -0
  77. package/dfilebrowser.d.tlua +228 -0
  78. package/dform.d.tlua +176 -0
  79. package/dframe.d.tlua +261 -0
  80. package/dgrid.d.tlua +113 -0
  81. package/dhorizontaldivider.d.tlua +196 -0
  82. package/dhorizontalscroller.d.tlua +104 -0
  83. package/dhscrollbar.d.tlua +109 -0
  84. package/dhtml.d.tlua +91 -0
  85. package/dhtmlcontrols.d.tlua +62 -0
  86. package/diconbrowser.d.tlua +113 -0
  87. package/diconlayout.d.tlua +190 -0
  88. package/dimage.d.tlua +221 -0
  89. package/dimagebutton.d.tlua +103 -0
  90. package/dkillicon.d.tlua +9 -0
  91. package/dlabel.d.tlua +385 -0
  92. package/dlabeleditable.d.tlua +51 -0
  93. package/dlabelurl.d.tlua +100 -0
  94. package/dlistbox.d.tlua +82 -0
  95. package/dlistboxitem.d.tlua +42 -0
  96. package/dlistlayout.d.tlua +14 -0
  97. package/dlistview.d.tlua +360 -0
  98. package/dlistview_column.d.tlua +135 -0
  99. package/dlistview_columnplain.d.tlua +11 -0
  100. package/dlistview_draggerbar.d.tlua +11 -0
  101. package/dlistview_line.d.tlua +140 -0
  102. package/dlistviewheaderlabel.d.tlua +11 -0
  103. package/dlistviewlabel.d.tlua +11 -0
  104. package/dlistviewline.d.tlua +11 -0
  105. package/dmenu.d.tlua +266 -0
  106. package/dmenubar.d.tlua +42 -0
  107. package/dmenuoption.d.tlua +135 -0
  108. package/dmenuoptioncvar.d.tlua +64 -0
  109. package/dmodelpanel.d.tlua +207 -0
  110. package/dmodelselect.d.tlua +20 -0
  111. package/dmodelselectmulti.d.tlua +19 -0
  112. package/dnotify.d.tlua +93 -0
  113. package/dnumberscratch.d.tlua +284 -0
  114. package/dnumberwang.d.tlua +147 -0
  115. package/dnumpad.d.tlua +11 -0
  116. package/dnumslider.d.tlua +182 -0
  117. package/dpanel.d.tlua +152 -0
  118. package/dpanellist.d.tlua +109 -0
  119. package/dpaneloverlay.d.tlua +65 -0
  120. package/dpanelselect.d.tlua +13 -0
  121. package/dpanpanel.d.tlua +64 -0
  122. package/dprogress.d.tlua +27 -0
  123. package/dproperties.d.tlua +52 -0
  124. package/dproperty_boolean.d.tlua +12 -0
  125. package/dproperty_combo.d.tlua +31 -0
  126. package/dproperty_entity.d.tlua +12 -0
  127. package/dproperty_float.d.tlua +12 -0
  128. package/dproperty_generic.d.tlua +50 -0
  129. package/dproperty_int.d.tlua +12 -0
  130. package/dproperty_vectorcolor.d.tlua +14 -0
  131. package/dpropertysheet.d.tlua +167 -0
  132. package/dragndrop.d.tlua +123 -0
  133. package/draw.d.tlua +162 -0
  134. package/drgbpicker.d.tlua +49 -0
  135. package/drive.d.tlua +159 -0
  136. package/dscrollbargrip.d.tlua +13 -0
  137. package/dscrollpanel.d.tlua +110 -0
  138. package/dshape.d.tlua +72 -0
  139. package/dsizetocontents.d.tlua +46 -0
  140. package/dslider.d.tlua +302 -0
  141. package/dsprite.d.tlua +84 -0
  142. package/dtab.d.tlua +81 -0
  143. package/dtextentry.d.tlua +442 -0
  144. package/dtilelayout.d.tlua +218 -0
  145. package/dtooltip.d.tlua +76 -0
  146. package/dtree.d.tlua +185 -0
  147. package/dtree_node.d.tlua +793 -0
  148. package/dtree_node_button.d.tlua +13 -0
  149. package/duplicator.d.tlua +338 -0
  150. package/dverticaldivider.d.tlua +223 -0
  151. package/dvscrollbar.d.tlua +109 -0
  152. package/editablepanel.d.tlua +10 -0
  153. package/effect.d.tlua +121 -0
  154. package/effects.d.tlua +77 -0
  155. package/engine.d.tlua +248 -0
  156. package/entity.d.tlua +8295 -0
  157. package/ents.d.tlua +267 -0
  158. package/enums.d.tlua +7082 -0
  159. package/file.d.tlua +419 -0
  160. package/file_class.d.tlua +7 -0
  161. package/fingerposer.d.tlua +12 -0
  162. package/fingervar.d.tlua +13 -0
  163. package/frame.d.tlua +11 -0
  164. package/frame_blend.d.tlua +105 -0
  165. package/game.d.tlua +482 -0
  166. package/gameevent.d.tlua +968 -0
  167. package/gamemode.d.tlua +48 -0
  168. package/global.d.tlua +3156 -0
  169. package/gm.d.tlua +3218 -0
  170. package/gmod.d.tlua +20 -0
  171. package/gmsave.d.tlua +53 -0
  172. package/gui.d.tlua +232 -0
  173. package/gwen.d.tlua +55 -0
  174. package/halo.d.tlua +42 -0
  175. package/hammer.d.tlua +17 -0
  176. package/hook.d.tlua +64 -0
  177. package/html.d.tlua +22 -0
  178. package/http.d.tlua +72 -0
  179. package/iconeditor.d.tlua +130 -0
  180. package/igmodaudiochannel.d.tlua +419 -0
  181. package/imagecheckbox.d.tlua +48 -0
  182. package/imaterial.d.tlua +288 -0
  183. package/imesh.d.tlua +70 -0
  184. package/index.d.tlua +277 -0
  185. package/input.d.tlua +252 -0
  186. package/invalidateinternalentitycache.d.tlua +13 -0
  187. package/irestore.d.tlua +94 -0
  188. package/isave.d.tlua +94 -0
  189. package/itexture.d.tlua +108 -0
  190. package/ivideowriter.d.tlua +53 -0
  191. package/jit.d.tlua +243 -0
  192. package/killicon.d.tlua +84 -0
  193. package/label.d.tlua +20 -0
  194. package/language.d.tlua +26 -0
  195. package/list.d.tlua +112 -0
  196. package/makeballoon.d.tlua +15 -0
  197. package/markup.d.tlua +38 -0
  198. package/markupobject.d.tlua +53 -0
  199. package/material.d.tlua +9 -0
  200. package/math.d.tlua +899 -0
  201. package/matproxy.d.tlua +60 -0
  202. package/matselect.d.tlua +106 -0
  203. package/menu.d.tlua +20 -0
  204. package/menubar.d.tlua +39 -0
  205. package/mesh.d.tlua +183 -0
  206. package/modelimage.d.tlua +12 -0
  207. package/motionsensor.d.tlua +115 -0
  208. package/navmesh.d.tlua +274 -0
  209. package/net.d.tlua +639 -0
  210. package/nextbot.d.tlua +380 -0
  211. package/notification.d.tlua +35 -0
  212. package/npc.d.tlua +1787 -0
  213. package/numpad.d.tlua +89 -0
  214. package/os.d.tlua +56 -0
  215. package/package.d.tlua +15 -0
  216. package/package.json +18 -0
  217. package/panel.d.tlua +3650 -0
  218. package/panellist.d.tlua +13 -0
  219. package/pathfollower.d.tlua +301 -0
  220. package/permissions.d.tlua +77 -0
  221. package/physcollide.d.tlua +40 -0
  222. package/physenv.d.tlua +136 -0
  223. package/physobj.d.tlua +799 -0
  224. package/pixelvis_handle_t.d.tlua +9 -0
  225. package/player.d.tlua +3320 -0
  226. package/player_manager.d.tlua +147 -0
  227. package/preseteditor.d.tlua +13 -0
  228. package/presets.d.tlua +79 -0
  229. package/projectedtexture.d.tlua +553 -0
  230. package/properties.d.tlua +65 -0
  231. package/propselect.d.tlua +50 -0
  232. package/radiobutton.d.tlua +13 -0
  233. package/render.d.tlua +1700 -0
  234. package/resource.d.tlua +73 -0
  235. package/richtext.d.tlua +17 -0
  236. package/sandbox.d.tlua +576 -0
  237. package/saverestore.d.tlua +148 -0
  238. package/schedule.d.tlua +69 -0
  239. package/scripted_ents.d.tlua +124 -0
  240. package/search.d.tlua +26 -0
  241. package/serverlist.d.tlua +85 -0
  242. package/slidebar.d.tlua +12 -0
  243. package/slider.d.tlua +11 -0
  244. package/sound.d.tlua +140 -0
  245. package/spawnicon.d.tlua +95 -0
  246. package/spawnmenu.d.tlua +286 -0
  247. package/spawnmenucontentpanel.d.tlua +52 -0
  248. package/sql.d.tlua +154 -0
  249. package/stack.d.tlua +57 -0
  250. package/steamworks.d.tlua +208 -0
  251. package/string.d.tlua +535 -0
  252. package/structures.d.tlua +4442 -0
  253. package/surface.d.tlua +463 -0
  254. package/surfaceinfo.d.tlua +70 -0
  255. package/system.d.tlua +134 -0
  256. package/table.d.tlua +533 -0
  257. package/task.d.tlua +92 -0
  258. package/team.d.tlua +195 -0
  259. package/textentry.d.tlua +12 -0
  260. package/tgaimage.d.tlua +11 -0
  261. package/timer.d.tlua +198 -0
  262. package/tool.d.tlua +466 -0
  263. package/ugcpublishwindow.d.tlua +83 -0
  264. package/umsg.d.tlua +147 -0
  265. package/undo.d.tlua +122 -0
  266. package/urllabel.d.tlua +13 -0
  267. package/usermessage.d.tlua +48 -0
  268. package/utf8.d.tlua +89 -0
  269. package/util.d.tlua +1087 -0
  270. package/vector.d.tlua +413 -0
  271. package/vehicle.d.tlua +472 -0
  272. package/vgui.d.tlua +201 -0
  273. package/video.d.tlua +17 -0
  274. package/vmatrix.d.tlua +392 -0
  275. package/weapon.d.tlua +913 -0
  276. package/weapons.d.tlua +90 -0
  277. package/widgets.d.tlua +29 -0
  278. package/workshopfilebase.d.tlua +68 -0
@@ -0,0 +1,845 @@
1
+ // AUTO-GENERATED tlua declarations. Do not edit by hand.
2
+
3
+ /**
4
+ * An object returned by [navmesh](https://wiki.facepunch.com/gmod/navmesh) functions.
5
+ * @source https://wiki.facepunch.com/gmod/CNavArea
6
+ */
7
+ interface CNavArea {}
8
+
9
+ interface CNavArea {
10
+ /**
11
+ * Adds given attributes to given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea). See [CNavArea:HasAttributes](https://wiki.facepunch.com/gmod/CNavArea:HasAttributes) and [CNavArea:SetAttributes](https://wiki.facepunch.com/gmod/CNavArea:SetAttributes).
12
+ * @realm server
13
+ * @source https://wiki.facepunch.com/gmod/CNavArea:AddAttributes
14
+ */
15
+ AddAttributes(self: CNavArea, attribs: number): void;
16
+ }
17
+
18
+ interface CNavArea {
19
+ /**
20
+ * Adds a hiding spot onto this nav area.
21
+ *
22
+ * There's a limit of 255 hiding spots per area.
23
+ *
24
+ * @realm server
25
+ * @source https://wiki.facepunch.com/gmod/CNavArea:AddHidingSpot
26
+ */
27
+ AddHidingSpot(self: CNavArea, pos: Vector, flags?: number): void;
28
+ }
29
+
30
+ interface CNavArea {
31
+ /**
32
+ * Adds this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to the closed list, a list of areas that have been checked by A* pathfinding algorithm.
33
+ *
34
+ * Used in pathfinding via the [A* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).
35
+ *
36
+ *
37
+ * More information can be found on the [Simple Pathfinding](https://wiki.facepunch.com/gmod/Simple_Pathfinding) page.
38
+ *
39
+ * @realm server
40
+ * @source https://wiki.facepunch.com/gmod/CNavArea:AddToClosedList
41
+ */
42
+ AddToClosedList(self: CNavArea): void;
43
+ }
44
+
45
+ interface CNavArea {
46
+ /**
47
+ * Adds this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to the Open List.
48
+ *
49
+ * Used in pathfinding via the [A* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).
50
+ *
51
+ *
52
+ * More information can be found on the [Simple Pathfinding](https://wiki.facepunch.com/gmod/Simple_Pathfinding) page.
53
+ *
54
+ * @realm server
55
+ * @source https://wiki.facepunch.com/gmod/CNavArea:AddToOpenList
56
+ */
57
+ AddToOpenList(self: CNavArea): void;
58
+ }
59
+
60
+ interface CNavArea {
61
+ /**
62
+ * Clears the open and closed lists for a new search.
63
+ *
64
+ * Used in pathfinding via the [A* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).
65
+ *
66
+ *
67
+ * More information can be found on the [Simple Pathfinding](https://wiki.facepunch.com/gmod/Simple_Pathfinding) page.
68
+ *
69
+ * @realm server
70
+ * @source https://wiki.facepunch.com/gmod/CNavArea:ClearSearchLists
71
+ */
72
+ ClearSearchLists(self: CNavArea): void;
73
+ }
74
+
75
+ interface CNavArea {
76
+ /**
77
+ * Returns the height difference between the edges of two connected navareas.
78
+ * @realm server
79
+ * @source https://wiki.facepunch.com/gmod/CNavArea:ComputeAdjacentConnectionHeightChange
80
+ */
81
+ ComputeAdjacentConnectionHeightChange(self: CNavArea, navarea: CNavArea): number;
82
+ }
83
+
84
+ interface CNavArea {
85
+ /**
86
+ * Returns the [Enums/NavDir](https://wiki.facepunch.com/gmod/Enums/NavDir) direction that the given vector faces on this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
87
+ * @realm server
88
+ * @source https://wiki.facepunch.com/gmod/CNavArea:ComputeDirection
89
+ */
90
+ ComputeDirection(self: CNavArea, pos: Vector): number;
91
+ }
92
+
93
+ interface CNavArea {
94
+ /**
95
+ * Returns the height difference on the Z axis of the two [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s. This is calculated from the center most point on both [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s.
96
+ * @realm server
97
+ * @source https://wiki.facepunch.com/gmod/CNavArea:ComputeGroundHeightChange
98
+ */
99
+ ComputeGroundHeightChange(self: CNavArea, navArea: CNavArea): number;
100
+ }
101
+
102
+ interface CNavArea {
103
+ /**
104
+ * Connects this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to another [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) or [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) with a one way connection. ( From this area to the target )
105
+ *
106
+ * See [CNavLadder:ConnectTo](https://wiki.facepunch.com/gmod/CNavLadder:ConnectTo) for making the connection from ladder to area.
107
+ *
108
+ * @realm server
109
+ * @source https://wiki.facepunch.com/gmod/CNavArea:ConnectTo
110
+ */
111
+ ConnectTo(self: CNavArea, area: CNavArea): void;
112
+ }
113
+
114
+ interface CNavArea {
115
+ /**
116
+ * Returns true if this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) contains the given vector.
117
+ * @realm server
118
+ * @source https://wiki.facepunch.com/gmod/CNavArea:Contains
119
+ */
120
+ Contains(self: CNavArea, pos: Vector): boolean;
121
+ }
122
+
123
+ interface CNavArea {
124
+ /**
125
+ * Disconnects this nav area from given area or ladder. (Only disconnects one way)
126
+ * @realm server
127
+ * @source https://wiki.facepunch.com/gmod/CNavArea:Disconnect
128
+ */
129
+ Disconnect(self: CNavArea, area: CNavArea): void;
130
+ }
131
+
132
+ interface CNavArea {
133
+ /**
134
+ * Draws this navarea on debug overlay. (So limitations of [debugoverlay](https://wiki.facepunch.com/gmod/debugoverlay) library apply)
135
+ * @realm server
136
+ * @source https://wiki.facepunch.com/gmod/CNavArea:Draw
137
+ */
138
+ Draw(self: CNavArea): void;
139
+ }
140
+
141
+ interface CNavArea {
142
+ /**
143
+ * Draws the hiding spots on debug overlay. This includes sniper/exposed spots too!
144
+ * @realm server
145
+ * @source https://wiki.facepunch.com/gmod/CNavArea:DrawSpots
146
+ */
147
+ DrawSpots(self: CNavArea): void;
148
+ }
149
+
150
+ interface CNavArea {
151
+ /**
152
+ * Returns a list of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a (one and two way) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) and their pre-computed distances.
153
+ *
154
+ * If an area has a one-way incoming connection to this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea), then it will **not** be returned from this function, use [CNavArea:GetIncomingConnectionDistances](https://wiki.facepunch.com/gmod/CNavArea:GetIncomingConnectionDistances) to get all one-way incoming connections.
155
+ *
156
+ * @realm server
157
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentAreaDistances
158
+ */
159
+ GetAdjacentAreaDistances(self: CNavArea, dir?: number): table;
160
+ }
161
+
162
+ interface CNavArea {
163
+ /**
164
+ * Returns a list of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a (one and two way) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
165
+ *
166
+ * If an area has a one-way incoming connection to this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea), then it will **not** be returned from this function, use [CNavArea:GetIncomingConnections](https://wiki.facepunch.com/gmod/CNavArea:GetIncomingConnections) to get all one-way incoming connections.
167
+ *
168
+ * See [CNavArea:GetAdjacentAreasAtSide](https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentAreasAtSide) for a function that only returns areas from one side/direction.
169
+ *
170
+ * @realm server
171
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentAreas
172
+ */
173
+ GetAdjacentAreas(self: CNavArea): table;
174
+ }
175
+
176
+ interface CNavArea {
177
+ /**
178
+ * Returns a table of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a ( one and two way ) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
179
+ *
180
+ * If an area has a one-way incoming connection to this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea), then it will **not** be returned from this function, use [CNavArea:GetIncomingConnections](https://wiki.facepunch.com/gmod/CNavArea:GetIncomingConnections) to get all incoming connections.
181
+ *
182
+ * See [CNavArea:GetAdjacentAreas](https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentAreas) for a function that returns all areas from all sides/directions.
183
+ *
184
+ * @realm server
185
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentAreasAtSide
186
+ */
187
+ GetAdjacentAreasAtSide(self: CNavArea, navDir: number): table;
188
+ }
189
+
190
+ interface CNavArea {
191
+ /**
192
+ * Returns the amount of [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a connection ( one and two way ) **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
193
+ *
194
+ * See [CNavArea:GetAdjacentCountAtSide](https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentCountAtSide) for a function that only returns area count from one side/direction.
195
+ *
196
+ * @realm server
197
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentCount
198
+ */
199
+ GetAdjacentCount(self: CNavArea): number;
200
+ }
201
+
202
+ interface CNavArea {
203
+ /**
204
+ * Returns the amount of [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a connection ( one or two way ) **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
205
+ *
206
+ * See [CNavArea:GetAdjacentCount](https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentCount) for a function that returns [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) count from/in all sides/directions.
207
+ *
208
+ * @realm server
209
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentCountAtSide
210
+ */
211
+ GetAdjacentCountAtSide(self: CNavArea, navDir: number): number;
212
+ }
213
+
214
+ interface CNavArea {
215
+ /**
216
+ * Returns the attribute mask for the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
217
+ * @realm server
218
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetAttributes
219
+ */
220
+ GetAttributes(self: CNavArea): number;
221
+ }
222
+
223
+ interface CNavArea {
224
+ /**
225
+ * Returns the center most vector point for the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
226
+ * @realm server
227
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetCenter
228
+ */
229
+ GetCenter(self: CNavArea): Vector;
230
+ }
231
+
232
+ interface CNavArea {
233
+ /**
234
+ * Returns the closest point of this Nav Area from the given position.
235
+ * @realm server
236
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetClosestPointOnArea
237
+ */
238
+ GetClosestPointOnArea(self: CNavArea, pos: Vector): Vector;
239
+ }
240
+
241
+ interface CNavArea {
242
+ /**
243
+ * Returns the vector position of the corner for the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
244
+ * @realm server
245
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetCorner
246
+ */
247
+ GetCorner(self: CNavArea, cornerid: number): Vector;
248
+ }
249
+
250
+ interface CNavArea {
251
+ /**
252
+ * Returns the cost from starting area this area when pathfinding. Set by [CNavArea:SetCostSoFar](https://wiki.facepunch.com/gmod/CNavArea:SetCostSoFar).
253
+ *
254
+ * Used in pathfinding via the [A* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).
255
+ *
256
+ *
257
+ * More information can be found on the [Simple Pathfinding](https://wiki.facepunch.com/gmod/Simple_Pathfinding) page.
258
+ *
259
+ * @realm server
260
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetCostSoFar
261
+ */
262
+ GetCostSoFar(self: CNavArea): number;
263
+ }
264
+
265
+ interface CNavArea {
266
+ /**
267
+ * Returns a table of very bad hiding spots in this area.
268
+ *
269
+ * See also [CNavArea:GetHidingSpots](https://wiki.facepunch.com/gmod/CNavArea:GetHidingSpots).
270
+ *
271
+ *
272
+ * @realm server
273
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetExposedSpots
274
+ */
275
+ GetExposedSpots(self: CNavArea): table;
276
+ }
277
+
278
+ interface CNavArea {
279
+ /**
280
+ * Returns size info about the nav area.
281
+ * @realm server
282
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetExtentInfo
283
+ */
284
+ GetExtentInfo(self: CNavArea): table;
285
+ }
286
+
287
+ interface CNavArea {
288
+ /**
289
+ * Returns a table of good hiding spots in this area.
290
+ *
291
+ * See also [CNavArea:GetExposedSpots](https://wiki.facepunch.com/gmod/CNavArea:GetExposedSpots).
292
+ *
293
+ * @realm server
294
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetHidingSpots
295
+ */
296
+ GetHidingSpots(self: CNavArea, type?: number): table;
297
+ }
298
+
299
+ interface CNavArea {
300
+ /**
301
+ * Returns this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s unique ID.
302
+ * @realm server
303
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetID
304
+ */
305
+ GetID(self: CNavArea): number;
306
+ }
307
+
308
+ interface CNavArea {
309
+ /**
310
+ * Returns a table of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a one-way connection **to** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) and their pre-computed distances.
311
+ *
312
+ * If a [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) has a two-way connection **to or from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) then it will not be returned from this function, use [CNavArea:GetAdjacentAreaDistances](https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentAreaDistances) to get outgoing (one and two way) connections.
313
+ *
314
+ * @realm server
315
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetIncomingConnectionDistances
316
+ */
317
+ GetIncomingConnectionDistances(self: CNavArea, dir?: number): table;
318
+ }
319
+
320
+ interface CNavArea {
321
+ /**
322
+ * Returns a table of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a one-way connection **to** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
323
+ *
324
+ * If a [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) has a two-way connection **to or from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) then it will not be returned from this function, use [CNavArea:GetAdjacentAreas](https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentAreas) to get outgoing ( one and two way ) connections.
325
+ *
326
+ * See [CNavArea:GetIncomingConnectionsAtSide](https://wiki.facepunch.com/gmod/CNavArea:GetIncomingConnectionsAtSide) for a function that returns one-way incoming connections from only one side/direction.
327
+ *
328
+ * @realm server
329
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetIncomingConnections
330
+ */
331
+ GetIncomingConnections(self: CNavArea): CNavArea[];
332
+ }
333
+
334
+ interface CNavArea {
335
+ /**
336
+ * Returns a table of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a one-way connection **to** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) from given direction.
337
+ *
338
+ * If a [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) has a two-way connection **to or from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) then it will not be returned from this function, use [CNavArea:GetAdjacentAreas](https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentAreas) to get outgoing ( one and two way ) connections.
339
+ *
340
+ * See [CNavArea:GetIncomingConnections](https://wiki.facepunch.com/gmod/CNavArea:GetIncomingConnections) for a function that returns one-way incoming connections from all sides/directions.
341
+ *
342
+ * @realm server
343
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetIncomingConnectionsAtSide
344
+ */
345
+ GetIncomingConnectionsAtSide(self: CNavArea, navDir: number): table;
346
+ }
347
+
348
+ interface CNavArea {
349
+ /**
350
+ * Returns all [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder)s that have a ( one or two way ) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
351
+ *
352
+ * See [CNavArea:GetLaddersAtSide](https://wiki.facepunch.com/gmod/CNavArea:GetLaddersAtSide) for a function that only returns [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder)s in given direction.
353
+ *
354
+ * @realm server
355
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetLadders
356
+ */
357
+ GetLadders(self: CNavArea): CNavLadder[];
358
+ }
359
+
360
+ interface CNavArea {
361
+ /**
362
+ * Returns all [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder)s that have a ( one or two way ) connection **from** ( one and two way ) this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
363
+ *
364
+ * See [CNavArea:GetLadders](https://wiki.facepunch.com/gmod/CNavArea:GetLadders) for a function that returns [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) from/in all sides/directions.
365
+ *
366
+ * @realm server
367
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetLaddersAtSide
368
+ */
369
+ GetLaddersAtSide(self: CNavArea, navDir: number): table;
370
+ }
371
+
372
+ interface CNavArea {
373
+ /**
374
+ * Returns the parent [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)
375
+ * @realm server
376
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetParent
377
+ */
378
+ GetParent(self: CNavArea): CNavArea;
379
+ }
380
+
381
+ interface CNavArea {
382
+ /**
383
+ * Returns how this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) is connected to its parent.
384
+ * @realm server
385
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetParentHow
386
+ */
387
+ GetParentHow(self: CNavArea): number;
388
+ }
389
+
390
+ interface CNavArea {
391
+ /**
392
+ * Returns the Place of the nav area.
393
+ * @realm server
394
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetPlace
395
+ */
396
+ GetPlace(self: CNavArea): string;
397
+ }
398
+
399
+ interface CNavArea {
400
+ /**
401
+ * Returns a random [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) that has an outgoing ( one or two way ) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
402
+ * @realm server
403
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetRandomAdjacentAreaAtSide
404
+ */
405
+ GetRandomAdjacentAreaAtSide(self: CNavArea, navDir: number): CNavArea;
406
+ }
407
+
408
+ interface CNavArea {
409
+ /**
410
+ * Returns a random point on the nav area.
411
+ * @realm server
412
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetRandomPoint
413
+ */
414
+ GetRandomPoint(self: CNavArea): Vector;
415
+ }
416
+
417
+ interface CNavArea {
418
+ /**
419
+ * Returns the width this Nav Area.
420
+ * @realm server
421
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetSizeX
422
+ */
423
+ GetSizeX(self: CNavArea): number;
424
+ }
425
+
426
+ interface CNavArea {
427
+ /**
428
+ * Returns the height of this Nav Area.
429
+ * @realm server
430
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetSizeY
431
+ */
432
+ GetSizeY(self: CNavArea): number;
433
+ }
434
+
435
+ interface CNavArea {
436
+ /**
437
+ * Returns all possible path segments through a [CNavArea](https://wiki.facepunch.com/gmod/CNavArea), and the dangerous spots to look at as we traverse that path segment.
438
+ *
439
+ * @realm server
440
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetSpotEncounters
441
+ */
442
+ GetSpotEncounters(self: CNavArea): table;
443
+ }
444
+
445
+ interface CNavArea {
446
+ /**
447
+ * Returns the total cost when passing from starting area to the goal area through this node. Set by [CNavArea:SetTotalCost](https://wiki.facepunch.com/gmod/CNavArea:SetTotalCost).
448
+ *
449
+ * Used in pathfinding via the [A* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).
450
+ *
451
+ *
452
+ * More information can be found on the [Simple Pathfinding](https://wiki.facepunch.com/gmod/Simple_Pathfinding) page.
453
+ *
454
+ * @realm server
455
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetTotalCost
456
+ */
457
+ GetTotalCost(self: CNavArea): number;
458
+ }
459
+
460
+ interface CNavArea {
461
+ /**
462
+ * Returns all [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that are visible from this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
463
+ *
464
+ * @realm server
465
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetVisibleAreas
466
+ */
467
+ GetVisibleAreas(self: CNavArea): table;
468
+ }
469
+
470
+ interface CNavArea {
471
+ /**
472
+ * Returns the elevation of this Nav Area at the given position.
473
+ * @realm server
474
+ * @source https://wiki.facepunch.com/gmod/CNavArea:GetZ
475
+ */
476
+ GetZ(self: CNavArea, pos: Vector): number;
477
+ }
478
+
479
+ interface CNavArea {
480
+ /**
481
+ * Returns true if the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) has this attribute flag set.
482
+ * @realm server
483
+ * @source https://wiki.facepunch.com/gmod/CNavArea:HasAttributes
484
+ */
485
+ HasAttributes(self: CNavArea, attribs: number): boolean;
486
+ }
487
+
488
+ interface CNavArea {
489
+ /**
490
+ * Returns whether the nav area is blocked or not, i.e. whether it can be walked through or not.
491
+ * @realm server
492
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsBlocked
493
+ */
494
+ IsBlocked(self: CNavArea, teamID?: number, ignoreNavBlockers?: boolean): boolean;
495
+ }
496
+
497
+ interface CNavArea {
498
+ /**
499
+ * Returns whether this node is in the Closed List.
500
+ *
501
+ * Used in pathfinding via the [A* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).
502
+ *
503
+ *
504
+ * More information can be found on the [Simple Pathfinding](https://wiki.facepunch.com/gmod/Simple_Pathfinding) page.
505
+ *
506
+ * @realm server
507
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsClosed
508
+ */
509
+ IsClosed(self: CNavArea): boolean;
510
+ }
511
+
512
+ interface CNavArea {
513
+ /**
514
+ * Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) can completely (i.e. all corners of this area can see all corners of the given area) see the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
515
+ *
516
+ * @realm server
517
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsCompletelyVisible
518
+ */
519
+ IsCompletelyVisible(self: CNavArea, area: CNavArea): boolean;
520
+ }
521
+
522
+ interface CNavArea {
523
+ /**
524
+ * Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) has an outgoing ( one or two way ) connection **to** given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
525
+ *
526
+ * See [CNavArea:IsConnectedAtSide](https://wiki.facepunch.com/gmod/CNavArea:IsConnectedAtSide) for a function that only checks for outgoing connections in one direction.
527
+ *
528
+ * @realm server
529
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsConnected
530
+ */
531
+ IsConnected(self: CNavArea, navArea: CNavArea): boolean;
532
+ }
533
+
534
+ interface CNavArea {
535
+ /**
536
+ * Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) has an outgoing ( one or two way ) connection **to** given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
537
+ *
538
+ * See [CNavArea:IsConnected](https://wiki.facepunch.com/gmod/CNavArea:IsConnected) for a function that checks all sides.
539
+ *
540
+ * @realm server
541
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsConnectedAtSide
542
+ */
543
+ IsConnectedAtSide(self: CNavArea, navArea: CNavArea, navDirType: number): boolean;
544
+ }
545
+
546
+ interface CNavArea {
547
+ /**
548
+ * Returns whether this Nav Area is in the same plane as the given one.
549
+ * @realm server
550
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsCoplanar
551
+ */
552
+ IsCoplanar(self: CNavArea, navArea: CNavArea): boolean;
553
+ }
554
+
555
+ interface CNavArea {
556
+ /**
557
+ * Returns whether the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) would damage if traversed, as set by [CNavArea:MarkAsDamaging](https://wiki.facepunch.com/gmod/CNavArea:MarkAsDamaging).
558
+ * @realm server
559
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsDamaging
560
+ */
561
+ IsDamaging(self: CNavArea): boolean;
562
+ }
563
+
564
+ interface CNavArea {
565
+ /**
566
+ * Returns whether this Nav Area is flat within the tolerance of the **nav_coplanar_slope_limit_displacement** and **nav_coplanar_slope_limit** convars.
567
+ * @realm server
568
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsFlat
569
+ */
570
+ IsFlat(self: CNavArea): boolean;
571
+ }
572
+
573
+ interface CNavArea {
574
+ /**
575
+ * Returns whether this area is in the Open List.
576
+ *
577
+ * Used in pathfinding via the [A* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).
578
+ *
579
+ *
580
+ * More information can be found on the [Simple Pathfinding](https://wiki.facepunch.com/gmod/Simple_Pathfinding) page.
581
+ *
582
+ * @realm server
583
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsOpen
584
+ */
585
+ IsOpen(self: CNavArea): boolean;
586
+ }
587
+
588
+ interface CNavArea {
589
+ /**
590
+ * Returns whether the Open List is empty or not.
591
+ *
592
+ * Used in pathfinding via the [A* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).
593
+ *
594
+ *
595
+ * More information can be found on the [Simple Pathfinding](https://wiki.facepunch.com/gmod/Simple_Pathfinding) page.
596
+ *
597
+ * @realm server
598
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsOpenListEmpty
599
+ */
600
+ IsOpenListEmpty(self: CNavArea): boolean;
601
+ }
602
+
603
+ interface CNavArea {
604
+ /**
605
+ * Returns if this position overlaps the Nav Area within the given tolerance.
606
+ * @realm server
607
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsOverlapping
608
+ */
609
+ IsOverlapping(self: CNavArea, pos: Vector, tolerance?: number): boolean;
610
+ }
611
+
612
+ interface CNavArea {
613
+ /**
614
+ * Returns true if this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) is overlapping the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
615
+ * @realm server
616
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsOverlappingArea
617
+ */
618
+ IsOverlappingArea(self: CNavArea, navArea: CNavArea): boolean;
619
+ }
620
+
621
+ interface CNavArea {
622
+ /**
623
+ * Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) can see given position.
624
+ *
625
+ * @realm server
626
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsPartiallyVisible
627
+ */
628
+ IsPartiallyVisible(self: CNavArea, pos: Vector, ignoreEnt?: Entity): boolean;
629
+ }
630
+
631
+ interface CNavArea {
632
+ /**
633
+ * Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) can potentially see the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
634
+ *
635
+ * @realm server
636
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsPotentiallyVisible
637
+ */
638
+ IsPotentiallyVisible(self: CNavArea, area: CNavArea): boolean;
639
+ }
640
+
641
+ interface CNavArea {
642
+ /**
643
+ * Returns if we're shaped like a square.
644
+ * @realm server
645
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsRoughlySquare
646
+ */
647
+ IsRoughlySquare(self: CNavArea): boolean;
648
+ }
649
+
650
+ interface CNavArea {
651
+ /**
652
+ * Whether this Nav Area is placed underwater.
653
+ * @realm server
654
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsUnderwater
655
+ */
656
+ IsUnderwater(self: CNavArea): boolean;
657
+ }
658
+
659
+ interface CNavArea {
660
+ /**
661
+ * Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) is valid or not.
662
+ * @realm server
663
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsValid
664
+ */
665
+ IsValid(self: CNavArea): boolean;
666
+ }
667
+
668
+ interface CNavArea {
669
+ /**
670
+ * Returns whether we can be seen from the given position.
671
+ * @realm server
672
+ * @source https://wiki.facepunch.com/gmod/CNavArea:IsVisible
673
+ */
674
+ IsVisible(self: CNavArea, pos: Vector): (boolean, Vector);
675
+ }
676
+
677
+ interface CNavArea {
678
+ /**
679
+ * Marks the area as blocked and unable to be traversed. See [CNavArea:IsBlocked](https://wiki.facepunch.com/gmod/CNavArea:IsBlocked) and [CNavArea:MarkAsUnblocked](https://wiki.facepunch.com/gmod/CNavArea:MarkAsUnblocked).
680
+ * @realm server
681
+ * @source https://wiki.facepunch.com/gmod/CNavArea:MarkAsBlocked
682
+ */
683
+ MarkAsBlocked(self: CNavArea, teamID?: number): void;
684
+ }
685
+
686
+ interface CNavArea {
687
+ /**
688
+ * Marks the area as damaging if traversed, for example when, for example having poisonous or no atmosphere, or a temporary fire present. See [CNavArea:IsDamaging](https://wiki.facepunch.com/gmod/CNavArea:IsDamaging).
689
+ * @realm server
690
+ * @source https://wiki.facepunch.com/gmod/CNavArea:MarkAsDamaging
691
+ */
692
+ MarkAsDamaging(self: CNavArea, duration: number): void;
693
+ }
694
+
695
+ interface CNavArea {
696
+ /**
697
+ * Unblocked this area if it was previously blocked by [CNavArea:MarkAsBlocked](https://wiki.facepunch.com/gmod/CNavArea:MarkAsBlocked).
698
+ * @realm server
699
+ * @source https://wiki.facepunch.com/gmod/CNavArea:MarkAsUnblocked
700
+ */
701
+ MarkAsUnblocked(self: CNavArea, teamID?: number): void;
702
+ }
703
+
704
+ interface CNavArea {
705
+ /**
706
+ * Drops a corner or all corners of a [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to the ground below it.
707
+ * @realm server
708
+ * @source https://wiki.facepunch.com/gmod/CNavArea:PlaceOnGround
709
+ */
710
+ PlaceOnGround(self: CNavArea, corner: number): void;
711
+ }
712
+
713
+ interface CNavArea {
714
+ /**
715
+ * Removes a CNavArea from the Open List with the lowest cost to traverse to from the starting node, and returns it.
716
+ *
717
+ * Used in pathfinding via the [A* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).
718
+ *
719
+ *
720
+ * More information can be found on the [Simple Pathfinding](https://wiki.facepunch.com/gmod/Simple_Pathfinding) page.
721
+ *
722
+ * @realm server
723
+ * @source https://wiki.facepunch.com/gmod/CNavArea:PopOpenList
724
+ */
725
+ PopOpenList(self: CNavArea): CNavArea;
726
+ }
727
+
728
+ interface CNavArea {
729
+ /**
730
+ * Removes the given nav area.
731
+ * @realm server
732
+ * @source https://wiki.facepunch.com/gmod/CNavArea:Remove
733
+ */
734
+ Remove(self: CNavArea): void;
735
+ }
736
+
737
+ interface CNavArea {
738
+ /**
739
+ * Removes given attributes from given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea). See also [CNavArea:SetAttributes](https://wiki.facepunch.com/gmod/CNavArea:SetAttributes).
740
+ * @realm server
741
+ * @source https://wiki.facepunch.com/gmod/CNavArea:RemoveAttributes
742
+ */
743
+ RemoveAttributes(self: CNavArea, attribs: number): void;
744
+ }
745
+
746
+ interface CNavArea {
747
+ /**
748
+ * Removes this node from the Closed List.
749
+ *
750
+ * Used in pathfinding via the [A* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).
751
+ *
752
+ *
753
+ * More information can be found on the [Simple Pathfinding](https://wiki.facepunch.com/gmod/Simple_Pathfinding) page.
754
+ *
755
+ * @realm server
756
+ * @source https://wiki.facepunch.com/gmod/CNavArea:RemoveFromClosedList
757
+ * @deprecated Does nothing
758
+ */
759
+ RemoveFromClosedList(self: CNavArea): void;
760
+ }
761
+
762
+ interface CNavArea {
763
+ /**
764
+ * Sets the attributes for given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea). See [CNavArea:HasAttributes](https://wiki.facepunch.com/gmod/CNavArea:HasAttributes).
765
+ * @realm server
766
+ * @source https://wiki.facepunch.com/gmod/CNavArea:SetAttributes
767
+ */
768
+ SetAttributes(self: CNavArea, attribs: number): void;
769
+ }
770
+
771
+ interface CNavArea {
772
+ /**
773
+ * Sets the position of a corner of a nav area.
774
+ * @realm server
775
+ * @source https://wiki.facepunch.com/gmod/CNavArea:SetCorner
776
+ */
777
+ SetCorner(self: CNavArea, corner: number, position: Vector): void;
778
+ }
779
+
780
+ interface CNavArea {
781
+ /**
782
+ * Sets the cost from starting area this area when pathfinding.
783
+ *
784
+ * Used in pathfinding via the [A* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).
785
+ *
786
+ *
787
+ * More information can be found on the [Simple Pathfinding](https://wiki.facepunch.com/gmod/Simple_Pathfinding) page.
788
+ *
789
+ * @realm server
790
+ * @source https://wiki.facepunch.com/gmod/CNavArea:SetCostSoFar
791
+ */
792
+ SetCostSoFar(self: CNavArea, cost: number): void;
793
+ }
794
+
795
+ interface CNavArea {
796
+ /**
797
+ * Sets the new parent of this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
798
+ * @realm server
799
+ * @source https://wiki.facepunch.com/gmod/CNavArea:SetParent
800
+ */
801
+ SetParent(self: CNavArea, parent: CNavArea, how: number): void;
802
+ }
803
+
804
+ interface CNavArea {
805
+ /**
806
+ * Sets the Place of the nav area.
807
+ *
808
+ * There is a limit of 256 unique places per `.nav` file.
809
+ *
810
+ * @realm server
811
+ * @source https://wiki.facepunch.com/gmod/CNavArea:SetPlace
812
+ */
813
+ SetPlace(self: CNavArea, place: string): boolean;
814
+ }
815
+
816
+ interface CNavArea {
817
+ /**
818
+ * Sets the total cost when passing from starting area to the goal area through this node.
819
+ *
820
+ * Used in pathfinding via the [A* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).
821
+ *
822
+ *
823
+ * More information can be found on the [Simple Pathfinding](https://wiki.facepunch.com/gmod/Simple_Pathfinding) page.
824
+ *
825
+ * @realm server
826
+ * @source https://wiki.facepunch.com/gmod/CNavArea:SetTotalCost
827
+ */
828
+ SetTotalCost(self: CNavArea, cost: number): void;
829
+ }
830
+
831
+ interface CNavArea {
832
+ /**
833
+ * Moves this open list to appropriate position based on its [CNavArea:GetTotalCost](https://wiki.facepunch.com/gmod/CNavArea:GetTotalCost) compared to the total cost of other areas in the open list.
834
+ *
835
+ * Used in pathfinding via the [A* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).
836
+ *
837
+ *
838
+ * More information can be found on the [Simple Pathfinding](https://wiki.facepunch.com/gmod/Simple_Pathfinding) page.
839
+ *
840
+ * @realm server
841
+ * @source https://wiki.facepunch.com/gmod/CNavArea:UpdateOnOpenList
842
+ */
843
+ UpdateOnOpenList(self: CNavArea): void;
844
+ }
845
+