SceneLuaAPI.cpp 133 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500
  1. /*
  2. ** Lua binding: Scene
  3. ** Generated automatically by tolua++-1.0.92 on 07/02/13 20:27:50.
  4. */
  5. //
  6. // Copyright (c) 2008-2013 the Urho3D project.
  7. //
  8. // Permission is hereby granted, free of charge, to any person obtaining a copy
  9. // of this software and associated documentation files (the "Software"), to deal
  10. // in the Software without restriction, including without limitation the rights
  11. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. // copies of the Software, and to permit persons to whom the Software is
  13. // furnished to do so, subject to the following conditions:
  14. //
  15. // The above copyright notice and this permission notice shall be included in
  16. // all copies or substantial portions of the Software.
  17. //
  18. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  24. // THE SOFTWARE.
  25. //
  26. #include "Precompiled.h"
  27. #include "tolua++.h"
  28. /* Exported function */
  29. TOLUA_API int tolua_Scene_open (lua_State* tolua_S);
  30. #define TOLUA_RELEASE
  31. #include "SceneLuaAPI.h"
  32. #include "Component.h"
  33. #include "Node.h"
  34. #include "Scene.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_Matrix3x4 (lua_State* tolua_S)
  40. {
  41. Matrix3x4* self = (Matrix3x4*) tolua_tousertype(tolua_S,1,0);
  42. Mtolua_delete(self);
  43. return 0;
  44. }
  45. static int tolua_collect_String (lua_State* tolua_S)
  46. {
  47. String* self = (String*) tolua_tousertype(tolua_S,1,0);
  48. Mtolua_delete(self);
  49. return 0;
  50. }
  51. static int tolua_collect_Quaternion (lua_State* tolua_S)
  52. {
  53. Quaternion* self = (Quaternion*) tolua_tousertype(tolua_S,1,0);
  54. Mtolua_delete(self);
  55. return 0;
  56. }
  57. static int tolua_collect_Vector3 (lua_State* tolua_S)
  58. {
  59. Vector3* self = (Vector3*) tolua_tousertype(tolua_S,1,0);
  60. Mtolua_delete(self);
  61. return 0;
  62. }
  63. static int tolua_collect_StringHash (lua_State* tolua_S)
  64. {
  65. StringHash* self = (StringHash*) tolua_tousertype(tolua_S,1,0);
  66. Mtolua_delete(self);
  67. return 0;
  68. }
  69. #endif
  70. /* function to register type */
  71. static void tolua_reg_types (lua_State* tolua_S)
  72. {
  73. tolua_usertype(tolua_S,"Connection");
  74. tolua_usertype(tolua_S,"Quaternion");
  75. tolua_usertype(tolua_S,"Scene");
  76. tolua_usertype(tolua_S,"Vector3");
  77. tolua_usertype(tolua_S,"StringHash");
  78. tolua_usertype(tolua_S,"Component");
  79. tolua_usertype(tolua_S,"Vector4");
  80. tolua_usertype(tolua_S,"Matrix3x4");
  81. tolua_usertype(tolua_S,"Variant");
  82. tolua_usertype(tolua_S,"String");
  83. tolua_usertype(tolua_S,"File");
  84. tolua_usertype(tolua_S,"Node");
  85. tolua_usertype(tolua_S,"ShortStringHash");
  86. }
  87. /* method: SetEnabled of class Component */
  88. #ifndef TOLUA_DISABLE_tolua_Scene_Component_SetEnabled00
  89. static int tolua_Scene_Component_SetEnabled00(lua_State* tolua_S)
  90. {
  91. #ifndef TOLUA_RELEASE
  92. tolua_Error tolua_err;
  93. if (
  94. !tolua_isusertype(tolua_S,1,"Component",0,&tolua_err) ||
  95. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  96. !tolua_isnoobj(tolua_S,3,&tolua_err)
  97. )
  98. goto tolua_lerror;
  99. else
  100. #endif
  101. {
  102. Component* self = (Component*) tolua_tousertype(tolua_S,1,0);
  103. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  104. #ifndef TOLUA_RELEASE
  105. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEnabled'", NULL);
  106. #endif
  107. {
  108. self->SetEnabled(enable);
  109. }
  110. }
  111. return 0;
  112. #ifndef TOLUA_RELEASE
  113. tolua_lerror:
  114. tolua_error(tolua_S,"#ferror in function 'SetEnabled'.",&tolua_err);
  115. return 0;
  116. #endif
  117. }
  118. #endif //#ifndef TOLUA_DISABLE
  119. /* method: Remove of class Component */
  120. #ifndef TOLUA_DISABLE_tolua_Scene_Component_Remove00
  121. static int tolua_Scene_Component_Remove00(lua_State* tolua_S)
  122. {
  123. #ifndef TOLUA_RELEASE
  124. tolua_Error tolua_err;
  125. if (
  126. !tolua_isusertype(tolua_S,1,"Component",0,&tolua_err) ||
  127. !tolua_isnoobj(tolua_S,2,&tolua_err)
  128. )
  129. goto tolua_lerror;
  130. else
  131. #endif
  132. {
  133. Component* self = (Component*) tolua_tousertype(tolua_S,1,0);
  134. #ifndef TOLUA_RELEASE
  135. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Remove'", NULL);
  136. #endif
  137. {
  138. self->Remove();
  139. }
  140. }
  141. return 0;
  142. #ifndef TOLUA_RELEASE
  143. tolua_lerror:
  144. tolua_error(tolua_S,"#ferror in function 'Remove'.",&tolua_err);
  145. return 0;
  146. #endif
  147. }
  148. #endif //#ifndef TOLUA_DISABLE
  149. /* method: GetID of class Component */
  150. #ifndef TOLUA_DISABLE_tolua_Scene_Component_GetID00
  151. static int tolua_Scene_Component_GetID00(lua_State* tolua_S)
  152. {
  153. #ifndef TOLUA_RELEASE
  154. tolua_Error tolua_err;
  155. if (
  156. !tolua_isusertype(tolua_S,1,"const Component",0,&tolua_err) ||
  157. !tolua_isnoobj(tolua_S,2,&tolua_err)
  158. )
  159. goto tolua_lerror;
  160. else
  161. #endif
  162. {
  163. const Component* self = (const Component*) tolua_tousertype(tolua_S,1,0);
  164. #ifndef TOLUA_RELEASE
  165. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetID'", NULL);
  166. #endif
  167. {
  168. unsigned tolua_ret = (unsigned) self->GetID();
  169. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  170. }
  171. }
  172. return 1;
  173. #ifndef TOLUA_RELEASE
  174. tolua_lerror:
  175. tolua_error(tolua_S,"#ferror in function 'GetID'.",&tolua_err);
  176. return 0;
  177. #endif
  178. }
  179. #endif //#ifndef TOLUA_DISABLE
  180. /* method: GetNode of class Component */
  181. #ifndef TOLUA_DISABLE_tolua_Scene_Component_GetNode00
  182. static int tolua_Scene_Component_GetNode00(lua_State* tolua_S)
  183. {
  184. #ifndef TOLUA_RELEASE
  185. tolua_Error tolua_err;
  186. if (
  187. !tolua_isusertype(tolua_S,1,"const Component",0,&tolua_err) ||
  188. !tolua_isnoobj(tolua_S,2,&tolua_err)
  189. )
  190. goto tolua_lerror;
  191. else
  192. #endif
  193. {
  194. const Component* self = (const Component*) tolua_tousertype(tolua_S,1,0);
  195. #ifndef TOLUA_RELEASE
  196. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNode'", NULL);
  197. #endif
  198. {
  199. Node* tolua_ret = (Node*) self->GetNode();
  200. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Node");
  201. }
  202. }
  203. return 1;
  204. #ifndef TOLUA_RELEASE
  205. tolua_lerror:
  206. tolua_error(tolua_S,"#ferror in function 'GetNode'.",&tolua_err);
  207. return 0;
  208. #endif
  209. }
  210. #endif //#ifndef TOLUA_DISABLE
  211. /* method: GetScene of class Component */
  212. #ifndef TOLUA_DISABLE_tolua_Scene_Component_GetScene00
  213. static int tolua_Scene_Component_GetScene00(lua_State* tolua_S)
  214. {
  215. #ifndef TOLUA_RELEASE
  216. tolua_Error tolua_err;
  217. if (
  218. !tolua_isusertype(tolua_S,1,"const Component",0,&tolua_err) ||
  219. !tolua_isnoobj(tolua_S,2,&tolua_err)
  220. )
  221. goto tolua_lerror;
  222. else
  223. #endif
  224. {
  225. const Component* self = (const Component*) tolua_tousertype(tolua_S,1,0);
  226. #ifndef TOLUA_RELEASE
  227. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScene'", NULL);
  228. #endif
  229. {
  230. Scene* tolua_ret = (Scene*) self->GetScene();
  231. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Scene");
  232. }
  233. }
  234. return 1;
  235. #ifndef TOLUA_RELEASE
  236. tolua_lerror:
  237. tolua_error(tolua_S,"#ferror in function 'GetScene'.",&tolua_err);
  238. return 0;
  239. #endif
  240. }
  241. #endif //#ifndef TOLUA_DISABLE
  242. /* method: IsEnabled of class Component */
  243. #ifndef TOLUA_DISABLE_tolua_Scene_Component_IsEnabled00
  244. static int tolua_Scene_Component_IsEnabled00(lua_State* tolua_S)
  245. {
  246. #ifndef TOLUA_RELEASE
  247. tolua_Error tolua_err;
  248. if (
  249. !tolua_isusertype(tolua_S,1,"const Component",0,&tolua_err) ||
  250. !tolua_isnoobj(tolua_S,2,&tolua_err)
  251. )
  252. goto tolua_lerror;
  253. else
  254. #endif
  255. {
  256. const Component* self = (const Component*) tolua_tousertype(tolua_S,1,0);
  257. #ifndef TOLUA_RELEASE
  258. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsEnabled'", NULL);
  259. #endif
  260. {
  261. bool tolua_ret = (bool) self->IsEnabled();
  262. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  263. }
  264. }
  265. return 1;
  266. #ifndef TOLUA_RELEASE
  267. tolua_lerror:
  268. tolua_error(tolua_S,"#ferror in function 'IsEnabled'.",&tolua_err);
  269. return 0;
  270. #endif
  271. }
  272. #endif //#ifndef TOLUA_DISABLE
  273. /* method: IsEnabledEffective of class Component */
  274. #ifndef TOLUA_DISABLE_tolua_Scene_Component_IsEnabledEffective00
  275. static int tolua_Scene_Component_IsEnabledEffective00(lua_State* tolua_S)
  276. {
  277. #ifndef TOLUA_RELEASE
  278. tolua_Error tolua_err;
  279. if (
  280. !tolua_isusertype(tolua_S,1,"const Component",0,&tolua_err) ||
  281. !tolua_isnoobj(tolua_S,2,&tolua_err)
  282. )
  283. goto tolua_lerror;
  284. else
  285. #endif
  286. {
  287. const Component* self = (const Component*) tolua_tousertype(tolua_S,1,0);
  288. #ifndef TOLUA_RELEASE
  289. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsEnabledEffective'", NULL);
  290. #endif
  291. {
  292. bool tolua_ret = (bool) self->IsEnabledEffective();
  293. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  294. }
  295. }
  296. return 1;
  297. #ifndef TOLUA_RELEASE
  298. tolua_lerror:
  299. tolua_error(tolua_S,"#ferror in function 'IsEnabledEffective'.",&tolua_err);
  300. return 0;
  301. #endif
  302. }
  303. #endif //#ifndef TOLUA_DISABLE
  304. /* method: GetComponent of class Component */
  305. #ifndef TOLUA_DISABLE_tolua_Scene_Component_GetComponent00
  306. static int tolua_Scene_Component_GetComponent00(lua_State* tolua_S)
  307. {
  308. #ifndef TOLUA_RELEASE
  309. tolua_Error tolua_err;
  310. if (
  311. !tolua_isusertype(tolua_S,1,"const Component",0,&tolua_err) ||
  312. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  313. !tolua_isnoobj(tolua_S,3,&tolua_err)
  314. )
  315. goto tolua_lerror;
  316. else
  317. #endif
  318. {
  319. const Component* self = (const Component*) tolua_tousertype(tolua_S,1,0);
  320. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  321. #ifndef TOLUA_RELEASE
  322. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetComponent'", NULL);
  323. #endif
  324. {
  325. Component* tolua_ret = (Component*) self->GetComponent(type);
  326. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Component");
  327. }
  328. }
  329. return 1;
  330. #ifndef TOLUA_RELEASE
  331. tolua_lerror:
  332. tolua_error(tolua_S,"#ferror in function 'GetComponent'.",&tolua_err);
  333. return 0;
  334. #endif
  335. }
  336. #endif //#ifndef TOLUA_DISABLE
  337. /* method: SetName of class Node */
  338. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetName00
  339. static int tolua_Scene_Node_SetName00(lua_State* tolua_S)
  340. {
  341. #ifndef TOLUA_RELEASE
  342. tolua_Error tolua_err;
  343. if (
  344. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  345. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  346. !tolua_isnoobj(tolua_S,3,&tolua_err)
  347. )
  348. goto tolua_lerror;
  349. else
  350. #endif
  351. {
  352. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  353. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  354. #ifndef TOLUA_RELEASE
  355. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetName'", NULL);
  356. #endif
  357. {
  358. self->SetName(*name);
  359. }
  360. }
  361. return 0;
  362. #ifndef TOLUA_RELEASE
  363. tolua_lerror:
  364. tolua_error(tolua_S,"#ferror in function 'SetName'.",&tolua_err);
  365. return 0;
  366. #endif
  367. }
  368. #endif //#ifndef TOLUA_DISABLE
  369. /* method: SetPosition of class Node */
  370. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetPosition00
  371. static int tolua_Scene_Node_SetPosition00(lua_State* tolua_S)
  372. {
  373. #ifndef TOLUA_RELEASE
  374. tolua_Error tolua_err;
  375. if (
  376. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  377. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  378. !tolua_isnoobj(tolua_S,3,&tolua_err)
  379. )
  380. goto tolua_lerror;
  381. else
  382. #endif
  383. {
  384. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  385. const Vector3* position = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  386. #ifndef TOLUA_RELEASE
  387. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPosition'", NULL);
  388. #endif
  389. {
  390. self->SetPosition(*position);
  391. }
  392. }
  393. return 0;
  394. #ifndef TOLUA_RELEASE
  395. tolua_lerror:
  396. tolua_error(tolua_S,"#ferror in function 'SetPosition'.",&tolua_err);
  397. return 0;
  398. #endif
  399. }
  400. #endif //#ifndef TOLUA_DISABLE
  401. /* method: SetRotation of class Node */
  402. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetRotation00
  403. static int tolua_Scene_Node_SetRotation00(lua_State* tolua_S)
  404. {
  405. #ifndef TOLUA_RELEASE
  406. tolua_Error tolua_err;
  407. if (
  408. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  409. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Quaternion",0,&tolua_err)) ||
  410. !tolua_isnoobj(tolua_S,3,&tolua_err)
  411. )
  412. goto tolua_lerror;
  413. else
  414. #endif
  415. {
  416. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  417. const Quaternion* rotation = ((const Quaternion*) tolua_tousertype(tolua_S,2,0));
  418. #ifndef TOLUA_RELEASE
  419. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRotation'", NULL);
  420. #endif
  421. {
  422. self->SetRotation(*rotation);
  423. }
  424. }
  425. return 0;
  426. #ifndef TOLUA_RELEASE
  427. tolua_lerror:
  428. tolua_error(tolua_S,"#ferror in function 'SetRotation'.",&tolua_err);
  429. return 0;
  430. #endif
  431. }
  432. #endif //#ifndef TOLUA_DISABLE
  433. /* method: SetDirection of class Node */
  434. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetDirection00
  435. static int tolua_Scene_Node_SetDirection00(lua_State* tolua_S)
  436. {
  437. #ifndef TOLUA_RELEASE
  438. tolua_Error tolua_err;
  439. if (
  440. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  441. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  442. !tolua_isnoobj(tolua_S,3,&tolua_err)
  443. )
  444. goto tolua_lerror;
  445. else
  446. #endif
  447. {
  448. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  449. const Vector3* direction = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  450. #ifndef TOLUA_RELEASE
  451. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDirection'", NULL);
  452. #endif
  453. {
  454. self->SetDirection(*direction);
  455. }
  456. }
  457. return 0;
  458. #ifndef TOLUA_RELEASE
  459. tolua_lerror:
  460. tolua_error(tolua_S,"#ferror in function 'SetDirection'.",&tolua_err);
  461. return 0;
  462. #endif
  463. }
  464. #endif //#ifndef TOLUA_DISABLE
  465. /* method: SetScale of class Node */
  466. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetScale00
  467. static int tolua_Scene_Node_SetScale00(lua_State* tolua_S)
  468. {
  469. #ifndef TOLUA_RELEASE
  470. tolua_Error tolua_err;
  471. if (
  472. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  473. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  474. !tolua_isnoobj(tolua_S,3,&tolua_err)
  475. )
  476. goto tolua_lerror;
  477. else
  478. #endif
  479. {
  480. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  481. float scale = ((float) tolua_tonumber(tolua_S,2,0));
  482. #ifndef TOLUA_RELEASE
  483. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScale'", NULL);
  484. #endif
  485. {
  486. self->SetScale(scale);
  487. }
  488. }
  489. return 0;
  490. #ifndef TOLUA_RELEASE
  491. tolua_lerror:
  492. tolua_error(tolua_S,"#ferror in function 'SetScale'.",&tolua_err);
  493. return 0;
  494. #endif
  495. }
  496. #endif //#ifndef TOLUA_DISABLE
  497. /* method: SetScale of class Node */
  498. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetScale01
  499. static int tolua_Scene_Node_SetScale01(lua_State* tolua_S)
  500. {
  501. tolua_Error tolua_err;
  502. if (
  503. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  504. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  505. !tolua_isnoobj(tolua_S,3,&tolua_err)
  506. )
  507. goto tolua_lerror;
  508. else
  509. {
  510. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  511. const Vector3* scale = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  512. #ifndef TOLUA_RELEASE
  513. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScale'", NULL);
  514. #endif
  515. {
  516. self->SetScale(*scale);
  517. }
  518. }
  519. return 0;
  520. tolua_lerror:
  521. return tolua_Scene_Node_SetScale00(tolua_S);
  522. }
  523. #endif //#ifndef TOLUA_DISABLE
  524. /* method: SetTransform of class Node */
  525. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetTransform00
  526. static int tolua_Scene_Node_SetTransform00(lua_State* tolua_S)
  527. {
  528. #ifndef TOLUA_RELEASE
  529. tolua_Error tolua_err;
  530. if (
  531. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  532. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  533. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Quaternion",0,&tolua_err)) ||
  534. !tolua_isnoobj(tolua_S,4,&tolua_err)
  535. )
  536. goto tolua_lerror;
  537. else
  538. #endif
  539. {
  540. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  541. const Vector3* position = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  542. const Quaternion* rotation = ((const Quaternion*) tolua_tousertype(tolua_S,3,0));
  543. #ifndef TOLUA_RELEASE
  544. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTransform'", NULL);
  545. #endif
  546. {
  547. self->SetTransform(*position,*rotation);
  548. }
  549. }
  550. return 0;
  551. #ifndef TOLUA_RELEASE
  552. tolua_lerror:
  553. tolua_error(tolua_S,"#ferror in function 'SetTransform'.",&tolua_err);
  554. return 0;
  555. #endif
  556. }
  557. #endif //#ifndef TOLUA_DISABLE
  558. /* method: SetTransform of class Node */
  559. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetTransform01
  560. static int tolua_Scene_Node_SetTransform01(lua_State* tolua_S)
  561. {
  562. tolua_Error tolua_err;
  563. if (
  564. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  565. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  566. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Quaternion",0,&tolua_err)) ||
  567. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  568. !tolua_isnoobj(tolua_S,5,&tolua_err)
  569. )
  570. goto tolua_lerror;
  571. else
  572. {
  573. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  574. const Vector3* position = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  575. const Quaternion* rotation = ((const Quaternion*) tolua_tousertype(tolua_S,3,0));
  576. float scale = ((float) tolua_tonumber(tolua_S,4,0));
  577. #ifndef TOLUA_RELEASE
  578. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTransform'", NULL);
  579. #endif
  580. {
  581. self->SetTransform(*position,*rotation,scale);
  582. }
  583. }
  584. return 0;
  585. tolua_lerror:
  586. return tolua_Scene_Node_SetTransform00(tolua_S);
  587. }
  588. #endif //#ifndef TOLUA_DISABLE
  589. /* method: SetTransform of class Node */
  590. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetTransform02
  591. static int tolua_Scene_Node_SetTransform02(lua_State* tolua_S)
  592. {
  593. tolua_Error tolua_err;
  594. if (
  595. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  596. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  597. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Quaternion",0,&tolua_err)) ||
  598. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Vector3",0,&tolua_err)) ||
  599. !tolua_isnoobj(tolua_S,5,&tolua_err)
  600. )
  601. goto tolua_lerror;
  602. else
  603. {
  604. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  605. const Vector3* position = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  606. const Quaternion* rotation = ((const Quaternion*) tolua_tousertype(tolua_S,3,0));
  607. const Vector3* scale = ((const Vector3*) tolua_tousertype(tolua_S,4,0));
  608. #ifndef TOLUA_RELEASE
  609. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTransform'", NULL);
  610. #endif
  611. {
  612. self->SetTransform(*position,*rotation,*scale);
  613. }
  614. }
  615. return 0;
  616. tolua_lerror:
  617. return tolua_Scene_Node_SetTransform01(tolua_S);
  618. }
  619. #endif //#ifndef TOLUA_DISABLE
  620. /* method: SetWorldPosition of class Node */
  621. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetWorldPosition00
  622. static int tolua_Scene_Node_SetWorldPosition00(lua_State* tolua_S)
  623. {
  624. #ifndef TOLUA_RELEASE
  625. tolua_Error tolua_err;
  626. if (
  627. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  628. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  629. !tolua_isnoobj(tolua_S,3,&tolua_err)
  630. )
  631. goto tolua_lerror;
  632. else
  633. #endif
  634. {
  635. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  636. const Vector3* position = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  637. #ifndef TOLUA_RELEASE
  638. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWorldPosition'", NULL);
  639. #endif
  640. {
  641. self->SetWorldPosition(*position);
  642. }
  643. }
  644. return 0;
  645. #ifndef TOLUA_RELEASE
  646. tolua_lerror:
  647. tolua_error(tolua_S,"#ferror in function 'SetWorldPosition'.",&tolua_err);
  648. return 0;
  649. #endif
  650. }
  651. #endif //#ifndef TOLUA_DISABLE
  652. /* method: SetWorldRotation of class Node */
  653. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetWorldRotation00
  654. static int tolua_Scene_Node_SetWorldRotation00(lua_State* tolua_S)
  655. {
  656. #ifndef TOLUA_RELEASE
  657. tolua_Error tolua_err;
  658. if (
  659. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  660. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Quaternion",0,&tolua_err)) ||
  661. !tolua_isnoobj(tolua_S,3,&tolua_err)
  662. )
  663. goto tolua_lerror;
  664. else
  665. #endif
  666. {
  667. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  668. const Quaternion* rotation = ((const Quaternion*) tolua_tousertype(tolua_S,2,0));
  669. #ifndef TOLUA_RELEASE
  670. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWorldRotation'", NULL);
  671. #endif
  672. {
  673. self->SetWorldRotation(*rotation);
  674. }
  675. }
  676. return 0;
  677. #ifndef TOLUA_RELEASE
  678. tolua_lerror:
  679. tolua_error(tolua_S,"#ferror in function 'SetWorldRotation'.",&tolua_err);
  680. return 0;
  681. #endif
  682. }
  683. #endif //#ifndef TOLUA_DISABLE
  684. /* method: SetWorldDirection of class Node */
  685. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetWorldDirection00
  686. static int tolua_Scene_Node_SetWorldDirection00(lua_State* tolua_S)
  687. {
  688. #ifndef TOLUA_RELEASE
  689. tolua_Error tolua_err;
  690. if (
  691. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  692. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  693. !tolua_isnoobj(tolua_S,3,&tolua_err)
  694. )
  695. goto tolua_lerror;
  696. else
  697. #endif
  698. {
  699. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  700. const Vector3* direction = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  701. #ifndef TOLUA_RELEASE
  702. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWorldDirection'", NULL);
  703. #endif
  704. {
  705. self->SetWorldDirection(*direction);
  706. }
  707. }
  708. return 0;
  709. #ifndef TOLUA_RELEASE
  710. tolua_lerror:
  711. tolua_error(tolua_S,"#ferror in function 'SetWorldDirection'.",&tolua_err);
  712. return 0;
  713. #endif
  714. }
  715. #endif //#ifndef TOLUA_DISABLE
  716. /* method: SetWorldScale of class Node */
  717. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetWorldScale00
  718. static int tolua_Scene_Node_SetWorldScale00(lua_State* tolua_S)
  719. {
  720. #ifndef TOLUA_RELEASE
  721. tolua_Error tolua_err;
  722. if (
  723. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  724. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  725. !tolua_isnoobj(tolua_S,3,&tolua_err)
  726. )
  727. goto tolua_lerror;
  728. else
  729. #endif
  730. {
  731. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  732. float scale = ((float) tolua_tonumber(tolua_S,2,0));
  733. #ifndef TOLUA_RELEASE
  734. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWorldScale'", NULL);
  735. #endif
  736. {
  737. self->SetWorldScale(scale);
  738. }
  739. }
  740. return 0;
  741. #ifndef TOLUA_RELEASE
  742. tolua_lerror:
  743. tolua_error(tolua_S,"#ferror in function 'SetWorldScale'.",&tolua_err);
  744. return 0;
  745. #endif
  746. }
  747. #endif //#ifndef TOLUA_DISABLE
  748. /* method: SetWorldScale of class Node */
  749. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetWorldScale01
  750. static int tolua_Scene_Node_SetWorldScale01(lua_State* tolua_S)
  751. {
  752. tolua_Error tolua_err;
  753. if (
  754. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  755. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  756. !tolua_isnoobj(tolua_S,3,&tolua_err)
  757. )
  758. goto tolua_lerror;
  759. else
  760. {
  761. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  762. const Vector3* scale = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  763. #ifndef TOLUA_RELEASE
  764. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWorldScale'", NULL);
  765. #endif
  766. {
  767. self->SetWorldScale(*scale);
  768. }
  769. }
  770. return 0;
  771. tolua_lerror:
  772. return tolua_Scene_Node_SetWorldScale00(tolua_S);
  773. }
  774. #endif //#ifndef TOLUA_DISABLE
  775. /* method: SetWorldTransform of class Node */
  776. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetWorldTransform00
  777. static int tolua_Scene_Node_SetWorldTransform00(lua_State* tolua_S)
  778. {
  779. #ifndef TOLUA_RELEASE
  780. tolua_Error tolua_err;
  781. if (
  782. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  783. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  784. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Quaternion",0,&tolua_err)) ||
  785. !tolua_isnoobj(tolua_S,4,&tolua_err)
  786. )
  787. goto tolua_lerror;
  788. else
  789. #endif
  790. {
  791. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  792. const Vector3* position = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  793. const Quaternion* rotation = ((const Quaternion*) tolua_tousertype(tolua_S,3,0));
  794. #ifndef TOLUA_RELEASE
  795. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWorldTransform'", NULL);
  796. #endif
  797. {
  798. self->SetWorldTransform(*position,*rotation);
  799. }
  800. }
  801. return 0;
  802. #ifndef TOLUA_RELEASE
  803. tolua_lerror:
  804. tolua_error(tolua_S,"#ferror in function 'SetWorldTransform'.",&tolua_err);
  805. return 0;
  806. #endif
  807. }
  808. #endif //#ifndef TOLUA_DISABLE
  809. /* method: SetWorldTransform of class Node */
  810. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetWorldTransform01
  811. static int tolua_Scene_Node_SetWorldTransform01(lua_State* tolua_S)
  812. {
  813. tolua_Error tolua_err;
  814. if (
  815. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  816. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  817. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Quaternion",0,&tolua_err)) ||
  818. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  819. !tolua_isnoobj(tolua_S,5,&tolua_err)
  820. )
  821. goto tolua_lerror;
  822. else
  823. {
  824. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  825. const Vector3* position = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  826. const Quaternion* rotation = ((const Quaternion*) tolua_tousertype(tolua_S,3,0));
  827. float scale = ((float) tolua_tonumber(tolua_S,4,0));
  828. #ifndef TOLUA_RELEASE
  829. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWorldTransform'", NULL);
  830. #endif
  831. {
  832. self->SetWorldTransform(*position,*rotation,scale);
  833. }
  834. }
  835. return 0;
  836. tolua_lerror:
  837. return tolua_Scene_Node_SetWorldTransform00(tolua_S);
  838. }
  839. #endif //#ifndef TOLUA_DISABLE
  840. /* method: SetWorldTransform of class Node */
  841. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetWorldTransform02
  842. static int tolua_Scene_Node_SetWorldTransform02(lua_State* tolua_S)
  843. {
  844. tolua_Error tolua_err;
  845. if (
  846. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  847. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  848. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Quaternion",0,&tolua_err)) ||
  849. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Vector3",0,&tolua_err)) ||
  850. !tolua_isnoobj(tolua_S,5,&tolua_err)
  851. )
  852. goto tolua_lerror;
  853. else
  854. {
  855. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  856. const Vector3* position = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  857. const Quaternion* rotation = ((const Quaternion*) tolua_tousertype(tolua_S,3,0));
  858. const Vector3* scale = ((const Vector3*) tolua_tousertype(tolua_S,4,0));
  859. #ifndef TOLUA_RELEASE
  860. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWorldTransform'", NULL);
  861. #endif
  862. {
  863. self->SetWorldTransform(*position,*rotation,*scale);
  864. }
  865. }
  866. return 0;
  867. tolua_lerror:
  868. return tolua_Scene_Node_SetWorldTransform01(tolua_S);
  869. }
  870. #endif //#ifndef TOLUA_DISABLE
  871. /* method: Translate of class Node */
  872. #ifndef TOLUA_DISABLE_tolua_Scene_Node_Translate00
  873. static int tolua_Scene_Node_Translate00(lua_State* tolua_S)
  874. {
  875. #ifndef TOLUA_RELEASE
  876. tolua_Error tolua_err;
  877. if (
  878. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  879. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  880. !tolua_isnoobj(tolua_S,3,&tolua_err)
  881. )
  882. goto tolua_lerror;
  883. else
  884. #endif
  885. {
  886. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  887. const Vector3* delta = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  888. #ifndef TOLUA_RELEASE
  889. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Translate'", NULL);
  890. #endif
  891. {
  892. self->Translate(*delta);
  893. }
  894. }
  895. return 0;
  896. #ifndef TOLUA_RELEASE
  897. tolua_lerror:
  898. tolua_error(tolua_S,"#ferror in function 'Translate'.",&tolua_err);
  899. return 0;
  900. #endif
  901. }
  902. #endif //#ifndef TOLUA_DISABLE
  903. /* method: TranslateRelative of class Node */
  904. #ifndef TOLUA_DISABLE_tolua_Scene_Node_TranslateRelative00
  905. static int tolua_Scene_Node_TranslateRelative00(lua_State* tolua_S)
  906. {
  907. #ifndef TOLUA_RELEASE
  908. tolua_Error tolua_err;
  909. if (
  910. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  911. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  912. !tolua_isnoobj(tolua_S,3,&tolua_err)
  913. )
  914. goto tolua_lerror;
  915. else
  916. #endif
  917. {
  918. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  919. const Vector3* delta = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  920. #ifndef TOLUA_RELEASE
  921. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'TranslateRelative'", NULL);
  922. #endif
  923. {
  924. self->TranslateRelative(*delta);
  925. }
  926. }
  927. return 0;
  928. #ifndef TOLUA_RELEASE
  929. tolua_lerror:
  930. tolua_error(tolua_S,"#ferror in function 'TranslateRelative'.",&tolua_err);
  931. return 0;
  932. #endif
  933. }
  934. #endif //#ifndef TOLUA_DISABLE
  935. /* method: Rotate of class Node */
  936. #ifndef TOLUA_DISABLE_tolua_Scene_Node_Rotate00
  937. static int tolua_Scene_Node_Rotate00(lua_State* tolua_S)
  938. {
  939. #ifndef TOLUA_RELEASE
  940. tolua_Error tolua_err;
  941. if (
  942. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  943. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Quaternion",0,&tolua_err)) ||
  944. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  945. !tolua_isnoobj(tolua_S,4,&tolua_err)
  946. )
  947. goto tolua_lerror;
  948. else
  949. #endif
  950. {
  951. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  952. const Quaternion* delta = ((const Quaternion*) tolua_tousertype(tolua_S,2,0));
  953. bool fixedAxis = ((bool) tolua_toboolean(tolua_S,3,false));
  954. #ifndef TOLUA_RELEASE
  955. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Rotate'", NULL);
  956. #endif
  957. {
  958. self->Rotate(*delta,fixedAxis);
  959. }
  960. }
  961. return 0;
  962. #ifndef TOLUA_RELEASE
  963. tolua_lerror:
  964. tolua_error(tolua_S,"#ferror in function 'Rotate'.",&tolua_err);
  965. return 0;
  966. #endif
  967. }
  968. #endif //#ifndef TOLUA_DISABLE
  969. /* method: Pitch of class Node */
  970. #ifndef TOLUA_DISABLE_tolua_Scene_Node_Pitch00
  971. static int tolua_Scene_Node_Pitch00(lua_State* tolua_S)
  972. {
  973. #ifndef TOLUA_RELEASE
  974. tolua_Error tolua_err;
  975. if (
  976. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  977. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  978. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  979. !tolua_isnoobj(tolua_S,4,&tolua_err)
  980. )
  981. goto tolua_lerror;
  982. else
  983. #endif
  984. {
  985. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  986. float angle = ((float) tolua_tonumber(tolua_S,2,0));
  987. bool fixedAxis = ((bool) tolua_toboolean(tolua_S,3,false));
  988. #ifndef TOLUA_RELEASE
  989. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Pitch'", NULL);
  990. #endif
  991. {
  992. self->Pitch(angle,fixedAxis);
  993. }
  994. }
  995. return 0;
  996. #ifndef TOLUA_RELEASE
  997. tolua_lerror:
  998. tolua_error(tolua_S,"#ferror in function 'Pitch'.",&tolua_err);
  999. return 0;
  1000. #endif
  1001. }
  1002. #endif //#ifndef TOLUA_DISABLE
  1003. /* method: Yaw of class Node */
  1004. #ifndef TOLUA_DISABLE_tolua_Scene_Node_Yaw00
  1005. static int tolua_Scene_Node_Yaw00(lua_State* tolua_S)
  1006. {
  1007. #ifndef TOLUA_RELEASE
  1008. tolua_Error tolua_err;
  1009. if (
  1010. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1011. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1012. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  1013. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1014. )
  1015. goto tolua_lerror;
  1016. else
  1017. #endif
  1018. {
  1019. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1020. float angle = ((float) tolua_tonumber(tolua_S,2,0));
  1021. bool fixedAxis = ((bool) tolua_toboolean(tolua_S,3,false));
  1022. #ifndef TOLUA_RELEASE
  1023. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Yaw'", NULL);
  1024. #endif
  1025. {
  1026. self->Yaw(angle,fixedAxis);
  1027. }
  1028. }
  1029. return 0;
  1030. #ifndef TOLUA_RELEASE
  1031. tolua_lerror:
  1032. tolua_error(tolua_S,"#ferror in function 'Yaw'.",&tolua_err);
  1033. return 0;
  1034. #endif
  1035. }
  1036. #endif //#ifndef TOLUA_DISABLE
  1037. /* method: Roll of class Node */
  1038. #ifndef TOLUA_DISABLE_tolua_Scene_Node_Roll00
  1039. static int tolua_Scene_Node_Roll00(lua_State* tolua_S)
  1040. {
  1041. #ifndef TOLUA_RELEASE
  1042. tolua_Error tolua_err;
  1043. if (
  1044. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1045. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1046. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  1047. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1048. )
  1049. goto tolua_lerror;
  1050. else
  1051. #endif
  1052. {
  1053. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1054. float angle = ((float) tolua_tonumber(tolua_S,2,0));
  1055. bool fixedAxis = ((bool) tolua_toboolean(tolua_S,3,false));
  1056. #ifndef TOLUA_RELEASE
  1057. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Roll'", NULL);
  1058. #endif
  1059. {
  1060. self->Roll(angle,fixedAxis);
  1061. }
  1062. }
  1063. return 0;
  1064. #ifndef TOLUA_RELEASE
  1065. tolua_lerror:
  1066. tolua_error(tolua_S,"#ferror in function 'Roll'.",&tolua_err);
  1067. return 0;
  1068. #endif
  1069. }
  1070. #endif //#ifndef TOLUA_DISABLE
  1071. /* method: LookAt of class Node */
  1072. #ifndef TOLUA_DISABLE_tolua_Scene_Node_LookAt00
  1073. static int tolua_Scene_Node_LookAt00(lua_State* tolua_S)
  1074. {
  1075. #ifndef TOLUA_RELEASE
  1076. tolua_Error tolua_err;
  1077. if (
  1078. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1079. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  1080. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1081. )
  1082. goto tolua_lerror;
  1083. else
  1084. #endif
  1085. {
  1086. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1087. const Vector3* target = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  1088. #ifndef TOLUA_RELEASE
  1089. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'LookAt'", NULL);
  1090. #endif
  1091. {
  1092. self->LookAt(*target);
  1093. }
  1094. }
  1095. return 0;
  1096. #ifndef TOLUA_RELEASE
  1097. tolua_lerror:
  1098. tolua_error(tolua_S,"#ferror in function 'LookAt'.",&tolua_err);
  1099. return 0;
  1100. #endif
  1101. }
  1102. #endif //#ifndef TOLUA_DISABLE
  1103. /* method: LookAt of class Node */
  1104. #ifndef TOLUA_DISABLE_tolua_Scene_Node_LookAt01
  1105. static int tolua_Scene_Node_LookAt01(lua_State* tolua_S)
  1106. {
  1107. tolua_Error tolua_err;
  1108. if (
  1109. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1110. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  1111. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
  1112. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1113. )
  1114. goto tolua_lerror;
  1115. else
  1116. {
  1117. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1118. const Vector3* target = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  1119. const Vector3* upAxis = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
  1120. #ifndef TOLUA_RELEASE
  1121. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'LookAt'", NULL);
  1122. #endif
  1123. {
  1124. self->LookAt(*target,*upAxis);
  1125. }
  1126. }
  1127. return 0;
  1128. tolua_lerror:
  1129. return tolua_Scene_Node_LookAt00(tolua_S);
  1130. }
  1131. #endif //#ifndef TOLUA_DISABLE
  1132. /* method: Scale of class Node */
  1133. #ifndef TOLUA_DISABLE_tolua_Scene_Node_Scale00
  1134. static int tolua_Scene_Node_Scale00(lua_State* tolua_S)
  1135. {
  1136. #ifndef TOLUA_RELEASE
  1137. tolua_Error tolua_err;
  1138. if (
  1139. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1140. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1141. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1142. )
  1143. goto tolua_lerror;
  1144. else
  1145. #endif
  1146. {
  1147. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1148. float scale = ((float) tolua_tonumber(tolua_S,2,0));
  1149. #ifndef TOLUA_RELEASE
  1150. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Scale'", NULL);
  1151. #endif
  1152. {
  1153. self->Scale(scale);
  1154. }
  1155. }
  1156. return 0;
  1157. #ifndef TOLUA_RELEASE
  1158. tolua_lerror:
  1159. tolua_error(tolua_S,"#ferror in function 'Scale'.",&tolua_err);
  1160. return 0;
  1161. #endif
  1162. }
  1163. #endif //#ifndef TOLUA_DISABLE
  1164. /* method: Scale of class Node */
  1165. #ifndef TOLUA_DISABLE_tolua_Scene_Node_Scale01
  1166. static int tolua_Scene_Node_Scale01(lua_State* tolua_S)
  1167. {
  1168. tolua_Error tolua_err;
  1169. if (
  1170. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1171. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  1172. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1173. )
  1174. goto tolua_lerror;
  1175. else
  1176. {
  1177. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1178. const Vector3* scale = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  1179. #ifndef TOLUA_RELEASE
  1180. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Scale'", NULL);
  1181. #endif
  1182. {
  1183. self->Scale(*scale);
  1184. }
  1185. }
  1186. return 0;
  1187. tolua_lerror:
  1188. return tolua_Scene_Node_Scale00(tolua_S);
  1189. }
  1190. #endif //#ifndef TOLUA_DISABLE
  1191. /* method: SetEnabled of class Node */
  1192. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetEnabled00
  1193. static int tolua_Scene_Node_SetEnabled00(lua_State* tolua_S)
  1194. {
  1195. #ifndef TOLUA_RELEASE
  1196. tolua_Error tolua_err;
  1197. if (
  1198. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1199. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  1200. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1201. )
  1202. goto tolua_lerror;
  1203. else
  1204. #endif
  1205. {
  1206. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1207. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  1208. #ifndef TOLUA_RELEASE
  1209. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEnabled'", NULL);
  1210. #endif
  1211. {
  1212. self->SetEnabled(enable);
  1213. }
  1214. }
  1215. return 0;
  1216. #ifndef TOLUA_RELEASE
  1217. tolua_lerror:
  1218. tolua_error(tolua_S,"#ferror in function 'SetEnabled'.",&tolua_err);
  1219. return 0;
  1220. #endif
  1221. }
  1222. #endif //#ifndef TOLUA_DISABLE
  1223. /* method: SetEnabled of class Node */
  1224. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetEnabled01
  1225. static int tolua_Scene_Node_SetEnabled01(lua_State* tolua_S)
  1226. {
  1227. tolua_Error tolua_err;
  1228. if (
  1229. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1230. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  1231. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  1232. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1233. )
  1234. goto tolua_lerror;
  1235. else
  1236. {
  1237. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1238. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  1239. bool recursive = ((bool) tolua_toboolean(tolua_S,3,0));
  1240. #ifndef TOLUA_RELEASE
  1241. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEnabled'", NULL);
  1242. #endif
  1243. {
  1244. self->SetEnabled(enable,recursive);
  1245. }
  1246. }
  1247. return 0;
  1248. tolua_lerror:
  1249. return tolua_Scene_Node_SetEnabled00(tolua_S);
  1250. }
  1251. #endif //#ifndef TOLUA_DISABLE
  1252. /* method: SetOwner of class Node */
  1253. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetOwner00
  1254. static int tolua_Scene_Node_SetOwner00(lua_State* tolua_S)
  1255. {
  1256. #ifndef TOLUA_RELEASE
  1257. tolua_Error tolua_err;
  1258. if (
  1259. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1260. !tolua_isusertype(tolua_S,2,"Connection",0,&tolua_err) ||
  1261. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1262. )
  1263. goto tolua_lerror;
  1264. else
  1265. #endif
  1266. {
  1267. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1268. Connection* owner = ((Connection*) tolua_tousertype(tolua_S,2,0));
  1269. #ifndef TOLUA_RELEASE
  1270. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOwner'", NULL);
  1271. #endif
  1272. {
  1273. self->SetOwner(owner);
  1274. }
  1275. }
  1276. return 0;
  1277. #ifndef TOLUA_RELEASE
  1278. tolua_lerror:
  1279. tolua_error(tolua_S,"#ferror in function 'SetOwner'.",&tolua_err);
  1280. return 0;
  1281. #endif
  1282. }
  1283. #endif //#ifndef TOLUA_DISABLE
  1284. /* method: MarkDirty of class Node */
  1285. #ifndef TOLUA_DISABLE_tolua_Scene_Node_MarkDirty00
  1286. static int tolua_Scene_Node_MarkDirty00(lua_State* tolua_S)
  1287. {
  1288. #ifndef TOLUA_RELEASE
  1289. tolua_Error tolua_err;
  1290. if (
  1291. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1292. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1293. )
  1294. goto tolua_lerror;
  1295. else
  1296. #endif
  1297. {
  1298. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1299. #ifndef TOLUA_RELEASE
  1300. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'MarkDirty'", NULL);
  1301. #endif
  1302. {
  1303. self->MarkDirty();
  1304. }
  1305. }
  1306. return 0;
  1307. #ifndef TOLUA_RELEASE
  1308. tolua_lerror:
  1309. tolua_error(tolua_S,"#ferror in function 'MarkDirty'.",&tolua_err);
  1310. return 0;
  1311. #endif
  1312. }
  1313. #endif //#ifndef TOLUA_DISABLE
  1314. /* method: CreateChild of class Node */
  1315. #ifndef TOLUA_DISABLE_tolua_Scene_Node_CreateChild00
  1316. static int tolua_Scene_Node_CreateChild00(lua_State* tolua_S)
  1317. {
  1318. #ifndef TOLUA_RELEASE
  1319. tolua_Error tolua_err;
  1320. if (
  1321. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1322. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1323. )
  1324. goto tolua_lerror;
  1325. else
  1326. #endif
  1327. {
  1328. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1329. #ifndef TOLUA_RELEASE
  1330. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'CreateChild'", NULL);
  1331. #endif
  1332. {
  1333. Node* tolua_ret = (Node*) self->CreateChild();
  1334. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Node");
  1335. }
  1336. }
  1337. return 1;
  1338. #ifndef TOLUA_RELEASE
  1339. tolua_lerror:
  1340. tolua_error(tolua_S,"#ferror in function 'CreateChild'.",&tolua_err);
  1341. return 0;
  1342. #endif
  1343. }
  1344. #endif //#ifndef TOLUA_DISABLE
  1345. /* method: CreateChild of class Node */
  1346. #ifndef TOLUA_DISABLE_tolua_Scene_Node_CreateChild01
  1347. static int tolua_Scene_Node_CreateChild01(lua_State* tolua_S)
  1348. {
  1349. tolua_Error tolua_err;
  1350. if (
  1351. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1352. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1353. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  1354. !tolua_isnumber(tolua_S,4,1,&tolua_err) ||
  1355. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1356. )
  1357. goto tolua_lerror;
  1358. else
  1359. {
  1360. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1361. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1362. CreateMode mode = ((CreateMode) (int) tolua_tonumber(tolua_S,3,REPLICATED));
  1363. unsigned id = ((unsigned) tolua_tonumber(tolua_S,4,0));
  1364. #ifndef TOLUA_RELEASE
  1365. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'CreateChild'", NULL);
  1366. #endif
  1367. {
  1368. Node* tolua_ret = (Node*) self->CreateChild(*name,mode,id);
  1369. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Node");
  1370. }
  1371. }
  1372. return 1;
  1373. tolua_lerror:
  1374. return tolua_Scene_Node_CreateChild00(tolua_S);
  1375. }
  1376. #endif //#ifndef TOLUA_DISABLE
  1377. /* method: AddChild of class Node */
  1378. #ifndef TOLUA_DISABLE_tolua_Scene_Node_AddChild00
  1379. static int tolua_Scene_Node_AddChild00(lua_State* tolua_S)
  1380. {
  1381. #ifndef TOLUA_RELEASE
  1382. tolua_Error tolua_err;
  1383. if (
  1384. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1385. !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
  1386. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1387. )
  1388. goto tolua_lerror;
  1389. else
  1390. #endif
  1391. {
  1392. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1393. Node* node = ((Node*) tolua_tousertype(tolua_S,2,0));
  1394. #ifndef TOLUA_RELEASE
  1395. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddChild'", NULL);
  1396. #endif
  1397. {
  1398. self->AddChild(node);
  1399. }
  1400. }
  1401. return 0;
  1402. #ifndef TOLUA_RELEASE
  1403. tolua_lerror:
  1404. tolua_error(tolua_S,"#ferror in function 'AddChild'.",&tolua_err);
  1405. return 0;
  1406. #endif
  1407. }
  1408. #endif //#ifndef TOLUA_DISABLE
  1409. /* method: RemoveChild of class Node */
  1410. #ifndef TOLUA_DISABLE_tolua_Scene_Node_RemoveChild00
  1411. static int tolua_Scene_Node_RemoveChild00(lua_State* tolua_S)
  1412. {
  1413. #ifndef TOLUA_RELEASE
  1414. tolua_Error tolua_err;
  1415. if (
  1416. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1417. !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
  1418. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1419. )
  1420. goto tolua_lerror;
  1421. else
  1422. #endif
  1423. {
  1424. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1425. Node* node = ((Node*) tolua_tousertype(tolua_S,2,0));
  1426. #ifndef TOLUA_RELEASE
  1427. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveChild'", NULL);
  1428. #endif
  1429. {
  1430. self->RemoveChild(node);
  1431. }
  1432. }
  1433. return 0;
  1434. #ifndef TOLUA_RELEASE
  1435. tolua_lerror:
  1436. tolua_error(tolua_S,"#ferror in function 'RemoveChild'.",&tolua_err);
  1437. return 0;
  1438. #endif
  1439. }
  1440. #endif //#ifndef TOLUA_DISABLE
  1441. /* method: RemoveAllChildren of class Node */
  1442. #ifndef TOLUA_DISABLE_tolua_Scene_Node_RemoveAllChildren00
  1443. static int tolua_Scene_Node_RemoveAllChildren00(lua_State* tolua_S)
  1444. {
  1445. #ifndef TOLUA_RELEASE
  1446. tolua_Error tolua_err;
  1447. if (
  1448. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1449. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1450. )
  1451. goto tolua_lerror;
  1452. else
  1453. #endif
  1454. {
  1455. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1456. #ifndef TOLUA_RELEASE
  1457. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAllChildren'", NULL);
  1458. #endif
  1459. {
  1460. self->RemoveAllChildren();
  1461. }
  1462. }
  1463. return 0;
  1464. #ifndef TOLUA_RELEASE
  1465. tolua_lerror:
  1466. tolua_error(tolua_S,"#ferror in function 'RemoveAllChildren'.",&tolua_err);
  1467. return 0;
  1468. #endif
  1469. }
  1470. #endif //#ifndef TOLUA_DISABLE
  1471. /* method: CreateComponent of class Node */
  1472. #ifndef TOLUA_DISABLE_tolua_Scene_Node_CreateComponent00
  1473. static int tolua_Scene_Node_CreateComponent00(lua_State* tolua_S)
  1474. {
  1475. #ifndef TOLUA_RELEASE
  1476. tolua_Error tolua_err;
  1477. if (
  1478. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1479. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  1480. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  1481. !tolua_isnumber(tolua_S,4,1,&tolua_err) ||
  1482. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1483. )
  1484. goto tolua_lerror;
  1485. else
  1486. #endif
  1487. {
  1488. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1489. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  1490. CreateMode mode = ((CreateMode) (int) tolua_tonumber(tolua_S,3,REPLICATED));
  1491. unsigned id = ((unsigned) tolua_tonumber(tolua_S,4,0));
  1492. #ifndef TOLUA_RELEASE
  1493. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'CreateComponent'", NULL);
  1494. #endif
  1495. {
  1496. Component* tolua_ret = (Component*) self->CreateComponent(type,mode,id);
  1497. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Component");
  1498. }
  1499. }
  1500. return 1;
  1501. #ifndef TOLUA_RELEASE
  1502. tolua_lerror:
  1503. tolua_error(tolua_S,"#ferror in function 'CreateComponent'.",&tolua_err);
  1504. return 0;
  1505. #endif
  1506. }
  1507. #endif //#ifndef TOLUA_DISABLE
  1508. /* method: GetOrCreateComponent of class Node */
  1509. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetOrCreateComponent00
  1510. static int tolua_Scene_Node_GetOrCreateComponent00(lua_State* tolua_S)
  1511. {
  1512. #ifndef TOLUA_RELEASE
  1513. tolua_Error tolua_err;
  1514. if (
  1515. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1516. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  1517. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  1518. !tolua_isnumber(tolua_S,4,1,&tolua_err) ||
  1519. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1520. )
  1521. goto tolua_lerror;
  1522. else
  1523. #endif
  1524. {
  1525. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1526. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  1527. CreateMode mode = ((CreateMode) (int) tolua_tonumber(tolua_S,3,REPLICATED));
  1528. unsigned id = ((unsigned) tolua_tonumber(tolua_S,4,0));
  1529. #ifndef TOLUA_RELEASE
  1530. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOrCreateComponent'", NULL);
  1531. #endif
  1532. {
  1533. Component* tolua_ret = (Component*) self->GetOrCreateComponent(type,mode,id);
  1534. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Component");
  1535. }
  1536. }
  1537. return 1;
  1538. #ifndef TOLUA_RELEASE
  1539. tolua_lerror:
  1540. tolua_error(tolua_S,"#ferror in function 'GetOrCreateComponent'.",&tolua_err);
  1541. return 0;
  1542. #endif
  1543. }
  1544. #endif //#ifndef TOLUA_DISABLE
  1545. /* method: RemoveComponent of class Node */
  1546. #ifndef TOLUA_DISABLE_tolua_Scene_Node_RemoveComponent00
  1547. static int tolua_Scene_Node_RemoveComponent00(lua_State* tolua_S)
  1548. {
  1549. #ifndef TOLUA_RELEASE
  1550. tolua_Error tolua_err;
  1551. if (
  1552. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1553. !tolua_isusertype(tolua_S,2,"Component",0,&tolua_err) ||
  1554. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1555. )
  1556. goto tolua_lerror;
  1557. else
  1558. #endif
  1559. {
  1560. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1561. Component* component = ((Component*) tolua_tousertype(tolua_S,2,0));
  1562. #ifndef TOLUA_RELEASE
  1563. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveComponent'", NULL);
  1564. #endif
  1565. {
  1566. self->RemoveComponent(component);
  1567. }
  1568. }
  1569. return 0;
  1570. #ifndef TOLUA_RELEASE
  1571. tolua_lerror:
  1572. tolua_error(tolua_S,"#ferror in function 'RemoveComponent'.",&tolua_err);
  1573. return 0;
  1574. #endif
  1575. }
  1576. #endif //#ifndef TOLUA_DISABLE
  1577. /* method: RemoveComponent of class Node */
  1578. #ifndef TOLUA_DISABLE_tolua_Scene_Node_RemoveComponent01
  1579. static int tolua_Scene_Node_RemoveComponent01(lua_State* tolua_S)
  1580. {
  1581. tolua_Error tolua_err;
  1582. if (
  1583. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1584. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  1585. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1586. )
  1587. goto tolua_lerror;
  1588. else
  1589. {
  1590. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1591. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  1592. #ifndef TOLUA_RELEASE
  1593. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveComponent'", NULL);
  1594. #endif
  1595. {
  1596. self->RemoveComponent(type);
  1597. }
  1598. }
  1599. return 0;
  1600. tolua_lerror:
  1601. return tolua_Scene_Node_RemoveComponent00(tolua_S);
  1602. }
  1603. #endif //#ifndef TOLUA_DISABLE
  1604. /* method: RemoveAllComponents of class Node */
  1605. #ifndef TOLUA_DISABLE_tolua_Scene_Node_RemoveAllComponents00
  1606. static int tolua_Scene_Node_RemoveAllComponents00(lua_State* tolua_S)
  1607. {
  1608. #ifndef TOLUA_RELEASE
  1609. tolua_Error tolua_err;
  1610. if (
  1611. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1612. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1613. )
  1614. goto tolua_lerror;
  1615. else
  1616. #endif
  1617. {
  1618. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1619. #ifndef TOLUA_RELEASE
  1620. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAllComponents'", NULL);
  1621. #endif
  1622. {
  1623. self->RemoveAllComponents();
  1624. }
  1625. }
  1626. return 0;
  1627. #ifndef TOLUA_RELEASE
  1628. tolua_lerror:
  1629. tolua_error(tolua_S,"#ferror in function 'RemoveAllComponents'.",&tolua_err);
  1630. return 0;
  1631. #endif
  1632. }
  1633. #endif //#ifndef TOLUA_DISABLE
  1634. /* method: Clone of class Node */
  1635. #ifndef TOLUA_DISABLE_tolua_Scene_Node_Clone00
  1636. static int tolua_Scene_Node_Clone00(lua_State* tolua_S)
  1637. {
  1638. #ifndef TOLUA_RELEASE
  1639. tolua_Error tolua_err;
  1640. if (
  1641. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1642. !tolua_isnumber(tolua_S,2,1,&tolua_err) ||
  1643. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1644. )
  1645. goto tolua_lerror;
  1646. else
  1647. #endif
  1648. {
  1649. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1650. CreateMode mode = ((CreateMode) (int) tolua_tonumber(tolua_S,2,REPLICATED));
  1651. #ifndef TOLUA_RELEASE
  1652. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Clone'", NULL);
  1653. #endif
  1654. {
  1655. Node* tolua_ret = (Node*) self->Clone(mode);
  1656. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Node");
  1657. }
  1658. }
  1659. return 1;
  1660. #ifndef TOLUA_RELEASE
  1661. tolua_lerror:
  1662. tolua_error(tolua_S,"#ferror in function 'Clone'.",&tolua_err);
  1663. return 0;
  1664. #endif
  1665. }
  1666. #endif //#ifndef TOLUA_DISABLE
  1667. /* method: Remove of class Node */
  1668. #ifndef TOLUA_DISABLE_tolua_Scene_Node_Remove00
  1669. static int tolua_Scene_Node_Remove00(lua_State* tolua_S)
  1670. {
  1671. #ifndef TOLUA_RELEASE
  1672. tolua_Error tolua_err;
  1673. if (
  1674. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1675. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1676. )
  1677. goto tolua_lerror;
  1678. else
  1679. #endif
  1680. {
  1681. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1682. #ifndef TOLUA_RELEASE
  1683. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Remove'", NULL);
  1684. #endif
  1685. {
  1686. self->Remove();
  1687. }
  1688. }
  1689. return 0;
  1690. #ifndef TOLUA_RELEASE
  1691. tolua_lerror:
  1692. tolua_error(tolua_S,"#ferror in function 'Remove'.",&tolua_err);
  1693. return 0;
  1694. #endif
  1695. }
  1696. #endif //#ifndef TOLUA_DISABLE
  1697. /* method: SetParent of class Node */
  1698. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetParent00
  1699. static int tolua_Scene_Node_SetParent00(lua_State* tolua_S)
  1700. {
  1701. #ifndef TOLUA_RELEASE
  1702. tolua_Error tolua_err;
  1703. if (
  1704. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1705. !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
  1706. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1707. )
  1708. goto tolua_lerror;
  1709. else
  1710. #endif
  1711. {
  1712. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1713. Node* parent = ((Node*) tolua_tousertype(tolua_S,2,0));
  1714. #ifndef TOLUA_RELEASE
  1715. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetParent'", NULL);
  1716. #endif
  1717. {
  1718. self->SetParent(parent);
  1719. }
  1720. }
  1721. return 0;
  1722. #ifndef TOLUA_RELEASE
  1723. tolua_lerror:
  1724. tolua_error(tolua_S,"#ferror in function 'SetParent'.",&tolua_err);
  1725. return 0;
  1726. #endif
  1727. }
  1728. #endif //#ifndef TOLUA_DISABLE
  1729. /* method: SetVar of class Node */
  1730. #ifndef TOLUA_DISABLE_tolua_Scene_Node_SetVar00
  1731. static int tolua_Scene_Node_SetVar00(lua_State* tolua_S)
  1732. {
  1733. #ifndef TOLUA_RELEASE
  1734. tolua_Error tolua_err;
  1735. if (
  1736. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1737. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  1738. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Variant",0,&tolua_err)) ||
  1739. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1740. )
  1741. goto tolua_lerror;
  1742. else
  1743. #endif
  1744. {
  1745. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1746. ShortStringHash key = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  1747. const Variant* value = ((const Variant*) tolua_tousertype(tolua_S,3,0));
  1748. #ifndef TOLUA_RELEASE
  1749. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetVar'", NULL);
  1750. #endif
  1751. {
  1752. self->SetVar(key,*value);
  1753. }
  1754. }
  1755. return 0;
  1756. #ifndef TOLUA_RELEASE
  1757. tolua_lerror:
  1758. tolua_error(tolua_S,"#ferror in function 'SetVar'.",&tolua_err);
  1759. return 0;
  1760. #endif
  1761. }
  1762. #endif //#ifndef TOLUA_DISABLE
  1763. /* method: AddListener of class Node */
  1764. #ifndef TOLUA_DISABLE_tolua_Scene_Node_AddListener00
  1765. static int tolua_Scene_Node_AddListener00(lua_State* tolua_S)
  1766. {
  1767. #ifndef TOLUA_RELEASE
  1768. tolua_Error tolua_err;
  1769. if (
  1770. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1771. !tolua_isusertype(tolua_S,2,"Component",0,&tolua_err) ||
  1772. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1773. )
  1774. goto tolua_lerror;
  1775. else
  1776. #endif
  1777. {
  1778. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1779. Component* component = ((Component*) tolua_tousertype(tolua_S,2,0));
  1780. #ifndef TOLUA_RELEASE
  1781. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddListener'", NULL);
  1782. #endif
  1783. {
  1784. self->AddListener(component);
  1785. }
  1786. }
  1787. return 0;
  1788. #ifndef TOLUA_RELEASE
  1789. tolua_lerror:
  1790. tolua_error(tolua_S,"#ferror in function 'AddListener'.",&tolua_err);
  1791. return 0;
  1792. #endif
  1793. }
  1794. #endif //#ifndef TOLUA_DISABLE
  1795. /* method: RemoveListener of class Node */
  1796. #ifndef TOLUA_DISABLE_tolua_Scene_Node_RemoveListener00
  1797. static int tolua_Scene_Node_RemoveListener00(lua_State* tolua_S)
  1798. {
  1799. #ifndef TOLUA_RELEASE
  1800. tolua_Error tolua_err;
  1801. if (
  1802. !tolua_isusertype(tolua_S,1,"Node",0,&tolua_err) ||
  1803. !tolua_isusertype(tolua_S,2,"Component",0,&tolua_err) ||
  1804. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1805. )
  1806. goto tolua_lerror;
  1807. else
  1808. #endif
  1809. {
  1810. Node* self = (Node*) tolua_tousertype(tolua_S,1,0);
  1811. Component* component = ((Component*) tolua_tousertype(tolua_S,2,0));
  1812. #ifndef TOLUA_RELEASE
  1813. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveListener'", NULL);
  1814. #endif
  1815. {
  1816. self->RemoveListener(component);
  1817. }
  1818. }
  1819. return 0;
  1820. #ifndef TOLUA_RELEASE
  1821. tolua_lerror:
  1822. tolua_error(tolua_S,"#ferror in function 'RemoveListener'.",&tolua_err);
  1823. return 0;
  1824. #endif
  1825. }
  1826. #endif //#ifndef TOLUA_DISABLE
  1827. /* method: GetID of class Node */
  1828. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetID00
  1829. static int tolua_Scene_Node_GetID00(lua_State* tolua_S)
  1830. {
  1831. #ifndef TOLUA_RELEASE
  1832. tolua_Error tolua_err;
  1833. if (
  1834. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  1835. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1836. )
  1837. goto tolua_lerror;
  1838. else
  1839. #endif
  1840. {
  1841. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  1842. #ifndef TOLUA_RELEASE
  1843. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetID'", NULL);
  1844. #endif
  1845. {
  1846. unsigned tolua_ret = (unsigned) self->GetID();
  1847. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1848. }
  1849. }
  1850. return 1;
  1851. #ifndef TOLUA_RELEASE
  1852. tolua_lerror:
  1853. tolua_error(tolua_S,"#ferror in function 'GetID'.",&tolua_err);
  1854. return 0;
  1855. #endif
  1856. }
  1857. #endif //#ifndef TOLUA_DISABLE
  1858. /* method: GetName of class Node */
  1859. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetName00
  1860. static int tolua_Scene_Node_GetName00(lua_State* tolua_S)
  1861. {
  1862. #ifndef TOLUA_RELEASE
  1863. tolua_Error tolua_err;
  1864. if (
  1865. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  1866. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1867. )
  1868. goto tolua_lerror;
  1869. else
  1870. #endif
  1871. {
  1872. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  1873. #ifndef TOLUA_RELEASE
  1874. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetName'", NULL);
  1875. #endif
  1876. {
  1877. const String& tolua_ret = (const String&) self->GetName();
  1878. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  1879. }
  1880. }
  1881. return 1;
  1882. #ifndef TOLUA_RELEASE
  1883. tolua_lerror:
  1884. tolua_error(tolua_S,"#ferror in function 'GetName'.",&tolua_err);
  1885. return 0;
  1886. #endif
  1887. }
  1888. #endif //#ifndef TOLUA_DISABLE
  1889. /* method: GetNameHash of class Node */
  1890. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetNameHash00
  1891. static int tolua_Scene_Node_GetNameHash00(lua_State* tolua_S)
  1892. {
  1893. #ifndef TOLUA_RELEASE
  1894. tolua_Error tolua_err;
  1895. if (
  1896. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  1897. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1898. )
  1899. goto tolua_lerror;
  1900. else
  1901. #endif
  1902. {
  1903. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  1904. #ifndef TOLUA_RELEASE
  1905. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNameHash'", NULL);
  1906. #endif
  1907. {
  1908. StringHash tolua_ret = (StringHash) self->GetNameHash();
  1909. {
  1910. #ifdef __cplusplus
  1911. void* tolua_obj = Mtolua_new((StringHash)(tolua_ret));
  1912. tolua_pushusertype(tolua_S,tolua_obj,"StringHash");
  1913. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1914. #else
  1915. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(StringHash));
  1916. tolua_pushusertype(tolua_S,tolua_obj,"StringHash");
  1917. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1918. #endif
  1919. }
  1920. }
  1921. }
  1922. return 1;
  1923. #ifndef TOLUA_RELEASE
  1924. tolua_lerror:
  1925. tolua_error(tolua_S,"#ferror in function 'GetNameHash'.",&tolua_err);
  1926. return 0;
  1927. #endif
  1928. }
  1929. #endif //#ifndef TOLUA_DISABLE
  1930. /* method: GetParent of class Node */
  1931. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetParent00
  1932. static int tolua_Scene_Node_GetParent00(lua_State* tolua_S)
  1933. {
  1934. #ifndef TOLUA_RELEASE
  1935. tolua_Error tolua_err;
  1936. if (
  1937. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  1938. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1939. )
  1940. goto tolua_lerror;
  1941. else
  1942. #endif
  1943. {
  1944. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  1945. #ifndef TOLUA_RELEASE
  1946. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetParent'", NULL);
  1947. #endif
  1948. {
  1949. Node* tolua_ret = (Node*) self->GetParent();
  1950. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Node");
  1951. }
  1952. }
  1953. return 1;
  1954. #ifndef TOLUA_RELEASE
  1955. tolua_lerror:
  1956. tolua_error(tolua_S,"#ferror in function 'GetParent'.",&tolua_err);
  1957. return 0;
  1958. #endif
  1959. }
  1960. #endif //#ifndef TOLUA_DISABLE
  1961. /* method: GetScene of class Node */
  1962. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetScene00
  1963. static int tolua_Scene_Node_GetScene00(lua_State* tolua_S)
  1964. {
  1965. #ifndef TOLUA_RELEASE
  1966. tolua_Error tolua_err;
  1967. if (
  1968. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  1969. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1970. )
  1971. goto tolua_lerror;
  1972. else
  1973. #endif
  1974. {
  1975. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  1976. #ifndef TOLUA_RELEASE
  1977. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScene'", NULL);
  1978. #endif
  1979. {
  1980. Scene* tolua_ret = (Scene*) self->GetScene();
  1981. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Scene");
  1982. }
  1983. }
  1984. return 1;
  1985. #ifndef TOLUA_RELEASE
  1986. tolua_lerror:
  1987. tolua_error(tolua_S,"#ferror in function 'GetScene'.",&tolua_err);
  1988. return 0;
  1989. #endif
  1990. }
  1991. #endif //#ifndef TOLUA_DISABLE
  1992. /* method: IsEnabled of class Node */
  1993. #ifndef TOLUA_DISABLE_tolua_Scene_Node_IsEnabled00
  1994. static int tolua_Scene_Node_IsEnabled00(lua_State* tolua_S)
  1995. {
  1996. #ifndef TOLUA_RELEASE
  1997. tolua_Error tolua_err;
  1998. if (
  1999. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2000. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2001. )
  2002. goto tolua_lerror;
  2003. else
  2004. #endif
  2005. {
  2006. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2007. #ifndef TOLUA_RELEASE
  2008. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsEnabled'", NULL);
  2009. #endif
  2010. {
  2011. bool tolua_ret = (bool) self->IsEnabled();
  2012. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2013. }
  2014. }
  2015. return 1;
  2016. #ifndef TOLUA_RELEASE
  2017. tolua_lerror:
  2018. tolua_error(tolua_S,"#ferror in function 'IsEnabled'.",&tolua_err);
  2019. return 0;
  2020. #endif
  2021. }
  2022. #endif //#ifndef TOLUA_DISABLE
  2023. /* method: GetOwner of class Node */
  2024. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetOwner00
  2025. static int tolua_Scene_Node_GetOwner00(lua_State* tolua_S)
  2026. {
  2027. #ifndef TOLUA_RELEASE
  2028. tolua_Error tolua_err;
  2029. if (
  2030. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2031. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2032. )
  2033. goto tolua_lerror;
  2034. else
  2035. #endif
  2036. {
  2037. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2038. #ifndef TOLUA_RELEASE
  2039. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOwner'", NULL);
  2040. #endif
  2041. {
  2042. Connection* tolua_ret = (Connection*) self->GetOwner();
  2043. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Connection");
  2044. }
  2045. }
  2046. return 1;
  2047. #ifndef TOLUA_RELEASE
  2048. tolua_lerror:
  2049. tolua_error(tolua_S,"#ferror in function 'GetOwner'.",&tolua_err);
  2050. return 0;
  2051. #endif
  2052. }
  2053. #endif //#ifndef TOLUA_DISABLE
  2054. /* method: GetPosition of class Node */
  2055. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetPosition00
  2056. static int tolua_Scene_Node_GetPosition00(lua_State* tolua_S)
  2057. {
  2058. #ifndef TOLUA_RELEASE
  2059. tolua_Error tolua_err;
  2060. if (
  2061. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2062. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2063. )
  2064. goto tolua_lerror;
  2065. else
  2066. #endif
  2067. {
  2068. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2069. #ifndef TOLUA_RELEASE
  2070. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPosition'", NULL);
  2071. #endif
  2072. {
  2073. const Vector3& tolua_ret = (const Vector3&) self->GetPosition();
  2074. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  2075. }
  2076. }
  2077. return 1;
  2078. #ifndef TOLUA_RELEASE
  2079. tolua_lerror:
  2080. tolua_error(tolua_S,"#ferror in function 'GetPosition'.",&tolua_err);
  2081. return 0;
  2082. #endif
  2083. }
  2084. #endif //#ifndef TOLUA_DISABLE
  2085. /* method: GetRotation of class Node */
  2086. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetRotation00
  2087. static int tolua_Scene_Node_GetRotation00(lua_State* tolua_S)
  2088. {
  2089. #ifndef TOLUA_RELEASE
  2090. tolua_Error tolua_err;
  2091. if (
  2092. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2093. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2094. )
  2095. goto tolua_lerror;
  2096. else
  2097. #endif
  2098. {
  2099. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2100. #ifndef TOLUA_RELEASE
  2101. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRotation'", NULL);
  2102. #endif
  2103. {
  2104. const Quaternion& tolua_ret = (const Quaternion&) self->GetRotation();
  2105. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Quaternion");
  2106. }
  2107. }
  2108. return 1;
  2109. #ifndef TOLUA_RELEASE
  2110. tolua_lerror:
  2111. tolua_error(tolua_S,"#ferror in function 'GetRotation'.",&tolua_err);
  2112. return 0;
  2113. #endif
  2114. }
  2115. #endif //#ifndef TOLUA_DISABLE
  2116. /* method: GetDirection of class Node */
  2117. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetDirection00
  2118. static int tolua_Scene_Node_GetDirection00(lua_State* tolua_S)
  2119. {
  2120. #ifndef TOLUA_RELEASE
  2121. tolua_Error tolua_err;
  2122. if (
  2123. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2124. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2125. )
  2126. goto tolua_lerror;
  2127. else
  2128. #endif
  2129. {
  2130. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2131. #ifndef TOLUA_RELEASE
  2132. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDirection'", NULL);
  2133. #endif
  2134. {
  2135. Vector3 tolua_ret = (Vector3) self->GetDirection();
  2136. {
  2137. #ifdef __cplusplus
  2138. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  2139. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2140. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2141. #else
  2142. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  2143. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2144. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2145. #endif
  2146. }
  2147. }
  2148. }
  2149. return 1;
  2150. #ifndef TOLUA_RELEASE
  2151. tolua_lerror:
  2152. tolua_error(tolua_S,"#ferror in function 'GetDirection'.",&tolua_err);
  2153. return 0;
  2154. #endif
  2155. }
  2156. #endif //#ifndef TOLUA_DISABLE
  2157. /* method: GetScale of class Node */
  2158. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetScale00
  2159. static int tolua_Scene_Node_GetScale00(lua_State* tolua_S)
  2160. {
  2161. #ifndef TOLUA_RELEASE
  2162. tolua_Error tolua_err;
  2163. if (
  2164. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2165. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2166. )
  2167. goto tolua_lerror;
  2168. else
  2169. #endif
  2170. {
  2171. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2172. #ifndef TOLUA_RELEASE
  2173. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScale'", NULL);
  2174. #endif
  2175. {
  2176. const Vector3& tolua_ret = (const Vector3&) self->GetScale();
  2177. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  2178. }
  2179. }
  2180. return 1;
  2181. #ifndef TOLUA_RELEASE
  2182. tolua_lerror:
  2183. tolua_error(tolua_S,"#ferror in function 'GetScale'.",&tolua_err);
  2184. return 0;
  2185. #endif
  2186. }
  2187. #endif //#ifndef TOLUA_DISABLE
  2188. /* method: GetTransform of class Node */
  2189. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetTransform00
  2190. static int tolua_Scene_Node_GetTransform00(lua_State* tolua_S)
  2191. {
  2192. #ifndef TOLUA_RELEASE
  2193. tolua_Error tolua_err;
  2194. if (
  2195. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2196. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2197. )
  2198. goto tolua_lerror;
  2199. else
  2200. #endif
  2201. {
  2202. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2203. #ifndef TOLUA_RELEASE
  2204. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTransform'", NULL);
  2205. #endif
  2206. {
  2207. Matrix3x4 tolua_ret = (Matrix3x4) self->GetTransform();
  2208. {
  2209. #ifdef __cplusplus
  2210. void* tolua_obj = Mtolua_new((Matrix3x4)(tolua_ret));
  2211. tolua_pushusertype(tolua_S,tolua_obj,"Matrix3x4");
  2212. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2213. #else
  2214. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Matrix3x4));
  2215. tolua_pushusertype(tolua_S,tolua_obj,"Matrix3x4");
  2216. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2217. #endif
  2218. }
  2219. }
  2220. }
  2221. return 1;
  2222. #ifndef TOLUA_RELEASE
  2223. tolua_lerror:
  2224. tolua_error(tolua_S,"#ferror in function 'GetTransform'.",&tolua_err);
  2225. return 0;
  2226. #endif
  2227. }
  2228. #endif //#ifndef TOLUA_DISABLE
  2229. /* method: GetWorldPosition of class Node */
  2230. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetWorldPosition00
  2231. static int tolua_Scene_Node_GetWorldPosition00(lua_State* tolua_S)
  2232. {
  2233. #ifndef TOLUA_RELEASE
  2234. tolua_Error tolua_err;
  2235. if (
  2236. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2237. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2238. )
  2239. goto tolua_lerror;
  2240. else
  2241. #endif
  2242. {
  2243. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2244. #ifndef TOLUA_RELEASE
  2245. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWorldPosition'", NULL);
  2246. #endif
  2247. {
  2248. Vector3 tolua_ret = (Vector3) self->GetWorldPosition();
  2249. {
  2250. #ifdef __cplusplus
  2251. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  2252. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2253. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2254. #else
  2255. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  2256. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2257. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2258. #endif
  2259. }
  2260. }
  2261. }
  2262. return 1;
  2263. #ifndef TOLUA_RELEASE
  2264. tolua_lerror:
  2265. tolua_error(tolua_S,"#ferror in function 'GetWorldPosition'.",&tolua_err);
  2266. return 0;
  2267. #endif
  2268. }
  2269. #endif //#ifndef TOLUA_DISABLE
  2270. /* method: GetWorldRotation of class Node */
  2271. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetWorldRotation00
  2272. static int tolua_Scene_Node_GetWorldRotation00(lua_State* tolua_S)
  2273. {
  2274. #ifndef TOLUA_RELEASE
  2275. tolua_Error tolua_err;
  2276. if (
  2277. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2278. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2279. )
  2280. goto tolua_lerror;
  2281. else
  2282. #endif
  2283. {
  2284. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2285. #ifndef TOLUA_RELEASE
  2286. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWorldRotation'", NULL);
  2287. #endif
  2288. {
  2289. Quaternion tolua_ret = (Quaternion) self->GetWorldRotation();
  2290. {
  2291. #ifdef __cplusplus
  2292. void* tolua_obj = Mtolua_new((Quaternion)(tolua_ret));
  2293. tolua_pushusertype(tolua_S,tolua_obj,"Quaternion");
  2294. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2295. #else
  2296. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Quaternion));
  2297. tolua_pushusertype(tolua_S,tolua_obj,"Quaternion");
  2298. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2299. #endif
  2300. }
  2301. }
  2302. }
  2303. return 1;
  2304. #ifndef TOLUA_RELEASE
  2305. tolua_lerror:
  2306. tolua_error(tolua_S,"#ferror in function 'GetWorldRotation'.",&tolua_err);
  2307. return 0;
  2308. #endif
  2309. }
  2310. #endif //#ifndef TOLUA_DISABLE
  2311. /* method: GetWorldDirection of class Node */
  2312. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetWorldDirection00
  2313. static int tolua_Scene_Node_GetWorldDirection00(lua_State* tolua_S)
  2314. {
  2315. #ifndef TOLUA_RELEASE
  2316. tolua_Error tolua_err;
  2317. if (
  2318. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2319. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2320. )
  2321. goto tolua_lerror;
  2322. else
  2323. #endif
  2324. {
  2325. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2326. #ifndef TOLUA_RELEASE
  2327. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWorldDirection'", NULL);
  2328. #endif
  2329. {
  2330. Vector3 tolua_ret = (Vector3) self->GetWorldDirection();
  2331. {
  2332. #ifdef __cplusplus
  2333. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  2334. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2335. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2336. #else
  2337. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  2338. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2339. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2340. #endif
  2341. }
  2342. }
  2343. }
  2344. return 1;
  2345. #ifndef TOLUA_RELEASE
  2346. tolua_lerror:
  2347. tolua_error(tolua_S,"#ferror in function 'GetWorldDirection'.",&tolua_err);
  2348. return 0;
  2349. #endif
  2350. }
  2351. #endif //#ifndef TOLUA_DISABLE
  2352. /* method: GetWorldScale of class Node */
  2353. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetWorldScale00
  2354. static int tolua_Scene_Node_GetWorldScale00(lua_State* tolua_S)
  2355. {
  2356. #ifndef TOLUA_RELEASE
  2357. tolua_Error tolua_err;
  2358. if (
  2359. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2360. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2361. )
  2362. goto tolua_lerror;
  2363. else
  2364. #endif
  2365. {
  2366. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2367. #ifndef TOLUA_RELEASE
  2368. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWorldScale'", NULL);
  2369. #endif
  2370. {
  2371. Vector3 tolua_ret = (Vector3) self->GetWorldScale();
  2372. {
  2373. #ifdef __cplusplus
  2374. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  2375. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2376. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2377. #else
  2378. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  2379. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2380. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2381. #endif
  2382. }
  2383. }
  2384. }
  2385. return 1;
  2386. #ifndef TOLUA_RELEASE
  2387. tolua_lerror:
  2388. tolua_error(tolua_S,"#ferror in function 'GetWorldScale'.",&tolua_err);
  2389. return 0;
  2390. #endif
  2391. }
  2392. #endif //#ifndef TOLUA_DISABLE
  2393. /* method: GetWorldTransform of class Node */
  2394. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetWorldTransform00
  2395. static int tolua_Scene_Node_GetWorldTransform00(lua_State* tolua_S)
  2396. {
  2397. #ifndef TOLUA_RELEASE
  2398. tolua_Error tolua_err;
  2399. if (
  2400. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2401. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2402. )
  2403. goto tolua_lerror;
  2404. else
  2405. #endif
  2406. {
  2407. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2408. #ifndef TOLUA_RELEASE
  2409. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWorldTransform'", NULL);
  2410. #endif
  2411. {
  2412. const Matrix3x4& tolua_ret = (const Matrix3x4&) self->GetWorldTransform();
  2413. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Matrix3x4");
  2414. }
  2415. }
  2416. return 1;
  2417. #ifndef TOLUA_RELEASE
  2418. tolua_lerror:
  2419. tolua_error(tolua_S,"#ferror in function 'GetWorldTransform'.",&tolua_err);
  2420. return 0;
  2421. #endif
  2422. }
  2423. #endif //#ifndef TOLUA_DISABLE
  2424. /* method: LocalToWorld of class Node */
  2425. #ifndef TOLUA_DISABLE_tolua_Scene_Node_LocalToWorld00
  2426. static int tolua_Scene_Node_LocalToWorld00(lua_State* tolua_S)
  2427. {
  2428. #ifndef TOLUA_RELEASE
  2429. tolua_Error tolua_err;
  2430. if (
  2431. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2432. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  2433. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2434. )
  2435. goto tolua_lerror;
  2436. else
  2437. #endif
  2438. {
  2439. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2440. const Vector3* position = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  2441. #ifndef TOLUA_RELEASE
  2442. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'LocalToWorld'", NULL);
  2443. #endif
  2444. {
  2445. Vector3 tolua_ret = (Vector3) self->LocalToWorld(*position);
  2446. {
  2447. #ifdef __cplusplus
  2448. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  2449. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2450. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2451. #else
  2452. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  2453. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2454. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2455. #endif
  2456. }
  2457. }
  2458. }
  2459. return 1;
  2460. #ifndef TOLUA_RELEASE
  2461. tolua_lerror:
  2462. tolua_error(tolua_S,"#ferror in function 'LocalToWorld'.",&tolua_err);
  2463. return 0;
  2464. #endif
  2465. }
  2466. #endif //#ifndef TOLUA_DISABLE
  2467. /* method: LocalToWorld of class Node */
  2468. #ifndef TOLUA_DISABLE_tolua_Scene_Node_LocalToWorld01
  2469. static int tolua_Scene_Node_LocalToWorld01(lua_State* tolua_S)
  2470. {
  2471. tolua_Error tolua_err;
  2472. if (
  2473. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2474. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector4",0,&tolua_err)) ||
  2475. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2476. )
  2477. goto tolua_lerror;
  2478. else
  2479. {
  2480. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2481. const Vector4* vector = ((const Vector4*) tolua_tousertype(tolua_S,2,0));
  2482. #ifndef TOLUA_RELEASE
  2483. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'LocalToWorld'", NULL);
  2484. #endif
  2485. {
  2486. Vector3 tolua_ret = (Vector3) self->LocalToWorld(*vector);
  2487. {
  2488. #ifdef __cplusplus
  2489. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  2490. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2491. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2492. #else
  2493. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  2494. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2495. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2496. #endif
  2497. }
  2498. }
  2499. }
  2500. return 1;
  2501. tolua_lerror:
  2502. return tolua_Scene_Node_LocalToWorld00(tolua_S);
  2503. }
  2504. #endif //#ifndef TOLUA_DISABLE
  2505. /* method: WorldToLocal of class Node */
  2506. #ifndef TOLUA_DISABLE_tolua_Scene_Node_WorldToLocal00
  2507. static int tolua_Scene_Node_WorldToLocal00(lua_State* tolua_S)
  2508. {
  2509. #ifndef TOLUA_RELEASE
  2510. tolua_Error tolua_err;
  2511. if (
  2512. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2513. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  2514. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2515. )
  2516. goto tolua_lerror;
  2517. else
  2518. #endif
  2519. {
  2520. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2521. const Vector3* position = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  2522. #ifndef TOLUA_RELEASE
  2523. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'WorldToLocal'", NULL);
  2524. #endif
  2525. {
  2526. Vector3 tolua_ret = (Vector3) self->WorldToLocal(*position);
  2527. {
  2528. #ifdef __cplusplus
  2529. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  2530. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2531. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2532. #else
  2533. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  2534. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2535. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2536. #endif
  2537. }
  2538. }
  2539. }
  2540. return 1;
  2541. #ifndef TOLUA_RELEASE
  2542. tolua_lerror:
  2543. tolua_error(tolua_S,"#ferror in function 'WorldToLocal'.",&tolua_err);
  2544. return 0;
  2545. #endif
  2546. }
  2547. #endif //#ifndef TOLUA_DISABLE
  2548. /* method: WorldToLocal of class Node */
  2549. #ifndef TOLUA_DISABLE_tolua_Scene_Node_WorldToLocal01
  2550. static int tolua_Scene_Node_WorldToLocal01(lua_State* tolua_S)
  2551. {
  2552. tolua_Error tolua_err;
  2553. if (
  2554. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2555. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector4",0,&tolua_err)) ||
  2556. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2557. )
  2558. goto tolua_lerror;
  2559. else
  2560. {
  2561. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2562. const Vector4* vector = ((const Vector4*) tolua_tousertype(tolua_S,2,0));
  2563. #ifndef TOLUA_RELEASE
  2564. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'WorldToLocal'", NULL);
  2565. #endif
  2566. {
  2567. Vector3 tolua_ret = (Vector3) self->WorldToLocal(*vector);
  2568. {
  2569. #ifdef __cplusplus
  2570. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  2571. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2572. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2573. #else
  2574. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  2575. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  2576. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2577. #endif
  2578. }
  2579. }
  2580. }
  2581. return 1;
  2582. tolua_lerror:
  2583. return tolua_Scene_Node_WorldToLocal00(tolua_S);
  2584. }
  2585. #endif //#ifndef TOLUA_DISABLE
  2586. /* method: IsDirty of class Node */
  2587. #ifndef TOLUA_DISABLE_tolua_Scene_Node_IsDirty00
  2588. static int tolua_Scene_Node_IsDirty00(lua_State* tolua_S)
  2589. {
  2590. #ifndef TOLUA_RELEASE
  2591. tolua_Error tolua_err;
  2592. if (
  2593. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2594. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2595. )
  2596. goto tolua_lerror;
  2597. else
  2598. #endif
  2599. {
  2600. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2601. #ifndef TOLUA_RELEASE
  2602. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsDirty'", NULL);
  2603. #endif
  2604. {
  2605. bool tolua_ret = (bool) self->IsDirty();
  2606. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2607. }
  2608. }
  2609. return 1;
  2610. #ifndef TOLUA_RELEASE
  2611. tolua_lerror:
  2612. tolua_error(tolua_S,"#ferror in function 'IsDirty'.",&tolua_err);
  2613. return 0;
  2614. #endif
  2615. }
  2616. #endif //#ifndef TOLUA_DISABLE
  2617. /* method: GetNumChildren of class Node */
  2618. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetNumChildren00
  2619. static int tolua_Scene_Node_GetNumChildren00(lua_State* tolua_S)
  2620. {
  2621. #ifndef TOLUA_RELEASE
  2622. tolua_Error tolua_err;
  2623. if (
  2624. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2625. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  2626. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2627. )
  2628. goto tolua_lerror;
  2629. else
  2630. #endif
  2631. {
  2632. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2633. bool recursive = ((bool) tolua_toboolean(tolua_S,2,false));
  2634. #ifndef TOLUA_RELEASE
  2635. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumChildren'", NULL);
  2636. #endif
  2637. {
  2638. unsigned tolua_ret = (unsigned) self->GetNumChildren(recursive);
  2639. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2640. }
  2641. }
  2642. return 1;
  2643. #ifndef TOLUA_RELEASE
  2644. tolua_lerror:
  2645. tolua_error(tolua_S,"#ferror in function 'GetNumChildren'.",&tolua_err);
  2646. return 0;
  2647. #endif
  2648. }
  2649. #endif //#ifndef TOLUA_DISABLE
  2650. /* method: GetChild of class Node */
  2651. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetChild00
  2652. static int tolua_Scene_Node_GetChild00(lua_State* tolua_S)
  2653. {
  2654. #ifndef TOLUA_RELEASE
  2655. tolua_Error tolua_err;
  2656. if (
  2657. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2658. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2659. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2660. )
  2661. goto tolua_lerror;
  2662. else
  2663. #endif
  2664. {
  2665. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2666. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  2667. #ifndef TOLUA_RELEASE
  2668. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
  2669. #endif
  2670. {
  2671. Node* tolua_ret = (Node*) self->GetChild(index);
  2672. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Node");
  2673. }
  2674. }
  2675. return 1;
  2676. #ifndef TOLUA_RELEASE
  2677. tolua_lerror:
  2678. tolua_error(tolua_S,"#ferror in function 'GetChild'.",&tolua_err);
  2679. return 0;
  2680. #endif
  2681. }
  2682. #endif //#ifndef TOLUA_DISABLE
  2683. /* method: GetChild of class Node */
  2684. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetChild01
  2685. static int tolua_Scene_Node_GetChild01(lua_State* tolua_S)
  2686. {
  2687. tolua_Error tolua_err;
  2688. if (
  2689. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2690. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2691. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  2692. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2693. )
  2694. goto tolua_lerror;
  2695. else
  2696. {
  2697. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2698. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2699. bool recursive = ((bool) tolua_toboolean(tolua_S,3,false));
  2700. #ifndef TOLUA_RELEASE
  2701. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
  2702. #endif
  2703. {
  2704. Node* tolua_ret = (Node*) self->GetChild(*name,recursive);
  2705. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Node");
  2706. }
  2707. }
  2708. return 1;
  2709. tolua_lerror:
  2710. return tolua_Scene_Node_GetChild00(tolua_S);
  2711. }
  2712. #endif //#ifndef TOLUA_DISABLE
  2713. /* method: GetChild of class Node */
  2714. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetChild02
  2715. static int tolua_Scene_Node_GetChild02(lua_State* tolua_S)
  2716. {
  2717. tolua_Error tolua_err;
  2718. if (
  2719. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2720. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  2721. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  2722. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2723. )
  2724. goto tolua_lerror;
  2725. else
  2726. {
  2727. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2728. const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
  2729. bool recursive = ((bool) tolua_toboolean(tolua_S,3,false));
  2730. #ifndef TOLUA_RELEASE
  2731. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
  2732. #endif
  2733. {
  2734. Node* tolua_ret = (Node*) self->GetChild(name,recursive);
  2735. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Node");
  2736. }
  2737. }
  2738. return 1;
  2739. tolua_lerror:
  2740. return tolua_Scene_Node_GetChild01(tolua_S);
  2741. }
  2742. #endif //#ifndef TOLUA_DISABLE
  2743. /* method: GetChild of class Node */
  2744. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetChild03
  2745. static int tolua_Scene_Node_GetChild03(lua_State* tolua_S)
  2746. {
  2747. tolua_Error tolua_err;
  2748. if (
  2749. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2750. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)) ||
  2751. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  2752. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2753. )
  2754. goto tolua_lerror;
  2755. else
  2756. {
  2757. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2758. StringHash nameHash = *((StringHash*) tolua_tousertype(tolua_S,2,0));
  2759. bool recursive = ((bool) tolua_toboolean(tolua_S,3,false));
  2760. #ifndef TOLUA_RELEASE
  2761. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
  2762. #endif
  2763. {
  2764. Node* tolua_ret = (Node*) self->GetChild(nameHash,recursive);
  2765. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Node");
  2766. }
  2767. }
  2768. return 1;
  2769. tolua_lerror:
  2770. return tolua_Scene_Node_GetChild02(tolua_S);
  2771. }
  2772. #endif //#ifndef TOLUA_DISABLE
  2773. /* method: GetNumComponents of class Node */
  2774. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetNumComponents00
  2775. static int tolua_Scene_Node_GetNumComponents00(lua_State* tolua_S)
  2776. {
  2777. #ifndef TOLUA_RELEASE
  2778. tolua_Error tolua_err;
  2779. if (
  2780. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2781. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2782. )
  2783. goto tolua_lerror;
  2784. else
  2785. #endif
  2786. {
  2787. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2788. #ifndef TOLUA_RELEASE
  2789. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumComponents'", NULL);
  2790. #endif
  2791. {
  2792. unsigned tolua_ret = (unsigned) self->GetNumComponents();
  2793. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2794. }
  2795. }
  2796. return 1;
  2797. #ifndef TOLUA_RELEASE
  2798. tolua_lerror:
  2799. tolua_error(tolua_S,"#ferror in function 'GetNumComponents'.",&tolua_err);
  2800. return 0;
  2801. #endif
  2802. }
  2803. #endif //#ifndef TOLUA_DISABLE
  2804. /* method: GetNumNetworkComponents of class Node */
  2805. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetNumNetworkComponents00
  2806. static int tolua_Scene_Node_GetNumNetworkComponents00(lua_State* tolua_S)
  2807. {
  2808. #ifndef TOLUA_RELEASE
  2809. tolua_Error tolua_err;
  2810. if (
  2811. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2812. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2813. )
  2814. goto tolua_lerror;
  2815. else
  2816. #endif
  2817. {
  2818. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2819. #ifndef TOLUA_RELEASE
  2820. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumNetworkComponents'", NULL);
  2821. #endif
  2822. {
  2823. unsigned tolua_ret = (unsigned) self->GetNumNetworkComponents();
  2824. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2825. }
  2826. }
  2827. return 1;
  2828. #ifndef TOLUA_RELEASE
  2829. tolua_lerror:
  2830. tolua_error(tolua_S,"#ferror in function 'GetNumNetworkComponents'.",&tolua_err);
  2831. return 0;
  2832. #endif
  2833. }
  2834. #endif //#ifndef TOLUA_DISABLE
  2835. /* method: GetComponent of class Node */
  2836. #ifndef TOLUA_DISABLE_tolua_Scene_Node_GetComponent00
  2837. static int tolua_Scene_Node_GetComponent00(lua_State* tolua_S)
  2838. {
  2839. #ifndef TOLUA_RELEASE
  2840. tolua_Error tolua_err;
  2841. if (
  2842. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2843. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  2844. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2845. )
  2846. goto tolua_lerror;
  2847. else
  2848. #endif
  2849. {
  2850. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2851. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  2852. #ifndef TOLUA_RELEASE
  2853. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetComponent'", NULL);
  2854. #endif
  2855. {
  2856. Component* tolua_ret = (Component*) self->GetComponent(type);
  2857. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Component");
  2858. }
  2859. }
  2860. return 1;
  2861. #ifndef TOLUA_RELEASE
  2862. tolua_lerror:
  2863. tolua_error(tolua_S,"#ferror in function 'GetComponent'.",&tolua_err);
  2864. return 0;
  2865. #endif
  2866. }
  2867. #endif //#ifndef TOLUA_DISABLE
  2868. /* method: HasComponent of class Node */
  2869. #ifndef TOLUA_DISABLE_tolua_Scene_Node_HasComponent00
  2870. static int tolua_Scene_Node_HasComponent00(lua_State* tolua_S)
  2871. {
  2872. #ifndef TOLUA_RELEASE
  2873. tolua_Error tolua_err;
  2874. if (
  2875. !tolua_isusertype(tolua_S,1,"const Node",0,&tolua_err) ||
  2876. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  2877. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2878. )
  2879. goto tolua_lerror;
  2880. else
  2881. #endif
  2882. {
  2883. const Node* self = (const Node*) tolua_tousertype(tolua_S,1,0);
  2884. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  2885. #ifndef TOLUA_RELEASE
  2886. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasComponent'", NULL);
  2887. #endif
  2888. {
  2889. bool tolua_ret = (bool) self->HasComponent(type);
  2890. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2891. }
  2892. }
  2893. return 1;
  2894. #ifndef TOLUA_RELEASE
  2895. tolua_lerror:
  2896. tolua_error(tolua_S,"#ferror in function 'HasComponent'.",&tolua_err);
  2897. return 0;
  2898. #endif
  2899. }
  2900. #endif //#ifndef TOLUA_DISABLE
  2901. /* get function: FIRST_REPLICATED_ID */
  2902. #ifndef TOLUA_DISABLE_tolua_get_FIRST_REPLICATED_ID
  2903. static int tolua_get_FIRST_REPLICATED_ID(lua_State* tolua_S)
  2904. {
  2905. tolua_pushnumber(tolua_S,(lua_Number)FIRST_REPLICATED_ID);
  2906. return 1;
  2907. }
  2908. #endif //#ifndef TOLUA_DISABLE
  2909. /* get function: LAST_REPLICATED_ID */
  2910. #ifndef TOLUA_DISABLE_tolua_get_LAST_REPLICATED_ID
  2911. static int tolua_get_LAST_REPLICATED_ID(lua_State* tolua_S)
  2912. {
  2913. tolua_pushnumber(tolua_S,(lua_Number)LAST_REPLICATED_ID);
  2914. return 1;
  2915. }
  2916. #endif //#ifndef TOLUA_DISABLE
  2917. /* get function: FIRST_LOCAL_ID */
  2918. #ifndef TOLUA_DISABLE_tolua_get_FIRST_LOCAL_ID
  2919. static int tolua_get_FIRST_LOCAL_ID(lua_State* tolua_S)
  2920. {
  2921. tolua_pushnumber(tolua_S,(lua_Number)FIRST_LOCAL_ID);
  2922. return 1;
  2923. }
  2924. #endif //#ifndef TOLUA_DISABLE
  2925. /* get function: LAST_LOCAL_ID */
  2926. #ifndef TOLUA_DISABLE_tolua_get_LAST_LOCAL_ID
  2927. static int tolua_get_LAST_LOCAL_ID(lua_State* tolua_S)
  2928. {
  2929. tolua_pushnumber(tolua_S,(lua_Number)LAST_LOCAL_ID);
  2930. return 1;
  2931. }
  2932. #endif //#ifndef TOLUA_DISABLE
  2933. /* method: LoadAsync of class Scene */
  2934. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_LoadAsync00
  2935. static int tolua_Scene_Scene_LoadAsync00(lua_State* tolua_S)
  2936. {
  2937. #ifndef TOLUA_RELEASE
  2938. tolua_Error tolua_err;
  2939. if (
  2940. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  2941. !tolua_isusertype(tolua_S,2,"File",0,&tolua_err) ||
  2942. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2943. )
  2944. goto tolua_lerror;
  2945. else
  2946. #endif
  2947. {
  2948. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  2949. File* file = ((File*) tolua_tousertype(tolua_S,2,0));
  2950. #ifndef TOLUA_RELEASE
  2951. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'LoadAsync'", NULL);
  2952. #endif
  2953. {
  2954. bool tolua_ret = (bool) self->LoadAsync(file);
  2955. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2956. }
  2957. }
  2958. return 1;
  2959. #ifndef TOLUA_RELEASE
  2960. tolua_lerror:
  2961. tolua_error(tolua_S,"#ferror in function 'LoadAsync'.",&tolua_err);
  2962. return 0;
  2963. #endif
  2964. }
  2965. #endif //#ifndef TOLUA_DISABLE
  2966. /* method: LoadAsyncXML of class Scene */
  2967. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_LoadAsyncXML00
  2968. static int tolua_Scene_Scene_LoadAsyncXML00(lua_State* tolua_S)
  2969. {
  2970. #ifndef TOLUA_RELEASE
  2971. tolua_Error tolua_err;
  2972. if (
  2973. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  2974. !tolua_isusertype(tolua_S,2,"File",0,&tolua_err) ||
  2975. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2976. )
  2977. goto tolua_lerror;
  2978. else
  2979. #endif
  2980. {
  2981. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  2982. File* file = ((File*) tolua_tousertype(tolua_S,2,0));
  2983. #ifndef TOLUA_RELEASE
  2984. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'LoadAsyncXML'", NULL);
  2985. #endif
  2986. {
  2987. bool tolua_ret = (bool) self->LoadAsyncXML(file);
  2988. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2989. }
  2990. }
  2991. return 1;
  2992. #ifndef TOLUA_RELEASE
  2993. tolua_lerror:
  2994. tolua_error(tolua_S,"#ferror in function 'LoadAsyncXML'.",&tolua_err);
  2995. return 0;
  2996. #endif
  2997. }
  2998. #endif //#ifndef TOLUA_DISABLE
  2999. /* method: StopAsyncLoading of class Scene */
  3000. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_StopAsyncLoading00
  3001. static int tolua_Scene_Scene_StopAsyncLoading00(lua_State* tolua_S)
  3002. {
  3003. #ifndef TOLUA_RELEASE
  3004. tolua_Error tolua_err;
  3005. if (
  3006. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3007. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3008. )
  3009. goto tolua_lerror;
  3010. else
  3011. #endif
  3012. {
  3013. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3014. #ifndef TOLUA_RELEASE
  3015. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'StopAsyncLoading'", NULL);
  3016. #endif
  3017. {
  3018. self->StopAsyncLoading();
  3019. }
  3020. }
  3021. return 0;
  3022. #ifndef TOLUA_RELEASE
  3023. tolua_lerror:
  3024. tolua_error(tolua_S,"#ferror in function 'StopAsyncLoading'.",&tolua_err);
  3025. return 0;
  3026. #endif
  3027. }
  3028. #endif //#ifndef TOLUA_DISABLE
  3029. /* method: Clear of class Scene */
  3030. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_Clear00
  3031. static int tolua_Scene_Scene_Clear00(lua_State* tolua_S)
  3032. {
  3033. #ifndef TOLUA_RELEASE
  3034. tolua_Error tolua_err;
  3035. if (
  3036. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3037. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3038. )
  3039. goto tolua_lerror;
  3040. else
  3041. #endif
  3042. {
  3043. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3044. #ifndef TOLUA_RELEASE
  3045. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Clear'", NULL);
  3046. #endif
  3047. {
  3048. self->Clear();
  3049. }
  3050. }
  3051. return 0;
  3052. #ifndef TOLUA_RELEASE
  3053. tolua_lerror:
  3054. tolua_error(tolua_S,"#ferror in function 'Clear'.",&tolua_err);
  3055. return 0;
  3056. #endif
  3057. }
  3058. #endif //#ifndef TOLUA_DISABLE
  3059. /* method: SetUpdateEnabled of class Scene */
  3060. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_SetUpdateEnabled00
  3061. static int tolua_Scene_Scene_SetUpdateEnabled00(lua_State* tolua_S)
  3062. {
  3063. #ifndef TOLUA_RELEASE
  3064. tolua_Error tolua_err;
  3065. if (
  3066. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3067. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3068. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3069. )
  3070. goto tolua_lerror;
  3071. else
  3072. #endif
  3073. {
  3074. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3075. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3076. #ifndef TOLUA_RELEASE
  3077. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetUpdateEnabled'", NULL);
  3078. #endif
  3079. {
  3080. self->SetUpdateEnabled(enable);
  3081. }
  3082. }
  3083. return 0;
  3084. #ifndef TOLUA_RELEASE
  3085. tolua_lerror:
  3086. tolua_error(tolua_S,"#ferror in function 'SetUpdateEnabled'.",&tolua_err);
  3087. return 0;
  3088. #endif
  3089. }
  3090. #endif //#ifndef TOLUA_DISABLE
  3091. /* method: SetTimeScale of class Scene */
  3092. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_SetTimeScale00
  3093. static int tolua_Scene_Scene_SetTimeScale00(lua_State* tolua_S)
  3094. {
  3095. #ifndef TOLUA_RELEASE
  3096. tolua_Error tolua_err;
  3097. if (
  3098. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3099. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3100. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3101. )
  3102. goto tolua_lerror;
  3103. else
  3104. #endif
  3105. {
  3106. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3107. float scale = ((float) tolua_tonumber(tolua_S,2,0));
  3108. #ifndef TOLUA_RELEASE
  3109. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTimeScale'", NULL);
  3110. #endif
  3111. {
  3112. self->SetTimeScale(scale);
  3113. }
  3114. }
  3115. return 0;
  3116. #ifndef TOLUA_RELEASE
  3117. tolua_lerror:
  3118. tolua_error(tolua_S,"#ferror in function 'SetTimeScale'.",&tolua_err);
  3119. return 0;
  3120. #endif
  3121. }
  3122. #endif //#ifndef TOLUA_DISABLE
  3123. /* method: SetElapsedTime of class Scene */
  3124. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_SetElapsedTime00
  3125. static int tolua_Scene_Scene_SetElapsedTime00(lua_State* tolua_S)
  3126. {
  3127. #ifndef TOLUA_RELEASE
  3128. tolua_Error tolua_err;
  3129. if (
  3130. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3131. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3132. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3133. )
  3134. goto tolua_lerror;
  3135. else
  3136. #endif
  3137. {
  3138. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3139. float time = ((float) tolua_tonumber(tolua_S,2,0));
  3140. #ifndef TOLUA_RELEASE
  3141. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetElapsedTime'", NULL);
  3142. #endif
  3143. {
  3144. self->SetElapsedTime(time);
  3145. }
  3146. }
  3147. return 0;
  3148. #ifndef TOLUA_RELEASE
  3149. tolua_lerror:
  3150. tolua_error(tolua_S,"#ferror in function 'SetElapsedTime'.",&tolua_err);
  3151. return 0;
  3152. #endif
  3153. }
  3154. #endif //#ifndef TOLUA_DISABLE
  3155. /* method: SetSmoothingConstant of class Scene */
  3156. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_SetSmoothingConstant00
  3157. static int tolua_Scene_Scene_SetSmoothingConstant00(lua_State* tolua_S)
  3158. {
  3159. #ifndef TOLUA_RELEASE
  3160. tolua_Error tolua_err;
  3161. if (
  3162. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3163. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3164. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3165. )
  3166. goto tolua_lerror;
  3167. else
  3168. #endif
  3169. {
  3170. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3171. float constant = ((float) tolua_tonumber(tolua_S,2,0));
  3172. #ifndef TOLUA_RELEASE
  3173. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSmoothingConstant'", NULL);
  3174. #endif
  3175. {
  3176. self->SetSmoothingConstant(constant);
  3177. }
  3178. }
  3179. return 0;
  3180. #ifndef TOLUA_RELEASE
  3181. tolua_lerror:
  3182. tolua_error(tolua_S,"#ferror in function 'SetSmoothingConstant'.",&tolua_err);
  3183. return 0;
  3184. #endif
  3185. }
  3186. #endif //#ifndef TOLUA_DISABLE
  3187. /* method: SetSnapThreshold of class Scene */
  3188. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_SetSnapThreshold00
  3189. static int tolua_Scene_Scene_SetSnapThreshold00(lua_State* tolua_S)
  3190. {
  3191. #ifndef TOLUA_RELEASE
  3192. tolua_Error tolua_err;
  3193. if (
  3194. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3195. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3196. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3197. )
  3198. goto tolua_lerror;
  3199. else
  3200. #endif
  3201. {
  3202. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3203. float threshold = ((float) tolua_tonumber(tolua_S,2,0));
  3204. #ifndef TOLUA_RELEASE
  3205. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSnapThreshold'", NULL);
  3206. #endif
  3207. {
  3208. self->SetSnapThreshold(threshold);
  3209. }
  3210. }
  3211. return 0;
  3212. #ifndef TOLUA_RELEASE
  3213. tolua_lerror:
  3214. tolua_error(tolua_S,"#ferror in function 'SetSnapThreshold'.",&tolua_err);
  3215. return 0;
  3216. #endif
  3217. }
  3218. #endif //#ifndef TOLUA_DISABLE
  3219. /* method: GetNode of class Scene */
  3220. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_GetNode00
  3221. static int tolua_Scene_Scene_GetNode00(lua_State* tolua_S)
  3222. {
  3223. #ifndef TOLUA_RELEASE
  3224. tolua_Error tolua_err;
  3225. if (
  3226. !tolua_isusertype(tolua_S,1,"const Scene",0,&tolua_err) ||
  3227. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3228. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3229. )
  3230. goto tolua_lerror;
  3231. else
  3232. #endif
  3233. {
  3234. const Scene* self = (const Scene*) tolua_tousertype(tolua_S,1,0);
  3235. unsigned id = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3236. #ifndef TOLUA_RELEASE
  3237. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNode'", NULL);
  3238. #endif
  3239. {
  3240. Node* tolua_ret = (Node*) self->GetNode(id);
  3241. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Node");
  3242. }
  3243. }
  3244. return 1;
  3245. #ifndef TOLUA_RELEASE
  3246. tolua_lerror:
  3247. tolua_error(tolua_S,"#ferror in function 'GetNode'.",&tolua_err);
  3248. return 0;
  3249. #endif
  3250. }
  3251. #endif //#ifndef TOLUA_DISABLE
  3252. /* method: GetComponent of class Scene */
  3253. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_GetComponent00
  3254. static int tolua_Scene_Scene_GetComponent00(lua_State* tolua_S)
  3255. {
  3256. #ifndef TOLUA_RELEASE
  3257. tolua_Error tolua_err;
  3258. if (
  3259. !tolua_isusertype(tolua_S,1,"const Scene",0,&tolua_err) ||
  3260. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3261. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3262. )
  3263. goto tolua_lerror;
  3264. else
  3265. #endif
  3266. {
  3267. const Scene* self = (const Scene*) tolua_tousertype(tolua_S,1,0);
  3268. unsigned id = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3269. #ifndef TOLUA_RELEASE
  3270. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetComponent'", NULL);
  3271. #endif
  3272. {
  3273. Component* tolua_ret = (Component*) self->GetComponent(id);
  3274. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Component");
  3275. }
  3276. }
  3277. return 1;
  3278. #ifndef TOLUA_RELEASE
  3279. tolua_lerror:
  3280. tolua_error(tolua_S,"#ferror in function 'GetComponent'.",&tolua_err);
  3281. return 0;
  3282. #endif
  3283. }
  3284. #endif //#ifndef TOLUA_DISABLE
  3285. /* method: IsUpdateEnabled of class Scene */
  3286. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_IsUpdateEnabled00
  3287. static int tolua_Scene_Scene_IsUpdateEnabled00(lua_State* tolua_S)
  3288. {
  3289. #ifndef TOLUA_RELEASE
  3290. tolua_Error tolua_err;
  3291. if (
  3292. !tolua_isusertype(tolua_S,1,"const Scene",0,&tolua_err) ||
  3293. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3294. )
  3295. goto tolua_lerror;
  3296. else
  3297. #endif
  3298. {
  3299. const Scene* self = (const Scene*) tolua_tousertype(tolua_S,1,0);
  3300. #ifndef TOLUA_RELEASE
  3301. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsUpdateEnabled'", NULL);
  3302. #endif
  3303. {
  3304. bool tolua_ret = (bool) self->IsUpdateEnabled();
  3305. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3306. }
  3307. }
  3308. return 1;
  3309. #ifndef TOLUA_RELEASE
  3310. tolua_lerror:
  3311. tolua_error(tolua_S,"#ferror in function 'IsUpdateEnabled'.",&tolua_err);
  3312. return 0;
  3313. #endif
  3314. }
  3315. #endif //#ifndef TOLUA_DISABLE
  3316. /* method: IsAsyncLoading of class Scene */
  3317. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_IsAsyncLoading00
  3318. static int tolua_Scene_Scene_IsAsyncLoading00(lua_State* tolua_S)
  3319. {
  3320. #ifndef TOLUA_RELEASE
  3321. tolua_Error tolua_err;
  3322. if (
  3323. !tolua_isusertype(tolua_S,1,"const Scene",0,&tolua_err) ||
  3324. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3325. )
  3326. goto tolua_lerror;
  3327. else
  3328. #endif
  3329. {
  3330. const Scene* self = (const Scene*) tolua_tousertype(tolua_S,1,0);
  3331. #ifndef TOLUA_RELEASE
  3332. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsAsyncLoading'", NULL);
  3333. #endif
  3334. {
  3335. bool tolua_ret = (bool) self->IsAsyncLoading();
  3336. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3337. }
  3338. }
  3339. return 1;
  3340. #ifndef TOLUA_RELEASE
  3341. tolua_lerror:
  3342. tolua_error(tolua_S,"#ferror in function 'IsAsyncLoading'.",&tolua_err);
  3343. return 0;
  3344. #endif
  3345. }
  3346. #endif //#ifndef TOLUA_DISABLE
  3347. /* method: GetAsyncProgress of class Scene */
  3348. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_GetAsyncProgress00
  3349. static int tolua_Scene_Scene_GetAsyncProgress00(lua_State* tolua_S)
  3350. {
  3351. #ifndef TOLUA_RELEASE
  3352. tolua_Error tolua_err;
  3353. if (
  3354. !tolua_isusertype(tolua_S,1,"const Scene",0,&tolua_err) ||
  3355. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3356. )
  3357. goto tolua_lerror;
  3358. else
  3359. #endif
  3360. {
  3361. const Scene* self = (const Scene*) tolua_tousertype(tolua_S,1,0);
  3362. #ifndef TOLUA_RELEASE
  3363. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAsyncProgress'", NULL);
  3364. #endif
  3365. {
  3366. float tolua_ret = (float) self->GetAsyncProgress();
  3367. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3368. }
  3369. }
  3370. return 1;
  3371. #ifndef TOLUA_RELEASE
  3372. tolua_lerror:
  3373. tolua_error(tolua_S,"#ferror in function 'GetAsyncProgress'.",&tolua_err);
  3374. return 0;
  3375. #endif
  3376. }
  3377. #endif //#ifndef TOLUA_DISABLE
  3378. /* method: GetFileName of class Scene */
  3379. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_GetFileName00
  3380. static int tolua_Scene_Scene_GetFileName00(lua_State* tolua_S)
  3381. {
  3382. #ifndef TOLUA_RELEASE
  3383. tolua_Error tolua_err;
  3384. if (
  3385. !tolua_isusertype(tolua_S,1,"const Scene",0,&tolua_err) ||
  3386. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3387. )
  3388. goto tolua_lerror;
  3389. else
  3390. #endif
  3391. {
  3392. const Scene* self = (const Scene*) tolua_tousertype(tolua_S,1,0);
  3393. #ifndef TOLUA_RELEASE
  3394. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFileName'", NULL);
  3395. #endif
  3396. {
  3397. const String& tolua_ret = (const String&) self->GetFileName();
  3398. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  3399. }
  3400. }
  3401. return 1;
  3402. #ifndef TOLUA_RELEASE
  3403. tolua_lerror:
  3404. tolua_error(tolua_S,"#ferror in function 'GetFileName'.",&tolua_err);
  3405. return 0;
  3406. #endif
  3407. }
  3408. #endif //#ifndef TOLUA_DISABLE
  3409. /* method: GetChecksum of class Scene */
  3410. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_GetChecksum00
  3411. static int tolua_Scene_Scene_GetChecksum00(lua_State* tolua_S)
  3412. {
  3413. #ifndef TOLUA_RELEASE
  3414. tolua_Error tolua_err;
  3415. if (
  3416. !tolua_isusertype(tolua_S,1,"const Scene",0,&tolua_err) ||
  3417. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3418. )
  3419. goto tolua_lerror;
  3420. else
  3421. #endif
  3422. {
  3423. const Scene* self = (const Scene*) tolua_tousertype(tolua_S,1,0);
  3424. #ifndef TOLUA_RELEASE
  3425. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChecksum'", NULL);
  3426. #endif
  3427. {
  3428. unsigned tolua_ret = (unsigned) self->GetChecksum();
  3429. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3430. }
  3431. }
  3432. return 1;
  3433. #ifndef TOLUA_RELEASE
  3434. tolua_lerror:
  3435. tolua_error(tolua_S,"#ferror in function 'GetChecksum'.",&tolua_err);
  3436. return 0;
  3437. #endif
  3438. }
  3439. #endif //#ifndef TOLUA_DISABLE
  3440. /* method: GetTimeScale of class Scene */
  3441. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_GetTimeScale00
  3442. static int tolua_Scene_Scene_GetTimeScale00(lua_State* tolua_S)
  3443. {
  3444. #ifndef TOLUA_RELEASE
  3445. tolua_Error tolua_err;
  3446. if (
  3447. !tolua_isusertype(tolua_S,1,"const Scene",0,&tolua_err) ||
  3448. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3449. )
  3450. goto tolua_lerror;
  3451. else
  3452. #endif
  3453. {
  3454. const Scene* self = (const Scene*) tolua_tousertype(tolua_S,1,0);
  3455. #ifndef TOLUA_RELEASE
  3456. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTimeScale'", NULL);
  3457. #endif
  3458. {
  3459. float tolua_ret = (float) self->GetTimeScale();
  3460. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3461. }
  3462. }
  3463. return 1;
  3464. #ifndef TOLUA_RELEASE
  3465. tolua_lerror:
  3466. tolua_error(tolua_S,"#ferror in function 'GetTimeScale'.",&tolua_err);
  3467. return 0;
  3468. #endif
  3469. }
  3470. #endif //#ifndef TOLUA_DISABLE
  3471. /* method: GetElapsedTime of class Scene */
  3472. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_GetElapsedTime00
  3473. static int tolua_Scene_Scene_GetElapsedTime00(lua_State* tolua_S)
  3474. {
  3475. #ifndef TOLUA_RELEASE
  3476. tolua_Error tolua_err;
  3477. if (
  3478. !tolua_isusertype(tolua_S,1,"const Scene",0,&tolua_err) ||
  3479. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3480. )
  3481. goto tolua_lerror;
  3482. else
  3483. #endif
  3484. {
  3485. const Scene* self = (const Scene*) tolua_tousertype(tolua_S,1,0);
  3486. #ifndef TOLUA_RELEASE
  3487. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetElapsedTime'", NULL);
  3488. #endif
  3489. {
  3490. float tolua_ret = (float) self->GetElapsedTime();
  3491. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3492. }
  3493. }
  3494. return 1;
  3495. #ifndef TOLUA_RELEASE
  3496. tolua_lerror:
  3497. tolua_error(tolua_S,"#ferror in function 'GetElapsedTime'.",&tolua_err);
  3498. return 0;
  3499. #endif
  3500. }
  3501. #endif //#ifndef TOLUA_DISABLE
  3502. /* method: GetSmoothingConstant of class Scene */
  3503. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_GetSmoothingConstant00
  3504. static int tolua_Scene_Scene_GetSmoothingConstant00(lua_State* tolua_S)
  3505. {
  3506. #ifndef TOLUA_RELEASE
  3507. tolua_Error tolua_err;
  3508. if (
  3509. !tolua_isusertype(tolua_S,1,"const Scene",0,&tolua_err) ||
  3510. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3511. )
  3512. goto tolua_lerror;
  3513. else
  3514. #endif
  3515. {
  3516. const Scene* self = (const Scene*) tolua_tousertype(tolua_S,1,0);
  3517. #ifndef TOLUA_RELEASE
  3518. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSmoothingConstant'", NULL);
  3519. #endif
  3520. {
  3521. float tolua_ret = (float) self->GetSmoothingConstant();
  3522. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3523. }
  3524. }
  3525. return 1;
  3526. #ifndef TOLUA_RELEASE
  3527. tolua_lerror:
  3528. tolua_error(tolua_S,"#ferror in function 'GetSmoothingConstant'.",&tolua_err);
  3529. return 0;
  3530. #endif
  3531. }
  3532. #endif //#ifndef TOLUA_DISABLE
  3533. /* method: GetSnapThreshold of class Scene */
  3534. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_GetSnapThreshold00
  3535. static int tolua_Scene_Scene_GetSnapThreshold00(lua_State* tolua_S)
  3536. {
  3537. #ifndef TOLUA_RELEASE
  3538. tolua_Error tolua_err;
  3539. if (
  3540. !tolua_isusertype(tolua_S,1,"const Scene",0,&tolua_err) ||
  3541. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3542. )
  3543. goto tolua_lerror;
  3544. else
  3545. #endif
  3546. {
  3547. const Scene* self = (const Scene*) tolua_tousertype(tolua_S,1,0);
  3548. #ifndef TOLUA_RELEASE
  3549. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSnapThreshold'", NULL);
  3550. #endif
  3551. {
  3552. float tolua_ret = (float) self->GetSnapThreshold();
  3553. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3554. }
  3555. }
  3556. return 1;
  3557. #ifndef TOLUA_RELEASE
  3558. tolua_lerror:
  3559. tolua_error(tolua_S,"#ferror in function 'GetSnapThreshold'.",&tolua_err);
  3560. return 0;
  3561. #endif
  3562. }
  3563. #endif //#ifndef TOLUA_DISABLE
  3564. /* method: GetVarName of class Scene */
  3565. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_GetVarName00
  3566. static int tolua_Scene_Scene_GetVarName00(lua_State* tolua_S)
  3567. {
  3568. #ifndef TOLUA_RELEASE
  3569. tolua_Error tolua_err;
  3570. if (
  3571. !tolua_isusertype(tolua_S,1,"const Scene",0,&tolua_err) ||
  3572. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  3573. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3574. )
  3575. goto tolua_lerror;
  3576. else
  3577. #endif
  3578. {
  3579. const Scene* self = (const Scene*) tolua_tousertype(tolua_S,1,0);
  3580. ShortStringHash hash = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  3581. #ifndef TOLUA_RELEASE
  3582. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVarName'", NULL);
  3583. #endif
  3584. {
  3585. const String& tolua_ret = (const String&) self->GetVarName(hash);
  3586. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  3587. }
  3588. }
  3589. return 1;
  3590. #ifndef TOLUA_RELEASE
  3591. tolua_lerror:
  3592. tolua_error(tolua_S,"#ferror in function 'GetVarName'.",&tolua_err);
  3593. return 0;
  3594. #endif
  3595. }
  3596. #endif //#ifndef TOLUA_DISABLE
  3597. /* method: Update of class Scene */
  3598. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_Update00
  3599. static int tolua_Scene_Scene_Update00(lua_State* tolua_S)
  3600. {
  3601. #ifndef TOLUA_RELEASE
  3602. tolua_Error tolua_err;
  3603. if (
  3604. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3605. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3606. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3607. )
  3608. goto tolua_lerror;
  3609. else
  3610. #endif
  3611. {
  3612. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3613. float timeStep = ((float) tolua_tonumber(tolua_S,2,0));
  3614. #ifndef TOLUA_RELEASE
  3615. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Update'", NULL);
  3616. #endif
  3617. {
  3618. self->Update(timeStep);
  3619. }
  3620. }
  3621. return 0;
  3622. #ifndef TOLUA_RELEASE
  3623. tolua_lerror:
  3624. tolua_error(tolua_S,"#ferror in function 'Update'.",&tolua_err);
  3625. return 0;
  3626. #endif
  3627. }
  3628. #endif //#ifndef TOLUA_DISABLE
  3629. /* method: BeginThreadedUpdate of class Scene */
  3630. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_BeginThreadedUpdate00
  3631. static int tolua_Scene_Scene_BeginThreadedUpdate00(lua_State* tolua_S)
  3632. {
  3633. #ifndef TOLUA_RELEASE
  3634. tolua_Error tolua_err;
  3635. if (
  3636. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3637. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3638. )
  3639. goto tolua_lerror;
  3640. else
  3641. #endif
  3642. {
  3643. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3644. #ifndef TOLUA_RELEASE
  3645. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'BeginThreadedUpdate'", NULL);
  3646. #endif
  3647. {
  3648. self->BeginThreadedUpdate();
  3649. }
  3650. }
  3651. return 0;
  3652. #ifndef TOLUA_RELEASE
  3653. tolua_lerror:
  3654. tolua_error(tolua_S,"#ferror in function 'BeginThreadedUpdate'.",&tolua_err);
  3655. return 0;
  3656. #endif
  3657. }
  3658. #endif //#ifndef TOLUA_DISABLE
  3659. /* method: EndThreadedUpdate of class Scene */
  3660. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_EndThreadedUpdate00
  3661. static int tolua_Scene_Scene_EndThreadedUpdate00(lua_State* tolua_S)
  3662. {
  3663. #ifndef TOLUA_RELEASE
  3664. tolua_Error tolua_err;
  3665. if (
  3666. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3667. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3668. )
  3669. goto tolua_lerror;
  3670. else
  3671. #endif
  3672. {
  3673. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3674. #ifndef TOLUA_RELEASE
  3675. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'EndThreadedUpdate'", NULL);
  3676. #endif
  3677. {
  3678. self->EndThreadedUpdate();
  3679. }
  3680. }
  3681. return 0;
  3682. #ifndef TOLUA_RELEASE
  3683. tolua_lerror:
  3684. tolua_error(tolua_S,"#ferror in function 'EndThreadedUpdate'.",&tolua_err);
  3685. return 0;
  3686. #endif
  3687. }
  3688. #endif //#ifndef TOLUA_DISABLE
  3689. /* method: DelayedMarkedDirty of class Scene */
  3690. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_DelayedMarkedDirty00
  3691. static int tolua_Scene_Scene_DelayedMarkedDirty00(lua_State* tolua_S)
  3692. {
  3693. #ifndef TOLUA_RELEASE
  3694. tolua_Error tolua_err;
  3695. if (
  3696. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3697. !tolua_isusertype(tolua_S,2,"Component",0,&tolua_err) ||
  3698. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3699. )
  3700. goto tolua_lerror;
  3701. else
  3702. #endif
  3703. {
  3704. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3705. Component* component = ((Component*) tolua_tousertype(tolua_S,2,0));
  3706. #ifndef TOLUA_RELEASE
  3707. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'DelayedMarkedDirty'", NULL);
  3708. #endif
  3709. {
  3710. self->DelayedMarkedDirty(component);
  3711. }
  3712. }
  3713. return 0;
  3714. #ifndef TOLUA_RELEASE
  3715. tolua_lerror:
  3716. tolua_error(tolua_S,"#ferror in function 'DelayedMarkedDirty'.",&tolua_err);
  3717. return 0;
  3718. #endif
  3719. }
  3720. #endif //#ifndef TOLUA_DISABLE
  3721. /* method: IsThreadedUpdate of class Scene */
  3722. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_IsThreadedUpdate00
  3723. static int tolua_Scene_Scene_IsThreadedUpdate00(lua_State* tolua_S)
  3724. {
  3725. #ifndef TOLUA_RELEASE
  3726. tolua_Error tolua_err;
  3727. if (
  3728. !tolua_isusertype(tolua_S,1,"const Scene",0,&tolua_err) ||
  3729. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3730. )
  3731. goto tolua_lerror;
  3732. else
  3733. #endif
  3734. {
  3735. const Scene* self = (const Scene*) tolua_tousertype(tolua_S,1,0);
  3736. #ifndef TOLUA_RELEASE
  3737. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsThreadedUpdate'", NULL);
  3738. #endif
  3739. {
  3740. bool tolua_ret = (bool) self->IsThreadedUpdate();
  3741. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3742. }
  3743. }
  3744. return 1;
  3745. #ifndef TOLUA_RELEASE
  3746. tolua_lerror:
  3747. tolua_error(tolua_S,"#ferror in function 'IsThreadedUpdate'.",&tolua_err);
  3748. return 0;
  3749. #endif
  3750. }
  3751. #endif //#ifndef TOLUA_DISABLE
  3752. /* method: GetFreeNodeID of class Scene */
  3753. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_GetFreeNodeID00
  3754. static int tolua_Scene_Scene_GetFreeNodeID00(lua_State* tolua_S)
  3755. {
  3756. #ifndef TOLUA_RELEASE
  3757. tolua_Error tolua_err;
  3758. if (
  3759. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3760. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3761. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3762. )
  3763. goto tolua_lerror;
  3764. else
  3765. #endif
  3766. {
  3767. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3768. CreateMode mode = ((CreateMode) (int) tolua_tonumber(tolua_S,2,0));
  3769. #ifndef TOLUA_RELEASE
  3770. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFreeNodeID'", NULL);
  3771. #endif
  3772. {
  3773. unsigned tolua_ret = (unsigned) self->GetFreeNodeID(mode);
  3774. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3775. }
  3776. }
  3777. return 1;
  3778. #ifndef TOLUA_RELEASE
  3779. tolua_lerror:
  3780. tolua_error(tolua_S,"#ferror in function 'GetFreeNodeID'.",&tolua_err);
  3781. return 0;
  3782. #endif
  3783. }
  3784. #endif //#ifndef TOLUA_DISABLE
  3785. /* method: GetFreeComponentID of class Scene */
  3786. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_GetFreeComponentID00
  3787. static int tolua_Scene_Scene_GetFreeComponentID00(lua_State* tolua_S)
  3788. {
  3789. #ifndef TOLUA_RELEASE
  3790. tolua_Error tolua_err;
  3791. if (
  3792. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3793. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3794. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3795. )
  3796. goto tolua_lerror;
  3797. else
  3798. #endif
  3799. {
  3800. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3801. CreateMode mode = ((CreateMode) (int) tolua_tonumber(tolua_S,2,0));
  3802. #ifndef TOLUA_RELEASE
  3803. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFreeComponentID'", NULL);
  3804. #endif
  3805. {
  3806. unsigned tolua_ret = (unsigned) self->GetFreeComponentID(mode);
  3807. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3808. }
  3809. }
  3810. return 1;
  3811. #ifndef TOLUA_RELEASE
  3812. tolua_lerror:
  3813. tolua_error(tolua_S,"#ferror in function 'GetFreeComponentID'.",&tolua_err);
  3814. return 0;
  3815. #endif
  3816. }
  3817. #endif //#ifndef TOLUA_DISABLE
  3818. /* method: NodeAdded of class Scene */
  3819. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_NodeAdded00
  3820. static int tolua_Scene_Scene_NodeAdded00(lua_State* tolua_S)
  3821. {
  3822. #ifndef TOLUA_RELEASE
  3823. tolua_Error tolua_err;
  3824. if (
  3825. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3826. !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
  3827. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3828. )
  3829. goto tolua_lerror;
  3830. else
  3831. #endif
  3832. {
  3833. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3834. Node* node = ((Node*) tolua_tousertype(tolua_S,2,0));
  3835. #ifndef TOLUA_RELEASE
  3836. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'NodeAdded'", NULL);
  3837. #endif
  3838. {
  3839. self->NodeAdded(node);
  3840. }
  3841. }
  3842. return 0;
  3843. #ifndef TOLUA_RELEASE
  3844. tolua_lerror:
  3845. tolua_error(tolua_S,"#ferror in function 'NodeAdded'.",&tolua_err);
  3846. return 0;
  3847. #endif
  3848. }
  3849. #endif //#ifndef TOLUA_DISABLE
  3850. /* method: NodeRemoved of class Scene */
  3851. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_NodeRemoved00
  3852. static int tolua_Scene_Scene_NodeRemoved00(lua_State* tolua_S)
  3853. {
  3854. #ifndef TOLUA_RELEASE
  3855. tolua_Error tolua_err;
  3856. if (
  3857. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3858. !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
  3859. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3860. )
  3861. goto tolua_lerror;
  3862. else
  3863. #endif
  3864. {
  3865. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3866. Node* node = ((Node*) tolua_tousertype(tolua_S,2,0));
  3867. #ifndef TOLUA_RELEASE
  3868. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'NodeRemoved'", NULL);
  3869. #endif
  3870. {
  3871. self->NodeRemoved(node);
  3872. }
  3873. }
  3874. return 0;
  3875. #ifndef TOLUA_RELEASE
  3876. tolua_lerror:
  3877. tolua_error(tolua_S,"#ferror in function 'NodeRemoved'.",&tolua_err);
  3878. return 0;
  3879. #endif
  3880. }
  3881. #endif //#ifndef TOLUA_DISABLE
  3882. /* method: ComponentAdded of class Scene */
  3883. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_ComponentAdded00
  3884. static int tolua_Scene_Scene_ComponentAdded00(lua_State* tolua_S)
  3885. {
  3886. #ifndef TOLUA_RELEASE
  3887. tolua_Error tolua_err;
  3888. if (
  3889. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3890. !tolua_isusertype(tolua_S,2,"Component",0,&tolua_err) ||
  3891. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3892. )
  3893. goto tolua_lerror;
  3894. else
  3895. #endif
  3896. {
  3897. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3898. Component* component = ((Component*) tolua_tousertype(tolua_S,2,0));
  3899. #ifndef TOLUA_RELEASE
  3900. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ComponentAdded'", NULL);
  3901. #endif
  3902. {
  3903. self->ComponentAdded(component);
  3904. }
  3905. }
  3906. return 0;
  3907. #ifndef TOLUA_RELEASE
  3908. tolua_lerror:
  3909. tolua_error(tolua_S,"#ferror in function 'ComponentAdded'.",&tolua_err);
  3910. return 0;
  3911. #endif
  3912. }
  3913. #endif //#ifndef TOLUA_DISABLE
  3914. /* method: ComponentRemoved of class Scene */
  3915. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_ComponentRemoved00
  3916. static int tolua_Scene_Scene_ComponentRemoved00(lua_State* tolua_S)
  3917. {
  3918. #ifndef TOLUA_RELEASE
  3919. tolua_Error tolua_err;
  3920. if (
  3921. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3922. !tolua_isusertype(tolua_S,2,"Component",0,&tolua_err) ||
  3923. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3924. )
  3925. goto tolua_lerror;
  3926. else
  3927. #endif
  3928. {
  3929. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3930. Component* component = ((Component*) tolua_tousertype(tolua_S,2,0));
  3931. #ifndef TOLUA_RELEASE
  3932. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ComponentRemoved'", NULL);
  3933. #endif
  3934. {
  3935. self->ComponentRemoved(component);
  3936. }
  3937. }
  3938. return 0;
  3939. #ifndef TOLUA_RELEASE
  3940. tolua_lerror:
  3941. tolua_error(tolua_S,"#ferror in function 'ComponentRemoved'.",&tolua_err);
  3942. return 0;
  3943. #endif
  3944. }
  3945. #endif //#ifndef TOLUA_DISABLE
  3946. /* method: SetVarNamesAttr of class Scene */
  3947. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_SetVarNamesAttr00
  3948. static int tolua_Scene_Scene_SetVarNamesAttr00(lua_State* tolua_S)
  3949. {
  3950. #ifndef TOLUA_RELEASE
  3951. tolua_Error tolua_err;
  3952. if (
  3953. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  3954. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"String",0,&tolua_err)) ||
  3955. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3956. )
  3957. goto tolua_lerror;
  3958. else
  3959. #endif
  3960. {
  3961. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  3962. String value = *((String*) tolua_tousertype(tolua_S,2,0));
  3963. #ifndef TOLUA_RELEASE
  3964. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetVarNamesAttr'", NULL);
  3965. #endif
  3966. {
  3967. self->SetVarNamesAttr(value);
  3968. }
  3969. }
  3970. return 0;
  3971. #ifndef TOLUA_RELEASE
  3972. tolua_lerror:
  3973. tolua_error(tolua_S,"#ferror in function 'SetVarNamesAttr'.",&tolua_err);
  3974. return 0;
  3975. #endif
  3976. }
  3977. #endif //#ifndef TOLUA_DISABLE
  3978. /* method: GetVarNamesAttr of class Scene */
  3979. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_GetVarNamesAttr00
  3980. static int tolua_Scene_Scene_GetVarNamesAttr00(lua_State* tolua_S)
  3981. {
  3982. #ifndef TOLUA_RELEASE
  3983. tolua_Error tolua_err;
  3984. if (
  3985. !tolua_isusertype(tolua_S,1,"const Scene",0,&tolua_err) ||
  3986. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3987. )
  3988. goto tolua_lerror;
  3989. else
  3990. #endif
  3991. {
  3992. const Scene* self = (const Scene*) tolua_tousertype(tolua_S,1,0);
  3993. #ifndef TOLUA_RELEASE
  3994. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVarNamesAttr'", NULL);
  3995. #endif
  3996. {
  3997. String tolua_ret = (String) self->GetVarNamesAttr();
  3998. {
  3999. #ifdef __cplusplus
  4000. void* tolua_obj = Mtolua_new((String)(tolua_ret));
  4001. tolua_pushusertype(tolua_S,tolua_obj,"String");
  4002. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4003. #else
  4004. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(String));
  4005. tolua_pushusertype(tolua_S,tolua_obj,"String");
  4006. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4007. #endif
  4008. }
  4009. }
  4010. }
  4011. return 1;
  4012. #ifndef TOLUA_RELEASE
  4013. tolua_lerror:
  4014. tolua_error(tolua_S,"#ferror in function 'GetVarNamesAttr'.",&tolua_err);
  4015. return 0;
  4016. #endif
  4017. }
  4018. #endif //#ifndef TOLUA_DISABLE
  4019. /* method: PrepareNetworkUpdate of class Scene */
  4020. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_PrepareNetworkUpdate00
  4021. static int tolua_Scene_Scene_PrepareNetworkUpdate00(lua_State* tolua_S)
  4022. {
  4023. #ifndef TOLUA_RELEASE
  4024. tolua_Error tolua_err;
  4025. if (
  4026. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  4027. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4028. )
  4029. goto tolua_lerror;
  4030. else
  4031. #endif
  4032. {
  4033. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  4034. #ifndef TOLUA_RELEASE
  4035. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'PrepareNetworkUpdate'", NULL);
  4036. #endif
  4037. {
  4038. self->PrepareNetworkUpdate();
  4039. }
  4040. }
  4041. return 0;
  4042. #ifndef TOLUA_RELEASE
  4043. tolua_lerror:
  4044. tolua_error(tolua_S,"#ferror in function 'PrepareNetworkUpdate'.",&tolua_err);
  4045. return 0;
  4046. #endif
  4047. }
  4048. #endif //#ifndef TOLUA_DISABLE
  4049. /* method: CleanupConnection of class Scene */
  4050. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_CleanupConnection00
  4051. static int tolua_Scene_Scene_CleanupConnection00(lua_State* tolua_S)
  4052. {
  4053. #ifndef TOLUA_RELEASE
  4054. tolua_Error tolua_err;
  4055. if (
  4056. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  4057. !tolua_isusertype(tolua_S,2,"Connection",0,&tolua_err) ||
  4058. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4059. )
  4060. goto tolua_lerror;
  4061. else
  4062. #endif
  4063. {
  4064. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  4065. Connection* connection = ((Connection*) tolua_tousertype(tolua_S,2,0));
  4066. #ifndef TOLUA_RELEASE
  4067. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'CleanupConnection'", NULL);
  4068. #endif
  4069. {
  4070. self->CleanupConnection(connection);
  4071. }
  4072. }
  4073. return 0;
  4074. #ifndef TOLUA_RELEASE
  4075. tolua_lerror:
  4076. tolua_error(tolua_S,"#ferror in function 'CleanupConnection'.",&tolua_err);
  4077. return 0;
  4078. #endif
  4079. }
  4080. #endif //#ifndef TOLUA_DISABLE
  4081. /* method: MarkNetworkUpdate of class Scene */
  4082. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_MarkNetworkUpdate00
  4083. static int tolua_Scene_Scene_MarkNetworkUpdate00(lua_State* tolua_S)
  4084. {
  4085. #ifndef TOLUA_RELEASE
  4086. tolua_Error tolua_err;
  4087. if (
  4088. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  4089. !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
  4090. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4091. )
  4092. goto tolua_lerror;
  4093. else
  4094. #endif
  4095. {
  4096. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  4097. Node* node = ((Node*) tolua_tousertype(tolua_S,2,0));
  4098. #ifndef TOLUA_RELEASE
  4099. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'MarkNetworkUpdate'", NULL);
  4100. #endif
  4101. {
  4102. self->MarkNetworkUpdate(node);
  4103. }
  4104. }
  4105. return 0;
  4106. #ifndef TOLUA_RELEASE
  4107. tolua_lerror:
  4108. tolua_error(tolua_S,"#ferror in function 'MarkNetworkUpdate'.",&tolua_err);
  4109. return 0;
  4110. #endif
  4111. }
  4112. #endif //#ifndef TOLUA_DISABLE
  4113. /* method: MarkNetworkUpdate of class Scene */
  4114. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_MarkNetworkUpdate01
  4115. static int tolua_Scene_Scene_MarkNetworkUpdate01(lua_State* tolua_S)
  4116. {
  4117. tolua_Error tolua_err;
  4118. if (
  4119. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  4120. !tolua_isusertype(tolua_S,2,"Component",0,&tolua_err) ||
  4121. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4122. )
  4123. goto tolua_lerror;
  4124. else
  4125. {
  4126. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  4127. Component* component = ((Component*) tolua_tousertype(tolua_S,2,0));
  4128. #ifndef TOLUA_RELEASE
  4129. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'MarkNetworkUpdate'", NULL);
  4130. #endif
  4131. {
  4132. self->MarkNetworkUpdate(component);
  4133. }
  4134. }
  4135. return 0;
  4136. tolua_lerror:
  4137. return tolua_Scene_Scene_MarkNetworkUpdate00(tolua_S);
  4138. }
  4139. #endif //#ifndef TOLUA_DISABLE
  4140. /* method: MarkReplicationDirty of class Scene */
  4141. #ifndef TOLUA_DISABLE_tolua_Scene_Scene_MarkReplicationDirty00
  4142. static int tolua_Scene_Scene_MarkReplicationDirty00(lua_State* tolua_S)
  4143. {
  4144. #ifndef TOLUA_RELEASE
  4145. tolua_Error tolua_err;
  4146. if (
  4147. !tolua_isusertype(tolua_S,1,"Scene",0,&tolua_err) ||
  4148. !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
  4149. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4150. )
  4151. goto tolua_lerror;
  4152. else
  4153. #endif
  4154. {
  4155. Scene* self = (Scene*) tolua_tousertype(tolua_S,1,0);
  4156. Node* node = ((Node*) tolua_tousertype(tolua_S,2,0));
  4157. #ifndef TOLUA_RELEASE
  4158. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'MarkReplicationDirty'", NULL);
  4159. #endif
  4160. {
  4161. self->MarkReplicationDirty(node);
  4162. }
  4163. }
  4164. return 0;
  4165. #ifndef TOLUA_RELEASE
  4166. tolua_lerror:
  4167. tolua_error(tolua_S,"#ferror in function 'MarkReplicationDirty'.",&tolua_err);
  4168. return 0;
  4169. #endif
  4170. }
  4171. #endif //#ifndef TOLUA_DISABLE
  4172. /* function: GetScene */
  4173. #ifndef TOLUA_DISABLE_tolua_Scene_GetScene00
  4174. static int tolua_Scene_GetScene00(lua_State* tolua_S)
  4175. {
  4176. #ifndef TOLUA_RELEASE
  4177. tolua_Error tolua_err;
  4178. if (
  4179. !tolua_isnoobj(tolua_S,1,&tolua_err)
  4180. )
  4181. goto tolua_lerror;
  4182. else
  4183. #endif
  4184. {
  4185. {
  4186. Scene* tolua_ret = (Scene*) GetScene();
  4187. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Scene");
  4188. }
  4189. }
  4190. return 1;
  4191. #ifndef TOLUA_RELEASE
  4192. tolua_lerror:
  4193. tolua_error(tolua_S,"#ferror in function 'GetScene'.",&tolua_err);
  4194. return 0;
  4195. #endif
  4196. }
  4197. #endif //#ifndef TOLUA_DISABLE
  4198. /* Open function */
  4199. TOLUA_API int tolua_Scene_open (lua_State* tolua_S)
  4200. {
  4201. tolua_open(tolua_S);
  4202. tolua_reg_types(tolua_S);
  4203. tolua_module(tolua_S,NULL,1);
  4204. tolua_beginmodule(tolua_S,NULL);
  4205. tolua_cclass(tolua_S,"Component","Component","",NULL);
  4206. tolua_beginmodule(tolua_S,"Component");
  4207. tolua_function(tolua_S,"SetEnabled",tolua_Scene_Component_SetEnabled00);
  4208. tolua_function(tolua_S,"Remove",tolua_Scene_Component_Remove00);
  4209. tolua_function(tolua_S,"GetID",tolua_Scene_Component_GetID00);
  4210. tolua_function(tolua_S,"GetNode",tolua_Scene_Component_GetNode00);
  4211. tolua_function(tolua_S,"GetScene",tolua_Scene_Component_GetScene00);
  4212. tolua_function(tolua_S,"IsEnabled",tolua_Scene_Component_IsEnabled00);
  4213. tolua_function(tolua_S,"IsEnabledEffective",tolua_Scene_Component_IsEnabledEffective00);
  4214. tolua_function(tolua_S,"GetComponent",tolua_Scene_Component_GetComponent00);
  4215. tolua_endmodule(tolua_S);
  4216. tolua_constant(tolua_S,"REPLICATED",REPLICATED);
  4217. tolua_constant(tolua_S,"LOCAL",LOCAL);
  4218. tolua_cclass(tolua_S,"Node","Node","",NULL);
  4219. tolua_beginmodule(tolua_S,"Node");
  4220. tolua_function(tolua_S,"SetName",tolua_Scene_Node_SetName00);
  4221. tolua_function(tolua_S,"SetPosition",tolua_Scene_Node_SetPosition00);
  4222. tolua_function(tolua_S,"SetRotation",tolua_Scene_Node_SetRotation00);
  4223. tolua_function(tolua_S,"SetDirection",tolua_Scene_Node_SetDirection00);
  4224. tolua_function(tolua_S,"SetScale",tolua_Scene_Node_SetScale00);
  4225. tolua_function(tolua_S,"SetScale",tolua_Scene_Node_SetScale01);
  4226. tolua_function(tolua_S,"SetTransform",tolua_Scene_Node_SetTransform00);
  4227. tolua_function(tolua_S,"SetTransform",tolua_Scene_Node_SetTransform01);
  4228. tolua_function(tolua_S,"SetTransform",tolua_Scene_Node_SetTransform02);
  4229. tolua_function(tolua_S,"SetWorldPosition",tolua_Scene_Node_SetWorldPosition00);
  4230. tolua_function(tolua_S,"SetWorldRotation",tolua_Scene_Node_SetWorldRotation00);
  4231. tolua_function(tolua_S,"SetWorldDirection",tolua_Scene_Node_SetWorldDirection00);
  4232. tolua_function(tolua_S,"SetWorldScale",tolua_Scene_Node_SetWorldScale00);
  4233. tolua_function(tolua_S,"SetWorldScale",tolua_Scene_Node_SetWorldScale01);
  4234. tolua_function(tolua_S,"SetWorldTransform",tolua_Scene_Node_SetWorldTransform00);
  4235. tolua_function(tolua_S,"SetWorldTransform",tolua_Scene_Node_SetWorldTransform01);
  4236. tolua_function(tolua_S,"SetWorldTransform",tolua_Scene_Node_SetWorldTransform02);
  4237. tolua_function(tolua_S,"Translate",tolua_Scene_Node_Translate00);
  4238. tolua_function(tolua_S,"TranslateRelative",tolua_Scene_Node_TranslateRelative00);
  4239. tolua_function(tolua_S,"Rotate",tolua_Scene_Node_Rotate00);
  4240. tolua_function(tolua_S,"Pitch",tolua_Scene_Node_Pitch00);
  4241. tolua_function(tolua_S,"Yaw",tolua_Scene_Node_Yaw00);
  4242. tolua_function(tolua_S,"Roll",tolua_Scene_Node_Roll00);
  4243. tolua_function(tolua_S,"LookAt",tolua_Scene_Node_LookAt00);
  4244. tolua_function(tolua_S,"LookAt",tolua_Scene_Node_LookAt01);
  4245. tolua_function(tolua_S,"Scale",tolua_Scene_Node_Scale00);
  4246. tolua_function(tolua_S,"Scale",tolua_Scene_Node_Scale01);
  4247. tolua_function(tolua_S,"SetEnabled",tolua_Scene_Node_SetEnabled00);
  4248. tolua_function(tolua_S,"SetEnabled",tolua_Scene_Node_SetEnabled01);
  4249. tolua_function(tolua_S,"SetOwner",tolua_Scene_Node_SetOwner00);
  4250. tolua_function(tolua_S,"MarkDirty",tolua_Scene_Node_MarkDirty00);
  4251. tolua_function(tolua_S,"CreateChild",tolua_Scene_Node_CreateChild00);
  4252. tolua_function(tolua_S,"CreateChild",tolua_Scene_Node_CreateChild01);
  4253. tolua_function(tolua_S,"AddChild",tolua_Scene_Node_AddChild00);
  4254. tolua_function(tolua_S,"RemoveChild",tolua_Scene_Node_RemoveChild00);
  4255. tolua_function(tolua_S,"RemoveAllChildren",tolua_Scene_Node_RemoveAllChildren00);
  4256. tolua_function(tolua_S,"CreateComponent",tolua_Scene_Node_CreateComponent00);
  4257. tolua_function(tolua_S,"GetOrCreateComponent",tolua_Scene_Node_GetOrCreateComponent00);
  4258. tolua_function(tolua_S,"RemoveComponent",tolua_Scene_Node_RemoveComponent00);
  4259. tolua_function(tolua_S,"RemoveComponent",tolua_Scene_Node_RemoveComponent01);
  4260. tolua_function(tolua_S,"RemoveAllComponents",tolua_Scene_Node_RemoveAllComponents00);
  4261. tolua_function(tolua_S,"Clone",tolua_Scene_Node_Clone00);
  4262. tolua_function(tolua_S,"Remove",tolua_Scene_Node_Remove00);
  4263. tolua_function(tolua_S,"SetParent",tolua_Scene_Node_SetParent00);
  4264. tolua_function(tolua_S,"SetVar",tolua_Scene_Node_SetVar00);
  4265. tolua_function(tolua_S,"AddListener",tolua_Scene_Node_AddListener00);
  4266. tolua_function(tolua_S,"RemoveListener",tolua_Scene_Node_RemoveListener00);
  4267. tolua_function(tolua_S,"GetID",tolua_Scene_Node_GetID00);
  4268. tolua_function(tolua_S,"GetName",tolua_Scene_Node_GetName00);
  4269. tolua_function(tolua_S,"GetNameHash",tolua_Scene_Node_GetNameHash00);
  4270. tolua_function(tolua_S,"GetParent",tolua_Scene_Node_GetParent00);
  4271. tolua_function(tolua_S,"GetScene",tolua_Scene_Node_GetScene00);
  4272. tolua_function(tolua_S,"IsEnabled",tolua_Scene_Node_IsEnabled00);
  4273. tolua_function(tolua_S,"GetOwner",tolua_Scene_Node_GetOwner00);
  4274. tolua_function(tolua_S,"GetPosition",tolua_Scene_Node_GetPosition00);
  4275. tolua_function(tolua_S,"GetRotation",tolua_Scene_Node_GetRotation00);
  4276. tolua_function(tolua_S,"GetDirection",tolua_Scene_Node_GetDirection00);
  4277. tolua_function(tolua_S,"GetScale",tolua_Scene_Node_GetScale00);
  4278. tolua_function(tolua_S,"GetTransform",tolua_Scene_Node_GetTransform00);
  4279. tolua_function(tolua_S,"GetWorldPosition",tolua_Scene_Node_GetWorldPosition00);
  4280. tolua_function(tolua_S,"GetWorldRotation",tolua_Scene_Node_GetWorldRotation00);
  4281. tolua_function(tolua_S,"GetWorldDirection",tolua_Scene_Node_GetWorldDirection00);
  4282. tolua_function(tolua_S,"GetWorldScale",tolua_Scene_Node_GetWorldScale00);
  4283. tolua_function(tolua_S,"GetWorldTransform",tolua_Scene_Node_GetWorldTransform00);
  4284. tolua_function(tolua_S,"LocalToWorld",tolua_Scene_Node_LocalToWorld00);
  4285. tolua_function(tolua_S,"LocalToWorld",tolua_Scene_Node_LocalToWorld01);
  4286. tolua_function(tolua_S,"WorldToLocal",tolua_Scene_Node_WorldToLocal00);
  4287. tolua_function(tolua_S,"WorldToLocal",tolua_Scene_Node_WorldToLocal01);
  4288. tolua_function(tolua_S,"IsDirty",tolua_Scene_Node_IsDirty00);
  4289. tolua_function(tolua_S,"GetNumChildren",tolua_Scene_Node_GetNumChildren00);
  4290. tolua_function(tolua_S,"GetChild",tolua_Scene_Node_GetChild00);
  4291. tolua_function(tolua_S,"GetChild",tolua_Scene_Node_GetChild01);
  4292. tolua_function(tolua_S,"GetChild",tolua_Scene_Node_GetChild02);
  4293. tolua_function(tolua_S,"GetChild",tolua_Scene_Node_GetChild03);
  4294. tolua_function(tolua_S,"GetNumComponents",tolua_Scene_Node_GetNumComponents00);
  4295. tolua_function(tolua_S,"GetNumNetworkComponents",tolua_Scene_Node_GetNumNetworkComponents00);
  4296. tolua_function(tolua_S,"GetComponent",tolua_Scene_Node_GetComponent00);
  4297. tolua_function(tolua_S,"HasComponent",tolua_Scene_Node_HasComponent00);
  4298. tolua_endmodule(tolua_S);
  4299. tolua_variable(tolua_S,"FIRST_REPLICATED_ID",tolua_get_FIRST_REPLICATED_ID,NULL);
  4300. tolua_variable(tolua_S,"LAST_REPLICATED_ID",tolua_get_LAST_REPLICATED_ID,NULL);
  4301. tolua_variable(tolua_S,"FIRST_LOCAL_ID",tolua_get_FIRST_LOCAL_ID,NULL);
  4302. tolua_variable(tolua_S,"LAST_LOCAL_ID",tolua_get_LAST_LOCAL_ID,NULL);
  4303. tolua_cclass(tolua_S,"Scene","Scene","Node",NULL);
  4304. tolua_beginmodule(tolua_S,"Scene");
  4305. tolua_function(tolua_S,"LoadAsync",tolua_Scene_Scene_LoadAsync00);
  4306. tolua_function(tolua_S,"LoadAsyncXML",tolua_Scene_Scene_LoadAsyncXML00);
  4307. tolua_function(tolua_S,"StopAsyncLoading",tolua_Scene_Scene_StopAsyncLoading00);
  4308. tolua_function(tolua_S,"Clear",tolua_Scene_Scene_Clear00);
  4309. tolua_function(tolua_S,"SetUpdateEnabled",tolua_Scene_Scene_SetUpdateEnabled00);
  4310. tolua_function(tolua_S,"SetTimeScale",tolua_Scene_Scene_SetTimeScale00);
  4311. tolua_function(tolua_S,"SetElapsedTime",tolua_Scene_Scene_SetElapsedTime00);
  4312. tolua_function(tolua_S,"SetSmoothingConstant",tolua_Scene_Scene_SetSmoothingConstant00);
  4313. tolua_function(tolua_S,"SetSnapThreshold",tolua_Scene_Scene_SetSnapThreshold00);
  4314. tolua_function(tolua_S,"GetNode",tolua_Scene_Scene_GetNode00);
  4315. tolua_function(tolua_S,"GetComponent",tolua_Scene_Scene_GetComponent00);
  4316. tolua_function(tolua_S,"IsUpdateEnabled",tolua_Scene_Scene_IsUpdateEnabled00);
  4317. tolua_function(tolua_S,"IsAsyncLoading",tolua_Scene_Scene_IsAsyncLoading00);
  4318. tolua_function(tolua_S,"GetAsyncProgress",tolua_Scene_Scene_GetAsyncProgress00);
  4319. tolua_function(tolua_S,"GetFileName",tolua_Scene_Scene_GetFileName00);
  4320. tolua_function(tolua_S,"GetChecksum",tolua_Scene_Scene_GetChecksum00);
  4321. tolua_function(tolua_S,"GetTimeScale",tolua_Scene_Scene_GetTimeScale00);
  4322. tolua_function(tolua_S,"GetElapsedTime",tolua_Scene_Scene_GetElapsedTime00);
  4323. tolua_function(tolua_S,"GetSmoothingConstant",tolua_Scene_Scene_GetSmoothingConstant00);
  4324. tolua_function(tolua_S,"GetSnapThreshold",tolua_Scene_Scene_GetSnapThreshold00);
  4325. tolua_function(tolua_S,"GetVarName",tolua_Scene_Scene_GetVarName00);
  4326. tolua_function(tolua_S,"Update",tolua_Scene_Scene_Update00);
  4327. tolua_function(tolua_S,"BeginThreadedUpdate",tolua_Scene_Scene_BeginThreadedUpdate00);
  4328. tolua_function(tolua_S,"EndThreadedUpdate",tolua_Scene_Scene_EndThreadedUpdate00);
  4329. tolua_function(tolua_S,"DelayedMarkedDirty",tolua_Scene_Scene_DelayedMarkedDirty00);
  4330. tolua_function(tolua_S,"IsThreadedUpdate",tolua_Scene_Scene_IsThreadedUpdate00);
  4331. tolua_function(tolua_S,"GetFreeNodeID",tolua_Scene_Scene_GetFreeNodeID00);
  4332. tolua_function(tolua_S,"GetFreeComponentID",tolua_Scene_Scene_GetFreeComponentID00);
  4333. tolua_function(tolua_S,"NodeAdded",tolua_Scene_Scene_NodeAdded00);
  4334. tolua_function(tolua_S,"NodeRemoved",tolua_Scene_Scene_NodeRemoved00);
  4335. tolua_function(tolua_S,"ComponentAdded",tolua_Scene_Scene_ComponentAdded00);
  4336. tolua_function(tolua_S,"ComponentRemoved",tolua_Scene_Scene_ComponentRemoved00);
  4337. tolua_function(tolua_S,"SetVarNamesAttr",tolua_Scene_Scene_SetVarNamesAttr00);
  4338. tolua_function(tolua_S,"GetVarNamesAttr",tolua_Scene_Scene_GetVarNamesAttr00);
  4339. tolua_function(tolua_S,"PrepareNetworkUpdate",tolua_Scene_Scene_PrepareNetworkUpdate00);
  4340. tolua_function(tolua_S,"CleanupConnection",tolua_Scene_Scene_CleanupConnection00);
  4341. tolua_function(tolua_S,"MarkNetworkUpdate",tolua_Scene_Scene_MarkNetworkUpdate00);
  4342. tolua_function(tolua_S,"MarkNetworkUpdate",tolua_Scene_Scene_MarkNetworkUpdate01);
  4343. tolua_function(tolua_S,"MarkReplicationDirty",tolua_Scene_Scene_MarkReplicationDirty00);
  4344. tolua_endmodule(tolua_S);
  4345. tolua_function(tolua_S,"GetScene",tolua_Scene_GetScene00);
  4346. tolua_endmodule(tolua_S);
  4347. return 1;
  4348. }
  4349. #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
  4350. TOLUA_API int luaopen_Scene (lua_State* tolua_S) {
  4351. return tolua_Scene_open(tolua_S);
  4352. };
  4353. #endif