lua_Joint.cpp 213 KB

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