CoreLuaAPI.cpp 176 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833
  1. /*
  2. ** Lua binding: Core
  3. ** Generated automatically by tolua++-1.0.92 on 06/30/13 11:31:49.
  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_Core_open (lua_State* tolua_S);
  30. #define TOLUA_RELEASE
  31. #include "CoreLuaAPI.h"
  32. #include "ProcessUtils.h"
  33. #include "StringUtils.h"
  34. #include "Variant.h"
  35. #include "Timer.h"
  36. using namespace Urho3D;
  37. #pragma warning(disable:4800)
  38. /* function to release collected object via destructor */
  39. #ifdef __cplusplus
  40. static int tolua_collect_Quaternion (lua_State* tolua_S)
  41. {
  42. Quaternion* self = (Quaternion*) tolua_tousertype(tolua_S,1,0);
  43. Mtolua_delete(self);
  44. return 0;
  45. }
  46. static int tolua_collect_IntRect (lua_State* tolua_S)
  47. {
  48. IntRect* self = (IntRect*) tolua_tousertype(tolua_S,1,0);
  49. Mtolua_delete(self);
  50. return 0;
  51. }
  52. static int tolua_collect_String (lua_State* tolua_S)
  53. {
  54. String* self = (String*) tolua_tousertype(tolua_S,1,0);
  55. Mtolua_delete(self);
  56. return 0;
  57. }
  58. static int tolua_collect_Color (lua_State* tolua_S)
  59. {
  60. Color* self = (Color*) tolua_tousertype(tolua_S,1,0);
  61. Mtolua_delete(self);
  62. return 0;
  63. }
  64. static int tolua_collect_Variant (lua_State* tolua_S)
  65. {
  66. Variant* self = (Variant*) tolua_tousertype(tolua_S,1,0);
  67. Mtolua_delete(self);
  68. return 0;
  69. }
  70. static int tolua_collect_ShortStringHash (lua_State* tolua_S)
  71. {
  72. ShortStringHash* self = (ShortStringHash*) tolua_tousertype(tolua_S,1,0);
  73. Mtolua_delete(self);
  74. return 0;
  75. }
  76. static int tolua_collect_StringHash (lua_State* tolua_S)
  77. {
  78. StringHash* self = (StringHash*) tolua_tousertype(tolua_S,1,0);
  79. Mtolua_delete(self);
  80. return 0;
  81. }
  82. static int tolua_collect_ResourceRef (lua_State* tolua_S)
  83. {
  84. ResourceRef* self = (ResourceRef*) tolua_tousertype(tolua_S,1,0);
  85. Mtolua_delete(self);
  86. return 0;
  87. }
  88. static int tolua_collect_Rect (lua_State* tolua_S)
  89. {
  90. Rect* self = (Rect*) tolua_tousertype(tolua_S,1,0);
  91. Mtolua_delete(self);
  92. return 0;
  93. }
  94. static int tolua_collect_ResourceRefList (lua_State* tolua_S)
  95. {
  96. ResourceRefList* self = (ResourceRefList*) tolua_tousertype(tolua_S,1,0);
  97. Mtolua_delete(self);
  98. return 0;
  99. }
  100. static int tolua_collect_Vector2 (lua_State* tolua_S)
  101. {
  102. Vector2* self = (Vector2*) tolua_tousertype(tolua_S,1,0);
  103. Mtolua_delete(self);
  104. return 0;
  105. }
  106. static int tolua_collect_Timer (lua_State* tolua_S)
  107. {
  108. Timer* self = (Timer*) tolua_tousertype(tolua_S,1,0);
  109. Mtolua_delete(self);
  110. return 0;
  111. }
  112. static int tolua_collect_Vector4 (lua_State* tolua_S)
  113. {
  114. Vector4* self = (Vector4*) tolua_tousertype(tolua_S,1,0);
  115. Mtolua_delete(self);
  116. return 0;
  117. }
  118. static int tolua_collect_Vector3 (lua_State* tolua_S)
  119. {
  120. Vector3* self = (Vector3*) tolua_tousertype(tolua_S,1,0);
  121. Mtolua_delete(self);
  122. return 0;
  123. }
  124. static int tolua_collect_IntVector2 (lua_State* tolua_S)
  125. {
  126. IntVector2* self = (IntVector2*) tolua_tousertype(tolua_S,1,0);
  127. Mtolua_delete(self);
  128. return 0;
  129. }
  130. #endif
  131. /* function to register type */
  132. static void tolua_reg_types (lua_State* tolua_S)
  133. {
  134. tolua_usertype(tolua_S,"VariantMap");
  135. tolua_usertype(tolua_S,"String");
  136. tolua_usertype(tolua_S,"Color");
  137. tolua_usertype(tolua_S,"Time");
  138. tolua_usertype(tolua_S,"Variant");
  139. tolua_usertype(tolua_S,"Vector3");
  140. tolua_usertype(tolua_S,"IntRect");
  141. tolua_usertype(tolua_S,"Object");
  142. tolua_usertype(tolua_S,"Quaternion");
  143. tolua_usertype(tolua_S,"StringHash");
  144. tolua_usertype(tolua_S,"Vector4");
  145. tolua_usertype(tolua_S,"Rect");
  146. tolua_usertype(tolua_S,"ResourceRefList");
  147. tolua_usertype(tolua_S,"Vector2");
  148. tolua_usertype(tolua_S,"Timer");
  149. tolua_usertype(tolua_S,"ResourceRef");
  150. tolua_usertype(tolua_S,"ShortStringHash");
  151. tolua_usertype(tolua_S,"IntVector2");
  152. }
  153. /* function: ErrorDialog */
  154. #ifndef TOLUA_DISABLE_tolua_Core_ErrorDialog00
  155. static int tolua_Core_ErrorDialog00(lua_State* tolua_S)
  156. {
  157. #ifndef TOLUA_RELEASE
  158. tolua_Error tolua_err;
  159. if (
  160. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  161. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  162. !tolua_isnoobj(tolua_S,3,&tolua_err)
  163. )
  164. goto tolua_lerror;
  165. else
  166. #endif
  167. {
  168. const char* title = ((const char*) tolua_tostring(tolua_S,1,0));
  169. const char* message = ((const char*) tolua_tostring(tolua_S,2,0));
  170. {
  171. ErrorDialog(title,message);
  172. }
  173. }
  174. return 0;
  175. #ifndef TOLUA_RELEASE
  176. tolua_lerror:
  177. tolua_error(tolua_S,"#ferror in function 'ErrorDialog'.",&tolua_err);
  178. return 0;
  179. #endif
  180. }
  181. #endif //#ifndef TOLUA_DISABLE
  182. /* function: ErrorExit */
  183. #ifndef TOLUA_DISABLE_tolua_Core_ErrorExit00
  184. static int tolua_Core_ErrorExit00(lua_State* tolua_S)
  185. {
  186. #ifndef TOLUA_RELEASE
  187. tolua_Error tolua_err;
  188. if (
  189. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  190. !tolua_isnumber(tolua_S,2,1,&tolua_err) ||
  191. !tolua_isnoobj(tolua_S,3,&tolua_err)
  192. )
  193. goto tolua_lerror;
  194. else
  195. #endif
  196. {
  197. const char* message = ((const char*) tolua_tostring(tolua_S,1,0));
  198. int exitCode = ((int) tolua_tonumber(tolua_S,2,EXIT_FAILURE));
  199. {
  200. ErrorExit(message,exitCode);
  201. }
  202. }
  203. return 0;
  204. #ifndef TOLUA_RELEASE
  205. tolua_lerror:
  206. tolua_error(tolua_S,"#ferror in function 'ErrorExit'.",&tolua_err);
  207. return 0;
  208. #endif
  209. }
  210. #endif //#ifndef TOLUA_DISABLE
  211. /* function: OpenConsoleWindow */
  212. #ifndef TOLUA_DISABLE_tolua_Core_OpenConsoleWindow00
  213. static int tolua_Core_OpenConsoleWindow00(lua_State* tolua_S)
  214. {
  215. #ifndef TOLUA_RELEASE
  216. tolua_Error tolua_err;
  217. if (
  218. !tolua_isnoobj(tolua_S,1,&tolua_err)
  219. )
  220. goto tolua_lerror;
  221. else
  222. #endif
  223. {
  224. {
  225. OpenConsoleWindow();
  226. }
  227. }
  228. return 0;
  229. #ifndef TOLUA_RELEASE
  230. tolua_lerror:
  231. tolua_error(tolua_S,"#ferror in function 'OpenConsoleWindow'.",&tolua_err);
  232. return 0;
  233. #endif
  234. }
  235. #endif //#ifndef TOLUA_DISABLE
  236. /* function: PrintLine */
  237. #ifndef TOLUA_DISABLE_tolua_Core_PrintLine00
  238. static int tolua_Core_PrintLine00(lua_State* tolua_S)
  239. {
  240. #ifndef TOLUA_RELEASE
  241. tolua_Error tolua_err;
  242. if (
  243. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  244. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  245. !tolua_isnoobj(tolua_S,3,&tolua_err)
  246. )
  247. goto tolua_lerror;
  248. else
  249. #endif
  250. {
  251. const char* str = ((const char*) tolua_tostring(tolua_S,1,0));
  252. bool error = ((bool) tolua_toboolean(tolua_S,2,false));
  253. {
  254. PrintLine(str,error);
  255. }
  256. }
  257. return 0;
  258. #ifndef TOLUA_RELEASE
  259. tolua_lerror:
  260. tolua_error(tolua_S,"#ferror in function 'PrintLine'.",&tolua_err);
  261. return 0;
  262. #endif
  263. }
  264. #endif //#ifndef TOLUA_DISABLE
  265. /* function: GetPlatformCString */
  266. #ifndef TOLUA_DISABLE_tolua_Core_GetPlatform00
  267. static int tolua_Core_GetPlatform00(lua_State* tolua_S)
  268. {
  269. #ifndef TOLUA_RELEASE
  270. tolua_Error tolua_err;
  271. if (
  272. !tolua_isnoobj(tolua_S,1,&tolua_err)
  273. )
  274. goto tolua_lerror;
  275. else
  276. #endif
  277. {
  278. {
  279. const char* tolua_ret = (const char*) GetPlatformCString();
  280. tolua_pushstring(tolua_S,(const char*)tolua_ret);
  281. }
  282. }
  283. return 1;
  284. #ifndef TOLUA_RELEASE
  285. tolua_lerror:
  286. tolua_error(tolua_S,"#ferror in function 'GetPlatform'.",&tolua_err);
  287. return 0;
  288. #endif
  289. }
  290. #endif //#ifndef TOLUA_DISABLE
  291. /* function: GetNumPhysicalCPUs */
  292. #ifndef TOLUA_DISABLE_tolua_Core_GetNumPhysicalCPUs00
  293. static int tolua_Core_GetNumPhysicalCPUs00(lua_State* tolua_S)
  294. {
  295. #ifndef TOLUA_RELEASE
  296. tolua_Error tolua_err;
  297. if (
  298. !tolua_isnoobj(tolua_S,1,&tolua_err)
  299. )
  300. goto tolua_lerror;
  301. else
  302. #endif
  303. {
  304. {
  305. unsigned tolua_ret = (unsigned) GetNumPhysicalCPUs();
  306. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  307. }
  308. }
  309. return 1;
  310. #ifndef TOLUA_RELEASE
  311. tolua_lerror:
  312. tolua_error(tolua_S,"#ferror in function 'GetNumPhysicalCPUs'.",&tolua_err);
  313. return 0;
  314. #endif
  315. }
  316. #endif //#ifndef TOLUA_DISABLE
  317. /* function: GetNumLogicalCPUs */
  318. #ifndef TOLUA_DISABLE_tolua_Core_GetNumLogicalCPUs00
  319. static int tolua_Core_GetNumLogicalCPUs00(lua_State* tolua_S)
  320. {
  321. #ifndef TOLUA_RELEASE
  322. tolua_Error tolua_err;
  323. if (
  324. !tolua_isnoobj(tolua_S,1,&tolua_err)
  325. )
  326. goto tolua_lerror;
  327. else
  328. #endif
  329. {
  330. {
  331. unsigned tolua_ret = (unsigned) GetNumLogicalCPUs();
  332. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  333. }
  334. }
  335. return 1;
  336. #ifndef TOLUA_RELEASE
  337. tolua_lerror:
  338. tolua_error(tolua_S,"#ferror in function 'GetNumLogicalCPUs'.",&tolua_err);
  339. return 0;
  340. #endif
  341. }
  342. #endif //#ifndef TOLUA_DISABLE
  343. /* function: ToBool */
  344. #ifndef TOLUA_DISABLE_tolua_Core_ToBool00
  345. static int tolua_Core_ToBool00(lua_State* tolua_S)
  346. {
  347. #ifndef TOLUA_RELEASE
  348. tolua_Error tolua_err;
  349. if (
  350. (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"const String",0,&tolua_err)) ||
  351. !tolua_isnoobj(tolua_S,2,&tolua_err)
  352. )
  353. goto tolua_lerror;
  354. else
  355. #endif
  356. {
  357. const String* source = ((const String*) tolua_tousertype(tolua_S,1,0));
  358. {
  359. bool tolua_ret = (bool) ToBool(*source);
  360. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  361. }
  362. }
  363. return 1;
  364. #ifndef TOLUA_RELEASE
  365. tolua_lerror:
  366. tolua_error(tolua_S,"#ferror in function 'ToBool'.",&tolua_err);
  367. return 0;
  368. #endif
  369. }
  370. #endif //#ifndef TOLUA_DISABLE
  371. /* function: ToBool */
  372. #ifndef TOLUA_DISABLE_tolua_Core_ToBool01
  373. static int tolua_Core_ToBool01(lua_State* tolua_S)
  374. {
  375. tolua_Error tolua_err;
  376. if (
  377. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  378. !tolua_isnoobj(tolua_S,2,&tolua_err)
  379. )
  380. goto tolua_lerror;
  381. else
  382. {
  383. const char* source = ((const char*) tolua_tostring(tolua_S,1,0));
  384. {
  385. bool tolua_ret = (bool) ToBool(source);
  386. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  387. }
  388. }
  389. return 1;
  390. tolua_lerror:
  391. return tolua_Core_ToBool00(tolua_S);
  392. }
  393. #endif //#ifndef TOLUA_DISABLE
  394. /* function: ToFloat */
  395. #ifndef TOLUA_DISABLE_tolua_Core_ToFloat00
  396. static int tolua_Core_ToFloat00(lua_State* tolua_S)
  397. {
  398. #ifndef TOLUA_RELEASE
  399. tolua_Error tolua_err;
  400. if (
  401. (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"const String",0,&tolua_err)) ||
  402. !tolua_isnoobj(tolua_S,2,&tolua_err)
  403. )
  404. goto tolua_lerror;
  405. else
  406. #endif
  407. {
  408. const String* source = ((const String*) tolua_tousertype(tolua_S,1,0));
  409. {
  410. float tolua_ret = (float) ToFloat(*source);
  411. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  412. }
  413. }
  414. return 1;
  415. #ifndef TOLUA_RELEASE
  416. tolua_lerror:
  417. tolua_error(tolua_S,"#ferror in function 'ToFloat'.",&tolua_err);
  418. return 0;
  419. #endif
  420. }
  421. #endif //#ifndef TOLUA_DISABLE
  422. /* function: ToFloat */
  423. #ifndef TOLUA_DISABLE_tolua_Core_ToFloat01
  424. static int tolua_Core_ToFloat01(lua_State* tolua_S)
  425. {
  426. tolua_Error tolua_err;
  427. if (
  428. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  429. !tolua_isnoobj(tolua_S,2,&tolua_err)
  430. )
  431. goto tolua_lerror;
  432. else
  433. {
  434. const char* source = ((const char*) tolua_tostring(tolua_S,1,0));
  435. {
  436. float tolua_ret = (float) ToFloat(source);
  437. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  438. }
  439. }
  440. return 1;
  441. tolua_lerror:
  442. return tolua_Core_ToFloat00(tolua_S);
  443. }
  444. #endif //#ifndef TOLUA_DISABLE
  445. /* function: ToInt */
  446. #ifndef TOLUA_DISABLE_tolua_Core_ToInt00
  447. static int tolua_Core_ToInt00(lua_State* tolua_S)
  448. {
  449. #ifndef TOLUA_RELEASE
  450. tolua_Error tolua_err;
  451. if (
  452. (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"const String",0,&tolua_err)) ||
  453. !tolua_isnoobj(tolua_S,2,&tolua_err)
  454. )
  455. goto tolua_lerror;
  456. else
  457. #endif
  458. {
  459. const String* source = ((const String*) tolua_tousertype(tolua_S,1,0));
  460. {
  461. int tolua_ret = (int) ToInt(*source);
  462. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  463. }
  464. }
  465. return 1;
  466. #ifndef TOLUA_RELEASE
  467. tolua_lerror:
  468. tolua_error(tolua_S,"#ferror in function 'ToInt'.",&tolua_err);
  469. return 0;
  470. #endif
  471. }
  472. #endif //#ifndef TOLUA_DISABLE
  473. /* function: ToInt */
  474. #ifndef TOLUA_DISABLE_tolua_Core_ToInt01
  475. static int tolua_Core_ToInt01(lua_State* tolua_S)
  476. {
  477. tolua_Error tolua_err;
  478. if (
  479. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  480. !tolua_isnoobj(tolua_S,2,&tolua_err)
  481. )
  482. goto tolua_lerror;
  483. else
  484. {
  485. const char* source = ((const char*) tolua_tostring(tolua_S,1,0));
  486. {
  487. int tolua_ret = (int) ToInt(source);
  488. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  489. }
  490. }
  491. return 1;
  492. tolua_lerror:
  493. return tolua_Core_ToInt00(tolua_S);
  494. }
  495. #endif //#ifndef TOLUA_DISABLE
  496. /* function: ToUInt */
  497. #ifndef TOLUA_DISABLE_tolua_Core_ToUInt00
  498. static int tolua_Core_ToUInt00(lua_State* tolua_S)
  499. {
  500. #ifndef TOLUA_RELEASE
  501. tolua_Error tolua_err;
  502. if (
  503. (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"const String",0,&tolua_err)) ||
  504. !tolua_isnoobj(tolua_S,2,&tolua_err)
  505. )
  506. goto tolua_lerror;
  507. else
  508. #endif
  509. {
  510. const String* source = ((const String*) tolua_tousertype(tolua_S,1,0));
  511. {
  512. unsigned tolua_ret = (unsigned) ToUInt(*source);
  513. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  514. }
  515. }
  516. return 1;
  517. #ifndef TOLUA_RELEASE
  518. tolua_lerror:
  519. tolua_error(tolua_S,"#ferror in function 'ToUInt'.",&tolua_err);
  520. return 0;
  521. #endif
  522. }
  523. #endif //#ifndef TOLUA_DISABLE
  524. /* function: ToUInt */
  525. #ifndef TOLUA_DISABLE_tolua_Core_ToUInt01
  526. static int tolua_Core_ToUInt01(lua_State* tolua_S)
  527. {
  528. tolua_Error tolua_err;
  529. if (
  530. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  531. !tolua_isnoobj(tolua_S,2,&tolua_err)
  532. )
  533. goto tolua_lerror;
  534. else
  535. {
  536. const char* source = ((const char*) tolua_tostring(tolua_S,1,0));
  537. {
  538. unsigned tolua_ret = (unsigned) ToUInt(source);
  539. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  540. }
  541. }
  542. return 1;
  543. tolua_lerror:
  544. return tolua_Core_ToUInt00(tolua_S);
  545. }
  546. #endif //#ifndef TOLUA_DISABLE
  547. /* function: ToColor */
  548. #ifndef TOLUA_DISABLE_tolua_Core_ToColor00
  549. static int tolua_Core_ToColor00(lua_State* tolua_S)
  550. {
  551. #ifndef TOLUA_RELEASE
  552. tolua_Error tolua_err;
  553. if (
  554. (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"const String",0,&tolua_err)) ||
  555. !tolua_isnoobj(tolua_S,2,&tolua_err)
  556. )
  557. goto tolua_lerror;
  558. else
  559. #endif
  560. {
  561. const String* source = ((const String*) tolua_tousertype(tolua_S,1,0));
  562. {
  563. Color tolua_ret = (Color) ToColor(*source);
  564. {
  565. #ifdef __cplusplus
  566. void* tolua_obj = Mtolua_new((Color)(tolua_ret));
  567. tolua_pushusertype(tolua_S,tolua_obj,"Color");
  568. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  569. #else
  570. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Color));
  571. tolua_pushusertype(tolua_S,tolua_obj,"Color");
  572. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  573. #endif
  574. }
  575. }
  576. }
  577. return 1;
  578. #ifndef TOLUA_RELEASE
  579. tolua_lerror:
  580. tolua_error(tolua_S,"#ferror in function 'ToColor'.",&tolua_err);
  581. return 0;
  582. #endif
  583. }
  584. #endif //#ifndef TOLUA_DISABLE
  585. /* function: ToColor */
  586. #ifndef TOLUA_DISABLE_tolua_Core_ToColor01
  587. static int tolua_Core_ToColor01(lua_State* tolua_S)
  588. {
  589. tolua_Error tolua_err;
  590. if (
  591. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  592. !tolua_isnoobj(tolua_S,2,&tolua_err)
  593. )
  594. goto tolua_lerror;
  595. else
  596. {
  597. const char* source = ((const char*) tolua_tostring(tolua_S,1,0));
  598. {
  599. Color tolua_ret = (Color) ToColor(source);
  600. {
  601. #ifdef __cplusplus
  602. void* tolua_obj = Mtolua_new((Color)(tolua_ret));
  603. tolua_pushusertype(tolua_S,tolua_obj,"Color");
  604. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  605. #else
  606. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Color));
  607. tolua_pushusertype(tolua_S,tolua_obj,"Color");
  608. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  609. #endif
  610. }
  611. }
  612. }
  613. return 1;
  614. tolua_lerror:
  615. return tolua_Core_ToColor00(tolua_S);
  616. }
  617. #endif //#ifndef TOLUA_DISABLE
  618. /* function: ToIntRect */
  619. #ifndef TOLUA_DISABLE_tolua_Core_ToIntRect00
  620. static int tolua_Core_ToIntRect00(lua_State* tolua_S)
  621. {
  622. #ifndef TOLUA_RELEASE
  623. tolua_Error tolua_err;
  624. if (
  625. (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"const String",0,&tolua_err)) ||
  626. !tolua_isnoobj(tolua_S,2,&tolua_err)
  627. )
  628. goto tolua_lerror;
  629. else
  630. #endif
  631. {
  632. const String* source = ((const String*) tolua_tousertype(tolua_S,1,0));
  633. {
  634. IntRect tolua_ret = (IntRect) ToIntRect(*source);
  635. {
  636. #ifdef __cplusplus
  637. void* tolua_obj = Mtolua_new((IntRect)(tolua_ret));
  638. tolua_pushusertype(tolua_S,tolua_obj,"IntRect");
  639. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  640. #else
  641. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntRect));
  642. tolua_pushusertype(tolua_S,tolua_obj,"IntRect");
  643. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  644. #endif
  645. }
  646. }
  647. }
  648. return 1;
  649. #ifndef TOLUA_RELEASE
  650. tolua_lerror:
  651. tolua_error(tolua_S,"#ferror in function 'ToIntRect'.",&tolua_err);
  652. return 0;
  653. #endif
  654. }
  655. #endif //#ifndef TOLUA_DISABLE
  656. /* function: ToIntRect */
  657. #ifndef TOLUA_DISABLE_tolua_Core_ToIntRect01
  658. static int tolua_Core_ToIntRect01(lua_State* tolua_S)
  659. {
  660. tolua_Error tolua_err;
  661. if (
  662. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  663. !tolua_isnoobj(tolua_S,2,&tolua_err)
  664. )
  665. goto tolua_lerror;
  666. else
  667. {
  668. const char* source = ((const char*) tolua_tostring(tolua_S,1,0));
  669. {
  670. IntRect tolua_ret = (IntRect) ToIntRect(source);
  671. {
  672. #ifdef __cplusplus
  673. void* tolua_obj = Mtolua_new((IntRect)(tolua_ret));
  674. tolua_pushusertype(tolua_S,tolua_obj,"IntRect");
  675. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  676. #else
  677. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntRect));
  678. tolua_pushusertype(tolua_S,tolua_obj,"IntRect");
  679. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  680. #endif
  681. }
  682. }
  683. }
  684. return 1;
  685. tolua_lerror:
  686. return tolua_Core_ToIntRect00(tolua_S);
  687. }
  688. #endif //#ifndef TOLUA_DISABLE
  689. /* function: ToIntVector2 */
  690. #ifndef TOLUA_DISABLE_tolua_Core_ToIntVector200
  691. static int tolua_Core_ToIntVector200(lua_State* tolua_S)
  692. {
  693. #ifndef TOLUA_RELEASE
  694. tolua_Error tolua_err;
  695. if (
  696. (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"const String",0,&tolua_err)) ||
  697. !tolua_isnoobj(tolua_S,2,&tolua_err)
  698. )
  699. goto tolua_lerror;
  700. else
  701. #endif
  702. {
  703. const String* source = ((const String*) tolua_tousertype(tolua_S,1,0));
  704. {
  705. IntVector2 tolua_ret = (IntVector2) ToIntVector2(*source);
  706. {
  707. #ifdef __cplusplus
  708. void* tolua_obj = Mtolua_new((IntVector2)(tolua_ret));
  709. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  710. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  711. #else
  712. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntVector2));
  713. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  714. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  715. #endif
  716. }
  717. }
  718. }
  719. return 1;
  720. #ifndef TOLUA_RELEASE
  721. tolua_lerror:
  722. tolua_error(tolua_S,"#ferror in function 'ToIntVector2'.",&tolua_err);
  723. return 0;
  724. #endif
  725. }
  726. #endif //#ifndef TOLUA_DISABLE
  727. /* function: ToIntVector2 */
  728. #ifndef TOLUA_DISABLE_tolua_Core_ToIntVector201
  729. static int tolua_Core_ToIntVector201(lua_State* tolua_S)
  730. {
  731. tolua_Error tolua_err;
  732. if (
  733. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  734. !tolua_isnoobj(tolua_S,2,&tolua_err)
  735. )
  736. goto tolua_lerror;
  737. else
  738. {
  739. const char* source = ((const char*) tolua_tostring(tolua_S,1,0));
  740. {
  741. IntVector2 tolua_ret = (IntVector2) ToIntVector2(source);
  742. {
  743. #ifdef __cplusplus
  744. void* tolua_obj = Mtolua_new((IntVector2)(tolua_ret));
  745. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  746. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  747. #else
  748. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntVector2));
  749. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  750. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  751. #endif
  752. }
  753. }
  754. }
  755. return 1;
  756. tolua_lerror:
  757. return tolua_Core_ToIntVector200(tolua_S);
  758. }
  759. #endif //#ifndef TOLUA_DISABLE
  760. /* function: ToQuaternion */
  761. #ifndef TOLUA_DISABLE_tolua_Core_ToQuaternion00
  762. static int tolua_Core_ToQuaternion00(lua_State* tolua_S)
  763. {
  764. #ifndef TOLUA_RELEASE
  765. tolua_Error tolua_err;
  766. if (
  767. (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"const String",0,&tolua_err)) ||
  768. !tolua_isnoobj(tolua_S,2,&tolua_err)
  769. )
  770. goto tolua_lerror;
  771. else
  772. #endif
  773. {
  774. const String* source = ((const String*) tolua_tousertype(tolua_S,1,0));
  775. {
  776. Quaternion tolua_ret = (Quaternion) ToQuaternion(*source);
  777. {
  778. #ifdef __cplusplus
  779. void* tolua_obj = Mtolua_new((Quaternion)(tolua_ret));
  780. tolua_pushusertype(tolua_S,tolua_obj,"Quaternion");
  781. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  782. #else
  783. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Quaternion));
  784. tolua_pushusertype(tolua_S,tolua_obj,"Quaternion");
  785. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  786. #endif
  787. }
  788. }
  789. }
  790. return 1;
  791. #ifndef TOLUA_RELEASE
  792. tolua_lerror:
  793. tolua_error(tolua_S,"#ferror in function 'ToQuaternion'.",&tolua_err);
  794. return 0;
  795. #endif
  796. }
  797. #endif //#ifndef TOLUA_DISABLE
  798. /* function: ToQuaternion */
  799. #ifndef TOLUA_DISABLE_tolua_Core_ToQuaternion01
  800. static int tolua_Core_ToQuaternion01(lua_State* tolua_S)
  801. {
  802. tolua_Error tolua_err;
  803. if (
  804. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  805. !tolua_isnoobj(tolua_S,2,&tolua_err)
  806. )
  807. goto tolua_lerror;
  808. else
  809. {
  810. const char* source = ((const char*) tolua_tostring(tolua_S,1,0));
  811. {
  812. Quaternion tolua_ret = (Quaternion) ToQuaternion(source);
  813. {
  814. #ifdef __cplusplus
  815. void* tolua_obj = Mtolua_new((Quaternion)(tolua_ret));
  816. tolua_pushusertype(tolua_S,tolua_obj,"Quaternion");
  817. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  818. #else
  819. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Quaternion));
  820. tolua_pushusertype(tolua_S,tolua_obj,"Quaternion");
  821. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  822. #endif
  823. }
  824. }
  825. }
  826. return 1;
  827. tolua_lerror:
  828. return tolua_Core_ToQuaternion00(tolua_S);
  829. }
  830. #endif //#ifndef TOLUA_DISABLE
  831. /* function: ToRect */
  832. #ifndef TOLUA_DISABLE_tolua_Core_ToRect00
  833. static int tolua_Core_ToRect00(lua_State* tolua_S)
  834. {
  835. #ifndef TOLUA_RELEASE
  836. tolua_Error tolua_err;
  837. if (
  838. (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"const String",0,&tolua_err)) ||
  839. !tolua_isnoobj(tolua_S,2,&tolua_err)
  840. )
  841. goto tolua_lerror;
  842. else
  843. #endif
  844. {
  845. const String* source = ((const String*) tolua_tousertype(tolua_S,1,0));
  846. {
  847. Rect tolua_ret = (Rect) ToRect(*source);
  848. {
  849. #ifdef __cplusplus
  850. void* tolua_obj = Mtolua_new((Rect)(tolua_ret));
  851. tolua_pushusertype(tolua_S,tolua_obj,"Rect");
  852. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  853. #else
  854. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Rect));
  855. tolua_pushusertype(tolua_S,tolua_obj,"Rect");
  856. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  857. #endif
  858. }
  859. }
  860. }
  861. return 1;
  862. #ifndef TOLUA_RELEASE
  863. tolua_lerror:
  864. tolua_error(tolua_S,"#ferror in function 'ToRect'.",&tolua_err);
  865. return 0;
  866. #endif
  867. }
  868. #endif //#ifndef TOLUA_DISABLE
  869. /* function: ToRect */
  870. #ifndef TOLUA_DISABLE_tolua_Core_ToRect01
  871. static int tolua_Core_ToRect01(lua_State* tolua_S)
  872. {
  873. tolua_Error tolua_err;
  874. if (
  875. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  876. !tolua_isnoobj(tolua_S,2,&tolua_err)
  877. )
  878. goto tolua_lerror;
  879. else
  880. {
  881. const char* source = ((const char*) tolua_tostring(tolua_S,1,0));
  882. {
  883. Rect tolua_ret = (Rect) ToRect(source);
  884. {
  885. #ifdef __cplusplus
  886. void* tolua_obj = Mtolua_new((Rect)(tolua_ret));
  887. tolua_pushusertype(tolua_S,tolua_obj,"Rect");
  888. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  889. #else
  890. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Rect));
  891. tolua_pushusertype(tolua_S,tolua_obj,"Rect");
  892. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  893. #endif
  894. }
  895. }
  896. }
  897. return 1;
  898. tolua_lerror:
  899. return tolua_Core_ToRect00(tolua_S);
  900. }
  901. #endif //#ifndef TOLUA_DISABLE
  902. /* function: ToVector2 */
  903. #ifndef TOLUA_DISABLE_tolua_Core_ToVector200
  904. static int tolua_Core_ToVector200(lua_State* tolua_S)
  905. {
  906. #ifndef TOLUA_RELEASE
  907. tolua_Error tolua_err;
  908. if (
  909. (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"const String",0,&tolua_err)) ||
  910. !tolua_isnoobj(tolua_S,2,&tolua_err)
  911. )
  912. goto tolua_lerror;
  913. else
  914. #endif
  915. {
  916. const String* source = ((const String*) tolua_tousertype(tolua_S,1,0));
  917. {
  918. Vector2 tolua_ret = (Vector2) ToVector2(*source);
  919. {
  920. #ifdef __cplusplus
  921. void* tolua_obj = Mtolua_new((Vector2)(tolua_ret));
  922. tolua_pushusertype(tolua_S,tolua_obj,"Vector2");
  923. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  924. #else
  925. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector2));
  926. tolua_pushusertype(tolua_S,tolua_obj,"Vector2");
  927. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  928. #endif
  929. }
  930. }
  931. }
  932. return 1;
  933. #ifndef TOLUA_RELEASE
  934. tolua_lerror:
  935. tolua_error(tolua_S,"#ferror in function 'ToVector2'.",&tolua_err);
  936. return 0;
  937. #endif
  938. }
  939. #endif //#ifndef TOLUA_DISABLE
  940. /* function: ToVector2 */
  941. #ifndef TOLUA_DISABLE_tolua_Core_ToVector201
  942. static int tolua_Core_ToVector201(lua_State* tolua_S)
  943. {
  944. tolua_Error tolua_err;
  945. if (
  946. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  947. !tolua_isnoobj(tolua_S,2,&tolua_err)
  948. )
  949. goto tolua_lerror;
  950. else
  951. {
  952. const char* source = ((const char*) tolua_tostring(tolua_S,1,0));
  953. {
  954. Vector2 tolua_ret = (Vector2) ToVector2(source);
  955. {
  956. #ifdef __cplusplus
  957. void* tolua_obj = Mtolua_new((Vector2)(tolua_ret));
  958. tolua_pushusertype(tolua_S,tolua_obj,"Vector2");
  959. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  960. #else
  961. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector2));
  962. tolua_pushusertype(tolua_S,tolua_obj,"Vector2");
  963. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  964. #endif
  965. }
  966. }
  967. }
  968. return 1;
  969. tolua_lerror:
  970. return tolua_Core_ToVector200(tolua_S);
  971. }
  972. #endif //#ifndef TOLUA_DISABLE
  973. /* function: ToVector3 */
  974. #ifndef TOLUA_DISABLE_tolua_Core_ToVector300
  975. static int tolua_Core_ToVector300(lua_State* tolua_S)
  976. {
  977. #ifndef TOLUA_RELEASE
  978. tolua_Error tolua_err;
  979. if (
  980. (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"const String",0,&tolua_err)) ||
  981. !tolua_isnoobj(tolua_S,2,&tolua_err)
  982. )
  983. goto tolua_lerror;
  984. else
  985. #endif
  986. {
  987. const String* source = ((const String*) tolua_tousertype(tolua_S,1,0));
  988. {
  989. Vector3 tolua_ret = (Vector3) ToVector3(*source);
  990. {
  991. #ifdef __cplusplus
  992. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  993. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  994. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  995. #else
  996. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  997. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  998. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  999. #endif
  1000. }
  1001. }
  1002. }
  1003. return 1;
  1004. #ifndef TOLUA_RELEASE
  1005. tolua_lerror:
  1006. tolua_error(tolua_S,"#ferror in function 'ToVector3'.",&tolua_err);
  1007. return 0;
  1008. #endif
  1009. }
  1010. #endif //#ifndef TOLUA_DISABLE
  1011. /* function: ToVector3 */
  1012. #ifndef TOLUA_DISABLE_tolua_Core_ToVector301
  1013. static int tolua_Core_ToVector301(lua_State* tolua_S)
  1014. {
  1015. tolua_Error tolua_err;
  1016. if (
  1017. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  1018. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1019. )
  1020. goto tolua_lerror;
  1021. else
  1022. {
  1023. const char* source = ((const char*) tolua_tostring(tolua_S,1,0));
  1024. {
  1025. Vector3 tolua_ret = (Vector3) ToVector3(source);
  1026. {
  1027. #ifdef __cplusplus
  1028. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  1029. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  1030. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1031. #else
  1032. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  1033. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  1034. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1035. #endif
  1036. }
  1037. }
  1038. }
  1039. return 1;
  1040. tolua_lerror:
  1041. return tolua_Core_ToVector300(tolua_S);
  1042. }
  1043. #endif //#ifndef TOLUA_DISABLE
  1044. /* function: ToVector4 */
  1045. #ifndef TOLUA_DISABLE_tolua_Core_ToVector400
  1046. static int tolua_Core_ToVector400(lua_State* tolua_S)
  1047. {
  1048. #ifndef TOLUA_RELEASE
  1049. tolua_Error tolua_err;
  1050. if (
  1051. (tolua_isvaluenil(tolua_S,1,&tolua_err) || !tolua_isusertype(tolua_S,1,"const String",0,&tolua_err)) ||
  1052. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  1053. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1054. )
  1055. goto tolua_lerror;
  1056. else
  1057. #endif
  1058. {
  1059. const String* source = ((const String*) tolua_tousertype(tolua_S,1,0));
  1060. bool allowMissingCoords = ((bool) tolua_toboolean(tolua_S,2,false));
  1061. {
  1062. Vector4 tolua_ret = (Vector4) ToVector4(*source,allowMissingCoords);
  1063. {
  1064. #ifdef __cplusplus
  1065. void* tolua_obj = Mtolua_new((Vector4)(tolua_ret));
  1066. tolua_pushusertype(tolua_S,tolua_obj,"Vector4");
  1067. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1068. #else
  1069. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector4));
  1070. tolua_pushusertype(tolua_S,tolua_obj,"Vector4");
  1071. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1072. #endif
  1073. }
  1074. }
  1075. }
  1076. return 1;
  1077. #ifndef TOLUA_RELEASE
  1078. tolua_lerror:
  1079. tolua_error(tolua_S,"#ferror in function 'ToVector4'.",&tolua_err);
  1080. return 0;
  1081. #endif
  1082. }
  1083. #endif //#ifndef TOLUA_DISABLE
  1084. /* function: ToVector4 */
  1085. #ifndef TOLUA_DISABLE_tolua_Core_ToVector401
  1086. static int tolua_Core_ToVector401(lua_State* tolua_S)
  1087. {
  1088. tolua_Error tolua_err;
  1089. if (
  1090. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  1091. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  1092. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1093. )
  1094. goto tolua_lerror;
  1095. else
  1096. {
  1097. const char* source = ((const char*) tolua_tostring(tolua_S,1,0));
  1098. bool allowMissingCoords = ((bool) tolua_toboolean(tolua_S,2,false));
  1099. {
  1100. Vector4 tolua_ret = (Vector4) ToVector4(source,allowMissingCoords);
  1101. {
  1102. #ifdef __cplusplus
  1103. void* tolua_obj = Mtolua_new((Vector4)(tolua_ret));
  1104. tolua_pushusertype(tolua_S,tolua_obj,"Vector4");
  1105. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1106. #else
  1107. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector4));
  1108. tolua_pushusertype(tolua_S,tolua_obj,"Vector4");
  1109. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1110. #endif
  1111. }
  1112. }
  1113. }
  1114. return 1;
  1115. tolua_lerror:
  1116. return tolua_Core_ToVector400(tolua_S);
  1117. }
  1118. #endif //#ifndef TOLUA_DISABLE
  1119. /* function: ToString */
  1120. #ifndef TOLUA_DISABLE_tolua_Core_ToString00
  1121. static int tolua_Core_ToString00(lua_State* tolua_S)
  1122. {
  1123. #ifndef TOLUA_RELEASE
  1124. tolua_Error tolua_err;
  1125. if (
  1126. !tolua_isuserdata(tolua_S,1,0,&tolua_err) ||
  1127. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1128. )
  1129. goto tolua_lerror;
  1130. else
  1131. #endif
  1132. {
  1133. void* value = ((void*) tolua_touserdata(tolua_S,1,0));
  1134. {
  1135. String tolua_ret = (String) ToString(value);
  1136. {
  1137. #ifdef __cplusplus
  1138. void* tolua_obj = Mtolua_new((String)(tolua_ret));
  1139. tolua_pushusertype(tolua_S,tolua_obj,"String");
  1140. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1141. #else
  1142. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(String));
  1143. tolua_pushusertype(tolua_S,tolua_obj,"String");
  1144. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1145. #endif
  1146. }
  1147. }
  1148. }
  1149. return 1;
  1150. #ifndef TOLUA_RELEASE
  1151. tolua_lerror:
  1152. tolua_error(tolua_S,"#ferror in function 'ToString'.",&tolua_err);
  1153. return 0;
  1154. #endif
  1155. }
  1156. #endif //#ifndef TOLUA_DISABLE
  1157. /* function: ToStringHex */
  1158. #ifndef TOLUA_DISABLE_tolua_Core_ToStringHex00
  1159. static int tolua_Core_ToStringHex00(lua_State* tolua_S)
  1160. {
  1161. #ifndef TOLUA_RELEASE
  1162. tolua_Error tolua_err;
  1163. if (
  1164. !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
  1165. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1166. )
  1167. goto tolua_lerror;
  1168. else
  1169. #endif
  1170. {
  1171. unsigned value = ((unsigned) tolua_tonumber(tolua_S,1,0));
  1172. {
  1173. String tolua_ret = (String) ToStringHex(value);
  1174. {
  1175. #ifdef __cplusplus
  1176. void* tolua_obj = Mtolua_new((String)(tolua_ret));
  1177. tolua_pushusertype(tolua_S,tolua_obj,"String");
  1178. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1179. #else
  1180. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(String));
  1181. tolua_pushusertype(tolua_S,tolua_obj,"String");
  1182. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1183. #endif
  1184. }
  1185. }
  1186. }
  1187. return 1;
  1188. #ifndef TOLUA_RELEASE
  1189. tolua_lerror:
  1190. tolua_error(tolua_S,"#ferror in function 'ToStringHex'.",&tolua_err);
  1191. return 0;
  1192. #endif
  1193. }
  1194. #endif //#ifndef TOLUA_DISABLE
  1195. /* function: IsAlpha */
  1196. #ifndef TOLUA_DISABLE_tolua_Core_IsAlpha00
  1197. static int tolua_Core_IsAlpha00(lua_State* tolua_S)
  1198. {
  1199. #ifndef TOLUA_RELEASE
  1200. tolua_Error tolua_err;
  1201. if (
  1202. !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
  1203. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1204. )
  1205. goto tolua_lerror;
  1206. else
  1207. #endif
  1208. {
  1209. unsigned ch = ((unsigned) tolua_tonumber(tolua_S,1,0));
  1210. {
  1211. bool tolua_ret = (bool) IsAlpha(ch);
  1212. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1213. }
  1214. }
  1215. return 1;
  1216. #ifndef TOLUA_RELEASE
  1217. tolua_lerror:
  1218. tolua_error(tolua_S,"#ferror in function 'IsAlpha'.",&tolua_err);
  1219. return 0;
  1220. #endif
  1221. }
  1222. #endif //#ifndef TOLUA_DISABLE
  1223. /* function: IsDigit */
  1224. #ifndef TOLUA_DISABLE_tolua_Core_IsDigit00
  1225. static int tolua_Core_IsDigit00(lua_State* tolua_S)
  1226. {
  1227. #ifndef TOLUA_RELEASE
  1228. tolua_Error tolua_err;
  1229. if (
  1230. !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
  1231. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1232. )
  1233. goto tolua_lerror;
  1234. else
  1235. #endif
  1236. {
  1237. unsigned ch = ((unsigned) tolua_tonumber(tolua_S,1,0));
  1238. {
  1239. bool tolua_ret = (bool) IsDigit(ch);
  1240. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1241. }
  1242. }
  1243. return 1;
  1244. #ifndef TOLUA_RELEASE
  1245. tolua_lerror:
  1246. tolua_error(tolua_S,"#ferror in function 'IsDigit'.",&tolua_err);
  1247. return 0;
  1248. #endif
  1249. }
  1250. #endif //#ifndef TOLUA_DISABLE
  1251. /* method: new of class ResourceRef */
  1252. #ifndef TOLUA_DISABLE_tolua_Core_ResourceRef_new00
  1253. static int tolua_Core_ResourceRef_new00(lua_State* tolua_S)
  1254. {
  1255. #ifndef TOLUA_RELEASE
  1256. tolua_Error tolua_err;
  1257. if (
  1258. !tolua_isusertable(tolua_S,1,"ResourceRef",0,&tolua_err) ||
  1259. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1260. )
  1261. goto tolua_lerror;
  1262. else
  1263. #endif
  1264. {
  1265. {
  1266. ResourceRef* tolua_ret = (ResourceRef*) Mtolua_new((ResourceRef)());
  1267. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ResourceRef");
  1268. }
  1269. }
  1270. return 1;
  1271. #ifndef TOLUA_RELEASE
  1272. tolua_lerror:
  1273. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1274. return 0;
  1275. #endif
  1276. }
  1277. #endif //#ifndef TOLUA_DISABLE
  1278. /* method: new_local of class ResourceRef */
  1279. #ifndef TOLUA_DISABLE_tolua_Core_ResourceRef_new00_local
  1280. static int tolua_Core_ResourceRef_new00_local(lua_State* tolua_S)
  1281. {
  1282. #ifndef TOLUA_RELEASE
  1283. tolua_Error tolua_err;
  1284. if (
  1285. !tolua_isusertable(tolua_S,1,"ResourceRef",0,&tolua_err) ||
  1286. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1287. )
  1288. goto tolua_lerror;
  1289. else
  1290. #endif
  1291. {
  1292. {
  1293. ResourceRef* tolua_ret = (ResourceRef*) Mtolua_new((ResourceRef)());
  1294. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ResourceRef");
  1295. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1296. }
  1297. }
  1298. return 1;
  1299. #ifndef TOLUA_RELEASE
  1300. tolua_lerror:
  1301. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1302. return 0;
  1303. #endif
  1304. }
  1305. #endif //#ifndef TOLUA_DISABLE
  1306. /* method: new of class ResourceRef */
  1307. #ifndef TOLUA_DISABLE_tolua_Core_ResourceRef_new01
  1308. static int tolua_Core_ResourceRef_new01(lua_State* tolua_S)
  1309. {
  1310. tolua_Error tolua_err;
  1311. if (
  1312. !tolua_isusertable(tolua_S,1,"ResourceRef",0,&tolua_err) ||
  1313. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  1314. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1315. )
  1316. goto tolua_lerror;
  1317. else
  1318. {
  1319. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  1320. {
  1321. ResourceRef* tolua_ret = (ResourceRef*) Mtolua_new((ResourceRef)(type));
  1322. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ResourceRef");
  1323. }
  1324. }
  1325. return 1;
  1326. tolua_lerror:
  1327. return tolua_Core_ResourceRef_new00(tolua_S);
  1328. }
  1329. #endif //#ifndef TOLUA_DISABLE
  1330. /* method: new_local of class ResourceRef */
  1331. #ifndef TOLUA_DISABLE_tolua_Core_ResourceRef_new01_local
  1332. static int tolua_Core_ResourceRef_new01_local(lua_State* tolua_S)
  1333. {
  1334. tolua_Error tolua_err;
  1335. if (
  1336. !tolua_isusertable(tolua_S,1,"ResourceRef",0,&tolua_err) ||
  1337. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  1338. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1339. )
  1340. goto tolua_lerror;
  1341. else
  1342. {
  1343. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  1344. {
  1345. ResourceRef* tolua_ret = (ResourceRef*) Mtolua_new((ResourceRef)(type));
  1346. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ResourceRef");
  1347. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1348. }
  1349. }
  1350. return 1;
  1351. tolua_lerror:
  1352. return tolua_Core_ResourceRef_new00_local(tolua_S);
  1353. }
  1354. #endif //#ifndef TOLUA_DISABLE
  1355. /* method: new of class ResourceRef */
  1356. #ifndef TOLUA_DISABLE_tolua_Core_ResourceRef_new02
  1357. static int tolua_Core_ResourceRef_new02(lua_State* tolua_S)
  1358. {
  1359. tolua_Error tolua_err;
  1360. if (
  1361. !tolua_isusertable(tolua_S,1,"ResourceRef",0,&tolua_err) ||
  1362. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  1363. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"StringHash",0,&tolua_err)) ||
  1364. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1365. )
  1366. goto tolua_lerror;
  1367. else
  1368. {
  1369. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  1370. StringHash id = *((StringHash*) tolua_tousertype(tolua_S,3,0));
  1371. {
  1372. ResourceRef* tolua_ret = (ResourceRef*) Mtolua_new((ResourceRef)(type,id));
  1373. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ResourceRef");
  1374. }
  1375. }
  1376. return 1;
  1377. tolua_lerror:
  1378. return tolua_Core_ResourceRef_new01(tolua_S);
  1379. }
  1380. #endif //#ifndef TOLUA_DISABLE
  1381. /* method: new_local of class ResourceRef */
  1382. #ifndef TOLUA_DISABLE_tolua_Core_ResourceRef_new02_local
  1383. static int tolua_Core_ResourceRef_new02_local(lua_State* tolua_S)
  1384. {
  1385. tolua_Error tolua_err;
  1386. if (
  1387. !tolua_isusertable(tolua_S,1,"ResourceRef",0,&tolua_err) ||
  1388. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  1389. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"StringHash",0,&tolua_err)) ||
  1390. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1391. )
  1392. goto tolua_lerror;
  1393. else
  1394. {
  1395. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  1396. StringHash id = *((StringHash*) tolua_tousertype(tolua_S,3,0));
  1397. {
  1398. ResourceRef* tolua_ret = (ResourceRef*) Mtolua_new((ResourceRef)(type,id));
  1399. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ResourceRef");
  1400. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1401. }
  1402. }
  1403. return 1;
  1404. tolua_lerror:
  1405. return tolua_Core_ResourceRef_new01_local(tolua_S);
  1406. }
  1407. #endif //#ifndef TOLUA_DISABLE
  1408. /* method: new of class ResourceRef */
  1409. #ifndef TOLUA_DISABLE_tolua_Core_ResourceRef_new03
  1410. static int tolua_Core_ResourceRef_new03(lua_State* tolua_S)
  1411. {
  1412. tolua_Error tolua_err;
  1413. if (
  1414. !tolua_isusertable(tolua_S,1,"ResourceRef",0,&tolua_err) ||
  1415. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ResourceRef",0,&tolua_err)) ||
  1416. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1417. )
  1418. goto tolua_lerror;
  1419. else
  1420. {
  1421. const ResourceRef* rhs = ((const ResourceRef*) tolua_tousertype(tolua_S,2,0));
  1422. {
  1423. ResourceRef* tolua_ret = (ResourceRef*) Mtolua_new((ResourceRef)(*rhs));
  1424. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ResourceRef");
  1425. }
  1426. }
  1427. return 1;
  1428. tolua_lerror:
  1429. return tolua_Core_ResourceRef_new02(tolua_S);
  1430. }
  1431. #endif //#ifndef TOLUA_DISABLE
  1432. /* method: new_local of class ResourceRef */
  1433. #ifndef TOLUA_DISABLE_tolua_Core_ResourceRef_new03_local
  1434. static int tolua_Core_ResourceRef_new03_local(lua_State* tolua_S)
  1435. {
  1436. tolua_Error tolua_err;
  1437. if (
  1438. !tolua_isusertable(tolua_S,1,"ResourceRef",0,&tolua_err) ||
  1439. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ResourceRef",0,&tolua_err)) ||
  1440. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1441. )
  1442. goto tolua_lerror;
  1443. else
  1444. {
  1445. const ResourceRef* rhs = ((const ResourceRef*) tolua_tousertype(tolua_S,2,0));
  1446. {
  1447. ResourceRef* tolua_ret = (ResourceRef*) Mtolua_new((ResourceRef)(*rhs));
  1448. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ResourceRef");
  1449. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1450. }
  1451. }
  1452. return 1;
  1453. tolua_lerror:
  1454. return tolua_Core_ResourceRef_new02_local(tolua_S);
  1455. }
  1456. #endif //#ifndef TOLUA_DISABLE
  1457. /* get function: type_ of class ResourceRef */
  1458. #ifndef TOLUA_DISABLE_tolua_get_ResourceRef_type
  1459. static int tolua_get_ResourceRef_type(lua_State* tolua_S)
  1460. {
  1461. ResourceRef* self = (ResourceRef*) tolua_tousertype(tolua_S,1,0);
  1462. #ifndef TOLUA_RELEASE
  1463. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'type_'",NULL);
  1464. #endif
  1465. tolua_pushusertype(tolua_S,(void*)&self->type_,"ShortStringHash");
  1466. return 1;
  1467. }
  1468. #endif //#ifndef TOLUA_DISABLE
  1469. /* set function: type_ of class ResourceRef */
  1470. #ifndef TOLUA_DISABLE_tolua_set_ResourceRef_type
  1471. static int tolua_set_ResourceRef_type(lua_State* tolua_S)
  1472. {
  1473. ResourceRef* self = (ResourceRef*) tolua_tousertype(tolua_S,1,0);
  1474. #ifndef TOLUA_RELEASE
  1475. tolua_Error tolua_err;
  1476. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'type_'",NULL);
  1477. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)))
  1478. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1479. #endif
  1480. self->type_ = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0))
  1481. ;
  1482. return 0;
  1483. }
  1484. #endif //#ifndef TOLUA_DISABLE
  1485. /* get function: id_ of class ResourceRef */
  1486. #ifndef TOLUA_DISABLE_tolua_get_ResourceRef_id
  1487. static int tolua_get_ResourceRef_id(lua_State* tolua_S)
  1488. {
  1489. ResourceRef* self = (ResourceRef*) tolua_tousertype(tolua_S,1,0);
  1490. #ifndef TOLUA_RELEASE
  1491. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'id_'",NULL);
  1492. #endif
  1493. tolua_pushusertype(tolua_S,(void*)&self->id_,"StringHash");
  1494. return 1;
  1495. }
  1496. #endif //#ifndef TOLUA_DISABLE
  1497. /* set function: id_ of class ResourceRef */
  1498. #ifndef TOLUA_DISABLE_tolua_set_ResourceRef_id
  1499. static int tolua_set_ResourceRef_id(lua_State* tolua_S)
  1500. {
  1501. ResourceRef* self = (ResourceRef*) tolua_tousertype(tolua_S,1,0);
  1502. #ifndef TOLUA_RELEASE
  1503. tolua_Error tolua_err;
  1504. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'id_'",NULL);
  1505. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)))
  1506. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1507. #endif
  1508. self->id_ = *((StringHash*) tolua_tousertype(tolua_S,2,0))
  1509. ;
  1510. return 0;
  1511. }
  1512. #endif //#ifndef TOLUA_DISABLE
  1513. /* method: operator== of class ResourceRef */
  1514. #ifndef TOLUA_DISABLE_tolua_Core_ResourceRef__eq00
  1515. static int tolua_Core_ResourceRef__eq00(lua_State* tolua_S)
  1516. {
  1517. #ifndef TOLUA_RELEASE
  1518. tolua_Error tolua_err;
  1519. if (
  1520. !tolua_isusertype(tolua_S,1,"const ResourceRef",0,&tolua_err) ||
  1521. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ResourceRef",0,&tolua_err)) ||
  1522. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1523. )
  1524. goto tolua_lerror;
  1525. else
  1526. #endif
  1527. {
  1528. const ResourceRef* self = (const ResourceRef*) tolua_tousertype(tolua_S,1,0);
  1529. const ResourceRef* rhs = ((const ResourceRef*) tolua_tousertype(tolua_S,2,0));
  1530. #ifndef TOLUA_RELEASE
  1531. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  1532. #endif
  1533. {
  1534. bool tolua_ret = (bool) self->operator==(*rhs);
  1535. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1536. }
  1537. }
  1538. return 1;
  1539. #ifndef TOLUA_RELEASE
  1540. tolua_lerror:
  1541. tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err);
  1542. return 0;
  1543. #endif
  1544. }
  1545. #endif //#ifndef TOLUA_DISABLE
  1546. /* method: new of class ResourceRefList */
  1547. #ifndef TOLUA_DISABLE_tolua_Core_ResourceRefList_new00
  1548. static int tolua_Core_ResourceRefList_new00(lua_State* tolua_S)
  1549. {
  1550. #ifndef TOLUA_RELEASE
  1551. tolua_Error tolua_err;
  1552. if (
  1553. !tolua_isusertable(tolua_S,1,"ResourceRefList",0,&tolua_err) ||
  1554. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1555. )
  1556. goto tolua_lerror;
  1557. else
  1558. #endif
  1559. {
  1560. {
  1561. ResourceRefList* tolua_ret = (ResourceRefList*) Mtolua_new((ResourceRefList)());
  1562. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ResourceRefList");
  1563. }
  1564. }
  1565. return 1;
  1566. #ifndef TOLUA_RELEASE
  1567. tolua_lerror:
  1568. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1569. return 0;
  1570. #endif
  1571. }
  1572. #endif //#ifndef TOLUA_DISABLE
  1573. /* method: new_local of class ResourceRefList */
  1574. #ifndef TOLUA_DISABLE_tolua_Core_ResourceRefList_new00_local
  1575. static int tolua_Core_ResourceRefList_new00_local(lua_State* tolua_S)
  1576. {
  1577. #ifndef TOLUA_RELEASE
  1578. tolua_Error tolua_err;
  1579. if (
  1580. !tolua_isusertable(tolua_S,1,"ResourceRefList",0,&tolua_err) ||
  1581. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1582. )
  1583. goto tolua_lerror;
  1584. else
  1585. #endif
  1586. {
  1587. {
  1588. ResourceRefList* tolua_ret = (ResourceRefList*) Mtolua_new((ResourceRefList)());
  1589. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ResourceRefList");
  1590. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1591. }
  1592. }
  1593. return 1;
  1594. #ifndef TOLUA_RELEASE
  1595. tolua_lerror:
  1596. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1597. return 0;
  1598. #endif
  1599. }
  1600. #endif //#ifndef TOLUA_DISABLE
  1601. /* method: new of class ResourceRefList */
  1602. #ifndef TOLUA_DISABLE_tolua_Core_ResourceRefList_new01
  1603. static int tolua_Core_ResourceRefList_new01(lua_State* tolua_S)
  1604. {
  1605. tolua_Error tolua_err;
  1606. if (
  1607. !tolua_isusertable(tolua_S,1,"ResourceRefList",0,&tolua_err) ||
  1608. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  1609. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1610. )
  1611. goto tolua_lerror;
  1612. else
  1613. {
  1614. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  1615. {
  1616. ResourceRefList* tolua_ret = (ResourceRefList*) Mtolua_new((ResourceRefList)(type));
  1617. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ResourceRefList");
  1618. }
  1619. }
  1620. return 1;
  1621. tolua_lerror:
  1622. return tolua_Core_ResourceRefList_new00(tolua_S);
  1623. }
  1624. #endif //#ifndef TOLUA_DISABLE
  1625. /* method: new_local of class ResourceRefList */
  1626. #ifndef TOLUA_DISABLE_tolua_Core_ResourceRefList_new01_local
  1627. static int tolua_Core_ResourceRefList_new01_local(lua_State* tolua_S)
  1628. {
  1629. tolua_Error tolua_err;
  1630. if (
  1631. !tolua_isusertable(tolua_S,1,"ResourceRefList",0,&tolua_err) ||
  1632. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  1633. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1634. )
  1635. goto tolua_lerror;
  1636. else
  1637. {
  1638. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  1639. {
  1640. ResourceRefList* tolua_ret = (ResourceRefList*) Mtolua_new((ResourceRefList)(type));
  1641. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ResourceRefList");
  1642. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1643. }
  1644. }
  1645. return 1;
  1646. tolua_lerror:
  1647. return tolua_Core_ResourceRefList_new00_local(tolua_S);
  1648. }
  1649. #endif //#ifndef TOLUA_DISABLE
  1650. /* get function: type_ of class ResourceRefList */
  1651. #ifndef TOLUA_DISABLE_tolua_get_ResourceRefList_type
  1652. static int tolua_get_ResourceRefList_type(lua_State* tolua_S)
  1653. {
  1654. ResourceRefList* self = (ResourceRefList*) tolua_tousertype(tolua_S,1,0);
  1655. #ifndef TOLUA_RELEASE
  1656. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'type_'",NULL);
  1657. #endif
  1658. tolua_pushusertype(tolua_S,(void*)&self->type_,"ShortStringHash");
  1659. return 1;
  1660. }
  1661. #endif //#ifndef TOLUA_DISABLE
  1662. /* set function: type_ of class ResourceRefList */
  1663. #ifndef TOLUA_DISABLE_tolua_set_ResourceRefList_type
  1664. static int tolua_set_ResourceRefList_type(lua_State* tolua_S)
  1665. {
  1666. ResourceRefList* self = (ResourceRefList*) tolua_tousertype(tolua_S,1,0);
  1667. #ifndef TOLUA_RELEASE
  1668. tolua_Error tolua_err;
  1669. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'type_'",NULL);
  1670. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)))
  1671. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1672. #endif
  1673. self->type_ = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0))
  1674. ;
  1675. return 0;
  1676. }
  1677. #endif //#ifndef TOLUA_DISABLE
  1678. /* method: operator== of class ResourceRefList */
  1679. #ifndef TOLUA_DISABLE_tolua_Core_ResourceRefList__eq00
  1680. static int tolua_Core_ResourceRefList__eq00(lua_State* tolua_S)
  1681. {
  1682. #ifndef TOLUA_RELEASE
  1683. tolua_Error tolua_err;
  1684. if (
  1685. !tolua_isusertype(tolua_S,1,"const ResourceRefList",0,&tolua_err) ||
  1686. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ResourceRefList",0,&tolua_err)) ||
  1687. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1688. )
  1689. goto tolua_lerror;
  1690. else
  1691. #endif
  1692. {
  1693. const ResourceRefList* self = (const ResourceRefList*) tolua_tousertype(tolua_S,1,0);
  1694. const ResourceRefList* rhs = ((const ResourceRefList*) tolua_tousertype(tolua_S,2,0));
  1695. #ifndef TOLUA_RELEASE
  1696. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  1697. #endif
  1698. {
  1699. bool tolua_ret = (bool) self->operator==(*rhs);
  1700. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1701. }
  1702. }
  1703. return 1;
  1704. #ifndef TOLUA_RELEASE
  1705. tolua_lerror:
  1706. tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err);
  1707. return 0;
  1708. #endif
  1709. }
  1710. #endif //#ifndef TOLUA_DISABLE
  1711. /* method: new of class Variant */
  1712. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new00
  1713. static int tolua_Core_Variant_new00(lua_State* tolua_S)
  1714. {
  1715. #ifndef TOLUA_RELEASE
  1716. tolua_Error tolua_err;
  1717. if (
  1718. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  1719. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1720. )
  1721. goto tolua_lerror;
  1722. else
  1723. #endif
  1724. {
  1725. {
  1726. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)());
  1727. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  1728. }
  1729. }
  1730. return 1;
  1731. #ifndef TOLUA_RELEASE
  1732. tolua_lerror:
  1733. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1734. return 0;
  1735. #endif
  1736. }
  1737. #endif //#ifndef TOLUA_DISABLE
  1738. /* method: new_local of class Variant */
  1739. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new00_local
  1740. static int tolua_Core_Variant_new00_local(lua_State* tolua_S)
  1741. {
  1742. #ifndef TOLUA_RELEASE
  1743. tolua_Error tolua_err;
  1744. if (
  1745. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  1746. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1747. )
  1748. goto tolua_lerror;
  1749. else
  1750. #endif
  1751. {
  1752. {
  1753. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)());
  1754. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  1755. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1756. }
  1757. }
  1758. return 1;
  1759. #ifndef TOLUA_RELEASE
  1760. tolua_lerror:
  1761. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1762. return 0;
  1763. #endif
  1764. }
  1765. #endif //#ifndef TOLUA_DISABLE
  1766. /* method: new of class Variant */
  1767. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new01
  1768. static int tolua_Core_Variant_new01(lua_State* tolua_S)
  1769. {
  1770. tolua_Error tolua_err;
  1771. if (
  1772. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  1773. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1774. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1775. )
  1776. goto tolua_lerror;
  1777. else
  1778. {
  1779. int value = ((int) tolua_tonumber(tolua_S,2,0));
  1780. {
  1781. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(value));
  1782. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  1783. }
  1784. }
  1785. return 1;
  1786. tolua_lerror:
  1787. return tolua_Core_Variant_new00(tolua_S);
  1788. }
  1789. #endif //#ifndef TOLUA_DISABLE
  1790. /* method: new_local of class Variant */
  1791. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new01_local
  1792. static int tolua_Core_Variant_new01_local(lua_State* tolua_S)
  1793. {
  1794. tolua_Error tolua_err;
  1795. if (
  1796. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  1797. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1798. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1799. )
  1800. goto tolua_lerror;
  1801. else
  1802. {
  1803. int value = ((int) tolua_tonumber(tolua_S,2,0));
  1804. {
  1805. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(value));
  1806. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  1807. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1808. }
  1809. }
  1810. return 1;
  1811. tolua_lerror:
  1812. return tolua_Core_Variant_new00_local(tolua_S);
  1813. }
  1814. #endif //#ifndef TOLUA_DISABLE
  1815. /* method: new of class Variant */
  1816. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new02
  1817. static int tolua_Core_Variant_new02(lua_State* tolua_S)
  1818. {
  1819. tolua_Error tolua_err;
  1820. if (
  1821. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  1822. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1823. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1824. )
  1825. goto tolua_lerror;
  1826. else
  1827. {
  1828. unsigned value = ((unsigned) tolua_tonumber(tolua_S,2,0));
  1829. {
  1830. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(value));
  1831. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  1832. }
  1833. }
  1834. return 1;
  1835. tolua_lerror:
  1836. return tolua_Core_Variant_new01(tolua_S);
  1837. }
  1838. #endif //#ifndef TOLUA_DISABLE
  1839. /* method: new_local of class Variant */
  1840. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new02_local
  1841. static int tolua_Core_Variant_new02_local(lua_State* tolua_S)
  1842. {
  1843. tolua_Error tolua_err;
  1844. if (
  1845. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  1846. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1847. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1848. )
  1849. goto tolua_lerror;
  1850. else
  1851. {
  1852. unsigned value = ((unsigned) tolua_tonumber(tolua_S,2,0));
  1853. {
  1854. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(value));
  1855. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  1856. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1857. }
  1858. }
  1859. return 1;
  1860. tolua_lerror:
  1861. return tolua_Core_Variant_new01_local(tolua_S);
  1862. }
  1863. #endif //#ifndef TOLUA_DISABLE
  1864. /* method: new of class Variant */
  1865. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new03
  1866. static int tolua_Core_Variant_new03(lua_State* tolua_S)
  1867. {
  1868. tolua_Error tolua_err;
  1869. if (
  1870. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  1871. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const StringHash",0,&tolua_err)) ||
  1872. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1873. )
  1874. goto tolua_lerror;
  1875. else
  1876. {
  1877. const StringHash* value = ((const StringHash*) tolua_tousertype(tolua_S,2,0));
  1878. {
  1879. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  1880. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  1881. }
  1882. }
  1883. return 1;
  1884. tolua_lerror:
  1885. return tolua_Core_Variant_new02(tolua_S);
  1886. }
  1887. #endif //#ifndef TOLUA_DISABLE
  1888. /* method: new_local of class Variant */
  1889. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new03_local
  1890. static int tolua_Core_Variant_new03_local(lua_State* tolua_S)
  1891. {
  1892. tolua_Error tolua_err;
  1893. if (
  1894. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  1895. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const StringHash",0,&tolua_err)) ||
  1896. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1897. )
  1898. goto tolua_lerror;
  1899. else
  1900. {
  1901. const StringHash* value = ((const StringHash*) tolua_tousertype(tolua_S,2,0));
  1902. {
  1903. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  1904. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  1905. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1906. }
  1907. }
  1908. return 1;
  1909. tolua_lerror:
  1910. return tolua_Core_Variant_new02_local(tolua_S);
  1911. }
  1912. #endif //#ifndef TOLUA_DISABLE
  1913. /* method: new of class Variant */
  1914. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new04
  1915. static int tolua_Core_Variant_new04(lua_State* tolua_S)
  1916. {
  1917. tolua_Error tolua_err;
  1918. if (
  1919. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  1920. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ShortStringHash",0,&tolua_err)) ||
  1921. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1922. )
  1923. goto tolua_lerror;
  1924. else
  1925. {
  1926. const ShortStringHash* value = ((const ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  1927. {
  1928. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  1929. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  1930. }
  1931. }
  1932. return 1;
  1933. tolua_lerror:
  1934. return tolua_Core_Variant_new03(tolua_S);
  1935. }
  1936. #endif //#ifndef TOLUA_DISABLE
  1937. /* method: new_local of class Variant */
  1938. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new04_local
  1939. static int tolua_Core_Variant_new04_local(lua_State* tolua_S)
  1940. {
  1941. tolua_Error tolua_err;
  1942. if (
  1943. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  1944. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ShortStringHash",0,&tolua_err)) ||
  1945. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1946. )
  1947. goto tolua_lerror;
  1948. else
  1949. {
  1950. const ShortStringHash* value = ((const ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  1951. {
  1952. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  1953. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  1954. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1955. }
  1956. }
  1957. return 1;
  1958. tolua_lerror:
  1959. return tolua_Core_Variant_new03_local(tolua_S);
  1960. }
  1961. #endif //#ifndef TOLUA_DISABLE
  1962. /* method: new of class Variant */
  1963. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new05
  1964. static int tolua_Core_Variant_new05(lua_State* tolua_S)
  1965. {
  1966. tolua_Error tolua_err;
  1967. if (
  1968. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  1969. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  1970. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1971. )
  1972. goto tolua_lerror;
  1973. else
  1974. {
  1975. bool value = ((bool) tolua_toboolean(tolua_S,2,0));
  1976. {
  1977. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(value));
  1978. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  1979. }
  1980. }
  1981. return 1;
  1982. tolua_lerror:
  1983. return tolua_Core_Variant_new04(tolua_S);
  1984. }
  1985. #endif //#ifndef TOLUA_DISABLE
  1986. /* method: new_local of class Variant */
  1987. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new05_local
  1988. static int tolua_Core_Variant_new05_local(lua_State* tolua_S)
  1989. {
  1990. tolua_Error tolua_err;
  1991. if (
  1992. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  1993. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  1994. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1995. )
  1996. goto tolua_lerror;
  1997. else
  1998. {
  1999. bool value = ((bool) tolua_toboolean(tolua_S,2,0));
  2000. {
  2001. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(value));
  2002. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2003. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2004. }
  2005. }
  2006. return 1;
  2007. tolua_lerror:
  2008. return tolua_Core_Variant_new04_local(tolua_S);
  2009. }
  2010. #endif //#ifndef TOLUA_DISABLE
  2011. /* method: new of class Variant */
  2012. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new06
  2013. static int tolua_Core_Variant_new06(lua_State* tolua_S)
  2014. {
  2015. tolua_Error tolua_err;
  2016. if (
  2017. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2018. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2019. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2020. )
  2021. goto tolua_lerror;
  2022. else
  2023. {
  2024. float value = ((float) tolua_tonumber(tolua_S,2,0));
  2025. {
  2026. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(value));
  2027. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2028. }
  2029. }
  2030. return 1;
  2031. tolua_lerror:
  2032. return tolua_Core_Variant_new05(tolua_S);
  2033. }
  2034. #endif //#ifndef TOLUA_DISABLE
  2035. /* method: new_local of class Variant */
  2036. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new06_local
  2037. static int tolua_Core_Variant_new06_local(lua_State* tolua_S)
  2038. {
  2039. tolua_Error tolua_err;
  2040. if (
  2041. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2042. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2043. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2044. )
  2045. goto tolua_lerror;
  2046. else
  2047. {
  2048. float value = ((float) tolua_tonumber(tolua_S,2,0));
  2049. {
  2050. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(value));
  2051. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2052. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2053. }
  2054. }
  2055. return 1;
  2056. tolua_lerror:
  2057. return tolua_Core_Variant_new05_local(tolua_S);
  2058. }
  2059. #endif //#ifndef TOLUA_DISABLE
  2060. /* method: new of class Variant */
  2061. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new07
  2062. static int tolua_Core_Variant_new07(lua_State* tolua_S)
  2063. {
  2064. tolua_Error tolua_err;
  2065. if (
  2066. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2067. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  2068. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2069. )
  2070. goto tolua_lerror;
  2071. else
  2072. {
  2073. const Vector2* value = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  2074. {
  2075. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2076. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2077. }
  2078. }
  2079. return 1;
  2080. tolua_lerror:
  2081. return tolua_Core_Variant_new06(tolua_S);
  2082. }
  2083. #endif //#ifndef TOLUA_DISABLE
  2084. /* method: new_local of class Variant */
  2085. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new07_local
  2086. static int tolua_Core_Variant_new07_local(lua_State* tolua_S)
  2087. {
  2088. tolua_Error tolua_err;
  2089. if (
  2090. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2091. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  2092. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2093. )
  2094. goto tolua_lerror;
  2095. else
  2096. {
  2097. const Vector2* value = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  2098. {
  2099. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2100. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2101. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2102. }
  2103. }
  2104. return 1;
  2105. tolua_lerror:
  2106. return tolua_Core_Variant_new06_local(tolua_S);
  2107. }
  2108. #endif //#ifndef TOLUA_DISABLE
  2109. /* method: new of class Variant */
  2110. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new08
  2111. static int tolua_Core_Variant_new08(lua_State* tolua_S)
  2112. {
  2113. tolua_Error tolua_err;
  2114. if (
  2115. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2116. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  2117. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2118. )
  2119. goto tolua_lerror;
  2120. else
  2121. {
  2122. const Vector3* value = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  2123. {
  2124. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2125. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2126. }
  2127. }
  2128. return 1;
  2129. tolua_lerror:
  2130. return tolua_Core_Variant_new07(tolua_S);
  2131. }
  2132. #endif //#ifndef TOLUA_DISABLE
  2133. /* method: new_local of class Variant */
  2134. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new08_local
  2135. static int tolua_Core_Variant_new08_local(lua_State* tolua_S)
  2136. {
  2137. tolua_Error tolua_err;
  2138. if (
  2139. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2140. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  2141. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2142. )
  2143. goto tolua_lerror;
  2144. else
  2145. {
  2146. const Vector3* value = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  2147. {
  2148. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2149. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2150. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2151. }
  2152. }
  2153. return 1;
  2154. tolua_lerror:
  2155. return tolua_Core_Variant_new07_local(tolua_S);
  2156. }
  2157. #endif //#ifndef TOLUA_DISABLE
  2158. /* method: new of class Variant */
  2159. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new09
  2160. static int tolua_Core_Variant_new09(lua_State* tolua_S)
  2161. {
  2162. tolua_Error tolua_err;
  2163. if (
  2164. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2165. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector4",0,&tolua_err)) ||
  2166. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2167. )
  2168. goto tolua_lerror;
  2169. else
  2170. {
  2171. const Vector4* value = ((const Vector4*) tolua_tousertype(tolua_S,2,0));
  2172. {
  2173. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2174. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2175. }
  2176. }
  2177. return 1;
  2178. tolua_lerror:
  2179. return tolua_Core_Variant_new08(tolua_S);
  2180. }
  2181. #endif //#ifndef TOLUA_DISABLE
  2182. /* method: new_local of class Variant */
  2183. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new09_local
  2184. static int tolua_Core_Variant_new09_local(lua_State* tolua_S)
  2185. {
  2186. tolua_Error tolua_err;
  2187. if (
  2188. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2189. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector4",0,&tolua_err)) ||
  2190. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2191. )
  2192. goto tolua_lerror;
  2193. else
  2194. {
  2195. const Vector4* value = ((const Vector4*) tolua_tousertype(tolua_S,2,0));
  2196. {
  2197. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2198. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2199. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2200. }
  2201. }
  2202. return 1;
  2203. tolua_lerror:
  2204. return tolua_Core_Variant_new08_local(tolua_S);
  2205. }
  2206. #endif //#ifndef TOLUA_DISABLE
  2207. /* method: new of class Variant */
  2208. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new10
  2209. static int tolua_Core_Variant_new10(lua_State* tolua_S)
  2210. {
  2211. tolua_Error tolua_err;
  2212. if (
  2213. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2214. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Quaternion",0,&tolua_err)) ||
  2215. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2216. )
  2217. goto tolua_lerror;
  2218. else
  2219. {
  2220. const Quaternion* value = ((const Quaternion*) tolua_tousertype(tolua_S,2,0));
  2221. {
  2222. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2223. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2224. }
  2225. }
  2226. return 1;
  2227. tolua_lerror:
  2228. return tolua_Core_Variant_new09(tolua_S);
  2229. }
  2230. #endif //#ifndef TOLUA_DISABLE
  2231. /* method: new_local of class Variant */
  2232. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new10_local
  2233. static int tolua_Core_Variant_new10_local(lua_State* tolua_S)
  2234. {
  2235. tolua_Error tolua_err;
  2236. if (
  2237. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2238. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Quaternion",0,&tolua_err)) ||
  2239. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2240. )
  2241. goto tolua_lerror;
  2242. else
  2243. {
  2244. const Quaternion* value = ((const Quaternion*) tolua_tousertype(tolua_S,2,0));
  2245. {
  2246. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2247. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2248. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2249. }
  2250. }
  2251. return 1;
  2252. tolua_lerror:
  2253. return tolua_Core_Variant_new09_local(tolua_S);
  2254. }
  2255. #endif //#ifndef TOLUA_DISABLE
  2256. /* method: new of class Variant */
  2257. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new11
  2258. static int tolua_Core_Variant_new11(lua_State* tolua_S)
  2259. {
  2260. tolua_Error tolua_err;
  2261. if (
  2262. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2263. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  2264. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2265. )
  2266. goto tolua_lerror;
  2267. else
  2268. {
  2269. const Color* value = ((const Color*) tolua_tousertype(tolua_S,2,0));
  2270. {
  2271. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2272. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2273. }
  2274. }
  2275. return 1;
  2276. tolua_lerror:
  2277. return tolua_Core_Variant_new10(tolua_S);
  2278. }
  2279. #endif //#ifndef TOLUA_DISABLE
  2280. /* method: new_local of class Variant */
  2281. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new11_local
  2282. static int tolua_Core_Variant_new11_local(lua_State* tolua_S)
  2283. {
  2284. tolua_Error tolua_err;
  2285. if (
  2286. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2287. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  2288. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2289. )
  2290. goto tolua_lerror;
  2291. else
  2292. {
  2293. const Color* value = ((const Color*) tolua_tousertype(tolua_S,2,0));
  2294. {
  2295. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2296. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2297. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2298. }
  2299. }
  2300. return 1;
  2301. tolua_lerror:
  2302. return tolua_Core_Variant_new10_local(tolua_S);
  2303. }
  2304. #endif //#ifndef TOLUA_DISABLE
  2305. /* method: new of class Variant */
  2306. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new12
  2307. static int tolua_Core_Variant_new12(lua_State* tolua_S)
  2308. {
  2309. tolua_Error tolua_err;
  2310. if (
  2311. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2312. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2313. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2314. )
  2315. goto tolua_lerror;
  2316. else
  2317. {
  2318. const String* value = ((const String*) tolua_tousertype(tolua_S,2,0));
  2319. {
  2320. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2321. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2322. }
  2323. }
  2324. return 1;
  2325. tolua_lerror:
  2326. return tolua_Core_Variant_new11(tolua_S);
  2327. }
  2328. #endif //#ifndef TOLUA_DISABLE
  2329. /* method: new_local of class Variant */
  2330. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new12_local
  2331. static int tolua_Core_Variant_new12_local(lua_State* tolua_S)
  2332. {
  2333. tolua_Error tolua_err;
  2334. if (
  2335. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2336. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2337. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2338. )
  2339. goto tolua_lerror;
  2340. else
  2341. {
  2342. const String* value = ((const String*) tolua_tousertype(tolua_S,2,0));
  2343. {
  2344. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2345. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2346. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2347. }
  2348. }
  2349. return 1;
  2350. tolua_lerror:
  2351. return tolua_Core_Variant_new11_local(tolua_S);
  2352. }
  2353. #endif //#ifndef TOLUA_DISABLE
  2354. /* method: new of class Variant */
  2355. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new13
  2356. static int tolua_Core_Variant_new13(lua_State* tolua_S)
  2357. {
  2358. tolua_Error tolua_err;
  2359. if (
  2360. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2361. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  2362. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2363. )
  2364. goto tolua_lerror;
  2365. else
  2366. {
  2367. const char* value = ((const char*) tolua_tostring(tolua_S,2,0));
  2368. {
  2369. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(value));
  2370. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2371. }
  2372. }
  2373. return 1;
  2374. tolua_lerror:
  2375. return tolua_Core_Variant_new12(tolua_S);
  2376. }
  2377. #endif //#ifndef TOLUA_DISABLE
  2378. /* method: new_local of class Variant */
  2379. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new13_local
  2380. static int tolua_Core_Variant_new13_local(lua_State* tolua_S)
  2381. {
  2382. tolua_Error tolua_err;
  2383. if (
  2384. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2385. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  2386. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2387. )
  2388. goto tolua_lerror;
  2389. else
  2390. {
  2391. const char* value = ((const char*) tolua_tostring(tolua_S,2,0));
  2392. {
  2393. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(value));
  2394. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2395. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2396. }
  2397. }
  2398. return 1;
  2399. tolua_lerror:
  2400. return tolua_Core_Variant_new12_local(tolua_S);
  2401. }
  2402. #endif //#ifndef TOLUA_DISABLE
  2403. /* method: new of class Variant */
  2404. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new14
  2405. static int tolua_Core_Variant_new14(lua_State* tolua_S)
  2406. {
  2407. tolua_Error tolua_err;
  2408. if (
  2409. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2410. !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
  2411. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2412. )
  2413. goto tolua_lerror;
  2414. else
  2415. {
  2416. void* value = ((void*) tolua_touserdata(tolua_S,2,0));
  2417. {
  2418. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(value));
  2419. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2420. }
  2421. }
  2422. return 1;
  2423. tolua_lerror:
  2424. return tolua_Core_Variant_new13(tolua_S);
  2425. }
  2426. #endif //#ifndef TOLUA_DISABLE
  2427. /* method: new_local of class Variant */
  2428. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new14_local
  2429. static int tolua_Core_Variant_new14_local(lua_State* tolua_S)
  2430. {
  2431. tolua_Error tolua_err;
  2432. if (
  2433. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2434. !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
  2435. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2436. )
  2437. goto tolua_lerror;
  2438. else
  2439. {
  2440. void* value = ((void*) tolua_touserdata(tolua_S,2,0));
  2441. {
  2442. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(value));
  2443. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2444. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2445. }
  2446. }
  2447. return 1;
  2448. tolua_lerror:
  2449. return tolua_Core_Variant_new13_local(tolua_S);
  2450. }
  2451. #endif //#ifndef TOLUA_DISABLE
  2452. /* method: new of class Variant */
  2453. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new15
  2454. static int tolua_Core_Variant_new15(lua_State* tolua_S)
  2455. {
  2456. tolua_Error tolua_err;
  2457. if (
  2458. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2459. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ResourceRef",0,&tolua_err)) ||
  2460. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2461. )
  2462. goto tolua_lerror;
  2463. else
  2464. {
  2465. const ResourceRef* value = ((const ResourceRef*) tolua_tousertype(tolua_S,2,0));
  2466. {
  2467. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2468. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2469. }
  2470. }
  2471. return 1;
  2472. tolua_lerror:
  2473. return tolua_Core_Variant_new14(tolua_S);
  2474. }
  2475. #endif //#ifndef TOLUA_DISABLE
  2476. /* method: new_local of class Variant */
  2477. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new15_local
  2478. static int tolua_Core_Variant_new15_local(lua_State* tolua_S)
  2479. {
  2480. tolua_Error tolua_err;
  2481. if (
  2482. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2483. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ResourceRef",0,&tolua_err)) ||
  2484. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2485. )
  2486. goto tolua_lerror;
  2487. else
  2488. {
  2489. const ResourceRef* value = ((const ResourceRef*) tolua_tousertype(tolua_S,2,0));
  2490. {
  2491. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2492. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2493. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2494. }
  2495. }
  2496. return 1;
  2497. tolua_lerror:
  2498. return tolua_Core_Variant_new14_local(tolua_S);
  2499. }
  2500. #endif //#ifndef TOLUA_DISABLE
  2501. /* method: new of class Variant */
  2502. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new16
  2503. static int tolua_Core_Variant_new16(lua_State* tolua_S)
  2504. {
  2505. tolua_Error tolua_err;
  2506. if (
  2507. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2508. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ResourceRefList",0,&tolua_err)) ||
  2509. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2510. )
  2511. goto tolua_lerror;
  2512. else
  2513. {
  2514. const ResourceRefList* value = ((const ResourceRefList*) tolua_tousertype(tolua_S,2,0));
  2515. {
  2516. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2517. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2518. }
  2519. }
  2520. return 1;
  2521. tolua_lerror:
  2522. return tolua_Core_Variant_new15(tolua_S);
  2523. }
  2524. #endif //#ifndef TOLUA_DISABLE
  2525. /* method: new_local of class Variant */
  2526. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new16_local
  2527. static int tolua_Core_Variant_new16_local(lua_State* tolua_S)
  2528. {
  2529. tolua_Error tolua_err;
  2530. if (
  2531. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2532. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ResourceRefList",0,&tolua_err)) ||
  2533. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2534. )
  2535. goto tolua_lerror;
  2536. else
  2537. {
  2538. const ResourceRefList* value = ((const ResourceRefList*) tolua_tousertype(tolua_S,2,0));
  2539. {
  2540. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2541. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2542. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2543. }
  2544. }
  2545. return 1;
  2546. tolua_lerror:
  2547. return tolua_Core_Variant_new15_local(tolua_S);
  2548. }
  2549. #endif //#ifndef TOLUA_DISABLE
  2550. /* method: new of class Variant */
  2551. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new17
  2552. static int tolua_Core_Variant_new17(lua_State* tolua_S)
  2553. {
  2554. tolua_Error tolua_err;
  2555. if (
  2556. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2557. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  2558. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2559. )
  2560. goto tolua_lerror;
  2561. else
  2562. {
  2563. const IntRect* value = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  2564. {
  2565. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2566. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2567. }
  2568. }
  2569. return 1;
  2570. tolua_lerror:
  2571. return tolua_Core_Variant_new16(tolua_S);
  2572. }
  2573. #endif //#ifndef TOLUA_DISABLE
  2574. /* method: new_local of class Variant */
  2575. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new17_local
  2576. static int tolua_Core_Variant_new17_local(lua_State* tolua_S)
  2577. {
  2578. tolua_Error tolua_err;
  2579. if (
  2580. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2581. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  2582. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2583. )
  2584. goto tolua_lerror;
  2585. else
  2586. {
  2587. const IntRect* value = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  2588. {
  2589. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2590. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2591. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2592. }
  2593. }
  2594. return 1;
  2595. tolua_lerror:
  2596. return tolua_Core_Variant_new16_local(tolua_S);
  2597. }
  2598. #endif //#ifndef TOLUA_DISABLE
  2599. /* method: new of class Variant */
  2600. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new18
  2601. static int tolua_Core_Variant_new18(lua_State* tolua_S)
  2602. {
  2603. tolua_Error tolua_err;
  2604. if (
  2605. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2606. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  2607. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2608. )
  2609. goto tolua_lerror;
  2610. else
  2611. {
  2612. const IntVector2* value = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  2613. {
  2614. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2615. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2616. }
  2617. }
  2618. return 1;
  2619. tolua_lerror:
  2620. return tolua_Core_Variant_new17(tolua_S);
  2621. }
  2622. #endif //#ifndef TOLUA_DISABLE
  2623. /* method: new_local of class Variant */
  2624. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new18_local
  2625. static int tolua_Core_Variant_new18_local(lua_State* tolua_S)
  2626. {
  2627. tolua_Error tolua_err;
  2628. if (
  2629. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2630. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  2631. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2632. )
  2633. goto tolua_lerror;
  2634. else
  2635. {
  2636. const IntVector2* value = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  2637. {
  2638. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2639. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2640. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2641. }
  2642. }
  2643. return 1;
  2644. tolua_lerror:
  2645. return tolua_Core_Variant_new17_local(tolua_S);
  2646. }
  2647. #endif //#ifndef TOLUA_DISABLE
  2648. /* method: new of class Variant */
  2649. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new19
  2650. static int tolua_Core_Variant_new19(lua_State* tolua_S)
  2651. {
  2652. tolua_Error tolua_err;
  2653. if (
  2654. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2655. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2656. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const String",0,&tolua_err)) ||
  2657. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2658. )
  2659. goto tolua_lerror;
  2660. else
  2661. {
  2662. const String* type = ((const String*) tolua_tousertype(tolua_S,2,0));
  2663. const String* value = ((const String*) tolua_tousertype(tolua_S,3,0));
  2664. {
  2665. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*type,*value));
  2666. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2667. }
  2668. }
  2669. return 1;
  2670. tolua_lerror:
  2671. return tolua_Core_Variant_new18(tolua_S);
  2672. }
  2673. #endif //#ifndef TOLUA_DISABLE
  2674. /* method: new_local of class Variant */
  2675. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new19_local
  2676. static int tolua_Core_Variant_new19_local(lua_State* tolua_S)
  2677. {
  2678. tolua_Error tolua_err;
  2679. if (
  2680. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2681. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2682. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const String",0,&tolua_err)) ||
  2683. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2684. )
  2685. goto tolua_lerror;
  2686. else
  2687. {
  2688. const String* type = ((const String*) tolua_tousertype(tolua_S,2,0));
  2689. const String* value = ((const String*) tolua_tousertype(tolua_S,3,0));
  2690. {
  2691. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*type,*value));
  2692. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2693. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2694. }
  2695. }
  2696. return 1;
  2697. tolua_lerror:
  2698. return tolua_Core_Variant_new18_local(tolua_S);
  2699. }
  2700. #endif //#ifndef TOLUA_DISABLE
  2701. /* method: new of class Variant */
  2702. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new20
  2703. static int tolua_Core_Variant_new20(lua_State* tolua_S)
  2704. {
  2705. tolua_Error tolua_err;
  2706. if (
  2707. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2708. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2709. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const String",0,&tolua_err)) ||
  2710. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2711. )
  2712. goto tolua_lerror;
  2713. else
  2714. {
  2715. VariantType type = ((VariantType) (int) tolua_tonumber(tolua_S,2,0));
  2716. const String* value = ((const String*) tolua_tousertype(tolua_S,3,0));
  2717. {
  2718. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(type,*value));
  2719. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2720. }
  2721. }
  2722. return 1;
  2723. tolua_lerror:
  2724. return tolua_Core_Variant_new19(tolua_S);
  2725. }
  2726. #endif //#ifndef TOLUA_DISABLE
  2727. /* method: new_local of class Variant */
  2728. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new20_local
  2729. static int tolua_Core_Variant_new20_local(lua_State* tolua_S)
  2730. {
  2731. tolua_Error tolua_err;
  2732. if (
  2733. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2734. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2735. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const String",0,&tolua_err)) ||
  2736. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2737. )
  2738. goto tolua_lerror;
  2739. else
  2740. {
  2741. VariantType type = ((VariantType) (int) tolua_tonumber(tolua_S,2,0));
  2742. const String* value = ((const String*) tolua_tousertype(tolua_S,3,0));
  2743. {
  2744. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(type,*value));
  2745. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2746. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2747. }
  2748. }
  2749. return 1;
  2750. tolua_lerror:
  2751. return tolua_Core_Variant_new19_local(tolua_S);
  2752. }
  2753. #endif //#ifndef TOLUA_DISABLE
  2754. /* method: new of class Variant */
  2755. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new21
  2756. static int tolua_Core_Variant_new21(lua_State* tolua_S)
  2757. {
  2758. tolua_Error tolua_err;
  2759. if (
  2760. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2761. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2762. !tolua_isstring(tolua_S,3,0,&tolua_err) ||
  2763. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2764. )
  2765. goto tolua_lerror;
  2766. else
  2767. {
  2768. VariantType type = ((VariantType) (int) tolua_tonumber(tolua_S,2,0));
  2769. const char* value = ((const char*) tolua_tostring(tolua_S,3,0));
  2770. {
  2771. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(type,value));
  2772. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2773. }
  2774. }
  2775. return 1;
  2776. tolua_lerror:
  2777. return tolua_Core_Variant_new20(tolua_S);
  2778. }
  2779. #endif //#ifndef TOLUA_DISABLE
  2780. /* method: new_local of class Variant */
  2781. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new21_local
  2782. static int tolua_Core_Variant_new21_local(lua_State* tolua_S)
  2783. {
  2784. tolua_Error tolua_err;
  2785. if (
  2786. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2787. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2788. !tolua_isstring(tolua_S,3,0,&tolua_err) ||
  2789. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2790. )
  2791. goto tolua_lerror;
  2792. else
  2793. {
  2794. VariantType type = ((VariantType) (int) tolua_tonumber(tolua_S,2,0));
  2795. const char* value = ((const char*) tolua_tostring(tolua_S,3,0));
  2796. {
  2797. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(type,value));
  2798. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2799. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2800. }
  2801. }
  2802. return 1;
  2803. tolua_lerror:
  2804. return tolua_Core_Variant_new20_local(tolua_S);
  2805. }
  2806. #endif //#ifndef TOLUA_DISABLE
  2807. /* method: new of class Variant */
  2808. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new22
  2809. static int tolua_Core_Variant_new22(lua_State* tolua_S)
  2810. {
  2811. tolua_Error tolua_err;
  2812. if (
  2813. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2814. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Variant",0,&tolua_err)) ||
  2815. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2816. )
  2817. goto tolua_lerror;
  2818. else
  2819. {
  2820. const Variant* value = ((const Variant*) tolua_tousertype(tolua_S,2,0));
  2821. {
  2822. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2823. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2824. }
  2825. }
  2826. return 1;
  2827. tolua_lerror:
  2828. return tolua_Core_Variant_new21(tolua_S);
  2829. }
  2830. #endif //#ifndef TOLUA_DISABLE
  2831. /* method: new_local of class Variant */
  2832. #ifndef TOLUA_DISABLE_tolua_Core_Variant_new22_local
  2833. static int tolua_Core_Variant_new22_local(lua_State* tolua_S)
  2834. {
  2835. tolua_Error tolua_err;
  2836. if (
  2837. !tolua_isusertable(tolua_S,1,"Variant",0,&tolua_err) ||
  2838. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Variant",0,&tolua_err)) ||
  2839. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2840. )
  2841. goto tolua_lerror;
  2842. else
  2843. {
  2844. const Variant* value = ((const Variant*) tolua_tousertype(tolua_S,2,0));
  2845. {
  2846. Variant* tolua_ret = (Variant*) Mtolua_new((Variant)(*value));
  2847. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Variant");
  2848. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2849. }
  2850. }
  2851. return 1;
  2852. tolua_lerror:
  2853. return tolua_Core_Variant_new21_local(tolua_S);
  2854. }
  2855. #endif //#ifndef TOLUA_DISABLE
  2856. /* method: delete of class Variant */
  2857. #ifndef TOLUA_DISABLE_tolua_Core_Variant_delete00
  2858. static int tolua_Core_Variant_delete00(lua_State* tolua_S)
  2859. {
  2860. #ifndef TOLUA_RELEASE
  2861. tolua_Error tolua_err;
  2862. if (
  2863. !tolua_isusertype(tolua_S,1,"Variant",0,&tolua_err) ||
  2864. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2865. )
  2866. goto tolua_lerror;
  2867. else
  2868. #endif
  2869. {
  2870. Variant* self = (Variant*) tolua_tousertype(tolua_S,1,0);
  2871. #ifndef TOLUA_RELEASE
  2872. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  2873. #endif
  2874. Mtolua_delete(self);
  2875. }
  2876. return 0;
  2877. #ifndef TOLUA_RELEASE
  2878. tolua_lerror:
  2879. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  2880. return 0;
  2881. #endif
  2882. }
  2883. #endif //#ifndef TOLUA_DISABLE
  2884. /* method: Clear of class Variant */
  2885. #ifndef TOLUA_DISABLE_tolua_Core_Variant_Clear00
  2886. static int tolua_Core_Variant_Clear00(lua_State* tolua_S)
  2887. {
  2888. #ifndef TOLUA_RELEASE
  2889. tolua_Error tolua_err;
  2890. if (
  2891. !tolua_isusertype(tolua_S,1,"Variant",0,&tolua_err) ||
  2892. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2893. )
  2894. goto tolua_lerror;
  2895. else
  2896. #endif
  2897. {
  2898. Variant* self = (Variant*) tolua_tousertype(tolua_S,1,0);
  2899. #ifndef TOLUA_RELEASE
  2900. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Clear'", NULL);
  2901. #endif
  2902. {
  2903. self->Clear();
  2904. }
  2905. }
  2906. return 0;
  2907. #ifndef TOLUA_RELEASE
  2908. tolua_lerror:
  2909. tolua_error(tolua_S,"#ferror in function 'Clear'.",&tolua_err);
  2910. return 0;
  2911. #endif
  2912. }
  2913. #endif //#ifndef TOLUA_DISABLE
  2914. /* method: operator== of class Variant */
  2915. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq00
  2916. static int tolua_Core_Variant__eq00(lua_State* tolua_S)
  2917. {
  2918. #ifndef TOLUA_RELEASE
  2919. tolua_Error tolua_err;
  2920. if (
  2921. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  2922. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Variant",0,&tolua_err)) ||
  2923. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2924. )
  2925. goto tolua_lerror;
  2926. else
  2927. #endif
  2928. {
  2929. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  2930. const Variant* rhs = ((const Variant*) tolua_tousertype(tolua_S,2,0));
  2931. #ifndef TOLUA_RELEASE
  2932. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  2933. #endif
  2934. {
  2935. bool tolua_ret = (bool) self->operator==(*rhs);
  2936. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2937. }
  2938. }
  2939. return 1;
  2940. #ifndef TOLUA_RELEASE
  2941. tolua_lerror:
  2942. tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err);
  2943. return 0;
  2944. #endif
  2945. }
  2946. #endif //#ifndef TOLUA_DISABLE
  2947. /* method: operator== of class Variant */
  2948. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq01
  2949. static int tolua_Core_Variant__eq01(lua_State* tolua_S)
  2950. {
  2951. tolua_Error tolua_err;
  2952. if (
  2953. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  2954. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2955. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2956. )
  2957. goto tolua_lerror;
  2958. else
  2959. {
  2960. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  2961. int rhs = ((int) tolua_tonumber(tolua_S,2,0));
  2962. #ifndef TOLUA_RELEASE
  2963. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  2964. #endif
  2965. {
  2966. bool tolua_ret = (bool) self->operator==(rhs);
  2967. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2968. }
  2969. }
  2970. return 1;
  2971. tolua_lerror:
  2972. return tolua_Core_Variant__eq00(tolua_S);
  2973. }
  2974. #endif //#ifndef TOLUA_DISABLE
  2975. /* method: operator== of class Variant */
  2976. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq02
  2977. static int tolua_Core_Variant__eq02(lua_State* tolua_S)
  2978. {
  2979. tolua_Error tolua_err;
  2980. if (
  2981. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  2982. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2983. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2984. )
  2985. goto tolua_lerror;
  2986. else
  2987. {
  2988. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  2989. unsigned rhs = ((unsigned) tolua_tonumber(tolua_S,2,0));
  2990. #ifndef TOLUA_RELEASE
  2991. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  2992. #endif
  2993. {
  2994. bool tolua_ret = (bool) self->operator==(rhs);
  2995. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2996. }
  2997. }
  2998. return 1;
  2999. tolua_lerror:
  3000. return tolua_Core_Variant__eq01(tolua_S);
  3001. }
  3002. #endif //#ifndef TOLUA_DISABLE
  3003. /* method: operator== of class Variant */
  3004. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq03
  3005. static int tolua_Core_Variant__eq03(lua_State* tolua_S)
  3006. {
  3007. tolua_Error tolua_err;
  3008. if (
  3009. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3010. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3011. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3012. )
  3013. goto tolua_lerror;
  3014. else
  3015. {
  3016. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3017. bool rhs = ((bool) tolua_toboolean(tolua_S,2,0));
  3018. #ifndef TOLUA_RELEASE
  3019. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3020. #endif
  3021. {
  3022. bool tolua_ret = (bool) self->operator==(rhs);
  3023. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3024. }
  3025. }
  3026. return 1;
  3027. tolua_lerror:
  3028. return tolua_Core_Variant__eq02(tolua_S);
  3029. }
  3030. #endif //#ifndef TOLUA_DISABLE
  3031. /* method: operator== of class Variant */
  3032. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq04
  3033. static int tolua_Core_Variant__eq04(lua_State* tolua_S)
  3034. {
  3035. tolua_Error tolua_err;
  3036. if (
  3037. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3038. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3039. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3040. )
  3041. goto tolua_lerror;
  3042. else
  3043. {
  3044. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3045. float rhs = ((float) tolua_tonumber(tolua_S,2,0));
  3046. #ifndef TOLUA_RELEASE
  3047. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3048. #endif
  3049. {
  3050. bool tolua_ret = (bool) self->operator==(rhs);
  3051. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3052. }
  3053. }
  3054. return 1;
  3055. tolua_lerror:
  3056. return tolua_Core_Variant__eq03(tolua_S);
  3057. }
  3058. #endif //#ifndef TOLUA_DISABLE
  3059. /* method: operator== of class Variant */
  3060. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq05
  3061. static int tolua_Core_Variant__eq05(lua_State* tolua_S)
  3062. {
  3063. tolua_Error tolua_err;
  3064. if (
  3065. !tolua_isusertype(tolua_S,1,"Variant",0,&tolua_err) ||
  3066. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  3067. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3068. )
  3069. goto tolua_lerror;
  3070. else
  3071. {
  3072. Variant* self = (Variant*) tolua_tousertype(tolua_S,1,0);
  3073. const Vector2* rhs = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  3074. #ifndef TOLUA_RELEASE
  3075. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3076. #endif
  3077. {
  3078. bool tolua_ret = (bool) self->operator==(*rhs);
  3079. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3080. }
  3081. }
  3082. return 1;
  3083. tolua_lerror:
  3084. return tolua_Core_Variant__eq04(tolua_S);
  3085. }
  3086. #endif //#ifndef TOLUA_DISABLE
  3087. /* method: operator== of class Variant */
  3088. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq06
  3089. static int tolua_Core_Variant__eq06(lua_State* tolua_S)
  3090. {
  3091. tolua_Error tolua_err;
  3092. if (
  3093. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3094. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  3095. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3096. )
  3097. goto tolua_lerror;
  3098. else
  3099. {
  3100. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3101. const Vector3* rhs = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  3102. #ifndef TOLUA_RELEASE
  3103. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3104. #endif
  3105. {
  3106. bool tolua_ret = (bool) self->operator==(*rhs);
  3107. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3108. }
  3109. }
  3110. return 1;
  3111. tolua_lerror:
  3112. return tolua_Core_Variant__eq05(tolua_S);
  3113. }
  3114. #endif //#ifndef TOLUA_DISABLE
  3115. /* method: operator== of class Variant */
  3116. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq07
  3117. static int tolua_Core_Variant__eq07(lua_State* tolua_S)
  3118. {
  3119. tolua_Error tolua_err;
  3120. if (
  3121. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3122. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector4",0,&tolua_err)) ||
  3123. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3124. )
  3125. goto tolua_lerror;
  3126. else
  3127. {
  3128. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3129. const Vector4* rhs = ((const Vector4*) tolua_tousertype(tolua_S,2,0));
  3130. #ifndef TOLUA_RELEASE
  3131. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3132. #endif
  3133. {
  3134. bool tolua_ret = (bool) self->operator==(*rhs);
  3135. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3136. }
  3137. }
  3138. return 1;
  3139. tolua_lerror:
  3140. return tolua_Core_Variant__eq06(tolua_S);
  3141. }
  3142. #endif //#ifndef TOLUA_DISABLE
  3143. /* method: operator== of class Variant */
  3144. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq08
  3145. static int tolua_Core_Variant__eq08(lua_State* tolua_S)
  3146. {
  3147. tolua_Error tolua_err;
  3148. if (
  3149. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3150. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Quaternion",0,&tolua_err)) ||
  3151. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3152. )
  3153. goto tolua_lerror;
  3154. else
  3155. {
  3156. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3157. const Quaternion* rhs = ((const Quaternion*) tolua_tousertype(tolua_S,2,0));
  3158. #ifndef TOLUA_RELEASE
  3159. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3160. #endif
  3161. {
  3162. bool tolua_ret = (bool) self->operator==(*rhs);
  3163. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3164. }
  3165. }
  3166. return 1;
  3167. tolua_lerror:
  3168. return tolua_Core_Variant__eq07(tolua_S);
  3169. }
  3170. #endif //#ifndef TOLUA_DISABLE
  3171. /* method: operator== of class Variant */
  3172. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq09
  3173. static int tolua_Core_Variant__eq09(lua_State* tolua_S)
  3174. {
  3175. tolua_Error tolua_err;
  3176. if (
  3177. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3178. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  3179. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3180. )
  3181. goto tolua_lerror;
  3182. else
  3183. {
  3184. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3185. const Color* rhs = ((const Color*) tolua_tousertype(tolua_S,2,0));
  3186. #ifndef TOLUA_RELEASE
  3187. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3188. #endif
  3189. {
  3190. bool tolua_ret = (bool) self->operator==(*rhs);
  3191. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3192. }
  3193. }
  3194. return 1;
  3195. tolua_lerror:
  3196. return tolua_Core_Variant__eq08(tolua_S);
  3197. }
  3198. #endif //#ifndef TOLUA_DISABLE
  3199. /* method: operator== of class Variant */
  3200. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq10
  3201. static int tolua_Core_Variant__eq10(lua_State* tolua_S)
  3202. {
  3203. tolua_Error tolua_err;
  3204. if (
  3205. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3206. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  3207. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3208. )
  3209. goto tolua_lerror;
  3210. else
  3211. {
  3212. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3213. const String* rhs = ((const String*) tolua_tousertype(tolua_S,2,0));
  3214. #ifndef TOLUA_RELEASE
  3215. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3216. #endif
  3217. {
  3218. bool tolua_ret = (bool) self->operator==(*rhs);
  3219. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3220. }
  3221. }
  3222. return 1;
  3223. tolua_lerror:
  3224. return tolua_Core_Variant__eq09(tolua_S);
  3225. }
  3226. #endif //#ifndef TOLUA_DISABLE
  3227. /* method: operator== of class Variant */
  3228. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq11
  3229. static int tolua_Core_Variant__eq11(lua_State* tolua_S)
  3230. {
  3231. tolua_Error tolua_err;
  3232. if (
  3233. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3234. !tolua_isuserdata(tolua_S,2,0,&tolua_err) ||
  3235. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3236. )
  3237. goto tolua_lerror;
  3238. else
  3239. {
  3240. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3241. void* rhs = ((void*) tolua_touserdata(tolua_S,2,0));
  3242. #ifndef TOLUA_RELEASE
  3243. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3244. #endif
  3245. {
  3246. bool tolua_ret = (bool) self->operator==(rhs);
  3247. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3248. }
  3249. }
  3250. return 1;
  3251. tolua_lerror:
  3252. return tolua_Core_Variant__eq10(tolua_S);
  3253. }
  3254. #endif //#ifndef TOLUA_DISABLE
  3255. /* method: operator== of class Variant */
  3256. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq12
  3257. static int tolua_Core_Variant__eq12(lua_State* tolua_S)
  3258. {
  3259. tolua_Error tolua_err;
  3260. if (
  3261. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3262. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ResourceRef",0,&tolua_err)) ||
  3263. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3264. )
  3265. goto tolua_lerror;
  3266. else
  3267. {
  3268. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3269. const ResourceRef* rhs = ((const ResourceRef*) tolua_tousertype(tolua_S,2,0));
  3270. #ifndef TOLUA_RELEASE
  3271. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3272. #endif
  3273. {
  3274. bool tolua_ret = (bool) self->operator==(*rhs);
  3275. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3276. }
  3277. }
  3278. return 1;
  3279. tolua_lerror:
  3280. return tolua_Core_Variant__eq11(tolua_S);
  3281. }
  3282. #endif //#ifndef TOLUA_DISABLE
  3283. /* method: operator== of class Variant */
  3284. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq13
  3285. static int tolua_Core_Variant__eq13(lua_State* tolua_S)
  3286. {
  3287. tolua_Error tolua_err;
  3288. if (
  3289. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3290. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ResourceRefList",0,&tolua_err)) ||
  3291. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3292. )
  3293. goto tolua_lerror;
  3294. else
  3295. {
  3296. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3297. const ResourceRefList* rhs = ((const ResourceRefList*) tolua_tousertype(tolua_S,2,0));
  3298. #ifndef TOLUA_RELEASE
  3299. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3300. #endif
  3301. {
  3302. bool tolua_ret = (bool) self->operator==(*rhs);
  3303. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3304. }
  3305. }
  3306. return 1;
  3307. tolua_lerror:
  3308. return tolua_Core_Variant__eq12(tolua_S);
  3309. }
  3310. #endif //#ifndef TOLUA_DISABLE
  3311. /* method: operator== of class Variant */
  3312. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq14
  3313. static int tolua_Core_Variant__eq14(lua_State* tolua_S)
  3314. {
  3315. tolua_Error tolua_err;
  3316. if (
  3317. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3318. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  3319. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3320. )
  3321. goto tolua_lerror;
  3322. else
  3323. {
  3324. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3325. const IntRect* rhs = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  3326. #ifndef TOLUA_RELEASE
  3327. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3328. #endif
  3329. {
  3330. bool tolua_ret = (bool) self->operator==(*rhs);
  3331. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3332. }
  3333. }
  3334. return 1;
  3335. tolua_lerror:
  3336. return tolua_Core_Variant__eq13(tolua_S);
  3337. }
  3338. #endif //#ifndef TOLUA_DISABLE
  3339. /* method: operator== of class Variant */
  3340. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq15
  3341. static int tolua_Core_Variant__eq15(lua_State* tolua_S)
  3342. {
  3343. tolua_Error tolua_err;
  3344. if (
  3345. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3346. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  3347. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3348. )
  3349. goto tolua_lerror;
  3350. else
  3351. {
  3352. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3353. const IntVector2* rhs = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  3354. #ifndef TOLUA_RELEASE
  3355. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3356. #endif
  3357. {
  3358. bool tolua_ret = (bool) self->operator==(*rhs);
  3359. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3360. }
  3361. }
  3362. return 1;
  3363. tolua_lerror:
  3364. return tolua_Core_Variant__eq14(tolua_S);
  3365. }
  3366. #endif //#ifndef TOLUA_DISABLE
  3367. /* method: operator== of class Variant */
  3368. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq16
  3369. static int tolua_Core_Variant__eq16(lua_State* tolua_S)
  3370. {
  3371. tolua_Error tolua_err;
  3372. if (
  3373. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3374. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const StringHash",0,&tolua_err)) ||
  3375. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3376. )
  3377. goto tolua_lerror;
  3378. else
  3379. {
  3380. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3381. const StringHash* rhs = ((const StringHash*) tolua_tousertype(tolua_S,2,0));
  3382. #ifndef TOLUA_RELEASE
  3383. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3384. #endif
  3385. {
  3386. bool tolua_ret = (bool) self->operator==(*rhs);
  3387. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3388. }
  3389. }
  3390. return 1;
  3391. tolua_lerror:
  3392. return tolua_Core_Variant__eq15(tolua_S);
  3393. }
  3394. #endif //#ifndef TOLUA_DISABLE
  3395. /* method: operator== of class Variant */
  3396. #ifndef TOLUA_DISABLE_tolua_Core_Variant__eq17
  3397. static int tolua_Core_Variant__eq17(lua_State* tolua_S)
  3398. {
  3399. tolua_Error tolua_err;
  3400. if (
  3401. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3402. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ShortStringHash",0,&tolua_err)) ||
  3403. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3404. )
  3405. goto tolua_lerror;
  3406. else
  3407. {
  3408. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3409. const ShortStringHash* rhs = ((const ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  3410. #ifndef TOLUA_RELEASE
  3411. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
  3412. #endif
  3413. {
  3414. bool tolua_ret = (bool) self->operator==(*rhs);
  3415. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3416. }
  3417. }
  3418. return 1;
  3419. tolua_lerror:
  3420. return tolua_Core_Variant__eq16(tolua_S);
  3421. }
  3422. #endif //#ifndef TOLUA_DISABLE
  3423. /* method: GetInt of class Variant */
  3424. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetInt00
  3425. static int tolua_Core_Variant_GetInt00(lua_State* tolua_S)
  3426. {
  3427. #ifndef TOLUA_RELEASE
  3428. tolua_Error tolua_err;
  3429. if (
  3430. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3431. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3432. )
  3433. goto tolua_lerror;
  3434. else
  3435. #endif
  3436. {
  3437. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3438. #ifndef TOLUA_RELEASE
  3439. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetInt'", NULL);
  3440. #endif
  3441. {
  3442. int tolua_ret = (int) self->GetInt();
  3443. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3444. }
  3445. }
  3446. return 1;
  3447. #ifndef TOLUA_RELEASE
  3448. tolua_lerror:
  3449. tolua_error(tolua_S,"#ferror in function 'GetInt'.",&tolua_err);
  3450. return 0;
  3451. #endif
  3452. }
  3453. #endif //#ifndef TOLUA_DISABLE
  3454. /* method: GetUInt of class Variant */
  3455. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetUInt00
  3456. static int tolua_Core_Variant_GetUInt00(lua_State* tolua_S)
  3457. {
  3458. #ifndef TOLUA_RELEASE
  3459. tolua_Error tolua_err;
  3460. if (
  3461. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3462. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3463. )
  3464. goto tolua_lerror;
  3465. else
  3466. #endif
  3467. {
  3468. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3469. #ifndef TOLUA_RELEASE
  3470. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetUInt'", NULL);
  3471. #endif
  3472. {
  3473. int tolua_ret = (int) self->GetUInt();
  3474. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3475. }
  3476. }
  3477. return 1;
  3478. #ifndef TOLUA_RELEASE
  3479. tolua_lerror:
  3480. tolua_error(tolua_S,"#ferror in function 'GetUInt'.",&tolua_err);
  3481. return 0;
  3482. #endif
  3483. }
  3484. #endif //#ifndef TOLUA_DISABLE
  3485. /* method: GetStringHash of class Variant */
  3486. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetStringHash00
  3487. static int tolua_Core_Variant_GetStringHash00(lua_State* tolua_S)
  3488. {
  3489. #ifndef TOLUA_RELEASE
  3490. tolua_Error tolua_err;
  3491. if (
  3492. !tolua_isusertype(tolua_S,1,"Variant",0,&tolua_err) ||
  3493. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3494. )
  3495. goto tolua_lerror;
  3496. else
  3497. #endif
  3498. {
  3499. Variant* self = (Variant*) tolua_tousertype(tolua_S,1,0);
  3500. #ifndef TOLUA_RELEASE
  3501. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStringHash'", NULL);
  3502. #endif
  3503. {
  3504. StringHash tolua_ret = (StringHash) self->GetStringHash();
  3505. {
  3506. #ifdef __cplusplus
  3507. void* tolua_obj = Mtolua_new((StringHash)(tolua_ret));
  3508. tolua_pushusertype(tolua_S,tolua_obj,"StringHash");
  3509. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3510. #else
  3511. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(StringHash));
  3512. tolua_pushusertype(tolua_S,tolua_obj,"StringHash");
  3513. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3514. #endif
  3515. }
  3516. }
  3517. }
  3518. return 1;
  3519. #ifndef TOLUA_RELEASE
  3520. tolua_lerror:
  3521. tolua_error(tolua_S,"#ferror in function 'GetStringHash'.",&tolua_err);
  3522. return 0;
  3523. #endif
  3524. }
  3525. #endif //#ifndef TOLUA_DISABLE
  3526. /* method: GetShortStringHash of class Variant */
  3527. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetShortStringHash00
  3528. static int tolua_Core_Variant_GetShortStringHash00(lua_State* tolua_S)
  3529. {
  3530. #ifndef TOLUA_RELEASE
  3531. tolua_Error tolua_err;
  3532. if (
  3533. !tolua_isusertype(tolua_S,1,"Variant",0,&tolua_err) ||
  3534. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3535. )
  3536. goto tolua_lerror;
  3537. else
  3538. #endif
  3539. {
  3540. Variant* self = (Variant*) tolua_tousertype(tolua_S,1,0);
  3541. #ifndef TOLUA_RELEASE
  3542. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShortStringHash'", NULL);
  3543. #endif
  3544. {
  3545. ShortStringHash tolua_ret = (ShortStringHash) self->GetShortStringHash();
  3546. {
  3547. #ifdef __cplusplus
  3548. void* tolua_obj = Mtolua_new((ShortStringHash)(tolua_ret));
  3549. tolua_pushusertype(tolua_S,tolua_obj,"ShortStringHash");
  3550. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3551. #else
  3552. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(ShortStringHash));
  3553. tolua_pushusertype(tolua_S,tolua_obj,"ShortStringHash");
  3554. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3555. #endif
  3556. }
  3557. }
  3558. }
  3559. return 1;
  3560. #ifndef TOLUA_RELEASE
  3561. tolua_lerror:
  3562. tolua_error(tolua_S,"#ferror in function 'GetShortStringHash'.",&tolua_err);
  3563. return 0;
  3564. #endif
  3565. }
  3566. #endif //#ifndef TOLUA_DISABLE
  3567. /* method: GetBool of class Variant */
  3568. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetBool00
  3569. static int tolua_Core_Variant_GetBool00(lua_State* tolua_S)
  3570. {
  3571. #ifndef TOLUA_RELEASE
  3572. tolua_Error tolua_err;
  3573. if (
  3574. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3575. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3576. )
  3577. goto tolua_lerror;
  3578. else
  3579. #endif
  3580. {
  3581. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3582. #ifndef TOLUA_RELEASE
  3583. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBool'", NULL);
  3584. #endif
  3585. {
  3586. bool tolua_ret = (bool) self->GetBool();
  3587. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3588. }
  3589. }
  3590. return 1;
  3591. #ifndef TOLUA_RELEASE
  3592. tolua_lerror:
  3593. tolua_error(tolua_S,"#ferror in function 'GetBool'.",&tolua_err);
  3594. return 0;
  3595. #endif
  3596. }
  3597. #endif //#ifndef TOLUA_DISABLE
  3598. /* method: GetFloat of class Variant */
  3599. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetFloat00
  3600. static int tolua_Core_Variant_GetFloat00(lua_State* tolua_S)
  3601. {
  3602. #ifndef TOLUA_RELEASE
  3603. tolua_Error tolua_err;
  3604. if (
  3605. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3606. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3607. )
  3608. goto tolua_lerror;
  3609. else
  3610. #endif
  3611. {
  3612. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3613. #ifndef TOLUA_RELEASE
  3614. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFloat'", NULL);
  3615. #endif
  3616. {
  3617. float tolua_ret = (float) self->GetFloat();
  3618. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3619. }
  3620. }
  3621. return 1;
  3622. #ifndef TOLUA_RELEASE
  3623. tolua_lerror:
  3624. tolua_error(tolua_S,"#ferror in function 'GetFloat'.",&tolua_err);
  3625. return 0;
  3626. #endif
  3627. }
  3628. #endif //#ifndef TOLUA_DISABLE
  3629. /* method: GetVector2 of class Variant */
  3630. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetVector200
  3631. static int tolua_Core_Variant_GetVector200(lua_State* tolua_S)
  3632. {
  3633. #ifndef TOLUA_RELEASE
  3634. tolua_Error tolua_err;
  3635. if (
  3636. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3637. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3638. )
  3639. goto tolua_lerror;
  3640. else
  3641. #endif
  3642. {
  3643. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3644. #ifndef TOLUA_RELEASE
  3645. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVector2'", NULL);
  3646. #endif
  3647. {
  3648. const Vector2& tolua_ret = (const Vector2&) self->GetVector2();
  3649. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector2");
  3650. }
  3651. }
  3652. return 1;
  3653. #ifndef TOLUA_RELEASE
  3654. tolua_lerror:
  3655. tolua_error(tolua_S,"#ferror in function 'GetVector2'.",&tolua_err);
  3656. return 0;
  3657. #endif
  3658. }
  3659. #endif //#ifndef TOLUA_DISABLE
  3660. /* method: GetVector3 of class Variant */
  3661. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetVector300
  3662. static int tolua_Core_Variant_GetVector300(lua_State* tolua_S)
  3663. {
  3664. #ifndef TOLUA_RELEASE
  3665. tolua_Error tolua_err;
  3666. if (
  3667. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3668. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3669. )
  3670. goto tolua_lerror;
  3671. else
  3672. #endif
  3673. {
  3674. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3675. #ifndef TOLUA_RELEASE
  3676. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVector3'", NULL);
  3677. #endif
  3678. {
  3679. const Vector3& tolua_ret = (const Vector3&) self->GetVector3();
  3680. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  3681. }
  3682. }
  3683. return 1;
  3684. #ifndef TOLUA_RELEASE
  3685. tolua_lerror:
  3686. tolua_error(tolua_S,"#ferror in function 'GetVector3'.",&tolua_err);
  3687. return 0;
  3688. #endif
  3689. }
  3690. #endif //#ifndef TOLUA_DISABLE
  3691. /* method: GetVector4 of class Variant */
  3692. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetVector400
  3693. static int tolua_Core_Variant_GetVector400(lua_State* tolua_S)
  3694. {
  3695. #ifndef TOLUA_RELEASE
  3696. tolua_Error tolua_err;
  3697. if (
  3698. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3699. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3700. )
  3701. goto tolua_lerror;
  3702. else
  3703. #endif
  3704. {
  3705. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3706. #ifndef TOLUA_RELEASE
  3707. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVector4'", NULL);
  3708. #endif
  3709. {
  3710. const Vector4& tolua_ret = (const Vector4&) self->GetVector4();
  3711. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector4");
  3712. }
  3713. }
  3714. return 1;
  3715. #ifndef TOLUA_RELEASE
  3716. tolua_lerror:
  3717. tolua_error(tolua_S,"#ferror in function 'GetVector4'.",&tolua_err);
  3718. return 0;
  3719. #endif
  3720. }
  3721. #endif //#ifndef TOLUA_DISABLE
  3722. /* method: GetQuaternion of class Variant */
  3723. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetQuaternion00
  3724. static int tolua_Core_Variant_GetQuaternion00(lua_State* tolua_S)
  3725. {
  3726. #ifndef TOLUA_RELEASE
  3727. tolua_Error tolua_err;
  3728. if (
  3729. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3730. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3731. )
  3732. goto tolua_lerror;
  3733. else
  3734. #endif
  3735. {
  3736. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3737. #ifndef TOLUA_RELEASE
  3738. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetQuaternion'", NULL);
  3739. #endif
  3740. {
  3741. const Quaternion& tolua_ret = (const Quaternion&) self->GetQuaternion();
  3742. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Quaternion");
  3743. }
  3744. }
  3745. return 1;
  3746. #ifndef TOLUA_RELEASE
  3747. tolua_lerror:
  3748. tolua_error(tolua_S,"#ferror in function 'GetQuaternion'.",&tolua_err);
  3749. return 0;
  3750. #endif
  3751. }
  3752. #endif //#ifndef TOLUA_DISABLE
  3753. /* method: GetColor of class Variant */
  3754. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetColor00
  3755. static int tolua_Core_Variant_GetColor00(lua_State* tolua_S)
  3756. {
  3757. #ifndef TOLUA_RELEASE
  3758. tolua_Error tolua_err;
  3759. if (
  3760. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3761. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3762. )
  3763. goto tolua_lerror;
  3764. else
  3765. #endif
  3766. {
  3767. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3768. #ifndef TOLUA_RELEASE
  3769. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetColor'", NULL);
  3770. #endif
  3771. {
  3772. const Color& tolua_ret = (const Color&) self->GetColor();
  3773. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  3774. }
  3775. }
  3776. return 1;
  3777. #ifndef TOLUA_RELEASE
  3778. tolua_lerror:
  3779. tolua_error(tolua_S,"#ferror in function 'GetColor'.",&tolua_err);
  3780. return 0;
  3781. #endif
  3782. }
  3783. #endif //#ifndef TOLUA_DISABLE
  3784. /* method: GetString of class Variant */
  3785. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetString00
  3786. static int tolua_Core_Variant_GetString00(lua_State* tolua_S)
  3787. {
  3788. #ifndef TOLUA_RELEASE
  3789. tolua_Error tolua_err;
  3790. if (
  3791. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3792. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3793. )
  3794. goto tolua_lerror;
  3795. else
  3796. #endif
  3797. {
  3798. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3799. #ifndef TOLUA_RELEASE
  3800. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetString'", NULL);
  3801. #endif
  3802. {
  3803. const String& tolua_ret = (const String&) self->GetString();
  3804. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  3805. }
  3806. }
  3807. return 1;
  3808. #ifndef TOLUA_RELEASE
  3809. tolua_lerror:
  3810. tolua_error(tolua_S,"#ferror in function 'GetString'.",&tolua_err);
  3811. return 0;
  3812. #endif
  3813. }
  3814. #endif //#ifndef TOLUA_DISABLE
  3815. /* method: GetPtr of class Variant */
  3816. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetPtr00
  3817. static int tolua_Core_Variant_GetPtr00(lua_State* tolua_S)
  3818. {
  3819. #ifndef TOLUA_RELEASE
  3820. tolua_Error tolua_err;
  3821. if (
  3822. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3823. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3824. )
  3825. goto tolua_lerror;
  3826. else
  3827. #endif
  3828. {
  3829. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3830. #ifndef TOLUA_RELEASE
  3831. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPtr'", NULL);
  3832. #endif
  3833. {
  3834. void* tolua_ret = (void*) self->GetPtr();
  3835. tolua_pushuserdata(tolua_S,(void*)tolua_ret);
  3836. }
  3837. }
  3838. return 1;
  3839. #ifndef TOLUA_RELEASE
  3840. tolua_lerror:
  3841. tolua_error(tolua_S,"#ferror in function 'GetPtr'.",&tolua_err);
  3842. return 0;
  3843. #endif
  3844. }
  3845. #endif //#ifndef TOLUA_DISABLE
  3846. /* method: GetResourceRef of class Variant */
  3847. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetResourceRef00
  3848. static int tolua_Core_Variant_GetResourceRef00(lua_State* tolua_S)
  3849. {
  3850. #ifndef TOLUA_RELEASE
  3851. tolua_Error tolua_err;
  3852. if (
  3853. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3854. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3855. )
  3856. goto tolua_lerror;
  3857. else
  3858. #endif
  3859. {
  3860. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3861. #ifndef TOLUA_RELEASE
  3862. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetResourceRef'", NULL);
  3863. #endif
  3864. {
  3865. const ResourceRef& tolua_ret = (const ResourceRef&) self->GetResourceRef();
  3866. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const ResourceRef");
  3867. }
  3868. }
  3869. return 1;
  3870. #ifndef TOLUA_RELEASE
  3871. tolua_lerror:
  3872. tolua_error(tolua_S,"#ferror in function 'GetResourceRef'.",&tolua_err);
  3873. return 0;
  3874. #endif
  3875. }
  3876. #endif //#ifndef TOLUA_DISABLE
  3877. /* method: GetResourceRefList of class Variant */
  3878. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetResourceRefList00
  3879. static int tolua_Core_Variant_GetResourceRefList00(lua_State* tolua_S)
  3880. {
  3881. #ifndef TOLUA_RELEASE
  3882. tolua_Error tolua_err;
  3883. if (
  3884. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3885. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3886. )
  3887. goto tolua_lerror;
  3888. else
  3889. #endif
  3890. {
  3891. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3892. #ifndef TOLUA_RELEASE
  3893. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetResourceRefList'", NULL);
  3894. #endif
  3895. {
  3896. const ResourceRefList& tolua_ret = (const ResourceRefList&) self->GetResourceRefList();
  3897. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const ResourceRefList");
  3898. }
  3899. }
  3900. return 1;
  3901. #ifndef TOLUA_RELEASE
  3902. tolua_lerror:
  3903. tolua_error(tolua_S,"#ferror in function 'GetResourceRefList'.",&tolua_err);
  3904. return 0;
  3905. #endif
  3906. }
  3907. #endif //#ifndef TOLUA_DISABLE
  3908. /* method: GetIntRect of class Variant */
  3909. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetIntRect00
  3910. static int tolua_Core_Variant_GetIntRect00(lua_State* tolua_S)
  3911. {
  3912. #ifndef TOLUA_RELEASE
  3913. tolua_Error tolua_err;
  3914. if (
  3915. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3916. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3917. )
  3918. goto tolua_lerror;
  3919. else
  3920. #endif
  3921. {
  3922. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3923. #ifndef TOLUA_RELEASE
  3924. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetIntRect'", NULL);
  3925. #endif
  3926. {
  3927. const IntRect& tolua_ret = (const IntRect&) self->GetIntRect();
  3928. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntRect");
  3929. }
  3930. }
  3931. return 1;
  3932. #ifndef TOLUA_RELEASE
  3933. tolua_lerror:
  3934. tolua_error(tolua_S,"#ferror in function 'GetIntRect'.",&tolua_err);
  3935. return 0;
  3936. #endif
  3937. }
  3938. #endif //#ifndef TOLUA_DISABLE
  3939. /* method: GetIntVector2 of class Variant */
  3940. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetIntVector200
  3941. static int tolua_Core_Variant_GetIntVector200(lua_State* tolua_S)
  3942. {
  3943. #ifndef TOLUA_RELEASE
  3944. tolua_Error tolua_err;
  3945. if (
  3946. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3947. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3948. )
  3949. goto tolua_lerror;
  3950. else
  3951. #endif
  3952. {
  3953. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3954. #ifndef TOLUA_RELEASE
  3955. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetIntVector2'", NULL);
  3956. #endif
  3957. {
  3958. const IntVector2& tolua_ret = (const IntVector2&) self->GetIntVector2();
  3959. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  3960. }
  3961. }
  3962. return 1;
  3963. #ifndef TOLUA_RELEASE
  3964. tolua_lerror:
  3965. tolua_error(tolua_S,"#ferror in function 'GetIntVector2'.",&tolua_err);
  3966. return 0;
  3967. #endif
  3968. }
  3969. #endif //#ifndef TOLUA_DISABLE
  3970. /* method: GetType of class Variant */
  3971. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetType00
  3972. static int tolua_Core_Variant_GetType00(lua_State* tolua_S)
  3973. {
  3974. #ifndef TOLUA_RELEASE
  3975. tolua_Error tolua_err;
  3976. if (
  3977. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  3978. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3979. )
  3980. goto tolua_lerror;
  3981. else
  3982. #endif
  3983. {
  3984. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  3985. #ifndef TOLUA_RELEASE
  3986. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetType'", NULL);
  3987. #endif
  3988. {
  3989. VariantType tolua_ret = (VariantType) self->GetType();
  3990. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3991. }
  3992. }
  3993. return 1;
  3994. #ifndef TOLUA_RELEASE
  3995. tolua_lerror:
  3996. tolua_error(tolua_S,"#ferror in function 'GetType'.",&tolua_err);
  3997. return 0;
  3998. #endif
  3999. }
  4000. #endif //#ifndef TOLUA_DISABLE
  4001. /* method: GetTypeName of class Variant */
  4002. #ifndef TOLUA_DISABLE_tolua_Core_Variant_GetTypeName00
  4003. static int tolua_Core_Variant_GetTypeName00(lua_State* tolua_S)
  4004. {
  4005. #ifndef TOLUA_RELEASE
  4006. tolua_Error tolua_err;
  4007. if (
  4008. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  4009. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4010. )
  4011. goto tolua_lerror;
  4012. else
  4013. #endif
  4014. {
  4015. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  4016. #ifndef TOLUA_RELEASE
  4017. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTypeName'", NULL);
  4018. #endif
  4019. {
  4020. String tolua_ret = (String) self->GetTypeName();
  4021. {
  4022. #ifdef __cplusplus
  4023. void* tolua_obj = Mtolua_new((String)(tolua_ret));
  4024. tolua_pushusertype(tolua_S,tolua_obj,"String");
  4025. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4026. #else
  4027. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(String));
  4028. tolua_pushusertype(tolua_S,tolua_obj,"String");
  4029. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4030. #endif
  4031. }
  4032. }
  4033. }
  4034. return 1;
  4035. #ifndef TOLUA_RELEASE
  4036. tolua_lerror:
  4037. tolua_error(tolua_S,"#ferror in function 'GetTypeName'.",&tolua_err);
  4038. return 0;
  4039. #endif
  4040. }
  4041. #endif //#ifndef TOLUA_DISABLE
  4042. /* method: ToString of class Variant */
  4043. #ifndef TOLUA_DISABLE_tolua_Core_Variant_ToString00
  4044. static int tolua_Core_Variant_ToString00(lua_State* tolua_S)
  4045. {
  4046. #ifndef TOLUA_RELEASE
  4047. tolua_Error tolua_err;
  4048. if (
  4049. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  4050. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4051. )
  4052. goto tolua_lerror;
  4053. else
  4054. #endif
  4055. {
  4056. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  4057. #ifndef TOLUA_RELEASE
  4058. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ToString'", NULL);
  4059. #endif
  4060. {
  4061. String tolua_ret = (String) self->ToString();
  4062. {
  4063. #ifdef __cplusplus
  4064. void* tolua_obj = Mtolua_new((String)(tolua_ret));
  4065. tolua_pushusertype(tolua_S,tolua_obj,"String");
  4066. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4067. #else
  4068. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(String));
  4069. tolua_pushusertype(tolua_S,tolua_obj,"String");
  4070. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4071. #endif
  4072. }
  4073. }
  4074. }
  4075. return 1;
  4076. #ifndef TOLUA_RELEASE
  4077. tolua_lerror:
  4078. tolua_error(tolua_S,"#ferror in function 'ToString'.",&tolua_err);
  4079. return 0;
  4080. #endif
  4081. }
  4082. #endif //#ifndef TOLUA_DISABLE
  4083. /* method: IsZero of class Variant */
  4084. #ifndef TOLUA_DISABLE_tolua_Core_Variant_IsZero00
  4085. static int tolua_Core_Variant_IsZero00(lua_State* tolua_S)
  4086. {
  4087. #ifndef TOLUA_RELEASE
  4088. tolua_Error tolua_err;
  4089. if (
  4090. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  4091. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4092. )
  4093. goto tolua_lerror;
  4094. else
  4095. #endif
  4096. {
  4097. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  4098. #ifndef TOLUA_RELEASE
  4099. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsZero'", NULL);
  4100. #endif
  4101. {
  4102. bool tolua_ret = (bool) self->IsZero();
  4103. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4104. }
  4105. }
  4106. return 1;
  4107. #ifndef TOLUA_RELEASE
  4108. tolua_lerror:
  4109. tolua_error(tolua_S,"#ferror in function 'IsZero'.",&tolua_err);
  4110. return 0;
  4111. #endif
  4112. }
  4113. #endif //#ifndef TOLUA_DISABLE
  4114. /* method: IsEmpty of class Variant */
  4115. #ifndef TOLUA_DISABLE_tolua_Core_Variant_IsEmpty00
  4116. static int tolua_Core_Variant_IsEmpty00(lua_State* tolua_S)
  4117. {
  4118. #ifndef TOLUA_RELEASE
  4119. tolua_Error tolua_err;
  4120. if (
  4121. !tolua_isusertype(tolua_S,1,"const Variant",0,&tolua_err) ||
  4122. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4123. )
  4124. goto tolua_lerror;
  4125. else
  4126. #endif
  4127. {
  4128. const Variant* self = (const Variant*) tolua_tousertype(tolua_S,1,0);
  4129. #ifndef TOLUA_RELEASE
  4130. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsEmpty'", NULL);
  4131. #endif
  4132. {
  4133. bool tolua_ret = (bool) self->IsEmpty();
  4134. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4135. }
  4136. }
  4137. return 1;
  4138. #ifndef TOLUA_RELEASE
  4139. tolua_lerror:
  4140. tolua_error(tolua_S,"#ferror in function 'IsEmpty'.",&tolua_err);
  4141. return 0;
  4142. #endif
  4143. }
  4144. #endif //#ifndef TOLUA_DISABLE
  4145. /* method: VariantMapGetInt of class VariantMap */
  4146. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_GetInt00
  4147. static int tolua_Core_VariantMap_GetInt00(lua_State* tolua_S)
  4148. {
  4149. #ifndef TOLUA_RELEASE
  4150. tolua_Error tolua_err;
  4151. if (
  4152. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4153. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4154. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4155. )
  4156. goto tolua_lerror;
  4157. else
  4158. #endif
  4159. {
  4160. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4161. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4162. #ifndef TOLUA_RELEASE
  4163. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapGetInt'", NULL);
  4164. #endif
  4165. {
  4166. tolua_outside int tolua_ret = (tolua_outside int) VariantMapGetInt(self,key);
  4167. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4168. }
  4169. }
  4170. return 1;
  4171. #ifndef TOLUA_RELEASE
  4172. tolua_lerror:
  4173. tolua_error(tolua_S,"#ferror in function 'GetInt'.",&tolua_err);
  4174. return 0;
  4175. #endif
  4176. }
  4177. #endif //#ifndef TOLUA_DISABLE
  4178. /* method: VariantMapGetBool of class VariantMap */
  4179. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_GetBool00
  4180. static int tolua_Core_VariantMap_GetBool00(lua_State* tolua_S)
  4181. {
  4182. #ifndef TOLUA_RELEASE
  4183. tolua_Error tolua_err;
  4184. if (
  4185. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4186. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4187. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4188. )
  4189. goto tolua_lerror;
  4190. else
  4191. #endif
  4192. {
  4193. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4194. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4195. #ifndef TOLUA_RELEASE
  4196. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapGetBool'", NULL);
  4197. #endif
  4198. {
  4199. tolua_outside bool tolua_ret = (tolua_outside bool) VariantMapGetBool(self,key);
  4200. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4201. }
  4202. }
  4203. return 1;
  4204. #ifndef TOLUA_RELEASE
  4205. tolua_lerror:
  4206. tolua_error(tolua_S,"#ferror in function 'GetBool'.",&tolua_err);
  4207. return 0;
  4208. #endif
  4209. }
  4210. #endif //#ifndef TOLUA_DISABLE
  4211. /* method: VariantMapGetFloat of class VariantMap */
  4212. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_GetFloat00
  4213. static int tolua_Core_VariantMap_GetFloat00(lua_State* tolua_S)
  4214. {
  4215. #ifndef TOLUA_RELEASE
  4216. tolua_Error tolua_err;
  4217. if (
  4218. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4219. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4220. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4221. )
  4222. goto tolua_lerror;
  4223. else
  4224. #endif
  4225. {
  4226. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4227. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4228. #ifndef TOLUA_RELEASE
  4229. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapGetFloat'", NULL);
  4230. #endif
  4231. {
  4232. tolua_outside float tolua_ret = (tolua_outside float) VariantMapGetFloat(self,key);
  4233. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4234. }
  4235. }
  4236. return 1;
  4237. #ifndef TOLUA_RELEASE
  4238. tolua_lerror:
  4239. tolua_error(tolua_S,"#ferror in function 'GetFloat'.",&tolua_err);
  4240. return 0;
  4241. #endif
  4242. }
  4243. #endif //#ifndef TOLUA_DISABLE
  4244. /* method: VariantMapGetVector2 of class VariantMap */
  4245. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_GetVector200
  4246. static int tolua_Core_VariantMap_GetVector200(lua_State* tolua_S)
  4247. {
  4248. #ifndef TOLUA_RELEASE
  4249. tolua_Error tolua_err;
  4250. if (
  4251. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4252. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4253. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4254. )
  4255. goto tolua_lerror;
  4256. else
  4257. #endif
  4258. {
  4259. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4260. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4261. #ifndef TOLUA_RELEASE
  4262. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapGetVector2'", NULL);
  4263. #endif
  4264. {
  4265. tolua_outside const Vector2& tolua_ret = (tolua_outside const Vector2&) VariantMapGetVector2(self,key);
  4266. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector2");
  4267. }
  4268. }
  4269. return 1;
  4270. #ifndef TOLUA_RELEASE
  4271. tolua_lerror:
  4272. tolua_error(tolua_S,"#ferror in function 'GetVector2'.",&tolua_err);
  4273. return 0;
  4274. #endif
  4275. }
  4276. #endif //#ifndef TOLUA_DISABLE
  4277. /* method: VariantMapGetVector3 of class VariantMap */
  4278. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_GetVector300
  4279. static int tolua_Core_VariantMap_GetVector300(lua_State* tolua_S)
  4280. {
  4281. #ifndef TOLUA_RELEASE
  4282. tolua_Error tolua_err;
  4283. if (
  4284. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4285. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4286. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4287. )
  4288. goto tolua_lerror;
  4289. else
  4290. #endif
  4291. {
  4292. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4293. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4294. #ifndef TOLUA_RELEASE
  4295. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapGetVector3'", NULL);
  4296. #endif
  4297. {
  4298. tolua_outside const Vector3& tolua_ret = (tolua_outside const Vector3&) VariantMapGetVector3(self,key);
  4299. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  4300. }
  4301. }
  4302. return 1;
  4303. #ifndef TOLUA_RELEASE
  4304. tolua_lerror:
  4305. tolua_error(tolua_S,"#ferror in function 'GetVector3'.",&tolua_err);
  4306. return 0;
  4307. #endif
  4308. }
  4309. #endif //#ifndef TOLUA_DISABLE
  4310. /* method: VariantMapGetVector4 of class VariantMap */
  4311. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_GetVector400
  4312. static int tolua_Core_VariantMap_GetVector400(lua_State* tolua_S)
  4313. {
  4314. #ifndef TOLUA_RELEASE
  4315. tolua_Error tolua_err;
  4316. if (
  4317. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4318. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4319. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4320. )
  4321. goto tolua_lerror;
  4322. else
  4323. #endif
  4324. {
  4325. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4326. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4327. #ifndef TOLUA_RELEASE
  4328. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapGetVector4'", NULL);
  4329. #endif
  4330. {
  4331. tolua_outside const Vector4& tolua_ret = (tolua_outside const Vector4&) VariantMapGetVector4(self,key);
  4332. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector4");
  4333. }
  4334. }
  4335. return 1;
  4336. #ifndef TOLUA_RELEASE
  4337. tolua_lerror:
  4338. tolua_error(tolua_S,"#ferror in function 'GetVector4'.",&tolua_err);
  4339. return 0;
  4340. #endif
  4341. }
  4342. #endif //#ifndef TOLUA_DISABLE
  4343. /* method: VariantMapGetQuaternion of class VariantMap */
  4344. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_GetQuaternion00
  4345. static int tolua_Core_VariantMap_GetQuaternion00(lua_State* tolua_S)
  4346. {
  4347. #ifndef TOLUA_RELEASE
  4348. tolua_Error tolua_err;
  4349. if (
  4350. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4351. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4352. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4353. )
  4354. goto tolua_lerror;
  4355. else
  4356. #endif
  4357. {
  4358. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4359. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4360. #ifndef TOLUA_RELEASE
  4361. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapGetQuaternion'", NULL);
  4362. #endif
  4363. {
  4364. tolua_outside const Quaternion& tolua_ret = (tolua_outside const Quaternion&) VariantMapGetQuaternion(self,key);
  4365. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Quaternion");
  4366. }
  4367. }
  4368. return 1;
  4369. #ifndef TOLUA_RELEASE
  4370. tolua_lerror:
  4371. tolua_error(tolua_S,"#ferror in function 'GetQuaternion'.",&tolua_err);
  4372. return 0;
  4373. #endif
  4374. }
  4375. #endif //#ifndef TOLUA_DISABLE
  4376. /* method: VariantMapGetColor of class VariantMap */
  4377. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_GetColor00
  4378. static int tolua_Core_VariantMap_GetColor00(lua_State* tolua_S)
  4379. {
  4380. #ifndef TOLUA_RELEASE
  4381. tolua_Error tolua_err;
  4382. if (
  4383. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4384. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4385. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4386. )
  4387. goto tolua_lerror;
  4388. else
  4389. #endif
  4390. {
  4391. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4392. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4393. #ifndef TOLUA_RELEASE
  4394. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapGetColor'", NULL);
  4395. #endif
  4396. {
  4397. tolua_outside const Color& tolua_ret = (tolua_outside const Color&) VariantMapGetColor(self,key);
  4398. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  4399. }
  4400. }
  4401. return 1;
  4402. #ifndef TOLUA_RELEASE
  4403. tolua_lerror:
  4404. tolua_error(tolua_S,"#ferror in function 'GetColor'.",&tolua_err);
  4405. return 0;
  4406. #endif
  4407. }
  4408. #endif //#ifndef TOLUA_DISABLE
  4409. /* method: VariantMapGetString of class VariantMap */
  4410. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_GetString00
  4411. static int tolua_Core_VariantMap_GetString00(lua_State* tolua_S)
  4412. {
  4413. #ifndef TOLUA_RELEASE
  4414. tolua_Error tolua_err;
  4415. if (
  4416. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4417. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4418. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4419. )
  4420. goto tolua_lerror;
  4421. else
  4422. #endif
  4423. {
  4424. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4425. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4426. #ifndef TOLUA_RELEASE
  4427. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapGetString'", NULL);
  4428. #endif
  4429. {
  4430. tolua_outside const String& tolua_ret = (tolua_outside const String&) VariantMapGetString(self,key);
  4431. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  4432. }
  4433. }
  4434. return 1;
  4435. #ifndef TOLUA_RELEASE
  4436. tolua_lerror:
  4437. tolua_error(tolua_S,"#ferror in function 'GetString'.",&tolua_err);
  4438. return 0;
  4439. #endif
  4440. }
  4441. #endif //#ifndef TOLUA_DISABLE
  4442. /* method: VariantMapGetPtr of class VariantMap */
  4443. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_GetPtr00
  4444. static int tolua_Core_VariantMap_GetPtr00(lua_State* tolua_S)
  4445. {
  4446. #ifndef TOLUA_RELEASE
  4447. tolua_Error tolua_err;
  4448. if (
  4449. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4450. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4451. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4452. )
  4453. goto tolua_lerror;
  4454. else
  4455. #endif
  4456. {
  4457. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4458. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4459. #ifndef TOLUA_RELEASE
  4460. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapGetPtr'", NULL);
  4461. #endif
  4462. {
  4463. tolua_outside const void* tolua_ret = (tolua_outside const void*) VariantMapGetPtr(self,key);
  4464. tolua_pushuserdata(tolua_S,(void*)tolua_ret);
  4465. }
  4466. }
  4467. return 1;
  4468. #ifndef TOLUA_RELEASE
  4469. tolua_lerror:
  4470. tolua_error(tolua_S,"#ferror in function 'GetPtr'.",&tolua_err);
  4471. return 0;
  4472. #endif
  4473. }
  4474. #endif //#ifndef TOLUA_DISABLE
  4475. /* method: VariantMapGetResourceRef of class VariantMap */
  4476. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_GetResourceRef00
  4477. static int tolua_Core_VariantMap_GetResourceRef00(lua_State* tolua_S)
  4478. {
  4479. #ifndef TOLUA_RELEASE
  4480. tolua_Error tolua_err;
  4481. if (
  4482. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4483. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4484. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4485. )
  4486. goto tolua_lerror;
  4487. else
  4488. #endif
  4489. {
  4490. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4491. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4492. #ifndef TOLUA_RELEASE
  4493. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapGetResourceRef'", NULL);
  4494. #endif
  4495. {
  4496. tolua_outside const ResourceRef& tolua_ret = (tolua_outside const ResourceRef&) VariantMapGetResourceRef(self,key);
  4497. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const ResourceRef");
  4498. }
  4499. }
  4500. return 1;
  4501. #ifndef TOLUA_RELEASE
  4502. tolua_lerror:
  4503. tolua_error(tolua_S,"#ferror in function 'GetResourceRef'.",&tolua_err);
  4504. return 0;
  4505. #endif
  4506. }
  4507. #endif //#ifndef TOLUA_DISABLE
  4508. /* method: VariantMapGetResourceRefList of class VariantMap */
  4509. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_GetResourceRefList00
  4510. static int tolua_Core_VariantMap_GetResourceRefList00(lua_State* tolua_S)
  4511. {
  4512. #ifndef TOLUA_RELEASE
  4513. tolua_Error tolua_err;
  4514. if (
  4515. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4516. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4517. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4518. )
  4519. goto tolua_lerror;
  4520. else
  4521. #endif
  4522. {
  4523. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4524. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4525. #ifndef TOLUA_RELEASE
  4526. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapGetResourceRefList'", NULL);
  4527. #endif
  4528. {
  4529. tolua_outside const ResourceRefList& tolua_ret = (tolua_outside const ResourceRefList&) VariantMapGetResourceRefList(self,key);
  4530. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const ResourceRefList");
  4531. }
  4532. }
  4533. return 1;
  4534. #ifndef TOLUA_RELEASE
  4535. tolua_lerror:
  4536. tolua_error(tolua_S,"#ferror in function 'GetResourceRefList'.",&tolua_err);
  4537. return 0;
  4538. #endif
  4539. }
  4540. #endif //#ifndef TOLUA_DISABLE
  4541. /* method: VariantMapGetIntRect of class VariantMap */
  4542. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_GetIntRect00
  4543. static int tolua_Core_VariantMap_GetIntRect00(lua_State* tolua_S)
  4544. {
  4545. #ifndef TOLUA_RELEASE
  4546. tolua_Error tolua_err;
  4547. if (
  4548. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4549. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4550. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4551. )
  4552. goto tolua_lerror;
  4553. else
  4554. #endif
  4555. {
  4556. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4557. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4558. #ifndef TOLUA_RELEASE
  4559. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapGetIntRect'", NULL);
  4560. #endif
  4561. {
  4562. tolua_outside const IntRect& tolua_ret = (tolua_outside const IntRect&) VariantMapGetIntRect(self,key);
  4563. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntRect");
  4564. }
  4565. }
  4566. return 1;
  4567. #ifndef TOLUA_RELEASE
  4568. tolua_lerror:
  4569. tolua_error(tolua_S,"#ferror in function 'GetIntRect'.",&tolua_err);
  4570. return 0;
  4571. #endif
  4572. }
  4573. #endif //#ifndef TOLUA_DISABLE
  4574. /* method: VariantMapGetIntVector2 of class VariantMap */
  4575. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_GetIntVector200
  4576. static int tolua_Core_VariantMap_GetIntVector200(lua_State* tolua_S)
  4577. {
  4578. #ifndef TOLUA_RELEASE
  4579. tolua_Error tolua_err;
  4580. if (
  4581. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4582. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4583. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4584. )
  4585. goto tolua_lerror;
  4586. else
  4587. #endif
  4588. {
  4589. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4590. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4591. #ifndef TOLUA_RELEASE
  4592. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapGetIntVector2'", NULL);
  4593. #endif
  4594. {
  4595. tolua_outside const IntVector2& tolua_ret = (tolua_outside const IntVector2&) VariantMapGetIntVector2(self,key);
  4596. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  4597. }
  4598. }
  4599. return 1;
  4600. #ifndef TOLUA_RELEASE
  4601. tolua_lerror:
  4602. tolua_error(tolua_S,"#ferror in function 'GetIntVector2'.",&tolua_err);
  4603. return 0;
  4604. #endif
  4605. }
  4606. #endif //#ifndef TOLUA_DISABLE
  4607. /* method: VariantMapSetInt of class VariantMap */
  4608. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_SetInt00
  4609. static int tolua_Core_VariantMap_SetInt00(lua_State* tolua_S)
  4610. {
  4611. #ifndef TOLUA_RELEASE
  4612. tolua_Error tolua_err;
  4613. if (
  4614. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4615. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4616. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  4617. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4618. )
  4619. goto tolua_lerror;
  4620. else
  4621. #endif
  4622. {
  4623. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4624. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4625. int value = ((int) tolua_tonumber(tolua_S,3,0));
  4626. #ifndef TOLUA_RELEASE
  4627. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapSetInt'", NULL);
  4628. #endif
  4629. {
  4630. VariantMapSetInt(self,key,value);
  4631. }
  4632. }
  4633. return 0;
  4634. #ifndef TOLUA_RELEASE
  4635. tolua_lerror:
  4636. tolua_error(tolua_S,"#ferror in function 'SetInt'.",&tolua_err);
  4637. return 0;
  4638. #endif
  4639. }
  4640. #endif //#ifndef TOLUA_DISABLE
  4641. /* method: VariantMapSetBool of class VariantMap */
  4642. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_SetBool00
  4643. static int tolua_Core_VariantMap_SetBool00(lua_State* tolua_S)
  4644. {
  4645. #ifndef TOLUA_RELEASE
  4646. tolua_Error tolua_err;
  4647. if (
  4648. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4649. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4650. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  4651. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4652. )
  4653. goto tolua_lerror;
  4654. else
  4655. #endif
  4656. {
  4657. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4658. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4659. bool value = ((bool) tolua_toboolean(tolua_S,3,0));
  4660. #ifndef TOLUA_RELEASE
  4661. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapSetBool'", NULL);
  4662. #endif
  4663. {
  4664. VariantMapSetBool(self,key,value);
  4665. }
  4666. }
  4667. return 0;
  4668. #ifndef TOLUA_RELEASE
  4669. tolua_lerror:
  4670. tolua_error(tolua_S,"#ferror in function 'SetBool'.",&tolua_err);
  4671. return 0;
  4672. #endif
  4673. }
  4674. #endif //#ifndef TOLUA_DISABLE
  4675. /* method: VariantMapSetFloat of class VariantMap */
  4676. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_SetFloat00
  4677. static int tolua_Core_VariantMap_SetFloat00(lua_State* tolua_S)
  4678. {
  4679. #ifndef TOLUA_RELEASE
  4680. tolua_Error tolua_err;
  4681. if (
  4682. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4683. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4684. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  4685. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4686. )
  4687. goto tolua_lerror;
  4688. else
  4689. #endif
  4690. {
  4691. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4692. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4693. float value = ((float) tolua_tonumber(tolua_S,3,0));
  4694. #ifndef TOLUA_RELEASE
  4695. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapSetFloat'", NULL);
  4696. #endif
  4697. {
  4698. VariantMapSetFloat(self,key,value);
  4699. }
  4700. }
  4701. return 0;
  4702. #ifndef TOLUA_RELEASE
  4703. tolua_lerror:
  4704. tolua_error(tolua_S,"#ferror in function 'SetFloat'.",&tolua_err);
  4705. return 0;
  4706. #endif
  4707. }
  4708. #endif //#ifndef TOLUA_DISABLE
  4709. /* method: VariantMapSetVector2 of class VariantMap */
  4710. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_SetVector200
  4711. static int tolua_Core_VariantMap_SetVector200(lua_State* tolua_S)
  4712. {
  4713. #ifndef TOLUA_RELEASE
  4714. tolua_Error tolua_err;
  4715. if (
  4716. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4717. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4718. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector2",0,&tolua_err)) ||
  4719. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4720. )
  4721. goto tolua_lerror;
  4722. else
  4723. #endif
  4724. {
  4725. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4726. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4727. const Vector2* value = ((const Vector2*) tolua_tousertype(tolua_S,3,0));
  4728. #ifndef TOLUA_RELEASE
  4729. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapSetVector2'", NULL);
  4730. #endif
  4731. {
  4732. VariantMapSetVector2(self,key,*value);
  4733. }
  4734. }
  4735. return 0;
  4736. #ifndef TOLUA_RELEASE
  4737. tolua_lerror:
  4738. tolua_error(tolua_S,"#ferror in function 'SetVector2'.",&tolua_err);
  4739. return 0;
  4740. #endif
  4741. }
  4742. #endif //#ifndef TOLUA_DISABLE
  4743. /* method: VariantMapSetVector3 of class VariantMap */
  4744. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_SetVector300
  4745. static int tolua_Core_VariantMap_SetVector300(lua_State* tolua_S)
  4746. {
  4747. #ifndef TOLUA_RELEASE
  4748. tolua_Error tolua_err;
  4749. if (
  4750. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4751. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4752. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
  4753. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4754. )
  4755. goto tolua_lerror;
  4756. else
  4757. #endif
  4758. {
  4759. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4760. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4761. const Vector3* value = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
  4762. #ifndef TOLUA_RELEASE
  4763. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapSetVector3'", NULL);
  4764. #endif
  4765. {
  4766. VariantMapSetVector3(self,key,*value);
  4767. }
  4768. }
  4769. return 0;
  4770. #ifndef TOLUA_RELEASE
  4771. tolua_lerror:
  4772. tolua_error(tolua_S,"#ferror in function 'SetVector3'.",&tolua_err);
  4773. return 0;
  4774. #endif
  4775. }
  4776. #endif //#ifndef TOLUA_DISABLE
  4777. /* method: VariantMapSetVector4 of class VariantMap */
  4778. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_SetVector400
  4779. static int tolua_Core_VariantMap_SetVector400(lua_State* tolua_S)
  4780. {
  4781. #ifndef TOLUA_RELEASE
  4782. tolua_Error tolua_err;
  4783. if (
  4784. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4785. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4786. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector4",0,&tolua_err)) ||
  4787. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4788. )
  4789. goto tolua_lerror;
  4790. else
  4791. #endif
  4792. {
  4793. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4794. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4795. const Vector4* value = ((const Vector4*) tolua_tousertype(tolua_S,3,0));
  4796. #ifndef TOLUA_RELEASE
  4797. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapSetVector4'", NULL);
  4798. #endif
  4799. {
  4800. VariantMapSetVector4(self,key,*value);
  4801. }
  4802. }
  4803. return 0;
  4804. #ifndef TOLUA_RELEASE
  4805. tolua_lerror:
  4806. tolua_error(tolua_S,"#ferror in function 'SetVector4'.",&tolua_err);
  4807. return 0;
  4808. #endif
  4809. }
  4810. #endif //#ifndef TOLUA_DISABLE
  4811. /* method: VariantMapSetQuaternion of class VariantMap */
  4812. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_SetQuaternion00
  4813. static int tolua_Core_VariantMap_SetQuaternion00(lua_State* tolua_S)
  4814. {
  4815. #ifndef TOLUA_RELEASE
  4816. tolua_Error tolua_err;
  4817. if (
  4818. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4819. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4820. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Quaternion",0,&tolua_err)) ||
  4821. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4822. )
  4823. goto tolua_lerror;
  4824. else
  4825. #endif
  4826. {
  4827. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4828. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4829. const Quaternion* value = ((const Quaternion*) tolua_tousertype(tolua_S,3,0));
  4830. #ifndef TOLUA_RELEASE
  4831. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapSetQuaternion'", NULL);
  4832. #endif
  4833. {
  4834. VariantMapSetQuaternion(self,key,*value);
  4835. }
  4836. }
  4837. return 0;
  4838. #ifndef TOLUA_RELEASE
  4839. tolua_lerror:
  4840. tolua_error(tolua_S,"#ferror in function 'SetQuaternion'.",&tolua_err);
  4841. return 0;
  4842. #endif
  4843. }
  4844. #endif //#ifndef TOLUA_DISABLE
  4845. /* method: VariantMapSetColor of class VariantMap */
  4846. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_SetColor00
  4847. static int tolua_Core_VariantMap_SetColor00(lua_State* tolua_S)
  4848. {
  4849. #ifndef TOLUA_RELEASE
  4850. tolua_Error tolua_err;
  4851. if (
  4852. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4853. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4854. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  4855. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4856. )
  4857. goto tolua_lerror;
  4858. else
  4859. #endif
  4860. {
  4861. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4862. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4863. const Color* value = ((const Color*) tolua_tousertype(tolua_S,3,0));
  4864. #ifndef TOLUA_RELEASE
  4865. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapSetColor'", NULL);
  4866. #endif
  4867. {
  4868. VariantMapSetColor(self,key,*value);
  4869. }
  4870. }
  4871. return 0;
  4872. #ifndef TOLUA_RELEASE
  4873. tolua_lerror:
  4874. tolua_error(tolua_S,"#ferror in function 'SetColor'.",&tolua_err);
  4875. return 0;
  4876. #endif
  4877. }
  4878. #endif //#ifndef TOLUA_DISABLE
  4879. /* method: VariantMapSetString of class VariantMap */
  4880. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_SetString00
  4881. static int tolua_Core_VariantMap_SetString00(lua_State* tolua_S)
  4882. {
  4883. #ifndef TOLUA_RELEASE
  4884. tolua_Error tolua_err;
  4885. if (
  4886. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4887. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4888. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const String",0,&tolua_err)) ||
  4889. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4890. )
  4891. goto tolua_lerror;
  4892. else
  4893. #endif
  4894. {
  4895. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4896. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4897. const String* value = ((const String*) tolua_tousertype(tolua_S,3,0));
  4898. #ifndef TOLUA_RELEASE
  4899. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapSetString'", NULL);
  4900. #endif
  4901. {
  4902. VariantMapSetString(self,key,*value);
  4903. }
  4904. }
  4905. return 0;
  4906. #ifndef TOLUA_RELEASE
  4907. tolua_lerror:
  4908. tolua_error(tolua_S,"#ferror in function 'SetString'.",&tolua_err);
  4909. return 0;
  4910. #endif
  4911. }
  4912. #endif //#ifndef TOLUA_DISABLE
  4913. /* method: VariantMapSetPtr of class VariantMap */
  4914. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_SetPtr00
  4915. static int tolua_Core_VariantMap_SetPtr00(lua_State* tolua_S)
  4916. {
  4917. #ifndef TOLUA_RELEASE
  4918. tolua_Error tolua_err;
  4919. if (
  4920. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4921. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4922. !tolua_isuserdata(tolua_S,3,0,&tolua_err) ||
  4923. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4924. )
  4925. goto tolua_lerror;
  4926. else
  4927. #endif
  4928. {
  4929. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4930. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4931. const void* value = ((const void*) tolua_touserdata(tolua_S,3,0));
  4932. #ifndef TOLUA_RELEASE
  4933. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapSetPtr'", NULL);
  4934. #endif
  4935. {
  4936. VariantMapSetPtr(self,key,value);
  4937. tolua_pushuserdata(tolua_S,(void*)value);
  4938. }
  4939. }
  4940. return 1;
  4941. #ifndef TOLUA_RELEASE
  4942. tolua_lerror:
  4943. tolua_error(tolua_S,"#ferror in function 'SetPtr'.",&tolua_err);
  4944. return 0;
  4945. #endif
  4946. }
  4947. #endif //#ifndef TOLUA_DISABLE
  4948. /* method: VariantMapSetResourceRef of class VariantMap */
  4949. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_SetResourceRef00
  4950. static int tolua_Core_VariantMap_SetResourceRef00(lua_State* tolua_S)
  4951. {
  4952. #ifndef TOLUA_RELEASE
  4953. tolua_Error tolua_err;
  4954. if (
  4955. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4956. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4957. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const ResourceRef",0,&tolua_err)) ||
  4958. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4959. )
  4960. goto tolua_lerror;
  4961. else
  4962. #endif
  4963. {
  4964. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4965. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  4966. const ResourceRef* value = ((const ResourceRef*) tolua_tousertype(tolua_S,3,0));
  4967. #ifndef TOLUA_RELEASE
  4968. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapSetResourceRef'", NULL);
  4969. #endif
  4970. {
  4971. VariantMapSetResourceRef(self,key,*value);
  4972. }
  4973. }
  4974. return 0;
  4975. #ifndef TOLUA_RELEASE
  4976. tolua_lerror:
  4977. tolua_error(tolua_S,"#ferror in function 'SetResourceRef'.",&tolua_err);
  4978. return 0;
  4979. #endif
  4980. }
  4981. #endif //#ifndef TOLUA_DISABLE
  4982. /* method: VariantMapSetResourceRefList of class VariantMap */
  4983. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_SetResourceRefList00
  4984. static int tolua_Core_VariantMap_SetResourceRefList00(lua_State* tolua_S)
  4985. {
  4986. #ifndef TOLUA_RELEASE
  4987. tolua_Error tolua_err;
  4988. if (
  4989. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  4990. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  4991. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const ResourceRefList",0,&tolua_err)) ||
  4992. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4993. )
  4994. goto tolua_lerror;
  4995. else
  4996. #endif
  4997. {
  4998. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  4999. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  5000. const ResourceRefList* value = ((const ResourceRefList*) tolua_tousertype(tolua_S,3,0));
  5001. #ifndef TOLUA_RELEASE
  5002. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapSetResourceRefList'", NULL);
  5003. #endif
  5004. {
  5005. VariantMapSetResourceRefList(self,key,*value);
  5006. }
  5007. }
  5008. return 0;
  5009. #ifndef TOLUA_RELEASE
  5010. tolua_lerror:
  5011. tolua_error(tolua_S,"#ferror in function 'SetResourceRefList'.",&tolua_err);
  5012. return 0;
  5013. #endif
  5014. }
  5015. #endif //#ifndef TOLUA_DISABLE
  5016. /* method: VariantMapSetIntRect of class VariantMap */
  5017. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_SetIntRect00
  5018. static int tolua_Core_VariantMap_SetIntRect00(lua_State* tolua_S)
  5019. {
  5020. #ifndef TOLUA_RELEASE
  5021. tolua_Error tolua_err;
  5022. if (
  5023. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  5024. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  5025. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const IntRect",0,&tolua_err)) ||
  5026. !tolua_isnoobj(tolua_S,4,&tolua_err)
  5027. )
  5028. goto tolua_lerror;
  5029. else
  5030. #endif
  5031. {
  5032. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  5033. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  5034. const IntRect* value = ((const IntRect*) tolua_tousertype(tolua_S,3,0));
  5035. #ifndef TOLUA_RELEASE
  5036. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapSetIntRect'", NULL);
  5037. #endif
  5038. {
  5039. VariantMapSetIntRect(self,key,*value);
  5040. }
  5041. }
  5042. return 0;
  5043. #ifndef TOLUA_RELEASE
  5044. tolua_lerror:
  5045. tolua_error(tolua_S,"#ferror in function 'SetIntRect'.",&tolua_err);
  5046. return 0;
  5047. #endif
  5048. }
  5049. #endif //#ifndef TOLUA_DISABLE
  5050. /* method: VariantMapSetIntVector2 of class VariantMap */
  5051. #ifndef TOLUA_DISABLE_tolua_Core_VariantMap_SetIntVector200
  5052. static int tolua_Core_VariantMap_SetIntVector200(lua_State* tolua_S)
  5053. {
  5054. #ifndef TOLUA_RELEASE
  5055. tolua_Error tolua_err;
  5056. if (
  5057. !tolua_isusertype(tolua_S,1,"VariantMap",0,&tolua_err) ||
  5058. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  5059. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const IntVector2",0,&tolua_err)) ||
  5060. !tolua_isnoobj(tolua_S,4,&tolua_err)
  5061. )
  5062. goto tolua_lerror;
  5063. else
  5064. #endif
  5065. {
  5066. VariantMap* self = (VariantMap*) tolua_tousertype(tolua_S,1,0);
  5067. const char* key = ((const char*) tolua_tostring(tolua_S,2,0));
  5068. const IntVector2* value = ((const IntVector2*) tolua_tousertype(tolua_S,3,0));
  5069. #ifndef TOLUA_RELEASE
  5070. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'VariantMapSetIntVector2'", NULL);
  5071. #endif
  5072. {
  5073. VariantMapSetIntVector2(self,key,*value);
  5074. }
  5075. }
  5076. return 0;
  5077. #ifndef TOLUA_RELEASE
  5078. tolua_lerror:
  5079. tolua_error(tolua_S,"#ferror in function 'SetIntVector2'.",&tolua_err);
  5080. return 0;
  5081. #endif
  5082. }
  5083. #endif //#ifndef TOLUA_DISABLE
  5084. /* method: new of class Timer */
  5085. #ifndef TOLUA_DISABLE_tolua_Core_Timer_new00
  5086. static int tolua_Core_Timer_new00(lua_State* tolua_S)
  5087. {
  5088. #ifndef TOLUA_RELEASE
  5089. tolua_Error tolua_err;
  5090. if (
  5091. !tolua_isusertable(tolua_S,1,"Timer",0,&tolua_err) ||
  5092. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5093. )
  5094. goto tolua_lerror;
  5095. else
  5096. #endif
  5097. {
  5098. {
  5099. Timer* tolua_ret = (Timer*) Mtolua_new((Timer)());
  5100. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Timer");
  5101. }
  5102. }
  5103. return 1;
  5104. #ifndef TOLUA_RELEASE
  5105. tolua_lerror:
  5106. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  5107. return 0;
  5108. #endif
  5109. }
  5110. #endif //#ifndef TOLUA_DISABLE
  5111. /* method: new_local of class Timer */
  5112. #ifndef TOLUA_DISABLE_tolua_Core_Timer_new00_local
  5113. static int tolua_Core_Timer_new00_local(lua_State* tolua_S)
  5114. {
  5115. #ifndef TOLUA_RELEASE
  5116. tolua_Error tolua_err;
  5117. if (
  5118. !tolua_isusertable(tolua_S,1,"Timer",0,&tolua_err) ||
  5119. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5120. )
  5121. goto tolua_lerror;
  5122. else
  5123. #endif
  5124. {
  5125. {
  5126. Timer* tolua_ret = (Timer*) Mtolua_new((Timer)());
  5127. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Timer");
  5128. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5129. }
  5130. }
  5131. return 1;
  5132. #ifndef TOLUA_RELEASE
  5133. tolua_lerror:
  5134. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  5135. return 0;
  5136. #endif
  5137. }
  5138. #endif //#ifndef TOLUA_DISABLE
  5139. /* method: GetMSec of class Timer */
  5140. #ifndef TOLUA_DISABLE_tolua_Core_Timer_GetMSec00
  5141. static int tolua_Core_Timer_GetMSec00(lua_State* tolua_S)
  5142. {
  5143. #ifndef TOLUA_RELEASE
  5144. tolua_Error tolua_err;
  5145. if (
  5146. !tolua_isusertype(tolua_S,1,"Timer",0,&tolua_err) ||
  5147. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  5148. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5149. )
  5150. goto tolua_lerror;
  5151. else
  5152. #endif
  5153. {
  5154. Timer* self = (Timer*) tolua_tousertype(tolua_S,1,0);
  5155. bool reset = ((bool) tolua_toboolean(tolua_S,2,0));
  5156. #ifndef TOLUA_RELEASE
  5157. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMSec'", NULL);
  5158. #endif
  5159. {
  5160. unsigned tolua_ret = (unsigned) self->GetMSec(reset);
  5161. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5162. }
  5163. }
  5164. return 1;
  5165. #ifndef TOLUA_RELEASE
  5166. tolua_lerror:
  5167. tolua_error(tolua_S,"#ferror in function 'GetMSec'.",&tolua_err);
  5168. return 0;
  5169. #endif
  5170. }
  5171. #endif //#ifndef TOLUA_DISABLE
  5172. /* method: Reset of class Timer */
  5173. #ifndef TOLUA_DISABLE_tolua_Core_Timer_Reset00
  5174. static int tolua_Core_Timer_Reset00(lua_State* tolua_S)
  5175. {
  5176. #ifndef TOLUA_RELEASE
  5177. tolua_Error tolua_err;
  5178. if (
  5179. !tolua_isusertype(tolua_S,1,"Timer",0,&tolua_err) ||
  5180. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5181. )
  5182. goto tolua_lerror;
  5183. else
  5184. #endif
  5185. {
  5186. Timer* self = (Timer*) tolua_tousertype(tolua_S,1,0);
  5187. #ifndef TOLUA_RELEASE
  5188. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Reset'", NULL);
  5189. #endif
  5190. {
  5191. self->Reset();
  5192. }
  5193. }
  5194. return 0;
  5195. #ifndef TOLUA_RELEASE
  5196. tolua_lerror:
  5197. tolua_error(tolua_S,"#ferror in function 'Reset'.",&tolua_err);
  5198. return 0;
  5199. #endif
  5200. }
  5201. #endif //#ifndef TOLUA_DISABLE
  5202. /* method: GetFrameNumber of class Time */
  5203. #ifndef TOLUA_DISABLE_tolua_Core_Time_GetFrameNumber00
  5204. static int tolua_Core_Time_GetFrameNumber00(lua_State* tolua_S)
  5205. {
  5206. #ifndef TOLUA_RELEASE
  5207. tolua_Error tolua_err;
  5208. if (
  5209. !tolua_isusertype(tolua_S,1,"const Time",0,&tolua_err) ||
  5210. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5211. )
  5212. goto tolua_lerror;
  5213. else
  5214. #endif
  5215. {
  5216. const Time* self = (const Time*) tolua_tousertype(tolua_S,1,0);
  5217. #ifndef TOLUA_RELEASE
  5218. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFrameNumber'", NULL);
  5219. #endif
  5220. {
  5221. unsigned tolua_ret = (unsigned) self->GetFrameNumber();
  5222. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5223. }
  5224. }
  5225. return 1;
  5226. #ifndef TOLUA_RELEASE
  5227. tolua_lerror:
  5228. tolua_error(tolua_S,"#ferror in function 'GetFrameNumber'.",&tolua_err);
  5229. return 0;
  5230. #endif
  5231. }
  5232. #endif //#ifndef TOLUA_DISABLE
  5233. /* method: GetTimeStep of class Time */
  5234. #ifndef TOLUA_DISABLE_tolua_Core_Time_GetTimeStep00
  5235. static int tolua_Core_Time_GetTimeStep00(lua_State* tolua_S)
  5236. {
  5237. #ifndef TOLUA_RELEASE
  5238. tolua_Error tolua_err;
  5239. if (
  5240. !tolua_isusertype(tolua_S,1,"const Time",0,&tolua_err) ||
  5241. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5242. )
  5243. goto tolua_lerror;
  5244. else
  5245. #endif
  5246. {
  5247. const Time* self = (const Time*) tolua_tousertype(tolua_S,1,0);
  5248. #ifndef TOLUA_RELEASE
  5249. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTimeStep'", NULL);
  5250. #endif
  5251. {
  5252. float tolua_ret = (float) self->GetTimeStep();
  5253. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5254. }
  5255. }
  5256. return 1;
  5257. #ifndef TOLUA_RELEASE
  5258. tolua_lerror:
  5259. tolua_error(tolua_S,"#ferror in function 'GetTimeStep'.",&tolua_err);
  5260. return 0;
  5261. #endif
  5262. }
  5263. #endif //#ifndef TOLUA_DISABLE
  5264. /* method: GetTimerPeriod of class Time */
  5265. #ifndef TOLUA_DISABLE_tolua_Core_Time_GetTimerPeriod00
  5266. static int tolua_Core_Time_GetTimerPeriod00(lua_State* tolua_S)
  5267. {
  5268. #ifndef TOLUA_RELEASE
  5269. tolua_Error tolua_err;
  5270. if (
  5271. !tolua_isusertype(tolua_S,1,"Time",0,&tolua_err) ||
  5272. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5273. )
  5274. goto tolua_lerror;
  5275. else
  5276. #endif
  5277. {
  5278. Time* self = (Time*) tolua_tousertype(tolua_S,1,0);
  5279. #ifndef TOLUA_RELEASE
  5280. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTimerPeriod'", NULL);
  5281. #endif
  5282. {
  5283. unsigned tolua_ret = (unsigned) self->GetTimerPeriod();
  5284. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5285. }
  5286. }
  5287. return 1;
  5288. #ifndef TOLUA_RELEASE
  5289. tolua_lerror:
  5290. tolua_error(tolua_S,"#ferror in function 'GetTimerPeriod'.",&tolua_err);
  5291. return 0;
  5292. #endif
  5293. }
  5294. #endif //#ifndef TOLUA_DISABLE
  5295. /* method: GetElapsedTime of class Time */
  5296. #ifndef TOLUA_DISABLE_tolua_Core_Time_GetElapsedTime00
  5297. static int tolua_Core_Time_GetElapsedTime00(lua_State* tolua_S)
  5298. {
  5299. #ifndef TOLUA_RELEASE
  5300. tolua_Error tolua_err;
  5301. if (
  5302. !tolua_isusertype(tolua_S,1,"Time",0,&tolua_err) ||
  5303. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5304. )
  5305. goto tolua_lerror;
  5306. else
  5307. #endif
  5308. {
  5309. Time* self = (Time*) tolua_tousertype(tolua_S,1,0);
  5310. #ifndef TOLUA_RELEASE
  5311. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetElapsedTime'", NULL);
  5312. #endif
  5313. {
  5314. float tolua_ret = (float) self->GetElapsedTime();
  5315. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5316. }
  5317. }
  5318. return 1;
  5319. #ifndef TOLUA_RELEASE
  5320. tolua_lerror:
  5321. tolua_error(tolua_S,"#ferror in function 'GetElapsedTime'.",&tolua_err);
  5322. return 0;
  5323. #endif
  5324. }
  5325. #endif //#ifndef TOLUA_DISABLE
  5326. /* function: GetTime */
  5327. #ifndef TOLUA_DISABLE_tolua_Core_GetTime00
  5328. static int tolua_Core_GetTime00(lua_State* tolua_S)
  5329. {
  5330. #ifndef TOLUA_RELEASE
  5331. tolua_Error tolua_err;
  5332. if (
  5333. !tolua_isnoobj(tolua_S,1,&tolua_err)
  5334. )
  5335. goto tolua_lerror;
  5336. else
  5337. #endif
  5338. {
  5339. {
  5340. Time* tolua_ret = (Time*) GetTime();
  5341. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Time");
  5342. }
  5343. }
  5344. return 1;
  5345. #ifndef TOLUA_RELEASE
  5346. tolua_lerror:
  5347. tolua_error(tolua_S,"#ferror in function 'GetTime'.",&tolua_err);
  5348. return 0;
  5349. #endif
  5350. }
  5351. #endif //#ifndef TOLUA_DISABLE
  5352. /* Open function */
  5353. TOLUA_API int tolua_Core_open (lua_State* tolua_S)
  5354. {
  5355. tolua_open(tolua_S);
  5356. tolua_reg_types(tolua_S);
  5357. tolua_module(tolua_S,NULL,0);
  5358. tolua_beginmodule(tolua_S,NULL);
  5359. tolua_function(tolua_S,"ErrorDialog",tolua_Core_ErrorDialog00);
  5360. tolua_function(tolua_S,"ErrorExit",tolua_Core_ErrorExit00);
  5361. tolua_function(tolua_S,"OpenConsoleWindow",tolua_Core_OpenConsoleWindow00);
  5362. tolua_function(tolua_S,"PrintLine",tolua_Core_PrintLine00);
  5363. tolua_function(tolua_S,"GetPlatform",tolua_Core_GetPlatform00);
  5364. tolua_function(tolua_S,"GetNumPhysicalCPUs",tolua_Core_GetNumPhysicalCPUs00);
  5365. tolua_function(tolua_S,"GetNumLogicalCPUs",tolua_Core_GetNumLogicalCPUs00);
  5366. tolua_function(tolua_S,"ToBool",tolua_Core_ToBool00);
  5367. tolua_function(tolua_S,"ToBool",tolua_Core_ToBool01);
  5368. tolua_function(tolua_S,"ToFloat",tolua_Core_ToFloat00);
  5369. tolua_function(tolua_S,"ToFloat",tolua_Core_ToFloat01);
  5370. tolua_function(tolua_S,"ToInt",tolua_Core_ToInt00);
  5371. tolua_function(tolua_S,"ToInt",tolua_Core_ToInt01);
  5372. tolua_function(tolua_S,"ToUInt",tolua_Core_ToUInt00);
  5373. tolua_function(tolua_S,"ToUInt",tolua_Core_ToUInt01);
  5374. tolua_function(tolua_S,"ToColor",tolua_Core_ToColor00);
  5375. tolua_function(tolua_S,"ToColor",tolua_Core_ToColor01);
  5376. tolua_function(tolua_S,"ToIntRect",tolua_Core_ToIntRect00);
  5377. tolua_function(tolua_S,"ToIntRect",tolua_Core_ToIntRect01);
  5378. tolua_function(tolua_S,"ToIntVector2",tolua_Core_ToIntVector200);
  5379. tolua_function(tolua_S,"ToIntVector2",tolua_Core_ToIntVector201);
  5380. tolua_function(tolua_S,"ToQuaternion",tolua_Core_ToQuaternion00);
  5381. tolua_function(tolua_S,"ToQuaternion",tolua_Core_ToQuaternion01);
  5382. tolua_function(tolua_S,"ToRect",tolua_Core_ToRect00);
  5383. tolua_function(tolua_S,"ToRect",tolua_Core_ToRect01);
  5384. tolua_function(tolua_S,"ToVector2",tolua_Core_ToVector200);
  5385. tolua_function(tolua_S,"ToVector2",tolua_Core_ToVector201);
  5386. tolua_function(tolua_S,"ToVector3",tolua_Core_ToVector300);
  5387. tolua_function(tolua_S,"ToVector3",tolua_Core_ToVector301);
  5388. tolua_function(tolua_S,"ToVector4",tolua_Core_ToVector400);
  5389. tolua_function(tolua_S,"ToVector4",tolua_Core_ToVector401);
  5390. tolua_function(tolua_S,"ToString",tolua_Core_ToString00);
  5391. tolua_function(tolua_S,"ToStringHex",tolua_Core_ToStringHex00);
  5392. tolua_function(tolua_S,"IsAlpha",tolua_Core_IsAlpha00);
  5393. tolua_function(tolua_S,"IsDigit",tolua_Core_IsDigit00);
  5394. tolua_constant(tolua_S,"VAR_NONE",VAR_NONE);
  5395. tolua_constant(tolua_S,"VAR_INT",VAR_INT);
  5396. tolua_constant(tolua_S,"VAR_BOOL",VAR_BOOL);
  5397. tolua_constant(tolua_S,"VAR_FLOAT",VAR_FLOAT);
  5398. tolua_constant(tolua_S,"VAR_VECTOR2",VAR_VECTOR2);
  5399. tolua_constant(tolua_S,"VAR_VECTOR3",VAR_VECTOR3);
  5400. tolua_constant(tolua_S,"VAR_VECTOR4",VAR_VECTOR4);
  5401. tolua_constant(tolua_S,"VAR_QUATERNION",VAR_QUATERNION);
  5402. tolua_constant(tolua_S,"VAR_COLOR",VAR_COLOR);
  5403. tolua_constant(tolua_S,"VAR_STRING",VAR_STRING);
  5404. tolua_constant(tolua_S,"VAR_BUFFER",VAR_BUFFER);
  5405. tolua_constant(tolua_S,"VAR_PTR",VAR_PTR);
  5406. tolua_constant(tolua_S,"VAR_RESOURCEREF",VAR_RESOURCEREF);
  5407. tolua_constant(tolua_S,"VAR_RESOURCEREFLIST",VAR_RESOURCEREFLIST);
  5408. tolua_constant(tolua_S,"VAR_VARIANTVECTOR",VAR_VARIANTVECTOR);
  5409. tolua_constant(tolua_S,"VAR_VARIANTMAP",VAR_VARIANTMAP);
  5410. tolua_constant(tolua_S,"VAR_INTRECT",VAR_INTRECT);
  5411. tolua_constant(tolua_S,"VAR_INTVECTOR2",VAR_INTVECTOR2);
  5412. tolua_constant(tolua_S,"MAX_VAR_TYPES",MAX_VAR_TYPES);
  5413. #ifdef __cplusplus
  5414. tolua_cclass(tolua_S,"ResourceRef","ResourceRef","",tolua_collect_ResourceRef);
  5415. #else
  5416. tolua_cclass(tolua_S,"ResourceRef","ResourceRef","",NULL);
  5417. #endif
  5418. tolua_beginmodule(tolua_S,"ResourceRef");
  5419. tolua_function(tolua_S,"new",tolua_Core_ResourceRef_new00);
  5420. tolua_function(tolua_S,"new_local",tolua_Core_ResourceRef_new00_local);
  5421. tolua_function(tolua_S,".call",tolua_Core_ResourceRef_new00_local);
  5422. tolua_function(tolua_S,"new",tolua_Core_ResourceRef_new01);
  5423. tolua_function(tolua_S,"new_local",tolua_Core_ResourceRef_new01_local);
  5424. tolua_function(tolua_S,".call",tolua_Core_ResourceRef_new01_local);
  5425. tolua_function(tolua_S,"new",tolua_Core_ResourceRef_new02);
  5426. tolua_function(tolua_S,"new_local",tolua_Core_ResourceRef_new02_local);
  5427. tolua_function(tolua_S,".call",tolua_Core_ResourceRef_new02_local);
  5428. tolua_function(tolua_S,"new",tolua_Core_ResourceRef_new03);
  5429. tolua_function(tolua_S,"new_local",tolua_Core_ResourceRef_new03_local);
  5430. tolua_function(tolua_S,".call",tolua_Core_ResourceRef_new03_local);
  5431. tolua_variable(tolua_S,"type",tolua_get_ResourceRef_type,tolua_set_ResourceRef_type);
  5432. tolua_variable(tolua_S,"id",tolua_get_ResourceRef_id,tolua_set_ResourceRef_id);
  5433. tolua_function(tolua_S,".eq",tolua_Core_ResourceRef__eq00);
  5434. tolua_endmodule(tolua_S);
  5435. #ifdef __cplusplus
  5436. tolua_cclass(tolua_S,"ResourceRefList","ResourceRefList","",tolua_collect_ResourceRefList);
  5437. #else
  5438. tolua_cclass(tolua_S,"ResourceRefList","ResourceRefList","",NULL);
  5439. #endif
  5440. tolua_beginmodule(tolua_S,"ResourceRefList");
  5441. tolua_function(tolua_S,"new",tolua_Core_ResourceRefList_new00);
  5442. tolua_function(tolua_S,"new_local",tolua_Core_ResourceRefList_new00_local);
  5443. tolua_function(tolua_S,".call",tolua_Core_ResourceRefList_new00_local);
  5444. tolua_function(tolua_S,"new",tolua_Core_ResourceRefList_new01);
  5445. tolua_function(tolua_S,"new_local",tolua_Core_ResourceRefList_new01_local);
  5446. tolua_function(tolua_S,".call",tolua_Core_ResourceRefList_new01_local);
  5447. tolua_variable(tolua_S,"type",tolua_get_ResourceRefList_type,tolua_set_ResourceRefList_type);
  5448. tolua_function(tolua_S,".eq",tolua_Core_ResourceRefList__eq00);
  5449. tolua_endmodule(tolua_S);
  5450. #ifdef __cplusplus
  5451. tolua_cclass(tolua_S,"Variant","Variant","",tolua_collect_Variant);
  5452. #else
  5453. tolua_cclass(tolua_S,"Variant","Variant","",NULL);
  5454. #endif
  5455. tolua_beginmodule(tolua_S,"Variant");
  5456. tolua_function(tolua_S,"new",tolua_Core_Variant_new00);
  5457. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new00_local);
  5458. tolua_function(tolua_S,".call",tolua_Core_Variant_new00_local);
  5459. tolua_function(tolua_S,"new",tolua_Core_Variant_new01);
  5460. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new01_local);
  5461. tolua_function(tolua_S,".call",tolua_Core_Variant_new01_local);
  5462. tolua_function(tolua_S,"new",tolua_Core_Variant_new02);
  5463. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new02_local);
  5464. tolua_function(tolua_S,".call",tolua_Core_Variant_new02_local);
  5465. tolua_function(tolua_S,"new",tolua_Core_Variant_new03);
  5466. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new03_local);
  5467. tolua_function(tolua_S,".call",tolua_Core_Variant_new03_local);
  5468. tolua_function(tolua_S,"new",tolua_Core_Variant_new04);
  5469. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new04_local);
  5470. tolua_function(tolua_S,".call",tolua_Core_Variant_new04_local);
  5471. tolua_function(tolua_S,"new",tolua_Core_Variant_new05);
  5472. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new05_local);
  5473. tolua_function(tolua_S,".call",tolua_Core_Variant_new05_local);
  5474. tolua_function(tolua_S,"new",tolua_Core_Variant_new06);
  5475. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new06_local);
  5476. tolua_function(tolua_S,".call",tolua_Core_Variant_new06_local);
  5477. tolua_function(tolua_S,"new",tolua_Core_Variant_new07);
  5478. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new07_local);
  5479. tolua_function(tolua_S,".call",tolua_Core_Variant_new07_local);
  5480. tolua_function(tolua_S,"new",tolua_Core_Variant_new08);
  5481. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new08_local);
  5482. tolua_function(tolua_S,".call",tolua_Core_Variant_new08_local);
  5483. tolua_function(tolua_S,"new",tolua_Core_Variant_new09);
  5484. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new09_local);
  5485. tolua_function(tolua_S,".call",tolua_Core_Variant_new09_local);
  5486. tolua_function(tolua_S,"new",tolua_Core_Variant_new10);
  5487. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new10_local);
  5488. tolua_function(tolua_S,".call",tolua_Core_Variant_new10_local);
  5489. tolua_function(tolua_S,"new",tolua_Core_Variant_new11);
  5490. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new11_local);
  5491. tolua_function(tolua_S,".call",tolua_Core_Variant_new11_local);
  5492. tolua_function(tolua_S,"new",tolua_Core_Variant_new12);
  5493. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new12_local);
  5494. tolua_function(tolua_S,".call",tolua_Core_Variant_new12_local);
  5495. tolua_function(tolua_S,"new",tolua_Core_Variant_new13);
  5496. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new13_local);
  5497. tolua_function(tolua_S,".call",tolua_Core_Variant_new13_local);
  5498. tolua_function(tolua_S,"new",tolua_Core_Variant_new14);
  5499. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new14_local);
  5500. tolua_function(tolua_S,".call",tolua_Core_Variant_new14_local);
  5501. tolua_function(tolua_S,"new",tolua_Core_Variant_new15);
  5502. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new15_local);
  5503. tolua_function(tolua_S,".call",tolua_Core_Variant_new15_local);
  5504. tolua_function(tolua_S,"new",tolua_Core_Variant_new16);
  5505. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new16_local);
  5506. tolua_function(tolua_S,".call",tolua_Core_Variant_new16_local);
  5507. tolua_function(tolua_S,"new",tolua_Core_Variant_new17);
  5508. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new17_local);
  5509. tolua_function(tolua_S,".call",tolua_Core_Variant_new17_local);
  5510. tolua_function(tolua_S,"new",tolua_Core_Variant_new18);
  5511. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new18_local);
  5512. tolua_function(tolua_S,".call",tolua_Core_Variant_new18_local);
  5513. tolua_function(tolua_S,"new",tolua_Core_Variant_new19);
  5514. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new19_local);
  5515. tolua_function(tolua_S,".call",tolua_Core_Variant_new19_local);
  5516. tolua_function(tolua_S,"new",tolua_Core_Variant_new20);
  5517. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new20_local);
  5518. tolua_function(tolua_S,".call",tolua_Core_Variant_new20_local);
  5519. tolua_function(tolua_S,"new",tolua_Core_Variant_new21);
  5520. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new21_local);
  5521. tolua_function(tolua_S,".call",tolua_Core_Variant_new21_local);
  5522. tolua_function(tolua_S,"new",tolua_Core_Variant_new22);
  5523. tolua_function(tolua_S,"new_local",tolua_Core_Variant_new22_local);
  5524. tolua_function(tolua_S,".call",tolua_Core_Variant_new22_local);
  5525. tolua_function(tolua_S,"delete",tolua_Core_Variant_delete00);
  5526. tolua_function(tolua_S,"Clear",tolua_Core_Variant_Clear00);
  5527. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq00);
  5528. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq01);
  5529. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq02);
  5530. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq03);
  5531. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq04);
  5532. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq05);
  5533. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq06);
  5534. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq07);
  5535. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq08);
  5536. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq09);
  5537. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq10);
  5538. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq11);
  5539. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq12);
  5540. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq13);
  5541. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq14);
  5542. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq15);
  5543. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq16);
  5544. tolua_function(tolua_S,".eq",tolua_Core_Variant__eq17);
  5545. tolua_function(tolua_S,"GetInt",tolua_Core_Variant_GetInt00);
  5546. tolua_function(tolua_S,"GetUInt",tolua_Core_Variant_GetUInt00);
  5547. tolua_function(tolua_S,"GetStringHash",tolua_Core_Variant_GetStringHash00);
  5548. tolua_function(tolua_S,"GetShortStringHash",tolua_Core_Variant_GetShortStringHash00);
  5549. tolua_function(tolua_S,"GetBool",tolua_Core_Variant_GetBool00);
  5550. tolua_function(tolua_S,"GetFloat",tolua_Core_Variant_GetFloat00);
  5551. tolua_function(tolua_S,"GetVector2",tolua_Core_Variant_GetVector200);
  5552. tolua_function(tolua_S,"GetVector3",tolua_Core_Variant_GetVector300);
  5553. tolua_function(tolua_S,"GetVector4",tolua_Core_Variant_GetVector400);
  5554. tolua_function(tolua_S,"GetQuaternion",tolua_Core_Variant_GetQuaternion00);
  5555. tolua_function(tolua_S,"GetColor",tolua_Core_Variant_GetColor00);
  5556. tolua_function(tolua_S,"GetString",tolua_Core_Variant_GetString00);
  5557. tolua_function(tolua_S,"GetPtr",tolua_Core_Variant_GetPtr00);
  5558. tolua_function(tolua_S,"GetResourceRef",tolua_Core_Variant_GetResourceRef00);
  5559. tolua_function(tolua_S,"GetResourceRefList",tolua_Core_Variant_GetResourceRefList00);
  5560. tolua_function(tolua_S,"GetIntRect",tolua_Core_Variant_GetIntRect00);
  5561. tolua_function(tolua_S,"GetIntVector2",tolua_Core_Variant_GetIntVector200);
  5562. tolua_function(tolua_S,"GetType",tolua_Core_Variant_GetType00);
  5563. tolua_function(tolua_S,"GetTypeName",tolua_Core_Variant_GetTypeName00);
  5564. tolua_function(tolua_S,"ToString",tolua_Core_Variant_ToString00);
  5565. tolua_function(tolua_S,"IsZero",tolua_Core_Variant_IsZero00);
  5566. tolua_function(tolua_S,"IsEmpty",tolua_Core_Variant_IsEmpty00);
  5567. tolua_endmodule(tolua_S);
  5568. tolua_cclass(tolua_S,"VariantMap","VariantMap","",NULL);
  5569. tolua_beginmodule(tolua_S,"VariantMap");
  5570. tolua_function(tolua_S,"GetInt",tolua_Core_VariantMap_GetInt00);
  5571. tolua_function(tolua_S,"GetBool",tolua_Core_VariantMap_GetBool00);
  5572. tolua_function(tolua_S,"GetFloat",tolua_Core_VariantMap_GetFloat00);
  5573. tolua_function(tolua_S,"GetVector2",tolua_Core_VariantMap_GetVector200);
  5574. tolua_function(tolua_S,"GetVector3",tolua_Core_VariantMap_GetVector300);
  5575. tolua_function(tolua_S,"GetVector4",tolua_Core_VariantMap_GetVector400);
  5576. tolua_function(tolua_S,"GetQuaternion",tolua_Core_VariantMap_GetQuaternion00);
  5577. tolua_function(tolua_S,"GetColor",tolua_Core_VariantMap_GetColor00);
  5578. tolua_function(tolua_S,"GetString",tolua_Core_VariantMap_GetString00);
  5579. tolua_function(tolua_S,"GetPtr",tolua_Core_VariantMap_GetPtr00);
  5580. tolua_function(tolua_S,"GetResourceRef",tolua_Core_VariantMap_GetResourceRef00);
  5581. tolua_function(tolua_S,"GetResourceRefList",tolua_Core_VariantMap_GetResourceRefList00);
  5582. tolua_function(tolua_S,"GetIntRect",tolua_Core_VariantMap_GetIntRect00);
  5583. tolua_function(tolua_S,"GetIntVector2",tolua_Core_VariantMap_GetIntVector200);
  5584. tolua_function(tolua_S,"SetInt",tolua_Core_VariantMap_SetInt00);
  5585. tolua_function(tolua_S,"SetBool",tolua_Core_VariantMap_SetBool00);
  5586. tolua_function(tolua_S,"SetFloat",tolua_Core_VariantMap_SetFloat00);
  5587. tolua_function(tolua_S,"SetVector2",tolua_Core_VariantMap_SetVector200);
  5588. tolua_function(tolua_S,"SetVector3",tolua_Core_VariantMap_SetVector300);
  5589. tolua_function(tolua_S,"SetVector4",tolua_Core_VariantMap_SetVector400);
  5590. tolua_function(tolua_S,"SetQuaternion",tolua_Core_VariantMap_SetQuaternion00);
  5591. tolua_function(tolua_S,"SetColor",tolua_Core_VariantMap_SetColor00);
  5592. tolua_function(tolua_S,"SetString",tolua_Core_VariantMap_SetString00);
  5593. tolua_function(tolua_S,"SetPtr",tolua_Core_VariantMap_SetPtr00);
  5594. tolua_function(tolua_S,"SetResourceRef",tolua_Core_VariantMap_SetResourceRef00);
  5595. tolua_function(tolua_S,"SetResourceRefList",tolua_Core_VariantMap_SetResourceRefList00);
  5596. tolua_function(tolua_S,"SetIntRect",tolua_Core_VariantMap_SetIntRect00);
  5597. tolua_function(tolua_S,"SetIntVector2",tolua_Core_VariantMap_SetIntVector200);
  5598. tolua_endmodule(tolua_S);
  5599. #ifdef __cplusplus
  5600. tolua_cclass(tolua_S,"Timer","Timer","",tolua_collect_Timer);
  5601. #else
  5602. tolua_cclass(tolua_S,"Timer","Timer","",NULL);
  5603. #endif
  5604. tolua_beginmodule(tolua_S,"Timer");
  5605. tolua_function(tolua_S,"new",tolua_Core_Timer_new00);
  5606. tolua_function(tolua_S,"new_local",tolua_Core_Timer_new00_local);
  5607. tolua_function(tolua_S,".call",tolua_Core_Timer_new00_local);
  5608. tolua_function(tolua_S,"GetMSec",tolua_Core_Timer_GetMSec00);
  5609. tolua_function(tolua_S,"Reset",tolua_Core_Timer_Reset00);
  5610. tolua_endmodule(tolua_S);
  5611. tolua_cclass(tolua_S,"Time","Time","Object",NULL);
  5612. tolua_beginmodule(tolua_S,"Time");
  5613. tolua_function(tolua_S,"GetFrameNumber",tolua_Core_Time_GetFrameNumber00);
  5614. tolua_function(tolua_S,"GetTimeStep",tolua_Core_Time_GetTimeStep00);
  5615. tolua_function(tolua_S,"GetTimerPeriod",tolua_Core_Time_GetTimerPeriod00);
  5616. tolua_function(tolua_S,"GetElapsedTime",tolua_Core_Time_GetElapsedTime00);
  5617. tolua_endmodule(tolua_S);
  5618. tolua_function(tolua_S,"GetTime",tolua_Core_GetTime00);
  5619. tolua_endmodule(tolua_S);
  5620. return 1;
  5621. }
  5622. #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
  5623. TOLUA_API int luaopen_Core (lua_State* tolua_S) {
  5624. return tolua_Core_open(tolua_S);
  5625. };
  5626. #endif