NavigationLuaAPI.cpp 68 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053
  1. /*
  2. ** Lua binding: Navigation
  3. ** Generated automatically by tolua++-1.0.92 on 07/02/13 20:27:50.
  4. */
  5. //
  6. // Copyright (c) 2008-2013 the Urho3D project.
  7. //
  8. // Permission is hereby granted, free of charge, to any person obtaining a copy
  9. // of this software and associated documentation files (the "Software"), to deal
  10. // in the Software without restriction, including without limitation the rights
  11. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. // copies of the Software, and to permit persons to whom the Software is
  13. // furnished to do so, subject to the following conditions:
  14. //
  15. // The above copyright notice and this permission notice shall be included in
  16. // all copies or substantial portions of the Software.
  17. //
  18. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  24. // THE SOFTWARE.
  25. //
  26. #include "Precompiled.h"
  27. #include "tolua++.h"
  28. /* Exported function */
  29. TOLUA_API int tolua_Navigation_open (lua_State* tolua_S);
  30. #define TOLUA_RELEASE
  31. #include "NavigationLuaAPI.h"
  32. #include "Navigable.h"
  33. #include "NavigationMesh.h"
  34. #include "OffMeshConnection.h"
  35. using namespace Urho3D;
  36. #pragma warning(disable:4800)
  37. /* function to release collected object via destructor */
  38. #ifdef __cplusplus
  39. static int tolua_collect_IntVector2 (lua_State* tolua_S)
  40. {
  41. IntVector2* self = (IntVector2*) tolua_tousertype(tolua_S,1,0);
  42. Mtolua_delete(self);
  43. return 0;
  44. }
  45. static int tolua_collect_BoundingBox (lua_State* tolua_S)
  46. {
  47. BoundingBox* self = (BoundingBox*) tolua_tousertype(tolua_S,1,0);
  48. Mtolua_delete(self);
  49. return 0;
  50. }
  51. static int tolua_collect_Vector3 (lua_State* tolua_S)
  52. {
  53. Vector3* self = (Vector3*) tolua_tousertype(tolua_S,1,0);
  54. Mtolua_delete(self);
  55. return 0;
  56. }
  57. static int tolua_collect_PODVector_Vector3_ (lua_State* tolua_S)
  58. {
  59. PODVector<Vector3>* self = (PODVector<Vector3>*) tolua_tousertype(tolua_S,1,0);
  60. Mtolua_delete(self);
  61. return 0;
  62. }
  63. #endif
  64. /* function to register type */
  65. static void tolua_reg_types (lua_State* tolua_S)
  66. {
  67. tolua_usertype(tolua_S,"Matrix3x4");
  68. tolua_usertype(tolua_S,"BoundingBox");
  69. tolua_usertype(tolua_S,"OffMeshConnection");
  70. tolua_usertype(tolua_S,"Component");
  71. tolua_usertype(tolua_S,"NavigationGeometryInfo");
  72. tolua_usertype(tolua_S,"IntVector2");
  73. tolua_usertype(tolua_S,"NavigationMesh");
  74. tolua_usertype(tolua_S,"PODVector<Vector3>");
  75. tolua_usertype(tolua_S,"Vector3");
  76. tolua_usertype(tolua_S,"Node");
  77. tolua_usertype(tolua_S,"Navigable");
  78. }
  79. /* method: SetRecursive of class Navigable */
  80. #ifndef TOLUA_DISABLE_tolua_Navigation_Navigable_SetRecursive00
  81. static int tolua_Navigation_Navigable_SetRecursive00(lua_State* tolua_S)
  82. {
  83. #ifndef TOLUA_RELEASE
  84. tolua_Error tolua_err;
  85. if (
  86. !tolua_isusertype(tolua_S,1,"Navigable",0,&tolua_err) ||
  87. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  88. !tolua_isnoobj(tolua_S,3,&tolua_err)
  89. )
  90. goto tolua_lerror;
  91. else
  92. #endif
  93. {
  94. Navigable* self = (Navigable*) tolua_tousertype(tolua_S,1,0);
  95. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  96. #ifndef TOLUA_RELEASE
  97. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRecursive'", NULL);
  98. #endif
  99. {
  100. self->SetRecursive(enable);
  101. }
  102. }
  103. return 0;
  104. #ifndef TOLUA_RELEASE
  105. tolua_lerror:
  106. tolua_error(tolua_S,"#ferror in function 'SetRecursive'.",&tolua_err);
  107. return 0;
  108. #endif
  109. }
  110. #endif //#ifndef TOLUA_DISABLE
  111. /* method: IsRecursive of class Navigable */
  112. #ifndef TOLUA_DISABLE_tolua_Navigation_Navigable_IsRecursive00
  113. static int tolua_Navigation_Navigable_IsRecursive00(lua_State* tolua_S)
  114. {
  115. #ifndef TOLUA_RELEASE
  116. tolua_Error tolua_err;
  117. if (
  118. !tolua_isusertype(tolua_S,1,"const Navigable",0,&tolua_err) ||
  119. !tolua_isnoobj(tolua_S,2,&tolua_err)
  120. )
  121. goto tolua_lerror;
  122. else
  123. #endif
  124. {
  125. const Navigable* self = (const Navigable*) tolua_tousertype(tolua_S,1,0);
  126. #ifndef TOLUA_RELEASE
  127. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsRecursive'", NULL);
  128. #endif
  129. {
  130. bool tolua_ret = (bool) self->IsRecursive();
  131. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  132. }
  133. }
  134. return 1;
  135. #ifndef TOLUA_RELEASE
  136. tolua_lerror:
  137. tolua_error(tolua_S,"#ferror in function 'IsRecursive'.",&tolua_err);
  138. return 0;
  139. #endif
  140. }
  141. #endif //#ifndef TOLUA_DISABLE
  142. /* get function: component_ of class NavigationGeometryInfo */
  143. #ifndef TOLUA_DISABLE_tolua_get_NavigationGeometryInfo_component__ptr
  144. static int tolua_get_NavigationGeometryInfo_component__ptr(lua_State* tolua_S)
  145. {
  146. NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
  147. #ifndef TOLUA_RELEASE
  148. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'component_'",NULL);
  149. #endif
  150. tolua_pushusertype(tolua_S,(void*)self->component_,"Component");
  151. return 1;
  152. }
  153. #endif //#ifndef TOLUA_DISABLE
  154. /* set function: component_ of class NavigationGeometryInfo */
  155. #ifndef TOLUA_DISABLE_tolua_set_NavigationGeometryInfo_component__ptr
  156. static int tolua_set_NavigationGeometryInfo_component__ptr(lua_State* tolua_S)
  157. {
  158. NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
  159. #ifndef TOLUA_RELEASE
  160. tolua_Error tolua_err;
  161. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'component_'",NULL);
  162. if (!tolua_isusertype(tolua_S,2,"Component",0,&tolua_err))
  163. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  164. #endif
  165. self->component_ = ((Component*) tolua_tousertype(tolua_S,2,0))
  166. ;
  167. return 0;
  168. }
  169. #endif //#ifndef TOLUA_DISABLE
  170. /* get function: lodLevel_ of class NavigationGeometryInfo */
  171. #ifndef TOLUA_DISABLE_tolua_get_NavigationGeometryInfo_lodLevel_
  172. static int tolua_get_NavigationGeometryInfo_lodLevel_(lua_State* tolua_S)
  173. {
  174. NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
  175. #ifndef TOLUA_RELEASE
  176. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'lodLevel_'",NULL);
  177. #endif
  178. tolua_pushnumber(tolua_S,(lua_Number)self->lodLevel_);
  179. return 1;
  180. }
  181. #endif //#ifndef TOLUA_DISABLE
  182. /* set function: lodLevel_ of class NavigationGeometryInfo */
  183. #ifndef TOLUA_DISABLE_tolua_set_NavigationGeometryInfo_lodLevel_
  184. static int tolua_set_NavigationGeometryInfo_lodLevel_(lua_State* tolua_S)
  185. {
  186. NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
  187. #ifndef TOLUA_RELEASE
  188. tolua_Error tolua_err;
  189. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'lodLevel_'",NULL);
  190. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  191. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  192. #endif
  193. self->lodLevel_ = ((unsigned) tolua_tonumber(tolua_S,2,0))
  194. ;
  195. return 0;
  196. }
  197. #endif //#ifndef TOLUA_DISABLE
  198. /* get function: transform_ of class NavigationGeometryInfo */
  199. #ifndef TOLUA_DISABLE_tolua_get_NavigationGeometryInfo_transform_
  200. static int tolua_get_NavigationGeometryInfo_transform_(lua_State* tolua_S)
  201. {
  202. NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
  203. #ifndef TOLUA_RELEASE
  204. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'transform_'",NULL);
  205. #endif
  206. tolua_pushusertype(tolua_S,(void*)&self->transform_,"Matrix3x4");
  207. return 1;
  208. }
  209. #endif //#ifndef TOLUA_DISABLE
  210. /* set function: transform_ of class NavigationGeometryInfo */
  211. #ifndef TOLUA_DISABLE_tolua_set_NavigationGeometryInfo_transform_
  212. static int tolua_set_NavigationGeometryInfo_transform_(lua_State* tolua_S)
  213. {
  214. NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
  215. #ifndef TOLUA_RELEASE
  216. tolua_Error tolua_err;
  217. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'transform_'",NULL);
  218. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Matrix3x4",0,&tolua_err)))
  219. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  220. #endif
  221. self->transform_ = *((Matrix3x4*) tolua_tousertype(tolua_S,2,0))
  222. ;
  223. return 0;
  224. }
  225. #endif //#ifndef TOLUA_DISABLE
  226. /* get function: boundingBox_ of class NavigationGeometryInfo */
  227. #ifndef TOLUA_DISABLE_tolua_get_NavigationGeometryInfo_boundingBox_
  228. static int tolua_get_NavigationGeometryInfo_boundingBox_(lua_State* tolua_S)
  229. {
  230. NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
  231. #ifndef TOLUA_RELEASE
  232. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'boundingBox_'",NULL);
  233. #endif
  234. tolua_pushusertype(tolua_S,(void*)&self->boundingBox_,"BoundingBox");
  235. return 1;
  236. }
  237. #endif //#ifndef TOLUA_DISABLE
  238. /* set function: boundingBox_ of class NavigationGeometryInfo */
  239. #ifndef TOLUA_DISABLE_tolua_set_NavigationGeometryInfo_boundingBox_
  240. static int tolua_set_NavigationGeometryInfo_boundingBox_(lua_State* tolua_S)
  241. {
  242. NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
  243. #ifndef TOLUA_RELEASE
  244. tolua_Error tolua_err;
  245. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'boundingBox_'",NULL);
  246. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"BoundingBox",0,&tolua_err)))
  247. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  248. #endif
  249. self->boundingBox_ = *((BoundingBox*) tolua_tousertype(tolua_S,2,0))
  250. ;
  251. return 0;
  252. }
  253. #endif //#ifndef TOLUA_DISABLE
  254. /* method: SetTileSize of class NavigationMesh */
  255. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetTileSize00
  256. static int tolua_Navigation_NavigationMesh_SetTileSize00(lua_State* tolua_S)
  257. {
  258. #ifndef TOLUA_RELEASE
  259. tolua_Error tolua_err;
  260. if (
  261. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  262. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  263. !tolua_isnoobj(tolua_S,3,&tolua_err)
  264. )
  265. goto tolua_lerror;
  266. else
  267. #endif
  268. {
  269. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  270. int size = ((int) tolua_tonumber(tolua_S,2,0));
  271. #ifndef TOLUA_RELEASE
  272. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTileSize'", NULL);
  273. #endif
  274. {
  275. self->SetTileSize(size);
  276. }
  277. }
  278. return 0;
  279. #ifndef TOLUA_RELEASE
  280. tolua_lerror:
  281. tolua_error(tolua_S,"#ferror in function 'SetTileSize'.",&tolua_err);
  282. return 0;
  283. #endif
  284. }
  285. #endif //#ifndef TOLUA_DISABLE
  286. /* method: SetCellSize of class NavigationMesh */
  287. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetCellSize00
  288. static int tolua_Navigation_NavigationMesh_SetCellSize00(lua_State* tolua_S)
  289. {
  290. #ifndef TOLUA_RELEASE
  291. tolua_Error tolua_err;
  292. if (
  293. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  294. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  295. !tolua_isnoobj(tolua_S,3,&tolua_err)
  296. )
  297. goto tolua_lerror;
  298. else
  299. #endif
  300. {
  301. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  302. float size = ((float) tolua_tonumber(tolua_S,2,0));
  303. #ifndef TOLUA_RELEASE
  304. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCellSize'", NULL);
  305. #endif
  306. {
  307. self->SetCellSize(size);
  308. }
  309. }
  310. return 0;
  311. #ifndef TOLUA_RELEASE
  312. tolua_lerror:
  313. tolua_error(tolua_S,"#ferror in function 'SetCellSize'.",&tolua_err);
  314. return 0;
  315. #endif
  316. }
  317. #endif //#ifndef TOLUA_DISABLE
  318. /* method: SetCellHeight of class NavigationMesh */
  319. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetCellHeight00
  320. static int tolua_Navigation_NavigationMesh_SetCellHeight00(lua_State* tolua_S)
  321. {
  322. #ifndef TOLUA_RELEASE
  323. tolua_Error tolua_err;
  324. if (
  325. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  326. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  327. !tolua_isnoobj(tolua_S,3,&tolua_err)
  328. )
  329. goto tolua_lerror;
  330. else
  331. #endif
  332. {
  333. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  334. float height = ((float) tolua_tonumber(tolua_S,2,0));
  335. #ifndef TOLUA_RELEASE
  336. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCellHeight'", NULL);
  337. #endif
  338. {
  339. self->SetCellHeight(height);
  340. }
  341. }
  342. return 0;
  343. #ifndef TOLUA_RELEASE
  344. tolua_lerror:
  345. tolua_error(tolua_S,"#ferror in function 'SetCellHeight'.",&tolua_err);
  346. return 0;
  347. #endif
  348. }
  349. #endif //#ifndef TOLUA_DISABLE
  350. /* method: SetAgentHeight of class NavigationMesh */
  351. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetAgentHeight00
  352. static int tolua_Navigation_NavigationMesh_SetAgentHeight00(lua_State* tolua_S)
  353. {
  354. #ifndef TOLUA_RELEASE
  355. tolua_Error tolua_err;
  356. if (
  357. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  358. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  359. !tolua_isnoobj(tolua_S,3,&tolua_err)
  360. )
  361. goto tolua_lerror;
  362. else
  363. #endif
  364. {
  365. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  366. float height = ((float) tolua_tonumber(tolua_S,2,0));
  367. #ifndef TOLUA_RELEASE
  368. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAgentHeight'", NULL);
  369. #endif
  370. {
  371. self->SetAgentHeight(height);
  372. }
  373. }
  374. return 0;
  375. #ifndef TOLUA_RELEASE
  376. tolua_lerror:
  377. tolua_error(tolua_S,"#ferror in function 'SetAgentHeight'.",&tolua_err);
  378. return 0;
  379. #endif
  380. }
  381. #endif //#ifndef TOLUA_DISABLE
  382. /* method: SetAgentRadius of class NavigationMesh */
  383. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetAgentRadius00
  384. static int tolua_Navigation_NavigationMesh_SetAgentRadius00(lua_State* tolua_S)
  385. {
  386. #ifndef TOLUA_RELEASE
  387. tolua_Error tolua_err;
  388. if (
  389. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  390. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  391. !tolua_isnoobj(tolua_S,3,&tolua_err)
  392. )
  393. goto tolua_lerror;
  394. else
  395. #endif
  396. {
  397. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  398. float radius = ((float) tolua_tonumber(tolua_S,2,0));
  399. #ifndef TOLUA_RELEASE
  400. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAgentRadius'", NULL);
  401. #endif
  402. {
  403. self->SetAgentRadius(radius);
  404. }
  405. }
  406. return 0;
  407. #ifndef TOLUA_RELEASE
  408. tolua_lerror:
  409. tolua_error(tolua_S,"#ferror in function 'SetAgentRadius'.",&tolua_err);
  410. return 0;
  411. #endif
  412. }
  413. #endif //#ifndef TOLUA_DISABLE
  414. /* method: SetAgentMaxClimb of class NavigationMesh */
  415. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetAgentMaxClimb00
  416. static int tolua_Navigation_NavigationMesh_SetAgentMaxClimb00(lua_State* tolua_S)
  417. {
  418. #ifndef TOLUA_RELEASE
  419. tolua_Error tolua_err;
  420. if (
  421. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  422. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  423. !tolua_isnoobj(tolua_S,3,&tolua_err)
  424. )
  425. goto tolua_lerror;
  426. else
  427. #endif
  428. {
  429. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  430. float maxClimb = ((float) tolua_tonumber(tolua_S,2,0));
  431. #ifndef TOLUA_RELEASE
  432. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAgentMaxClimb'", NULL);
  433. #endif
  434. {
  435. self->SetAgentMaxClimb(maxClimb);
  436. }
  437. }
  438. return 0;
  439. #ifndef TOLUA_RELEASE
  440. tolua_lerror:
  441. tolua_error(tolua_S,"#ferror in function 'SetAgentMaxClimb'.",&tolua_err);
  442. return 0;
  443. #endif
  444. }
  445. #endif //#ifndef TOLUA_DISABLE
  446. /* method: SetAgentMaxSlope of class NavigationMesh */
  447. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetAgentMaxSlope00
  448. static int tolua_Navigation_NavigationMesh_SetAgentMaxSlope00(lua_State* tolua_S)
  449. {
  450. #ifndef TOLUA_RELEASE
  451. tolua_Error tolua_err;
  452. if (
  453. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  454. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  455. !tolua_isnoobj(tolua_S,3,&tolua_err)
  456. )
  457. goto tolua_lerror;
  458. else
  459. #endif
  460. {
  461. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  462. float maxSlope = ((float) tolua_tonumber(tolua_S,2,0));
  463. #ifndef TOLUA_RELEASE
  464. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAgentMaxSlope'", NULL);
  465. #endif
  466. {
  467. self->SetAgentMaxSlope(maxSlope);
  468. }
  469. }
  470. return 0;
  471. #ifndef TOLUA_RELEASE
  472. tolua_lerror:
  473. tolua_error(tolua_S,"#ferror in function 'SetAgentMaxSlope'.",&tolua_err);
  474. return 0;
  475. #endif
  476. }
  477. #endif //#ifndef TOLUA_DISABLE
  478. /* method: SetRegionMinSize of class NavigationMesh */
  479. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetRegionMinSize00
  480. static int tolua_Navigation_NavigationMesh_SetRegionMinSize00(lua_State* tolua_S)
  481. {
  482. #ifndef TOLUA_RELEASE
  483. tolua_Error tolua_err;
  484. if (
  485. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  486. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  487. !tolua_isnoobj(tolua_S,3,&tolua_err)
  488. )
  489. goto tolua_lerror;
  490. else
  491. #endif
  492. {
  493. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  494. float size = ((float) tolua_tonumber(tolua_S,2,0));
  495. #ifndef TOLUA_RELEASE
  496. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRegionMinSize'", NULL);
  497. #endif
  498. {
  499. self->SetRegionMinSize(size);
  500. }
  501. }
  502. return 0;
  503. #ifndef TOLUA_RELEASE
  504. tolua_lerror:
  505. tolua_error(tolua_S,"#ferror in function 'SetRegionMinSize'.",&tolua_err);
  506. return 0;
  507. #endif
  508. }
  509. #endif //#ifndef TOLUA_DISABLE
  510. /* method: SetRegionMergeSize of class NavigationMesh */
  511. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetRegionMergeSize00
  512. static int tolua_Navigation_NavigationMesh_SetRegionMergeSize00(lua_State* tolua_S)
  513. {
  514. #ifndef TOLUA_RELEASE
  515. tolua_Error tolua_err;
  516. if (
  517. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  518. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  519. !tolua_isnoobj(tolua_S,3,&tolua_err)
  520. )
  521. goto tolua_lerror;
  522. else
  523. #endif
  524. {
  525. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  526. float size = ((float) tolua_tonumber(tolua_S,2,0));
  527. #ifndef TOLUA_RELEASE
  528. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRegionMergeSize'", NULL);
  529. #endif
  530. {
  531. self->SetRegionMergeSize(size);
  532. }
  533. }
  534. return 0;
  535. #ifndef TOLUA_RELEASE
  536. tolua_lerror:
  537. tolua_error(tolua_S,"#ferror in function 'SetRegionMergeSize'.",&tolua_err);
  538. return 0;
  539. #endif
  540. }
  541. #endif //#ifndef TOLUA_DISABLE
  542. /* method: SetEdgeMaxLength of class NavigationMesh */
  543. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetEdgeMaxLength00
  544. static int tolua_Navigation_NavigationMesh_SetEdgeMaxLength00(lua_State* tolua_S)
  545. {
  546. #ifndef TOLUA_RELEASE
  547. tolua_Error tolua_err;
  548. if (
  549. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  550. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  551. !tolua_isnoobj(tolua_S,3,&tolua_err)
  552. )
  553. goto tolua_lerror;
  554. else
  555. #endif
  556. {
  557. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  558. float length = ((float) tolua_tonumber(tolua_S,2,0));
  559. #ifndef TOLUA_RELEASE
  560. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEdgeMaxLength'", NULL);
  561. #endif
  562. {
  563. self->SetEdgeMaxLength(length);
  564. }
  565. }
  566. return 0;
  567. #ifndef TOLUA_RELEASE
  568. tolua_lerror:
  569. tolua_error(tolua_S,"#ferror in function 'SetEdgeMaxLength'.",&tolua_err);
  570. return 0;
  571. #endif
  572. }
  573. #endif //#ifndef TOLUA_DISABLE
  574. /* method: SetEdgeMaxError of class NavigationMesh */
  575. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetEdgeMaxError00
  576. static int tolua_Navigation_NavigationMesh_SetEdgeMaxError00(lua_State* tolua_S)
  577. {
  578. #ifndef TOLUA_RELEASE
  579. tolua_Error tolua_err;
  580. if (
  581. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  582. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  583. !tolua_isnoobj(tolua_S,3,&tolua_err)
  584. )
  585. goto tolua_lerror;
  586. else
  587. #endif
  588. {
  589. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  590. float error = ((float) tolua_tonumber(tolua_S,2,0));
  591. #ifndef TOLUA_RELEASE
  592. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEdgeMaxError'", NULL);
  593. #endif
  594. {
  595. self->SetEdgeMaxError(error);
  596. }
  597. }
  598. return 0;
  599. #ifndef TOLUA_RELEASE
  600. tolua_lerror:
  601. tolua_error(tolua_S,"#ferror in function 'SetEdgeMaxError'.",&tolua_err);
  602. return 0;
  603. #endif
  604. }
  605. #endif //#ifndef TOLUA_DISABLE
  606. /* method: SetDetailSampleDistance of class NavigationMesh */
  607. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetDetailSampleDistance00
  608. static int tolua_Navigation_NavigationMesh_SetDetailSampleDistance00(lua_State* tolua_S)
  609. {
  610. #ifndef TOLUA_RELEASE
  611. tolua_Error tolua_err;
  612. if (
  613. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  614. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  615. !tolua_isnoobj(tolua_S,3,&tolua_err)
  616. )
  617. goto tolua_lerror;
  618. else
  619. #endif
  620. {
  621. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  622. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  623. #ifndef TOLUA_RELEASE
  624. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDetailSampleDistance'", NULL);
  625. #endif
  626. {
  627. self->SetDetailSampleDistance(distance);
  628. }
  629. }
  630. return 0;
  631. #ifndef TOLUA_RELEASE
  632. tolua_lerror:
  633. tolua_error(tolua_S,"#ferror in function 'SetDetailSampleDistance'.",&tolua_err);
  634. return 0;
  635. #endif
  636. }
  637. #endif //#ifndef TOLUA_DISABLE
  638. /* method: SetDetailSampleMaxError of class NavigationMesh */
  639. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetDetailSampleMaxError00
  640. static int tolua_Navigation_NavigationMesh_SetDetailSampleMaxError00(lua_State* tolua_S)
  641. {
  642. #ifndef TOLUA_RELEASE
  643. tolua_Error tolua_err;
  644. if (
  645. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  646. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  647. !tolua_isnoobj(tolua_S,3,&tolua_err)
  648. )
  649. goto tolua_lerror;
  650. else
  651. #endif
  652. {
  653. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  654. float error = ((float) tolua_tonumber(tolua_S,2,0));
  655. #ifndef TOLUA_RELEASE
  656. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDetailSampleMaxError'", NULL);
  657. #endif
  658. {
  659. self->SetDetailSampleMaxError(error);
  660. }
  661. }
  662. return 0;
  663. #ifndef TOLUA_RELEASE
  664. tolua_lerror:
  665. tolua_error(tolua_S,"#ferror in function 'SetDetailSampleMaxError'.",&tolua_err);
  666. return 0;
  667. #endif
  668. }
  669. #endif //#ifndef TOLUA_DISABLE
  670. /* method: SetPadding of class NavigationMesh */
  671. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetPadding00
  672. static int tolua_Navigation_NavigationMesh_SetPadding00(lua_State* tolua_S)
  673. {
  674. #ifndef TOLUA_RELEASE
  675. tolua_Error tolua_err;
  676. if (
  677. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  678. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  679. !tolua_isnoobj(tolua_S,3,&tolua_err)
  680. )
  681. goto tolua_lerror;
  682. else
  683. #endif
  684. {
  685. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  686. const Vector3* padding = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  687. #ifndef TOLUA_RELEASE
  688. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPadding'", NULL);
  689. #endif
  690. {
  691. self->SetPadding(*padding);
  692. }
  693. }
  694. return 0;
  695. #ifndef TOLUA_RELEASE
  696. tolua_lerror:
  697. tolua_error(tolua_S,"#ferror in function 'SetPadding'.",&tolua_err);
  698. return 0;
  699. #endif
  700. }
  701. #endif //#ifndef TOLUA_DISABLE
  702. /* method: Build of class NavigationMesh */
  703. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_Build00
  704. static int tolua_Navigation_NavigationMesh_Build00(lua_State* tolua_S)
  705. {
  706. #ifndef TOLUA_RELEASE
  707. tolua_Error tolua_err;
  708. if (
  709. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  710. !tolua_isnoobj(tolua_S,2,&tolua_err)
  711. )
  712. goto tolua_lerror;
  713. else
  714. #endif
  715. {
  716. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  717. #ifndef TOLUA_RELEASE
  718. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Build'", NULL);
  719. #endif
  720. {
  721. bool tolua_ret = (bool) self->Build();
  722. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  723. }
  724. }
  725. return 1;
  726. #ifndef TOLUA_RELEASE
  727. tolua_lerror:
  728. tolua_error(tolua_S,"#ferror in function 'Build'.",&tolua_err);
  729. return 0;
  730. #endif
  731. }
  732. #endif //#ifndef TOLUA_DISABLE
  733. /* method: Build of class NavigationMesh */
  734. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_Build01
  735. static int tolua_Navigation_NavigationMesh_Build01(lua_State* tolua_S)
  736. {
  737. tolua_Error tolua_err;
  738. if (
  739. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  740. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BoundingBox",0,&tolua_err)) ||
  741. !tolua_isnoobj(tolua_S,3,&tolua_err)
  742. )
  743. goto tolua_lerror;
  744. else
  745. {
  746. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  747. const BoundingBox* boundingBox = ((const BoundingBox*) tolua_tousertype(tolua_S,2,0));
  748. #ifndef TOLUA_RELEASE
  749. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Build'", NULL);
  750. #endif
  751. {
  752. bool tolua_ret = (bool) self->Build(*boundingBox);
  753. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  754. }
  755. }
  756. return 1;
  757. tolua_lerror:
  758. return tolua_Navigation_NavigationMesh_Build00(tolua_S);
  759. }
  760. #endif //#ifndef TOLUA_DISABLE
  761. /* method: NavigationMeshFindPath of class NavigationMesh */
  762. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_FindPath00
  763. static int tolua_Navigation_NavigationMesh_FindPath00(lua_State* tolua_S)
  764. {
  765. #ifndef TOLUA_RELEASE
  766. tolua_Error tolua_err;
  767. if (
  768. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  769. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  770. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
  771. !tolua_isnoobj(tolua_S,4,&tolua_err)
  772. )
  773. goto tolua_lerror;
  774. else
  775. #endif
  776. {
  777. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  778. const Vector3* start = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  779. const Vector3* end = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
  780. #ifndef TOLUA_RELEASE
  781. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'NavigationMeshFindPath'", NULL);
  782. #endif
  783. {
  784. tolua_outside PODVector<Vector3> tolua_ret = (tolua_outside PODVector<Vector3>) NavigationMeshFindPath(self,*start,*end);
  785. {
  786. #ifdef __cplusplus
  787. void* tolua_obj = Mtolua_new((PODVector<Vector3>)(tolua_ret));
  788. tolua_pushusertype(tolua_S,tolua_obj,"PODVector<Vector3>");
  789. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  790. #else
  791. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(PODVector<Vector3>));
  792. tolua_pushusertype(tolua_S,tolua_obj,"PODVector<Vector3>");
  793. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  794. #endif
  795. }
  796. }
  797. }
  798. return 1;
  799. #ifndef TOLUA_RELEASE
  800. tolua_lerror:
  801. tolua_error(tolua_S,"#ferror in function 'FindPath'.",&tolua_err);
  802. return 0;
  803. #endif
  804. }
  805. #endif //#ifndef TOLUA_DISABLE
  806. /* method: NavigationMeshFindPath of class NavigationMesh */
  807. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_FindPath01
  808. static int tolua_Navigation_NavigationMesh_FindPath01(lua_State* tolua_S)
  809. {
  810. tolua_Error tolua_err;
  811. if (
  812. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  813. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  814. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
  815. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Vector3",0,&tolua_err)) ||
  816. !tolua_isnoobj(tolua_S,5,&tolua_err)
  817. )
  818. goto tolua_lerror;
  819. else
  820. {
  821. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  822. const Vector3* start = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  823. const Vector3* end = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
  824. const Vector3* extents = ((const Vector3*) tolua_tousertype(tolua_S,4,0));
  825. #ifndef TOLUA_RELEASE
  826. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'NavigationMeshFindPath'", NULL);
  827. #endif
  828. {
  829. tolua_outside PODVector<Vector3> tolua_ret = (tolua_outside PODVector<Vector3>) NavigationMeshFindPath(self,*start,*end,*extents);
  830. {
  831. #ifdef __cplusplus
  832. void* tolua_obj = Mtolua_new((PODVector<Vector3>)(tolua_ret));
  833. tolua_pushusertype(tolua_S,tolua_obj,"PODVector<Vector3>");
  834. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  835. #else
  836. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(PODVector<Vector3>));
  837. tolua_pushusertype(tolua_S,tolua_obj,"PODVector<Vector3>");
  838. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  839. #endif
  840. }
  841. }
  842. }
  843. return 1;
  844. tolua_lerror:
  845. return tolua_Navigation_NavigationMesh_FindPath00(tolua_S);
  846. }
  847. #endif //#ifndef TOLUA_DISABLE
  848. /* method: GetRandomPoint of class NavigationMesh */
  849. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetRandomPoint00
  850. static int tolua_Navigation_NavigationMesh_GetRandomPoint00(lua_State* tolua_S)
  851. {
  852. #ifndef TOLUA_RELEASE
  853. tolua_Error tolua_err;
  854. if (
  855. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  856. !tolua_isnoobj(tolua_S,2,&tolua_err)
  857. )
  858. goto tolua_lerror;
  859. else
  860. #endif
  861. {
  862. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  863. #ifndef TOLUA_RELEASE
  864. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRandomPoint'", NULL);
  865. #endif
  866. {
  867. Vector3 tolua_ret = (Vector3) self->GetRandomPoint();
  868. {
  869. #ifdef __cplusplus
  870. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  871. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  872. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  873. #else
  874. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  875. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  876. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  877. #endif
  878. }
  879. }
  880. }
  881. return 1;
  882. #ifndef TOLUA_RELEASE
  883. tolua_lerror:
  884. tolua_error(tolua_S,"#ferror in function 'GetRandomPoint'.",&tolua_err);
  885. return 0;
  886. #endif
  887. }
  888. #endif //#ifndef TOLUA_DISABLE
  889. /* method: GetRandomPointInCircle of class NavigationMesh */
  890. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetRandomPointInCircle00
  891. static int tolua_Navigation_NavigationMesh_GetRandomPointInCircle00(lua_State* tolua_S)
  892. {
  893. #ifndef TOLUA_RELEASE
  894. tolua_Error tolua_err;
  895. if (
  896. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  897. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  898. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  899. !tolua_isnoobj(tolua_S,4,&tolua_err)
  900. )
  901. goto tolua_lerror;
  902. else
  903. #endif
  904. {
  905. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  906. const Vector3* center = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  907. float radius = ((float) tolua_tonumber(tolua_S,3,0));
  908. #ifndef TOLUA_RELEASE
  909. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRandomPointInCircle'", NULL);
  910. #endif
  911. {
  912. Vector3 tolua_ret = (Vector3) self->GetRandomPointInCircle(*center,radius);
  913. {
  914. #ifdef __cplusplus
  915. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  916. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  917. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  918. #else
  919. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  920. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  921. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  922. #endif
  923. }
  924. }
  925. }
  926. return 1;
  927. #ifndef TOLUA_RELEASE
  928. tolua_lerror:
  929. tolua_error(tolua_S,"#ferror in function 'GetRandomPointInCircle'.",&tolua_err);
  930. return 0;
  931. #endif
  932. }
  933. #endif //#ifndef TOLUA_DISABLE
  934. /* method: GetRandomPointInCircle of class NavigationMesh */
  935. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetRandomPointInCircle01
  936. static int tolua_Navigation_NavigationMesh_GetRandomPointInCircle01(lua_State* tolua_S)
  937. {
  938. tolua_Error tolua_err;
  939. if (
  940. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  941. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  942. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  943. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Vector3",0,&tolua_err)) ||
  944. !tolua_isnoobj(tolua_S,5,&tolua_err)
  945. )
  946. goto tolua_lerror;
  947. else
  948. {
  949. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  950. const Vector3* center = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  951. float radius = ((float) tolua_tonumber(tolua_S,3,0));
  952. const Vector3* extents = ((const Vector3*) tolua_tousertype(tolua_S,4,0));
  953. #ifndef TOLUA_RELEASE
  954. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRandomPointInCircle'", NULL);
  955. #endif
  956. {
  957. Vector3 tolua_ret = (Vector3) self->GetRandomPointInCircle(*center,radius,*extents);
  958. {
  959. #ifdef __cplusplus
  960. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  961. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  962. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  963. #else
  964. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  965. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  966. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  967. #endif
  968. }
  969. }
  970. }
  971. return 1;
  972. tolua_lerror:
  973. return tolua_Navigation_NavigationMesh_GetRandomPointInCircle00(tolua_S);
  974. }
  975. #endif //#ifndef TOLUA_DISABLE
  976. /* method: GetDistanceToWall of class NavigationMesh */
  977. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetDistanceToWall00
  978. static int tolua_Navigation_NavigationMesh_GetDistanceToWall00(lua_State* tolua_S)
  979. {
  980. #ifndef TOLUA_RELEASE
  981. tolua_Error tolua_err;
  982. if (
  983. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  984. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  985. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  986. !tolua_isnoobj(tolua_S,4,&tolua_err)
  987. )
  988. goto tolua_lerror;
  989. else
  990. #endif
  991. {
  992. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  993. const Vector3* point = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  994. float radius = ((float) tolua_tonumber(tolua_S,3,0));
  995. #ifndef TOLUA_RELEASE
  996. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDistanceToWall'", NULL);
  997. #endif
  998. {
  999. float tolua_ret = (float) self->GetDistanceToWall(*point,radius);
  1000. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1001. }
  1002. }
  1003. return 1;
  1004. #ifndef TOLUA_RELEASE
  1005. tolua_lerror:
  1006. tolua_error(tolua_S,"#ferror in function 'GetDistanceToWall'.",&tolua_err);
  1007. return 0;
  1008. #endif
  1009. }
  1010. #endif //#ifndef TOLUA_DISABLE
  1011. /* method: GetDistanceToWall of class NavigationMesh */
  1012. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetDistanceToWall01
  1013. static int tolua_Navigation_NavigationMesh_GetDistanceToWall01(lua_State* tolua_S)
  1014. {
  1015. tolua_Error tolua_err;
  1016. if (
  1017. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  1018. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  1019. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1020. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Vector3",0,&tolua_err)) ||
  1021. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1022. )
  1023. goto tolua_lerror;
  1024. else
  1025. {
  1026. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1027. const Vector3* point = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  1028. float radius = ((float) tolua_tonumber(tolua_S,3,0));
  1029. const Vector3* extents = ((const Vector3*) tolua_tousertype(tolua_S,4,0));
  1030. #ifndef TOLUA_RELEASE
  1031. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDistanceToWall'", NULL);
  1032. #endif
  1033. {
  1034. float tolua_ret = (float) self->GetDistanceToWall(*point,radius,*extents);
  1035. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1036. }
  1037. }
  1038. return 1;
  1039. tolua_lerror:
  1040. return tolua_Navigation_NavigationMesh_GetDistanceToWall00(tolua_S);
  1041. }
  1042. #endif //#ifndef TOLUA_DISABLE
  1043. /* method: Raycast of class NavigationMesh */
  1044. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_Raycast00
  1045. static int tolua_Navigation_NavigationMesh_Raycast00(lua_State* tolua_S)
  1046. {
  1047. #ifndef TOLUA_RELEASE
  1048. tolua_Error tolua_err;
  1049. if (
  1050. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  1051. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  1052. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
  1053. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1054. )
  1055. goto tolua_lerror;
  1056. else
  1057. #endif
  1058. {
  1059. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1060. const Vector3* start = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  1061. const Vector3* end = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
  1062. #ifndef TOLUA_RELEASE
  1063. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Raycast'", NULL);
  1064. #endif
  1065. {
  1066. Vector3 tolua_ret = (Vector3) self->Raycast(*start,*end);
  1067. {
  1068. #ifdef __cplusplus
  1069. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  1070. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  1071. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1072. #else
  1073. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  1074. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  1075. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1076. #endif
  1077. }
  1078. }
  1079. }
  1080. return 1;
  1081. #ifndef TOLUA_RELEASE
  1082. tolua_lerror:
  1083. tolua_error(tolua_S,"#ferror in function 'Raycast'.",&tolua_err);
  1084. return 0;
  1085. #endif
  1086. }
  1087. #endif //#ifndef TOLUA_DISABLE
  1088. /* method: Raycast of class NavigationMesh */
  1089. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_Raycast01
  1090. static int tolua_Navigation_NavigationMesh_Raycast01(lua_State* tolua_S)
  1091. {
  1092. tolua_Error tolua_err;
  1093. if (
  1094. !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
  1095. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  1096. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
  1097. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Vector3",0,&tolua_err)) ||
  1098. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1099. )
  1100. goto tolua_lerror;
  1101. else
  1102. {
  1103. NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1104. const Vector3* start = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  1105. const Vector3* end = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
  1106. const Vector3* extents = ((const Vector3*) tolua_tousertype(tolua_S,4,0));
  1107. #ifndef TOLUA_RELEASE
  1108. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Raycast'", NULL);
  1109. #endif
  1110. {
  1111. Vector3 tolua_ret = (Vector3) self->Raycast(*start,*end,*extents);
  1112. {
  1113. #ifdef __cplusplus
  1114. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  1115. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  1116. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1117. #else
  1118. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  1119. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  1120. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1121. #endif
  1122. }
  1123. }
  1124. }
  1125. return 1;
  1126. tolua_lerror:
  1127. return tolua_Navigation_NavigationMesh_Raycast00(tolua_S);
  1128. }
  1129. #endif //#ifndef TOLUA_DISABLE
  1130. /* method: GetTileSize of class NavigationMesh */
  1131. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetTileSize00
  1132. static int tolua_Navigation_NavigationMesh_GetTileSize00(lua_State* tolua_S)
  1133. {
  1134. #ifndef TOLUA_RELEASE
  1135. tolua_Error tolua_err;
  1136. if (
  1137. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1138. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1139. )
  1140. goto tolua_lerror;
  1141. else
  1142. #endif
  1143. {
  1144. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1145. #ifndef TOLUA_RELEASE
  1146. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTileSize'", NULL);
  1147. #endif
  1148. {
  1149. int tolua_ret = (int) self->GetTileSize();
  1150. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1151. }
  1152. }
  1153. return 1;
  1154. #ifndef TOLUA_RELEASE
  1155. tolua_lerror:
  1156. tolua_error(tolua_S,"#ferror in function 'GetTileSize'.",&tolua_err);
  1157. return 0;
  1158. #endif
  1159. }
  1160. #endif //#ifndef TOLUA_DISABLE
  1161. /* method: GetCellSize of class NavigationMesh */
  1162. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetCellSize00
  1163. static int tolua_Navigation_NavigationMesh_GetCellSize00(lua_State* tolua_S)
  1164. {
  1165. #ifndef TOLUA_RELEASE
  1166. tolua_Error tolua_err;
  1167. if (
  1168. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1169. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1170. )
  1171. goto tolua_lerror;
  1172. else
  1173. #endif
  1174. {
  1175. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1176. #ifndef TOLUA_RELEASE
  1177. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCellSize'", NULL);
  1178. #endif
  1179. {
  1180. float tolua_ret = (float) self->GetCellSize();
  1181. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1182. }
  1183. }
  1184. return 1;
  1185. #ifndef TOLUA_RELEASE
  1186. tolua_lerror:
  1187. tolua_error(tolua_S,"#ferror in function 'GetCellSize'.",&tolua_err);
  1188. return 0;
  1189. #endif
  1190. }
  1191. #endif //#ifndef TOLUA_DISABLE
  1192. /* method: GetCellHeight of class NavigationMesh */
  1193. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetCellHeight00
  1194. static int tolua_Navigation_NavigationMesh_GetCellHeight00(lua_State* tolua_S)
  1195. {
  1196. #ifndef TOLUA_RELEASE
  1197. tolua_Error tolua_err;
  1198. if (
  1199. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1200. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1201. )
  1202. goto tolua_lerror;
  1203. else
  1204. #endif
  1205. {
  1206. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1207. #ifndef TOLUA_RELEASE
  1208. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCellHeight'", NULL);
  1209. #endif
  1210. {
  1211. float tolua_ret = (float) self->GetCellHeight();
  1212. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1213. }
  1214. }
  1215. return 1;
  1216. #ifndef TOLUA_RELEASE
  1217. tolua_lerror:
  1218. tolua_error(tolua_S,"#ferror in function 'GetCellHeight'.",&tolua_err);
  1219. return 0;
  1220. #endif
  1221. }
  1222. #endif //#ifndef TOLUA_DISABLE
  1223. /* method: GetAgentHeight of class NavigationMesh */
  1224. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetAgentHeight00
  1225. static int tolua_Navigation_NavigationMesh_GetAgentHeight00(lua_State* tolua_S)
  1226. {
  1227. #ifndef TOLUA_RELEASE
  1228. tolua_Error tolua_err;
  1229. if (
  1230. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1231. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1232. )
  1233. goto tolua_lerror;
  1234. else
  1235. #endif
  1236. {
  1237. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1238. #ifndef TOLUA_RELEASE
  1239. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAgentHeight'", NULL);
  1240. #endif
  1241. {
  1242. float tolua_ret = (float) self->GetAgentHeight();
  1243. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1244. }
  1245. }
  1246. return 1;
  1247. #ifndef TOLUA_RELEASE
  1248. tolua_lerror:
  1249. tolua_error(tolua_S,"#ferror in function 'GetAgentHeight'.",&tolua_err);
  1250. return 0;
  1251. #endif
  1252. }
  1253. #endif //#ifndef TOLUA_DISABLE
  1254. /* method: GetAgentRadius of class NavigationMesh */
  1255. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetAgentRadius00
  1256. static int tolua_Navigation_NavigationMesh_GetAgentRadius00(lua_State* tolua_S)
  1257. {
  1258. #ifndef TOLUA_RELEASE
  1259. tolua_Error tolua_err;
  1260. if (
  1261. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1262. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1263. )
  1264. goto tolua_lerror;
  1265. else
  1266. #endif
  1267. {
  1268. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1269. #ifndef TOLUA_RELEASE
  1270. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAgentRadius'", NULL);
  1271. #endif
  1272. {
  1273. float tolua_ret = (float) self->GetAgentRadius();
  1274. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1275. }
  1276. }
  1277. return 1;
  1278. #ifndef TOLUA_RELEASE
  1279. tolua_lerror:
  1280. tolua_error(tolua_S,"#ferror in function 'GetAgentRadius'.",&tolua_err);
  1281. return 0;
  1282. #endif
  1283. }
  1284. #endif //#ifndef TOLUA_DISABLE
  1285. /* method: GetAgentMaxClimb of class NavigationMesh */
  1286. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetAgentMaxClimb00
  1287. static int tolua_Navigation_NavigationMesh_GetAgentMaxClimb00(lua_State* tolua_S)
  1288. {
  1289. #ifndef TOLUA_RELEASE
  1290. tolua_Error tolua_err;
  1291. if (
  1292. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1293. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1294. )
  1295. goto tolua_lerror;
  1296. else
  1297. #endif
  1298. {
  1299. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1300. #ifndef TOLUA_RELEASE
  1301. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAgentMaxClimb'", NULL);
  1302. #endif
  1303. {
  1304. float tolua_ret = (float) self->GetAgentMaxClimb();
  1305. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1306. }
  1307. }
  1308. return 1;
  1309. #ifndef TOLUA_RELEASE
  1310. tolua_lerror:
  1311. tolua_error(tolua_S,"#ferror in function 'GetAgentMaxClimb'.",&tolua_err);
  1312. return 0;
  1313. #endif
  1314. }
  1315. #endif //#ifndef TOLUA_DISABLE
  1316. /* method: GetAgentMaxSlope of class NavigationMesh */
  1317. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetAgentMaxSlope00
  1318. static int tolua_Navigation_NavigationMesh_GetAgentMaxSlope00(lua_State* tolua_S)
  1319. {
  1320. #ifndef TOLUA_RELEASE
  1321. tolua_Error tolua_err;
  1322. if (
  1323. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1324. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1325. )
  1326. goto tolua_lerror;
  1327. else
  1328. #endif
  1329. {
  1330. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1331. #ifndef TOLUA_RELEASE
  1332. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAgentMaxSlope'", NULL);
  1333. #endif
  1334. {
  1335. float tolua_ret = (float) self->GetAgentMaxSlope();
  1336. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1337. }
  1338. }
  1339. return 1;
  1340. #ifndef TOLUA_RELEASE
  1341. tolua_lerror:
  1342. tolua_error(tolua_S,"#ferror in function 'GetAgentMaxSlope'.",&tolua_err);
  1343. return 0;
  1344. #endif
  1345. }
  1346. #endif //#ifndef TOLUA_DISABLE
  1347. /* method: GetRegionMinSize of class NavigationMesh */
  1348. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetRegionMinSize00
  1349. static int tolua_Navigation_NavigationMesh_GetRegionMinSize00(lua_State* tolua_S)
  1350. {
  1351. #ifndef TOLUA_RELEASE
  1352. tolua_Error tolua_err;
  1353. if (
  1354. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1355. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1356. )
  1357. goto tolua_lerror;
  1358. else
  1359. #endif
  1360. {
  1361. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1362. #ifndef TOLUA_RELEASE
  1363. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRegionMinSize'", NULL);
  1364. #endif
  1365. {
  1366. float tolua_ret = (float) self->GetRegionMinSize();
  1367. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1368. }
  1369. }
  1370. return 1;
  1371. #ifndef TOLUA_RELEASE
  1372. tolua_lerror:
  1373. tolua_error(tolua_S,"#ferror in function 'GetRegionMinSize'.",&tolua_err);
  1374. return 0;
  1375. #endif
  1376. }
  1377. #endif //#ifndef TOLUA_DISABLE
  1378. /* method: GetRegionMergeSize of class NavigationMesh */
  1379. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetRegionMergeSize00
  1380. static int tolua_Navigation_NavigationMesh_GetRegionMergeSize00(lua_State* tolua_S)
  1381. {
  1382. #ifndef TOLUA_RELEASE
  1383. tolua_Error tolua_err;
  1384. if (
  1385. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1386. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1387. )
  1388. goto tolua_lerror;
  1389. else
  1390. #endif
  1391. {
  1392. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1393. #ifndef TOLUA_RELEASE
  1394. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRegionMergeSize'", NULL);
  1395. #endif
  1396. {
  1397. float tolua_ret = (float) self->GetRegionMergeSize();
  1398. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1399. }
  1400. }
  1401. return 1;
  1402. #ifndef TOLUA_RELEASE
  1403. tolua_lerror:
  1404. tolua_error(tolua_S,"#ferror in function 'GetRegionMergeSize'.",&tolua_err);
  1405. return 0;
  1406. #endif
  1407. }
  1408. #endif //#ifndef TOLUA_DISABLE
  1409. /* method: GetEdgeMaxLength of class NavigationMesh */
  1410. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetEdgeMaxLength00
  1411. static int tolua_Navigation_NavigationMesh_GetEdgeMaxLength00(lua_State* tolua_S)
  1412. {
  1413. #ifndef TOLUA_RELEASE
  1414. tolua_Error tolua_err;
  1415. if (
  1416. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1417. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1418. )
  1419. goto tolua_lerror;
  1420. else
  1421. #endif
  1422. {
  1423. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1424. #ifndef TOLUA_RELEASE
  1425. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEdgeMaxLength'", NULL);
  1426. #endif
  1427. {
  1428. float tolua_ret = (float) self->GetEdgeMaxLength();
  1429. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1430. }
  1431. }
  1432. return 1;
  1433. #ifndef TOLUA_RELEASE
  1434. tolua_lerror:
  1435. tolua_error(tolua_S,"#ferror in function 'GetEdgeMaxLength'.",&tolua_err);
  1436. return 0;
  1437. #endif
  1438. }
  1439. #endif //#ifndef TOLUA_DISABLE
  1440. /* method: GetEdgeMaxError of class NavigationMesh */
  1441. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetEdgeMaxError00
  1442. static int tolua_Navigation_NavigationMesh_GetEdgeMaxError00(lua_State* tolua_S)
  1443. {
  1444. #ifndef TOLUA_RELEASE
  1445. tolua_Error tolua_err;
  1446. if (
  1447. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1448. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1449. )
  1450. goto tolua_lerror;
  1451. else
  1452. #endif
  1453. {
  1454. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1455. #ifndef TOLUA_RELEASE
  1456. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEdgeMaxError'", NULL);
  1457. #endif
  1458. {
  1459. float tolua_ret = (float) self->GetEdgeMaxError();
  1460. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1461. }
  1462. }
  1463. return 1;
  1464. #ifndef TOLUA_RELEASE
  1465. tolua_lerror:
  1466. tolua_error(tolua_S,"#ferror in function 'GetEdgeMaxError'.",&tolua_err);
  1467. return 0;
  1468. #endif
  1469. }
  1470. #endif //#ifndef TOLUA_DISABLE
  1471. /* method: GetDetailSampleDistance of class NavigationMesh */
  1472. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetDetailSampleDistance00
  1473. static int tolua_Navigation_NavigationMesh_GetDetailSampleDistance00(lua_State* tolua_S)
  1474. {
  1475. #ifndef TOLUA_RELEASE
  1476. tolua_Error tolua_err;
  1477. if (
  1478. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1479. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1480. )
  1481. goto tolua_lerror;
  1482. else
  1483. #endif
  1484. {
  1485. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1486. #ifndef TOLUA_RELEASE
  1487. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDetailSampleDistance'", NULL);
  1488. #endif
  1489. {
  1490. float tolua_ret = (float) self->GetDetailSampleDistance();
  1491. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1492. }
  1493. }
  1494. return 1;
  1495. #ifndef TOLUA_RELEASE
  1496. tolua_lerror:
  1497. tolua_error(tolua_S,"#ferror in function 'GetDetailSampleDistance'.",&tolua_err);
  1498. return 0;
  1499. #endif
  1500. }
  1501. #endif //#ifndef TOLUA_DISABLE
  1502. /* method: GetDetailSampleMaxError of class NavigationMesh */
  1503. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetDetailSampleMaxError00
  1504. static int tolua_Navigation_NavigationMesh_GetDetailSampleMaxError00(lua_State* tolua_S)
  1505. {
  1506. #ifndef TOLUA_RELEASE
  1507. tolua_Error tolua_err;
  1508. if (
  1509. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1510. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1511. )
  1512. goto tolua_lerror;
  1513. else
  1514. #endif
  1515. {
  1516. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1517. #ifndef TOLUA_RELEASE
  1518. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDetailSampleMaxError'", NULL);
  1519. #endif
  1520. {
  1521. float tolua_ret = (float) self->GetDetailSampleMaxError();
  1522. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1523. }
  1524. }
  1525. return 1;
  1526. #ifndef TOLUA_RELEASE
  1527. tolua_lerror:
  1528. tolua_error(tolua_S,"#ferror in function 'GetDetailSampleMaxError'.",&tolua_err);
  1529. return 0;
  1530. #endif
  1531. }
  1532. #endif //#ifndef TOLUA_DISABLE
  1533. /* method: GetPadding of class NavigationMesh */
  1534. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetPadding00
  1535. static int tolua_Navigation_NavigationMesh_GetPadding00(lua_State* tolua_S)
  1536. {
  1537. #ifndef TOLUA_RELEASE
  1538. tolua_Error tolua_err;
  1539. if (
  1540. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1541. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1542. )
  1543. goto tolua_lerror;
  1544. else
  1545. #endif
  1546. {
  1547. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1548. #ifndef TOLUA_RELEASE
  1549. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPadding'", NULL);
  1550. #endif
  1551. {
  1552. const Vector3& tolua_ret = (const Vector3&) self->GetPadding();
  1553. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  1554. }
  1555. }
  1556. return 1;
  1557. #ifndef TOLUA_RELEASE
  1558. tolua_lerror:
  1559. tolua_error(tolua_S,"#ferror in function 'GetPadding'.",&tolua_err);
  1560. return 0;
  1561. #endif
  1562. }
  1563. #endif //#ifndef TOLUA_DISABLE
  1564. /* method: IsInitialized of class NavigationMesh */
  1565. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_IsInitialized00
  1566. static int tolua_Navigation_NavigationMesh_IsInitialized00(lua_State* tolua_S)
  1567. {
  1568. #ifndef TOLUA_RELEASE
  1569. tolua_Error tolua_err;
  1570. if (
  1571. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1572. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1573. )
  1574. goto tolua_lerror;
  1575. else
  1576. #endif
  1577. {
  1578. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1579. #ifndef TOLUA_RELEASE
  1580. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInitialized'", NULL);
  1581. #endif
  1582. {
  1583. bool tolua_ret = (bool) self->IsInitialized();
  1584. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1585. }
  1586. }
  1587. return 1;
  1588. #ifndef TOLUA_RELEASE
  1589. tolua_lerror:
  1590. tolua_error(tolua_S,"#ferror in function 'IsInitialized'.",&tolua_err);
  1591. return 0;
  1592. #endif
  1593. }
  1594. #endif //#ifndef TOLUA_DISABLE
  1595. /* method: GetBoundingBox of class NavigationMesh */
  1596. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetBoundingBox00
  1597. static int tolua_Navigation_NavigationMesh_GetBoundingBox00(lua_State* tolua_S)
  1598. {
  1599. #ifndef TOLUA_RELEASE
  1600. tolua_Error tolua_err;
  1601. if (
  1602. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1603. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1604. )
  1605. goto tolua_lerror;
  1606. else
  1607. #endif
  1608. {
  1609. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1610. #ifndef TOLUA_RELEASE
  1611. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBoundingBox'", NULL);
  1612. #endif
  1613. {
  1614. const BoundingBox& tolua_ret = (const BoundingBox&) self->GetBoundingBox();
  1615. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BoundingBox");
  1616. }
  1617. }
  1618. return 1;
  1619. #ifndef TOLUA_RELEASE
  1620. tolua_lerror:
  1621. tolua_error(tolua_S,"#ferror in function 'GetBoundingBox'.",&tolua_err);
  1622. return 0;
  1623. #endif
  1624. }
  1625. #endif //#ifndef TOLUA_DISABLE
  1626. /* method: GetWorldBoundingBox of class NavigationMesh */
  1627. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetWorldBoundingBox00
  1628. static int tolua_Navigation_NavigationMesh_GetWorldBoundingBox00(lua_State* tolua_S)
  1629. {
  1630. #ifndef TOLUA_RELEASE
  1631. tolua_Error tolua_err;
  1632. if (
  1633. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1634. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1635. )
  1636. goto tolua_lerror;
  1637. else
  1638. #endif
  1639. {
  1640. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1641. #ifndef TOLUA_RELEASE
  1642. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWorldBoundingBox'", NULL);
  1643. #endif
  1644. {
  1645. BoundingBox tolua_ret = (BoundingBox) self->GetWorldBoundingBox();
  1646. {
  1647. #ifdef __cplusplus
  1648. void* tolua_obj = Mtolua_new((BoundingBox)(tolua_ret));
  1649. tolua_pushusertype(tolua_S,tolua_obj,"BoundingBox");
  1650. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1651. #else
  1652. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(BoundingBox));
  1653. tolua_pushusertype(tolua_S,tolua_obj,"BoundingBox");
  1654. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1655. #endif
  1656. }
  1657. }
  1658. }
  1659. return 1;
  1660. #ifndef TOLUA_RELEASE
  1661. tolua_lerror:
  1662. tolua_error(tolua_S,"#ferror in function 'GetWorldBoundingBox'.",&tolua_err);
  1663. return 0;
  1664. #endif
  1665. }
  1666. #endif //#ifndef TOLUA_DISABLE
  1667. /* method: GetNumTiles of class NavigationMesh */
  1668. #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetNumTiles00
  1669. static int tolua_Navigation_NavigationMesh_GetNumTiles00(lua_State* tolua_S)
  1670. {
  1671. #ifndef TOLUA_RELEASE
  1672. tolua_Error tolua_err;
  1673. if (
  1674. !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
  1675. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1676. )
  1677. goto tolua_lerror;
  1678. else
  1679. #endif
  1680. {
  1681. const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
  1682. #ifndef TOLUA_RELEASE
  1683. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumTiles'", NULL);
  1684. #endif
  1685. {
  1686. IntVector2 tolua_ret = (IntVector2) self->GetNumTiles();
  1687. {
  1688. #ifdef __cplusplus
  1689. void* tolua_obj = Mtolua_new((IntVector2)(tolua_ret));
  1690. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  1691. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1692. #else
  1693. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntVector2));
  1694. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  1695. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1696. #endif
  1697. }
  1698. }
  1699. }
  1700. return 1;
  1701. #ifndef TOLUA_RELEASE
  1702. tolua_lerror:
  1703. tolua_error(tolua_S,"#ferror in function 'GetNumTiles'.",&tolua_err);
  1704. return 0;
  1705. #endif
  1706. }
  1707. #endif //#ifndef TOLUA_DISABLE
  1708. /* method: SetEndPoint of class OffMeshConnection */
  1709. #ifndef TOLUA_DISABLE_tolua_Navigation_OffMeshConnection_SetEndPoint00
  1710. static int tolua_Navigation_OffMeshConnection_SetEndPoint00(lua_State* tolua_S)
  1711. {
  1712. #ifndef TOLUA_RELEASE
  1713. tolua_Error tolua_err;
  1714. if (
  1715. !tolua_isusertype(tolua_S,1,"OffMeshConnection",0,&tolua_err) ||
  1716. !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
  1717. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1718. )
  1719. goto tolua_lerror;
  1720. else
  1721. #endif
  1722. {
  1723. OffMeshConnection* self = (OffMeshConnection*) tolua_tousertype(tolua_S,1,0);
  1724. Node* node = ((Node*) tolua_tousertype(tolua_S,2,0));
  1725. #ifndef TOLUA_RELEASE
  1726. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEndPoint'", NULL);
  1727. #endif
  1728. {
  1729. self->SetEndPoint(node);
  1730. }
  1731. }
  1732. return 0;
  1733. #ifndef TOLUA_RELEASE
  1734. tolua_lerror:
  1735. tolua_error(tolua_S,"#ferror in function 'SetEndPoint'.",&tolua_err);
  1736. return 0;
  1737. #endif
  1738. }
  1739. #endif //#ifndef TOLUA_DISABLE
  1740. /* method: SetRadius of class OffMeshConnection */
  1741. #ifndef TOLUA_DISABLE_tolua_Navigation_OffMeshConnection_SetRadius00
  1742. static int tolua_Navigation_OffMeshConnection_SetRadius00(lua_State* tolua_S)
  1743. {
  1744. #ifndef TOLUA_RELEASE
  1745. tolua_Error tolua_err;
  1746. if (
  1747. !tolua_isusertype(tolua_S,1,"OffMeshConnection",0,&tolua_err) ||
  1748. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1749. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1750. )
  1751. goto tolua_lerror;
  1752. else
  1753. #endif
  1754. {
  1755. OffMeshConnection* self = (OffMeshConnection*) tolua_tousertype(tolua_S,1,0);
  1756. float radius = ((float) tolua_tonumber(tolua_S,2,0));
  1757. #ifndef TOLUA_RELEASE
  1758. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRadius'", NULL);
  1759. #endif
  1760. {
  1761. self->SetRadius(radius);
  1762. }
  1763. }
  1764. return 0;
  1765. #ifndef TOLUA_RELEASE
  1766. tolua_lerror:
  1767. tolua_error(tolua_S,"#ferror in function 'SetRadius'.",&tolua_err);
  1768. return 0;
  1769. #endif
  1770. }
  1771. #endif //#ifndef TOLUA_DISABLE
  1772. /* method: SetBidirectional of class OffMeshConnection */
  1773. #ifndef TOLUA_DISABLE_tolua_Navigation_OffMeshConnection_SetBidirectional00
  1774. static int tolua_Navigation_OffMeshConnection_SetBidirectional00(lua_State* tolua_S)
  1775. {
  1776. #ifndef TOLUA_RELEASE
  1777. tolua_Error tolua_err;
  1778. if (
  1779. !tolua_isusertype(tolua_S,1,"OffMeshConnection",0,&tolua_err) ||
  1780. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  1781. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1782. )
  1783. goto tolua_lerror;
  1784. else
  1785. #endif
  1786. {
  1787. OffMeshConnection* self = (OffMeshConnection*) tolua_tousertype(tolua_S,1,0);
  1788. bool enabled = ((bool) tolua_toboolean(tolua_S,2,0));
  1789. #ifndef TOLUA_RELEASE
  1790. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBidirectional'", NULL);
  1791. #endif
  1792. {
  1793. self->SetBidirectional(enabled);
  1794. }
  1795. }
  1796. return 0;
  1797. #ifndef TOLUA_RELEASE
  1798. tolua_lerror:
  1799. tolua_error(tolua_S,"#ferror in function 'SetBidirectional'.",&tolua_err);
  1800. return 0;
  1801. #endif
  1802. }
  1803. #endif //#ifndef TOLUA_DISABLE
  1804. /* method: GetEndPoint of class OffMeshConnection */
  1805. #ifndef TOLUA_DISABLE_tolua_Navigation_OffMeshConnection_GetEndPoint00
  1806. static int tolua_Navigation_OffMeshConnection_GetEndPoint00(lua_State* tolua_S)
  1807. {
  1808. #ifndef TOLUA_RELEASE
  1809. tolua_Error tolua_err;
  1810. if (
  1811. !tolua_isusertype(tolua_S,1,"const OffMeshConnection",0,&tolua_err) ||
  1812. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1813. )
  1814. goto tolua_lerror;
  1815. else
  1816. #endif
  1817. {
  1818. const OffMeshConnection* self = (const OffMeshConnection*) tolua_tousertype(tolua_S,1,0);
  1819. #ifndef TOLUA_RELEASE
  1820. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEndPoint'", NULL);
  1821. #endif
  1822. {
  1823. Node* tolua_ret = (Node*) self->GetEndPoint();
  1824. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Node");
  1825. }
  1826. }
  1827. return 1;
  1828. #ifndef TOLUA_RELEASE
  1829. tolua_lerror:
  1830. tolua_error(tolua_S,"#ferror in function 'GetEndPoint'.",&tolua_err);
  1831. return 0;
  1832. #endif
  1833. }
  1834. #endif //#ifndef TOLUA_DISABLE
  1835. /* method: GetRadius of class OffMeshConnection */
  1836. #ifndef TOLUA_DISABLE_tolua_Navigation_OffMeshConnection_GetRadius00
  1837. static int tolua_Navigation_OffMeshConnection_GetRadius00(lua_State* tolua_S)
  1838. {
  1839. #ifndef TOLUA_RELEASE
  1840. tolua_Error tolua_err;
  1841. if (
  1842. !tolua_isusertype(tolua_S,1,"const OffMeshConnection",0,&tolua_err) ||
  1843. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1844. )
  1845. goto tolua_lerror;
  1846. else
  1847. #endif
  1848. {
  1849. const OffMeshConnection* self = (const OffMeshConnection*) tolua_tousertype(tolua_S,1,0);
  1850. #ifndef TOLUA_RELEASE
  1851. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRadius'", NULL);
  1852. #endif
  1853. {
  1854. float tolua_ret = (float) self->GetRadius();
  1855. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1856. }
  1857. }
  1858. return 1;
  1859. #ifndef TOLUA_RELEASE
  1860. tolua_lerror:
  1861. tolua_error(tolua_S,"#ferror in function 'GetRadius'.",&tolua_err);
  1862. return 0;
  1863. #endif
  1864. }
  1865. #endif //#ifndef TOLUA_DISABLE
  1866. /* method: IsBidirectional of class OffMeshConnection */
  1867. #ifndef TOLUA_DISABLE_tolua_Navigation_OffMeshConnection_IsBidirectional00
  1868. static int tolua_Navigation_OffMeshConnection_IsBidirectional00(lua_State* tolua_S)
  1869. {
  1870. #ifndef TOLUA_RELEASE
  1871. tolua_Error tolua_err;
  1872. if (
  1873. !tolua_isusertype(tolua_S,1,"const OffMeshConnection",0,&tolua_err) ||
  1874. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1875. )
  1876. goto tolua_lerror;
  1877. else
  1878. #endif
  1879. {
  1880. const OffMeshConnection* self = (const OffMeshConnection*) tolua_tousertype(tolua_S,1,0);
  1881. #ifndef TOLUA_RELEASE
  1882. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsBidirectional'", NULL);
  1883. #endif
  1884. {
  1885. bool tolua_ret = (bool) self->IsBidirectional();
  1886. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1887. }
  1888. }
  1889. return 1;
  1890. #ifndef TOLUA_RELEASE
  1891. tolua_lerror:
  1892. tolua_error(tolua_S,"#ferror in function 'IsBidirectional'.",&tolua_err);
  1893. return 0;
  1894. #endif
  1895. }
  1896. #endif //#ifndef TOLUA_DISABLE
  1897. /* Open function */
  1898. TOLUA_API int tolua_Navigation_open (lua_State* tolua_S)
  1899. {
  1900. tolua_open(tolua_S);
  1901. tolua_reg_types(tolua_S);
  1902. tolua_module(tolua_S,NULL,0);
  1903. tolua_beginmodule(tolua_S,NULL);
  1904. tolua_cclass(tolua_S,"Navigable","Navigable","Component",NULL);
  1905. tolua_beginmodule(tolua_S,"Navigable");
  1906. tolua_function(tolua_S,"SetRecursive",tolua_Navigation_Navigable_SetRecursive00);
  1907. tolua_function(tolua_S,"IsRecursive",tolua_Navigation_Navigable_IsRecursive00);
  1908. tolua_endmodule(tolua_S);
  1909. tolua_cclass(tolua_S,"NavigationGeometryInfo","NavigationGeometryInfo","",NULL);
  1910. tolua_beginmodule(tolua_S,"NavigationGeometryInfo");
  1911. tolua_variable(tolua_S,"component_",tolua_get_NavigationGeometryInfo_component__ptr,tolua_set_NavigationGeometryInfo_component__ptr);
  1912. tolua_variable(tolua_S,"lodLevel_",tolua_get_NavigationGeometryInfo_lodLevel_,tolua_set_NavigationGeometryInfo_lodLevel_);
  1913. tolua_variable(tolua_S,"transform_",tolua_get_NavigationGeometryInfo_transform_,tolua_set_NavigationGeometryInfo_transform_);
  1914. tolua_variable(tolua_S,"boundingBox_",tolua_get_NavigationGeometryInfo_boundingBox_,tolua_set_NavigationGeometryInfo_boundingBox_);
  1915. tolua_endmodule(tolua_S);
  1916. tolua_cclass(tolua_S,"NavigationMesh","NavigationMesh","Component",NULL);
  1917. tolua_beginmodule(tolua_S,"NavigationMesh");
  1918. tolua_function(tolua_S,"SetTileSize",tolua_Navigation_NavigationMesh_SetTileSize00);
  1919. tolua_function(tolua_S,"SetCellSize",tolua_Navigation_NavigationMesh_SetCellSize00);
  1920. tolua_function(tolua_S,"SetCellHeight",tolua_Navigation_NavigationMesh_SetCellHeight00);
  1921. tolua_function(tolua_S,"SetAgentHeight",tolua_Navigation_NavigationMesh_SetAgentHeight00);
  1922. tolua_function(tolua_S,"SetAgentRadius",tolua_Navigation_NavigationMesh_SetAgentRadius00);
  1923. tolua_function(tolua_S,"SetAgentMaxClimb",tolua_Navigation_NavigationMesh_SetAgentMaxClimb00);
  1924. tolua_function(tolua_S,"SetAgentMaxSlope",tolua_Navigation_NavigationMesh_SetAgentMaxSlope00);
  1925. tolua_function(tolua_S,"SetRegionMinSize",tolua_Navigation_NavigationMesh_SetRegionMinSize00);
  1926. tolua_function(tolua_S,"SetRegionMergeSize",tolua_Navigation_NavigationMesh_SetRegionMergeSize00);
  1927. tolua_function(tolua_S,"SetEdgeMaxLength",tolua_Navigation_NavigationMesh_SetEdgeMaxLength00);
  1928. tolua_function(tolua_S,"SetEdgeMaxError",tolua_Navigation_NavigationMesh_SetEdgeMaxError00);
  1929. tolua_function(tolua_S,"SetDetailSampleDistance",tolua_Navigation_NavigationMesh_SetDetailSampleDistance00);
  1930. tolua_function(tolua_S,"SetDetailSampleMaxError",tolua_Navigation_NavigationMesh_SetDetailSampleMaxError00);
  1931. tolua_function(tolua_S,"SetPadding",tolua_Navigation_NavigationMesh_SetPadding00);
  1932. tolua_function(tolua_S,"Build",tolua_Navigation_NavigationMesh_Build00);
  1933. tolua_function(tolua_S,"Build",tolua_Navigation_NavigationMesh_Build01);
  1934. tolua_function(tolua_S,"FindPath",tolua_Navigation_NavigationMesh_FindPath00);
  1935. tolua_function(tolua_S,"FindPath",tolua_Navigation_NavigationMesh_FindPath01);
  1936. tolua_function(tolua_S,"GetRandomPoint",tolua_Navigation_NavigationMesh_GetRandomPoint00);
  1937. tolua_function(tolua_S,"GetRandomPointInCircle",tolua_Navigation_NavigationMesh_GetRandomPointInCircle00);
  1938. tolua_function(tolua_S,"GetRandomPointInCircle",tolua_Navigation_NavigationMesh_GetRandomPointInCircle01);
  1939. tolua_function(tolua_S,"GetDistanceToWall",tolua_Navigation_NavigationMesh_GetDistanceToWall00);
  1940. tolua_function(tolua_S,"GetDistanceToWall",tolua_Navigation_NavigationMesh_GetDistanceToWall01);
  1941. tolua_function(tolua_S,"Raycast",tolua_Navigation_NavigationMesh_Raycast00);
  1942. tolua_function(tolua_S,"Raycast",tolua_Navigation_NavigationMesh_Raycast01);
  1943. tolua_function(tolua_S,"GetTileSize",tolua_Navigation_NavigationMesh_GetTileSize00);
  1944. tolua_function(tolua_S,"GetCellSize",tolua_Navigation_NavigationMesh_GetCellSize00);
  1945. tolua_function(tolua_S,"GetCellHeight",tolua_Navigation_NavigationMesh_GetCellHeight00);
  1946. tolua_function(tolua_S,"GetAgentHeight",tolua_Navigation_NavigationMesh_GetAgentHeight00);
  1947. tolua_function(tolua_S,"GetAgentRadius",tolua_Navigation_NavigationMesh_GetAgentRadius00);
  1948. tolua_function(tolua_S,"GetAgentMaxClimb",tolua_Navigation_NavigationMesh_GetAgentMaxClimb00);
  1949. tolua_function(tolua_S,"GetAgentMaxSlope",tolua_Navigation_NavigationMesh_GetAgentMaxSlope00);
  1950. tolua_function(tolua_S,"GetRegionMinSize",tolua_Navigation_NavigationMesh_GetRegionMinSize00);
  1951. tolua_function(tolua_S,"GetRegionMergeSize",tolua_Navigation_NavigationMesh_GetRegionMergeSize00);
  1952. tolua_function(tolua_S,"GetEdgeMaxLength",tolua_Navigation_NavigationMesh_GetEdgeMaxLength00);
  1953. tolua_function(tolua_S,"GetEdgeMaxError",tolua_Navigation_NavigationMesh_GetEdgeMaxError00);
  1954. tolua_function(tolua_S,"GetDetailSampleDistance",tolua_Navigation_NavigationMesh_GetDetailSampleDistance00);
  1955. tolua_function(tolua_S,"GetDetailSampleMaxError",tolua_Navigation_NavigationMesh_GetDetailSampleMaxError00);
  1956. tolua_function(tolua_S,"GetPadding",tolua_Navigation_NavigationMesh_GetPadding00);
  1957. tolua_function(tolua_S,"IsInitialized",tolua_Navigation_NavigationMesh_IsInitialized00);
  1958. tolua_function(tolua_S,"GetBoundingBox",tolua_Navigation_NavigationMesh_GetBoundingBox00);
  1959. tolua_function(tolua_S,"GetWorldBoundingBox",tolua_Navigation_NavigationMesh_GetWorldBoundingBox00);
  1960. tolua_function(tolua_S,"GetNumTiles",tolua_Navigation_NavigationMesh_GetNumTiles00);
  1961. tolua_endmodule(tolua_S);
  1962. tolua_cclass(tolua_S,"OffMeshConnection","OffMeshConnection","Component",NULL);
  1963. tolua_beginmodule(tolua_S,"OffMeshConnection");
  1964. tolua_function(tolua_S,"SetEndPoint",tolua_Navigation_OffMeshConnection_SetEndPoint00);
  1965. tolua_function(tolua_S,"SetRadius",tolua_Navigation_OffMeshConnection_SetRadius00);
  1966. tolua_function(tolua_S,"SetBidirectional",tolua_Navigation_OffMeshConnection_SetBidirectional00);
  1967. tolua_function(tolua_S,"GetEndPoint",tolua_Navigation_OffMeshConnection_GetEndPoint00);
  1968. tolua_function(tolua_S,"GetRadius",tolua_Navigation_OffMeshConnection_GetRadius00);
  1969. tolua_function(tolua_S,"IsBidirectional",tolua_Navigation_OffMeshConnection_IsBidirectional00);
  1970. tolua_endmodule(tolua_S);
  1971. tolua_endmodule(tolua_S);
  1972. return 1;
  1973. }
  1974. #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
  1975. TOLUA_API int luaopen_Navigation (lua_State* tolua_S) {
  1976. return tolua_Navigation_open(tolua_S);
  1977. };
  1978. #endif