NavigationLuaAPI.cpp 67 KB

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