lua_Joint.cpp 235 KB

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