SceneLuaAPI.cpp 131 KB

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