| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028 |
- /*
- ** Lua binding: Navigation
- ** Generated automatically by tolua++-1.0.92 on 06/30/13 11:31:51.
- */
- //
- // Copyright (c) 2008-2013 the Urho3D project.
- //
- // Permission is hereby granted, free of charge, to any person obtaining a copy
- // of this software and associated documentation files (the "Software"), to deal
- // in the Software without restriction, including without limitation the rights
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- // copies of the Software, and to permit persons to whom the Software is
- // furnished to do so, subject to the following conditions:
- //
- // The above copyright notice and this permission notice shall be included in
- // all copies or substantial portions of the Software.
- //
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- // THE SOFTWARE.
- //
- #include "Precompiled.h"
- #include "tolua++.h"
- /* Exported function */
- TOLUA_API int tolua_Navigation_open (lua_State* tolua_S);
- #define TOLUA_RELEASE
- #include "NavigationLuaAPI.h"
- #include "Navigable.h"
- #include "NavigationMesh.h"
- #include "OffMeshConnection.h"
- using namespace Urho3D;
- #pragma warning(disable:4800)
- /* function to release collected object via destructor */
- #ifdef __cplusplus
- static int tolua_collect_IntVector2 (lua_State* tolua_S)
- {
- IntVector2* self = (IntVector2*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_BoundingBox (lua_State* tolua_S)
- {
- BoundingBox* self = (BoundingBox*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_Vector3 (lua_State* tolua_S)
- {
- Vector3* self = (Vector3*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- #endif
- /* function to register type */
- static void tolua_reg_types (lua_State* tolua_S)
- {
- tolua_usertype(tolua_S,"Matrix3x4");
- tolua_usertype(tolua_S,"BoundingBox");
- tolua_usertype(tolua_S,"OffMeshConnection");
- tolua_usertype(tolua_S,"Component");
- tolua_usertype(tolua_S,"NavigationGeometryInfo");
- tolua_usertype(tolua_S,"IntVector2");
- tolua_usertype(tolua_S,"NavigationMesh");
- tolua_usertype(tolua_S,"PODVector<Vector3>");
- tolua_usertype(tolua_S,"Vector3");
- tolua_usertype(tolua_S,"Node");
- tolua_usertype(tolua_S,"Navigable");
- }
- /* method: SetRecursive of class Navigable */
- #ifndef TOLUA_DISABLE_tolua_Navigation_Navigable_SetRecursive00
- static int tolua_Navigation_Navigable_SetRecursive00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"Navigable",0,&tolua_err) ||
- !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- Navigable* self = (Navigable*) tolua_tousertype(tolua_S,1,0);
- bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRecursive'", NULL);
- #endif
- {
- self->SetRecursive(enable);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetRecursive'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: IsRecursive of class Navigable */
- #ifndef TOLUA_DISABLE_tolua_Navigation_Navigable_IsRecursive00
- static int tolua_Navigation_Navigable_IsRecursive00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const Navigable",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const Navigable* self = (const Navigable*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsRecursive'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->IsRecursive();
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'IsRecursive'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* get function: component_ of class NavigationGeometryInfo */
- #ifndef TOLUA_DISABLE_tolua_get_NavigationGeometryInfo_component__ptr
- static int tolua_get_NavigationGeometryInfo_component__ptr(lua_State* tolua_S)
- {
- NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'component_'",NULL);
- #endif
- tolua_pushusertype(tolua_S,(void*)self->component_,"Component");
- return 1;
- }
- #endif //#ifndef TOLUA_DISABLE
- /* set function: component_ of class NavigationGeometryInfo */
- #ifndef TOLUA_DISABLE_tolua_set_NavigationGeometryInfo_component__ptr
- static int tolua_set_NavigationGeometryInfo_component__ptr(lua_State* tolua_S)
- {
- NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'component_'",NULL);
- if (!tolua_isusertype(tolua_S,2,"Component",0,&tolua_err))
- tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
- #endif
- self->component_ = ((Component*) tolua_tousertype(tolua_S,2,0))
- ;
- return 0;
- }
- #endif //#ifndef TOLUA_DISABLE
- /* get function: lodLevel_ of class NavigationGeometryInfo */
- #ifndef TOLUA_DISABLE_tolua_get_NavigationGeometryInfo_lodLevel_
- static int tolua_get_NavigationGeometryInfo_lodLevel_(lua_State* tolua_S)
- {
- NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'lodLevel_'",NULL);
- #endif
- tolua_pushnumber(tolua_S,(lua_Number)self->lodLevel_);
- return 1;
- }
- #endif //#ifndef TOLUA_DISABLE
- /* set function: lodLevel_ of class NavigationGeometryInfo */
- #ifndef TOLUA_DISABLE_tolua_set_NavigationGeometryInfo_lodLevel_
- static int tolua_set_NavigationGeometryInfo_lodLevel_(lua_State* tolua_S)
- {
- NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'lodLevel_'",NULL);
- if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
- tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
- #endif
- self->lodLevel_ = ((unsigned) tolua_tonumber(tolua_S,2,0))
- ;
- return 0;
- }
- #endif //#ifndef TOLUA_DISABLE
- /* get function: transform_ of class NavigationGeometryInfo */
- #ifndef TOLUA_DISABLE_tolua_get_NavigationGeometryInfo_transform_
- static int tolua_get_NavigationGeometryInfo_transform_(lua_State* tolua_S)
- {
- NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'transform_'",NULL);
- #endif
- tolua_pushusertype(tolua_S,(void*)&self->transform_,"Matrix3x4");
- return 1;
- }
- #endif //#ifndef TOLUA_DISABLE
- /* set function: transform_ of class NavigationGeometryInfo */
- #ifndef TOLUA_DISABLE_tolua_set_NavigationGeometryInfo_transform_
- static int tolua_set_NavigationGeometryInfo_transform_(lua_State* tolua_S)
- {
- NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'transform_'",NULL);
- if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Matrix3x4",0,&tolua_err)))
- tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
- #endif
- self->transform_ = *((Matrix3x4*) tolua_tousertype(tolua_S,2,0))
- ;
- return 0;
- }
- #endif //#ifndef TOLUA_DISABLE
- /* get function: boundingBox_ of class NavigationGeometryInfo */
- #ifndef TOLUA_DISABLE_tolua_get_NavigationGeometryInfo_boundingBox_
- static int tolua_get_NavigationGeometryInfo_boundingBox_(lua_State* tolua_S)
- {
- NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'boundingBox_'",NULL);
- #endif
- tolua_pushusertype(tolua_S,(void*)&self->boundingBox_,"BoundingBox");
- return 1;
- }
- #endif //#ifndef TOLUA_DISABLE
- /* set function: boundingBox_ of class NavigationGeometryInfo */
- #ifndef TOLUA_DISABLE_tolua_set_NavigationGeometryInfo_boundingBox_
- static int tolua_set_NavigationGeometryInfo_boundingBox_(lua_State* tolua_S)
- {
- NavigationGeometryInfo* self = (NavigationGeometryInfo*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'boundingBox_'",NULL);
- if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"BoundingBox",0,&tolua_err)))
- tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
- #endif
- self->boundingBox_ = *((BoundingBox*) tolua_tousertype(tolua_S,2,0))
- ;
- return 0;
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetTileSize of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetTileSize00
- static int tolua_Navigation_NavigationMesh_SetTileSize00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- int size = ((int) tolua_tonumber(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTileSize'", NULL);
- #endif
- {
- self->SetTileSize(size);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetTileSize'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetCellSize of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetCellSize00
- static int tolua_Navigation_NavigationMesh_SetCellSize00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- float size = ((float) tolua_tonumber(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCellSize'", NULL);
- #endif
- {
- self->SetCellSize(size);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetCellSize'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetCellHeight of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetCellHeight00
- static int tolua_Navigation_NavigationMesh_SetCellHeight00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- float height = ((float) tolua_tonumber(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCellHeight'", NULL);
- #endif
- {
- self->SetCellHeight(height);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetCellHeight'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetAgentHeight of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetAgentHeight00
- static int tolua_Navigation_NavigationMesh_SetAgentHeight00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- float height = ((float) tolua_tonumber(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAgentHeight'", NULL);
- #endif
- {
- self->SetAgentHeight(height);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetAgentHeight'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetAgentRadius of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetAgentRadius00
- static int tolua_Navigation_NavigationMesh_SetAgentRadius00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- float radius = ((float) tolua_tonumber(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAgentRadius'", NULL);
- #endif
- {
- self->SetAgentRadius(radius);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetAgentRadius'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetAgentMaxClimb of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetAgentMaxClimb00
- static int tolua_Navigation_NavigationMesh_SetAgentMaxClimb00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- float maxClimb = ((float) tolua_tonumber(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAgentMaxClimb'", NULL);
- #endif
- {
- self->SetAgentMaxClimb(maxClimb);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetAgentMaxClimb'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetAgentMaxSlope of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetAgentMaxSlope00
- static int tolua_Navigation_NavigationMesh_SetAgentMaxSlope00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- float maxSlope = ((float) tolua_tonumber(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAgentMaxSlope'", NULL);
- #endif
- {
- self->SetAgentMaxSlope(maxSlope);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetAgentMaxSlope'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetRegionMinSize of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetRegionMinSize00
- static int tolua_Navigation_NavigationMesh_SetRegionMinSize00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- float size = ((float) tolua_tonumber(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRegionMinSize'", NULL);
- #endif
- {
- self->SetRegionMinSize(size);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetRegionMinSize'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetRegionMergeSize of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetRegionMergeSize00
- static int tolua_Navigation_NavigationMesh_SetRegionMergeSize00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- float size = ((float) tolua_tonumber(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRegionMergeSize'", NULL);
- #endif
- {
- self->SetRegionMergeSize(size);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetRegionMergeSize'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetEdgeMaxLength of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetEdgeMaxLength00
- static int tolua_Navigation_NavigationMesh_SetEdgeMaxLength00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- float length = ((float) tolua_tonumber(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEdgeMaxLength'", NULL);
- #endif
- {
- self->SetEdgeMaxLength(length);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetEdgeMaxLength'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetEdgeMaxError of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetEdgeMaxError00
- static int tolua_Navigation_NavigationMesh_SetEdgeMaxError00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- float error = ((float) tolua_tonumber(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEdgeMaxError'", NULL);
- #endif
- {
- self->SetEdgeMaxError(error);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetEdgeMaxError'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetDetailSampleDistance of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetDetailSampleDistance00
- static int tolua_Navigation_NavigationMesh_SetDetailSampleDistance00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- float distance = ((float) tolua_tonumber(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDetailSampleDistance'", NULL);
- #endif
- {
- self->SetDetailSampleDistance(distance);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetDetailSampleDistance'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetDetailSampleMaxError of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetDetailSampleMaxError00
- static int tolua_Navigation_NavigationMesh_SetDetailSampleMaxError00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- float error = ((float) tolua_tonumber(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDetailSampleMaxError'", NULL);
- #endif
- {
- self->SetDetailSampleMaxError(error);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetDetailSampleMaxError'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetPadding of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_SetPadding00
- static int tolua_Navigation_NavigationMesh_SetPadding00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- const Vector3* padding = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPadding'", NULL);
- #endif
- {
- self->SetPadding(*padding);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetPadding'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: Build of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_Build00
- static int tolua_Navigation_NavigationMesh_Build00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Build'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->Build();
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'Build'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: Build of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_Build01
- static int tolua_Navigation_NavigationMesh_Build01(lua_State* tolua_S)
- {
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BoundingBox",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- const BoundingBox* boundingBox = ((const BoundingBox*) tolua_tousertype(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Build'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->Build(*boundingBox);
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- tolua_lerror:
- return tolua_Navigation_NavigationMesh_Build00(tolua_S);
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: FindPath of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_FindPath00
- static int tolua_Navigation_NavigationMesh_FindPath00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"PODVector<Vector3>",0,&tolua_err)) ||
- (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
- (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Vector3",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,5,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- PODVector<Vector3>* dest = ((PODVector<Vector3>*) tolua_tousertype(tolua_S,2,0));
- const Vector3* start = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
- const Vector3* end = ((const Vector3*) tolua_tousertype(tolua_S,4,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'FindPath'", NULL);
- #endif
- {
- self->FindPath(*dest,*start,*end);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'FindPath'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: FindPath of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_FindPath01
- static int tolua_Navigation_NavigationMesh_FindPath01(lua_State* tolua_S)
- {
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"PODVector<Vector3>",0,&tolua_err)) ||
- (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
- (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Vector3",0,&tolua_err)) ||
- (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"const Vector3",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,6,&tolua_err)
- )
- goto tolua_lerror;
- else
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- PODVector<Vector3>* dest = ((PODVector<Vector3>*) tolua_tousertype(tolua_S,2,0));
- const Vector3* start = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
- const Vector3* end = ((const Vector3*) tolua_tousertype(tolua_S,4,0));
- const Vector3* extents = ((const Vector3*) tolua_tousertype(tolua_S,5,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'FindPath'", NULL);
- #endif
- {
- self->FindPath(*dest,*start,*end,*extents);
- }
- }
- return 0;
- tolua_lerror:
- return tolua_Navigation_NavigationMesh_FindPath00(tolua_S);
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetRandomPoint of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetRandomPoint00
- static int tolua_Navigation_NavigationMesh_GetRandomPoint00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRandomPoint'", NULL);
- #endif
- {
- Vector3 tolua_ret = (Vector3) self->GetRandomPoint();
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetRandomPoint'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetRandomPointInCircle of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetRandomPointInCircle00
- static int tolua_Navigation_NavigationMesh_GetRandomPointInCircle00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
- !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,4,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- const Vector3* center = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
- float radius = ((float) tolua_tonumber(tolua_S,3,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRandomPointInCircle'", NULL);
- #endif
- {
- Vector3 tolua_ret = (Vector3) self->GetRandomPointInCircle(*center,radius);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetRandomPointInCircle'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetRandomPointInCircle of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetRandomPointInCircle01
- static int tolua_Navigation_NavigationMesh_GetRandomPointInCircle01(lua_State* tolua_S)
- {
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
- !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Vector3",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,5,&tolua_err)
- )
- goto tolua_lerror;
- else
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- const Vector3* center = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
- float radius = ((float) tolua_tonumber(tolua_S,3,0));
- const Vector3* extents = ((const Vector3*) tolua_tousertype(tolua_S,4,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRandomPointInCircle'", NULL);
- #endif
- {
- Vector3 tolua_ret = (Vector3) self->GetRandomPointInCircle(*center,radius,*extents);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- tolua_lerror:
- return tolua_Navigation_NavigationMesh_GetRandomPointInCircle00(tolua_S);
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetDistanceToWall of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetDistanceToWall00
- static int tolua_Navigation_NavigationMesh_GetDistanceToWall00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
- !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,4,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- const Vector3* point = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
- float radius = ((float) tolua_tonumber(tolua_S,3,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDistanceToWall'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetDistanceToWall(*point,radius);
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetDistanceToWall'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetDistanceToWall of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetDistanceToWall01
- static int tolua_Navigation_NavigationMesh_GetDistanceToWall01(lua_State* tolua_S)
- {
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
- !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Vector3",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,5,&tolua_err)
- )
- goto tolua_lerror;
- else
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- const Vector3* point = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
- float radius = ((float) tolua_tonumber(tolua_S,3,0));
- const Vector3* extents = ((const Vector3*) tolua_tousertype(tolua_S,4,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDistanceToWall'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetDistanceToWall(*point,radius,*extents);
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- tolua_lerror:
- return tolua_Navigation_NavigationMesh_GetDistanceToWall00(tolua_S);
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: Raycast of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_Raycast00
- static int tolua_Navigation_NavigationMesh_Raycast00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
- (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,4,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- const Vector3* start = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
- const Vector3* end = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Raycast'", NULL);
- #endif
- {
- Vector3 tolua_ret = (Vector3) self->Raycast(*start,*end);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'Raycast'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: Raycast of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_Raycast01
- static int tolua_Navigation_NavigationMesh_Raycast01(lua_State* tolua_S)
- {
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"NavigationMesh",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
- (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
- (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Vector3",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,5,&tolua_err)
- )
- goto tolua_lerror;
- else
- {
- NavigationMesh* self = (NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- const Vector3* start = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
- const Vector3* end = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
- const Vector3* extents = ((const Vector3*) tolua_tousertype(tolua_S,4,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Raycast'", NULL);
- #endif
- {
- Vector3 tolua_ret = (Vector3) self->Raycast(*start,*end,*extents);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- tolua_lerror:
- return tolua_Navigation_NavigationMesh_Raycast00(tolua_S);
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetTileSize of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetTileSize00
- static int tolua_Navigation_NavigationMesh_GetTileSize00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTileSize'", NULL);
- #endif
- {
- int tolua_ret = (int) self->GetTileSize();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetTileSize'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetCellSize of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetCellSize00
- static int tolua_Navigation_NavigationMesh_GetCellSize00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCellSize'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetCellSize();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetCellSize'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetCellHeight of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetCellHeight00
- static int tolua_Navigation_NavigationMesh_GetCellHeight00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCellHeight'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetCellHeight();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetCellHeight'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetAgentHeight of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetAgentHeight00
- static int tolua_Navigation_NavigationMesh_GetAgentHeight00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAgentHeight'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetAgentHeight();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetAgentHeight'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetAgentRadius of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetAgentRadius00
- static int tolua_Navigation_NavigationMesh_GetAgentRadius00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAgentRadius'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetAgentRadius();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetAgentRadius'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetAgentMaxClimb of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetAgentMaxClimb00
- static int tolua_Navigation_NavigationMesh_GetAgentMaxClimb00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAgentMaxClimb'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetAgentMaxClimb();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetAgentMaxClimb'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetAgentMaxSlope of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetAgentMaxSlope00
- static int tolua_Navigation_NavigationMesh_GetAgentMaxSlope00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAgentMaxSlope'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetAgentMaxSlope();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetAgentMaxSlope'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetRegionMinSize of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetRegionMinSize00
- static int tolua_Navigation_NavigationMesh_GetRegionMinSize00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRegionMinSize'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetRegionMinSize();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetRegionMinSize'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetRegionMergeSize of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetRegionMergeSize00
- static int tolua_Navigation_NavigationMesh_GetRegionMergeSize00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRegionMergeSize'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetRegionMergeSize();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetRegionMergeSize'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetEdgeMaxLength of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetEdgeMaxLength00
- static int tolua_Navigation_NavigationMesh_GetEdgeMaxLength00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEdgeMaxLength'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetEdgeMaxLength();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetEdgeMaxLength'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetEdgeMaxError of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetEdgeMaxError00
- static int tolua_Navigation_NavigationMesh_GetEdgeMaxError00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEdgeMaxError'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetEdgeMaxError();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetEdgeMaxError'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetDetailSampleDistance of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetDetailSampleDistance00
- static int tolua_Navigation_NavigationMesh_GetDetailSampleDistance00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDetailSampleDistance'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetDetailSampleDistance();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetDetailSampleDistance'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetDetailSampleMaxError of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetDetailSampleMaxError00
- static int tolua_Navigation_NavigationMesh_GetDetailSampleMaxError00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDetailSampleMaxError'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetDetailSampleMaxError();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetDetailSampleMaxError'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetPadding of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetPadding00
- static int tolua_Navigation_NavigationMesh_GetPadding00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPadding'", NULL);
- #endif
- {
- const Vector3& tolua_ret = (const Vector3&) self->GetPadding();
- tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetPadding'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: IsInitialized of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_IsInitialized00
- static int tolua_Navigation_NavigationMesh_IsInitialized00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInitialized'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->IsInitialized();
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'IsInitialized'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetBoundingBox of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetBoundingBox00
- static int tolua_Navigation_NavigationMesh_GetBoundingBox00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBoundingBox'", NULL);
- #endif
- {
- const BoundingBox& tolua_ret = (const BoundingBox&) self->GetBoundingBox();
- tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BoundingBox");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetBoundingBox'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetWorldBoundingBox of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetWorldBoundingBox00
- static int tolua_Navigation_NavigationMesh_GetWorldBoundingBox00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWorldBoundingBox'", NULL);
- #endif
- {
- BoundingBox tolua_ret = (BoundingBox) self->GetWorldBoundingBox();
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((BoundingBox)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"BoundingBox");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(BoundingBox));
- tolua_pushusertype(tolua_S,tolua_obj,"BoundingBox");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetWorldBoundingBox'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetNumTiles of class NavigationMesh */
- #ifndef TOLUA_DISABLE_tolua_Navigation_NavigationMesh_GetNumTiles00
- static int tolua_Navigation_NavigationMesh_GetNumTiles00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const NavigationMesh",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const NavigationMesh* self = (const NavigationMesh*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumTiles'", NULL);
- #endif
- {
- IntVector2 tolua_ret = (IntVector2) self->GetNumTiles();
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((IntVector2)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntVector2));
- tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetNumTiles'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetEndPoint of class OffMeshConnection */
- #ifndef TOLUA_DISABLE_tolua_Navigation_OffMeshConnection_SetEndPoint00
- static int tolua_Navigation_OffMeshConnection_SetEndPoint00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"OffMeshConnection",0,&tolua_err) ||
- !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- OffMeshConnection* self = (OffMeshConnection*) tolua_tousertype(tolua_S,1,0);
- Node* node = ((Node*) tolua_tousertype(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEndPoint'", NULL);
- #endif
- {
- self->SetEndPoint(node);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetEndPoint'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetRadius of class OffMeshConnection */
- #ifndef TOLUA_DISABLE_tolua_Navigation_OffMeshConnection_SetRadius00
- static int tolua_Navigation_OffMeshConnection_SetRadius00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"OffMeshConnection",0,&tolua_err) ||
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- OffMeshConnection* self = (OffMeshConnection*) tolua_tousertype(tolua_S,1,0);
- float radius = ((float) tolua_tonumber(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRadius'", NULL);
- #endif
- {
- self->SetRadius(radius);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetRadius'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetBidirectional of class OffMeshConnection */
- #ifndef TOLUA_DISABLE_tolua_Navigation_OffMeshConnection_SetBidirectional00
- static int tolua_Navigation_OffMeshConnection_SetBidirectional00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"OffMeshConnection",0,&tolua_err) ||
- !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- OffMeshConnection* self = (OffMeshConnection*) tolua_tousertype(tolua_S,1,0);
- bool enabled = ((bool) tolua_toboolean(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBidirectional'", NULL);
- #endif
- {
- self->SetBidirectional(enabled);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetBidirectional'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetEndPoint of class OffMeshConnection */
- #ifndef TOLUA_DISABLE_tolua_Navigation_OffMeshConnection_GetEndPoint00
- static int tolua_Navigation_OffMeshConnection_GetEndPoint00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const OffMeshConnection",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const OffMeshConnection* self = (const OffMeshConnection*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEndPoint'", NULL);
- #endif
- {
- Node* tolua_ret = (Node*) self->GetEndPoint();
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"Node");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetEndPoint'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetRadius of class OffMeshConnection */
- #ifndef TOLUA_DISABLE_tolua_Navigation_OffMeshConnection_GetRadius00
- static int tolua_Navigation_OffMeshConnection_GetRadius00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const OffMeshConnection",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const OffMeshConnection* self = (const OffMeshConnection*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRadius'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetRadius();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetRadius'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: IsBidirectional of class OffMeshConnection */
- #ifndef TOLUA_DISABLE_tolua_Navigation_OffMeshConnection_IsBidirectional00
- static int tolua_Navigation_OffMeshConnection_IsBidirectional00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const OffMeshConnection",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const OffMeshConnection* self = (const OffMeshConnection*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsBidirectional'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->IsBidirectional();
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'IsBidirectional'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* Open function */
- TOLUA_API int tolua_Navigation_open (lua_State* tolua_S)
- {
- tolua_open(tolua_S);
- tolua_reg_types(tolua_S);
- tolua_module(tolua_S,NULL,0);
- tolua_beginmodule(tolua_S,NULL);
- tolua_cclass(tolua_S,"Navigable","Navigable","Component",NULL);
- tolua_beginmodule(tolua_S,"Navigable");
- tolua_function(tolua_S,"SetRecursive",tolua_Navigation_Navigable_SetRecursive00);
- tolua_function(tolua_S,"IsRecursive",tolua_Navigation_Navigable_IsRecursive00);
- tolua_endmodule(tolua_S);
- tolua_cclass(tolua_S,"NavigationGeometryInfo","NavigationGeometryInfo","",NULL);
- tolua_beginmodule(tolua_S,"NavigationGeometryInfo");
- tolua_variable(tolua_S,"component_",tolua_get_NavigationGeometryInfo_component__ptr,tolua_set_NavigationGeometryInfo_component__ptr);
- tolua_variable(tolua_S,"lodLevel_",tolua_get_NavigationGeometryInfo_lodLevel_,tolua_set_NavigationGeometryInfo_lodLevel_);
- tolua_variable(tolua_S,"transform_",tolua_get_NavigationGeometryInfo_transform_,tolua_set_NavigationGeometryInfo_transform_);
- tolua_variable(tolua_S,"boundingBox_",tolua_get_NavigationGeometryInfo_boundingBox_,tolua_set_NavigationGeometryInfo_boundingBox_);
- tolua_endmodule(tolua_S);
- tolua_cclass(tolua_S,"NavigationMesh","NavigationMesh","Component",NULL);
- tolua_beginmodule(tolua_S,"NavigationMesh");
- tolua_function(tolua_S,"SetTileSize",tolua_Navigation_NavigationMesh_SetTileSize00);
- tolua_function(tolua_S,"SetCellSize",tolua_Navigation_NavigationMesh_SetCellSize00);
- tolua_function(tolua_S,"SetCellHeight",tolua_Navigation_NavigationMesh_SetCellHeight00);
- tolua_function(tolua_S,"SetAgentHeight",tolua_Navigation_NavigationMesh_SetAgentHeight00);
- tolua_function(tolua_S,"SetAgentRadius",tolua_Navigation_NavigationMesh_SetAgentRadius00);
- tolua_function(tolua_S,"SetAgentMaxClimb",tolua_Navigation_NavigationMesh_SetAgentMaxClimb00);
- tolua_function(tolua_S,"SetAgentMaxSlope",tolua_Navigation_NavigationMesh_SetAgentMaxSlope00);
- tolua_function(tolua_S,"SetRegionMinSize",tolua_Navigation_NavigationMesh_SetRegionMinSize00);
- tolua_function(tolua_S,"SetRegionMergeSize",tolua_Navigation_NavigationMesh_SetRegionMergeSize00);
- tolua_function(tolua_S,"SetEdgeMaxLength",tolua_Navigation_NavigationMesh_SetEdgeMaxLength00);
- tolua_function(tolua_S,"SetEdgeMaxError",tolua_Navigation_NavigationMesh_SetEdgeMaxError00);
- tolua_function(tolua_S,"SetDetailSampleDistance",tolua_Navigation_NavigationMesh_SetDetailSampleDistance00);
- tolua_function(tolua_S,"SetDetailSampleMaxError",tolua_Navigation_NavigationMesh_SetDetailSampleMaxError00);
- tolua_function(tolua_S,"SetPadding",tolua_Navigation_NavigationMesh_SetPadding00);
- tolua_function(tolua_S,"Build",tolua_Navigation_NavigationMesh_Build00);
- tolua_function(tolua_S,"Build",tolua_Navigation_NavigationMesh_Build01);
- tolua_function(tolua_S,"FindPath",tolua_Navigation_NavigationMesh_FindPath00);
- tolua_function(tolua_S,"FindPath",tolua_Navigation_NavigationMesh_FindPath01);
- tolua_function(tolua_S,"GetRandomPoint",tolua_Navigation_NavigationMesh_GetRandomPoint00);
- tolua_function(tolua_S,"GetRandomPointInCircle",tolua_Navigation_NavigationMesh_GetRandomPointInCircle00);
- tolua_function(tolua_S,"GetRandomPointInCircle",tolua_Navigation_NavigationMesh_GetRandomPointInCircle01);
- tolua_function(tolua_S,"GetDistanceToWall",tolua_Navigation_NavigationMesh_GetDistanceToWall00);
- tolua_function(tolua_S,"GetDistanceToWall",tolua_Navigation_NavigationMesh_GetDistanceToWall01);
- tolua_function(tolua_S,"Raycast",tolua_Navigation_NavigationMesh_Raycast00);
- tolua_function(tolua_S,"Raycast",tolua_Navigation_NavigationMesh_Raycast01);
- tolua_function(tolua_S,"GetTileSize",tolua_Navigation_NavigationMesh_GetTileSize00);
- tolua_function(tolua_S,"GetCellSize",tolua_Navigation_NavigationMesh_GetCellSize00);
- tolua_function(tolua_S,"GetCellHeight",tolua_Navigation_NavigationMesh_GetCellHeight00);
- tolua_function(tolua_S,"GetAgentHeight",tolua_Navigation_NavigationMesh_GetAgentHeight00);
- tolua_function(tolua_S,"GetAgentRadius",tolua_Navigation_NavigationMesh_GetAgentRadius00);
- tolua_function(tolua_S,"GetAgentMaxClimb",tolua_Navigation_NavigationMesh_GetAgentMaxClimb00);
- tolua_function(tolua_S,"GetAgentMaxSlope",tolua_Navigation_NavigationMesh_GetAgentMaxSlope00);
- tolua_function(tolua_S,"GetRegionMinSize",tolua_Navigation_NavigationMesh_GetRegionMinSize00);
- tolua_function(tolua_S,"GetRegionMergeSize",tolua_Navigation_NavigationMesh_GetRegionMergeSize00);
- tolua_function(tolua_S,"GetEdgeMaxLength",tolua_Navigation_NavigationMesh_GetEdgeMaxLength00);
- tolua_function(tolua_S,"GetEdgeMaxError",tolua_Navigation_NavigationMesh_GetEdgeMaxError00);
- tolua_function(tolua_S,"GetDetailSampleDistance",tolua_Navigation_NavigationMesh_GetDetailSampleDistance00);
- tolua_function(tolua_S,"GetDetailSampleMaxError",tolua_Navigation_NavigationMesh_GetDetailSampleMaxError00);
- tolua_function(tolua_S,"GetPadding",tolua_Navigation_NavigationMesh_GetPadding00);
- tolua_function(tolua_S,"IsInitialized",tolua_Navigation_NavigationMesh_IsInitialized00);
- tolua_function(tolua_S,"GetBoundingBox",tolua_Navigation_NavigationMesh_GetBoundingBox00);
- tolua_function(tolua_S,"GetWorldBoundingBox",tolua_Navigation_NavigationMesh_GetWorldBoundingBox00);
- tolua_function(tolua_S,"GetNumTiles",tolua_Navigation_NavigationMesh_GetNumTiles00);
- tolua_endmodule(tolua_S);
- tolua_cclass(tolua_S,"OffMeshConnection","OffMeshConnection","Component",NULL);
- tolua_beginmodule(tolua_S,"OffMeshConnection");
- tolua_function(tolua_S,"SetEndPoint",tolua_Navigation_OffMeshConnection_SetEndPoint00);
- tolua_function(tolua_S,"SetRadius",tolua_Navigation_OffMeshConnection_SetRadius00);
- tolua_function(tolua_S,"SetBidirectional",tolua_Navigation_OffMeshConnection_SetBidirectional00);
- tolua_function(tolua_S,"GetEndPoint",tolua_Navigation_OffMeshConnection_GetEndPoint00);
- tolua_function(tolua_S,"GetRadius",tolua_Navigation_OffMeshConnection_GetRadius00);
- tolua_function(tolua_S,"IsBidirectional",tolua_Navigation_OffMeshConnection_IsBidirectional00);
- tolua_endmodule(tolua_S);
- tolua_endmodule(tolua_S);
- return 1;
- }
- #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
- TOLUA_API int luaopen_Navigation (lua_State* tolua_S) {
- return tolua_Navigation_open(tolua_S);
- };
- #endif
|