lua_Joint.cpp 230 KB

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