Generated_Members.h 1.7 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381
  1. // DO NOT EDIT. This file is generated
  2. #pragma once
  3. #include "../AngelScript/APITemplates.h"
  4. #include "../AngelScript/Generated_Includes.h"
  5. #include "../AngelScript/Manual.h"
  6. namespace Urho3D
  7. {
  8. // struct AllocatorBlock | File: ../Container/Allocator.h
  9. template <class T> void RegisterMembers_AllocatorBlock(asIScriptEngine* engine, const char* className)
  10. {
  11. // AllocatorNode* AllocatorBlock::free_
  12. // Not registered because pointer
  13. // AllocatorBlock* AllocatorBlock::next_
  14. // Not registered because pointer
  15. // unsigned AllocatorBlock::nodeSize_
  16. engine->RegisterObjectProperty(className, "uint nodeSize", offsetof(T, nodeSize_));
  17. // unsigned AllocatorBlock::capacity_
  18. engine->RegisterObjectProperty(className, "uint capacity", offsetof(T, capacity_));
  19. #ifdef REGISTER_MEMBERS_MANUAL_PART_AllocatorBlock
  20. REGISTER_MEMBERS_MANUAL_PART_AllocatorBlock();
  21. #endif
  22. }
  23. // struct AllocatorNode | File: ../Container/Allocator.h
  24. template <class T> void RegisterMembers_AllocatorNode(asIScriptEngine* engine, const char* className)
  25. {
  26. // AllocatorNode* AllocatorNode::next_
  27. // Not registered because pointer
  28. #ifdef REGISTER_MEMBERS_MANUAL_PART_AllocatorNode
  29. REGISTER_MEMBERS_MANUAL_PART_AllocatorNode();
  30. #endif
  31. }
  32. // struct AnimationControl | File: ../Graphics/AnimationController.h
  33. template <class T> void RegisterMembers_AnimationControl(asIScriptEngine* engine, const char* className)
  34. {
  35. // String AnimationControl::name_
  36. engine->RegisterObjectProperty(className, "String name", offsetof(T, name_));
  37. // StringHash AnimationControl::hash_
  38. engine->RegisterObjectProperty(className, "StringHash hash", offsetof(T, hash_));
  39. // float AnimationControl::speed_
  40. engine->RegisterObjectProperty(className, "float speed", offsetof(T, speed_));
  41. // float AnimationControl::targetWeight_
  42. engine->RegisterObjectProperty(className, "float targetWeight", offsetof(T, targetWeight_));
  43. // float AnimationControl::fadeTime_
  44. engine->RegisterObjectProperty(className, "float fadeTime", offsetof(T, fadeTime_));
  45. // float AnimationControl::autoFadeTime_
  46. engine->RegisterObjectProperty(className, "float autoFadeTime", offsetof(T, autoFadeTime_));
  47. // float AnimationControl::setTimeTtl_
  48. engine->RegisterObjectProperty(className, "float setTimeTtl", offsetof(T, setTimeTtl_));
  49. // float AnimationControl::setWeightTtl_
  50. engine->RegisterObjectProperty(className, "float setWeightTtl", offsetof(T, setWeightTtl_));
  51. // unsigned short AnimationControl::setTime_
  52. engine->RegisterObjectProperty(className, "uint16 setTime", offsetof(T, setTime_));
  53. // unsigned char AnimationControl::setWeight_
  54. engine->RegisterObjectProperty(className, "uint8 setWeight", offsetof(T, setWeight_));
  55. // unsigned char AnimationControl::setTimeRev_
  56. engine->RegisterObjectProperty(className, "uint8 setTimeRev", offsetof(T, setTimeRev_));
  57. // unsigned char AnimationControl::setWeightRev_
  58. engine->RegisterObjectProperty(className, "uint8 setWeightRev", offsetof(T, setWeightRev_));
  59. // bool AnimationControl::removeOnCompletion_
  60. engine->RegisterObjectProperty(className, "bool removeOnCompletion", offsetof(T, removeOnCompletion_));
  61. #ifdef REGISTER_MEMBERS_MANUAL_PART_AnimationControl
  62. REGISTER_MEMBERS_MANUAL_PART_AnimationControl();
  63. #endif
  64. }
  65. // struct AnimationKeyFrame | File: ../Graphics/Animation.h
  66. template <class T> void RegisterMembers_AnimationKeyFrame(asIScriptEngine* engine, const char* className)
  67. {
  68. // float AnimationKeyFrame::time_
  69. engine->RegisterObjectProperty(className, "float time", offsetof(T, time_));
  70. // Vector3 AnimationKeyFrame::position_
  71. engine->RegisterObjectProperty(className, "Vector3 position", offsetof(T, position_));
  72. // Quaternion AnimationKeyFrame::rotation_
  73. engine->RegisterObjectProperty(className, "Quaternion rotation", offsetof(T, rotation_));
  74. // Vector3 AnimationKeyFrame::scale_
  75. engine->RegisterObjectProperty(className, "Vector3 scale", offsetof(T, scale_));
  76. #ifdef REGISTER_MEMBERS_MANUAL_PART_AnimationKeyFrame
  77. REGISTER_MEMBERS_MANUAL_PART_AnimationKeyFrame();
  78. #endif
  79. }
  80. // struct AnimationStateTrack | File: ../Graphics/AnimationState.h
  81. template <class T> void RegisterMembers_AnimationStateTrack(asIScriptEngine* engine, const char* className)
  82. {
  83. // const AnimationTrack* AnimationStateTrack::track_
  84. // Not registered because pointer
  85. // Bone* AnimationStateTrack::bone_
  86. // Not registered because pointer
  87. // WeakPtr<Node> AnimationStateTrack::node_
  88. // Error: type "WeakPtr<Node>" can not automatically bind
  89. // float AnimationStateTrack::weight_
  90. engine->RegisterObjectProperty(className, "float weight", offsetof(T, weight_));
  91. // unsigned AnimationStateTrack::keyFrame_
  92. engine->RegisterObjectProperty(className, "uint keyFrame", offsetof(T, keyFrame_));
  93. #ifdef REGISTER_MEMBERS_MANUAL_PART_AnimationStateTrack
  94. REGISTER_MEMBERS_MANUAL_PART_AnimationStateTrack();
  95. #endif
  96. }
  97. // struct AnimationTrack | File: ../Graphics/Animation.h
  98. template <class T> void RegisterMembers_AnimationTrack(asIScriptEngine* engine, const char* className)
  99. {
  100. // AnimationKeyFrame* AnimationTrack::GetKeyFrame(unsigned index)
  101. // Error: type "AnimationKeyFrame*" can not automatically bind
  102. // void AnimationTrack::AddKeyFrame(const AnimationKeyFrame& keyFrame)
  103. engine->RegisterObjectMethod(className, "void AddKeyFrame(const AnimationKeyFrame&in)", AS_METHODPR(T, AddKeyFrame, (const AnimationKeyFrame&), void), AS_CALL_THISCALL);
  104. // bool AnimationTrack::GetKeyFrameIndex(float time, unsigned& index) const
  105. engine->RegisterObjectMethod(className, "bool GetKeyFrameIndex(float, uint&) const", AS_METHODPR(T, GetKeyFrameIndex, (float, unsigned&) const, bool), AS_CALL_THISCALL);
  106. // unsigned AnimationTrack::GetNumKeyFrames() const
  107. engine->RegisterObjectMethod(className, "uint GetNumKeyFrames() const", AS_METHODPR(T, GetNumKeyFrames, () const, unsigned), AS_CALL_THISCALL);
  108. engine->RegisterObjectMethod(className, "uint get_numKeyFrames() const", AS_METHODPR(T, GetNumKeyFrames, () const, unsigned), AS_CALL_THISCALL);
  109. // void AnimationTrack::InsertKeyFrame(unsigned index, const AnimationKeyFrame& keyFrame)
  110. engine->RegisterObjectMethod(className, "void InsertKeyFrame(uint, const AnimationKeyFrame&in)", AS_METHODPR(T, InsertKeyFrame, (unsigned, const AnimationKeyFrame&), void), AS_CALL_THISCALL);
  111. // void AnimationTrack::RemoveAllKeyFrames()
  112. engine->RegisterObjectMethod(className, "void RemoveAllKeyFrames()", AS_METHODPR(T, RemoveAllKeyFrames, (), void), AS_CALL_THISCALL);
  113. // void AnimationTrack::RemoveKeyFrame(unsigned index)
  114. engine->RegisterObjectMethod(className, "void RemoveKeyFrame(uint)", AS_METHODPR(T, RemoveKeyFrame, (unsigned), void), AS_CALL_THISCALL);
  115. // void AnimationTrack::SetKeyFrame(unsigned index, const AnimationKeyFrame& keyFrame)
  116. engine->RegisterObjectMethod(className, "void SetKeyFrame(uint, const AnimationKeyFrame&in)", AS_METHODPR(T, SetKeyFrame, (unsigned, const AnimationKeyFrame&), void), AS_CALL_THISCALL);
  117. engine->RegisterObjectMethod(className, "void set_keyFrames(uint, const AnimationKeyFrame&in)", AS_METHODPR(T, SetKeyFrame, (unsigned, const AnimationKeyFrame&), void), AS_CALL_THISCALL);
  118. // Vector<AnimationKeyFrame> AnimationTrack::keyFrames_
  119. // Error: type "Vector<AnimationKeyFrame>" can not automatically bind
  120. // String AnimationTrack::name_
  121. engine->RegisterObjectProperty(className, "String name", offsetof(T, name_));
  122. // StringHash AnimationTrack::nameHash_
  123. engine->RegisterObjectProperty(className, "StringHash nameHash", offsetof(T, nameHash_));
  124. // AnimationChannelFlags AnimationTrack::channelMask_
  125. engine->RegisterObjectProperty(className, "AnimationChannelFlags channelMask", offsetof(T, channelMask_));
  126. #ifdef REGISTER_MEMBERS_MANUAL_PART_AnimationTrack
  127. REGISTER_MEMBERS_MANUAL_PART_AnimationTrack();
  128. #endif
  129. }
  130. // struct AnimationTriggerPoint | File: ../Graphics/Animation.h
  131. template <class T> void RegisterMembers_AnimationTriggerPoint(asIScriptEngine* engine, const char* className)
  132. {
  133. // float AnimationTriggerPoint::time_
  134. engine->RegisterObjectProperty(className, "float time", offsetof(T, time_));
  135. // Variant AnimationTriggerPoint::data_
  136. engine->RegisterObjectProperty(className, "Variant data", offsetof(T, data_));
  137. #ifdef REGISTER_MEMBERS_MANUAL_PART_AnimationTriggerPoint
  138. REGISTER_MEMBERS_MANUAL_PART_AnimationTriggerPoint();
  139. #endif
  140. }
  141. // class AreaAllocator | File: ../Math/AreaAllocator.h
  142. template <class T> void RegisterMembers_AreaAllocator(asIScriptEngine* engine, const char* className)
  143. {
  144. // bool AreaAllocator::Allocate(int width, int height, int& x, int& y)
  145. engine->RegisterObjectMethod(className, "bool Allocate(int, int, int&, int&)", AS_METHODPR(T, Allocate, (int, int, int&, int&), bool), AS_CALL_THISCALL);
  146. // bool AreaAllocator::GetFastMode() const
  147. engine->RegisterObjectMethod(className, "bool GetFastMode() const", AS_METHODPR(T, GetFastMode, () const, bool), AS_CALL_THISCALL);
  148. // int AreaAllocator::GetHeight() const
  149. engine->RegisterObjectMethod(className, "int GetHeight() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  150. // int AreaAllocator::GetWidth() const
  151. engine->RegisterObjectMethod(className, "int GetWidth() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  152. // void AreaAllocator::Reset(int width, int height, int maxWidth = 0, int maxHeight = 0, bool fastMode = true)
  153. engine->RegisterObjectMethod(className, "void Reset(int, int, int = 0, int = 0, bool = true)", AS_METHODPR(T, Reset, (int, int, int, int, bool), void), AS_CALL_THISCALL);
  154. #ifdef REGISTER_MEMBERS_MANUAL_PART_AreaAllocator
  155. REGISTER_MEMBERS_MANUAL_PART_AreaAllocator();
  156. #endif
  157. }
  158. // struct AsyncProgress | File: ../Scene/Scene.h
  159. template <class T> void RegisterMembers_AsyncProgress(asIScriptEngine* engine, const char* className)
  160. {
  161. // SharedPtr<File> AsyncProgress::file_
  162. // Error: type "SharedPtr<File>" can not automatically bind
  163. // SharedPtr<XMLFile> AsyncProgress::xmlFile_
  164. // Error: type "SharedPtr<XMLFile>" can not automatically bind
  165. // SharedPtr<JSONFile> AsyncProgress::jsonFile_
  166. // Error: type "SharedPtr<JSONFile>" can not automatically bind
  167. // HashSet<StringHash> AsyncProgress::resources_
  168. // Error: type "HashSet<StringHash>" can not automatically bind
  169. // XMLElement AsyncProgress::xmlElement_
  170. engine->RegisterObjectProperty(className, "XMLElement xmlElement", offsetof(T, xmlElement_));
  171. // unsigned AsyncProgress::jsonIndex_
  172. engine->RegisterObjectProperty(className, "uint jsonIndex", offsetof(T, jsonIndex_));
  173. // LoadMode AsyncProgress::mode_
  174. engine->RegisterObjectProperty(className, "LoadMode mode", offsetof(T, mode_));
  175. // unsigned AsyncProgress::loadedResources_
  176. engine->RegisterObjectProperty(className, "uint loadedResources", offsetof(T, loadedResources_));
  177. // unsigned AsyncProgress::totalResources_
  178. engine->RegisterObjectProperty(className, "uint totalResources", offsetof(T, totalResources_));
  179. // unsigned AsyncProgress::loadedNodes_
  180. engine->RegisterObjectProperty(className, "uint loadedNodes", offsetof(T, loadedNodes_));
  181. // unsigned AsyncProgress::totalNodes_
  182. engine->RegisterObjectProperty(className, "uint totalNodes", offsetof(T, totalNodes_));
  183. #ifdef REGISTER_MEMBERS_MANUAL_PART_AsyncProgress
  184. REGISTER_MEMBERS_MANUAL_PART_AsyncProgress();
  185. #endif
  186. }
  187. // struct AttributeHandle | File: ../Core/Attribute.h
  188. template <class T> void RegisterMembers_AttributeHandle(asIScriptEngine* engine, const char* className)
  189. {
  190. // AttributeHandle& AttributeHandle::SetMetadata(StringHash key, const Variant& value)
  191. // Error: type "AttributeHandle" can not automatically bind bacause have @nobind mark
  192. #ifdef REGISTER_MEMBERS_MANUAL_PART_AttributeHandle
  193. REGISTER_MEMBERS_MANUAL_PART_AttributeHandle();
  194. #endif
  195. }
  196. // struct AttributeInfo | File: ../Core/Attribute.h
  197. template <class T> void RegisterMembers_AttributeInfo(asIScriptEngine* engine, const char* className)
  198. {
  199. // const Variant& AttributeInfo::GetMetadata(const StringHash& key) const
  200. engine->RegisterObjectMethod(className, "const Variant& GetMetadata(const StringHash&in) const", AS_METHODPR(T, GetMetadata, (const StringHash&) const, const Variant&), AS_CALL_THISCALL);
  201. // template <class T> T AttributeInfo::GetMetadata(const StringHash& key) const
  202. // Not registered because template
  203. // const char** AttributeInfo::enumNames_
  204. // Error: type "const char**" can not automatically bind
  205. // SharedPtr<AttributeAccessor> AttributeInfo::accessor_
  206. // Error: type "SharedPtr<AttributeAccessor>" can not automatically bind
  207. // void* AttributeInfo::ptr_
  208. // Not registered because pointer
  209. // VariantType AttributeInfo::type_
  210. engine->RegisterObjectProperty(className, "VariantType type", offsetof(T, type_));
  211. // String AttributeInfo::name_
  212. engine->RegisterObjectProperty(className, "String name", offsetof(T, name_));
  213. // Variant AttributeInfo::defaultValue_
  214. engine->RegisterObjectProperty(className, "Variant defaultValue", offsetof(T, defaultValue_));
  215. // AttributeModeFlags AttributeInfo::mode_
  216. engine->RegisterObjectProperty(className, "AttributeModeFlags mode", offsetof(T, mode_));
  217. // VariantMap AttributeInfo::metadata_
  218. engine->RegisterObjectProperty(className, "VariantMap metadata", offsetof(T, metadata_));
  219. #ifdef REGISTER_MEMBERS_MANUAL_PART_AttributeInfo
  220. REGISTER_MEMBERS_MANUAL_PART_AttributeInfo();
  221. #endif
  222. }
  223. // class AutoProfileBlock | File: ../Core/Profiler.h
  224. template <class T> void RegisterMembers_AutoProfileBlock(asIScriptEngine* engine, const char* className)
  225. {
  226. #ifdef REGISTER_MEMBERS_MANUAL_PART_AutoProfileBlock
  227. REGISTER_MEMBERS_MANUAL_PART_AutoProfileBlock();
  228. #endif
  229. }
  230. // struct BackgroundLoadItem | File: ../Resource/BackgroundLoader.h
  231. template <class T> void RegisterMembers_BackgroundLoadItem(asIScriptEngine* engine, const char* className)
  232. {
  233. // SharedPtr<Resource> BackgroundLoadItem::resource_
  234. // Error: type "SharedPtr<Resource>" can not automatically bind
  235. // HashSet<Pair<StringHash, StringHash>> BackgroundLoadItem::dependencies_
  236. // Error: type "HashSet<Pair<StringHash, StringHash>>" can not automatically bind
  237. // HashSet<Pair<StringHash, StringHash>> BackgroundLoadItem::dependents_
  238. // Error: type "HashSet<Pair<StringHash, StringHash>>" can not automatically bind
  239. // bool BackgroundLoadItem::sendEventOnFailure_
  240. engine->RegisterObjectProperty(className, "bool sendEventOnFailure", offsetof(T, sendEventOnFailure_));
  241. #ifdef REGISTER_MEMBERS_MANUAL_PART_BackgroundLoadItem
  242. REGISTER_MEMBERS_MANUAL_PART_BackgroundLoadItem();
  243. #endif
  244. }
  245. // struct Batch | File: ../Graphics/Batch.h
  246. template <class T> void RegisterMembers_Batch(asIScriptEngine* engine, const char* className)
  247. {
  248. // void Batch::CalculateSortKey()
  249. engine->RegisterObjectMethod(className, "void CalculateSortKey()", AS_METHODPR(T, CalculateSortKey, (), void), AS_CALL_THISCALL);
  250. // void Batch::Draw(View* view, Camera* camera, bool allowDepthWrite) const
  251. engine->RegisterObjectMethod(className, "void Draw(View@+, Camera@+, bool) const", AS_METHODPR(T, Draw, (View*, Camera*, bool) const, void), AS_CALL_THISCALL);
  252. // void Batch::Prepare(View* view, Camera* camera, bool setModelTransform, bool allowDepthWrite) const
  253. engine->RegisterObjectMethod(className, "void Prepare(View@+, Camera@+, bool, bool) const", AS_METHODPR(T, Prepare, (View*, Camera*, bool, bool) const, void), AS_CALL_THISCALL);
  254. // Geometry* Batch::geometry_
  255. // Not registered because pointer
  256. // Material* Batch::material_
  257. // Not registered because pointer
  258. // const Matrix3x4* Batch::worldTransform_
  259. // Not registered because pointer
  260. // void* Batch::instancingData_
  261. // Not registered because pointer
  262. // Zone* Batch::zone_
  263. // Not registered because pointer
  264. // LightBatchQueue* Batch::lightQueue_
  265. // Not registered because pointer
  266. // Pass* Batch::pass_
  267. // Not registered because pointer
  268. // ShaderVariation* Batch::vertexShader_
  269. // Not registered because pointer
  270. // ShaderVariation* Batch::pixelShader_
  271. // Not registered because pointer
  272. // unsigned long long Batch::sortKey_
  273. engine->RegisterObjectProperty(className, "uint64 sortKey", offsetof(T, sortKey_));
  274. // float Batch::distance_
  275. engine->RegisterObjectProperty(className, "float distance", offsetof(T, distance_));
  276. // unsigned char Batch::renderOrder_
  277. engine->RegisterObjectProperty(className, "uint8 renderOrder", offsetof(T, renderOrder_));
  278. // unsigned char Batch::lightMask_
  279. engine->RegisterObjectProperty(className, "uint8 lightMask", offsetof(T, lightMask_));
  280. // bool Batch::isBase_
  281. engine->RegisterObjectProperty(className, "bool isBase", offsetof(T, isBase_));
  282. // unsigned Batch::numWorldTransforms_
  283. engine->RegisterObjectProperty(className, "uint numWorldTransforms", offsetof(T, numWorldTransforms_));
  284. // GeometryType Batch::geometryType_
  285. engine->RegisterObjectProperty(className, "GeometryType geometryType", offsetof(T, geometryType_));
  286. #ifdef REGISTER_MEMBERS_MANUAL_PART_Batch
  287. REGISTER_MEMBERS_MANUAL_PART_Batch();
  288. #endif
  289. }
  290. // struct BatchGroupKey | File: ../Graphics/Batch.h
  291. template <class T> void RegisterMembers_BatchGroupKey(asIScriptEngine* engine, const char* className)
  292. {
  293. // bool BatchGroupKey::operator !=(const BatchGroupKey& rhs) const
  294. // Only operator == is needed
  295. // bool BatchGroupKey::operator ==(const BatchGroupKey& rhs) const
  296. engine->RegisterObjectMethod(className, "bool opEquals(const BatchGroupKey&in) const", AS_METHODPR(T, operator==, (const BatchGroupKey&) const, bool), AS_CALL_THISCALL);
  297. // unsigned BatchGroupKey::ToHash() const
  298. engine->RegisterObjectMethod(className, "uint ToHash() const", AS_METHODPR(T, ToHash, () const, unsigned), AS_CALL_THISCALL);
  299. // Zone* BatchGroupKey::zone_
  300. // Not registered because pointer
  301. // LightBatchQueue* BatchGroupKey::lightQueue_
  302. // Not registered because pointer
  303. // Pass* BatchGroupKey::pass_
  304. // Not registered because pointer
  305. // Material* BatchGroupKey::material_
  306. // Not registered because pointer
  307. // Geometry* BatchGroupKey::geometry_
  308. // Not registered because pointer
  309. // unsigned char BatchGroupKey::renderOrder_
  310. engine->RegisterObjectProperty(className, "uint8 renderOrder", offsetof(T, renderOrder_));
  311. #ifdef REGISTER_MEMBERS_MANUAL_PART_BatchGroupKey
  312. REGISTER_MEMBERS_MANUAL_PART_BatchGroupKey();
  313. #endif
  314. }
  315. // struct BatchQueue | File: ../Graphics/Batch.h
  316. template <class T> void RegisterMembers_BatchQueue(asIScriptEngine* engine, const char* className)
  317. {
  318. // void BatchQueue::SetInstancingData(void* lockedData, unsigned stride, unsigned& freeIndex)
  319. // Error: type "void*" can not automatically bind
  320. // void BatchQueue::SortFrontToBack2Pass(PODVector<Batch*>& batches)
  321. // Error: type "PODVector<Batch*>&" can not automatically bind
  322. // void BatchQueue::Clear(int maxSortedInstances)
  323. engine->RegisterObjectMethod(className, "void Clear(int)", AS_METHODPR(T, Clear, (int), void), AS_CALL_THISCALL);
  324. // void BatchQueue::Draw(View* view, Camera* camera, bool markToStencil, bool usingLightOptimization, bool allowDepthWrite) const
  325. engine->RegisterObjectMethod(className, "void Draw(View@+, Camera@+, bool, bool, bool) const", AS_METHODPR(T, Draw, (View*, Camera*, bool, bool, bool) const, void), AS_CALL_THISCALL);
  326. // unsigned BatchQueue::GetNumInstances() const
  327. engine->RegisterObjectMethod(className, "uint GetNumInstances() const", AS_METHODPR(T, GetNumInstances, () const, unsigned), AS_CALL_THISCALL);
  328. // bool BatchQueue::IsEmpty() const
  329. engine->RegisterObjectMethod(className, "bool IsEmpty() const", AS_METHODPR(T, IsEmpty, () const, bool), AS_CALL_THISCALL);
  330. // void BatchQueue::SortBackToFront()
  331. engine->RegisterObjectMethod(className, "void SortBackToFront()", AS_METHODPR(T, SortBackToFront, (), void), AS_CALL_THISCALL);
  332. // void BatchQueue::SortFrontToBack()
  333. engine->RegisterObjectMethod(className, "void SortFrontToBack()", AS_METHODPR(T, SortFrontToBack, (), void), AS_CALL_THISCALL);
  334. // HashMap<BatchGroupKey, BatchGroup> BatchQueue::batchGroups_
  335. // Error: type "HashMap<BatchGroupKey, BatchGroup>" can not automatically bind
  336. // HashMap<unsigned, unsigned> BatchQueue::shaderRemapping_
  337. // Error: type "HashMap<unsigned, unsigned>" can not automatically bind
  338. // HashMap<unsigned short, unsigned short> BatchQueue::materialRemapping_
  339. // Error: type "HashMap<unsigned short, unsigned short>" can not automatically bind
  340. // HashMap<unsigned short, unsigned short> BatchQueue::geometryRemapping_
  341. // Error: type "HashMap<unsigned short, unsigned short>" can not automatically bind
  342. // PODVector<Batch> BatchQueue::batches_
  343. // Error: type "PODVector<Batch>" can not automatically bind
  344. // PODVector<Batch*> BatchQueue::sortedBatches_
  345. // Error: type "PODVector<Batch*>" can not automatically bind
  346. // PODVector<BatchGroup*> BatchQueue::sortedBatchGroups_
  347. // Error: type "PODVector<BatchGroup*>" can not automatically bind
  348. // unsigned BatchQueue::maxSortedInstances_
  349. engine->RegisterObjectProperty(className, "uint maxSortedInstances", offsetof(T, maxSortedInstances_));
  350. // bool BatchQueue::hasExtraDefines_
  351. engine->RegisterObjectProperty(className, "bool hasExtraDefines", offsetof(T, hasExtraDefines_));
  352. // String BatchQueue::vsExtraDefines_
  353. engine->RegisterObjectProperty(className, "String vsExtraDefines", offsetof(T, vsExtraDefines_));
  354. // String BatchQueue::psExtraDefines_
  355. engine->RegisterObjectProperty(className, "String psExtraDefines", offsetof(T, psExtraDefines_));
  356. // StringHash BatchQueue::vsExtraDefinesHash_
  357. engine->RegisterObjectProperty(className, "StringHash vsExtraDefinesHash", offsetof(T, vsExtraDefinesHash_));
  358. // StringHash BatchQueue::psExtraDefinesHash_
  359. engine->RegisterObjectProperty(className, "StringHash psExtraDefinesHash", offsetof(T, psExtraDefinesHash_));
  360. #ifdef REGISTER_MEMBERS_MANUAL_PART_BatchQueue
  361. REGISTER_MEMBERS_MANUAL_PART_BatchQueue();
  362. #endif
  363. }
  364. // struct BiasParameters | File: ../Graphics/Light.h
  365. template <class T> void RegisterMembers_BiasParameters(asIScriptEngine* engine, const char* className)
  366. {
  367. // void BiasParameters::Validate()
  368. engine->RegisterObjectMethod(className, "void Validate()", AS_METHODPR(T, Validate, (), void), AS_CALL_THISCALL);
  369. // float BiasParameters::constantBias_
  370. engine->RegisterObjectProperty(className, "float constantBias", offsetof(T, constantBias_));
  371. // float BiasParameters::slopeScaledBias_
  372. engine->RegisterObjectProperty(className, "float slopeScaledBias", offsetof(T, slopeScaledBias_));
  373. // float BiasParameters::normalOffset_
  374. engine->RegisterObjectProperty(className, "float normalOffset", offsetof(T, normalOffset_));
  375. #ifdef REGISTER_MEMBERS_MANUAL_PART_BiasParameters
  376. REGISTER_MEMBERS_MANUAL_PART_BiasParameters();
  377. #endif
  378. }
  379. // struct Billboard | File: ../Graphics/BillboardSet.h
  380. template <class T> void RegisterMembers_Billboard(asIScriptEngine* engine, const char* className)
  381. {
  382. // Vector3 Billboard::position_
  383. engine->RegisterObjectProperty(className, "Vector3 position", offsetof(T, position_));
  384. // Vector2 Billboard::size_
  385. engine->RegisterObjectProperty(className, "Vector2 size", offsetof(T, size_));
  386. // Rect Billboard::uv_
  387. engine->RegisterObjectProperty(className, "Rect uv", offsetof(T, uv_));
  388. // Color Billboard::color_
  389. engine->RegisterObjectProperty(className, "Color color", offsetof(T, color_));
  390. // float Billboard::rotation_
  391. engine->RegisterObjectProperty(className, "float rotation", offsetof(T, rotation_));
  392. // Vector3 Billboard::direction_
  393. engine->RegisterObjectProperty(className, "Vector3 direction", offsetof(T, direction_));
  394. // bool Billboard::enabled_
  395. engine->RegisterObjectProperty(className, "bool enabled", offsetof(T, enabled_));
  396. // float Billboard::sortDistance_
  397. engine->RegisterObjectProperty(className, "float sortDistance", offsetof(T, sortDistance_));
  398. // float Billboard::screenScaleFactor_
  399. engine->RegisterObjectProperty(className, "float screenScaleFactor", offsetof(T, screenScaleFactor_));
  400. #ifdef REGISTER_MEMBERS_MANUAL_PART_Billboard
  401. REGISTER_MEMBERS_MANUAL_PART_Billboard();
  402. #endif
  403. }
  404. // struct Bone | File: ../Graphics/Skeleton.h
  405. template <class T> void RegisterMembers_Bone(asIScriptEngine* engine, const char* className)
  406. {
  407. // WeakPtr<Node> Bone::node_
  408. // Error: type "WeakPtr<Node>" can not automatically bind
  409. // String Bone::name_
  410. engine->RegisterObjectProperty(className, "String name", offsetof(T, name_));
  411. // StringHash Bone::nameHash_
  412. engine->RegisterObjectProperty(className, "StringHash nameHash", offsetof(T, nameHash_));
  413. // unsigned Bone::parentIndex_
  414. engine->RegisterObjectProperty(className, "uint parentIndex", offsetof(T, parentIndex_));
  415. // Vector3 Bone::initialPosition_
  416. engine->RegisterObjectProperty(className, "Vector3 initialPosition", offsetof(T, initialPosition_));
  417. // Quaternion Bone::initialRotation_
  418. engine->RegisterObjectProperty(className, "Quaternion initialRotation", offsetof(T, initialRotation_));
  419. // Vector3 Bone::initialScale_
  420. engine->RegisterObjectProperty(className, "Vector3 initialScale", offsetof(T, initialScale_));
  421. // Matrix3x4 Bone::offsetMatrix_
  422. engine->RegisterObjectProperty(className, "Matrix3x4 offsetMatrix", offsetof(T, offsetMatrix_));
  423. // bool Bone::animated_
  424. engine->RegisterObjectProperty(className, "bool animated", offsetof(T, animated_));
  425. // BoneCollisionShapeFlags Bone::collisionMask_
  426. engine->RegisterObjectProperty(className, "BoneCollisionShapeFlags collisionMask", offsetof(T, collisionMask_));
  427. // float Bone::radius_
  428. engine->RegisterObjectProperty(className, "float radius", offsetof(T, radius_));
  429. // BoundingBox Bone::boundingBox_
  430. engine->RegisterObjectProperty(className, "BoundingBox boundingBox", offsetof(T, boundingBox_));
  431. #ifdef REGISTER_MEMBERS_MANUAL_PART_Bone
  432. REGISTER_MEMBERS_MANUAL_PART_Bone();
  433. #endif
  434. }
  435. // class BoundingBox | File: ../Math/BoundingBox.h
  436. template <class T> void RegisterMembers_BoundingBox(asIScriptEngine* engine, const char* className)
  437. {
  438. // void BoundingBox::Define(const Vector3* vertices, unsigned count)
  439. // Error: type "const Vector3*" can not automatically bind
  440. // void BoundingBox::Merge(const Vector3* vertices, unsigned count)
  441. // Error: type "const Vector3*" can not automatically bind
  442. // bool BoundingBox::operator !=(const BoundingBox& rhs) const
  443. // Only operator == is needed
  444. // Vector3 BoundingBox::Center() const
  445. engine->RegisterObjectMethod(className, "Vector3 Center() const", AS_METHODPR(T, Center, () const, Vector3), AS_CALL_THISCALL);
  446. engine->RegisterObjectMethod(className, "Vector3 get_center() const", AS_METHODPR(T, Center, () const, Vector3), AS_CALL_THISCALL);
  447. // void BoundingBox::Clear()
  448. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  449. // void BoundingBox::Clip(const BoundingBox& box)
  450. engine->RegisterObjectMethod(className, "void Clip(const BoundingBox&in)", AS_METHODPR(T, Clip, (const BoundingBox&), void), AS_CALL_THISCALL);
  451. // void BoundingBox::Define(const BoundingBox& box)
  452. engine->RegisterObjectMethod(className, "void Define(const BoundingBox&in)", AS_METHODPR(T, Define, (const BoundingBox&), void), AS_CALL_THISCALL);
  453. // void BoundingBox::Define(const Rect& rect)
  454. engine->RegisterObjectMethod(className, "void Define(const Rect&in)", AS_METHODPR(T, Define, (const Rect&), void), AS_CALL_THISCALL);
  455. // void BoundingBox::Define(const Vector3& min, const Vector3& max)
  456. engine->RegisterObjectMethod(className, "void Define(const Vector3&in, const Vector3&in)", AS_METHODPR(T, Define, (const Vector3&, const Vector3&), void), AS_CALL_THISCALL);
  457. // void BoundingBox::Define(float min, float max)
  458. engine->RegisterObjectMethod(className, "void Define(float, float)", AS_METHODPR(T, Define, (float, float), void), AS_CALL_THISCALL);
  459. // void BoundingBox::Define(const Vector3& point)
  460. engine->RegisterObjectMethod(className, "void Define(const Vector3&in)", AS_METHODPR(T, Define, (const Vector3&), void), AS_CALL_THISCALL);
  461. // void BoundingBox::Define(const Frustum& frustum)
  462. engine->RegisterObjectMethod(className, "void Define(const Frustum&in)", AS_METHODPR(T, Define, (const Frustum&), void), AS_CALL_THISCALL);
  463. // void BoundingBox::Define(const Polyhedron& poly)
  464. engine->RegisterObjectMethod(className, "void Define(const Polyhedron&in)", AS_METHODPR(T, Define, (const Polyhedron&), void), AS_CALL_THISCALL);
  465. // void BoundingBox::Define(const Sphere& sphere)
  466. engine->RegisterObjectMethod(className, "void Define(const Sphere&in)", AS_METHODPR(T, Define, (const Sphere&), void), AS_CALL_THISCALL);
  467. // bool BoundingBox::Defined() const
  468. engine->RegisterObjectMethod(className, "bool Defined() const", AS_METHODPR(T, Defined, () const, bool), AS_CALL_THISCALL);
  469. // float BoundingBox::DistanceToPoint(const Vector3& point) const
  470. engine->RegisterObjectMethod(className, "float DistanceToPoint(const Vector3&in) const", AS_METHODPR(T, DistanceToPoint, (const Vector3&) const, float), AS_CALL_THISCALL);
  471. // Vector3 BoundingBox::HalfSize() const
  472. engine->RegisterObjectMethod(className, "Vector3 HalfSize() const", AS_METHODPR(T, HalfSize, () const, Vector3), AS_CALL_THISCALL);
  473. engine->RegisterObjectMethod(className, "Vector3 get_halfSize() const", AS_METHODPR(T, HalfSize, () const, Vector3), AS_CALL_THISCALL);
  474. // Intersection BoundingBox::IsInside(const Vector3& point) const
  475. engine->RegisterObjectMethod(className, "Intersection IsInside(const Vector3&in) const", AS_METHODPR(T, IsInside, (const Vector3&) const, Intersection), AS_CALL_THISCALL);
  476. // Intersection BoundingBox::IsInside(const BoundingBox& box) const
  477. engine->RegisterObjectMethod(className, "Intersection IsInside(const BoundingBox&in) const", AS_METHODPR(T, IsInside, (const BoundingBox&) const, Intersection), AS_CALL_THISCALL);
  478. // Intersection BoundingBox::IsInside(const Sphere& sphere) const
  479. engine->RegisterObjectMethod(className, "Intersection IsInside(const Sphere&in) const", AS_METHODPR(T, IsInside, (const Sphere&) const, Intersection), AS_CALL_THISCALL);
  480. // Intersection BoundingBox::IsInsideFast(const BoundingBox& box) const
  481. engine->RegisterObjectMethod(className, "Intersection IsInsideFast(const BoundingBox&in) const", AS_METHODPR(T, IsInsideFast, (const BoundingBox&) const, Intersection), AS_CALL_THISCALL);
  482. // Intersection BoundingBox::IsInsideFast(const Sphere& sphere) const
  483. engine->RegisterObjectMethod(className, "Intersection IsInsideFast(const Sphere&in) const", AS_METHODPR(T, IsInsideFast, (const Sphere&) const, Intersection), AS_CALL_THISCALL);
  484. // void BoundingBox::Merge(const Vector3& point)
  485. engine->RegisterObjectMethod(className, "void Merge(const Vector3&in)", AS_METHODPR(T, Merge, (const Vector3&), void), AS_CALL_THISCALL);
  486. // void BoundingBox::Merge(const BoundingBox& box)
  487. engine->RegisterObjectMethod(className, "void Merge(const BoundingBox&in)", AS_METHODPR(T, Merge, (const BoundingBox&), void), AS_CALL_THISCALL);
  488. // void BoundingBox::Merge(const Frustum& frustum)
  489. engine->RegisterObjectMethod(className, "void Merge(const Frustum&in)", AS_METHODPR(T, Merge, (const Frustum&), void), AS_CALL_THISCALL);
  490. // void BoundingBox::Merge(const Polyhedron& poly)
  491. engine->RegisterObjectMethod(className, "void Merge(const Polyhedron&in)", AS_METHODPR(T, Merge, (const Polyhedron&), void), AS_CALL_THISCALL);
  492. // void BoundingBox::Merge(const Sphere& sphere)
  493. engine->RegisterObjectMethod(className, "void Merge(const Sphere&in)", AS_METHODPR(T, Merge, (const Sphere&), void), AS_CALL_THISCALL);
  494. // BoundingBox& BoundingBox::operator =(const BoundingBox& rhs) noexcept
  495. engine->RegisterObjectMethod(className, "BoundingBox& opAssign(const BoundingBox&in)", AS_METHODPR(T, operator=, (const BoundingBox&), BoundingBox&), AS_CALL_THISCALL);
  496. // BoundingBox& BoundingBox::operator =(const Rect& rhs) noexcept
  497. engine->RegisterObjectMethod(className, "BoundingBox& opAssign(const Rect&in)", AS_METHODPR(T, operator=, (const Rect&), BoundingBox&), AS_CALL_THISCALL);
  498. // bool BoundingBox::operator ==(const BoundingBox& rhs) const
  499. engine->RegisterObjectMethod(className, "bool opEquals(const BoundingBox&in) const", AS_METHODPR(T, operator==, (const BoundingBox&) const, bool), AS_CALL_THISCALL);
  500. // Rect BoundingBox::Projected(const Matrix4& projection) const
  501. engine->RegisterObjectMethod(className, "Rect Projected(const Matrix4&in) const", AS_METHODPR(T, Projected, (const Matrix4&) const, Rect), AS_CALL_THISCALL);
  502. // Vector3 BoundingBox::Size() const
  503. engine->RegisterObjectMethod(className, "Vector3 Size() const", AS_METHODPR(T, Size, () const, Vector3), AS_CALL_THISCALL);
  504. engine->RegisterObjectMethod(className, "Vector3 get_size() const", AS_METHODPR(T, Size, () const, Vector3), AS_CALL_THISCALL);
  505. // String BoundingBox::ToString() const
  506. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  507. // void BoundingBox::Transform(const Matrix3& transform)
  508. engine->RegisterObjectMethod(className, "void Transform(const Matrix3&in)", AS_METHODPR(T, Transform, (const Matrix3&), void), AS_CALL_THISCALL);
  509. // void BoundingBox::Transform(const Matrix3x4& transform)
  510. engine->RegisterObjectMethod(className, "void Transform(const Matrix3x4&in)", AS_METHODPR(T, Transform, (const Matrix3x4&), void), AS_CALL_THISCALL);
  511. // BoundingBox BoundingBox::Transformed(const Matrix3& transform) const
  512. engine->RegisterObjectMethod(className, "BoundingBox Transformed(const Matrix3&in) const", AS_METHODPR(T, Transformed, (const Matrix3&) const, BoundingBox), AS_CALL_THISCALL);
  513. // BoundingBox BoundingBox::Transformed(const Matrix3x4& transform) const
  514. engine->RegisterObjectMethod(className, "BoundingBox Transformed(const Matrix3x4&in) const", AS_METHODPR(T, Transformed, (const Matrix3x4&) const, BoundingBox), AS_CALL_THISCALL);
  515. // Vector3 BoundingBox::min_
  516. engine->RegisterObjectProperty(className, "Vector3 min", offsetof(T, min_));
  517. // float BoundingBox::dummyMin_
  518. engine->RegisterObjectProperty(className, "float dummyMin", offsetof(T, dummyMin_));
  519. // Vector3 BoundingBox::max_
  520. engine->RegisterObjectProperty(className, "Vector3 max", offsetof(T, max_));
  521. // float BoundingBox::dummyMax_
  522. engine->RegisterObjectProperty(className, "float dummyMax", offsetof(T, dummyMax_));
  523. #ifdef REGISTER_MEMBERS_MANUAL_PART_BoundingBox
  524. REGISTER_MEMBERS_MANUAL_PART_BoundingBox();
  525. #endif
  526. }
  527. // struct CascadeParameters | File: ../Graphics/Light.h
  528. template <class T> void RegisterMembers_CascadeParameters(asIScriptEngine* engine, const char* className)
  529. {
  530. // float CascadeParameters::GetShadowRange() const
  531. engine->RegisterObjectMethod(className, "float GetShadowRange() const", AS_METHODPR(T, GetShadowRange, () const, float), AS_CALL_THISCALL);
  532. // void CascadeParameters::Validate()
  533. engine->RegisterObjectMethod(className, "void Validate()", AS_METHODPR(T, Validate, (), void), AS_CALL_THISCALL);
  534. // Vector4 CascadeParameters::splits_
  535. engine->RegisterObjectProperty(className, "Vector4 splits", offsetof(T, splits_));
  536. // float CascadeParameters::fadeStart_
  537. engine->RegisterObjectProperty(className, "float fadeStart", offsetof(T, fadeStart_));
  538. // float CascadeParameters::biasAutoAdjust_
  539. engine->RegisterObjectProperty(className, "float biasAutoAdjust", offsetof(T, biasAutoAdjust_));
  540. #ifdef REGISTER_MEMBERS_MANUAL_PART_CascadeParameters
  541. REGISTER_MEMBERS_MANUAL_PART_CascadeParameters();
  542. #endif
  543. }
  544. // struct CharLocation | File: ../UI/Text.h
  545. template <class T> void RegisterMembers_CharLocation(asIScriptEngine* engine, const char* className)
  546. {
  547. // Vector2 CharLocation::position_
  548. engine->RegisterObjectProperty(className, "Vector2 position", offsetof(T, position_));
  549. // Vector2 CharLocation::size_
  550. engine->RegisterObjectProperty(className, "Vector2 size", offsetof(T, size_));
  551. #ifdef REGISTER_MEMBERS_MANUAL_PART_CharLocation
  552. REGISTER_MEMBERS_MANUAL_PART_CharLocation();
  553. #endif
  554. }
  555. // class Color | File: ../Math/Color.h
  556. template <class T> void RegisterMembers_Color(asIScriptEngine* engine, const char* className)
  557. {
  558. // void Color::Bounds(float* min, float* max, bool clipped = false) const
  559. // Error: type "float*" can not automatically bind
  560. // const float* Color::Data() const
  561. // Error: type "const float*" can not automatically bind
  562. // void Color::FromUIntMask(unsigned color, const ChannelMask& mask)
  563. // Error: type "const ChannelMask&" can not automatically bind
  564. // bool Color::operator !=(const Color& rhs) const
  565. // Only operator == is needed
  566. // unsigned Color::ToUIntMask(const ChannelMask& mask) const
  567. // Error: type "const ChannelMask&" can not automatically bind
  568. // Color Color::Abs() const
  569. engine->RegisterObjectMethod(className, "Color Abs() const", AS_METHODPR(T, Abs, () const, Color), AS_CALL_THISCALL);
  570. // float Color::Average() const
  571. engine->RegisterObjectMethod(className, "float Average() const", AS_METHODPR(T, Average, () const, float), AS_CALL_THISCALL);
  572. // float Color::Chroma() const
  573. engine->RegisterObjectMethod(className, "float Chroma() const", AS_METHODPR(T, Chroma, () const, float), AS_CALL_THISCALL);
  574. // void Color::Clip(bool clipAlpha = false)
  575. engine->RegisterObjectMethod(className, "void Clip(bool = false)", AS_METHODPR(T, Clip, (bool), void), AS_CALL_THISCALL);
  576. // bool Color::Equals(const Color& rhs) const
  577. engine->RegisterObjectMethod(className, "bool Equals(const Color&in) const", AS_METHODPR(T, Equals, (const Color&) const, bool), AS_CALL_THISCALL);
  578. // void Color::FromHSL(float h, float s, float l, float a = 1.0f)
  579. engine->RegisterObjectMethod(className, "void FromHSL(float, float, float, float = 1.0f)", AS_METHODPR(T, FromHSL, (float, float, float, float), void), AS_CALL_THISCALL);
  580. // void Color::FromHSV(float h, float s, float v, float a = 1.0f)
  581. engine->RegisterObjectMethod(className, "void FromHSV(float, float, float, float = 1.0f)", AS_METHODPR(T, FromHSV, (float, float, float, float), void), AS_CALL_THISCALL);
  582. // void Color::FromUInt(unsigned color)
  583. engine->RegisterObjectMethod(className, "void FromUInt(uint)", AS_METHODPR(T, FromUInt, (unsigned), void), AS_CALL_THISCALL);
  584. // Color Color::GammaToLinear() const
  585. engine->RegisterObjectMethod(className, "Color GammaToLinear() const", AS_METHODPR(T, GammaToLinear, () const, Color), AS_CALL_THISCALL);
  586. // float Color::Hue() const
  587. engine->RegisterObjectMethod(className, "float Hue() const", AS_METHODPR(T, Hue, () const, float), AS_CALL_THISCALL);
  588. // void Color::Invert(bool invertAlpha = false)
  589. engine->RegisterObjectMethod(className, "void Invert(bool = false)", AS_METHODPR(T, Invert, (bool), void), AS_CALL_THISCALL);
  590. // Color Color::Lerp(const Color& rhs, float t) const
  591. engine->RegisterObjectMethod(className, "Color Lerp(const Color&in, float) const", AS_METHODPR(T, Lerp, (const Color&, float) const, Color), AS_CALL_THISCALL);
  592. // float Color::Lightness() const
  593. engine->RegisterObjectMethod(className, "float Lightness() const", AS_METHODPR(T, Lightness, () const, float), AS_CALL_THISCALL);
  594. // Color Color::LinearToGamma() const
  595. engine->RegisterObjectMethod(className, "Color LinearToGamma() const", AS_METHODPR(T, LinearToGamma, () const, Color), AS_CALL_THISCALL);
  596. // float Color::Luma() const
  597. engine->RegisterObjectMethod(className, "float Luma() const", AS_METHODPR(T, Luma, () const, float), AS_CALL_THISCALL);
  598. // float Color::MaxRGB() const
  599. engine->RegisterObjectMethod(className, "float MaxRGB() const", AS_METHODPR(T, MaxRGB, () const, float), AS_CALL_THISCALL);
  600. // float Color::MinRGB() const
  601. engine->RegisterObjectMethod(className, "float MinRGB() const", AS_METHODPR(T, MinRGB, () const, float), AS_CALL_THISCALL);
  602. // Color Color::operator *(float rhs) const
  603. engine->RegisterObjectMethod(className, "Color opMul(float) const", AS_METHODPR(T, operator*, (float) const, Color), AS_CALL_THISCALL);
  604. // Color Color::operator +(const Color& rhs) const
  605. engine->RegisterObjectMethod(className, "Color opAdd(const Color&in) const", AS_METHODPR(T, operator+, (const Color&) const, Color), AS_CALL_THISCALL);
  606. // Color& Color::operator +=(const Color& rhs)
  607. engine->RegisterObjectMethod(className, "Color& opAddAssign(const Color&in)", AS_METHODPR(T, operator+=, (const Color&), Color&), AS_CALL_THISCALL);
  608. // Color Color::operator -() const
  609. engine->RegisterObjectMethod(className, "Color opNeg() const", AS_METHODPR(T, operator-, () const, Color), AS_CALL_THISCALL);
  610. // Color Color::operator -(const Color& rhs) const
  611. engine->RegisterObjectMethod(className, "Color opSub(const Color&in) const", AS_METHODPR(T, operator-, (const Color&) const, Color), AS_CALL_THISCALL);
  612. // Color& Color::operator =(const Color& rhs) noexcept = default
  613. engine->RegisterObjectMethod(className, "Color& opAssign(const Color&in)", AS_METHODPR(T, operator=, (const Color&), Color&), AS_CALL_THISCALL);
  614. // bool Color::operator ==(const Color& rhs) const
  615. engine->RegisterObjectMethod(className, "bool opEquals(const Color&in) const", AS_METHODPR(T, operator==, (const Color&) const, bool), AS_CALL_THISCALL);
  616. // float Color::Range() const
  617. engine->RegisterObjectMethod(className, "float Range() const", AS_METHODPR(T, Range, () const, float), AS_CALL_THISCALL);
  618. // float Color::SaturationHSL() const
  619. engine->RegisterObjectMethod(className, "float SaturationHSL() const", AS_METHODPR(T, SaturationHSL, () const, float), AS_CALL_THISCALL);
  620. // float Color::SaturationHSV() const
  621. engine->RegisterObjectMethod(className, "float SaturationHSV() const", AS_METHODPR(T, SaturationHSV, () const, float), AS_CALL_THISCALL);
  622. // float Color::SumRGB() const
  623. engine->RegisterObjectMethod(className, "float SumRGB() const", AS_METHODPR(T, SumRGB, () const, float), AS_CALL_THISCALL);
  624. // unsigned Color::ToHash() const
  625. engine->RegisterObjectMethod(className, "uint ToHash() const", AS_METHODPR(T, ToHash, () const, unsigned), AS_CALL_THISCALL);
  626. // Vector3 Color::ToHSL() const
  627. engine->RegisterObjectMethod(className, "Vector3 ToHSL() const", AS_METHODPR(T, ToHSL, () const, Vector3), AS_CALL_THISCALL);
  628. // Vector3 Color::ToHSV() const
  629. engine->RegisterObjectMethod(className, "Vector3 ToHSV() const", AS_METHODPR(T, ToHSV, () const, Vector3), AS_CALL_THISCALL);
  630. // String Color::ToString() const
  631. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  632. // unsigned Color::ToUInt() const
  633. engine->RegisterObjectMethod(className, "uint ToUInt() const", AS_METHODPR(T, ToUInt, () const, unsigned), AS_CALL_THISCALL);
  634. // unsigned Color::ToUIntArgb() const
  635. engine->RegisterObjectMethod(className, "uint ToUIntArgb() const", AS_METHODPR(T, ToUIntArgb, () const, unsigned), AS_CALL_THISCALL);
  636. // Vector3 Color::ToVector3() const
  637. engine->RegisterObjectMethod(className, "Vector3 ToVector3() const", AS_METHODPR(T, ToVector3, () const, Vector3), AS_CALL_THISCALL);
  638. engine->RegisterObjectMethod(className, "Vector3 get_rgb() const", AS_METHODPR(T, ToVector3, () const, Vector3), AS_CALL_THISCALL);
  639. // Vector4 Color::ToVector4() const
  640. engine->RegisterObjectMethod(className, "Vector4 ToVector4() const", AS_METHODPR(T, ToVector4, () const, Vector4), AS_CALL_THISCALL);
  641. engine->RegisterObjectMethod(className, "Vector4 get_rgba() const", AS_METHODPR(T, ToVector4, () const, Vector4), AS_CALL_THISCALL);
  642. // float Color::Value() const
  643. engine->RegisterObjectMethod(className, "float Value() const", AS_METHODPR(T, Value, () const, float), AS_CALL_THISCALL);
  644. // static float Color::ConvertGammaToLinear(float value)
  645. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("float ConvertGammaToLinear(float)", AS_FUNCTIONPR(T::ConvertGammaToLinear, (float), float), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  646. // static float Color::ConvertLinearToGamma(float value)
  647. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("float ConvertLinearToGamma(float)", AS_FUNCTIONPR(T::ConvertLinearToGamma, (float), float), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  648. // float Color::r_
  649. engine->RegisterObjectProperty(className, "float r", offsetof(T, r_));
  650. // float Color::g_
  651. engine->RegisterObjectProperty(className, "float g", offsetof(T, g_));
  652. // float Color::b_
  653. engine->RegisterObjectProperty(className, "float b", offsetof(T, b_));
  654. // float Color::a_
  655. engine->RegisterObjectProperty(className, "float a", offsetof(T, a_));
  656. // static const ChannelMask Color::ABGR
  657. // Error: type "const ChannelMask" can not automatically bind
  658. // static const ChannelMask Color::ARGB
  659. // Error: type "const ChannelMask" can not automatically bind
  660. // static const Color Color::WHITE
  661. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Color WHITE", (void*)&T::WHITE);engine->SetDefaultNamespace("");
  662. // static const Color Color::GRAY
  663. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Color GRAY", (void*)&T::GRAY);engine->SetDefaultNamespace("");
  664. // static const Color Color::BLACK
  665. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Color BLACK", (void*)&T::BLACK);engine->SetDefaultNamespace("");
  666. // static const Color Color::RED
  667. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Color RED", (void*)&T::RED);engine->SetDefaultNamespace("");
  668. // static const Color Color::GREEN
  669. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Color GREEN", (void*)&T::GREEN);engine->SetDefaultNamespace("");
  670. // static const Color Color::BLUE
  671. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Color BLUE", (void*)&T::BLUE);engine->SetDefaultNamespace("");
  672. // static const Color Color::CYAN
  673. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Color CYAN", (void*)&T::CYAN);engine->SetDefaultNamespace("");
  674. // static const Color Color::MAGENTA
  675. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Color MAGENTA", (void*)&T::MAGENTA);engine->SetDefaultNamespace("");
  676. // static const Color Color::YELLOW
  677. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Color YELLOW", (void*)&T::YELLOW);engine->SetDefaultNamespace("");
  678. // static const Color Color::TRANSPARENT_BLACK
  679. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Color TRANSPARENT_BLACK", (void*)&T::TRANSPARENT_BLACK);engine->SetDefaultNamespace("");
  680. #ifdef REGISTER_MEMBERS_MANUAL_PART_Color
  681. REGISTER_MEMBERS_MANUAL_PART_Color();
  682. #endif
  683. }
  684. // struct ColorFrame | File: ../Graphics/ParticleEffect.h
  685. template <class T> void RegisterMembers_ColorFrame(asIScriptEngine* engine, const char* className)
  686. {
  687. // Color ColorFrame::Interpolate(const ColorFrame& next, float time) const
  688. engine->RegisterObjectMethod(className, "Color Interpolate(const ColorFrame&in, float) const", AS_METHODPR(T, Interpolate, (const ColorFrame&, float) const, Color), AS_CALL_THISCALL);
  689. // Color ColorFrame::color_
  690. engine->RegisterObjectProperty(className, "Color color", offsetof(T, color_));
  691. // float ColorFrame::time_
  692. engine->RegisterObjectProperty(className, "float time", offsetof(T, time_));
  693. #ifdef REGISTER_MEMBERS_MANUAL_PART_ColorFrame
  694. REGISTER_MEMBERS_MANUAL_PART_ColorFrame();
  695. #endif
  696. }
  697. // struct CompressedLevel | File: ../Resource/Image.h
  698. template <class T> void RegisterMembers_CompressedLevel(asIScriptEngine* engine, const char* className)
  699. {
  700. // bool CompressedLevel::Decompress(unsigned char* dest) const
  701. // Error: type "unsigned char*" can not automatically bind
  702. // unsigned char* CompressedLevel::data_
  703. // Not registered because pointer
  704. // CompressedFormat CompressedLevel::format_
  705. engine->RegisterObjectProperty(className, "CompressedFormat format", offsetof(T, format_));
  706. // int CompressedLevel::width_
  707. engine->RegisterObjectProperty(className, "int width", offsetof(T, width_));
  708. // int CompressedLevel::height_
  709. engine->RegisterObjectProperty(className, "int height", offsetof(T, height_));
  710. // int CompressedLevel::depth_
  711. engine->RegisterObjectProperty(className, "int depth", offsetof(T, depth_));
  712. // unsigned CompressedLevel::blockSize_
  713. engine->RegisterObjectProperty(className, "uint blockSize", offsetof(T, blockSize_));
  714. // unsigned CompressedLevel::dataSize_
  715. engine->RegisterObjectProperty(className, "uint dataSize", offsetof(T, dataSize_));
  716. // unsigned CompressedLevel::rowSize_
  717. engine->RegisterObjectProperty(className, "uint rowSize", offsetof(T, rowSize_));
  718. // unsigned CompressedLevel::rows_
  719. engine->RegisterObjectProperty(className, "uint rows", offsetof(T, rows_));
  720. #ifdef REGISTER_MEMBERS_MANUAL_PART_CompressedLevel
  721. REGISTER_MEMBERS_MANUAL_PART_CompressedLevel();
  722. #endif
  723. }
  724. // class Condition | File: ../Core/Condition.h
  725. template <class T> void RegisterMembers_Condition(asIScriptEngine* engine, const char* className)
  726. {
  727. // void Condition::Set()
  728. engine->RegisterObjectMethod(className, "void Set()", AS_METHODPR(T, Set, (), void), AS_CALL_THISCALL);
  729. // void Condition::Wait()
  730. engine->RegisterObjectMethod(className, "void Wait()", AS_METHODPR(T, Wait, (), void), AS_CALL_THISCALL);
  731. #ifdef REGISTER_MEMBERS_MANUAL_PART_Condition
  732. REGISTER_MEMBERS_MANUAL_PART_Condition();
  733. #endif
  734. }
  735. // class Controls | File: ../Input/Controls.h
  736. template <class T> void RegisterMembers_Controls(asIScriptEngine* engine, const char* className)
  737. {
  738. // bool Controls::IsDown(unsigned button) const
  739. engine->RegisterObjectMethod(className, "bool IsDown(uint) const", AS_METHODPR(T, IsDown, (unsigned) const, bool), AS_CALL_THISCALL);
  740. // bool Controls::IsPressed(unsigned button, const Controls& previousControls) const
  741. engine->RegisterObjectMethod(className, "bool IsPressed(uint, const Controls&in) const", AS_METHODPR(T, IsPressed, (unsigned, const Controls&) const, bool), AS_CALL_THISCALL);
  742. // void Controls::Reset()
  743. engine->RegisterObjectMethod(className, "void Reset()", AS_METHODPR(T, Reset, (), void), AS_CALL_THISCALL);
  744. // void Controls::Set(unsigned buttons, bool down = true)
  745. engine->RegisterObjectMethod(className, "void Set(uint, bool = true)", AS_METHODPR(T, Set, (unsigned, bool), void), AS_CALL_THISCALL);
  746. // unsigned Controls::buttons_
  747. engine->RegisterObjectProperty(className, "uint buttons", offsetof(T, buttons_));
  748. // float Controls::yaw_
  749. engine->RegisterObjectProperty(className, "float yaw", offsetof(T, yaw_));
  750. // float Controls::pitch_
  751. engine->RegisterObjectProperty(className, "float pitch", offsetof(T, pitch_));
  752. // VariantMap Controls::extraData_
  753. engine->RegisterObjectProperty(className, "VariantMap extraData", offsetof(T, extraData_));
  754. #ifdef REGISTER_MEMBERS_MANUAL_PART_Controls
  755. REGISTER_MEMBERS_MANUAL_PART_Controls();
  756. #endif
  757. }
  758. // struct CursorShapeInfo | File: ../UI/Cursor.h
  759. template <class T> void RegisterMembers_CursorShapeInfo(asIScriptEngine* engine, const char* className)
  760. {
  761. // SharedPtr<Image> CursorShapeInfo::image_
  762. // Error: type "SharedPtr<Image>" can not automatically bind
  763. // SharedPtr<Texture> CursorShapeInfo::texture_
  764. // Error: type "SharedPtr<Texture>" can not automatically bind
  765. // SDL_Cursor* CursorShapeInfo::osCursor_
  766. // Not registered because pointer
  767. // IntRect CursorShapeInfo::imageRect_
  768. engine->RegisterObjectProperty(className, "IntRect imageRect", offsetof(T, imageRect_));
  769. // IntVector2 CursorShapeInfo::hotSpot_
  770. engine->RegisterObjectProperty(className, "IntVector2 hotSpot", offsetof(T, hotSpot_));
  771. // bool CursorShapeInfo::systemDefined_
  772. engine->RegisterObjectProperty(className, "bool systemDefined", offsetof(T, systemDefined_));
  773. // int CursorShapeInfo::systemCursor_
  774. engine->RegisterObjectProperty(className, "int systemCursor", offsetof(T, systemCursor_));
  775. #ifdef REGISTER_MEMBERS_MANUAL_PART_CursorShapeInfo
  776. REGISTER_MEMBERS_MANUAL_PART_CursorShapeInfo();
  777. #endif
  778. }
  779. // struct CustomGeometryVertex | File: ../Graphics/CustomGeometry.h
  780. template <class T> void RegisterMembers_CustomGeometryVertex(asIScriptEngine* engine, const char* className)
  781. {
  782. // Vector3 CustomGeometryVertex::position_
  783. engine->RegisterObjectProperty(className, "Vector3 position", offsetof(T, position_));
  784. // Vector3 CustomGeometryVertex::normal_
  785. engine->RegisterObjectProperty(className, "Vector3 normal", offsetof(T, normal_));
  786. // unsigned CustomGeometryVertex::color_
  787. engine->RegisterObjectProperty(className, "uint color", offsetof(T, color_));
  788. // Vector2 CustomGeometryVertex::texCoord_
  789. engine->RegisterObjectProperty(className, "Vector2 texCoord", offsetof(T, texCoord_));
  790. // Vector4 CustomGeometryVertex::tangent_
  791. engine->RegisterObjectProperty(className, "Vector4 tangent", offsetof(T, tangent_));
  792. #ifdef REGISTER_MEMBERS_MANUAL_PART_CustomGeometryVertex
  793. REGISTER_MEMBERS_MANUAL_PART_CustomGeometryVertex();
  794. #endif
  795. }
  796. // class CustomVariantValue | File: ../Core/Variant.h
  797. template <class T> void RegisterMembers_CustomVariantValue(asIScriptEngine* engine, const char* className)
  798. {
  799. // virtual bool CustomVariantValue::Assign(const CustomVariantValue& rhs)
  800. // Error: type "CustomVariantValue" can not automatically bind bacause have @nobind mark
  801. // virtual CustomVariantValue* CustomVariantValue::Clone() const
  802. // Error: type "CustomVariantValue" can not automatically bind bacause have @nobind mark
  803. // virtual void CustomVariantValue::Clone(void* dest) const
  804. // Error: type "void*" can not automatically bind
  805. // virtual bool CustomVariantValue::Compare(const CustomVariantValue& rhs) const
  806. // Error: type "CustomVariantValue" can not automatically bind bacause have @nobind mark
  807. // const std::type_info& CustomVariantValue::GetTypeInfo() const
  808. // Error: type "const std::type_info&" can not automatically bind
  809. // virtual unsigned CustomVariantValue::GetSize() const
  810. engine->RegisterObjectMethod(className, "uint GetSize() const", AS_METHODPR(T, GetSize, () const, unsigned), AS_CALL_THISCALL);
  811. // virtual bool CustomVariantValue::IsZero() const
  812. engine->RegisterObjectMethod(className, "bool IsZero() const", AS_METHODPR(T, IsZero, () const, bool), AS_CALL_THISCALL);
  813. // virtual String CustomVariantValue::ToString() const
  814. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  815. // template <class T> T* CustomVariantValue::GetValuePtr()
  816. // Not registered because template
  817. // template <class T> const T* CustomVariantValue::GetValuePtr() const
  818. // Not registered because template
  819. // template <class T> bool CustomVariantValue::IsType() const
  820. // Not registered because template
  821. #ifdef REGISTER_MEMBERS_MANUAL_PART_CustomVariantValue
  822. REGISTER_MEMBERS_MANUAL_PART_CustomVariantValue();
  823. #endif
  824. }
  825. // struct DebugLine | File: ../Graphics/DebugRenderer.h
  826. template <class T> void RegisterMembers_DebugLine(asIScriptEngine* engine, const char* className)
  827. {
  828. // Vector3 DebugLine::start_
  829. engine->RegisterObjectProperty(className, "Vector3 start", offsetof(T, start_));
  830. // Vector3 DebugLine::end_
  831. engine->RegisterObjectProperty(className, "Vector3 end", offsetof(T, end_));
  832. // unsigned DebugLine::color_
  833. engine->RegisterObjectProperty(className, "uint color", offsetof(T, color_));
  834. #ifdef REGISTER_MEMBERS_MANUAL_PART_DebugLine
  835. REGISTER_MEMBERS_MANUAL_PART_DebugLine();
  836. #endif
  837. }
  838. // struct DebugTriangle | File: ../Graphics/DebugRenderer.h
  839. template <class T> void RegisterMembers_DebugTriangle(asIScriptEngine* engine, const char* className)
  840. {
  841. // Vector3 DebugTriangle::v1_
  842. engine->RegisterObjectProperty(className, "Vector3 v1", offsetof(T, v1_));
  843. // Vector3 DebugTriangle::v2_
  844. engine->RegisterObjectProperty(className, "Vector3 v2", offsetof(T, v2_));
  845. // Vector3 DebugTriangle::v3_
  846. engine->RegisterObjectProperty(className, "Vector3 v3", offsetof(T, v3_));
  847. // unsigned DebugTriangle::color_
  848. engine->RegisterObjectProperty(className, "uint color", offsetof(T, color_));
  849. #ifdef REGISTER_MEMBERS_MANUAL_PART_DebugTriangle
  850. REGISTER_MEMBERS_MANUAL_PART_DebugTriangle();
  851. #endif
  852. }
  853. // struct Decal | File: ../Graphics/DecalSet.h
  854. template <class T> void RegisterMembers_Decal(asIScriptEngine* engine, const char* className)
  855. {
  856. // void Decal::AddVertex(const DecalVertex& vertex)
  857. engine->RegisterObjectMethod(className, "void AddVertex(const DecalVertex&in)", AS_METHODPR(T, AddVertex, (const DecalVertex&), void), AS_CALL_THISCALL);
  858. // void Decal::CalculateBoundingBox()
  859. engine->RegisterObjectMethod(className, "void CalculateBoundingBox()", AS_METHODPR(T, CalculateBoundingBox, (), void), AS_CALL_THISCALL);
  860. // PODVector<DecalVertex> Decal::vertices_
  861. // Error: type "PODVector<DecalVertex>" can not automatically bind
  862. // PODVector<unsigned short> Decal::indices_
  863. // Error: type "PODVector<unsigned short>" can not automatically bind
  864. // float Decal::timer_
  865. engine->RegisterObjectProperty(className, "float timer", offsetof(T, timer_));
  866. // float Decal::timeToLive_
  867. engine->RegisterObjectProperty(className, "float timeToLive", offsetof(T, timeToLive_));
  868. // BoundingBox Decal::boundingBox_
  869. engine->RegisterObjectProperty(className, "BoundingBox boundingBox", offsetof(T, boundingBox_));
  870. #ifdef REGISTER_MEMBERS_MANUAL_PART_Decal
  871. REGISTER_MEMBERS_MANUAL_PART_Decal();
  872. #endif
  873. }
  874. // struct DecalVertex | File: ../Graphics/DecalSet.h
  875. template <class T> void RegisterMembers_DecalVertex(asIScriptEngine* engine, const char* className)
  876. {
  877. // float DecalVertex::blendWeights_[4]
  878. // Not registered because array
  879. // unsigned char DecalVertex::blendIndices_[4]
  880. // Not registered because array
  881. // Vector3 DecalVertex::position_
  882. engine->RegisterObjectProperty(className, "Vector3 position", offsetof(T, position_));
  883. // Vector3 DecalVertex::normal_
  884. engine->RegisterObjectProperty(className, "Vector3 normal", offsetof(T, normal_));
  885. // Vector2 DecalVertex::texCoord_
  886. engine->RegisterObjectProperty(className, "Vector2 texCoord", offsetof(T, texCoord_));
  887. // Vector4 DecalVertex::tangent_
  888. engine->RegisterObjectProperty(className, "Vector4 tangent", offsetof(T, tangent_));
  889. #ifdef REGISTER_MEMBERS_MANUAL_PART_DecalVertex
  890. REGISTER_MEMBERS_MANUAL_PART_DecalVertex();
  891. #endif
  892. }
  893. // struct DepthValue | File: ../Graphics/OcclusionBuffer.h
  894. template <class T> void RegisterMembers_DepthValue(asIScriptEngine* engine, const char* className)
  895. {
  896. // int DepthValue::min_
  897. engine->RegisterObjectProperty(className, "int min", offsetof(T, min_));
  898. // int DepthValue::max_
  899. engine->RegisterObjectProperty(className, "int max", offsetof(T, max_));
  900. #ifdef REGISTER_MEMBERS_MANUAL_PART_DepthValue
  901. REGISTER_MEMBERS_MANUAL_PART_DepthValue();
  902. #endif
  903. }
  904. // StringVector Deserializer::ReadStringVector()
  905. template <class T> CScriptArray* Deserializer_StringVector_ReadStringVector_void_template(T* _ptr)
  906. {
  907. StringVector result = _ptr->ReadStringVector();
  908. return VectorToArray<String>(result, "Array<String>");
  909. }
  910. // class Deserializer | File: ../IO/Deserializer.h
  911. template <class T> void RegisterMembers_Deserializer(asIScriptEngine* engine, const char* className)
  912. {
  913. // virtual unsigned Deserializer::Read(void* dest, unsigned size) = 0
  914. // Error: type "void*" can not automatically bind
  915. // PODVector<unsigned char> Deserializer::ReadBuffer()
  916. // Error: type "PODVector<unsigned char>" can not automatically bind
  917. // VariantVector Deserializer::ReadVariantVector()
  918. // Error: type "VariantVector" can not automatically bind
  919. // virtual unsigned Deserializer::GetChecksum()
  920. engine->RegisterObjectMethod(className, "uint GetChecksum()", AS_METHODPR(T, GetChecksum, (), unsigned), AS_CALL_THISCALL);
  921. engine->RegisterObjectMethod(className, "uint get_checksum()", AS_METHODPR(T, GetChecksum, (), unsigned), AS_CALL_THISCALL);
  922. // virtual const String& Deserializer::GetName() const
  923. engine->RegisterObjectMethod(className, "const String& GetName() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  924. engine->RegisterObjectMethod(className, "const String& get_name() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  925. // unsigned Deserializer::GetPosition() const
  926. engine->RegisterObjectMethod(className, "uint GetPosition() const", AS_METHODPR(T, GetPosition, () const, unsigned), AS_CALL_THISCALL);
  927. engine->RegisterObjectMethod(className, "uint get_position() const", AS_METHODPR(T, GetPosition, () const, unsigned), AS_CALL_THISCALL);
  928. // unsigned Deserializer::GetSize() const
  929. engine->RegisterObjectMethod(className, "uint GetSize() const", AS_METHODPR(T, GetSize, () const, unsigned), AS_CALL_THISCALL);
  930. engine->RegisterObjectMethod(className, "uint get_size() const", AS_METHODPR(T, GetSize, () const, unsigned), AS_CALL_THISCALL);
  931. // virtual bool Deserializer::IsEof() const
  932. engine->RegisterObjectMethod(className, "bool IsEof() const", AS_METHODPR(T, IsEof, () const, bool), AS_CALL_THISCALL);
  933. engine->RegisterObjectMethod(className, "bool get_eof() const", AS_METHODPR(T, IsEof, () const, bool), AS_CALL_THISCALL);
  934. // bool Deserializer::ReadBool()
  935. engine->RegisterObjectMethod(className, "bool ReadBool()", AS_METHODPR(T, ReadBool, (), bool), AS_CALL_THISCALL);
  936. // BoundingBox Deserializer::ReadBoundingBox()
  937. engine->RegisterObjectMethod(className, "BoundingBox ReadBoundingBox()", AS_METHODPR(T, ReadBoundingBox, (), BoundingBox), AS_CALL_THISCALL);
  938. // signed char Deserializer::ReadByte()
  939. engine->RegisterObjectMethod(className, "int8 ReadByte()", AS_METHODPR(T, ReadByte, (), signed char), AS_CALL_THISCALL);
  940. // Color Deserializer::ReadColor()
  941. engine->RegisterObjectMethod(className, "Color ReadColor()", AS_METHODPR(T, ReadColor, (), Color), AS_CALL_THISCALL);
  942. // double Deserializer::ReadDouble()
  943. engine->RegisterObjectMethod(className, "double ReadDouble()", AS_METHODPR(T, ReadDouble, (), double), AS_CALL_THISCALL);
  944. // String Deserializer::ReadFileID()
  945. engine->RegisterObjectMethod(className, "String ReadFileID()", AS_METHODPR(T, ReadFileID, (), String), AS_CALL_THISCALL);
  946. // float Deserializer::ReadFloat()
  947. engine->RegisterObjectMethod(className, "float ReadFloat()", AS_METHODPR(T, ReadFloat, (), float), AS_CALL_THISCALL);
  948. // int Deserializer::ReadInt()
  949. engine->RegisterObjectMethod(className, "int ReadInt()", AS_METHODPR(T, ReadInt, (), int), AS_CALL_THISCALL);
  950. // long long Deserializer::ReadInt64()
  951. engine->RegisterObjectMethod(className, "int64 ReadInt64()", AS_METHODPR(T, ReadInt64, (), long long), AS_CALL_THISCALL);
  952. // IntRect Deserializer::ReadIntRect()
  953. engine->RegisterObjectMethod(className, "IntRect ReadIntRect()", AS_METHODPR(T, ReadIntRect, (), IntRect), AS_CALL_THISCALL);
  954. // IntVector2 Deserializer::ReadIntVector2()
  955. engine->RegisterObjectMethod(className, "IntVector2 ReadIntVector2()", AS_METHODPR(T, ReadIntVector2, (), IntVector2), AS_CALL_THISCALL);
  956. // IntVector3 Deserializer::ReadIntVector3()
  957. engine->RegisterObjectMethod(className, "IntVector3 ReadIntVector3()", AS_METHODPR(T, ReadIntVector3, (), IntVector3), AS_CALL_THISCALL);
  958. // String Deserializer::ReadLine()
  959. engine->RegisterObjectMethod(className, "String ReadLine()", AS_METHODPR(T, ReadLine, (), String), AS_CALL_THISCALL);
  960. // Matrix3 Deserializer::ReadMatrix3()
  961. engine->RegisterObjectMethod(className, "Matrix3 ReadMatrix3()", AS_METHODPR(T, ReadMatrix3, (), Matrix3), AS_CALL_THISCALL);
  962. // Matrix3x4 Deserializer::ReadMatrix3x4()
  963. engine->RegisterObjectMethod(className, "Matrix3x4 ReadMatrix3x4()", AS_METHODPR(T, ReadMatrix3x4, (), Matrix3x4), AS_CALL_THISCALL);
  964. // Matrix4 Deserializer::ReadMatrix4()
  965. engine->RegisterObjectMethod(className, "Matrix4 ReadMatrix4()", AS_METHODPR(T, ReadMatrix4, (), Matrix4), AS_CALL_THISCALL);
  966. // unsigned Deserializer::ReadNetID()
  967. engine->RegisterObjectMethod(className, "uint ReadNetID()", AS_METHODPR(T, ReadNetID, (), unsigned), AS_CALL_THISCALL);
  968. // Quaternion Deserializer::ReadPackedQuaternion()
  969. engine->RegisterObjectMethod(className, "Quaternion ReadPackedQuaternion()", AS_METHODPR(T, ReadPackedQuaternion, (), Quaternion), AS_CALL_THISCALL);
  970. // Vector3 Deserializer::ReadPackedVector3(float maxAbsCoord)
  971. engine->RegisterObjectMethod(className, "Vector3 ReadPackedVector3(float)", AS_METHODPR(T, ReadPackedVector3, (float), Vector3), AS_CALL_THISCALL);
  972. // Quaternion Deserializer::ReadQuaternion()
  973. engine->RegisterObjectMethod(className, "Quaternion ReadQuaternion()", AS_METHODPR(T, ReadQuaternion, (), Quaternion), AS_CALL_THISCALL);
  974. // Rect Deserializer::ReadRect()
  975. engine->RegisterObjectMethod(className, "Rect ReadRect()", AS_METHODPR(T, ReadRect, (), Rect), AS_CALL_THISCALL);
  976. // ResourceRef Deserializer::ReadResourceRef()
  977. engine->RegisterObjectMethod(className, "ResourceRef ReadResourceRef()", AS_METHODPR(T, ReadResourceRef, (), ResourceRef), AS_CALL_THISCALL);
  978. // ResourceRefList Deserializer::ReadResourceRefList()
  979. engine->RegisterObjectMethod(className, "ResourceRefList ReadResourceRefList()", AS_METHODPR(T, ReadResourceRefList, (), ResourceRefList), AS_CALL_THISCALL);
  980. // short Deserializer::ReadShort()
  981. engine->RegisterObjectMethod(className, "int16 ReadShort()", AS_METHODPR(T, ReadShort, (), short), AS_CALL_THISCALL);
  982. // String Deserializer::ReadString()
  983. engine->RegisterObjectMethod(className, "String ReadString()", AS_METHODPR(T, ReadString, (), String), AS_CALL_THISCALL);
  984. // StringHash Deserializer::ReadStringHash()
  985. engine->RegisterObjectMethod(className, "StringHash ReadStringHash()", AS_METHODPR(T, ReadStringHash, (), StringHash), AS_CALL_THISCALL);
  986. // StringVector Deserializer::ReadStringVector()
  987. engine->RegisterObjectMethod(className, "Array<String>@ ReadStringVector()", AS_FUNCTION_OBJFIRST(Deserializer_StringVector_ReadStringVector_void_template<Deserializer>), AS_CALL_CDECL_OBJFIRST);
  988. // unsigned char Deserializer::ReadUByte()
  989. engine->RegisterObjectMethod(className, "uint8 ReadUByte()", AS_METHODPR(T, ReadUByte, (), unsigned char), AS_CALL_THISCALL);
  990. // unsigned Deserializer::ReadUInt()
  991. engine->RegisterObjectMethod(className, "uint ReadUInt()", AS_METHODPR(T, ReadUInt, (), unsigned), AS_CALL_THISCALL);
  992. // unsigned long long Deserializer::ReadUInt64()
  993. engine->RegisterObjectMethod(className, "uint64 ReadUInt64()", AS_METHODPR(T, ReadUInt64, (), unsigned long long), AS_CALL_THISCALL);
  994. // unsigned short Deserializer::ReadUShort()
  995. engine->RegisterObjectMethod(className, "uint16 ReadUShort()", AS_METHODPR(T, ReadUShort, (), unsigned short), AS_CALL_THISCALL);
  996. // Variant Deserializer::ReadVariant()
  997. engine->RegisterObjectMethod(className, "Variant ReadVariant()", AS_METHODPR(T, ReadVariant, (), Variant), AS_CALL_THISCALL);
  998. // Variant Deserializer::ReadVariant(VariantType type)
  999. engine->RegisterObjectMethod(className, "Variant ReadVariant(VariantType)", AS_METHODPR(T, ReadVariant, (VariantType), Variant), AS_CALL_THISCALL);
  1000. // VariantMap Deserializer::ReadVariantMap()
  1001. engine->RegisterObjectMethod(className, "VariantMap ReadVariantMap()", AS_METHODPR(T, ReadVariantMap, (), VariantMap), AS_CALL_THISCALL);
  1002. // Vector2 Deserializer::ReadVector2()
  1003. engine->RegisterObjectMethod(className, "Vector2 ReadVector2()", AS_METHODPR(T, ReadVector2, (), Vector2), AS_CALL_THISCALL);
  1004. // Vector3 Deserializer::ReadVector3()
  1005. engine->RegisterObjectMethod(className, "Vector3 ReadVector3()", AS_METHODPR(T, ReadVector3, (), Vector3), AS_CALL_THISCALL);
  1006. // Vector4 Deserializer::ReadVector4()
  1007. engine->RegisterObjectMethod(className, "Vector4 ReadVector4()", AS_METHODPR(T, ReadVector4, (), Vector4), AS_CALL_THISCALL);
  1008. // unsigned Deserializer::ReadVLE()
  1009. engine->RegisterObjectMethod(className, "uint ReadVLE()", AS_METHODPR(T, ReadVLE, (), unsigned), AS_CALL_THISCALL);
  1010. // virtual unsigned Deserializer::Seek(unsigned position) = 0
  1011. engine->RegisterObjectMethod(className, "uint Seek(uint)", AS_METHODPR(T, Seek, (unsigned), unsigned), AS_CALL_THISCALL);
  1012. // unsigned Deserializer::SeekRelative(int delta)
  1013. engine->RegisterObjectMethod(className, "uint SeekRelative(int)", AS_METHODPR(T, SeekRelative, (int), unsigned), AS_CALL_THISCALL);
  1014. // unsigned Deserializer::Tell() const
  1015. engine->RegisterObjectMethod(className, "uint Tell() const", AS_METHODPR(T, Tell, () const, unsigned), AS_CALL_THISCALL);
  1016. #ifdef REGISTER_MEMBERS_MANUAL_PART_Deserializer
  1017. REGISTER_MEMBERS_MANUAL_PART_Deserializer();
  1018. #endif
  1019. }
  1020. // struct DirtyBits | File: ../Scene/ReplicationState.h
  1021. template <class T> void RegisterMembers_DirtyBits(asIScriptEngine* engine, const char* className)
  1022. {
  1023. // void DirtyBits::Clear(unsigned index)
  1024. engine->RegisterObjectMethod(className, "void Clear(uint)", AS_METHODPR(T, Clear, (unsigned), void), AS_CALL_THISCALL);
  1025. // void DirtyBits::ClearAll()
  1026. engine->RegisterObjectMethod(className, "void ClearAll()", AS_METHODPR(T, ClearAll, (), void), AS_CALL_THISCALL);
  1027. // unsigned DirtyBits::Count() const
  1028. engine->RegisterObjectMethod(className, "uint Count() const", AS_METHODPR(T, Count, () const, unsigned), AS_CALL_THISCALL);
  1029. // bool DirtyBits::IsSet(unsigned index) const
  1030. engine->RegisterObjectMethod(className, "bool IsSet(uint) const", AS_METHODPR(T, IsSet, (unsigned) const, bool), AS_CALL_THISCALL);
  1031. // void DirtyBits::Set(unsigned index)
  1032. engine->RegisterObjectMethod(className, "void Set(uint)", AS_METHODPR(T, Set, (unsigned), void), AS_CALL_THISCALL);
  1033. // unsigned char DirtyBits::data_[MAX_NETWORK_ATTRIBUTES/8]
  1034. // Not registered because array
  1035. // unsigned char DirtyBits::count_
  1036. engine->RegisterObjectProperty(className, "uint8 count", offsetof(T, count_));
  1037. #ifdef REGISTER_MEMBERS_MANUAL_PART_DirtyBits
  1038. REGISTER_MEMBERS_MANUAL_PART_DirtyBits();
  1039. #endif
  1040. }
  1041. // struct FileSelectorEntry | File: ../UI/FileSelector.h
  1042. template <class T> void RegisterMembers_FileSelectorEntry(asIScriptEngine* engine, const char* className)
  1043. {
  1044. // String FileSelectorEntry::name_
  1045. engine->RegisterObjectProperty(className, "String name", offsetof(T, name_));
  1046. // bool FileSelectorEntry::directory_
  1047. engine->RegisterObjectProperty(className, "bool directory", offsetof(T, directory_));
  1048. #ifdef REGISTER_MEMBERS_MANUAL_PART_FileSelectorEntry
  1049. REGISTER_MEMBERS_MANUAL_PART_FileSelectorEntry();
  1050. #endif
  1051. }
  1052. // struct FocusParameters | File: ../Graphics/Light.h
  1053. template <class T> void RegisterMembers_FocusParameters(asIScriptEngine* engine, const char* className)
  1054. {
  1055. // void FocusParameters::Validate()
  1056. engine->RegisterObjectMethod(className, "void Validate()", AS_METHODPR(T, Validate, (), void), AS_CALL_THISCALL);
  1057. // bool FocusParameters::focus_
  1058. engine->RegisterObjectProperty(className, "bool focus", offsetof(T, focus_));
  1059. // bool FocusParameters::nonUniform_
  1060. engine->RegisterObjectProperty(className, "bool nonUniform", offsetof(T, nonUniform_));
  1061. // bool FocusParameters::autoSize_
  1062. engine->RegisterObjectProperty(className, "bool autoSize", offsetof(T, autoSize_));
  1063. // float FocusParameters::quantize_
  1064. engine->RegisterObjectProperty(className, "float quantize", offsetof(T, quantize_));
  1065. // float FocusParameters::minView_
  1066. engine->RegisterObjectProperty(className, "float minView", offsetof(T, minView_));
  1067. #ifdef REGISTER_MEMBERS_MANUAL_PART_FocusParameters
  1068. REGISTER_MEMBERS_MANUAL_PART_FocusParameters();
  1069. #endif
  1070. }
  1071. // struct FontGlyph | File: ../UI/FontFace.h
  1072. template <class T> void RegisterMembers_FontGlyph(asIScriptEngine* engine, const char* className)
  1073. {
  1074. // short FontGlyph::x_
  1075. engine->RegisterObjectProperty(className, "int16 x", offsetof(T, x_));
  1076. // short FontGlyph::y_
  1077. engine->RegisterObjectProperty(className, "int16 y", offsetof(T, y_));
  1078. // short FontGlyph::texWidth_
  1079. engine->RegisterObjectProperty(className, "int16 texWidth", offsetof(T, texWidth_));
  1080. // short FontGlyph::texHeight_
  1081. engine->RegisterObjectProperty(className, "int16 texHeight", offsetof(T, texHeight_));
  1082. // float FontGlyph::width_
  1083. engine->RegisterObjectProperty(className, "float width", offsetof(T, width_));
  1084. // float FontGlyph::height_
  1085. engine->RegisterObjectProperty(className, "float height", offsetof(T, height_));
  1086. // float FontGlyph::offsetX_
  1087. engine->RegisterObjectProperty(className, "float offsetX", offsetof(T, offsetX_));
  1088. // float FontGlyph::offsetY_
  1089. engine->RegisterObjectProperty(className, "float offsetY", offsetof(T, offsetY_));
  1090. // float FontGlyph::advanceX_
  1091. engine->RegisterObjectProperty(className, "float advanceX", offsetof(T, advanceX_));
  1092. // unsigned FontGlyph::page_
  1093. engine->RegisterObjectProperty(className, "uint page", offsetof(T, page_));
  1094. // bool FontGlyph::used_
  1095. engine->RegisterObjectProperty(className, "bool used", offsetof(T, used_));
  1096. #ifdef REGISTER_MEMBERS_MANUAL_PART_FontGlyph
  1097. REGISTER_MEMBERS_MANUAL_PART_FontGlyph();
  1098. #endif
  1099. }
  1100. // struct FrameInfo | File: ../Graphics/Drawable.h
  1101. template <class T> void RegisterMembers_FrameInfo(asIScriptEngine* engine, const char* className)
  1102. {
  1103. // Camera* FrameInfo::camera_
  1104. // Not registered because pointer
  1105. // unsigned FrameInfo::frameNumber_
  1106. engine->RegisterObjectProperty(className, "uint frameNumber", offsetof(T, frameNumber_));
  1107. // float FrameInfo::timeStep_
  1108. engine->RegisterObjectProperty(className, "float timeStep", offsetof(T, timeStep_));
  1109. // IntVector2 FrameInfo::viewSize_
  1110. engine->RegisterObjectProperty(className, "IntVector2 viewSize", offsetof(T, viewSize_));
  1111. #ifdef REGISTER_MEMBERS_MANUAL_PART_FrameInfo
  1112. REGISTER_MEMBERS_MANUAL_PART_FrameInfo();
  1113. #endif
  1114. }
  1115. // class Frustum | File: ../Math/Frustum.h
  1116. template <class T> void RegisterMembers_Frustum(asIScriptEngine* engine, const char* className)
  1117. {
  1118. // void Frustum::Define(float fov, float aspectRatio, float zoom, float nearZ, float farZ, const Matrix3x4& transform = Matrix3x4::IDENTITY)
  1119. engine->RegisterObjectMethod(className, "void Define(float, float, float, float, float, const Matrix3x4&in = Matrix3x4::IDENTITY)", AS_METHODPR(T, Define, (float, float, float, float, float, const Matrix3x4&), void), AS_CALL_THISCALL);
  1120. // void Frustum::Define(const Vector3& near, const Vector3& far, const Matrix3x4& transform = Matrix3x4::IDENTITY)
  1121. engine->RegisterObjectMethod(className, "void Define(const Vector3&in, const Vector3&in, const Matrix3x4&in = Matrix3x4::IDENTITY)", AS_METHODPR(T, Define, (const Vector3&, const Vector3&, const Matrix3x4&), void), AS_CALL_THISCALL);
  1122. // void Frustum::Define(const BoundingBox& box, const Matrix3x4& transform = Matrix3x4::IDENTITY)
  1123. engine->RegisterObjectMethod(className, "void Define(const BoundingBox&in, const Matrix3x4&in = Matrix3x4::IDENTITY)", AS_METHODPR(T, Define, (const BoundingBox&, const Matrix3x4&), void), AS_CALL_THISCALL);
  1124. // void Frustum::Define(const Matrix4& projection)
  1125. engine->RegisterObjectMethod(className, "void Define(const Matrix4&in)", AS_METHODPR(T, Define, (const Matrix4&), void), AS_CALL_THISCALL);
  1126. // void Frustum::DefineOrtho(float orthoSize, float aspectRatio, float zoom, float nearZ, float farZ, const Matrix3x4& transform = Matrix3x4::IDENTITY)
  1127. engine->RegisterObjectMethod(className, "void DefineOrtho(float, float, float, float, float, const Matrix3x4&in = Matrix3x4::IDENTITY)", AS_METHODPR(T, DefineOrtho, (float, float, float, float, float, const Matrix3x4&), void), AS_CALL_THISCALL);
  1128. // void Frustum::DefineSplit(const Matrix4& projection, float near, float far)
  1129. engine->RegisterObjectMethod(className, "void DefineSplit(const Matrix4&in, float, float)", AS_METHODPR(T, DefineSplit, (const Matrix4&, float, float), void), AS_CALL_THISCALL);
  1130. // float Frustum::Distance(const Vector3& point) const
  1131. engine->RegisterObjectMethod(className, "float Distance(const Vector3&in) const", AS_METHODPR(T, Distance, (const Vector3&) const, float), AS_CALL_THISCALL);
  1132. // Intersection Frustum::IsInside(const Vector3& point) const
  1133. engine->RegisterObjectMethod(className, "Intersection IsInside(const Vector3&in) const", AS_METHODPR(T, IsInside, (const Vector3&) const, Intersection), AS_CALL_THISCALL);
  1134. // Intersection Frustum::IsInside(const Sphere& sphere) const
  1135. engine->RegisterObjectMethod(className, "Intersection IsInside(const Sphere&in) const", AS_METHODPR(T, IsInside, (const Sphere&) const, Intersection), AS_CALL_THISCALL);
  1136. // Intersection Frustum::IsInside(const BoundingBox& box) const
  1137. engine->RegisterObjectMethod(className, "Intersection IsInside(const BoundingBox&in) const", AS_METHODPR(T, IsInside, (const BoundingBox&) const, Intersection), AS_CALL_THISCALL);
  1138. // Intersection Frustum::IsInsideFast(const Sphere& sphere) const
  1139. engine->RegisterObjectMethod(className, "Intersection IsInsideFast(const Sphere&in) const", AS_METHODPR(T, IsInsideFast, (const Sphere&) const, Intersection), AS_CALL_THISCALL);
  1140. // Intersection Frustum::IsInsideFast(const BoundingBox& box) const
  1141. engine->RegisterObjectMethod(className, "Intersection IsInsideFast(const BoundingBox&in) const", AS_METHODPR(T, IsInsideFast, (const BoundingBox&) const, Intersection), AS_CALL_THISCALL);
  1142. // Frustum& Frustum::operator =(const Frustum& rhs) noexcept
  1143. engine->RegisterObjectMethod(className, "Frustum& opAssign(const Frustum&in)", AS_METHODPR(T, operator=, (const Frustum&), Frustum&), AS_CALL_THISCALL);
  1144. // Rect Frustum::Projected(const Matrix4& projection) const
  1145. engine->RegisterObjectMethod(className, "Rect Projected(const Matrix4&in) const", AS_METHODPR(T, Projected, (const Matrix4&) const, Rect), AS_CALL_THISCALL);
  1146. // void Frustum::Transform(const Matrix3& transform)
  1147. engine->RegisterObjectMethod(className, "void Transform(const Matrix3&in)", AS_METHODPR(T, Transform, (const Matrix3&), void), AS_CALL_THISCALL);
  1148. // void Frustum::Transform(const Matrix3x4& transform)
  1149. engine->RegisterObjectMethod(className, "void Transform(const Matrix3x4&in)", AS_METHODPR(T, Transform, (const Matrix3x4&), void), AS_CALL_THISCALL);
  1150. // Frustum Frustum::Transformed(const Matrix3& transform) const
  1151. engine->RegisterObjectMethod(className, "Frustum Transformed(const Matrix3&in) const", AS_METHODPR(T, Transformed, (const Matrix3&) const, Frustum), AS_CALL_THISCALL);
  1152. // Frustum Frustum::Transformed(const Matrix3x4& transform) const
  1153. engine->RegisterObjectMethod(className, "Frustum Transformed(const Matrix3x4&in) const", AS_METHODPR(T, Transformed, (const Matrix3x4&) const, Frustum), AS_CALL_THISCALL);
  1154. // void Frustum::UpdatePlanes()
  1155. engine->RegisterObjectMethod(className, "void UpdatePlanes()", AS_METHODPR(T, UpdatePlanes, (), void), AS_CALL_THISCALL);
  1156. // Plane Frustum::planes_[NUM_FRUSTUM_PLANES]
  1157. // Not registered because array
  1158. // Vector3 Frustum::vertices_[NUM_FRUSTUM_VERTICES]
  1159. // Not registered because array
  1160. #ifdef REGISTER_MEMBERS_MANUAL_PART_Frustum
  1161. REGISTER_MEMBERS_MANUAL_PART_Frustum();
  1162. #endif
  1163. }
  1164. // class GPUObject | File: ../Graphics/GPUObject.h
  1165. template <class T> void RegisterMembers_GPUObject(asIScriptEngine* engine, const char* className)
  1166. {
  1167. // void* GPUObject::GetGPUObject() const
  1168. // Error: type "void*" can not automatically bind
  1169. // void GPUObject::ClearDataLost()
  1170. engine->RegisterObjectMethod(className, "void ClearDataLost()", AS_METHODPR(T, ClearDataLost, (), void), AS_CALL_THISCALL);
  1171. // unsigned GPUObject::GetGPUObjectName() const
  1172. engine->RegisterObjectMethod(className, "uint GetGPUObjectName() const", AS_METHODPR(T, GetGPUObjectName, () const, unsigned), AS_CALL_THISCALL);
  1173. // Graphics* GPUObject::GetGraphics() const
  1174. engine->RegisterObjectMethod(className, "Graphics@+ GetGraphics() const", AS_METHODPR(T, GetGraphics, () const, Graphics*), AS_CALL_THISCALL);
  1175. // bool GPUObject::HasPendingData() const
  1176. engine->RegisterObjectMethod(className, "bool HasPendingData() const", AS_METHODPR(T, HasPendingData, () const, bool), AS_CALL_THISCALL);
  1177. // bool GPUObject::IsDataLost() const
  1178. engine->RegisterObjectMethod(className, "bool IsDataLost() const", AS_METHODPR(T, IsDataLost, () const, bool), AS_CALL_THISCALL);
  1179. engine->RegisterObjectMethod(className, "bool get_dataLost() const", AS_METHODPR(T, IsDataLost, () const, bool), AS_CALL_THISCALL);
  1180. // virtual void GPUObject::OnDeviceLost()
  1181. engine->RegisterObjectMethod(className, "void OnDeviceLost()", AS_METHODPR(T, OnDeviceLost, (), void), AS_CALL_THISCALL);
  1182. // virtual void GPUObject::OnDeviceReset()
  1183. engine->RegisterObjectMethod(className, "void OnDeviceReset()", AS_METHODPR(T, OnDeviceReset, (), void), AS_CALL_THISCALL);
  1184. // virtual void GPUObject::Release()
  1185. engine->RegisterObjectMethod(className, "void Release()", AS_METHODPR(T, Release, (), void), AS_CALL_THISCALL);
  1186. #ifdef REGISTER_MEMBERS_MANUAL_PART_GPUObject
  1187. REGISTER_MEMBERS_MANUAL_PART_GPUObject();
  1188. #endif
  1189. }
  1190. // struct GeometryDesc | File: ../Graphics/Model.h
  1191. template <class T> void RegisterMembers_GeometryDesc(asIScriptEngine* engine, const char* className)
  1192. {
  1193. // PrimitiveType GeometryDesc::type_
  1194. engine->RegisterObjectProperty(className, "PrimitiveType type", offsetof(T, type_));
  1195. // unsigned GeometryDesc::vbRef_
  1196. engine->RegisterObjectProperty(className, "uint vbRef", offsetof(T, vbRef_));
  1197. // unsigned GeometryDesc::ibRef_
  1198. engine->RegisterObjectProperty(className, "uint ibRef", offsetof(T, ibRef_));
  1199. // unsigned GeometryDesc::indexStart_
  1200. engine->RegisterObjectProperty(className, "uint indexStart", offsetof(T, indexStart_));
  1201. // unsigned GeometryDesc::indexCount_
  1202. engine->RegisterObjectProperty(className, "uint indexCount", offsetof(T, indexCount_));
  1203. #ifdef REGISTER_MEMBERS_MANUAL_PART_GeometryDesc
  1204. REGISTER_MEMBERS_MANUAL_PART_GeometryDesc();
  1205. #endif
  1206. }
  1207. // struct GlyphLocation | File: ../UI/Text.h
  1208. template <class T> void RegisterMembers_GlyphLocation(asIScriptEngine* engine, const char* className)
  1209. {
  1210. // const FontGlyph* GlyphLocation::glyph_
  1211. // Not registered because pointer
  1212. // float GlyphLocation::x_
  1213. engine->RegisterObjectProperty(className, "float x", offsetof(T, x_));
  1214. // float GlyphLocation::y_
  1215. engine->RegisterObjectProperty(className, "float y", offsetof(T, y_));
  1216. #ifdef REGISTER_MEMBERS_MANUAL_PART_GlyphLocation
  1217. REGISTER_MEMBERS_MANUAL_PART_GlyphLocation();
  1218. #endif
  1219. }
  1220. // class HashBase | File: ../Container/HashBase.h
  1221. template <class T> void RegisterMembers_HashBase(asIScriptEngine* engine, const char* className)
  1222. {
  1223. // bool HashBase::Empty() const
  1224. engine->RegisterObjectMethod(className, "bool Empty() const", AS_METHODPR(T, Empty, () const, bool), AS_CALL_THISCALL);
  1225. // unsigned HashBase::NumBuckets() const
  1226. engine->RegisterObjectMethod(className, "uint NumBuckets() const", AS_METHODPR(T, NumBuckets, () const, unsigned), AS_CALL_THISCALL);
  1227. // unsigned HashBase::Size() const
  1228. engine->RegisterObjectMethod(className, "uint Size() const", AS_METHODPR(T, Size, () const, unsigned), AS_CALL_THISCALL);
  1229. // void HashBase::Swap(HashBase& rhs)
  1230. engine->RegisterObjectMethod(className, "void Swap(HashBase&)", AS_METHODPR(T, Swap, (HashBase&), void), AS_CALL_THISCALL);
  1231. // static const unsigned HashBase::MIN_BUCKETS
  1232. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const uint MIN_BUCKETS", (void*)&T::MIN_BUCKETS);engine->SetDefaultNamespace("");
  1233. // static const unsigned HashBase::MAX_LOAD_FACTOR
  1234. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const uint MAX_LOAD_FACTOR", (void*)&T::MAX_LOAD_FACTOR);engine->SetDefaultNamespace("");
  1235. #ifdef REGISTER_MEMBERS_MANUAL_PART_HashBase
  1236. REGISTER_MEMBERS_MANUAL_PART_HashBase();
  1237. #endif
  1238. }
  1239. // struct HashIteratorBase | File: ../Container/HashBase.h
  1240. template <class T> void RegisterMembers_HashIteratorBase(asIScriptEngine* engine, const char* className)
  1241. {
  1242. // bool HashIteratorBase::operator !=(const HashIteratorBase& rhs) const
  1243. // Only operator == is needed
  1244. // void HashIteratorBase::GotoNext()
  1245. engine->RegisterObjectMethod(className, "void GotoNext()", AS_METHODPR(T, GotoNext, (), void), AS_CALL_THISCALL);
  1246. // void HashIteratorBase::GotoPrev()
  1247. engine->RegisterObjectMethod(className, "void GotoPrev()", AS_METHODPR(T, GotoPrev, (), void), AS_CALL_THISCALL);
  1248. // bool HashIteratorBase::operator ==(const HashIteratorBase& rhs) const
  1249. engine->RegisterObjectMethod(className, "bool opEquals(const HashIteratorBase&in) const", AS_METHODPR(T, operator==, (const HashIteratorBase&) const, bool), AS_CALL_THISCALL);
  1250. // HashNodeBase* HashIteratorBase::ptr_
  1251. // Not registered because pointer
  1252. #ifdef REGISTER_MEMBERS_MANUAL_PART_HashIteratorBase
  1253. REGISTER_MEMBERS_MANUAL_PART_HashIteratorBase();
  1254. #endif
  1255. }
  1256. // struct HashNodeBase | File: ../Container/HashBase.h
  1257. template <class T> void RegisterMembers_HashNodeBase(asIScriptEngine* engine, const char* className)
  1258. {
  1259. // HashNodeBase* HashNodeBase::down_
  1260. // Not registered because pointer
  1261. // HashNodeBase* HashNodeBase::prev_
  1262. // Not registered because pointer
  1263. // HashNodeBase* HashNodeBase::next_
  1264. // Not registered because pointer
  1265. #ifdef REGISTER_MEMBERS_MANUAL_PART_HashNodeBase
  1266. REGISTER_MEMBERS_MANUAL_PART_HashNodeBase();
  1267. #endif
  1268. }
  1269. // class HiresTimer | File: ../Core/Timer.h
  1270. template <class T> void RegisterMembers_HiresTimer(asIScriptEngine* engine, const char* className)
  1271. {
  1272. // long long HiresTimer::GetUSec(bool reset)
  1273. engine->RegisterObjectMethod(className, "int64 GetUSec(bool)", AS_METHODPR(T, GetUSec, (bool), long long), AS_CALL_THISCALL);
  1274. // void HiresTimer::Reset()
  1275. engine->RegisterObjectMethod(className, "void Reset()", AS_METHODPR(T, Reset, (), void), AS_CALL_THISCALL);
  1276. // static bool HiresTimer::IsSupported()
  1277. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("bool IsSupported()", AS_FUNCTIONPR(T::IsSupported, (), bool), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  1278. // static long long HiresTimer::GetFrequency()
  1279. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("int64 GetFrequency()", AS_FUNCTIONPR(T::GetFrequency, (), long long), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  1280. #ifdef REGISTER_MEMBERS_MANUAL_PART_HiresTimer
  1281. REGISTER_MEMBERS_MANUAL_PART_HiresTimer();
  1282. #endif
  1283. }
  1284. // struct IndexBufferDesc | File: ../Graphics/Model.h
  1285. template <class T> void RegisterMembers_IndexBufferDesc(asIScriptEngine* engine, const char* className)
  1286. {
  1287. // SharedArrayPtr<unsigned char> IndexBufferDesc::data_
  1288. // Error: type "SharedArrayPtr<unsigned char>" can not automatically bind
  1289. // unsigned IndexBufferDesc::indexCount_
  1290. engine->RegisterObjectProperty(className, "uint indexCount", offsetof(T, indexCount_));
  1291. // unsigned IndexBufferDesc::indexSize_
  1292. engine->RegisterObjectProperty(className, "uint indexSize", offsetof(T, indexSize_));
  1293. // unsigned IndexBufferDesc::dataSize_
  1294. engine->RegisterObjectProperty(className, "uint dataSize", offsetof(T, dataSize_));
  1295. #ifdef REGISTER_MEMBERS_MANUAL_PART_IndexBufferDesc
  1296. REGISTER_MEMBERS_MANUAL_PART_IndexBufferDesc();
  1297. #endif
  1298. }
  1299. // struct InstanceData | File: ../Graphics/Batch.h
  1300. template <class T> void RegisterMembers_InstanceData(asIScriptEngine* engine, const char* className)
  1301. {
  1302. // const Matrix3x4* InstanceData::worldTransform_
  1303. // Not registered because pointer
  1304. // const void* InstanceData::instancingData_
  1305. // Not registered because pointer
  1306. // float InstanceData::distance_
  1307. engine->RegisterObjectProperty(className, "float distance", offsetof(T, distance_));
  1308. #ifdef REGISTER_MEMBERS_MANUAL_PART_InstanceData
  1309. REGISTER_MEMBERS_MANUAL_PART_InstanceData();
  1310. #endif
  1311. }
  1312. // class IntRect | File: ../Math/Rect.h
  1313. template <class T> void RegisterMembers_IntRect(asIScriptEngine* engine, const char* className)
  1314. {
  1315. // const int* IntRect::Data() const
  1316. // Error: type "const int*" can not automatically bind
  1317. // bool IntRect::operator !=(const IntRect& rhs) const
  1318. // Only operator == is needed
  1319. // int IntRect::Bottom() const
  1320. engine->RegisterObjectMethod(className, "int Bottom() const", AS_METHODPR(T, Bottom, () const, int), AS_CALL_THISCALL);
  1321. // void IntRect::Clip(const IntRect& rect)
  1322. engine->RegisterObjectMethod(className, "void Clip(const IntRect&in)", AS_METHODPR(T, Clip, (const IntRect&), void), AS_CALL_THISCALL);
  1323. // int IntRect::Height() const
  1324. engine->RegisterObjectMethod(className, "int Height() const", AS_METHODPR(T, Height, () const, int), AS_CALL_THISCALL);
  1325. engine->RegisterObjectMethod(className, "int get_height() const", AS_METHODPR(T, Height, () const, int), AS_CALL_THISCALL);
  1326. // Intersection IntRect::IsInside(const IntVector2& point) const
  1327. engine->RegisterObjectMethod(className, "Intersection IsInside(const IntVector2&in) const", AS_METHODPR(T, IsInside, (const IntVector2&) const, Intersection), AS_CALL_THISCALL);
  1328. // Intersection IntRect::IsInside(const IntRect& rect) const
  1329. engine->RegisterObjectMethod(className, "Intersection IsInside(const IntRect&in) const", AS_METHODPR(T, IsInside, (const IntRect&) const, Intersection), AS_CALL_THISCALL);
  1330. // int IntRect::Left() const
  1331. engine->RegisterObjectMethod(className, "int Left() const", AS_METHODPR(T, Left, () const, int), AS_CALL_THISCALL);
  1332. // IntVector2 IntRect::Max() const
  1333. engine->RegisterObjectMethod(className, "IntVector2 Max() const", AS_METHODPR(T, Max, () const, IntVector2), AS_CALL_THISCALL);
  1334. // void IntRect::Merge(const IntRect& rect)
  1335. engine->RegisterObjectMethod(className, "void Merge(const IntRect&in)", AS_METHODPR(T, Merge, (const IntRect&), void), AS_CALL_THISCALL);
  1336. // IntVector2 IntRect::Min() const
  1337. engine->RegisterObjectMethod(className, "IntVector2 Min() const", AS_METHODPR(T, Min, () const, IntVector2), AS_CALL_THISCALL);
  1338. // IntRect IntRect::operator *(float value) const
  1339. engine->RegisterObjectMethod(className, "IntRect opMul(float) const", AS_METHODPR(T, operator*, (float) const, IntRect), AS_CALL_THISCALL);
  1340. // IntRect& IntRect::operator *=(float value)
  1341. engine->RegisterObjectMethod(className, "IntRect& opMulAssign(float)", AS_METHODPR(T, operator*=, (float), IntRect&), AS_CALL_THISCALL);
  1342. // IntRect IntRect::operator +(const IntRect& rhs) const
  1343. engine->RegisterObjectMethod(className, "IntRect opAdd(const IntRect&in) const", AS_METHODPR(T, operator+, (const IntRect&) const, IntRect), AS_CALL_THISCALL);
  1344. // IntRect& IntRect::operator +=(const IntRect& rhs)
  1345. engine->RegisterObjectMethod(className, "IntRect& opAddAssign(const IntRect&in)", AS_METHODPR(T, operator+=, (const IntRect&), IntRect&), AS_CALL_THISCALL);
  1346. // IntRect IntRect::operator -(const IntRect& rhs) const
  1347. engine->RegisterObjectMethod(className, "IntRect opSub(const IntRect&in) const", AS_METHODPR(T, operator-, (const IntRect&) const, IntRect), AS_CALL_THISCALL);
  1348. // IntRect& IntRect::operator -=(const IntRect& rhs)
  1349. engine->RegisterObjectMethod(className, "IntRect& opSubAssign(const IntRect&in)", AS_METHODPR(T, operator-=, (const IntRect&), IntRect&), AS_CALL_THISCALL);
  1350. // IntRect IntRect::operator /(float value) const
  1351. engine->RegisterObjectMethod(className, "IntRect opDiv(float) const", AS_METHODPR(T, operator/, (float) const, IntRect), AS_CALL_THISCALL);
  1352. // IntRect& IntRect::operator /=(float value)
  1353. engine->RegisterObjectMethod(className, "IntRect& opDivAssign(float)", AS_METHODPR(T, operator/=, (float), IntRect&), AS_CALL_THISCALL);
  1354. // bool IntRect::operator ==(const IntRect& rhs) const
  1355. engine->RegisterObjectMethod(className, "bool opEquals(const IntRect&in) const", AS_METHODPR(T, operator==, (const IntRect&) const, bool), AS_CALL_THISCALL);
  1356. // int IntRect::Right() const
  1357. engine->RegisterObjectMethod(className, "int Right() const", AS_METHODPR(T, Right, () const, int), AS_CALL_THISCALL);
  1358. // IntVector2 IntRect::Size() const
  1359. engine->RegisterObjectMethod(className, "IntVector2 Size() const", AS_METHODPR(T, Size, () const, IntVector2), AS_CALL_THISCALL);
  1360. engine->RegisterObjectMethod(className, "IntVector2 get_size() const", AS_METHODPR(T, Size, () const, IntVector2), AS_CALL_THISCALL);
  1361. // int IntRect::Top() const
  1362. engine->RegisterObjectMethod(className, "int Top() const", AS_METHODPR(T, Top, () const, int), AS_CALL_THISCALL);
  1363. // String IntRect::ToString() const
  1364. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  1365. // int IntRect::Width() const
  1366. engine->RegisterObjectMethod(className, "int Width() const", AS_METHODPR(T, Width, () const, int), AS_CALL_THISCALL);
  1367. engine->RegisterObjectMethod(className, "int get_width() const", AS_METHODPR(T, Width, () const, int), AS_CALL_THISCALL);
  1368. // int IntRect::left_
  1369. engine->RegisterObjectProperty(className, "int left", offsetof(T, left_));
  1370. // int IntRect::top_
  1371. engine->RegisterObjectProperty(className, "int top", offsetof(T, top_));
  1372. // int IntRect::right_
  1373. engine->RegisterObjectProperty(className, "int right", offsetof(T, right_));
  1374. // int IntRect::bottom_
  1375. engine->RegisterObjectProperty(className, "int bottom", offsetof(T, bottom_));
  1376. // static const IntRect IntRect::ZERO
  1377. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntRect ZERO", (void*)&T::ZERO);engine->SetDefaultNamespace("");
  1378. #ifdef REGISTER_MEMBERS_MANUAL_PART_IntRect
  1379. REGISTER_MEMBERS_MANUAL_PART_IntRect();
  1380. #endif
  1381. }
  1382. // class IntVector2 | File: ../Math/Vector2.h
  1383. template <class T> void RegisterMembers_IntVector2(asIScriptEngine* engine, const char* className)
  1384. {
  1385. // const int* IntVector2::Data() const
  1386. // Error: type "const int*" can not automatically bind
  1387. // bool IntVector2::operator !=(const IntVector2& rhs) const
  1388. // Only operator == is needed
  1389. // float IntVector2::Length() const
  1390. engine->RegisterObjectMethod(className, "float Length() const", AS_METHODPR(T, Length, () const, float), AS_CALL_THISCALL);
  1391. // IntVector2 IntVector2::operator *(int rhs) const
  1392. engine->RegisterObjectMethod(className, "IntVector2 opMul(int) const", AS_METHODPR(T, operator*, (int) const, IntVector2), AS_CALL_THISCALL);
  1393. // IntVector2 IntVector2::operator *(const IntVector2& rhs) const
  1394. engine->RegisterObjectMethod(className, "IntVector2 opMul(const IntVector2&in) const", AS_METHODPR(T, operator*, (const IntVector2&) const, IntVector2), AS_CALL_THISCALL);
  1395. // IntVector2& IntVector2::operator *=(int rhs)
  1396. engine->RegisterObjectMethod(className, "IntVector2& opMulAssign(int)", AS_METHODPR(T, operator*=, (int), IntVector2&), AS_CALL_THISCALL);
  1397. // IntVector2& IntVector2::operator *=(const IntVector2& rhs)
  1398. engine->RegisterObjectMethod(className, "IntVector2& opMulAssign(const IntVector2&in)", AS_METHODPR(T, operator*=, (const IntVector2&), IntVector2&), AS_CALL_THISCALL);
  1399. // IntVector2 IntVector2::operator +(const IntVector2& rhs) const
  1400. engine->RegisterObjectMethod(className, "IntVector2 opAdd(const IntVector2&in) const", AS_METHODPR(T, operator+, (const IntVector2&) const, IntVector2), AS_CALL_THISCALL);
  1401. // IntVector2& IntVector2::operator +=(const IntVector2& rhs)
  1402. engine->RegisterObjectMethod(className, "IntVector2& opAddAssign(const IntVector2&in)", AS_METHODPR(T, operator+=, (const IntVector2&), IntVector2&), AS_CALL_THISCALL);
  1403. // IntVector2 IntVector2::operator -() const
  1404. engine->RegisterObjectMethod(className, "IntVector2 opNeg() const", AS_METHODPR(T, operator-, () const, IntVector2), AS_CALL_THISCALL);
  1405. // IntVector2 IntVector2::operator -(const IntVector2& rhs) const
  1406. engine->RegisterObjectMethod(className, "IntVector2 opSub(const IntVector2&in) const", AS_METHODPR(T, operator-, (const IntVector2&) const, IntVector2), AS_CALL_THISCALL);
  1407. // IntVector2& IntVector2::operator -=(const IntVector2& rhs)
  1408. engine->RegisterObjectMethod(className, "IntVector2& opSubAssign(const IntVector2&in)", AS_METHODPR(T, operator-=, (const IntVector2&), IntVector2&), AS_CALL_THISCALL);
  1409. // IntVector2 IntVector2::operator /(int rhs) const
  1410. engine->RegisterObjectMethod(className, "IntVector2 opDiv(int) const", AS_METHODPR(T, operator/, (int) const, IntVector2), AS_CALL_THISCALL);
  1411. // IntVector2 IntVector2::operator /(const IntVector2& rhs) const
  1412. engine->RegisterObjectMethod(className, "IntVector2 opDiv(const IntVector2&in) const", AS_METHODPR(T, operator/, (const IntVector2&) const, IntVector2), AS_CALL_THISCALL);
  1413. // IntVector2& IntVector2::operator /=(int rhs)
  1414. engine->RegisterObjectMethod(className, "IntVector2& opDivAssign(int)", AS_METHODPR(T, operator/=, (int), IntVector2&), AS_CALL_THISCALL);
  1415. // IntVector2& IntVector2::operator /=(const IntVector2& rhs)
  1416. engine->RegisterObjectMethod(className, "IntVector2& opDivAssign(const IntVector2&in)", AS_METHODPR(T, operator/=, (const IntVector2&), IntVector2&), AS_CALL_THISCALL);
  1417. // IntVector2& IntVector2::operator =(const IntVector2& rhs) noexcept = default
  1418. engine->RegisterObjectMethod(className, "IntVector2& opAssign(const IntVector2&in)", AS_METHODPR(T, operator=, (const IntVector2&), IntVector2&), AS_CALL_THISCALL);
  1419. // bool IntVector2::operator ==(const IntVector2& rhs) const
  1420. engine->RegisterObjectMethod(className, "bool opEquals(const IntVector2&in) const", AS_METHODPR(T, operator==, (const IntVector2&) const, bool), AS_CALL_THISCALL);
  1421. // unsigned IntVector2::ToHash() const
  1422. engine->RegisterObjectMethod(className, "uint ToHash() const", AS_METHODPR(T, ToHash, () const, unsigned), AS_CALL_THISCALL);
  1423. // String IntVector2::ToString() const
  1424. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  1425. // int IntVector2::x_
  1426. engine->RegisterObjectProperty(className, "int x", offsetof(T, x_));
  1427. // int IntVector2::y_
  1428. engine->RegisterObjectProperty(className, "int y", offsetof(T, y_));
  1429. // static const IntVector2 IntVector2::ZERO
  1430. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector2 ZERO", (void*)&T::ZERO);engine->SetDefaultNamespace("");
  1431. // static const IntVector2 IntVector2::LEFT
  1432. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector2 LEFT", (void*)&T::LEFT);engine->SetDefaultNamespace("");
  1433. // static const IntVector2 IntVector2::RIGHT
  1434. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector2 RIGHT", (void*)&T::RIGHT);engine->SetDefaultNamespace("");
  1435. // static const IntVector2 IntVector2::UP
  1436. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector2 UP", (void*)&T::UP);engine->SetDefaultNamespace("");
  1437. // static const IntVector2 IntVector2::DOWN
  1438. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector2 DOWN", (void*)&T::DOWN);engine->SetDefaultNamespace("");
  1439. // static const IntVector2 IntVector2::ONE
  1440. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector2 ONE", (void*)&T::ONE);engine->SetDefaultNamespace("");
  1441. #ifdef REGISTER_MEMBERS_MANUAL_PART_IntVector2
  1442. REGISTER_MEMBERS_MANUAL_PART_IntVector2();
  1443. #endif
  1444. }
  1445. // class IntVector3 | File: ../Math/Vector3.h
  1446. template <class T> void RegisterMembers_IntVector3(asIScriptEngine* engine, const char* className)
  1447. {
  1448. // const int* IntVector3::Data() const
  1449. // Error: type "const int*" can not automatically bind
  1450. // bool IntVector3::operator !=(const IntVector3& rhs) const
  1451. // Only operator == is needed
  1452. // float IntVector3::Length() const
  1453. engine->RegisterObjectMethod(className, "float Length() const", AS_METHODPR(T, Length, () const, float), AS_CALL_THISCALL);
  1454. // IntVector3 IntVector3::operator *(int rhs) const
  1455. engine->RegisterObjectMethod(className, "IntVector3 opMul(int) const", AS_METHODPR(T, operator*, (int) const, IntVector3), AS_CALL_THISCALL);
  1456. // IntVector3 IntVector3::operator *(const IntVector3& rhs) const
  1457. engine->RegisterObjectMethod(className, "IntVector3 opMul(const IntVector3&in) const", AS_METHODPR(T, operator*, (const IntVector3&) const, IntVector3), AS_CALL_THISCALL);
  1458. // IntVector3& IntVector3::operator *=(int rhs)
  1459. engine->RegisterObjectMethod(className, "IntVector3& opMulAssign(int)", AS_METHODPR(T, operator*=, (int), IntVector3&), AS_CALL_THISCALL);
  1460. // IntVector3& IntVector3::operator *=(const IntVector3& rhs)
  1461. engine->RegisterObjectMethod(className, "IntVector3& opMulAssign(const IntVector3&in)", AS_METHODPR(T, operator*=, (const IntVector3&), IntVector3&), AS_CALL_THISCALL);
  1462. // IntVector3 IntVector3::operator +(const IntVector3& rhs) const
  1463. engine->RegisterObjectMethod(className, "IntVector3 opAdd(const IntVector3&in) const", AS_METHODPR(T, operator+, (const IntVector3&) const, IntVector3), AS_CALL_THISCALL);
  1464. // IntVector3& IntVector3::operator +=(const IntVector3& rhs)
  1465. engine->RegisterObjectMethod(className, "IntVector3& opAddAssign(const IntVector3&in)", AS_METHODPR(T, operator+=, (const IntVector3&), IntVector3&), AS_CALL_THISCALL);
  1466. // IntVector3 IntVector3::operator -() const
  1467. engine->RegisterObjectMethod(className, "IntVector3 opNeg() const", AS_METHODPR(T, operator-, () const, IntVector3), AS_CALL_THISCALL);
  1468. // IntVector3 IntVector3::operator -(const IntVector3& rhs) const
  1469. engine->RegisterObjectMethod(className, "IntVector3 opSub(const IntVector3&in) const", AS_METHODPR(T, operator-, (const IntVector3&) const, IntVector3), AS_CALL_THISCALL);
  1470. // IntVector3& IntVector3::operator -=(const IntVector3& rhs)
  1471. engine->RegisterObjectMethod(className, "IntVector3& opSubAssign(const IntVector3&in)", AS_METHODPR(T, operator-=, (const IntVector3&), IntVector3&), AS_CALL_THISCALL);
  1472. // IntVector3 IntVector3::operator /(int rhs) const
  1473. engine->RegisterObjectMethod(className, "IntVector3 opDiv(int) const", AS_METHODPR(T, operator/, (int) const, IntVector3), AS_CALL_THISCALL);
  1474. // IntVector3 IntVector3::operator /(const IntVector3& rhs) const
  1475. engine->RegisterObjectMethod(className, "IntVector3 opDiv(const IntVector3&in) const", AS_METHODPR(T, operator/, (const IntVector3&) const, IntVector3), AS_CALL_THISCALL);
  1476. // IntVector3& IntVector3::operator /=(int rhs)
  1477. engine->RegisterObjectMethod(className, "IntVector3& opDivAssign(int)", AS_METHODPR(T, operator/=, (int), IntVector3&), AS_CALL_THISCALL);
  1478. // IntVector3& IntVector3::operator /=(const IntVector3& rhs)
  1479. engine->RegisterObjectMethod(className, "IntVector3& opDivAssign(const IntVector3&in)", AS_METHODPR(T, operator/=, (const IntVector3&), IntVector3&), AS_CALL_THISCALL);
  1480. // IntVector3& IntVector3::operator =(const IntVector3& rhs) noexcept = default
  1481. engine->RegisterObjectMethod(className, "IntVector3& opAssign(const IntVector3&in)", AS_METHODPR(T, operator=, (const IntVector3&), IntVector3&), AS_CALL_THISCALL);
  1482. // bool IntVector3::operator ==(const IntVector3& rhs) const
  1483. engine->RegisterObjectMethod(className, "bool opEquals(const IntVector3&in) const", AS_METHODPR(T, operator==, (const IntVector3&) const, bool), AS_CALL_THISCALL);
  1484. // unsigned IntVector3::ToHash() const
  1485. engine->RegisterObjectMethod(className, "uint ToHash() const", AS_METHODPR(T, ToHash, () const, unsigned), AS_CALL_THISCALL);
  1486. // String IntVector3::ToString() const
  1487. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  1488. // int IntVector3::x_
  1489. engine->RegisterObjectProperty(className, "int x", offsetof(T, x_));
  1490. // int IntVector3::y_
  1491. engine->RegisterObjectProperty(className, "int y", offsetof(T, y_));
  1492. // int IntVector3::z_
  1493. engine->RegisterObjectProperty(className, "int z", offsetof(T, z_));
  1494. // static const IntVector3 IntVector3::ZERO
  1495. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector3 ZERO", (void*)&T::ZERO);engine->SetDefaultNamespace("");
  1496. // static const IntVector3 IntVector3::LEFT
  1497. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector3 LEFT", (void*)&T::LEFT);engine->SetDefaultNamespace("");
  1498. // static const IntVector3 IntVector3::RIGHT
  1499. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector3 RIGHT", (void*)&T::RIGHT);engine->SetDefaultNamespace("");
  1500. // static const IntVector3 IntVector3::UP
  1501. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector3 UP", (void*)&T::UP);engine->SetDefaultNamespace("");
  1502. // static const IntVector3 IntVector3::DOWN
  1503. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector3 DOWN", (void*)&T::DOWN);engine->SetDefaultNamespace("");
  1504. // static const IntVector3 IntVector3::FORWARD
  1505. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector3 FORWARD", (void*)&T::FORWARD);engine->SetDefaultNamespace("");
  1506. // static const IntVector3 IntVector3::BACK
  1507. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector3 BACK", (void*)&T::BACK);engine->SetDefaultNamespace("");
  1508. // static const IntVector3 IntVector3::ONE
  1509. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector3 ONE", (void*)&T::ONE);engine->SetDefaultNamespace("");
  1510. #ifdef REGISTER_MEMBERS_MANUAL_PART_IntVector3
  1511. REGISTER_MEMBERS_MANUAL_PART_IntVector3();
  1512. #endif
  1513. }
  1514. // void JSONValue::SetVariant(const Variant& variant, Context* context = nullptr)
  1515. template <class T> void JSONValue_void_SetVariant_constspVariantamp_Contextstar_template(T* _ptr, const Variant& variant)
  1516. {
  1517. Context* context = GetScriptContext();
  1518. _ptr->SetVariant(variant, context);
  1519. }
  1520. // void JSONValue::SetVariantMap(const VariantMap& variantMap, Context* context = nullptr)
  1521. template <class T> void JSONValue_void_SetVariantMap_constspVariantMapamp_Contextstar_template(T* _ptr, const VariantMap& variantMap)
  1522. {
  1523. Context* context = GetScriptContext();
  1524. _ptr->SetVariantMap(variantMap, context);
  1525. }
  1526. // void JSONValue::SetVariantValue(const Variant& variant, Context* context = nullptr)
  1527. template <class T> void JSONValue_void_SetVariantValue_constspVariantamp_Contextstar_template(T* _ptr, const Variant& variant)
  1528. {
  1529. Context* context = GetScriptContext();
  1530. _ptr->SetVariantValue(variant, context);
  1531. }
  1532. // class JSONValue | File: ../Resource/JSONValue.h
  1533. template <class T> void RegisterMembers_JSONValue(asIScriptEngine* engine, const char* className)
  1534. {
  1535. // JSONObjectIterator JSONValue::Begin()
  1536. // Error: type "JSONObjectIterator" can not automatically bind
  1537. // ConstJSONObjectIterator JSONValue::Begin() const
  1538. // Error: type "ConstJSONObjectIterator" can not automatically bind
  1539. // JSONObjectIterator JSONValue::End()
  1540. // Error: type "JSONObjectIterator" can not automatically bind
  1541. // ConstJSONObjectIterator JSONValue::End() const
  1542. // Error: type "ConstJSONObjectIterator" can not automatically bind
  1543. // const JSONArray& JSONValue::GetArray() const
  1544. // Error: type "const JSONArray&" can not automatically bind
  1545. // const char* JSONValue::GetCString(const char* defaultValue = "") const
  1546. // Error: type "const char*" can not automatically bind
  1547. // const JSONObject& JSONValue::GetObject() const
  1548. // Error: type "const JSONObject&" can not automatically bind
  1549. // VariantVector JSONValue::GetVariantVector() const
  1550. // Error: type "VariantVector" can not automatically bind
  1551. // JSONValue& JSONValue::operator =(const char* rhs)
  1552. // Error: type "const char*" can not automatically bind
  1553. // JSONValue& JSONValue::operator =(const JSONArray& rhs)
  1554. // Error: type "const JSONArray&" can not automatically bind
  1555. // JSONValue& JSONValue::operator =(const JSONObject& rhs)
  1556. // Error: type "const JSONObject&" can not automatically bind
  1557. // void JSONValue::SetVariantVector(const VariantVector& variantVector, Context* context = nullptr)
  1558. // Error: type "const VariantVector&" can not automatically bind
  1559. // void JSONValue::Clear()
  1560. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  1561. // bool JSONValue::Contains(const String& key) const
  1562. engine->RegisterObjectMethod(className, "bool Contains(const String&in) const", AS_METHODPR(T, Contains, (const String&) const, bool), AS_CALL_THISCALL);
  1563. // void JSONValue::Erase(unsigned pos, unsigned length = 1)
  1564. engine->RegisterObjectMethod(className, "void Erase(uint, uint = 1)", AS_METHODPR(T, Erase, (unsigned, unsigned), void), AS_CALL_THISCALL);
  1565. // bool JSONValue::Erase(const String& key)
  1566. engine->RegisterObjectMethod(className, "bool Erase(const String&in)", AS_METHODPR(T, Erase, (const String&), bool), AS_CALL_THISCALL);
  1567. // const JSONValue& JSONValue::Get(const String& key) const
  1568. engine->RegisterObjectMethod(className, "const JSONValue& Get(const String&in) const", AS_METHODPR(T, Get, (const String&) const, const JSONValue&), AS_CALL_THISCALL);
  1569. // bool JSONValue::GetBool(bool defaultValue = false) const
  1570. engine->RegisterObjectMethod(className, "bool GetBool(bool = false) const", AS_METHODPR(T, GetBool, (bool) const, bool), AS_CALL_THISCALL);
  1571. // double JSONValue::GetDouble(double defaultValue = 0.0) const
  1572. engine->RegisterObjectMethod(className, "double GetDouble(double = 0.0) const", AS_METHODPR(T, GetDouble, (double) const, double), AS_CALL_THISCALL);
  1573. // float JSONValue::GetFloat(float defaultValue = 0.0f) const
  1574. engine->RegisterObjectMethod(className, "float GetFloat(float = 0.0f) const", AS_METHODPR(T, GetFloat, (float) const, float), AS_CALL_THISCALL);
  1575. // int JSONValue::GetInt(int defaultValue = 0) const
  1576. engine->RegisterObjectMethod(className, "int GetInt(int = 0) const", AS_METHODPR(T, GetInt, (int) const, int), AS_CALL_THISCALL);
  1577. // JSONNumberType JSONValue::GetNumberType() const
  1578. engine->RegisterObjectMethod(className, "JSONNumberType GetNumberType() const", AS_METHODPR(T, GetNumberType, () const, JSONNumberType), AS_CALL_THISCALL);
  1579. engine->RegisterObjectMethod(className, "JSONNumberType get_numberType() const", AS_METHODPR(T, GetNumberType, () const, JSONNumberType), AS_CALL_THISCALL);
  1580. // String JSONValue::GetNumberTypeName() const
  1581. engine->RegisterObjectMethod(className, "String GetNumberTypeName() const", AS_METHODPR(T, GetNumberTypeName, () const, String), AS_CALL_THISCALL);
  1582. engine->RegisterObjectMethod(className, "String get_numberTypeName() const", AS_METHODPR(T, GetNumberTypeName, () const, String), AS_CALL_THISCALL);
  1583. // const String& JSONValue::GetString(const String& defaultValue = String::EMPTY) const
  1584. engine->RegisterObjectMethod(className, "const String& GetString(const String&in = String::EMPTY) const", AS_METHODPR(T, GetString, (const String&) const, const String&), AS_CALL_THISCALL);
  1585. // unsigned JSONValue::GetUInt(unsigned defaultValue = 0) const
  1586. engine->RegisterObjectMethod(className, "uint GetUInt(uint = 0) const", AS_METHODPR(T, GetUInt, (unsigned) const, unsigned), AS_CALL_THISCALL);
  1587. // JSONValueType JSONValue::GetValueType() const
  1588. engine->RegisterObjectMethod(className, "JSONValueType GetValueType() const", AS_METHODPR(T, GetValueType, () const, JSONValueType), AS_CALL_THISCALL);
  1589. engine->RegisterObjectMethod(className, "JSONValueType get_valueType() const", AS_METHODPR(T, GetValueType, () const, JSONValueType), AS_CALL_THISCALL);
  1590. // String JSONValue::GetValueTypeName() const
  1591. engine->RegisterObjectMethod(className, "String GetValueTypeName() const", AS_METHODPR(T, GetValueTypeName, () const, String), AS_CALL_THISCALL);
  1592. engine->RegisterObjectMethod(className, "String get_valueTypeName() const", AS_METHODPR(T, GetValueTypeName, () const, String), AS_CALL_THISCALL);
  1593. // Variant JSONValue::GetVariant() const
  1594. engine->RegisterObjectMethod(className, "Variant GetVariant() const", AS_METHODPR(T, GetVariant, () const, Variant), AS_CALL_THISCALL);
  1595. // VariantMap JSONValue::GetVariantMap() const
  1596. engine->RegisterObjectMethod(className, "VariantMap GetVariantMap() const", AS_METHODPR(T, GetVariantMap, () const, VariantMap), AS_CALL_THISCALL);
  1597. // Variant JSONValue::GetVariantValue(VariantType type) const
  1598. engine->RegisterObjectMethod(className, "Variant GetVariantValue(VariantType) const", AS_METHODPR(T, GetVariantValue, (VariantType) const, Variant), AS_CALL_THISCALL);
  1599. // void JSONValue::Insert(unsigned pos, const JSONValue& value)
  1600. engine->RegisterObjectMethod(className, "void Insert(uint, const JSONValue&in)", AS_METHODPR(T, Insert, (unsigned, const JSONValue&), void), AS_CALL_THISCALL);
  1601. // bool JSONValue::IsArray() const
  1602. engine->RegisterObjectMethod(className, "bool IsArray() const", AS_METHODPR(T, IsArray, () const, bool), AS_CALL_THISCALL);
  1603. engine->RegisterObjectMethod(className, "bool get_isArray() const", AS_METHODPR(T, IsArray, () const, bool), AS_CALL_THISCALL);
  1604. // bool JSONValue::IsBool() const
  1605. engine->RegisterObjectMethod(className, "bool IsBool() const", AS_METHODPR(T, IsBool, () const, bool), AS_CALL_THISCALL);
  1606. engine->RegisterObjectMethod(className, "bool get_isBool() const", AS_METHODPR(T, IsBool, () const, bool), AS_CALL_THISCALL);
  1607. // bool JSONValue::IsNull() const
  1608. engine->RegisterObjectMethod(className, "bool IsNull() const", AS_METHODPR(T, IsNull, () const, bool), AS_CALL_THISCALL);
  1609. engine->RegisterObjectMethod(className, "bool get_isNull() const", AS_METHODPR(T, IsNull, () const, bool), AS_CALL_THISCALL);
  1610. // bool JSONValue::IsNumber() const
  1611. engine->RegisterObjectMethod(className, "bool IsNumber() const", AS_METHODPR(T, IsNumber, () const, bool), AS_CALL_THISCALL);
  1612. engine->RegisterObjectMethod(className, "bool get_isNumber() const", AS_METHODPR(T, IsNumber, () const, bool), AS_CALL_THISCALL);
  1613. // bool JSONValue::IsObject() const
  1614. engine->RegisterObjectMethod(className, "bool IsObject() const", AS_METHODPR(T, IsObject, () const, bool), AS_CALL_THISCALL);
  1615. engine->RegisterObjectMethod(className, "bool get_isObject() const", AS_METHODPR(T, IsObject, () const, bool), AS_CALL_THISCALL);
  1616. // bool JSONValue::IsString() const
  1617. engine->RegisterObjectMethod(className, "bool IsString() const", AS_METHODPR(T, IsString, () const, bool), AS_CALL_THISCALL);
  1618. engine->RegisterObjectMethod(className, "bool get_isString() const", AS_METHODPR(T, IsString, () const, bool), AS_CALL_THISCALL);
  1619. // JSONValue& JSONValue::operator =(bool rhs)
  1620. engine->RegisterObjectMethod(className, "JSONValue& opAssign(bool)", AS_METHODPR(T, operator=, (bool), JSONValue&), AS_CALL_THISCALL);
  1621. // JSONValue& JSONValue::operator =(int rhs)
  1622. engine->RegisterObjectMethod(className, "JSONValue& opAssign(int)", AS_METHODPR(T, operator=, (int), JSONValue&), AS_CALL_THISCALL);
  1623. // JSONValue& JSONValue::operator =(unsigned rhs)
  1624. engine->RegisterObjectMethod(className, "JSONValue& opAssign(uint)", AS_METHODPR(T, operator=, (unsigned), JSONValue&), AS_CALL_THISCALL);
  1625. // JSONValue& JSONValue::operator =(float rhs)
  1626. engine->RegisterObjectMethod(className, "JSONValue& opAssign(float)", AS_METHODPR(T, operator=, (float), JSONValue&), AS_CALL_THISCALL);
  1627. // JSONValue& JSONValue::operator =(double rhs)
  1628. engine->RegisterObjectMethod(className, "JSONValue& opAssign(double)", AS_METHODPR(T, operator=, (double), JSONValue&), AS_CALL_THISCALL);
  1629. // JSONValue& JSONValue::operator =(const String& rhs)
  1630. engine->RegisterObjectMethod(className, "JSONValue& opAssign(const String&in)", AS_METHODPR(T, operator=, (const String&), JSONValue&), AS_CALL_THISCALL);
  1631. // JSONValue& JSONValue::operator =(const JSONValue& rhs)
  1632. engine->RegisterObjectMethod(className, "JSONValue& opAssign(const JSONValue&in)", AS_METHODPR(T, operator=, (const JSONValue&), JSONValue&), AS_CALL_THISCALL);
  1633. // JSONValue& JSONValue::operator [](unsigned index)
  1634. engine->RegisterObjectMethod(className, "JSONValue& opIndex(uint)", AS_METHODPR(T, operator[], (unsigned), JSONValue&), AS_CALL_THISCALL);
  1635. // const JSONValue& JSONValue::operator [](unsigned index) const
  1636. engine->RegisterObjectMethod(className, "const JSONValue& opIndex(uint) const", AS_METHODPR(T, operator[], (unsigned) const, const JSONValue&), AS_CALL_THISCALL);
  1637. // JSONValue& JSONValue::operator [](const String& key)
  1638. engine->RegisterObjectMethod(className, "JSONValue& opIndex(const String&in)", AS_METHODPR(T, operator[], (const String&), JSONValue&), AS_CALL_THISCALL);
  1639. // const JSONValue& JSONValue::operator [](const String& key) const
  1640. engine->RegisterObjectMethod(className, "const JSONValue& opIndex(const String&in) const", AS_METHODPR(T, operator[], (const String&) const, const JSONValue&), AS_CALL_THISCALL);
  1641. // void JSONValue::Pop()
  1642. engine->RegisterObjectMethod(className, "void Pop()", AS_METHODPR(T, Pop, (), void), AS_CALL_THISCALL);
  1643. // void JSONValue::Push(const JSONValue& value)
  1644. engine->RegisterObjectMethod(className, "void Push(const JSONValue&in)", AS_METHODPR(T, Push, (const JSONValue&), void), AS_CALL_THISCALL);
  1645. // void JSONValue::Resize(unsigned newSize)
  1646. engine->RegisterObjectMethod(className, "void Resize(uint)", AS_METHODPR(T, Resize, (unsigned), void), AS_CALL_THISCALL);
  1647. // void JSONValue::Set(const String& key, const JSONValue& value)
  1648. engine->RegisterObjectMethod(className, "void Set(const String&in, const JSONValue&in)", AS_METHODPR(T, Set, (const String&, const JSONValue&), void), AS_CALL_THISCALL);
  1649. // void JSONValue::SetType(JSONValueType valueType, JSONNumberType numberType = JSONNT_NAN)
  1650. engine->RegisterObjectMethod(className, "void SetType(JSONValueType, JSONNumberType = JSONNT_NAN)", AS_METHODPR(T, SetType, (JSONValueType, JSONNumberType), void), AS_CALL_THISCALL);
  1651. // void JSONValue::SetVariant(const Variant& variant, Context* context = nullptr)
  1652. engine->RegisterObjectMethod(className, "void SetVariant(const Variant&in)", AS_FUNCTION_OBJFIRST(JSONValue_void_SetVariant_constspVariantamp_Contextstar_template<JSONValue>), AS_CALL_CDECL_OBJFIRST);
  1653. // void JSONValue::SetVariantMap(const VariantMap& variantMap, Context* context = nullptr)
  1654. engine->RegisterObjectMethod(className, "void SetVariantMap(const VariantMap&in)", AS_FUNCTION_OBJFIRST(JSONValue_void_SetVariantMap_constspVariantMapamp_Contextstar_template<JSONValue>), AS_CALL_CDECL_OBJFIRST);
  1655. // void JSONValue::SetVariantValue(const Variant& variant, Context* context = nullptr)
  1656. engine->RegisterObjectMethod(className, "void SetVariantValue(const Variant&in)", AS_FUNCTION_OBJFIRST(JSONValue_void_SetVariantValue_constspVariantamp_Contextstar_template<JSONValue>), AS_CALL_CDECL_OBJFIRST);
  1657. // unsigned JSONValue::Size() const
  1658. engine->RegisterObjectMethod(className, "uint Size() const", AS_METHODPR(T, Size, () const, unsigned), AS_CALL_THISCALL);
  1659. engine->RegisterObjectMethod(className, "uint get_size() const", AS_METHODPR(T, Size, () const, unsigned), AS_CALL_THISCALL);
  1660. // static JSONValueType JSONValue::GetValueTypeFromName(const char* typeName)
  1661. // Error: type "const char*" can not automatically bind
  1662. // static JSONNumberType JSONValue::GetNumberTypeFromName(const char* typeName)
  1663. // Error: type "const char*" can not automatically bind
  1664. // static String JSONValue::GetValueTypeName(JSONValueType type)
  1665. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("String GetValueTypeName(JSONValueType)", AS_FUNCTIONPR(T::GetValueTypeName, (JSONValueType), String), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  1666. // static String JSONValue::GetNumberTypeName(JSONNumberType type)
  1667. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("String GetNumberTypeName(JSONNumberType)", AS_FUNCTIONPR(T::GetNumberTypeName, (JSONNumberType), String), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  1668. // static JSONValueType JSONValue::GetValueTypeFromName(const String& typeName)
  1669. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("JSONValueType GetValueTypeFromName(const String&in)", AS_FUNCTIONPR(T::GetValueTypeFromName, (const String&), JSONValueType), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  1670. // static JSONNumberType JSONValue::GetNumberTypeFromName(const String& typeName)
  1671. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("JSONNumberType GetNumberTypeFromName(const String&in)", AS_FUNCTIONPR(T::GetNumberTypeFromName, (const String&), JSONNumberType), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  1672. // bool JSONValue::boolValue_
  1673. // Not registered because have @nobind mark
  1674. // double JSONValue::numberValue_
  1675. // Not registered because have @nobind mark
  1676. // String* JSONValue::stringValue_
  1677. // Not registered because have @nobind mark
  1678. // JSONArray* JSONValue::arrayValue_
  1679. // Not registered because have @nobind mark
  1680. // JSONObject* JSONValue::objectValue_
  1681. // Not registered because have @nobind mark
  1682. // static const JSONArray JSONValue::emptyArray
  1683. // Error: type "const JSONArray" can not automatically bind
  1684. // static const JSONObject JSONValue::emptyObject
  1685. // Error: type "const JSONObject" can not automatically bind
  1686. // static const JSONValue JSONValue::EMPTY
  1687. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const JSONValue EMPTY", (void*)&T::EMPTY);engine->SetDefaultNamespace("");
  1688. #ifdef REGISTER_MEMBERS_MANUAL_PART_JSONValue
  1689. REGISTER_MEMBERS_MANUAL_PART_JSONValue();
  1690. #endif
  1691. }
  1692. // struct JoystickState | File: ../Input/Input.h
  1693. template <class T> void RegisterMembers_JoystickState(asIScriptEngine* engine, const char* className)
  1694. {
  1695. // float JoystickState::GetAxisPosition(unsigned index) const
  1696. engine->RegisterObjectMethod(className, "float GetAxisPosition(uint) const", AS_METHODPR(T, GetAxisPosition, (unsigned) const, float), AS_CALL_THISCALL);
  1697. engine->RegisterObjectMethod(className, "float get_axisPosition(uint) const", AS_METHODPR(T, GetAxisPosition, (unsigned) const, float), AS_CALL_THISCALL);
  1698. // bool JoystickState::GetButtonDown(unsigned index) const
  1699. engine->RegisterObjectMethod(className, "bool GetButtonDown(uint) const", AS_METHODPR(T, GetButtonDown, (unsigned) const, bool), AS_CALL_THISCALL);
  1700. engine->RegisterObjectMethod(className, "bool get_buttonDown(uint) const", AS_METHODPR(T, GetButtonDown, (unsigned) const, bool), AS_CALL_THISCALL);
  1701. // bool JoystickState::GetButtonPress(unsigned index) const
  1702. engine->RegisterObjectMethod(className, "bool GetButtonPress(uint) const", AS_METHODPR(T, GetButtonPress, (unsigned) const, bool), AS_CALL_THISCALL);
  1703. engine->RegisterObjectMethod(className, "bool get_buttonPress(uint) const", AS_METHODPR(T, GetButtonPress, (unsigned) const, bool), AS_CALL_THISCALL);
  1704. // int JoystickState::GetHatPosition(unsigned index) const
  1705. engine->RegisterObjectMethod(className, "int GetHatPosition(uint) const", AS_METHODPR(T, GetHatPosition, (unsigned) const, int), AS_CALL_THISCALL);
  1706. engine->RegisterObjectMethod(className, "int get_hatPosition(uint) const", AS_METHODPR(T, GetHatPosition, (unsigned) const, int), AS_CALL_THISCALL);
  1707. // unsigned JoystickState::GetNumAxes() const
  1708. engine->RegisterObjectMethod(className, "uint GetNumAxes() const", AS_METHODPR(T, GetNumAxes, () const, unsigned), AS_CALL_THISCALL);
  1709. engine->RegisterObjectMethod(className, "uint get_numAxes() const", AS_METHODPR(T, GetNumAxes, () const, unsigned), AS_CALL_THISCALL);
  1710. // unsigned JoystickState::GetNumButtons() const
  1711. engine->RegisterObjectMethod(className, "uint GetNumButtons() const", AS_METHODPR(T, GetNumButtons, () const, unsigned), AS_CALL_THISCALL);
  1712. engine->RegisterObjectMethod(className, "uint get_numButtons() const", AS_METHODPR(T, GetNumButtons, () const, unsigned), AS_CALL_THISCALL);
  1713. // unsigned JoystickState::GetNumHats() const
  1714. engine->RegisterObjectMethod(className, "uint GetNumHats() const", AS_METHODPR(T, GetNumHats, () const, unsigned), AS_CALL_THISCALL);
  1715. engine->RegisterObjectMethod(className, "uint get_numHats() const", AS_METHODPR(T, GetNumHats, () const, unsigned), AS_CALL_THISCALL);
  1716. // void JoystickState::Initialize(unsigned numButtons, unsigned numAxes, unsigned numHats)
  1717. engine->RegisterObjectMethod(className, "void Initialize(uint, uint, uint)", AS_METHODPR(T, Initialize, (unsigned, unsigned, unsigned), void), AS_CALL_THISCALL);
  1718. // bool JoystickState::IsController() const
  1719. engine->RegisterObjectMethod(className, "bool IsController() const", AS_METHODPR(T, IsController, () const, bool), AS_CALL_THISCALL);
  1720. engine->RegisterObjectMethod(className, "bool get_controller() const", AS_METHODPR(T, IsController, () const, bool), AS_CALL_THISCALL);
  1721. // void JoystickState::Reset()
  1722. engine->RegisterObjectMethod(className, "void Reset()", AS_METHODPR(T, Reset, (), void), AS_CALL_THISCALL);
  1723. // SDL_Joystick* JoystickState::joystick_
  1724. // Not registered because pointer
  1725. // SDL_GameController* JoystickState::controller_
  1726. // Not registered because pointer
  1727. // UIElement* JoystickState::screenJoystick_
  1728. // Not registered because pointer
  1729. // PODVector<bool> JoystickState::buttons_
  1730. // Error: type "PODVector<bool>" can not automatically bind
  1731. // PODVector<bool> JoystickState::buttonPress_
  1732. // Error: type "PODVector<bool>" can not automatically bind
  1733. // PODVector<float> JoystickState::axes_
  1734. // Error: type "PODVector<float>" can not automatically bind
  1735. // PODVector<int> JoystickState::hats_
  1736. // Error: type "PODVector<int>" can not automatically bind
  1737. // SDL_JoystickID JoystickState::joystickID_
  1738. engine->RegisterObjectProperty(className, "SDL_JoystickID joystickID", offsetof(T, joystickID_));
  1739. // String JoystickState::name_
  1740. engine->RegisterObjectProperty(className, "String name", offsetof(T, name_));
  1741. #ifdef REGISTER_MEMBERS_MANUAL_PART_JoystickState
  1742. REGISTER_MEMBERS_MANUAL_PART_JoystickState();
  1743. #endif
  1744. }
  1745. // struct LightBatchQueue | File: ../Graphics/Batch.h
  1746. template <class T> void RegisterMembers_LightBatchQueue(asIScriptEngine* engine, const char* className)
  1747. {
  1748. // Light* LightBatchQueue::light_
  1749. // Not registered because pointer
  1750. // Texture2D* LightBatchQueue::shadowMap_
  1751. // Not registered because pointer
  1752. // Vector<ShadowBatchQueue> LightBatchQueue::shadowSplits_
  1753. // Error: type "Vector<ShadowBatchQueue>" can not automatically bind
  1754. // PODVector<Light*> LightBatchQueue::vertexLights_
  1755. // Error: type "PODVector<Light*>" can not automatically bind
  1756. // PODVector<Batch> LightBatchQueue::volumeBatches_
  1757. // Error: type "PODVector<Batch>" can not automatically bind
  1758. // bool LightBatchQueue::negative_
  1759. engine->RegisterObjectProperty(className, "bool negative", offsetof(T, negative_));
  1760. // BatchQueue LightBatchQueue::litBaseBatches_
  1761. engine->RegisterObjectProperty(className, "BatchQueue litBaseBatches", offsetof(T, litBaseBatches_));
  1762. // BatchQueue LightBatchQueue::litBatches_
  1763. engine->RegisterObjectProperty(className, "BatchQueue litBatches", offsetof(T, litBatches_));
  1764. #ifdef REGISTER_MEMBERS_MANUAL_PART_LightBatchQueue
  1765. REGISTER_MEMBERS_MANUAL_PART_LightBatchQueue();
  1766. #endif
  1767. }
  1768. // struct LightQueryResult | File: ../Graphics/View.h
  1769. template <class T> void RegisterMembers_LightQueryResult(asIScriptEngine* engine, const char* className)
  1770. {
  1771. // Light* LightQueryResult::light_
  1772. // Not registered because pointer
  1773. // PODVector<Drawable*> LightQueryResult::litGeometries_
  1774. // Error: type "PODVector<Drawable*>" can not automatically bind
  1775. // PODVector<Drawable*> LightQueryResult::shadowCasters_
  1776. // Error: type "PODVector<Drawable*>" can not automatically bind
  1777. // Camera* LightQueryResult::shadowCameras_[MAX_LIGHT_SPLITS]
  1778. // Not registered because array
  1779. // unsigned LightQueryResult::shadowCasterBegin_[MAX_LIGHT_SPLITS]
  1780. // Not registered because array
  1781. // unsigned LightQueryResult::shadowCasterEnd_[MAX_LIGHT_SPLITS]
  1782. // Not registered because array
  1783. // BoundingBox LightQueryResult::shadowCasterBox_[MAX_LIGHT_SPLITS]
  1784. // Not registered because array
  1785. // float LightQueryResult::shadowNearSplits_[MAX_LIGHT_SPLITS]
  1786. // Not registered because array
  1787. // float LightQueryResult::shadowFarSplits_[MAX_LIGHT_SPLITS]
  1788. // Not registered because array
  1789. // unsigned LightQueryResult::numSplits_
  1790. engine->RegisterObjectProperty(className, "uint numSplits", offsetof(T, numSplits_));
  1791. #ifdef REGISTER_MEMBERS_MANUAL_PART_LightQueryResult
  1792. REGISTER_MEMBERS_MANUAL_PART_LightQueryResult();
  1793. #endif
  1794. }
  1795. // struct LinkedListNode | File: ../Container/LinkedList.h
  1796. template <class T> void RegisterMembers_LinkedListNode(asIScriptEngine* engine, const char* className)
  1797. {
  1798. // LinkedListNode* LinkedListNode::next_
  1799. // Not registered because pointer
  1800. #ifdef REGISTER_MEMBERS_MANUAL_PART_LinkedListNode
  1801. REGISTER_MEMBERS_MANUAL_PART_LinkedListNode();
  1802. #endif
  1803. }
  1804. // class ListBase | File: ../Container/ListBase.h
  1805. template <class T> void RegisterMembers_ListBase(asIScriptEngine* engine, const char* className)
  1806. {
  1807. // void ListBase::Swap(ListBase& rhs)
  1808. engine->RegisterObjectMethod(className, "void Swap(ListBase&)", AS_METHODPR(T, Swap, (ListBase&), void), AS_CALL_THISCALL);
  1809. #ifdef REGISTER_MEMBERS_MANUAL_PART_ListBase
  1810. REGISTER_MEMBERS_MANUAL_PART_ListBase();
  1811. #endif
  1812. }
  1813. // struct ListIteratorBase | File: ../Container/ListBase.h
  1814. template <class T> void RegisterMembers_ListIteratorBase(asIScriptEngine* engine, const char* className)
  1815. {
  1816. // bool ListIteratorBase::operator !=(const ListIteratorBase& rhs) const
  1817. // Only operator == is needed
  1818. // void ListIteratorBase::GotoNext()
  1819. engine->RegisterObjectMethod(className, "void GotoNext()", AS_METHODPR(T, GotoNext, (), void), AS_CALL_THISCALL);
  1820. // void ListIteratorBase::GotoPrev()
  1821. engine->RegisterObjectMethod(className, "void GotoPrev()", AS_METHODPR(T, GotoPrev, (), void), AS_CALL_THISCALL);
  1822. // bool ListIteratorBase::operator ==(const ListIteratorBase& rhs) const
  1823. engine->RegisterObjectMethod(className, "bool opEquals(const ListIteratorBase&in) const", AS_METHODPR(T, operator==, (const ListIteratorBase&) const, bool), AS_CALL_THISCALL);
  1824. // ListNodeBase* ListIteratorBase::ptr_
  1825. // Not registered because pointer
  1826. #ifdef REGISTER_MEMBERS_MANUAL_PART_ListIteratorBase
  1827. REGISTER_MEMBERS_MANUAL_PART_ListIteratorBase();
  1828. #endif
  1829. }
  1830. // struct ListNodeBase | File: ../Container/ListBase.h
  1831. template <class T> void RegisterMembers_ListNodeBase(asIScriptEngine* engine, const char* className)
  1832. {
  1833. // ListNodeBase* ListNodeBase::prev_
  1834. // Not registered because pointer
  1835. // ListNodeBase* ListNodeBase::next_
  1836. // Not registered because pointer
  1837. #ifdef REGISTER_MEMBERS_MANUAL_PART_ListNodeBase
  1838. REGISTER_MEMBERS_MANUAL_PART_ListNodeBase();
  1839. #endif
  1840. }
  1841. // struct MaterialShaderParameter | File: ../Graphics/Material.h
  1842. template <class T> void RegisterMembers_MaterialShaderParameter(asIScriptEngine* engine, const char* className)
  1843. {
  1844. // String MaterialShaderParameter::name_
  1845. engine->RegisterObjectProperty(className, "String name", offsetof(T, name_));
  1846. // Variant MaterialShaderParameter::value_
  1847. engine->RegisterObjectProperty(className, "Variant value", offsetof(T, value_));
  1848. #ifdef REGISTER_MEMBERS_MANUAL_PART_MaterialShaderParameter
  1849. REGISTER_MEMBERS_MANUAL_PART_MaterialShaderParameter();
  1850. #endif
  1851. }
  1852. // class Matrix2 | File: ../Math/Matrix2.h
  1853. template <class T> void RegisterMembers_Matrix2(asIScriptEngine* engine, const char* className)
  1854. {
  1855. // const float* Matrix2::Data() const
  1856. // Error: type "const float*" can not automatically bind
  1857. // bool Matrix2::operator !=(const Matrix2& rhs) const
  1858. // Only operator == is needed
  1859. // bool Matrix2::Equals(const Matrix2& rhs) const
  1860. engine->RegisterObjectMethod(className, "bool Equals(const Matrix2&in) const", AS_METHODPR(T, Equals, (const Matrix2&) const, bool), AS_CALL_THISCALL);
  1861. // Matrix2 Matrix2::Inverse() const
  1862. engine->RegisterObjectMethod(className, "Matrix2 Inverse() const", AS_METHODPR(T, Inverse, () const, Matrix2), AS_CALL_THISCALL);
  1863. // bool Matrix2::IsInf() const
  1864. engine->RegisterObjectMethod(className, "bool IsInf() const", AS_METHODPR(T, IsInf, () const, bool), AS_CALL_THISCALL);
  1865. // bool Matrix2::IsNaN() const
  1866. engine->RegisterObjectMethod(className, "bool IsNaN() const", AS_METHODPR(T, IsNaN, () const, bool), AS_CALL_THISCALL);
  1867. // Vector2 Matrix2::operator *(const Vector2& rhs) const
  1868. engine->RegisterObjectMethod(className, "Vector2 opMul(const Vector2&in) const", AS_METHODPR(T, operator*, (const Vector2&) const, Vector2), AS_CALL_THISCALL);
  1869. // Matrix2 Matrix2::operator *(float rhs) const
  1870. engine->RegisterObjectMethod(className, "Matrix2 opMul(float) const", AS_METHODPR(T, operator*, (float) const, Matrix2), AS_CALL_THISCALL);
  1871. // Matrix2 Matrix2::operator *(const Matrix2& rhs) const
  1872. engine->RegisterObjectMethod(className, "Matrix2 opMul(const Matrix2&in) const", AS_METHODPR(T, operator*, (const Matrix2&) const, Matrix2), AS_CALL_THISCALL);
  1873. // Matrix2 Matrix2::operator +(const Matrix2& rhs) const
  1874. engine->RegisterObjectMethod(className, "Matrix2 opAdd(const Matrix2&in) const", AS_METHODPR(T, operator+, (const Matrix2&) const, Matrix2), AS_CALL_THISCALL);
  1875. // Matrix2 Matrix2::operator -(const Matrix2& rhs) const
  1876. engine->RegisterObjectMethod(className, "Matrix2 opSub(const Matrix2&in) const", AS_METHODPR(T, operator-, (const Matrix2&) const, Matrix2), AS_CALL_THISCALL);
  1877. // Matrix2& Matrix2::operator =(const Matrix2& rhs) noexcept = default
  1878. engine->RegisterObjectMethod(className, "Matrix2& opAssign(const Matrix2&in)", AS_METHODPR(T, operator=, (const Matrix2&), Matrix2&), AS_CALL_THISCALL);
  1879. // bool Matrix2::operator ==(const Matrix2& rhs) const
  1880. engine->RegisterObjectMethod(className, "bool opEquals(const Matrix2&in) const", AS_METHODPR(T, operator==, (const Matrix2&) const, bool), AS_CALL_THISCALL);
  1881. // Vector2 Matrix2::Scale() const
  1882. engine->RegisterObjectMethod(className, "Vector2 Scale() const", AS_METHODPR(T, Scale, () const, Vector2), AS_CALL_THISCALL);
  1883. // Matrix2 Matrix2::Scaled(const Vector2& scale) const
  1884. engine->RegisterObjectMethod(className, "Matrix2 Scaled(const Vector2&in) const", AS_METHODPR(T, Scaled, (const Vector2&) const, Matrix2), AS_CALL_THISCALL);
  1885. // void Matrix2::SetScale(const Vector2& scale)
  1886. engine->RegisterObjectMethod(className, "void SetScale(const Vector2&in)", AS_METHODPR(T, SetScale, (const Vector2&), void), AS_CALL_THISCALL);
  1887. // void Matrix2::SetScale(float scale)
  1888. engine->RegisterObjectMethod(className, "void SetScale(float)", AS_METHODPR(T, SetScale, (float), void), AS_CALL_THISCALL);
  1889. // String Matrix2::ToString() const
  1890. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  1891. // Matrix2 Matrix2::Transpose() const
  1892. engine->RegisterObjectMethod(className, "Matrix2 Transpose() const", AS_METHODPR(T, Transpose, () const, Matrix2), AS_CALL_THISCALL);
  1893. // static void Matrix2::BulkTranspose(float* dest, const float* src, unsigned count)
  1894. // Error: type "float*" can not automatically bind
  1895. // float Matrix2::m00_
  1896. engine->RegisterObjectProperty(className, "float m00", offsetof(T, m00_));
  1897. // float Matrix2::m01_
  1898. engine->RegisterObjectProperty(className, "float m01", offsetof(T, m01_));
  1899. // float Matrix2::m10_
  1900. engine->RegisterObjectProperty(className, "float m10", offsetof(T, m10_));
  1901. // float Matrix2::m11_
  1902. engine->RegisterObjectProperty(className, "float m11", offsetof(T, m11_));
  1903. // static const Matrix2 Matrix2::ZERO
  1904. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Matrix2 ZERO", (void*)&T::ZERO);engine->SetDefaultNamespace("");
  1905. // static const Matrix2 Matrix2::IDENTITY
  1906. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Matrix2 IDENTITY", (void*)&T::IDENTITY);engine->SetDefaultNamespace("");
  1907. #ifdef REGISTER_MEMBERS_MANUAL_PART_Matrix2
  1908. REGISTER_MEMBERS_MANUAL_PART_Matrix2();
  1909. #endif
  1910. }
  1911. // class Matrix3 | File: ../Math/Matrix3.h
  1912. template <class T> void RegisterMembers_Matrix3(asIScriptEngine* engine, const char* className)
  1913. {
  1914. // const float* Matrix3::Data() const
  1915. // Error: type "const float*" can not automatically bind
  1916. // bool Matrix3::operator !=(const Matrix3& rhs) const
  1917. // Only operator == is needed
  1918. // Vector3 Matrix3::Column(unsigned j) const
  1919. engine->RegisterObjectMethod(className, "Vector3 Column(uint) const", AS_METHODPR(T, Column, (unsigned) const, Vector3), AS_CALL_THISCALL);
  1920. // float Matrix3::Element(unsigned i, unsigned j) const
  1921. engine->RegisterObjectMethod(className, "float Element(uint, uint) const", AS_METHODPR(T, Element, (unsigned, unsigned) const, float), AS_CALL_THISCALL);
  1922. // bool Matrix3::Equals(const Matrix3& rhs) const
  1923. engine->RegisterObjectMethod(className, "bool Equals(const Matrix3&in) const", AS_METHODPR(T, Equals, (const Matrix3&) const, bool), AS_CALL_THISCALL);
  1924. // Matrix3 Matrix3::Inverse() const
  1925. engine->RegisterObjectMethod(className, "Matrix3 Inverse() const", AS_METHODPR(T, Inverse, () const, Matrix3), AS_CALL_THISCALL);
  1926. // bool Matrix3::IsInf() const
  1927. engine->RegisterObjectMethod(className, "bool IsInf() const", AS_METHODPR(T, IsInf, () const, bool), AS_CALL_THISCALL);
  1928. // bool Matrix3::IsNaN() const
  1929. engine->RegisterObjectMethod(className, "bool IsNaN() const", AS_METHODPR(T, IsNaN, () const, bool), AS_CALL_THISCALL);
  1930. // Vector3 Matrix3::operator *(const Vector3& rhs) const
  1931. engine->RegisterObjectMethod(className, "Vector3 opMul(const Vector3&in) const", AS_METHODPR(T, operator*, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  1932. // Matrix3 Matrix3::operator *(float rhs) const
  1933. engine->RegisterObjectMethod(className, "Matrix3 opMul(float) const", AS_METHODPR(T, operator*, (float) const, Matrix3), AS_CALL_THISCALL);
  1934. // Matrix3 Matrix3::operator *(const Matrix3& rhs) const
  1935. engine->RegisterObjectMethod(className, "Matrix3 opMul(const Matrix3&in) const", AS_METHODPR(T, operator*, (const Matrix3&) const, Matrix3), AS_CALL_THISCALL);
  1936. // Matrix3 Matrix3::operator +(const Matrix3& rhs) const
  1937. engine->RegisterObjectMethod(className, "Matrix3 opAdd(const Matrix3&in) const", AS_METHODPR(T, operator+, (const Matrix3&) const, Matrix3), AS_CALL_THISCALL);
  1938. // Matrix3 Matrix3::operator -(const Matrix3& rhs) const
  1939. engine->RegisterObjectMethod(className, "Matrix3 opSub(const Matrix3&in) const", AS_METHODPR(T, operator-, (const Matrix3&) const, Matrix3), AS_CALL_THISCALL);
  1940. // Matrix3& Matrix3::operator =(const Matrix3& rhs) noexcept = default
  1941. engine->RegisterObjectMethod(className, "Matrix3& opAssign(const Matrix3&in)", AS_METHODPR(T, operator=, (const Matrix3&), Matrix3&), AS_CALL_THISCALL);
  1942. // bool Matrix3::operator ==(const Matrix3& rhs) const
  1943. engine->RegisterObjectMethod(className, "bool opEquals(const Matrix3&in) const", AS_METHODPR(T, operator==, (const Matrix3&) const, bool), AS_CALL_THISCALL);
  1944. // Vector3 Matrix3::Row(unsigned i) const
  1945. engine->RegisterObjectMethod(className, "Vector3 Row(uint) const", AS_METHODPR(T, Row, (unsigned) const, Vector3), AS_CALL_THISCALL);
  1946. // Vector3 Matrix3::Scale() const
  1947. engine->RegisterObjectMethod(className, "Vector3 Scale() const", AS_METHODPR(T, Scale, () const, Vector3), AS_CALL_THISCALL);
  1948. // Matrix3 Matrix3::Scaled(const Vector3& scale) const
  1949. engine->RegisterObjectMethod(className, "Matrix3 Scaled(const Vector3&in) const", AS_METHODPR(T, Scaled, (const Vector3&) const, Matrix3), AS_CALL_THISCALL);
  1950. // void Matrix3::SetScale(const Vector3& scale)
  1951. engine->RegisterObjectMethod(className, "void SetScale(const Vector3&in)", AS_METHODPR(T, SetScale, (const Vector3&), void), AS_CALL_THISCALL);
  1952. // void Matrix3::SetScale(float scale)
  1953. engine->RegisterObjectMethod(className, "void SetScale(float)", AS_METHODPR(T, SetScale, (float), void), AS_CALL_THISCALL);
  1954. // Vector3 Matrix3::SignedScale(const Matrix3& rotation) const
  1955. engine->RegisterObjectMethod(className, "Vector3 SignedScale(const Matrix3&in) const", AS_METHODPR(T, SignedScale, (const Matrix3&) const, Vector3), AS_CALL_THISCALL);
  1956. // String Matrix3::ToString() const
  1957. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  1958. // Matrix3 Matrix3::Transpose() const
  1959. engine->RegisterObjectMethod(className, "Matrix3 Transpose() const", AS_METHODPR(T, Transpose, () const, Matrix3), AS_CALL_THISCALL);
  1960. // static void Matrix3::BulkTranspose(float* dest, const float* src, unsigned count)
  1961. // Error: type "float*" can not automatically bind
  1962. // float Matrix3::m00_
  1963. engine->RegisterObjectProperty(className, "float m00", offsetof(T, m00_));
  1964. // float Matrix3::m01_
  1965. engine->RegisterObjectProperty(className, "float m01", offsetof(T, m01_));
  1966. // float Matrix3::m02_
  1967. engine->RegisterObjectProperty(className, "float m02", offsetof(T, m02_));
  1968. // float Matrix3::m10_
  1969. engine->RegisterObjectProperty(className, "float m10", offsetof(T, m10_));
  1970. // float Matrix3::m11_
  1971. engine->RegisterObjectProperty(className, "float m11", offsetof(T, m11_));
  1972. // float Matrix3::m12_
  1973. engine->RegisterObjectProperty(className, "float m12", offsetof(T, m12_));
  1974. // float Matrix3::m20_
  1975. engine->RegisterObjectProperty(className, "float m20", offsetof(T, m20_));
  1976. // float Matrix3::m21_
  1977. engine->RegisterObjectProperty(className, "float m21", offsetof(T, m21_));
  1978. // float Matrix3::m22_
  1979. engine->RegisterObjectProperty(className, "float m22", offsetof(T, m22_));
  1980. // static const Matrix3 Matrix3::ZERO
  1981. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Matrix3 ZERO", (void*)&T::ZERO);engine->SetDefaultNamespace("");
  1982. // static const Matrix3 Matrix3::IDENTITY
  1983. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Matrix3 IDENTITY", (void*)&T::IDENTITY);engine->SetDefaultNamespace("");
  1984. #ifdef REGISTER_MEMBERS_MANUAL_PART_Matrix3
  1985. REGISTER_MEMBERS_MANUAL_PART_Matrix3();
  1986. #endif
  1987. }
  1988. // class Matrix3x4 | File: ../Math/Matrix3x4.h
  1989. template <class T> void RegisterMembers_Matrix3x4(asIScriptEngine* engine, const char* className)
  1990. {
  1991. // const float* Matrix3x4::Data() const
  1992. // Error: type "const float*" can not automatically bind
  1993. // bool Matrix3x4::operator !=(const Matrix3x4& rhs) const
  1994. // Only operator == is needed
  1995. // Vector3 Matrix3x4::Column(unsigned j) const
  1996. engine->RegisterObjectMethod(className, "Vector3 Column(uint) const", AS_METHODPR(T, Column, (unsigned) const, Vector3), AS_CALL_THISCALL);
  1997. // void Matrix3x4::Decompose(Vector3& translation, Quaternion& rotation, Vector3& scale) const
  1998. engine->RegisterObjectMethod(className, "void Decompose(Vector3&, Quaternion&, Vector3&) const", AS_METHODPR(T, Decompose, (Vector3&, Quaternion&, Vector3&) const, void), AS_CALL_THISCALL);
  1999. // float Matrix3x4::Element(unsigned i, unsigned j) const
  2000. engine->RegisterObjectMethod(className, "float Element(uint, uint) const", AS_METHODPR(T, Element, (unsigned, unsigned) const, float), AS_CALL_THISCALL);
  2001. // bool Matrix3x4::Equals(const Matrix3x4& rhs) const
  2002. engine->RegisterObjectMethod(className, "bool Equals(const Matrix3x4&in) const", AS_METHODPR(T, Equals, (const Matrix3x4&) const, bool), AS_CALL_THISCALL);
  2003. // Matrix3x4 Matrix3x4::Inverse() const
  2004. engine->RegisterObjectMethod(className, "Matrix3x4 Inverse() const", AS_METHODPR(T, Inverse, () const, Matrix3x4), AS_CALL_THISCALL);
  2005. // bool Matrix3x4::IsInf() const
  2006. engine->RegisterObjectMethod(className, "bool IsInf() const", AS_METHODPR(T, IsInf, () const, bool), AS_CALL_THISCALL);
  2007. // bool Matrix3x4::IsNaN() const
  2008. engine->RegisterObjectMethod(className, "bool IsNaN() const", AS_METHODPR(T, IsNaN, () const, bool), AS_CALL_THISCALL);
  2009. // Vector3 Matrix3x4::operator *(const Vector3& rhs) const
  2010. engine->RegisterObjectMethod(className, "Vector3 opMul(const Vector3&in) const", AS_METHODPR(T, operator*, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  2011. // Vector3 Matrix3x4::operator *(const Vector4& rhs) const
  2012. engine->RegisterObjectMethod(className, "Vector3 opMul(const Vector4&in) const", AS_METHODPR(T, operator*, (const Vector4&) const, Vector3), AS_CALL_THISCALL);
  2013. // Matrix3x4 Matrix3x4::operator *(float rhs) const
  2014. engine->RegisterObjectMethod(className, "Matrix3x4 opMul(float) const", AS_METHODPR(T, operator*, (float) const, Matrix3x4), AS_CALL_THISCALL);
  2015. // Matrix3x4 Matrix3x4::operator *(const Matrix3x4& rhs) const
  2016. engine->RegisterObjectMethod(className, "Matrix3x4 opMul(const Matrix3x4&in) const", AS_METHODPR(T, operator*, (const Matrix3x4&) const, Matrix3x4), AS_CALL_THISCALL);
  2017. // Matrix4 Matrix3x4::operator *(const Matrix4& rhs) const
  2018. engine->RegisterObjectMethod(className, "Matrix4 opMul(const Matrix4&in) const", AS_METHODPR(T, operator*, (const Matrix4&) const, Matrix4), AS_CALL_THISCALL);
  2019. // Matrix3x4 Matrix3x4::operator +(const Matrix3x4& rhs) const
  2020. engine->RegisterObjectMethod(className, "Matrix3x4 opAdd(const Matrix3x4&in) const", AS_METHODPR(T, operator+, (const Matrix3x4&) const, Matrix3x4), AS_CALL_THISCALL);
  2021. // Matrix3x4 Matrix3x4::operator -(const Matrix3x4& rhs) const
  2022. engine->RegisterObjectMethod(className, "Matrix3x4 opSub(const Matrix3x4&in) const", AS_METHODPR(T, operator-, (const Matrix3x4&) const, Matrix3x4), AS_CALL_THISCALL);
  2023. // Matrix3x4& Matrix3x4::operator =(const Matrix3x4& rhs) noexcept = default
  2024. engine->RegisterObjectMethod(className, "Matrix3x4& opAssign(const Matrix3x4&in)", AS_METHODPR(T, operator=, (const Matrix3x4&), Matrix3x4&), AS_CALL_THISCALL);
  2025. // Matrix3x4& Matrix3x4::operator =(const Matrix3& rhs) noexcept
  2026. engine->RegisterObjectMethod(className, "Matrix3x4& opAssign(const Matrix3&in)", AS_METHODPR(T, operator=, (const Matrix3&), Matrix3x4&), AS_CALL_THISCALL);
  2027. // Matrix3x4& Matrix3x4::operator =(const Matrix4& rhs) noexcept
  2028. engine->RegisterObjectMethod(className, "Matrix3x4& opAssign(const Matrix4&in)", AS_METHODPR(T, operator=, (const Matrix4&), Matrix3x4&), AS_CALL_THISCALL);
  2029. // bool Matrix3x4::operator ==(const Matrix3x4& rhs) const
  2030. engine->RegisterObjectMethod(className, "bool opEquals(const Matrix3x4&in) const", AS_METHODPR(T, operator==, (const Matrix3x4&) const, bool), AS_CALL_THISCALL);
  2031. // Quaternion Matrix3x4::Rotation() const
  2032. engine->RegisterObjectMethod(className, "Quaternion Rotation() const", AS_METHODPR(T, Rotation, () const, Quaternion), AS_CALL_THISCALL);
  2033. // Matrix3 Matrix3x4::RotationMatrix() const
  2034. engine->RegisterObjectMethod(className, "Matrix3 RotationMatrix() const", AS_METHODPR(T, RotationMatrix, () const, Matrix3), AS_CALL_THISCALL);
  2035. // Vector4 Matrix3x4::Row(unsigned i) const
  2036. engine->RegisterObjectMethod(className, "Vector4 Row(uint) const", AS_METHODPR(T, Row, (unsigned) const, Vector4), AS_CALL_THISCALL);
  2037. // Vector3 Matrix3x4::Scale() const
  2038. engine->RegisterObjectMethod(className, "Vector3 Scale() const", AS_METHODPR(T, Scale, () const, Vector3), AS_CALL_THISCALL);
  2039. // void Matrix3x4::SetRotation(const Matrix3& rotation)
  2040. engine->RegisterObjectMethod(className, "void SetRotation(const Matrix3&in)", AS_METHODPR(T, SetRotation, (const Matrix3&), void), AS_CALL_THISCALL);
  2041. // void Matrix3x4::SetScale(const Vector3& scale)
  2042. engine->RegisterObjectMethod(className, "void SetScale(const Vector3&in)", AS_METHODPR(T, SetScale, (const Vector3&), void), AS_CALL_THISCALL);
  2043. // void Matrix3x4::SetScale(float scale)
  2044. engine->RegisterObjectMethod(className, "void SetScale(float)", AS_METHODPR(T, SetScale, (float), void), AS_CALL_THISCALL);
  2045. // void Matrix3x4::SetTranslation(const Vector3& translation)
  2046. engine->RegisterObjectMethod(className, "void SetTranslation(const Vector3&in)", AS_METHODPR(T, SetTranslation, (const Vector3&), void), AS_CALL_THISCALL);
  2047. // Vector3 Matrix3x4::SignedScale(const Matrix3& rotation) const
  2048. engine->RegisterObjectMethod(className, "Vector3 SignedScale(const Matrix3&in) const", AS_METHODPR(T, SignedScale, (const Matrix3&) const, Vector3), AS_CALL_THISCALL);
  2049. // Matrix3 Matrix3x4::ToMatrix3() const
  2050. engine->RegisterObjectMethod(className, "Matrix3 ToMatrix3() const", AS_METHODPR(T, ToMatrix3, () const, Matrix3), AS_CALL_THISCALL);
  2051. // Matrix4 Matrix3x4::ToMatrix4() const
  2052. engine->RegisterObjectMethod(className, "Matrix4 ToMatrix4() const", AS_METHODPR(T, ToMatrix4, () const, Matrix4), AS_CALL_THISCALL);
  2053. // String Matrix3x4::ToString() const
  2054. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  2055. // Vector3 Matrix3x4::Translation() const
  2056. engine->RegisterObjectMethod(className, "Vector3 Translation() const", AS_METHODPR(T, Translation, () const, Vector3), AS_CALL_THISCALL);
  2057. // float Matrix3x4::m00_
  2058. engine->RegisterObjectProperty(className, "float m00", offsetof(T, m00_));
  2059. // float Matrix3x4::m01_
  2060. engine->RegisterObjectProperty(className, "float m01", offsetof(T, m01_));
  2061. // float Matrix3x4::m02_
  2062. engine->RegisterObjectProperty(className, "float m02", offsetof(T, m02_));
  2063. // float Matrix3x4::m03_
  2064. engine->RegisterObjectProperty(className, "float m03", offsetof(T, m03_));
  2065. // float Matrix3x4::m10_
  2066. engine->RegisterObjectProperty(className, "float m10", offsetof(T, m10_));
  2067. // float Matrix3x4::m11_
  2068. engine->RegisterObjectProperty(className, "float m11", offsetof(T, m11_));
  2069. // float Matrix3x4::m12_
  2070. engine->RegisterObjectProperty(className, "float m12", offsetof(T, m12_));
  2071. // float Matrix3x4::m13_
  2072. engine->RegisterObjectProperty(className, "float m13", offsetof(T, m13_));
  2073. // float Matrix3x4::m20_
  2074. engine->RegisterObjectProperty(className, "float m20", offsetof(T, m20_));
  2075. // float Matrix3x4::m21_
  2076. engine->RegisterObjectProperty(className, "float m21", offsetof(T, m21_));
  2077. // float Matrix3x4::m22_
  2078. engine->RegisterObjectProperty(className, "float m22", offsetof(T, m22_));
  2079. // float Matrix3x4::m23_
  2080. engine->RegisterObjectProperty(className, "float m23", offsetof(T, m23_));
  2081. // static const Matrix3x4 Matrix3x4::ZERO
  2082. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Matrix3x4 ZERO", (void*)&T::ZERO);engine->SetDefaultNamespace("");
  2083. // static const Matrix3x4 Matrix3x4::IDENTITY
  2084. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Matrix3x4 IDENTITY", (void*)&T::IDENTITY);engine->SetDefaultNamespace("");
  2085. #ifdef REGISTER_MEMBERS_MANUAL_PART_Matrix3x4
  2086. REGISTER_MEMBERS_MANUAL_PART_Matrix3x4();
  2087. #endif
  2088. }
  2089. // class Matrix4 | File: ../Math/Matrix4.h
  2090. template <class T> void RegisterMembers_Matrix4(asIScriptEngine* engine, const char* className)
  2091. {
  2092. // const float* Matrix4::Data() const
  2093. // Error: type "const float*" can not automatically bind
  2094. // bool Matrix4::operator !=(const Matrix4& rhs) const
  2095. // Only operator == is needed
  2096. // Vector4 Matrix4::Column(unsigned j) const
  2097. engine->RegisterObjectMethod(className, "Vector4 Column(uint) const", AS_METHODPR(T, Column, (unsigned) const, Vector4), AS_CALL_THISCALL);
  2098. // void Matrix4::Decompose(Vector3& translation, Quaternion& rotation, Vector3& scale) const
  2099. engine->RegisterObjectMethod(className, "void Decompose(Vector3&, Quaternion&, Vector3&) const", AS_METHODPR(T, Decompose, (Vector3&, Quaternion&, Vector3&) const, void), AS_CALL_THISCALL);
  2100. // float Matrix4::Element(unsigned i, unsigned j) const
  2101. engine->RegisterObjectMethod(className, "float Element(uint, uint) const", AS_METHODPR(T, Element, (unsigned, unsigned) const, float), AS_CALL_THISCALL);
  2102. // bool Matrix4::Equals(const Matrix4& rhs) const
  2103. engine->RegisterObjectMethod(className, "bool Equals(const Matrix4&in) const", AS_METHODPR(T, Equals, (const Matrix4&) const, bool), AS_CALL_THISCALL);
  2104. // Matrix4 Matrix4::Inverse() const
  2105. engine->RegisterObjectMethod(className, "Matrix4 Inverse() const", AS_METHODPR(T, Inverse, () const, Matrix4), AS_CALL_THISCALL);
  2106. // bool Matrix4::IsInf() const
  2107. engine->RegisterObjectMethod(className, "bool IsInf() const", AS_METHODPR(T, IsInf, () const, bool), AS_CALL_THISCALL);
  2108. // bool Matrix4::IsNaN() const
  2109. engine->RegisterObjectMethod(className, "bool IsNaN() const", AS_METHODPR(T, IsNaN, () const, bool), AS_CALL_THISCALL);
  2110. // Vector3 Matrix4::operator *(const Vector3& rhs) const
  2111. engine->RegisterObjectMethod(className, "Vector3 opMul(const Vector3&in) const", AS_METHODPR(T, operator*, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  2112. // Vector4 Matrix4::operator *(const Vector4& rhs) const
  2113. engine->RegisterObjectMethod(className, "Vector4 opMul(const Vector4&in) const", AS_METHODPR(T, operator*, (const Vector4&) const, Vector4), AS_CALL_THISCALL);
  2114. // Matrix4 Matrix4::operator *(float rhs) const
  2115. engine->RegisterObjectMethod(className, "Matrix4 opMul(float) const", AS_METHODPR(T, operator*, (float) const, Matrix4), AS_CALL_THISCALL);
  2116. // Matrix4 Matrix4::operator *(const Matrix4& rhs) const
  2117. engine->RegisterObjectMethod(className, "Matrix4 opMul(const Matrix4&in) const", AS_METHODPR(T, operator*, (const Matrix4&) const, Matrix4), AS_CALL_THISCALL);
  2118. // Matrix4 Matrix4::operator *(const Matrix3x4& rhs) const
  2119. engine->RegisterObjectMethod(className, "Matrix4 opMul(const Matrix3x4&in) const", AS_METHODPR(T, operator*, (const Matrix3x4&) const, Matrix4), AS_CALL_THISCALL);
  2120. // Matrix4 Matrix4::operator +(const Matrix4& rhs) const
  2121. engine->RegisterObjectMethod(className, "Matrix4 opAdd(const Matrix4&in) const", AS_METHODPR(T, operator+, (const Matrix4&) const, Matrix4), AS_CALL_THISCALL);
  2122. // Matrix4 Matrix4::operator -(const Matrix4& rhs) const
  2123. engine->RegisterObjectMethod(className, "Matrix4 opSub(const Matrix4&in) const", AS_METHODPR(T, operator-, (const Matrix4&) const, Matrix4), AS_CALL_THISCALL);
  2124. // Matrix4& Matrix4::operator =(const Matrix4& rhs) noexcept
  2125. engine->RegisterObjectMethod(className, "Matrix4& opAssign(const Matrix4&in)", AS_METHODPR(T, operator=, (const Matrix4&), Matrix4&), AS_CALL_THISCALL);
  2126. // Matrix4& Matrix4::operator =(const Matrix3& rhs) noexcept
  2127. engine->RegisterObjectMethod(className, "Matrix4& opAssign(const Matrix3&in)", AS_METHODPR(T, operator=, (const Matrix3&), Matrix4&), AS_CALL_THISCALL);
  2128. // bool Matrix4::operator ==(const Matrix4& rhs) const
  2129. engine->RegisterObjectMethod(className, "bool opEquals(const Matrix4&in) const", AS_METHODPR(T, operator==, (const Matrix4&) const, bool), AS_CALL_THISCALL);
  2130. // Quaternion Matrix4::Rotation() const
  2131. engine->RegisterObjectMethod(className, "Quaternion Rotation() const", AS_METHODPR(T, Rotation, () const, Quaternion), AS_CALL_THISCALL);
  2132. // Matrix3 Matrix4::RotationMatrix() const
  2133. engine->RegisterObjectMethod(className, "Matrix3 RotationMatrix() const", AS_METHODPR(T, RotationMatrix, () const, Matrix3), AS_CALL_THISCALL);
  2134. // Vector4 Matrix4::Row(unsigned i) const
  2135. engine->RegisterObjectMethod(className, "Vector4 Row(uint) const", AS_METHODPR(T, Row, (unsigned) const, Vector4), AS_CALL_THISCALL);
  2136. // Vector3 Matrix4::Scale() const
  2137. engine->RegisterObjectMethod(className, "Vector3 Scale() const", AS_METHODPR(T, Scale, () const, Vector3), AS_CALL_THISCALL);
  2138. // void Matrix4::SetRotation(const Matrix3& rotation)
  2139. engine->RegisterObjectMethod(className, "void SetRotation(const Matrix3&in)", AS_METHODPR(T, SetRotation, (const Matrix3&), void), AS_CALL_THISCALL);
  2140. // void Matrix4::SetScale(const Vector3& scale)
  2141. engine->RegisterObjectMethod(className, "void SetScale(const Vector3&in)", AS_METHODPR(T, SetScale, (const Vector3&), void), AS_CALL_THISCALL);
  2142. // void Matrix4::SetScale(float scale)
  2143. engine->RegisterObjectMethod(className, "void SetScale(float)", AS_METHODPR(T, SetScale, (float), void), AS_CALL_THISCALL);
  2144. // void Matrix4::SetTranslation(const Vector3& translation)
  2145. engine->RegisterObjectMethod(className, "void SetTranslation(const Vector3&in)", AS_METHODPR(T, SetTranslation, (const Vector3&), void), AS_CALL_THISCALL);
  2146. // Vector3 Matrix4::SignedScale(const Matrix3& rotation) const
  2147. engine->RegisterObjectMethod(className, "Vector3 SignedScale(const Matrix3&in) const", AS_METHODPR(T, SignedScale, (const Matrix3&) const, Vector3), AS_CALL_THISCALL);
  2148. // Matrix3 Matrix4::ToMatrix3() const
  2149. engine->RegisterObjectMethod(className, "Matrix3 ToMatrix3() const", AS_METHODPR(T, ToMatrix3, () const, Matrix3), AS_CALL_THISCALL);
  2150. // String Matrix4::ToString() const
  2151. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  2152. // Vector3 Matrix4::Translation() const
  2153. engine->RegisterObjectMethod(className, "Vector3 Translation() const", AS_METHODPR(T, Translation, () const, Vector3), AS_CALL_THISCALL);
  2154. // Matrix4 Matrix4::Transpose() const
  2155. engine->RegisterObjectMethod(className, "Matrix4 Transpose() const", AS_METHODPR(T, Transpose, () const, Matrix4), AS_CALL_THISCALL);
  2156. // static void Matrix4::BulkTranspose(float* dest, const float* src, unsigned count)
  2157. // Error: type "float*" can not automatically bind
  2158. // float Matrix4::m00_
  2159. engine->RegisterObjectProperty(className, "float m00", offsetof(T, m00_));
  2160. // float Matrix4::m01_
  2161. engine->RegisterObjectProperty(className, "float m01", offsetof(T, m01_));
  2162. // float Matrix4::m02_
  2163. engine->RegisterObjectProperty(className, "float m02", offsetof(T, m02_));
  2164. // float Matrix4::m03_
  2165. engine->RegisterObjectProperty(className, "float m03", offsetof(T, m03_));
  2166. // float Matrix4::m10_
  2167. engine->RegisterObjectProperty(className, "float m10", offsetof(T, m10_));
  2168. // float Matrix4::m11_
  2169. engine->RegisterObjectProperty(className, "float m11", offsetof(T, m11_));
  2170. // float Matrix4::m12_
  2171. engine->RegisterObjectProperty(className, "float m12", offsetof(T, m12_));
  2172. // float Matrix4::m13_
  2173. engine->RegisterObjectProperty(className, "float m13", offsetof(T, m13_));
  2174. // float Matrix4::m20_
  2175. engine->RegisterObjectProperty(className, "float m20", offsetof(T, m20_));
  2176. // float Matrix4::m21_
  2177. engine->RegisterObjectProperty(className, "float m21", offsetof(T, m21_));
  2178. // float Matrix4::m22_
  2179. engine->RegisterObjectProperty(className, "float m22", offsetof(T, m22_));
  2180. // float Matrix4::m23_
  2181. engine->RegisterObjectProperty(className, "float m23", offsetof(T, m23_));
  2182. // float Matrix4::m30_
  2183. engine->RegisterObjectProperty(className, "float m30", offsetof(T, m30_));
  2184. // float Matrix4::m31_
  2185. engine->RegisterObjectProperty(className, "float m31", offsetof(T, m31_));
  2186. // float Matrix4::m32_
  2187. engine->RegisterObjectProperty(className, "float m32", offsetof(T, m32_));
  2188. // float Matrix4::m33_
  2189. engine->RegisterObjectProperty(className, "float m33", offsetof(T, m33_));
  2190. // static const Matrix4 Matrix4::ZERO
  2191. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Matrix4 ZERO", (void*)&T::ZERO);engine->SetDefaultNamespace("");
  2192. // static const Matrix4 Matrix4::IDENTITY
  2193. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Matrix4 IDENTITY", (void*)&T::IDENTITY);engine->SetDefaultNamespace("");
  2194. #ifdef REGISTER_MEMBERS_MANUAL_PART_Matrix4
  2195. REGISTER_MEMBERS_MANUAL_PART_Matrix4();
  2196. #endif
  2197. }
  2198. // struct ModelMorph | File: ../Graphics/Model.h
  2199. template <class T> void RegisterMembers_ModelMorph(asIScriptEngine* engine, const char* className)
  2200. {
  2201. // HashMap<unsigned, VertexBufferMorph> ModelMorph::buffers_
  2202. // Error: type "HashMap<unsigned, VertexBufferMorph>" can not automatically bind
  2203. // String ModelMorph::name_
  2204. engine->RegisterObjectProperty(className, "String name", offsetof(T, name_));
  2205. // StringHash ModelMorph::nameHash_
  2206. engine->RegisterObjectProperty(className, "StringHash nameHash", offsetof(T, nameHash_));
  2207. // float ModelMorph::weight_
  2208. engine->RegisterObjectProperty(className, "float weight", offsetof(T, weight_));
  2209. #ifdef REGISTER_MEMBERS_MANUAL_PART_ModelMorph
  2210. REGISTER_MEMBERS_MANUAL_PART_ModelMorph();
  2211. #endif
  2212. }
  2213. // class Mutex | File: ../Core/Mutex.h
  2214. template <class T> void RegisterMembers_Mutex(asIScriptEngine* engine, const char* className)
  2215. {
  2216. // void Mutex::Acquire()
  2217. engine->RegisterObjectMethod(className, "void Acquire()", AS_METHODPR(T, Acquire, (), void), AS_CALL_THISCALL);
  2218. // void Mutex::Release()
  2219. engine->RegisterObjectMethod(className, "void Release()", AS_METHODPR(T, Release, (), void), AS_CALL_THISCALL);
  2220. // bool Mutex::TryAcquire()
  2221. engine->RegisterObjectMethod(className, "bool TryAcquire()", AS_METHODPR(T, TryAcquire, (), bool), AS_CALL_THISCALL);
  2222. #ifdef REGISTER_MEMBERS_MANUAL_PART_Mutex
  2223. REGISTER_MEMBERS_MANUAL_PART_Mutex();
  2224. #endif
  2225. }
  2226. // class MutexLock | File: ../Core/Mutex.h
  2227. template <class T> void RegisterMembers_MutexLock(asIScriptEngine* engine, const char* className)
  2228. {
  2229. // MutexLock& MutexLock::operator =(const MutexLock& rhs) = delete
  2230. // Not registered because deleted
  2231. #ifdef REGISTER_MEMBERS_MANUAL_PART_MutexLock
  2232. REGISTER_MEMBERS_MANUAL_PART_MutexLock();
  2233. #endif
  2234. }
  2235. // struct NetworkState | File: ../Scene/ReplicationState.h
  2236. template <class T> void RegisterMembers_NetworkState(asIScriptEngine* engine, const char* className)
  2237. {
  2238. // const Vector<AttributeInfo>* NetworkState::attributes_
  2239. // Not registered because pointer
  2240. // Vector<Variant> NetworkState::currentValues_
  2241. // Error: type "Vector<Variant>" can not automatically bind
  2242. // Vector<Variant> NetworkState::previousValues_
  2243. // Error: type "Vector<Variant>" can not automatically bind
  2244. // PODVector<ReplicationState*> NetworkState::replicationStates_
  2245. // Error: type "PODVector<ReplicationState*>" can not automatically bind
  2246. // VariantMap NetworkState::previousVars_
  2247. engine->RegisterObjectProperty(className, "VariantMap previousVars", offsetof(T, previousVars_));
  2248. // unsigned long long NetworkState::interceptMask_
  2249. engine->RegisterObjectProperty(className, "uint64 interceptMask", offsetof(T, interceptMask_));
  2250. #ifdef REGISTER_MEMBERS_MANUAL_PART_NetworkState
  2251. REGISTER_MEMBERS_MANUAL_PART_NetworkState();
  2252. #endif
  2253. }
  2254. // struct NodeImpl | File: ../Scene/Node.h
  2255. template <class T> void RegisterMembers_NodeImpl(asIScriptEngine* engine, const char* className)
  2256. {
  2257. // PODVector<Node*> NodeImpl::dependencyNodes_
  2258. // Error: type "PODVector<Node*>" can not automatically bind
  2259. // Connection* NodeImpl::owner_
  2260. // Not registered because pointer
  2261. // StringVector NodeImpl::tags_
  2262. // Error: type "StringVector" can not automatically bind
  2263. // String NodeImpl::name_
  2264. engine->RegisterObjectProperty(className, "String name", offsetof(T, name_));
  2265. // StringHash NodeImpl::nameHash_
  2266. engine->RegisterObjectProperty(className, "StringHash nameHash", offsetof(T, nameHash_));
  2267. // VectorBuffer NodeImpl::attrBuffer_
  2268. engine->RegisterObjectProperty(className, "VectorBuffer attrBuffer", offsetof(T, attrBuffer_));
  2269. #ifdef REGISTER_MEMBERS_MANUAL_PART_NodeImpl
  2270. REGISTER_MEMBERS_MANUAL_PART_NodeImpl();
  2271. #endif
  2272. }
  2273. // struct OcclusionBatch | File: ../Graphics/OcclusionBuffer.h
  2274. template <class T> void RegisterMembers_OcclusionBatch(asIScriptEngine* engine, const char* className)
  2275. {
  2276. // const void* OcclusionBatch::vertexData_
  2277. // Not registered because pointer
  2278. // const void* OcclusionBatch::indexData_
  2279. // Not registered because pointer
  2280. // Matrix3x4 OcclusionBatch::model_
  2281. engine->RegisterObjectProperty(className, "Matrix3x4 model", offsetof(T, model_));
  2282. // unsigned OcclusionBatch::vertexSize_
  2283. engine->RegisterObjectProperty(className, "uint vertexSize", offsetof(T, vertexSize_));
  2284. // unsigned OcclusionBatch::indexSize_
  2285. engine->RegisterObjectProperty(className, "uint indexSize", offsetof(T, indexSize_));
  2286. // unsigned OcclusionBatch::drawStart_
  2287. engine->RegisterObjectProperty(className, "uint drawStart", offsetof(T, drawStart_));
  2288. // unsigned OcclusionBatch::drawCount_
  2289. engine->RegisterObjectProperty(className, "uint drawCount", offsetof(T, drawCount_));
  2290. #ifdef REGISTER_MEMBERS_MANUAL_PART_OcclusionBatch
  2291. REGISTER_MEMBERS_MANUAL_PART_OcclusionBatch();
  2292. #endif
  2293. }
  2294. // struct OcclusionBufferData | File: ../Graphics/OcclusionBuffer.h
  2295. template <class T> void RegisterMembers_OcclusionBufferData(asIScriptEngine* engine, const char* className)
  2296. {
  2297. // SharedArrayPtr<int> OcclusionBufferData::dataWithSafety_
  2298. // Error: type "SharedArrayPtr<int>" can not automatically bind
  2299. // int* OcclusionBufferData::data_
  2300. // Not registered because pointer
  2301. // bool OcclusionBufferData::used_
  2302. engine->RegisterObjectProperty(className, "bool used", offsetof(T, used_));
  2303. #ifdef REGISTER_MEMBERS_MANUAL_PART_OcclusionBufferData
  2304. REGISTER_MEMBERS_MANUAL_PART_OcclusionBufferData();
  2305. #endif
  2306. }
  2307. // class Octant | File: ../Graphics/Octree.h
  2308. template <class T> void RegisterMembers_Octant(asIScriptEngine* engine, const char* className)
  2309. {
  2310. // Octant* Octant::GetOrCreateChild(unsigned index)
  2311. // Error: type "Octant" can not automatically bind bacause have @nobind mark
  2312. // Octant* Octant::GetParent() const
  2313. // Error: type "Octant" can not automatically bind bacause have @nobind mark
  2314. // void Octant::AddDrawable(Drawable* drawable)
  2315. engine->RegisterObjectMethod(className, "void AddDrawable(Drawable@+)", AS_METHODPR(T, AddDrawable, (Drawable*), void), AS_CALL_THISCALL);
  2316. // bool Octant::CheckDrawableFit(const BoundingBox& box) const
  2317. engine->RegisterObjectMethod(className, "bool CheckDrawableFit(const BoundingBox&in) const", AS_METHODPR(T, CheckDrawableFit, (const BoundingBox&) const, bool), AS_CALL_THISCALL);
  2318. // void Octant::DeleteChild(unsigned index)
  2319. engine->RegisterObjectMethod(className, "void DeleteChild(uint)", AS_METHODPR(T, DeleteChild, (unsigned), void), AS_CALL_THISCALL);
  2320. // const BoundingBox& Octant::GetCullingBox() const
  2321. engine->RegisterObjectMethod(className, "const BoundingBox& GetCullingBox() const", AS_METHODPR(T, GetCullingBox, () const, const BoundingBox&), AS_CALL_THISCALL);
  2322. // unsigned Octant::GetLevel() const
  2323. engine->RegisterObjectMethod(className, "uint GetLevel() const", AS_METHODPR(T, GetLevel, () const, unsigned), AS_CALL_THISCALL);
  2324. // unsigned Octant::GetNumDrawables() const
  2325. engine->RegisterObjectMethod(className, "uint GetNumDrawables() const", AS_METHODPR(T, GetNumDrawables, () const, unsigned), AS_CALL_THISCALL);
  2326. // Octree* Octant::GetRoot() const
  2327. engine->RegisterObjectMethod(className, "Octree@+ GetRoot() const", AS_METHODPR(T, GetRoot, () const, Octree*), AS_CALL_THISCALL);
  2328. // const BoundingBox& Octant::GetWorldBoundingBox() const
  2329. engine->RegisterObjectMethod(className, "const BoundingBox& GetWorldBoundingBox() const", AS_METHODPR(T, GetWorldBoundingBox, () const, const BoundingBox&), AS_CALL_THISCALL);
  2330. engine->RegisterObjectMethod(className, "const BoundingBox& get_worldBoundingBox() const", AS_METHODPR(T, GetWorldBoundingBox, () const, const BoundingBox&), AS_CALL_THISCALL);
  2331. // void Octant::InsertDrawable(Drawable* drawable)
  2332. engine->RegisterObjectMethod(className, "void InsertDrawable(Drawable@+)", AS_METHODPR(T, InsertDrawable, (Drawable*), void), AS_CALL_THISCALL);
  2333. // bool Octant::IsEmpty()
  2334. engine->RegisterObjectMethod(className, "bool IsEmpty()", AS_METHODPR(T, IsEmpty, (), bool), AS_CALL_THISCALL);
  2335. // void Octant::RemoveDrawable(Drawable* drawable, bool resetOctant = true)
  2336. engine->RegisterObjectMethod(className, "void RemoveDrawable(Drawable@+, bool = true)", AS_METHODPR(T, RemoveDrawable, (Drawable*, bool), void), AS_CALL_THISCALL);
  2337. // void Octant::ResetRoot()
  2338. engine->RegisterObjectMethod(className, "void ResetRoot()", AS_METHODPR(T, ResetRoot, (), void), AS_CALL_THISCALL);
  2339. #ifdef REGISTER_MEMBERS_MANUAL_PART_Octant
  2340. REGISTER_MEMBERS_MANUAL_PART_Octant();
  2341. #endif
  2342. }
  2343. // class OctreeQuery | File: ../Graphics/OctreeQuery.h
  2344. template <class T> void RegisterMembers_OctreeQuery(asIScriptEngine* engine, const char* className)
  2345. {
  2346. // virtual void OctreeQuery::TestDrawables(Drawable** start, Drawable** end, bool inside) = 0
  2347. // Error: type "Drawable**" can not automatically bind
  2348. // virtual Intersection OctreeQuery::TestOctant(const BoundingBox& box, bool inside) = 0
  2349. engine->RegisterObjectMethod(className, "Intersection TestOctant(const BoundingBox&in, bool)", AS_METHODPR(T, TestOctant, (const BoundingBox&, bool), Intersection), AS_CALL_THISCALL);
  2350. // OctreeQuery& OctreeQuery::operator =(const OctreeQuery& rhs) = delete
  2351. // Not registered because deleted
  2352. // PODVector<Drawable*>& OctreeQuery::result_
  2353. // Error: type "PODVector<Drawable*>&" can not automatically bind
  2354. // unsigned char OctreeQuery::drawableFlags_
  2355. engine->RegisterObjectProperty(className, "uint8 drawableFlags", offsetof(T, drawableFlags_));
  2356. // unsigned OctreeQuery::viewMask_
  2357. engine->RegisterObjectProperty(className, "uint viewMask", offsetof(T, viewMask_));
  2358. #ifdef REGISTER_MEMBERS_MANUAL_PART_OctreeQuery
  2359. REGISTER_MEMBERS_MANUAL_PART_OctreeQuery();
  2360. #endif
  2361. }
  2362. // struct OctreeQueryResult | File: ../Graphics/OctreeQuery.h
  2363. template <class T> void RegisterMembers_OctreeQueryResult(asIScriptEngine* engine, const char* className)
  2364. {
  2365. // bool OctreeQueryResult::operator !=(const OctreeQueryResult& rhs) const
  2366. // Only operator == is needed
  2367. // Drawable* OctreeQueryResult::drawable_
  2368. // Not registered because pointer
  2369. // Node* OctreeQueryResult::node_
  2370. // Not registered because pointer
  2371. #ifdef REGISTER_MEMBERS_MANUAL_PART_OctreeQueryResult
  2372. REGISTER_MEMBERS_MANUAL_PART_OctreeQueryResult();
  2373. #endif
  2374. }
  2375. // struct PackageEntry | File: ../IO/PackageFile.h
  2376. template <class T> void RegisterMembers_PackageEntry(asIScriptEngine* engine, const char* className)
  2377. {
  2378. // unsigned PackageEntry::offset_
  2379. engine->RegisterObjectProperty(className, "uint offset", offsetof(T, offset_));
  2380. // unsigned PackageEntry::size_
  2381. engine->RegisterObjectProperty(className, "uint size", offsetof(T, size_));
  2382. // unsigned PackageEntry::checksum_
  2383. engine->RegisterObjectProperty(className, "uint checksum", offsetof(T, checksum_));
  2384. #ifdef REGISTER_MEMBERS_MANUAL_PART_PackageEntry
  2385. REGISTER_MEMBERS_MANUAL_PART_PackageEntry();
  2386. #endif
  2387. }
  2388. // struct Particle | File: ../Graphics/ParticleEmitter.h
  2389. template <class T> void RegisterMembers_Particle(asIScriptEngine* engine, const char* className)
  2390. {
  2391. // Vector3 Particle::velocity_
  2392. engine->RegisterObjectProperty(className, "Vector3 velocity", offsetof(T, velocity_));
  2393. // Vector2 Particle::size_
  2394. engine->RegisterObjectProperty(className, "Vector2 size", offsetof(T, size_));
  2395. // float Particle::timer_
  2396. engine->RegisterObjectProperty(className, "float timer", offsetof(T, timer_));
  2397. // float Particle::timeToLive_
  2398. engine->RegisterObjectProperty(className, "float timeToLive", offsetof(T, timeToLive_));
  2399. // float Particle::scale_
  2400. engine->RegisterObjectProperty(className, "float scale", offsetof(T, scale_));
  2401. // float Particle::rotationSpeed_
  2402. engine->RegisterObjectProperty(className, "float rotationSpeed", offsetof(T, rotationSpeed_));
  2403. // unsigned Particle::colorIndex_
  2404. engine->RegisterObjectProperty(className, "uint colorIndex", offsetof(T, colorIndex_));
  2405. // unsigned Particle::texIndex_
  2406. engine->RegisterObjectProperty(className, "uint texIndex", offsetof(T, texIndex_));
  2407. #ifdef REGISTER_MEMBERS_MANUAL_PART_Particle
  2408. REGISTER_MEMBERS_MANUAL_PART_Particle();
  2409. #endif
  2410. }
  2411. // struct PerThreadSceneResult | File: ../Graphics/View.h
  2412. template <class T> void RegisterMembers_PerThreadSceneResult(asIScriptEngine* engine, const char* className)
  2413. {
  2414. // PODVector<Drawable*> PerThreadSceneResult::geometries_
  2415. // Error: type "PODVector<Drawable*>" can not automatically bind
  2416. // PODVector<Light*> PerThreadSceneResult::lights_
  2417. // Error: type "PODVector<Light*>" can not automatically bind
  2418. // float PerThreadSceneResult::minZ_
  2419. engine->RegisterObjectProperty(className, "float minZ", offsetof(T, minZ_));
  2420. // float PerThreadSceneResult::maxZ_
  2421. engine->RegisterObjectProperty(className, "float maxZ", offsetof(T, maxZ_));
  2422. #ifdef REGISTER_MEMBERS_MANUAL_PART_PerThreadSceneResult
  2423. REGISTER_MEMBERS_MANUAL_PART_PerThreadSceneResult();
  2424. #endif
  2425. }
  2426. // class Plane | File: ../Math/Plane.h
  2427. template <class T> void RegisterMembers_Plane(asIScriptEngine* engine, const char* className)
  2428. {
  2429. // void Plane::Define(const Vector3& v0, const Vector3& v1, const Vector3& v2)
  2430. engine->RegisterObjectMethod(className, "void Define(const Vector3&in, const Vector3&in, const Vector3&in)", AS_METHODPR(T, Define, (const Vector3&, const Vector3&, const Vector3&), void), AS_CALL_THISCALL);
  2431. // void Plane::Define(const Vector3& normal, const Vector3& point)
  2432. engine->RegisterObjectMethod(className, "void Define(const Vector3&in, const Vector3&in)", AS_METHODPR(T, Define, (const Vector3&, const Vector3&), void), AS_CALL_THISCALL);
  2433. // void Plane::Define(const Vector4& plane)
  2434. engine->RegisterObjectMethod(className, "void Define(const Vector4&in)", AS_METHODPR(T, Define, (const Vector4&), void), AS_CALL_THISCALL);
  2435. // float Plane::Distance(const Vector3& point) const
  2436. engine->RegisterObjectMethod(className, "float Distance(const Vector3&in) const", AS_METHODPR(T, Distance, (const Vector3&) const, float), AS_CALL_THISCALL);
  2437. // Plane& Plane::operator =(const Plane& rhs) noexcept = default
  2438. engine->RegisterObjectMethod(className, "Plane& opAssign(const Plane&in)", AS_METHODPR(T, operator=, (const Plane&), Plane&), AS_CALL_THISCALL);
  2439. // Vector3 Plane::Project(const Vector3& point) const
  2440. engine->RegisterObjectMethod(className, "Vector3 Project(const Vector3&in) const", AS_METHODPR(T, Project, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  2441. // Vector3 Plane::Reflect(const Vector3& direction) const
  2442. engine->RegisterObjectMethod(className, "Vector3 Reflect(const Vector3&in) const", AS_METHODPR(T, Reflect, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  2443. // Matrix3x4 Plane::ReflectionMatrix() const
  2444. engine->RegisterObjectMethod(className, "Matrix3x4 ReflectionMatrix() const", AS_METHODPR(T, ReflectionMatrix, () const, Matrix3x4), AS_CALL_THISCALL);
  2445. engine->RegisterObjectMethod(className, "Matrix3x4 get_reflectionMatrix() const", AS_METHODPR(T, ReflectionMatrix, () const, Matrix3x4), AS_CALL_THISCALL);
  2446. // Vector4 Plane::ToVector4() const
  2447. engine->RegisterObjectMethod(className, "Vector4 ToVector4() const", AS_METHODPR(T, ToVector4, () const, Vector4), AS_CALL_THISCALL);
  2448. // void Plane::Transform(const Matrix3& transform)
  2449. engine->RegisterObjectMethod(className, "void Transform(const Matrix3&in)", AS_METHODPR(T, Transform, (const Matrix3&), void), AS_CALL_THISCALL);
  2450. // void Plane::Transform(const Matrix3x4& transform)
  2451. engine->RegisterObjectMethod(className, "void Transform(const Matrix3x4&in)", AS_METHODPR(T, Transform, (const Matrix3x4&), void), AS_CALL_THISCALL);
  2452. // void Plane::Transform(const Matrix4& transform)
  2453. engine->RegisterObjectMethod(className, "void Transform(const Matrix4&in)", AS_METHODPR(T, Transform, (const Matrix4&), void), AS_CALL_THISCALL);
  2454. // Plane Plane::Transformed(const Matrix3& transform) const
  2455. engine->RegisterObjectMethod(className, "Plane Transformed(const Matrix3&in) const", AS_METHODPR(T, Transformed, (const Matrix3&) const, Plane), AS_CALL_THISCALL);
  2456. // Plane Plane::Transformed(const Matrix3x4& transform) const
  2457. engine->RegisterObjectMethod(className, "Plane Transformed(const Matrix3x4&in) const", AS_METHODPR(T, Transformed, (const Matrix3x4&) const, Plane), AS_CALL_THISCALL);
  2458. // Plane Plane::Transformed(const Matrix4& transform) const
  2459. engine->RegisterObjectMethod(className, "Plane Transformed(const Matrix4&in) const", AS_METHODPR(T, Transformed, (const Matrix4&) const, Plane), AS_CALL_THISCALL);
  2460. // Vector3 Plane::normal_
  2461. engine->RegisterObjectProperty(className, "Vector3 normal", offsetof(T, normal_));
  2462. // Vector3 Plane::absNormal_
  2463. engine->RegisterObjectProperty(className, "Vector3 absNormal", offsetof(T, absNormal_));
  2464. // float Plane::d_
  2465. engine->RegisterObjectProperty(className, "float d", offsetof(T, d_));
  2466. // static const Plane Plane::UP
  2467. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Plane UP", (void*)&T::UP);engine->SetDefaultNamespace("");
  2468. #ifdef REGISTER_MEMBERS_MANUAL_PART_Plane
  2469. REGISTER_MEMBERS_MANUAL_PART_Plane();
  2470. #endif
  2471. }
  2472. // void Polyhedron::AddFace(const PODVector<Vector3>& face)
  2473. template <class T> void Polyhedron_void_AddFace_constspPODVectorlesVector3greamp_template(T* _ptr, CScriptArray* face_conv)
  2474. {
  2475. PODVector<Vector3> face = ArrayToPODVector<Vector3>(face_conv);
  2476. _ptr->AddFace(face);
  2477. }
  2478. // class Polyhedron | File: ../Math/Polyhedron.h
  2479. template <class T> void RegisterMembers_Polyhedron(asIScriptEngine* engine, const char* className)
  2480. {
  2481. // void Polyhedron::AddFace(const Vector3& v0, const Vector3& v1, const Vector3& v2)
  2482. engine->RegisterObjectMethod(className, "void AddFace(const Vector3&in, const Vector3&in, const Vector3&in)", AS_METHODPR(T, AddFace, (const Vector3&, const Vector3&, const Vector3&), void), AS_CALL_THISCALL);
  2483. // void Polyhedron::AddFace(const Vector3& v0, const Vector3& v1, const Vector3& v2, const Vector3& v3)
  2484. engine->RegisterObjectMethod(className, "void AddFace(const Vector3&in, const Vector3&in, const Vector3&in, const Vector3&in)", AS_METHODPR(T, AddFace, (const Vector3&, const Vector3&, const Vector3&, const Vector3&), void), AS_CALL_THISCALL);
  2485. // void Polyhedron::AddFace(const PODVector<Vector3>& face)
  2486. engine->RegisterObjectMethod(className, "void AddFace(Array<Vector3>@+)", AS_FUNCTION_OBJFIRST(Polyhedron_void_AddFace_constspPODVectorlesVector3greamp_template<Polyhedron>), AS_CALL_CDECL_OBJFIRST);
  2487. // void Polyhedron::Clear()
  2488. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  2489. // void Polyhedron::Clip(const Plane& plane)
  2490. engine->RegisterObjectMethod(className, "void Clip(const Plane&in)", AS_METHODPR(T, Clip, (const Plane&), void), AS_CALL_THISCALL);
  2491. // void Polyhedron::Clip(const BoundingBox& box)
  2492. engine->RegisterObjectMethod(className, "void Clip(const BoundingBox&in)", AS_METHODPR(T, Clip, (const BoundingBox&), void), AS_CALL_THISCALL);
  2493. // void Polyhedron::Clip(const Frustum& frustum)
  2494. engine->RegisterObjectMethod(className, "void Clip(const Frustum&in)", AS_METHODPR(T, Clip, (const Frustum&), void), AS_CALL_THISCALL);
  2495. // void Polyhedron::Define(const BoundingBox& box)
  2496. engine->RegisterObjectMethod(className, "void Define(const BoundingBox&in)", AS_METHODPR(T, Define, (const BoundingBox&), void), AS_CALL_THISCALL);
  2497. // void Polyhedron::Define(const Frustum& frustum)
  2498. engine->RegisterObjectMethod(className, "void Define(const Frustum&in)", AS_METHODPR(T, Define, (const Frustum&), void), AS_CALL_THISCALL);
  2499. // bool Polyhedron::Empty() const
  2500. engine->RegisterObjectMethod(className, "bool Empty() const", AS_METHODPR(T, Empty, () const, bool), AS_CALL_THISCALL);
  2501. // Polyhedron& Polyhedron::operator =(const Polyhedron& rhs)
  2502. engine->RegisterObjectMethod(className, "Polyhedron& opAssign(const Polyhedron&in)", AS_METHODPR(T, operator=, (const Polyhedron&), Polyhedron&), AS_CALL_THISCALL);
  2503. // void Polyhedron::Transform(const Matrix3& transform)
  2504. engine->RegisterObjectMethod(className, "void Transform(const Matrix3&in)", AS_METHODPR(T, Transform, (const Matrix3&), void), AS_CALL_THISCALL);
  2505. // void Polyhedron::Transform(const Matrix3x4& transform)
  2506. engine->RegisterObjectMethod(className, "void Transform(const Matrix3x4&in)", AS_METHODPR(T, Transform, (const Matrix3x4&), void), AS_CALL_THISCALL);
  2507. // Polyhedron Polyhedron::Transformed(const Matrix3& transform) const
  2508. engine->RegisterObjectMethod(className, "Polyhedron Transformed(const Matrix3&in) const", AS_METHODPR(T, Transformed, (const Matrix3&) const, Polyhedron), AS_CALL_THISCALL);
  2509. // Polyhedron Polyhedron::Transformed(const Matrix3x4& transform) const
  2510. engine->RegisterObjectMethod(className, "Polyhedron Transformed(const Matrix3x4&in) const", AS_METHODPR(T, Transformed, (const Matrix3x4&) const, Polyhedron), AS_CALL_THISCALL);
  2511. // Vector<PODVector<Vector3>> Polyhedron::faces_
  2512. // Error: type "Vector<PODVector<Vector3>>" can not automatically bind
  2513. #ifdef REGISTER_MEMBERS_MANUAL_PART_Polyhedron
  2514. REGISTER_MEMBERS_MANUAL_PART_Polyhedron();
  2515. #endif
  2516. }
  2517. // class ProfilerBlock | File: ../Core/Profiler.h
  2518. template <class T> void RegisterMembers_ProfilerBlock(asIScriptEngine* engine, const char* className)
  2519. {
  2520. // ProfilerBlock* ProfilerBlock::GetChild(const char* name)
  2521. // Can not be registered here bacause hidden in derived classes: EventProfilerBlock
  2522. // void ProfilerBlock::Begin()
  2523. engine->RegisterObjectMethod(className, "void Begin()", AS_METHODPR(T, Begin, (), void), AS_CALL_THISCALL);
  2524. // void ProfilerBlock::BeginInterval()
  2525. engine->RegisterObjectMethod(className, "void BeginInterval()", AS_METHODPR(T, BeginInterval, (), void), AS_CALL_THISCALL);
  2526. // void ProfilerBlock::End()
  2527. engine->RegisterObjectMethod(className, "void End()", AS_METHODPR(T, End, (), void), AS_CALL_THISCALL);
  2528. // void ProfilerBlock::EndFrame()
  2529. engine->RegisterObjectMethod(className, "void EndFrame()", AS_METHODPR(T, EndFrame, (), void), AS_CALL_THISCALL);
  2530. // char* ProfilerBlock::name_
  2531. // Not registered because pointer
  2532. // ProfilerBlock* ProfilerBlock::parent_
  2533. // Not registered because pointer
  2534. // PODVector<ProfilerBlock*> ProfilerBlock::children_
  2535. // Error: type "PODVector<ProfilerBlock*>" can not automatically bind
  2536. // HiresTimer ProfilerBlock::timer_
  2537. engine->RegisterObjectProperty(className, "HiresTimer timer", offsetof(T, timer_));
  2538. // long long ProfilerBlock::time_
  2539. engine->RegisterObjectProperty(className, "int64 time", offsetof(T, time_));
  2540. // long long ProfilerBlock::maxTime_
  2541. engine->RegisterObjectProperty(className, "int64 maxTime", offsetof(T, maxTime_));
  2542. // unsigned ProfilerBlock::count_
  2543. engine->RegisterObjectProperty(className, "uint count", offsetof(T, count_));
  2544. // long long ProfilerBlock::frameTime_
  2545. engine->RegisterObjectProperty(className, "int64 frameTime", offsetof(T, frameTime_));
  2546. // long long ProfilerBlock::frameMaxTime_
  2547. engine->RegisterObjectProperty(className, "int64 frameMaxTime", offsetof(T, frameMaxTime_));
  2548. // unsigned ProfilerBlock::frameCount_
  2549. engine->RegisterObjectProperty(className, "uint frameCount", offsetof(T, frameCount_));
  2550. // long long ProfilerBlock::intervalTime_
  2551. engine->RegisterObjectProperty(className, "int64 intervalTime", offsetof(T, intervalTime_));
  2552. // long long ProfilerBlock::intervalMaxTime_
  2553. engine->RegisterObjectProperty(className, "int64 intervalMaxTime", offsetof(T, intervalMaxTime_));
  2554. // unsigned ProfilerBlock::intervalCount_
  2555. engine->RegisterObjectProperty(className, "uint intervalCount", offsetof(T, intervalCount_));
  2556. // long long ProfilerBlock::totalTime_
  2557. engine->RegisterObjectProperty(className, "int64 totalTime", offsetof(T, totalTime_));
  2558. // long long ProfilerBlock::totalMaxTime_
  2559. engine->RegisterObjectProperty(className, "int64 totalMaxTime", offsetof(T, totalMaxTime_));
  2560. // unsigned ProfilerBlock::totalCount_
  2561. engine->RegisterObjectProperty(className, "uint totalCount", offsetof(T, totalCount_));
  2562. #ifdef REGISTER_MEMBERS_MANUAL_PART_ProfilerBlock
  2563. REGISTER_MEMBERS_MANUAL_PART_ProfilerBlock();
  2564. #endif
  2565. }
  2566. // class Quaternion | File: ../Math/Quaternion.h
  2567. template <class T> void RegisterMembers_Quaternion(asIScriptEngine* engine, const char* className)
  2568. {
  2569. // const float* Quaternion::Data() const
  2570. // Error: type "const float*" can not automatically bind
  2571. // bool Quaternion::operator !=(const Quaternion& rhs) const
  2572. // Only operator == is needed
  2573. // float Quaternion::Angle() const
  2574. engine->RegisterObjectMethod(className, "float Angle() const", AS_METHODPR(T, Angle, () const, float), AS_CALL_THISCALL);
  2575. engine->RegisterObjectMethod(className, "float get_angle() const", AS_METHODPR(T, Angle, () const, float), AS_CALL_THISCALL);
  2576. // Vector3 Quaternion::Axis() const
  2577. engine->RegisterObjectMethod(className, "Vector3 Axis() const", AS_METHODPR(T, Axis, () const, Vector3), AS_CALL_THISCALL);
  2578. engine->RegisterObjectMethod(className, "Vector3 get_axis() const", AS_METHODPR(T, Axis, () const, Vector3), AS_CALL_THISCALL);
  2579. // Quaternion Quaternion::Conjugate() const
  2580. engine->RegisterObjectMethod(className, "Quaternion Conjugate() const", AS_METHODPR(T, Conjugate, () const, Quaternion), AS_CALL_THISCALL);
  2581. // float Quaternion::DotProduct(const Quaternion& rhs) const
  2582. engine->RegisterObjectMethod(className, "float DotProduct(const Quaternion&in) const", AS_METHODPR(T, DotProduct, (const Quaternion&) const, float), AS_CALL_THISCALL);
  2583. // bool Quaternion::Equals(const Quaternion& rhs) const
  2584. engine->RegisterObjectMethod(className, "bool Equals(const Quaternion&in) const", AS_METHODPR(T, Equals, (const Quaternion&) const, bool), AS_CALL_THISCALL);
  2585. // Vector3 Quaternion::EulerAngles() const
  2586. engine->RegisterObjectMethod(className, "Vector3 EulerAngles() const", AS_METHODPR(T, EulerAngles, () const, Vector3), AS_CALL_THISCALL);
  2587. engine->RegisterObjectMethod(className, "Vector3 get_eulerAngles() const", AS_METHODPR(T, EulerAngles, () const, Vector3), AS_CALL_THISCALL);
  2588. // void Quaternion::FromAngleAxis(float angle, const Vector3& axis)
  2589. engine->RegisterObjectMethod(className, "void FromAngleAxis(float, const Vector3&in)", AS_METHODPR(T, FromAngleAxis, (float, const Vector3&), void), AS_CALL_THISCALL);
  2590. // void Quaternion::FromAxes(const Vector3& xAxis, const Vector3& yAxis, const Vector3& zAxis)
  2591. engine->RegisterObjectMethod(className, "void FromAxes(const Vector3&in, const Vector3&in, const Vector3&in)", AS_METHODPR(T, FromAxes, (const Vector3&, const Vector3&, const Vector3&), void), AS_CALL_THISCALL);
  2592. // void Quaternion::FromEulerAngles(float x, float y, float z)
  2593. engine->RegisterObjectMethod(className, "void FromEulerAngles(float, float, float)", AS_METHODPR(T, FromEulerAngles, (float, float, float), void), AS_CALL_THISCALL);
  2594. // bool Quaternion::FromLookRotation(const Vector3& direction, const Vector3& up = Vector3::UP)
  2595. engine->RegisterObjectMethod(className, "bool FromLookRotation(const Vector3&in, const Vector3&in = Vector3::UP)", AS_METHODPR(T, FromLookRotation, (const Vector3&, const Vector3&), bool), AS_CALL_THISCALL);
  2596. // void Quaternion::FromRotationMatrix(const Matrix3& matrix)
  2597. engine->RegisterObjectMethod(className, "void FromRotationMatrix(const Matrix3&in)", AS_METHODPR(T, FromRotationMatrix, (const Matrix3&), void), AS_CALL_THISCALL);
  2598. // void Quaternion::FromRotationTo(const Vector3& start, const Vector3& end)
  2599. engine->RegisterObjectMethod(className, "void FromRotationTo(const Vector3&in, const Vector3&in)", AS_METHODPR(T, FromRotationTo, (const Vector3&, const Vector3&), void), AS_CALL_THISCALL);
  2600. // Quaternion Quaternion::Inverse() const
  2601. engine->RegisterObjectMethod(className, "Quaternion Inverse() const", AS_METHODPR(T, Inverse, () const, Quaternion), AS_CALL_THISCALL);
  2602. // bool Quaternion::IsInf() const
  2603. engine->RegisterObjectMethod(className, "bool IsInf() const", AS_METHODPR(T, IsInf, () const, bool), AS_CALL_THISCALL);
  2604. // bool Quaternion::IsNaN() const
  2605. engine->RegisterObjectMethod(className, "bool IsNaN() const", AS_METHODPR(T, IsNaN, () const, bool), AS_CALL_THISCALL);
  2606. // float Quaternion::LengthSquared() const
  2607. engine->RegisterObjectMethod(className, "float LengthSquared() const", AS_METHODPR(T, LengthSquared, () const, float), AS_CALL_THISCALL);
  2608. // Quaternion Quaternion::Nlerp(const Quaternion& rhs, float t, bool shortestPath = false) const
  2609. engine->RegisterObjectMethod(className, "Quaternion Nlerp(const Quaternion&in, float, bool = false) const", AS_METHODPR(T, Nlerp, (const Quaternion&, float, bool) const, Quaternion), AS_CALL_THISCALL);
  2610. // void Quaternion::Normalize()
  2611. engine->RegisterObjectMethod(className, "void Normalize()", AS_METHODPR(T, Normalize, (), void), AS_CALL_THISCALL);
  2612. // Quaternion Quaternion::Normalized() const
  2613. engine->RegisterObjectMethod(className, "Quaternion Normalized() const", AS_METHODPR(T, Normalized, () const, Quaternion), AS_CALL_THISCALL);
  2614. // Quaternion Quaternion::operator *(float rhs) const
  2615. engine->RegisterObjectMethod(className, "Quaternion opMul(float) const", AS_METHODPR(T, operator*, (float) const, Quaternion), AS_CALL_THISCALL);
  2616. // Quaternion Quaternion::operator *(const Quaternion& rhs) const
  2617. engine->RegisterObjectMethod(className, "Quaternion opMul(const Quaternion&in) const", AS_METHODPR(T, operator*, (const Quaternion&) const, Quaternion), AS_CALL_THISCALL);
  2618. // Vector3 Quaternion::operator *(const Vector3& rhs) const
  2619. engine->RegisterObjectMethod(className, "Vector3 opMul(const Vector3&in) const", AS_METHODPR(T, operator*, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  2620. // Quaternion& Quaternion::operator *=(float rhs)
  2621. engine->RegisterObjectMethod(className, "Quaternion& opMulAssign(float)", AS_METHODPR(T, operator*=, (float), Quaternion&), AS_CALL_THISCALL);
  2622. // Quaternion Quaternion::operator +(const Quaternion& rhs) const
  2623. engine->RegisterObjectMethod(className, "Quaternion opAdd(const Quaternion&in) const", AS_METHODPR(T, operator+, (const Quaternion&) const, Quaternion), AS_CALL_THISCALL);
  2624. // Quaternion& Quaternion::operator +=(const Quaternion& rhs)
  2625. engine->RegisterObjectMethod(className, "Quaternion& opAddAssign(const Quaternion&in)", AS_METHODPR(T, operator+=, (const Quaternion&), Quaternion&), AS_CALL_THISCALL);
  2626. // Quaternion Quaternion::operator -() const
  2627. engine->RegisterObjectMethod(className, "Quaternion opNeg() const", AS_METHODPR(T, operator-, () const, Quaternion), AS_CALL_THISCALL);
  2628. // Quaternion Quaternion::operator -(const Quaternion& rhs) const
  2629. engine->RegisterObjectMethod(className, "Quaternion opSub(const Quaternion&in) const", AS_METHODPR(T, operator-, (const Quaternion&) const, Quaternion), AS_CALL_THISCALL);
  2630. // Quaternion& Quaternion::operator =(const Quaternion& rhs) noexcept
  2631. engine->RegisterObjectMethod(className, "Quaternion& opAssign(const Quaternion&in)", AS_METHODPR(T, operator=, (const Quaternion&), Quaternion&), AS_CALL_THISCALL);
  2632. // bool Quaternion::operator ==(const Quaternion& rhs) const
  2633. engine->RegisterObjectMethod(className, "bool opEquals(const Quaternion&in) const", AS_METHODPR(T, operator==, (const Quaternion&) const, bool), AS_CALL_THISCALL);
  2634. // float Quaternion::PitchAngle() const
  2635. engine->RegisterObjectMethod(className, "float PitchAngle() const", AS_METHODPR(T, PitchAngle, () const, float), AS_CALL_THISCALL);
  2636. engine->RegisterObjectMethod(className, "float get_pitch() const", AS_METHODPR(T, PitchAngle, () const, float), AS_CALL_THISCALL);
  2637. // float Quaternion::RollAngle() const
  2638. engine->RegisterObjectMethod(className, "float RollAngle() const", AS_METHODPR(T, RollAngle, () const, float), AS_CALL_THISCALL);
  2639. engine->RegisterObjectMethod(className, "float get_roll() const", AS_METHODPR(T, RollAngle, () const, float), AS_CALL_THISCALL);
  2640. // Matrix3 Quaternion::RotationMatrix() const
  2641. engine->RegisterObjectMethod(className, "Matrix3 RotationMatrix() const", AS_METHODPR(T, RotationMatrix, () const, Matrix3), AS_CALL_THISCALL);
  2642. engine->RegisterObjectMethod(className, "Matrix3 get_rotationMatrix() const", AS_METHODPR(T, RotationMatrix, () const, Matrix3), AS_CALL_THISCALL);
  2643. // Quaternion Quaternion::Slerp(const Quaternion& rhs, float t) const
  2644. engine->RegisterObjectMethod(className, "Quaternion Slerp(const Quaternion&in, float) const", AS_METHODPR(T, Slerp, (const Quaternion&, float) const, Quaternion), AS_CALL_THISCALL);
  2645. // String Quaternion::ToString() const
  2646. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  2647. // float Quaternion::YawAngle() const
  2648. engine->RegisterObjectMethod(className, "float YawAngle() const", AS_METHODPR(T, YawAngle, () const, float), AS_CALL_THISCALL);
  2649. engine->RegisterObjectMethod(className, "float get_yaw() const", AS_METHODPR(T, YawAngle, () const, float), AS_CALL_THISCALL);
  2650. // float Quaternion::w_
  2651. engine->RegisterObjectProperty(className, "float w", offsetof(T, w_));
  2652. // float Quaternion::x_
  2653. engine->RegisterObjectProperty(className, "float x", offsetof(T, x_));
  2654. // float Quaternion::y_
  2655. engine->RegisterObjectProperty(className, "float y", offsetof(T, y_));
  2656. // float Quaternion::z_
  2657. engine->RegisterObjectProperty(className, "float z", offsetof(T, z_));
  2658. // static const Quaternion Quaternion::IDENTITY
  2659. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Quaternion IDENTITY", (void*)&T::IDENTITY);engine->SetDefaultNamespace("");
  2660. #ifdef REGISTER_MEMBERS_MANUAL_PART_Quaternion
  2661. REGISTER_MEMBERS_MANUAL_PART_Quaternion();
  2662. #endif
  2663. }
  2664. // class Ray | File: ../Math/Ray.h
  2665. template <class T> void RegisterMembers_Ray(asIScriptEngine* engine, const char* className)
  2666. {
  2667. // float Ray::HitDistance(const Vector3& v0, const Vector3& v1, const Vector3& v2, Vector3* outNormal = nullptr, Vector3* outBary = nullptr) const
  2668. // Error: type "Vector3*" can not automatically bind
  2669. // float Ray::HitDistance(const void* vertexData, unsigned vertexStride, unsigned vertexStart, unsigned vertexCount, Vector3* outNormal = nullptr, Vector2* outUV = nullptr, unsigned uvOffset = 0) const
  2670. // Error: type "const void*" can not automatically bind
  2671. // float Ray::HitDistance(const void* vertexData, unsigned vertexStride, const void* indexData, unsigned indexSize, unsigned indexStart, unsigned indexCount, Vector3* outNormal = nullptr, Vector2* outUV = nullptr, unsigned uvOffset = 0) const
  2672. // Error: type "const void*" can not automatically bind
  2673. // bool Ray::InsideGeometry(const void* vertexData, unsigned vertexSize, unsigned vertexStart, unsigned vertexCount) const
  2674. // Error: type "const void*" can not automatically bind
  2675. // bool Ray::InsideGeometry(const void* vertexData, unsigned vertexSize, const void* indexData, unsigned indexSize, unsigned indexStart, unsigned indexCount) const
  2676. // Error: type "const void*" can not automatically bind
  2677. // bool Ray::operator !=(const Ray& rhs) const
  2678. // Only operator == is needed
  2679. // Vector3 Ray::ClosestPoint(const Ray& ray) const
  2680. engine->RegisterObjectMethod(className, "Vector3 ClosestPoint(const Ray&in) const", AS_METHODPR(T, ClosestPoint, (const Ray&) const, Vector3), AS_CALL_THISCALL);
  2681. // void Ray::Define(const Vector3& origin, const Vector3& direction)
  2682. engine->RegisterObjectMethod(className, "void Define(const Vector3&in, const Vector3&in)", AS_METHODPR(T, Define, (const Vector3&, const Vector3&), void), AS_CALL_THISCALL);
  2683. // float Ray::Distance(const Vector3& point) const
  2684. engine->RegisterObjectMethod(className, "float Distance(const Vector3&in) const", AS_METHODPR(T, Distance, (const Vector3&) const, float), AS_CALL_THISCALL);
  2685. // float Ray::HitDistance(const Plane& plane) const
  2686. engine->RegisterObjectMethod(className, "float HitDistance(const Plane&in) const", AS_METHODPR(T, HitDistance, (const Plane&) const, float), AS_CALL_THISCALL);
  2687. // float Ray::HitDistance(const BoundingBox& box) const
  2688. engine->RegisterObjectMethod(className, "float HitDistance(const BoundingBox&in) const", AS_METHODPR(T, HitDistance, (const BoundingBox&) const, float), AS_CALL_THISCALL);
  2689. // float Ray::HitDistance(const Frustum& frustum, bool solidInside = true) const
  2690. engine->RegisterObjectMethod(className, "float HitDistance(const Frustum&in, bool = true) const", AS_METHODPR(T, HitDistance, (const Frustum&, bool) const, float), AS_CALL_THISCALL);
  2691. // float Ray::HitDistance(const Sphere& sphere) const
  2692. engine->RegisterObjectMethod(className, "float HitDistance(const Sphere&in) const", AS_METHODPR(T, HitDistance, (const Sphere&) const, float), AS_CALL_THISCALL);
  2693. // Ray& Ray::operator =(const Ray& rhs) noexcept = default
  2694. engine->RegisterObjectMethod(className, "Ray& opAssign(const Ray&in)", AS_METHODPR(T, operator=, (const Ray&), Ray&), AS_CALL_THISCALL);
  2695. // bool Ray::operator ==(const Ray& rhs) const
  2696. engine->RegisterObjectMethod(className, "bool opEquals(const Ray&in) const", AS_METHODPR(T, operator==, (const Ray&) const, bool), AS_CALL_THISCALL);
  2697. // Vector3 Ray::Project(const Vector3& point) const
  2698. engine->RegisterObjectMethod(className, "Vector3 Project(const Vector3&in) const", AS_METHODPR(T, Project, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  2699. // Ray Ray::Transformed(const Matrix3x4& transform) const
  2700. engine->RegisterObjectMethod(className, "Ray Transformed(const Matrix3x4&in) const", AS_METHODPR(T, Transformed, (const Matrix3x4&) const, Ray), AS_CALL_THISCALL);
  2701. // Vector3 Ray::origin_
  2702. engine->RegisterObjectProperty(className, "Vector3 origin", offsetof(T, origin_));
  2703. // Vector3 Ray::direction_
  2704. engine->RegisterObjectProperty(className, "Vector3 direction", offsetof(T, direction_));
  2705. #ifdef REGISTER_MEMBERS_MANUAL_PART_Ray
  2706. REGISTER_MEMBERS_MANUAL_PART_Ray();
  2707. #endif
  2708. }
  2709. // class RayOctreeQuery | File: ../Graphics/OctreeQuery.h
  2710. template <class T> void RegisterMembers_RayOctreeQuery(asIScriptEngine* engine, const char* className)
  2711. {
  2712. // RayOctreeQuery& RayOctreeQuery::operator =(const RayOctreeQuery& rhs) = delete
  2713. // Not registered because deleted
  2714. // PODVector<RayQueryResult>& RayOctreeQuery::result_
  2715. // Error: type "PODVector<RayQueryResult>&" can not automatically bind
  2716. // Ray RayOctreeQuery::ray_
  2717. engine->RegisterObjectProperty(className, "Ray ray", offsetof(T, ray_));
  2718. // unsigned char RayOctreeQuery::drawableFlags_
  2719. engine->RegisterObjectProperty(className, "uint8 drawableFlags", offsetof(T, drawableFlags_));
  2720. // unsigned RayOctreeQuery::viewMask_
  2721. engine->RegisterObjectProperty(className, "uint viewMask", offsetof(T, viewMask_));
  2722. // float RayOctreeQuery::maxDistance_
  2723. engine->RegisterObjectProperty(className, "float maxDistance", offsetof(T, maxDistance_));
  2724. // RayQueryLevel RayOctreeQuery::level_
  2725. engine->RegisterObjectProperty(className, "RayQueryLevel level", offsetof(T, level_));
  2726. #ifdef REGISTER_MEMBERS_MANUAL_PART_RayOctreeQuery
  2727. REGISTER_MEMBERS_MANUAL_PART_RayOctreeQuery();
  2728. #endif
  2729. }
  2730. // struct RayQueryResult | File: ../Graphics/OctreeQuery.h
  2731. template <class T> void RegisterMembers_RayQueryResult(asIScriptEngine* engine, const char* className)
  2732. {
  2733. // bool RayQueryResult::operator !=(const RayQueryResult& rhs) const
  2734. // Only operator == is needed
  2735. // Drawable* RayQueryResult::drawable_
  2736. // Not registered because pointer
  2737. // Node* RayQueryResult::node_
  2738. // Not registered because pointer
  2739. // Vector3 RayQueryResult::position_
  2740. engine->RegisterObjectProperty(className, "Vector3 position", offsetof(T, position_));
  2741. // Vector3 RayQueryResult::normal_
  2742. engine->RegisterObjectProperty(className, "Vector3 normal", offsetof(T, normal_));
  2743. // Vector2 RayQueryResult::textureUV_
  2744. engine->RegisterObjectProperty(className, "Vector2 textureUV", offsetof(T, textureUV_));
  2745. // float RayQueryResult::distance_
  2746. engine->RegisterObjectProperty(className, "float distance", offsetof(T, distance_));
  2747. // unsigned RayQueryResult::subObject_
  2748. engine->RegisterObjectProperty(className, "uint subObject", offsetof(T, subObject_));
  2749. #ifdef REGISTER_MEMBERS_MANUAL_PART_RayQueryResult
  2750. REGISTER_MEMBERS_MANUAL_PART_RayQueryResult();
  2751. #endif
  2752. }
  2753. // class Rect | File: ../Math/Rect.h
  2754. template <class T> void RegisterMembers_Rect(asIScriptEngine* engine, const char* className)
  2755. {
  2756. // const float* Rect::Data() const
  2757. // Error: type "const float*" can not automatically bind
  2758. // bool Rect::operator !=(const Rect& rhs) const
  2759. // Only operator == is needed
  2760. // float Rect::Bottom() const
  2761. engine->RegisterObjectMethod(className, "float Bottom() const", AS_METHODPR(T, Bottom, () const, float), AS_CALL_THISCALL);
  2762. engine->RegisterObjectMethod(className, "float get_bottom() const", AS_METHODPR(T, Bottom, () const, float), AS_CALL_THISCALL);
  2763. // Vector2 Rect::Center() const
  2764. engine->RegisterObjectMethod(className, "Vector2 Center() const", AS_METHODPR(T, Center, () const, Vector2), AS_CALL_THISCALL);
  2765. engine->RegisterObjectMethod(className, "Vector2 get_center() const", AS_METHODPR(T, Center, () const, Vector2), AS_CALL_THISCALL);
  2766. // void Rect::Clear()
  2767. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  2768. // void Rect::Clip(const Rect& rect)
  2769. engine->RegisterObjectMethod(className, "void Clip(const Rect&in)", AS_METHODPR(T, Clip, (const Rect&), void), AS_CALL_THISCALL);
  2770. // void Rect::Define(const Rect& rect)
  2771. engine->RegisterObjectMethod(className, "void Define(const Rect&in)", AS_METHODPR(T, Define, (const Rect&), void), AS_CALL_THISCALL);
  2772. // void Rect::Define(const Vector2& min, const Vector2& max)
  2773. engine->RegisterObjectMethod(className, "void Define(const Vector2&in, const Vector2&in)", AS_METHODPR(T, Define, (const Vector2&, const Vector2&), void), AS_CALL_THISCALL);
  2774. // void Rect::Define(const Vector2& point)
  2775. engine->RegisterObjectMethod(className, "void Define(const Vector2&in)", AS_METHODPR(T, Define, (const Vector2&), void), AS_CALL_THISCALL);
  2776. // bool Rect::Defined() const
  2777. engine->RegisterObjectMethod(className, "bool Defined() const", AS_METHODPR(T, Defined, () const, bool), AS_CALL_THISCALL);
  2778. // bool Rect::Equals(const Rect& rhs) const
  2779. engine->RegisterObjectMethod(className, "bool Equals(const Rect&in) const", AS_METHODPR(T, Equals, (const Rect&) const, bool), AS_CALL_THISCALL);
  2780. // Vector2 Rect::HalfSize() const
  2781. engine->RegisterObjectMethod(className, "Vector2 HalfSize() const", AS_METHODPR(T, HalfSize, () const, Vector2), AS_CALL_THISCALL);
  2782. engine->RegisterObjectMethod(className, "Vector2 get_halfSize() const", AS_METHODPR(T, HalfSize, () const, Vector2), AS_CALL_THISCALL);
  2783. // Intersection Rect::IsInside(const Vector2& point) const
  2784. engine->RegisterObjectMethod(className, "Intersection IsInside(const Vector2&in) const", AS_METHODPR(T, IsInside, (const Vector2&) const, Intersection), AS_CALL_THISCALL);
  2785. // Intersection Rect::IsInside(const Rect& rect) const
  2786. engine->RegisterObjectMethod(className, "Intersection IsInside(const Rect&in) const", AS_METHODPR(T, IsInside, (const Rect&) const, Intersection), AS_CALL_THISCALL);
  2787. // float Rect::Left() const
  2788. engine->RegisterObjectMethod(className, "float Left() const", AS_METHODPR(T, Left, () const, float), AS_CALL_THISCALL);
  2789. engine->RegisterObjectMethod(className, "float get_left() const", AS_METHODPR(T, Left, () const, float), AS_CALL_THISCALL);
  2790. // Vector2 Rect::Max() const
  2791. engine->RegisterObjectMethod(className, "Vector2 Max() const", AS_METHODPR(T, Max, () const, Vector2), AS_CALL_THISCALL);
  2792. // void Rect::Merge(const Vector2& point)
  2793. engine->RegisterObjectMethod(className, "void Merge(const Vector2&in)", AS_METHODPR(T, Merge, (const Vector2&), void), AS_CALL_THISCALL);
  2794. // void Rect::Merge(const Rect& rect)
  2795. engine->RegisterObjectMethod(className, "void Merge(const Rect&in)", AS_METHODPR(T, Merge, (const Rect&), void), AS_CALL_THISCALL);
  2796. // Vector2 Rect::Min() const
  2797. engine->RegisterObjectMethod(className, "Vector2 Min() const", AS_METHODPR(T, Min, () const, Vector2), AS_CALL_THISCALL);
  2798. // Rect Rect::operator *(float value) const
  2799. engine->RegisterObjectMethod(className, "Rect opMul(float) const", AS_METHODPR(T, operator*, (float) const, Rect), AS_CALL_THISCALL);
  2800. // Rect& Rect::operator *=(float value)
  2801. engine->RegisterObjectMethod(className, "Rect& opMulAssign(float)", AS_METHODPR(T, operator*=, (float), Rect&), AS_CALL_THISCALL);
  2802. // Rect Rect::operator +(const Rect& rhs) const
  2803. engine->RegisterObjectMethod(className, "Rect opAdd(const Rect&in) const", AS_METHODPR(T, operator+, (const Rect&) const, Rect), AS_CALL_THISCALL);
  2804. // Rect& Rect::operator +=(const Rect& rhs)
  2805. engine->RegisterObjectMethod(className, "Rect& opAddAssign(const Rect&in)", AS_METHODPR(T, operator+=, (const Rect&), Rect&), AS_CALL_THISCALL);
  2806. // Rect Rect::operator -(const Rect& rhs) const
  2807. engine->RegisterObjectMethod(className, "Rect opSub(const Rect&in) const", AS_METHODPR(T, operator-, (const Rect&) const, Rect), AS_CALL_THISCALL);
  2808. // Rect& Rect::operator -=(const Rect& rhs)
  2809. engine->RegisterObjectMethod(className, "Rect& opSubAssign(const Rect&in)", AS_METHODPR(T, operator-=, (const Rect&), Rect&), AS_CALL_THISCALL);
  2810. // Rect Rect::operator /(float value) const
  2811. engine->RegisterObjectMethod(className, "Rect opDiv(float) const", AS_METHODPR(T, operator/, (float) const, Rect), AS_CALL_THISCALL);
  2812. // Rect& Rect::operator /=(float value)
  2813. engine->RegisterObjectMethod(className, "Rect& opDivAssign(float)", AS_METHODPR(T, operator/=, (float), Rect&), AS_CALL_THISCALL);
  2814. // Rect& Rect::operator =(const Rect& rhs) noexcept = default
  2815. engine->RegisterObjectMethod(className, "Rect& opAssign(const Rect&in)", AS_METHODPR(T, operator=, (const Rect&), Rect&), AS_CALL_THISCALL);
  2816. // bool Rect::operator ==(const Rect& rhs) const
  2817. engine->RegisterObjectMethod(className, "bool opEquals(const Rect&in) const", AS_METHODPR(T, operator==, (const Rect&) const, bool), AS_CALL_THISCALL);
  2818. // float Rect::Right() const
  2819. engine->RegisterObjectMethod(className, "float Right() const", AS_METHODPR(T, Right, () const, float), AS_CALL_THISCALL);
  2820. engine->RegisterObjectMethod(className, "float get_right() const", AS_METHODPR(T, Right, () const, float), AS_CALL_THISCALL);
  2821. // Vector2 Rect::Size() const
  2822. engine->RegisterObjectMethod(className, "Vector2 Size() const", AS_METHODPR(T, Size, () const, Vector2), AS_CALL_THISCALL);
  2823. engine->RegisterObjectMethod(className, "Vector2 get_size() const", AS_METHODPR(T, Size, () const, Vector2), AS_CALL_THISCALL);
  2824. // float Rect::Top() const
  2825. engine->RegisterObjectMethod(className, "float Top() const", AS_METHODPR(T, Top, () const, float), AS_CALL_THISCALL);
  2826. engine->RegisterObjectMethod(className, "float get_top() const", AS_METHODPR(T, Top, () const, float), AS_CALL_THISCALL);
  2827. // String Rect::ToString() const
  2828. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  2829. // Vector4 Rect::ToVector4() const
  2830. engine->RegisterObjectMethod(className, "Vector4 ToVector4() const", AS_METHODPR(T, ToVector4, () const, Vector4), AS_CALL_THISCALL);
  2831. // Vector2 Rect::min_
  2832. engine->RegisterObjectProperty(className, "Vector2 min", offsetof(T, min_));
  2833. // Vector2 Rect::max_
  2834. engine->RegisterObjectProperty(className, "Vector2 max", offsetof(T, max_));
  2835. // static const Rect Rect::FULL
  2836. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Rect FULL", (void*)&T::FULL);engine->SetDefaultNamespace("");
  2837. // static const Rect Rect::POSITIVE
  2838. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Rect POSITIVE", (void*)&T::POSITIVE);engine->SetDefaultNamespace("");
  2839. // static const Rect Rect::ZERO
  2840. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Rect ZERO", (void*)&T::ZERO);engine->SetDefaultNamespace("");
  2841. #ifdef REGISTER_MEMBERS_MANUAL_PART_Rect
  2842. REGISTER_MEMBERS_MANUAL_PART_Rect();
  2843. #endif
  2844. }
  2845. // struct RefCount | File: ../Container/RefCounted.h
  2846. template <class T> void RegisterMembers_RefCount(asIScriptEngine* engine, const char* className)
  2847. {
  2848. // int RefCount::refs_
  2849. engine->RegisterObjectProperty(className, "int refs", offsetof(T, refs_));
  2850. // int RefCount::weakRefs_
  2851. engine->RegisterObjectProperty(className, "int weakRefs", offsetof(T, weakRefs_));
  2852. #ifdef REGISTER_MEMBERS_MANUAL_PART_RefCount
  2853. REGISTER_MEMBERS_MANUAL_PART_RefCount();
  2854. #endif
  2855. }
  2856. // class RefCounted | File: ../Container/RefCounted.h
  2857. template <class T> void RegisterMembers_RefCounted(asIScriptEngine* engine, const char* className)
  2858. {
  2859. // void RefCounted::AddRef()
  2860. // Not registered because have @manualbind mark
  2861. // RefCount* RefCounted::RefCountPtr()
  2862. // Error: type "RefCount*" can not automatically bind
  2863. // void RefCounted::ReleaseRef()
  2864. // Not registered because have @manualbind mark
  2865. // int RefCounted::Refs() const
  2866. engine->RegisterObjectMethod(className, "int Refs() const", AS_METHODPR(T, Refs, () const, int), AS_CALL_THISCALL);
  2867. engine->RegisterObjectMethod(className, "int get_refs() const", AS_METHODPR(T, Refs, () const, int), AS_CALL_THISCALL);
  2868. // int RefCounted::WeakRefs() const
  2869. engine->RegisterObjectMethod(className, "int WeakRefs() const", AS_METHODPR(T, WeakRefs, () const, int), AS_CALL_THISCALL);
  2870. engine->RegisterObjectMethod(className, "int get_weakRefs() const", AS_METHODPR(T, WeakRefs, () const, int), AS_CALL_THISCALL);
  2871. // RefCounted& RefCounted::operator =(const RefCounted& rhs) = delete
  2872. // Not registered because deleted
  2873. #ifdef REGISTER_MEMBERS_MANUAL_PART_RefCounted
  2874. REGISTER_MEMBERS_MANUAL_PART_RefCounted();
  2875. #endif
  2876. }
  2877. // struct RenderPathCommand | File: ../Graphics/RenderPath.h
  2878. template <class T> void RegisterMembers_RenderPathCommand(asIScriptEngine* engine, const char* className)
  2879. {
  2880. // const String& RenderPathCommand::GetDepthStencilName() const
  2881. engine->RegisterObjectMethod(className, "const String& GetDepthStencilName() const", AS_METHODPR(T, GetDepthStencilName, () const, const String&), AS_CALL_THISCALL);
  2882. engine->RegisterObjectMethod(className, "const String& get_depthStencilName() const", AS_METHODPR(T, GetDepthStencilName, () const, const String&), AS_CALL_THISCALL);
  2883. // unsigned RenderPathCommand::GetNumOutputs() const
  2884. engine->RegisterObjectMethod(className, "uint GetNumOutputs() const", AS_METHODPR(T, GetNumOutputs, () const, unsigned), AS_CALL_THISCALL);
  2885. engine->RegisterObjectMethod(className, "uint get_numOutputs() const", AS_METHODPR(T, GetNumOutputs, () const, unsigned), AS_CALL_THISCALL);
  2886. // CubeMapFace RenderPathCommand::GetOutputFace(unsigned index) const
  2887. engine->RegisterObjectMethod(className, "CubeMapFace GetOutputFace(uint) const", AS_METHODPR(T, GetOutputFace, (unsigned) const, CubeMapFace), AS_CALL_THISCALL);
  2888. engine->RegisterObjectMethod(className, "CubeMapFace get_outputFaces(uint) const", AS_METHODPR(T, GetOutputFace, (unsigned) const, CubeMapFace), AS_CALL_THISCALL);
  2889. // const String& RenderPathCommand::GetOutputName(unsigned index) const
  2890. engine->RegisterObjectMethod(className, "const String& GetOutputName(uint) const", AS_METHODPR(T, GetOutputName, (unsigned) const, const String&), AS_CALL_THISCALL);
  2891. engine->RegisterObjectMethod(className, "const String& get_outputNames(uint) const", AS_METHODPR(T, GetOutputName, (unsigned) const, const String&), AS_CALL_THISCALL);
  2892. // const Variant& RenderPathCommand::GetShaderParameter(const String& name) const
  2893. engine->RegisterObjectMethod(className, "const Variant& GetShaderParameter(const String&in) const", AS_METHODPR(T, GetShaderParameter, (const String&) const, const Variant&), AS_CALL_THISCALL);
  2894. engine->RegisterObjectMethod(className, "const Variant& get_shaderParameters(const String&in) const", AS_METHODPR(T, GetShaderParameter, (const String&) const, const Variant&), AS_CALL_THISCALL);
  2895. // const String& RenderPathCommand::GetTextureName(TextureUnit unit) const
  2896. engine->RegisterObjectMethod(className, "const String& GetTextureName(TextureUnit) const", AS_METHODPR(T, GetTextureName, (TextureUnit) const, const String&), AS_CALL_THISCALL);
  2897. engine->RegisterObjectMethod(className, "const String& get_textureNames(TextureUnit) const", AS_METHODPR(T, GetTextureName, (TextureUnit) const, const String&), AS_CALL_THISCALL);
  2898. // void RenderPathCommand::Load(const XMLElement& element)
  2899. engine->RegisterObjectMethod(className, "void Load(const XMLElement&in)", AS_METHODPR(T, Load, (const XMLElement&), void), AS_CALL_THISCALL);
  2900. // void RenderPathCommand::RemoveShaderParameter(const String& name)
  2901. engine->RegisterObjectMethod(className, "void RemoveShaderParameter(const String&in)", AS_METHODPR(T, RemoveShaderParameter, (const String&), void), AS_CALL_THISCALL);
  2902. // void RenderPathCommand::SetDepthStencilName(const String& name)
  2903. engine->RegisterObjectMethod(className, "void SetDepthStencilName(const String&in)", AS_METHODPR(T, SetDepthStencilName, (const String&), void), AS_CALL_THISCALL);
  2904. engine->RegisterObjectMethod(className, "void set_depthStencilName(const String&in)", AS_METHODPR(T, SetDepthStencilName, (const String&), void), AS_CALL_THISCALL);
  2905. // void RenderPathCommand::SetNumOutputs(unsigned num)
  2906. engine->RegisterObjectMethod(className, "void SetNumOutputs(uint)", AS_METHODPR(T, SetNumOutputs, (unsigned), void), AS_CALL_THISCALL);
  2907. engine->RegisterObjectMethod(className, "void set_numOutputs(uint)", AS_METHODPR(T, SetNumOutputs, (unsigned), void), AS_CALL_THISCALL);
  2908. // void RenderPathCommand::SetOutput(unsigned index, const String& name, CubeMapFace face = FACE_POSITIVE_X)
  2909. engine->RegisterObjectMethod(className, "void SetOutput(uint, const String&in, CubeMapFace = FACE_POSITIVE_X)", AS_METHODPR(T, SetOutput, (unsigned, const String&, CubeMapFace), void), AS_CALL_THISCALL);
  2910. // void RenderPathCommand::SetOutputFace(unsigned index, CubeMapFace face)
  2911. engine->RegisterObjectMethod(className, "void SetOutputFace(uint, CubeMapFace)", AS_METHODPR(T, SetOutputFace, (unsigned, CubeMapFace), void), AS_CALL_THISCALL);
  2912. engine->RegisterObjectMethod(className, "void set_outputFaces(uint, CubeMapFace)", AS_METHODPR(T, SetOutputFace, (unsigned, CubeMapFace), void), AS_CALL_THISCALL);
  2913. // void RenderPathCommand::SetOutputName(unsigned index, const String& name)
  2914. engine->RegisterObjectMethod(className, "void SetOutputName(uint, const String&in)", AS_METHODPR(T, SetOutputName, (unsigned, const String&), void), AS_CALL_THISCALL);
  2915. engine->RegisterObjectMethod(className, "void set_outputNames(uint, const String&in)", AS_METHODPR(T, SetOutputName, (unsigned, const String&), void), AS_CALL_THISCALL);
  2916. // void RenderPathCommand::SetShaderParameter(const String& name, const Variant& value)
  2917. engine->RegisterObjectMethod(className, "void SetShaderParameter(const String&in, const Variant&in)", AS_METHODPR(T, SetShaderParameter, (const String&, const Variant&), void), AS_CALL_THISCALL);
  2918. engine->RegisterObjectMethod(className, "void set_shaderParameters(const String&in, const Variant&in)", AS_METHODPR(T, SetShaderParameter, (const String&, const Variant&), void), AS_CALL_THISCALL);
  2919. // void RenderPathCommand::SetTextureName(TextureUnit unit, const String& name)
  2920. engine->RegisterObjectMethod(className, "void SetTextureName(TextureUnit, const String&in)", AS_METHODPR(T, SetTextureName, (TextureUnit, const String&), void), AS_CALL_THISCALL);
  2921. engine->RegisterObjectMethod(className, "void set_textureNames(TextureUnit, const String&in)", AS_METHODPR(T, SetTextureName, (TextureUnit, const String&), void), AS_CALL_THISCALL);
  2922. // String RenderPathCommand::textureNames_[MAX_TEXTURE_UNITS]
  2923. // Not registered because array
  2924. // HashMap<StringHash, Variant> RenderPathCommand::shaderParameters_
  2925. // Error: type "HashMap<StringHash, Variant>" can not automatically bind
  2926. // Vector<Pair<String, CubeMapFace>> RenderPathCommand::outputs_
  2927. // Error: type "Vector<Pair<String, CubeMapFace>>" can not automatically bind
  2928. // String RenderPathCommand::tag_
  2929. engine->RegisterObjectProperty(className, "String tag", offsetof(T, tag_));
  2930. // RenderCommandType RenderPathCommand::type_
  2931. engine->RegisterObjectProperty(className, "RenderCommandType type", offsetof(T, type_));
  2932. // RenderCommandSortMode RenderPathCommand::sortMode_
  2933. engine->RegisterObjectProperty(className, "RenderCommandSortMode sortMode", offsetof(T, sortMode_));
  2934. // String RenderPathCommand::pass_
  2935. engine->RegisterObjectProperty(className, "String pass", offsetof(T, pass_));
  2936. // unsigned RenderPathCommand::passIndex_
  2937. engine->RegisterObjectProperty(className, "uint passIndex", offsetof(T, passIndex_));
  2938. // String RenderPathCommand::metadata_
  2939. engine->RegisterObjectProperty(className, "String metadata", offsetof(T, metadata_));
  2940. // String RenderPathCommand::vertexShaderName_
  2941. engine->RegisterObjectProperty(className, "String vertexShaderName", offsetof(T, vertexShaderName_));
  2942. // String RenderPathCommand::pixelShaderName_
  2943. engine->RegisterObjectProperty(className, "String pixelShaderName", offsetof(T, pixelShaderName_));
  2944. // String RenderPathCommand::vertexShaderDefines_
  2945. engine->RegisterObjectProperty(className, "String vertexShaderDefines", offsetof(T, vertexShaderDefines_));
  2946. // String RenderPathCommand::pixelShaderDefines_
  2947. engine->RegisterObjectProperty(className, "String pixelShaderDefines", offsetof(T, pixelShaderDefines_));
  2948. // String RenderPathCommand::depthStencilName_
  2949. engine->RegisterObjectProperty(className, "String depthStencilName", offsetof(T, depthStencilName_));
  2950. // ClearTargetFlags RenderPathCommand::clearFlags_
  2951. engine->RegisterObjectProperty(className, "ClearTargetFlags clearFlags", offsetof(T, clearFlags_));
  2952. // Color RenderPathCommand::clearColor_
  2953. engine->RegisterObjectProperty(className, "Color clearColor", offsetof(T, clearColor_));
  2954. // float RenderPathCommand::clearDepth_
  2955. engine->RegisterObjectProperty(className, "float clearDepth", offsetof(T, clearDepth_));
  2956. // unsigned RenderPathCommand::clearStencil_
  2957. engine->RegisterObjectProperty(className, "uint clearStencil", offsetof(T, clearStencil_));
  2958. // BlendMode RenderPathCommand::blendMode_
  2959. engine->RegisterObjectProperty(className, "BlendMode blendMode", offsetof(T, blendMode_));
  2960. // bool RenderPathCommand::enabled_
  2961. engine->RegisterObjectProperty(className, "bool enabled", offsetof(T, enabled_));
  2962. // bool RenderPathCommand::useFogColor_
  2963. engine->RegisterObjectProperty(className, "bool useFogColor", offsetof(T, useFogColor_));
  2964. // bool RenderPathCommand::markToStencil_
  2965. engine->RegisterObjectProperty(className, "bool markToStencil", offsetof(T, markToStencil_));
  2966. // bool RenderPathCommand::useLitBase_
  2967. engine->RegisterObjectProperty(className, "bool useLitBase", offsetof(T, useLitBase_));
  2968. // bool RenderPathCommand::vertexLights_
  2969. engine->RegisterObjectProperty(className, "bool vertexLights", offsetof(T, vertexLights_));
  2970. // String RenderPathCommand::eventName_
  2971. engine->RegisterObjectProperty(className, "String eventName", offsetof(T, eventName_));
  2972. #ifdef REGISTER_MEMBERS_MANUAL_PART_RenderPathCommand
  2973. REGISTER_MEMBERS_MANUAL_PART_RenderPathCommand();
  2974. #endif
  2975. }
  2976. // struct RenderTargetInfo | File: ../Graphics/RenderPath.h
  2977. template <class T> void RegisterMembers_RenderTargetInfo(asIScriptEngine* engine, const char* className)
  2978. {
  2979. // void RenderTargetInfo::Load(const XMLElement& element)
  2980. engine->RegisterObjectMethod(className, "void Load(const XMLElement&in)", AS_METHODPR(T, Load, (const XMLElement&), void), AS_CALL_THISCALL);
  2981. // String RenderTargetInfo::name_
  2982. engine->RegisterObjectProperty(className, "String name", offsetof(T, name_));
  2983. // String RenderTargetInfo::tag_
  2984. engine->RegisterObjectProperty(className, "String tag", offsetof(T, tag_));
  2985. // unsigned RenderTargetInfo::format_
  2986. engine->RegisterObjectProperty(className, "uint format", offsetof(T, format_));
  2987. // Vector2 RenderTargetInfo::size_
  2988. engine->RegisterObjectProperty(className, "Vector2 size", offsetof(T, size_));
  2989. // RenderTargetSizeMode RenderTargetInfo::sizeMode_
  2990. engine->RegisterObjectProperty(className, "RenderTargetSizeMode sizeMode", offsetof(T, sizeMode_));
  2991. // int RenderTargetInfo::multiSample_
  2992. engine->RegisterObjectProperty(className, "int multiSample", offsetof(T, multiSample_));
  2993. // bool RenderTargetInfo::autoResolve_
  2994. engine->RegisterObjectProperty(className, "bool autoResolve", offsetof(T, autoResolve_));
  2995. // bool RenderTargetInfo::enabled_
  2996. engine->RegisterObjectProperty(className, "bool enabled", offsetof(T, enabled_));
  2997. // bool RenderTargetInfo::cubemap_
  2998. engine->RegisterObjectProperty(className, "bool cubemap", offsetof(T, cubemap_));
  2999. // bool RenderTargetInfo::filtered_
  3000. engine->RegisterObjectProperty(className, "bool filtered", offsetof(T, filtered_));
  3001. // bool RenderTargetInfo::sRGB_
  3002. engine->RegisterObjectProperty(className, "bool sRGB", offsetof(T, sRGB_));
  3003. // bool RenderTargetInfo::persistent_
  3004. engine->RegisterObjectProperty(className, "bool persistent", offsetof(T, persistent_));
  3005. #ifdef REGISTER_MEMBERS_MANUAL_PART_RenderTargetInfo
  3006. REGISTER_MEMBERS_MANUAL_PART_RenderTargetInfo();
  3007. #endif
  3008. }
  3009. // struct ReplicationState | File: ../Scene/ReplicationState.h
  3010. template <class T> void RegisterMembers_ReplicationState(asIScriptEngine* engine, const char* className)
  3011. {
  3012. // Connection* ReplicationState::connection_
  3013. // Not registered because pointer
  3014. #ifdef REGISTER_MEMBERS_MANUAL_PART_ReplicationState
  3015. REGISTER_MEMBERS_MANUAL_PART_ReplicationState();
  3016. #endif
  3017. }
  3018. // struct ResourceGroup | File: ../Resource/ResourceCache.h
  3019. template <class T> void RegisterMembers_ResourceGroup(asIScriptEngine* engine, const char* className)
  3020. {
  3021. // HashMap<StringHash, SharedPtr<Resource>> ResourceGroup::resources_
  3022. // Error: type "HashMap<StringHash, SharedPtr<Resource>>" can not automatically bind
  3023. // unsigned long long ResourceGroup::memoryBudget_
  3024. engine->RegisterObjectProperty(className, "uint64 memoryBudget", offsetof(T, memoryBudget_));
  3025. // unsigned long long ResourceGroup::memoryUse_
  3026. engine->RegisterObjectProperty(className, "uint64 memoryUse", offsetof(T, memoryUse_));
  3027. #ifdef REGISTER_MEMBERS_MANUAL_PART_ResourceGroup
  3028. REGISTER_MEMBERS_MANUAL_PART_ResourceGroup();
  3029. #endif
  3030. }
  3031. // struct ResourceRef | File: ../Core/Variant.h
  3032. template <class T> void RegisterMembers_ResourceRef(asIScriptEngine* engine, const char* className)
  3033. {
  3034. // bool ResourceRef::operator !=(const ResourceRef& rhs) const
  3035. // Only operator == is needed
  3036. // bool ResourceRef::operator ==(const ResourceRef& rhs) const
  3037. engine->RegisterObjectMethod(className, "bool opEquals(const ResourceRef&in) const", AS_METHODPR(T, operator==, (const ResourceRef&) const, bool), AS_CALL_THISCALL);
  3038. // StringHash ResourceRef::type_
  3039. engine->RegisterObjectProperty(className, "StringHash type", offsetof(T, type_));
  3040. // String ResourceRef::name_
  3041. engine->RegisterObjectProperty(className, "String name", offsetof(T, name_));
  3042. #ifdef REGISTER_MEMBERS_MANUAL_PART_ResourceRef
  3043. REGISTER_MEMBERS_MANUAL_PART_ResourceRef();
  3044. #endif
  3045. }
  3046. // struct ResourceRefList | File: ../Core/Variant.h
  3047. template <class T> void RegisterMembers_ResourceRefList(asIScriptEngine* engine, const char* className)
  3048. {
  3049. // bool ResourceRefList::operator !=(const ResourceRefList& rhs) const
  3050. // Only operator == is needed
  3051. // bool ResourceRefList::operator ==(const ResourceRefList& rhs) const
  3052. engine->RegisterObjectMethod(className, "bool opEquals(const ResourceRefList&in) const", AS_METHODPR(T, operator==, (const ResourceRefList&) const, bool), AS_CALL_THISCALL);
  3053. // StringVector ResourceRefList::names_
  3054. // Error: type "StringVector" can not automatically bind
  3055. // StringHash ResourceRefList::type_
  3056. engine->RegisterObjectProperty(className, "StringHash type", offsetof(T, type_));
  3057. #ifdef REGISTER_MEMBERS_MANUAL_PART_ResourceRefList
  3058. REGISTER_MEMBERS_MANUAL_PART_ResourceRefList();
  3059. #endif
  3060. }
  3061. // struct ScenePassInfo | File: ../Graphics/View.h
  3062. template <class T> void RegisterMembers_ScenePassInfo(asIScriptEngine* engine, const char* className)
  3063. {
  3064. // BatchQueue* ScenePassInfo::batchQueue_
  3065. // Not registered because pointer
  3066. // unsigned ScenePassInfo::passIndex_
  3067. engine->RegisterObjectProperty(className, "uint passIndex", offsetof(T, passIndex_));
  3068. // bool ScenePassInfo::allowInstancing_
  3069. engine->RegisterObjectProperty(className, "bool allowInstancing", offsetof(T, allowInstancing_));
  3070. // bool ScenePassInfo::markToStencil_
  3071. engine->RegisterObjectProperty(className, "bool markToStencil", offsetof(T, markToStencil_));
  3072. // bool ScenePassInfo::vertexLights_
  3073. engine->RegisterObjectProperty(className, "bool vertexLights", offsetof(T, vertexLights_));
  3074. #ifdef REGISTER_MEMBERS_MANUAL_PART_ScenePassInfo
  3075. REGISTER_MEMBERS_MANUAL_PART_ScenePassInfo();
  3076. #endif
  3077. }
  3078. // class SceneResolver | File: ../Scene/SceneResolver.h
  3079. template <class T> void RegisterMembers_SceneResolver(asIScriptEngine* engine, const char* className)
  3080. {
  3081. // void SceneResolver::AddComponent(unsigned oldID, Component* component)
  3082. engine->RegisterObjectMethod(className, "void AddComponent(uint, Component@+)", AS_METHODPR(T, AddComponent, (unsigned, Component*), void), AS_CALL_THISCALL);
  3083. // void SceneResolver::AddNode(unsigned oldID, Node* node)
  3084. engine->RegisterObjectMethod(className, "void AddNode(uint, Node@+)", AS_METHODPR(T, AddNode, (unsigned, Node*), void), AS_CALL_THISCALL);
  3085. // void SceneResolver::Reset()
  3086. engine->RegisterObjectMethod(className, "void Reset()", AS_METHODPR(T, Reset, (), void), AS_CALL_THISCALL);
  3087. // void SceneResolver::Resolve()
  3088. engine->RegisterObjectMethod(className, "void Resolve()", AS_METHODPR(T, Resolve, (), void), AS_CALL_THISCALL);
  3089. #ifdef REGISTER_MEMBERS_MANUAL_PART_SceneResolver
  3090. REGISTER_MEMBERS_MANUAL_PART_SceneResolver();
  3091. #endif
  3092. }
  3093. // struct ScratchBuffer | File: ../Graphics/Graphics.h
  3094. template <class T> void RegisterMembers_ScratchBuffer(asIScriptEngine* engine, const char* className)
  3095. {
  3096. // SharedArrayPtr<unsigned char> ScratchBuffer::data_
  3097. // Error: type "SharedArrayPtr<unsigned char>" can not automatically bind
  3098. // unsigned ScratchBuffer::size_
  3099. engine->RegisterObjectProperty(className, "uint size", offsetof(T, size_));
  3100. // bool ScratchBuffer::reserved_
  3101. engine->RegisterObjectProperty(className, "bool reserved", offsetof(T, reserved_));
  3102. #ifdef REGISTER_MEMBERS_MANUAL_PART_ScratchBuffer
  3103. REGISTER_MEMBERS_MANUAL_PART_ScratchBuffer();
  3104. #endif
  3105. }
  3106. // struct ScreenModeParams | File: ../Graphics/Graphics.h
  3107. template <class T> void RegisterMembers_ScreenModeParams(asIScriptEngine* engine, const char* className)
  3108. {
  3109. // bool ScreenModeParams::operator !=(const ScreenModeParams& rhs) const
  3110. // Only operator == is needed
  3111. // bool ScreenModeParams::EqualsExceptVSync(const ScreenModeParams& rhs) const
  3112. engine->RegisterObjectMethod(className, "bool EqualsExceptVSync(const ScreenModeParams&in) const", AS_METHODPR(T, EqualsExceptVSync, (const ScreenModeParams&) const, bool), AS_CALL_THISCALL);
  3113. // bool ScreenModeParams::operator ==(const ScreenModeParams& rhs) const
  3114. engine->RegisterObjectMethod(className, "bool opEquals(const ScreenModeParams&in) const", AS_METHODPR(T, operator==, (const ScreenModeParams&) const, bool), AS_CALL_THISCALL);
  3115. // bool ScreenModeParams::fullscreen_
  3116. engine->RegisterObjectProperty(className, "bool fullscreen", offsetof(T, fullscreen_));
  3117. // bool ScreenModeParams::borderless_
  3118. engine->RegisterObjectProperty(className, "bool borderless", offsetof(T, borderless_));
  3119. // bool ScreenModeParams::resizable_
  3120. engine->RegisterObjectProperty(className, "bool resizable", offsetof(T, resizable_));
  3121. // bool ScreenModeParams::highDPI_
  3122. engine->RegisterObjectProperty(className, "bool highDPI", offsetof(T, highDPI_));
  3123. // bool ScreenModeParams::vsync_
  3124. engine->RegisterObjectProperty(className, "bool vsync", offsetof(T, vsync_));
  3125. // bool ScreenModeParams::tripleBuffer_
  3126. engine->RegisterObjectProperty(className, "bool tripleBuffer", offsetof(T, tripleBuffer_));
  3127. // int ScreenModeParams::multiSample_
  3128. engine->RegisterObjectProperty(className, "int multiSample", offsetof(T, multiSample_));
  3129. // int ScreenModeParams::monitor_
  3130. engine->RegisterObjectProperty(className, "int monitor", offsetof(T, monitor_));
  3131. // int ScreenModeParams::refreshRate_
  3132. engine->RegisterObjectProperty(className, "int refreshRate", offsetof(T, refreshRate_));
  3133. #ifdef REGISTER_MEMBERS_MANUAL_PART_ScreenModeParams
  3134. REGISTER_MEMBERS_MANUAL_PART_ScreenModeParams();
  3135. #endif
  3136. }
  3137. // bool Serializer::WriteStringVector(const StringVector& value)
  3138. template <class T> bool Serializer_bool_WriteStringVector_constspStringVectoramp_template(T* _ptr, CScriptArray* value_conv)
  3139. {
  3140. StringVector value = ArrayToVector<String>(value_conv);
  3141. bool result = _ptr->WriteStringVector(value);
  3142. return result;
  3143. }
  3144. // class Serializer | File: ../IO/Serializer.h
  3145. template <class T> void RegisterMembers_Serializer(asIScriptEngine* engine, const char* className)
  3146. {
  3147. // virtual unsigned Serializer::Write(const void* data, unsigned size) = 0
  3148. // Error: type "const void*" can not automatically bind
  3149. // bool Serializer::WriteBuffer(const PODVector<unsigned char>& value)
  3150. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  3151. // bool Serializer::WriteVariantVector(const VariantVector& value)
  3152. // Error: type "const VariantVector&" can not automatically bind
  3153. // bool Serializer::WriteBool(bool value)
  3154. engine->RegisterObjectMethod(className, "bool WriteBool(bool)", AS_METHODPR(T, WriteBool, (bool), bool), AS_CALL_THISCALL);
  3155. // bool Serializer::WriteBoundingBox(const BoundingBox& value)
  3156. engine->RegisterObjectMethod(className, "bool WriteBoundingBox(const BoundingBox&in)", AS_METHODPR(T, WriteBoundingBox, (const BoundingBox&), bool), AS_CALL_THISCALL);
  3157. // bool Serializer::WriteByte(signed char value)
  3158. engine->RegisterObjectMethod(className, "bool WriteByte(int8)", AS_METHODPR(T, WriteByte, (signed char), bool), AS_CALL_THISCALL);
  3159. // bool Serializer::WriteColor(const Color& value)
  3160. engine->RegisterObjectMethod(className, "bool WriteColor(const Color&in)", AS_METHODPR(T, WriteColor, (const Color&), bool), AS_CALL_THISCALL);
  3161. // bool Serializer::WriteDouble(double value)
  3162. engine->RegisterObjectMethod(className, "bool WriteDouble(double)", AS_METHODPR(T, WriteDouble, (double), bool), AS_CALL_THISCALL);
  3163. // bool Serializer::WriteFileID(const String& value)
  3164. engine->RegisterObjectMethod(className, "bool WriteFileID(const String&in)", AS_METHODPR(T, WriteFileID, (const String&), bool), AS_CALL_THISCALL);
  3165. // bool Serializer::WriteFloat(float value)
  3166. engine->RegisterObjectMethod(className, "bool WriteFloat(float)", AS_METHODPR(T, WriteFloat, (float), bool), AS_CALL_THISCALL);
  3167. // bool Serializer::WriteInt(int value)
  3168. engine->RegisterObjectMethod(className, "bool WriteInt(int)", AS_METHODPR(T, WriteInt, (int), bool), AS_CALL_THISCALL);
  3169. // bool Serializer::WriteInt64(long long value)
  3170. engine->RegisterObjectMethod(className, "bool WriteInt64(int64)", AS_METHODPR(T, WriteInt64, (long long), bool), AS_CALL_THISCALL);
  3171. // bool Serializer::WriteIntRect(const IntRect& value)
  3172. engine->RegisterObjectMethod(className, "bool WriteIntRect(const IntRect&in)", AS_METHODPR(T, WriteIntRect, (const IntRect&), bool), AS_CALL_THISCALL);
  3173. // bool Serializer::WriteIntVector2(const IntVector2& value)
  3174. engine->RegisterObjectMethod(className, "bool WriteIntVector2(const IntVector2&in)", AS_METHODPR(T, WriteIntVector2, (const IntVector2&), bool), AS_CALL_THISCALL);
  3175. // bool Serializer::WriteIntVector3(const IntVector3& value)
  3176. engine->RegisterObjectMethod(className, "bool WriteIntVector3(const IntVector3&in)", AS_METHODPR(T, WriteIntVector3, (const IntVector3&), bool), AS_CALL_THISCALL);
  3177. // bool Serializer::WriteLine(const String& value)
  3178. engine->RegisterObjectMethod(className, "bool WriteLine(const String&in)", AS_METHODPR(T, WriteLine, (const String&), bool), AS_CALL_THISCALL);
  3179. // bool Serializer::WriteMatrix3(const Matrix3& value)
  3180. engine->RegisterObjectMethod(className, "bool WriteMatrix3(const Matrix3&in)", AS_METHODPR(T, WriteMatrix3, (const Matrix3&), bool), AS_CALL_THISCALL);
  3181. // bool Serializer::WriteMatrix3x4(const Matrix3x4& value)
  3182. engine->RegisterObjectMethod(className, "bool WriteMatrix3x4(const Matrix3x4&in)", AS_METHODPR(T, WriteMatrix3x4, (const Matrix3x4&), bool), AS_CALL_THISCALL);
  3183. // bool Serializer::WriteMatrix4(const Matrix4& value)
  3184. engine->RegisterObjectMethod(className, "bool WriteMatrix4(const Matrix4&in)", AS_METHODPR(T, WriteMatrix4, (const Matrix4&), bool), AS_CALL_THISCALL);
  3185. // bool Serializer::WriteNetID(unsigned value)
  3186. engine->RegisterObjectMethod(className, "bool WriteNetID(uint)", AS_METHODPR(T, WriteNetID, (unsigned), bool), AS_CALL_THISCALL);
  3187. // bool Serializer::WritePackedQuaternion(const Quaternion& value)
  3188. engine->RegisterObjectMethod(className, "bool WritePackedQuaternion(const Quaternion&in)", AS_METHODPR(T, WritePackedQuaternion, (const Quaternion&), bool), AS_CALL_THISCALL);
  3189. // bool Serializer::WritePackedVector3(const Vector3& value, float maxAbsCoord)
  3190. engine->RegisterObjectMethod(className, "bool WritePackedVector3(const Vector3&in, float)", AS_METHODPR(T, WritePackedVector3, (const Vector3&, float), bool), AS_CALL_THISCALL);
  3191. // bool Serializer::WriteQuaternion(const Quaternion& value)
  3192. engine->RegisterObjectMethod(className, "bool WriteQuaternion(const Quaternion&in)", AS_METHODPR(T, WriteQuaternion, (const Quaternion&), bool), AS_CALL_THISCALL);
  3193. // bool Serializer::WriteRect(const Rect& value)
  3194. engine->RegisterObjectMethod(className, "bool WriteRect(const Rect&in)", AS_METHODPR(T, WriteRect, (const Rect&), bool), AS_CALL_THISCALL);
  3195. // bool Serializer::WriteResourceRef(const ResourceRef& value)
  3196. engine->RegisterObjectMethod(className, "bool WriteResourceRef(const ResourceRef&in)", AS_METHODPR(T, WriteResourceRef, (const ResourceRef&), bool), AS_CALL_THISCALL);
  3197. // bool Serializer::WriteResourceRefList(const ResourceRefList& value)
  3198. engine->RegisterObjectMethod(className, "bool WriteResourceRefList(const ResourceRefList&in)", AS_METHODPR(T, WriteResourceRefList, (const ResourceRefList&), bool), AS_CALL_THISCALL);
  3199. // bool Serializer::WriteShort(short value)
  3200. engine->RegisterObjectMethod(className, "bool WriteShort(int16)", AS_METHODPR(T, WriteShort, (short), bool), AS_CALL_THISCALL);
  3201. // bool Serializer::WriteString(const String& value)
  3202. engine->RegisterObjectMethod(className, "bool WriteString(const String&in)", AS_METHODPR(T, WriteString, (const String&), bool), AS_CALL_THISCALL);
  3203. // bool Serializer::WriteStringHash(const StringHash& value)
  3204. engine->RegisterObjectMethod(className, "bool WriteStringHash(const StringHash&in)", AS_METHODPR(T, WriteStringHash, (const StringHash&), bool), AS_CALL_THISCALL);
  3205. // bool Serializer::WriteStringVector(const StringVector& value)
  3206. engine->RegisterObjectMethod(className, "bool WriteStringVector(Array<String>@+)", AS_FUNCTION_OBJFIRST(Serializer_bool_WriteStringVector_constspStringVectoramp_template<Serializer>), AS_CALL_CDECL_OBJFIRST);
  3207. // bool Serializer::WriteUByte(unsigned char value)
  3208. engine->RegisterObjectMethod(className, "bool WriteUByte(uint8)", AS_METHODPR(T, WriteUByte, (unsigned char), bool), AS_CALL_THISCALL);
  3209. // bool Serializer::WriteUInt(unsigned value)
  3210. engine->RegisterObjectMethod(className, "bool WriteUInt(uint)", AS_METHODPR(T, WriteUInt, (unsigned), bool), AS_CALL_THISCALL);
  3211. // bool Serializer::WriteUInt64(unsigned long long value)
  3212. engine->RegisterObjectMethod(className, "bool WriteUInt64(uint64)", AS_METHODPR(T, WriteUInt64, (unsigned long long), bool), AS_CALL_THISCALL);
  3213. // bool Serializer::WriteUShort(unsigned short value)
  3214. engine->RegisterObjectMethod(className, "bool WriteUShort(uint16)", AS_METHODPR(T, WriteUShort, (unsigned short), bool), AS_CALL_THISCALL);
  3215. // bool Serializer::WriteVariant(const Variant& value)
  3216. engine->RegisterObjectMethod(className, "bool WriteVariant(const Variant&in)", AS_METHODPR(T, WriteVariant, (const Variant&), bool), AS_CALL_THISCALL);
  3217. // bool Serializer::WriteVariantData(const Variant& value)
  3218. engine->RegisterObjectMethod(className, "bool WriteVariantData(const Variant&in)", AS_METHODPR(T, WriteVariantData, (const Variant&), bool), AS_CALL_THISCALL);
  3219. // bool Serializer::WriteVariantMap(const VariantMap& value)
  3220. engine->RegisterObjectMethod(className, "bool WriteVariantMap(const VariantMap&in)", AS_METHODPR(T, WriteVariantMap, (const VariantMap&), bool), AS_CALL_THISCALL);
  3221. // bool Serializer::WriteVector2(const Vector2& value)
  3222. engine->RegisterObjectMethod(className, "bool WriteVector2(const Vector2&in)", AS_METHODPR(T, WriteVector2, (const Vector2&), bool), AS_CALL_THISCALL);
  3223. // bool Serializer::WriteVector3(const Vector3& value)
  3224. engine->RegisterObjectMethod(className, "bool WriteVector3(const Vector3&in)", AS_METHODPR(T, WriteVector3, (const Vector3&), bool), AS_CALL_THISCALL);
  3225. // bool Serializer::WriteVector4(const Vector4& value)
  3226. engine->RegisterObjectMethod(className, "bool WriteVector4(const Vector4&in)", AS_METHODPR(T, WriteVector4, (const Vector4&), bool), AS_CALL_THISCALL);
  3227. // bool Serializer::WriteVLE(unsigned value)
  3228. engine->RegisterObjectMethod(className, "bool WriteVLE(uint)", AS_METHODPR(T, WriteVLE, (unsigned), bool), AS_CALL_THISCALL);
  3229. #ifdef REGISTER_MEMBERS_MANUAL_PART_Serializer
  3230. REGISTER_MEMBERS_MANUAL_PART_Serializer();
  3231. #endif
  3232. }
  3233. // struct ShaderParameter | File: ../Graphics/ShaderVariation.h
  3234. template <class T> void RegisterMembers_ShaderParameter(asIScriptEngine* engine, const char* className)
  3235. {
  3236. // union ShaderParameter::@4 Urho3D::ShaderParameter::@5
  3237. // Error: type "union Urho3D::ShaderParameter::@4" can not automatically bind
  3238. // union ShaderParameter::@6 Urho3D::ShaderParameter::@7
  3239. // Error: type "union Urho3D::ShaderParameter::@6" can not automatically bind
  3240. // ConstantBuffer* ShaderParameter::bufferPtr_
  3241. // Not registered because pointer
  3242. // ShaderType ShaderParameter::type_
  3243. engine->RegisterObjectProperty(className, "ShaderType type", offsetof(T, type_));
  3244. // String ShaderParameter::name_
  3245. engine->RegisterObjectProperty(className, "String name", offsetof(T, name_));
  3246. // unsigned ShaderParameter::offset_
  3247. engine->RegisterObjectProperty(className, "uint offset", offsetof(T, offset_));
  3248. // int ShaderParameter::location_
  3249. engine->RegisterObjectProperty(className, "int location", offsetof(T, location_));
  3250. // unsigned ShaderParameter::register_
  3251. engine->RegisterObjectProperty(className, "uint register", offsetof(T, register_));
  3252. // unsigned ShaderParameter::size_
  3253. engine->RegisterObjectProperty(className, "uint size", offsetof(T, size_));
  3254. // unsigned ShaderParameter::glType_
  3255. engine->RegisterObjectProperty(className, "uint glType", offsetof(T, glType_));
  3256. // unsigned ShaderParameter::regCount_
  3257. engine->RegisterObjectProperty(className, "uint regCount", offsetof(T, regCount_));
  3258. // unsigned ShaderParameter::buffer_
  3259. engine->RegisterObjectProperty(className, "uint buffer", offsetof(T, buffer_));
  3260. #ifdef REGISTER_MEMBERS_MANUAL_PART_ShaderParameter
  3261. REGISTER_MEMBERS_MANUAL_PART_ShaderParameter();
  3262. #endif
  3263. }
  3264. // struct ShadowBatchQueue | File: ../Graphics/Batch.h
  3265. template <class T> void RegisterMembers_ShadowBatchQueue(asIScriptEngine* engine, const char* className)
  3266. {
  3267. // Camera* ShadowBatchQueue::shadowCamera_
  3268. // Not registered because pointer
  3269. // IntRect ShadowBatchQueue::shadowViewport_
  3270. engine->RegisterObjectProperty(className, "IntRect shadowViewport", offsetof(T, shadowViewport_));
  3271. // BatchQueue ShadowBatchQueue::shadowBatches_
  3272. engine->RegisterObjectProperty(className, "BatchQueue shadowBatches", offsetof(T, shadowBatches_));
  3273. // float ShadowBatchQueue::nearSplit_
  3274. engine->RegisterObjectProperty(className, "float nearSplit", offsetof(T, nearSplit_));
  3275. // float ShadowBatchQueue::farSplit_
  3276. engine->RegisterObjectProperty(className, "float farSplit", offsetof(T, farSplit_));
  3277. #ifdef REGISTER_MEMBERS_MANUAL_PART_ShadowBatchQueue
  3278. REGISTER_MEMBERS_MANUAL_PART_ShadowBatchQueue();
  3279. #endif
  3280. }
  3281. // class Skeleton | File: ../Graphics/Skeleton.h
  3282. template <class T> void RegisterMembers_Skeleton(asIScriptEngine* engine, const char* className)
  3283. {
  3284. // Bone* Skeleton::GetBone(const char* name)
  3285. // Error: type "const char*" can not automatically bind
  3286. // const Vector<Bone>& Skeleton::GetBones() const
  3287. // Error: type "const Vector<Bone>&" can not automatically bind
  3288. // Vector<Bone>& Skeleton::GetModifiableBones()
  3289. // Error: type "Vector<Bone>&" can not automatically bind
  3290. // void Skeleton::ClearBones()
  3291. engine->RegisterObjectMethod(className, "void ClearBones()", AS_METHODPR(T, ClearBones, (), void), AS_CALL_THISCALL);
  3292. // void Skeleton::Define(const Skeleton& src)
  3293. engine->RegisterObjectMethod(className, "void Define(const Skeleton&in)", AS_METHODPR(T, Define, (const Skeleton&), void), AS_CALL_THISCALL);
  3294. // Bone* Skeleton::GetBone(unsigned index)
  3295. engine->RegisterObjectMethod(className, "Bone@ GetBone(uint)", AS_METHODPR(T, GetBone, (unsigned), Bone*), AS_CALL_THISCALL);
  3296. engine->RegisterObjectMethod(className, "Bone@ get_bones(uint)", AS_METHODPR(T, GetBone, (unsigned), Bone*), AS_CALL_THISCALL);
  3297. // Bone* Skeleton::GetBone(const String& name)
  3298. engine->RegisterObjectMethod(className, "Bone@ GetBone(const String&in)", AS_METHODPR(T, GetBone, (const String&), Bone*), AS_CALL_THISCALL);
  3299. // Bone* Skeleton::GetBone(const StringHash& boneNameHash)
  3300. engine->RegisterObjectMethod(className, "Bone@ GetBone(const StringHash&in)", AS_METHODPR(T, GetBone, (const StringHash&), Bone*), AS_CALL_THISCALL);
  3301. // unsigned Skeleton::GetBoneIndex(const String& boneName) const
  3302. engine->RegisterObjectMethod(className, "uint GetBoneIndex(const String&in) const", AS_METHODPR(T, GetBoneIndex, (const String&) const, unsigned), AS_CALL_THISCALL);
  3303. // unsigned Skeleton::GetBoneIndex(const StringHash& boneNameHash) const
  3304. engine->RegisterObjectMethod(className, "uint GetBoneIndex(const StringHash&in) const", AS_METHODPR(T, GetBoneIndex, (const StringHash&) const, unsigned), AS_CALL_THISCALL);
  3305. // unsigned Skeleton::GetBoneIndex(const Bone* bone) const
  3306. engine->RegisterObjectMethod(className, "uint GetBoneIndex(Bone@) const", AS_METHODPR(T, GetBoneIndex, (const Bone*) const, unsigned), AS_CALL_THISCALL);
  3307. // Bone* Skeleton::GetBoneParent(const Bone* bone)
  3308. engine->RegisterObjectMethod(className, "Bone@ GetBoneParent(Bone@)", AS_METHODPR(T, GetBoneParent, (const Bone*), Bone*), AS_CALL_THISCALL);
  3309. // unsigned Skeleton::GetNumBones() const
  3310. engine->RegisterObjectMethod(className, "uint GetNumBones() const", AS_METHODPR(T, GetNumBones, () const, unsigned), AS_CALL_THISCALL);
  3311. engine->RegisterObjectMethod(className, "uint get_numBones() const", AS_METHODPR(T, GetNumBones, () const, unsigned), AS_CALL_THISCALL);
  3312. // Bone* Skeleton::GetRootBone()
  3313. engine->RegisterObjectMethod(className, "Bone@ GetRootBone()", AS_METHODPR(T, GetRootBone, (), Bone*), AS_CALL_THISCALL);
  3314. engine->RegisterObjectMethod(className, "Bone@ get_rootBone()", AS_METHODPR(T, GetRootBone, (), Bone*), AS_CALL_THISCALL);
  3315. // bool Skeleton::Load(Deserializer& source)
  3316. engine->RegisterObjectMethod(className, "bool Load(Deserializer&)", AS_METHODPR(T, Load, (Deserializer&), bool), AS_CALL_THISCALL);
  3317. // void Skeleton::Reset()
  3318. engine->RegisterObjectMethod(className, "void Reset()", AS_METHODPR(T, Reset, (), void), AS_CALL_THISCALL);
  3319. // void Skeleton::ResetSilent()
  3320. engine->RegisterObjectMethod(className, "void ResetSilent()", AS_METHODPR(T, ResetSilent, (), void), AS_CALL_THISCALL);
  3321. // bool Skeleton::Save(Serializer& dest) const
  3322. engine->RegisterObjectMethod(className, "bool Save(Serializer&) const", AS_METHODPR(T, Save, (Serializer&) const, bool), AS_CALL_THISCALL);
  3323. // void Skeleton::SetRootBoneIndex(unsigned index)
  3324. engine->RegisterObjectMethod(className, "void SetRootBoneIndex(uint)", AS_METHODPR(T, SetRootBoneIndex, (unsigned), void), AS_CALL_THISCALL);
  3325. #ifdef REGISTER_MEMBERS_MANUAL_PART_Skeleton
  3326. REGISTER_MEMBERS_MANUAL_PART_Skeleton();
  3327. #endif
  3328. }
  3329. // struct SourceBatch | File: ../Graphics/Drawable.h
  3330. template <class T> void RegisterMembers_SourceBatch(asIScriptEngine* engine, const char* className)
  3331. {
  3332. // SourceBatch& SourceBatch::operator =(const SourceBatch& rhs)
  3333. engine->RegisterObjectMethod(className, "SourceBatch& opAssign(const SourceBatch&in)", AS_METHODPR(T, operator=, (const SourceBatch&), SourceBatch&), AS_CALL_THISCALL);
  3334. // Geometry* SourceBatch::geometry_
  3335. // Not registered because pointer
  3336. // SharedPtr<Material> SourceBatch::material_
  3337. // Error: type "SharedPtr<Material>" can not automatically bind
  3338. // const Matrix3x4* SourceBatch::worldTransform_
  3339. // Not registered because pointer
  3340. // void* SourceBatch::instancingData_
  3341. // Not registered because pointer
  3342. // float SourceBatch::distance_
  3343. engine->RegisterObjectProperty(className, "float distance", offsetof(T, distance_));
  3344. // unsigned SourceBatch::numWorldTransforms_
  3345. engine->RegisterObjectProperty(className, "uint numWorldTransforms", offsetof(T, numWorldTransforms_));
  3346. // GeometryType SourceBatch::geometryType_
  3347. engine->RegisterObjectProperty(className, "GeometryType geometryType", offsetof(T, geometryType_));
  3348. #ifdef REGISTER_MEMBERS_MANUAL_PART_SourceBatch
  3349. REGISTER_MEMBERS_MANUAL_PART_SourceBatch();
  3350. #endif
  3351. }
  3352. // class Sphere | File: ../Math/Sphere.h
  3353. template <class T> void RegisterMembers_Sphere(asIScriptEngine* engine, const char* className)
  3354. {
  3355. // void Sphere::Define(const Vector3* vertices, unsigned count)
  3356. // Error: type "const Vector3*" can not automatically bind
  3357. // void Sphere::Merge(const Vector3* vertices, unsigned count)
  3358. // Error: type "const Vector3*" can not automatically bind
  3359. // bool Sphere::operator !=(const Sphere& rhs) const
  3360. // Only operator == is needed
  3361. // void Sphere::Clear()
  3362. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  3363. // void Sphere::Define(const Sphere& sphere)
  3364. engine->RegisterObjectMethod(className, "void Define(const Sphere&in)", AS_METHODPR(T, Define, (const Sphere&), void), AS_CALL_THISCALL);
  3365. // void Sphere::Define(const Vector3& center, float radius)
  3366. engine->RegisterObjectMethod(className, "void Define(const Vector3&in, float)", AS_METHODPR(T, Define, (const Vector3&, float), void), AS_CALL_THISCALL);
  3367. // void Sphere::Define(const BoundingBox& box)
  3368. engine->RegisterObjectMethod(className, "void Define(const BoundingBox&in)", AS_METHODPR(T, Define, (const BoundingBox&), void), AS_CALL_THISCALL);
  3369. // void Sphere::Define(const Frustum& frustum)
  3370. engine->RegisterObjectMethod(className, "void Define(const Frustum&in)", AS_METHODPR(T, Define, (const Frustum&), void), AS_CALL_THISCALL);
  3371. // void Sphere::Define(const Polyhedron& poly)
  3372. engine->RegisterObjectMethod(className, "void Define(const Polyhedron&in)", AS_METHODPR(T, Define, (const Polyhedron&), void), AS_CALL_THISCALL);
  3373. // bool Sphere::Defined() const
  3374. engine->RegisterObjectMethod(className, "bool Defined() const", AS_METHODPR(T, Defined, () const, bool), AS_CALL_THISCALL);
  3375. // float Sphere::Distance(const Vector3& point) const
  3376. engine->RegisterObjectMethod(className, "float Distance(const Vector3&in) const", AS_METHODPR(T, Distance, (const Vector3&) const, float), AS_CALL_THISCALL);
  3377. // Vector3 Sphere::GetLocalPoint(float theta, float phi) const
  3378. engine->RegisterObjectMethod(className, "Vector3 GetLocalPoint(float, float) const", AS_METHODPR(T, GetLocalPoint, (float, float) const, Vector3), AS_CALL_THISCALL);
  3379. // Vector3 Sphere::GetPoint(float theta, float phi) const
  3380. engine->RegisterObjectMethod(className, "Vector3 GetPoint(float, float) const", AS_METHODPR(T, GetPoint, (float, float) const, Vector3), AS_CALL_THISCALL);
  3381. // Intersection Sphere::IsInside(const Vector3& point) const
  3382. engine->RegisterObjectMethod(className, "Intersection IsInside(const Vector3&in) const", AS_METHODPR(T, IsInside, (const Vector3&) const, Intersection), AS_CALL_THISCALL);
  3383. // Intersection Sphere::IsInside(const Sphere& sphere) const
  3384. engine->RegisterObjectMethod(className, "Intersection IsInside(const Sphere&in) const", AS_METHODPR(T, IsInside, (const Sphere&) const, Intersection), AS_CALL_THISCALL);
  3385. // Intersection Sphere::IsInside(const BoundingBox& box) const
  3386. engine->RegisterObjectMethod(className, "Intersection IsInside(const BoundingBox&in) const", AS_METHODPR(T, IsInside, (const BoundingBox&) const, Intersection), AS_CALL_THISCALL);
  3387. // Intersection Sphere::IsInsideFast(const Sphere& sphere) const
  3388. engine->RegisterObjectMethod(className, "Intersection IsInsideFast(const Sphere&in) const", AS_METHODPR(T, IsInsideFast, (const Sphere&) const, Intersection), AS_CALL_THISCALL);
  3389. // Intersection Sphere::IsInsideFast(const BoundingBox& box) const
  3390. engine->RegisterObjectMethod(className, "Intersection IsInsideFast(const BoundingBox&in) const", AS_METHODPR(T, IsInsideFast, (const BoundingBox&) const, Intersection), AS_CALL_THISCALL);
  3391. // void Sphere::Merge(const Vector3& point)
  3392. engine->RegisterObjectMethod(className, "void Merge(const Vector3&in)", AS_METHODPR(T, Merge, (const Vector3&), void), AS_CALL_THISCALL);
  3393. // void Sphere::Merge(const BoundingBox& box)
  3394. engine->RegisterObjectMethod(className, "void Merge(const BoundingBox&in)", AS_METHODPR(T, Merge, (const BoundingBox&), void), AS_CALL_THISCALL);
  3395. // void Sphere::Merge(const Frustum& frustum)
  3396. engine->RegisterObjectMethod(className, "void Merge(const Frustum&in)", AS_METHODPR(T, Merge, (const Frustum&), void), AS_CALL_THISCALL);
  3397. // void Sphere::Merge(const Polyhedron& poly)
  3398. engine->RegisterObjectMethod(className, "void Merge(const Polyhedron&in)", AS_METHODPR(T, Merge, (const Polyhedron&), void), AS_CALL_THISCALL);
  3399. // void Sphere::Merge(const Sphere& sphere)
  3400. engine->RegisterObjectMethod(className, "void Merge(const Sphere&in)", AS_METHODPR(T, Merge, (const Sphere&), void), AS_CALL_THISCALL);
  3401. // Sphere& Sphere::operator =(const Sphere& rhs) noexcept = default
  3402. engine->RegisterObjectMethod(className, "Sphere& opAssign(const Sphere&in)", AS_METHODPR(T, operator=, (const Sphere&), Sphere&), AS_CALL_THISCALL);
  3403. // bool Sphere::operator ==(const Sphere& rhs) const
  3404. engine->RegisterObjectMethod(className, "bool opEquals(const Sphere&in) const", AS_METHODPR(T, operator==, (const Sphere&) const, bool), AS_CALL_THISCALL);
  3405. // Vector3 Sphere::center_
  3406. engine->RegisterObjectProperty(className, "Vector3 center", offsetof(T, center_));
  3407. // float Sphere::radius_
  3408. engine->RegisterObjectProperty(className, "float radius", offsetof(T, radius_));
  3409. #ifdef REGISTER_MEMBERS_MANUAL_PART_Sphere
  3410. REGISTER_MEMBERS_MANUAL_PART_Sphere();
  3411. #endif
  3412. }
  3413. // class Spline | File: ../Core/Spline.h
  3414. template <class T> void RegisterMembers_Spline(asIScriptEngine* engine, const char* className)
  3415. {
  3416. // const VariantVector& Spline::GetKnots() const
  3417. // Error: type "const VariantVector&" can not automatically bind
  3418. // bool Spline::operator !=(const Spline& rhs) const
  3419. // Only operator == is needed
  3420. // void Spline::SetKnots(const Vector<Variant>& knots)
  3421. // Error: type "const Vector<Variant>&" can not automatically bind
  3422. // void Spline::AddKnot(const Variant& knot)
  3423. engine->RegisterObjectMethod(className, "void AddKnot(const Variant&in)", AS_METHODPR(T, AddKnot, (const Variant&), void), AS_CALL_THISCALL);
  3424. // void Spline::AddKnot(const Variant& knot, unsigned index)
  3425. engine->RegisterObjectMethod(className, "void AddKnot(const Variant&in, uint)", AS_METHODPR(T, AddKnot, (const Variant&, unsigned), void), AS_CALL_THISCALL);
  3426. // void Spline::Clear()
  3427. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  3428. // InterpolationMode Spline::GetInterpolationMode() const
  3429. engine->RegisterObjectMethod(className, "InterpolationMode GetInterpolationMode() const", AS_METHODPR(T, GetInterpolationMode, () const, InterpolationMode), AS_CALL_THISCALL);
  3430. engine->RegisterObjectMethod(className, "InterpolationMode get_interpolationMode() const", AS_METHODPR(T, GetInterpolationMode, () const, InterpolationMode), AS_CALL_THISCALL);
  3431. // Variant Spline::GetKnot(unsigned index) const
  3432. engine->RegisterObjectMethod(className, "Variant GetKnot(uint) const", AS_METHODPR(T, GetKnot, (unsigned) const, Variant), AS_CALL_THISCALL);
  3433. engine->RegisterObjectMethod(className, "Variant get_knot(uint) const", AS_METHODPR(T, GetKnot, (unsigned) const, Variant), AS_CALL_THISCALL);
  3434. // Variant Spline::GetPoint(float f) const
  3435. engine->RegisterObjectMethod(className, "Variant GetPoint(float) const", AS_METHODPR(T, GetPoint, (float) const, Variant), AS_CALL_THISCALL);
  3436. // Spline& Spline::operator =(const Spline& rhs) = default
  3437. engine->RegisterObjectMethod(className, "Spline& opAssign(const Spline&in)", AS_METHODPR(T, operator=, (const Spline&), Spline&), AS_CALL_THISCALL);
  3438. // bool Spline::operator ==(const Spline& rhs) const
  3439. engine->RegisterObjectMethod(className, "bool opEquals(const Spline&in) const", AS_METHODPR(T, operator==, (const Spline&) const, bool), AS_CALL_THISCALL);
  3440. // void Spline::RemoveKnot()
  3441. engine->RegisterObjectMethod(className, "void RemoveKnot()", AS_METHODPR(T, RemoveKnot, (), void), AS_CALL_THISCALL);
  3442. // void Spline::RemoveKnot(unsigned index)
  3443. engine->RegisterObjectMethod(className, "void RemoveKnot(uint)", AS_METHODPR(T, RemoveKnot, (unsigned), void), AS_CALL_THISCALL);
  3444. // void Spline::SetInterpolationMode(InterpolationMode interpolationMode)
  3445. engine->RegisterObjectMethod(className, "void SetInterpolationMode(InterpolationMode)", AS_METHODPR(T, SetInterpolationMode, (InterpolationMode), void), AS_CALL_THISCALL);
  3446. engine->RegisterObjectMethod(className, "void set_interpolationMode(InterpolationMode)", AS_METHODPR(T, SetInterpolationMode, (InterpolationMode), void), AS_CALL_THISCALL);
  3447. // void Spline::SetKnot(const Variant& knot, unsigned index)
  3448. engine->RegisterObjectMethod(className, "void SetKnot(const Variant&in, uint)", AS_METHODPR(T, SetKnot, (const Variant&, unsigned), void), AS_CALL_THISCALL);
  3449. #ifdef REGISTER_MEMBERS_MANUAL_PART_Spline
  3450. REGISTER_MEMBERS_MANUAL_PART_Spline();
  3451. #endif
  3452. }
  3453. // struct StaticModelGeometryData | File: ../Graphics/StaticModel.h
  3454. template <class T> void RegisterMembers_StaticModelGeometryData(asIScriptEngine* engine, const char* className)
  3455. {
  3456. // Vector3 StaticModelGeometryData::center_
  3457. engine->RegisterObjectProperty(className, "Vector3 center", offsetof(T, center_));
  3458. // unsigned StaticModelGeometryData::lodLevel_
  3459. engine->RegisterObjectProperty(className, "uint lodLevel", offsetof(T, lodLevel_));
  3460. #ifdef REGISTER_MEMBERS_MANUAL_PART_StaticModelGeometryData
  3461. REGISTER_MEMBERS_MANUAL_PART_StaticModelGeometryData();
  3462. #endif
  3463. }
  3464. // struct StoredLogMessage | File: ../IO/Log.h
  3465. template <class T> void RegisterMembers_StoredLogMessage(asIScriptEngine* engine, const char* className)
  3466. {
  3467. // String StoredLogMessage::message_
  3468. engine->RegisterObjectProperty(className, "String message", offsetof(T, message_));
  3469. // int StoredLogMessage::level_
  3470. engine->RegisterObjectProperty(className, "int level", offsetof(T, level_));
  3471. // bool StoredLogMessage::error_
  3472. engine->RegisterObjectProperty(className, "bool error", offsetof(T, error_));
  3473. #ifdef REGISTER_MEMBERS_MANUAL_PART_StoredLogMessage
  3474. REGISTER_MEMBERS_MANUAL_PART_StoredLogMessage();
  3475. #endif
  3476. }
  3477. // void String::Join(const Vector<String>& subStrings, const String& glue)
  3478. template <class T> void String_void_Join_constspVectorlesStringgreamp_constspStringamp_template(T* _ptr, CScriptArray* subStrings_conv, const String& glue)
  3479. {
  3480. Vector<String> subStrings = ArrayToVector<String>(subStrings_conv);
  3481. _ptr->Join(subStrings, glue);
  3482. }
  3483. // Vector<String> String::Split(char separator, bool keepEmptyStrings = false) const
  3484. template <class T> CScriptArray* String_VectorlesStringgre_Split_char_bool_template(T* _ptr, char separator, bool keepEmptyStrings)
  3485. {
  3486. Vector<String> result = _ptr->Split(separator, keepEmptyStrings);
  3487. return VectorToArray<String>(result, "Array<String>");
  3488. }
  3489. // bool String::operator <(const String& rhs) const
  3490. template <class T> int String_bool_operatorles_constspStringamp(const T& lhs, const T& rhs)
  3491. {
  3492. if (lhs < rhs)
  3493. return -1;
  3494. if (lhs > rhs)
  3495. return 1;
  3496. return 0;
  3497. }
  3498. // class String | File: ../Container/Str.h
  3499. template <class T> void RegisterMembers_String(asIScriptEngine* engine, const char* className)
  3500. {
  3501. // String& String::Append(const char* str)
  3502. // Error: type "const char*" can not automatically bind
  3503. // String& String::Append(const char* str, unsigned length)
  3504. // Error: type "const char*" can not automatically bind
  3505. // String& String::AppendWithFormat(const char* formatString,...)
  3506. // Error: type "const char*" can not automatically bind
  3507. // String& String::AppendWithFormatArgs(const char* formatString, va_list args)
  3508. // Error: type "const char*" can not automatically bind
  3509. // Iterator String::Begin()
  3510. // Error: type "Iterator" can not automatically bind
  3511. // ConstIterator String::Begin() const
  3512. // Error: type "ConstIterator" can not automatically bind
  3513. // int String::Compare(const char* str, bool caseSensitive = true) const
  3514. // Error: type "const char*" can not automatically bind
  3515. // const char* String::CString() const
  3516. // Error: type "const char*" can not automatically bind
  3517. // Iterator String::End()
  3518. // Error: type "Iterator" can not automatically bind
  3519. // ConstIterator String::End() const
  3520. // Error: type "ConstIterator" can not automatically bind
  3521. // Iterator String::Erase(const Iterator& it)
  3522. // Error: type "const Iterator&" can not automatically bind
  3523. // Iterator String::Erase(const Iterator& start, const Iterator& end)
  3524. // Error: type "const Iterator&" can not automatically bind
  3525. // Iterator String::Insert(const Iterator& dest, const String& str)
  3526. // Error: type "const Iterator&" can not automatically bind
  3527. // Iterator String::Insert(const Iterator& dest, const Iterator& start, const Iterator& end)
  3528. // Error: type "const Iterator&" can not automatically bind
  3529. // Iterator String::Insert(const Iterator& dest, char c)
  3530. // Error: type "const Iterator&" can not automatically bind
  3531. // bool String::operator !=(const String& rhs) const
  3532. // Only operator == is needed
  3533. // bool String::operator !=(const char* rhs) const
  3534. // Error: type "const char*" can not automatically bind
  3535. // String String::operator +(const char* rhs) const
  3536. // Error: type "const char*" can not automatically bind
  3537. // String& String::operator +=(const char* rhs)
  3538. // Error: type "const char*" can not automatically bind
  3539. // String& String::operator +=(long rhs)
  3540. // Not registered because have @nobind mark
  3541. // String& String::operator +=(unsigned long rhs)
  3542. // Not registered because have @nobind mark
  3543. // bool String::operator <(const String& rhs) const
  3544. // Registerd as opCmp separately
  3545. // bool String::operator <(const char* rhs) const
  3546. // Error: type "const char*" can not automatically bind
  3547. // String& String::operator =(String&& rhs) noexcept
  3548. // Error: type "String&&" can not automatically bind
  3549. // String& String::operator =(const char* rhs)
  3550. // Error: type "const char*" can not automatically bind
  3551. // bool String::operator ==(const char* rhs) const
  3552. // Error: type "const char*" can not automatically bind
  3553. // bool String::operator>(const String& rhs) const
  3554. // Registerd as opCmp separately
  3555. // bool String::operator>(const char* rhs) const
  3556. // Error: type "const char*" can not automatically bind
  3557. // void String::Replace(unsigned pos, unsigned length, const char* replaceWith)
  3558. // Error: type "const char*" can not automatically bind
  3559. // Iterator String::Replace(const Iterator& start, const Iterator& end, const String& replaceWith)
  3560. // Error: type "const Iterator&" can not automatically bind
  3561. // void String::SetUTF8FromLatin1(const char* str)
  3562. // Error: type "const char*" can not automatically bind
  3563. // void String::SetUTF8FromWChar(const wchar_t* str)
  3564. // Error: type "const wchar_t*" can not automatically bind
  3565. // String& String::Append(const String& str)
  3566. engine->RegisterObjectMethod(className, "String& Append(const String&in)", AS_METHODPR(T, Append, (const String&), String&), AS_CALL_THISCALL);
  3567. // String& String::Append(char c)
  3568. engine->RegisterObjectMethod(className, "String& Append(int8)", AS_METHODPR(T, Append, (char), String&), AS_CALL_THISCALL);
  3569. // String& String::AppendUTF8(unsigned unicodeChar)
  3570. engine->RegisterObjectMethod(className, "String& AppendUTF8(uint)", AS_METHODPR(T, AppendUTF8, (unsigned), String&), AS_CALL_THISCALL);
  3571. // char& String::At(unsigned index)
  3572. engine->RegisterObjectMethod(className, "int8& At(uint)", AS_METHODPR(T, At, (unsigned), char&), AS_CALL_THISCALL);
  3573. // const char& String::At(unsigned index) const
  3574. engine->RegisterObjectMethod(className, "const int8& At(uint) const", AS_METHODPR(T, At, (unsigned) const, const char&), AS_CALL_THISCALL);
  3575. // unsigned String::AtUTF8(unsigned index) const
  3576. engine->RegisterObjectMethod(className, "uint AtUTF8(uint) const", AS_METHODPR(T, AtUTF8, (unsigned) const, unsigned), AS_CALL_THISCALL);
  3577. // char String::Back() const
  3578. engine->RegisterObjectMethod(className, "int8 Back() const", AS_METHODPR(T, Back, () const, char), AS_CALL_THISCALL);
  3579. // unsigned String::ByteOffsetUTF8(unsigned index) const
  3580. engine->RegisterObjectMethod(className, "uint ByteOffsetUTF8(uint) const", AS_METHODPR(T, ByteOffsetUTF8, (unsigned) const, unsigned), AS_CALL_THISCALL);
  3581. // unsigned String::Capacity() const
  3582. engine->RegisterObjectMethod(className, "uint Capacity() const", AS_METHODPR(T, Capacity, () const, unsigned), AS_CALL_THISCALL);
  3583. // void String::Clear()
  3584. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  3585. // void String::Compact()
  3586. engine->RegisterObjectMethod(className, "void Compact()", AS_METHODPR(T, Compact, (), void), AS_CALL_THISCALL);
  3587. // int String::Compare(const String& str, bool caseSensitive = true) const
  3588. engine->RegisterObjectMethod(className, "int Compare(const String&in, bool = true) const", AS_METHODPR(T, Compare, (const String&, bool) const, int), AS_CALL_THISCALL);
  3589. // bool String::Contains(const String& str, bool caseSensitive = true) const
  3590. engine->RegisterObjectMethod(className, "bool Contains(const String&in, bool = true) const", AS_METHODPR(T, Contains, (const String&, bool) const, bool), AS_CALL_THISCALL);
  3591. // bool String::Contains(char c, bool caseSensitive = true) const
  3592. engine->RegisterObjectMethod(className, "bool Contains(int8, bool = true) const", AS_METHODPR(T, Contains, (char, bool) const, bool), AS_CALL_THISCALL);
  3593. // bool String::Empty() const
  3594. engine->RegisterObjectMethod(className, "bool Empty() const", AS_METHODPR(T, Empty, () const, bool), AS_CALL_THISCALL);
  3595. engine->RegisterObjectMethod(className, "bool get_empty() const", AS_METHODPR(T, Empty, () const, bool), AS_CALL_THISCALL);
  3596. // bool String::EndsWith(const String& str, bool caseSensitive = true) const
  3597. engine->RegisterObjectMethod(className, "bool EndsWith(const String&in, bool = true) const", AS_METHODPR(T, EndsWith, (const String&, bool) const, bool), AS_CALL_THISCALL);
  3598. // void String::Erase(unsigned pos, unsigned length = 1)
  3599. engine->RegisterObjectMethod(className, "void Erase(uint, uint = 1)", AS_METHODPR(T, Erase, (unsigned, unsigned), void), AS_CALL_THISCALL);
  3600. // unsigned String::Find(const String& str, unsigned startPos = 0, bool caseSensitive = true) const
  3601. engine->RegisterObjectMethod(className, "uint Find(const String&in, uint = 0, bool = true) const", AS_METHODPR(T, Find, (const String&, unsigned, bool) const, unsigned), AS_CALL_THISCALL);
  3602. // unsigned String::Find(char c, unsigned startPos = 0, bool caseSensitive = true) const
  3603. engine->RegisterObjectMethod(className, "uint Find(int8, uint = 0, bool = true) const", AS_METHODPR(T, Find, (char, unsigned, bool) const, unsigned), AS_CALL_THISCALL);
  3604. // unsigned String::FindLast(const String& str, unsigned startPos = NPOS, bool caseSensitive = true) const
  3605. engine->RegisterObjectMethod(className, "uint FindLast(const String&in, uint = String::NPOS, bool = true) const", AS_METHODPR(T, FindLast, (const String&, unsigned, bool) const, unsigned), AS_CALL_THISCALL);
  3606. // unsigned String::FindLast(char c, unsigned startPos = NPOS, bool caseSensitive = true) const
  3607. engine->RegisterObjectMethod(className, "uint FindLast(int8, uint = String::NPOS, bool = true) const", AS_METHODPR(T, FindLast, (char, unsigned, bool) const, unsigned), AS_CALL_THISCALL);
  3608. // char String::Front() const
  3609. engine->RegisterObjectMethod(className, "int8 Front() const", AS_METHODPR(T, Front, () const, char), AS_CALL_THISCALL);
  3610. // void String::Insert(unsigned pos, const String& str)
  3611. engine->RegisterObjectMethod(className, "void Insert(uint, const String&in)", AS_METHODPR(T, Insert, (unsigned, const String&), void), AS_CALL_THISCALL);
  3612. // void String::Insert(unsigned pos, char c)
  3613. engine->RegisterObjectMethod(className, "void Insert(uint, int8)", AS_METHODPR(T, Insert, (unsigned, char), void), AS_CALL_THISCALL);
  3614. // void String::Join(const Vector<String>& subStrings, const String& glue)
  3615. engine->RegisterObjectMethod(className, "void Join(Array<String>@+, const String&in)", AS_FUNCTION_OBJFIRST(String_void_Join_constspVectorlesStringgreamp_constspStringamp_template<String>), AS_CALL_CDECL_OBJFIRST);
  3616. // unsigned String::Length() const
  3617. engine->RegisterObjectMethod(className, "uint Length() const", AS_METHODPR(T, Length, () const, unsigned), AS_CALL_THISCALL);
  3618. engine->RegisterObjectMethod(className, "uint get_length() const", AS_METHODPR(T, Length, () const, unsigned), AS_CALL_THISCALL);
  3619. // unsigned String::LengthUTF8() const
  3620. engine->RegisterObjectMethod(className, "uint LengthUTF8() const", AS_METHODPR(T, LengthUTF8, () const, unsigned), AS_CALL_THISCALL);
  3621. engine->RegisterObjectMethod(className, "uint get_utf8Length() const", AS_METHODPR(T, LengthUTF8, () const, unsigned), AS_CALL_THISCALL);
  3622. // unsigned String::NextUTF8Char(unsigned& byteOffset) const
  3623. engine->RegisterObjectMethod(className, "uint NextUTF8Char(uint&) const", AS_METHODPR(T, NextUTF8Char, (unsigned&) const, unsigned), AS_CALL_THISCALL);
  3624. // String String::operator +(const String& rhs) const
  3625. engine->RegisterObjectMethod(className, "String opAdd(const String&in) const", AS_METHODPR(T, operator+, (const String&) const, String), AS_CALL_THISCALL);
  3626. // String& String::operator +=(const String& rhs)
  3627. engine->RegisterObjectMethod(className, "String& opAddAssign(const String&in)", AS_METHODPR(T, operator+=, (const String&), String&), AS_CALL_THISCALL);
  3628. // String& String::operator +=(char rhs)
  3629. engine->RegisterObjectMethod(className, "String& opAddAssign(int8)", AS_METHODPR(T, operator+=, (char), String&), AS_CALL_THISCALL);
  3630. // String& String::operator +=(int rhs)
  3631. engine->RegisterObjectMethod(className, "String& opAddAssign(int)", AS_METHODPR(T, operator+=, (int), String&), AS_CALL_THISCALL);
  3632. // String& String::operator +=(short rhs)
  3633. engine->RegisterObjectMethod(className, "String& opAddAssign(int16)", AS_METHODPR(T, operator+=, (short), String&), AS_CALL_THISCALL);
  3634. // String& String::operator +=(long long rhs)
  3635. engine->RegisterObjectMethod(className, "String& opAddAssign(int64)", AS_METHODPR(T, operator+=, (long long), String&), AS_CALL_THISCALL);
  3636. // String& String::operator +=(unsigned rhs)
  3637. engine->RegisterObjectMethod(className, "String& opAddAssign(uint)", AS_METHODPR(T, operator+=, (unsigned), String&), AS_CALL_THISCALL);
  3638. // String& String::operator +=(unsigned short rhs)
  3639. engine->RegisterObjectMethod(className, "String& opAddAssign(uint16)", AS_METHODPR(T, operator+=, (unsigned short), String&), AS_CALL_THISCALL);
  3640. // String& String::operator +=(unsigned long long rhs)
  3641. engine->RegisterObjectMethod(className, "String& opAddAssign(uint64)", AS_METHODPR(T, operator+=, (unsigned long long), String&), AS_CALL_THISCALL);
  3642. // String& String::operator +=(float rhs)
  3643. engine->RegisterObjectMethod(className, "String& opAddAssign(float)", AS_METHODPR(T, operator+=, (float), String&), AS_CALL_THISCALL);
  3644. // String& String::operator +=(bool rhs)
  3645. engine->RegisterObjectMethod(className, "String& opAddAssign(bool)", AS_METHODPR(T, operator+=, (bool), String&), AS_CALL_THISCALL);
  3646. // String& String::operator =(const String& rhs)
  3647. engine->RegisterObjectMethod(className, "String& opAssign(const String&in)", AS_METHODPR(T, operator=, (const String&), String&), AS_CALL_THISCALL);
  3648. // bool String::operator ==(const String& rhs) const
  3649. engine->RegisterObjectMethod(className, "bool opEquals(const String&in) const", AS_METHODPR(T, operator==, (const String&) const, bool), AS_CALL_THISCALL);
  3650. // char& String::operator [](unsigned index)
  3651. engine->RegisterObjectMethod(className, "int8& opIndex(uint)", AS_METHODPR(T, operator[], (unsigned), char&), AS_CALL_THISCALL);
  3652. // const char& String::operator [](unsigned index) const
  3653. engine->RegisterObjectMethod(className, "const int8& opIndex(uint) const", AS_METHODPR(T, operator[], (unsigned) const, const char&), AS_CALL_THISCALL);
  3654. // void String::Replace(char replaceThis, char replaceWith, bool caseSensitive = true)
  3655. engine->RegisterObjectMethod(className, "void Replace(int8, int8, bool = true)", AS_METHODPR(T, Replace, (char, char, bool), void), AS_CALL_THISCALL);
  3656. // void String::Replace(const String& replaceThis, const String& replaceWith, bool caseSensitive = true)
  3657. engine->RegisterObjectMethod(className, "void Replace(const String&in, const String&in, bool = true)", AS_METHODPR(T, Replace, (const String&, const String&, bool), void), AS_CALL_THISCALL);
  3658. // void String::Replace(unsigned pos, unsigned length, const String& replaceWith)
  3659. engine->RegisterObjectMethod(className, "void Replace(uint, uint, const String&in)", AS_METHODPR(T, Replace, (unsigned, unsigned, const String&), void), AS_CALL_THISCALL);
  3660. // String String::Replaced(char replaceThis, char replaceWith, bool caseSensitive = true) const
  3661. engine->RegisterObjectMethod(className, "String Replaced(int8, int8, bool = true) const", AS_METHODPR(T, Replaced, (char, char, bool) const, String), AS_CALL_THISCALL);
  3662. // String String::Replaced(const String& replaceThis, const String& replaceWith, bool caseSensitive = true) const
  3663. engine->RegisterObjectMethod(className, "String Replaced(const String&in, const String&in, bool = true) const", AS_METHODPR(T, Replaced, (const String&, const String&, bool) const, String), AS_CALL_THISCALL);
  3664. // void String::ReplaceUTF8(unsigned index, unsigned unicodeChar)
  3665. engine->RegisterObjectMethod(className, "void ReplaceUTF8(uint, uint)", AS_METHODPR(T, ReplaceUTF8, (unsigned, unsigned), void), AS_CALL_THISCALL);
  3666. // void String::Reserve(unsigned newCapacity)
  3667. engine->RegisterObjectMethod(className, "void Reserve(uint)", AS_METHODPR(T, Reserve, (unsigned), void), AS_CALL_THISCALL);
  3668. // void String::Resize(unsigned newLength)
  3669. engine->RegisterObjectMethod(className, "void Resize(uint)", AS_METHODPR(T, Resize, (unsigned), void), AS_CALL_THISCALL);
  3670. // Vector<String> String::Split(char separator, bool keepEmptyStrings = false) const
  3671. engine->RegisterObjectMethod(className, "Array<String>@ Split(int8, bool = false) const", AS_FUNCTION_OBJFIRST(String_VectorlesStringgre_Split_char_bool_template<String>), AS_CALL_CDECL_OBJFIRST);
  3672. // bool String::StartsWith(const String& str, bool caseSensitive = true) const
  3673. engine->RegisterObjectMethod(className, "bool StartsWith(const String&in, bool = true) const", AS_METHODPR(T, StartsWith, (const String&, bool) const, bool), AS_CALL_THISCALL);
  3674. // String String::Substring(unsigned pos) const
  3675. engine->RegisterObjectMethod(className, "String Substring(uint) const", AS_METHODPR(T, Substring, (unsigned) const, String), AS_CALL_THISCALL);
  3676. // String String::Substring(unsigned pos, unsigned length) const
  3677. engine->RegisterObjectMethod(className, "String Substring(uint, uint) const", AS_METHODPR(T, Substring, (unsigned, unsigned) const, String), AS_CALL_THISCALL);
  3678. // String String::SubstringUTF8(unsigned pos) const
  3679. engine->RegisterObjectMethod(className, "String SubstringUTF8(uint) const", AS_METHODPR(T, SubstringUTF8, (unsigned) const, String), AS_CALL_THISCALL);
  3680. // String String::SubstringUTF8(unsigned pos, unsigned length) const
  3681. engine->RegisterObjectMethod(className, "String SubstringUTF8(uint, uint) const", AS_METHODPR(T, SubstringUTF8, (unsigned, unsigned) const, String), AS_CALL_THISCALL);
  3682. // void String::Swap(String& str)
  3683. engine->RegisterObjectMethod(className, "void Swap(String&)", AS_METHODPR(T, Swap, (String&), void), AS_CALL_THISCALL);
  3684. // unsigned String::ToHash() const
  3685. engine->RegisterObjectMethod(className, "uint ToHash() const", AS_METHODPR(T, ToHash, () const, unsigned), AS_CALL_THISCALL);
  3686. // String String::ToLower() const
  3687. engine->RegisterObjectMethod(className, "String ToLower() const", AS_METHODPR(T, ToLower, () const, String), AS_CALL_THISCALL);
  3688. // String String::ToUpper() const
  3689. engine->RegisterObjectMethod(className, "String ToUpper() const", AS_METHODPR(T, ToUpper, () const, String), AS_CALL_THISCALL);
  3690. // String String::Trimmed() const
  3691. engine->RegisterObjectMethod(className, "String Trimmed() const", AS_METHODPR(T, Trimmed, () const, String), AS_CALL_THISCALL);
  3692. // bool String::operator <(const String& rhs) const
  3693. engine->RegisterObjectMethod(className, "int opCmp(const String& in) const", AS_FUNCTION_OBJFIRST(String_bool_operatorles_constspStringamp<T>), AS_CALL_CDECL_OBJFIRST);
  3694. // template <class T> String& String::operator +=(const T& rhs)
  3695. // Not registered because template
  3696. // static Vector<String> String::Split(const char* str, char separator, bool keepEmptyStrings = false)
  3697. // Error: type "const char*" can not automatically bind
  3698. // static String String::Joined(const Vector<String>& subStrings, const String& glue)
  3699. // Not registered because have @manualbind mark
  3700. // static void String::EncodeUTF8(char*& dest, unsigned unicodeChar)
  3701. // Error: type "char*&" can not automatically bind
  3702. // static unsigned String::DecodeUTF8(const char*& src)
  3703. // Error: type "const char*&" can not automatically bind
  3704. // static unsigned String::CStringLength(const char* str)
  3705. // Error: type "const char*" can not automatically bind
  3706. // static int String::Compare(const char* lhs, const char* rhs, bool caseSensitive)
  3707. // Error: type "const char*" can not automatically bind
  3708. // static const unsigned String::NPOS
  3709. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const uint NPOS", (void*)&T::NPOS);engine->SetDefaultNamespace("");
  3710. // static const unsigned String::MIN_CAPACITY
  3711. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const uint MIN_CAPACITY", (void*)&T::MIN_CAPACITY);engine->SetDefaultNamespace("");
  3712. // static const String String::EMPTY
  3713. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const String EMPTY", (void*)&T::EMPTY);engine->SetDefaultNamespace("");
  3714. #ifdef REGISTER_MEMBERS_MANUAL_PART_String
  3715. REGISTER_MEMBERS_MANUAL_PART_String();
  3716. #endif
  3717. }
  3718. // bool StringHash::operator <(const StringHash& rhs) const
  3719. template <class T> int StringHash_bool_operatorles_constspStringHashamp(const T& lhs, const T& rhs)
  3720. {
  3721. if (lhs < rhs)
  3722. return -1;
  3723. if (lhs > rhs)
  3724. return 1;
  3725. return 0;
  3726. }
  3727. // class StringHash | File: ../Math/StringHash.h
  3728. template <class T> void RegisterMembers_StringHash(asIScriptEngine* engine, const char* className)
  3729. {
  3730. // bool StringHash::operator !=(const StringHash& rhs) const
  3731. // Only operator == is needed
  3732. // bool StringHash::operator <(const StringHash& rhs) const
  3733. // Registerd as opCmp separately
  3734. // bool StringHash::operator>(const StringHash& rhs) const
  3735. // Registerd as opCmp separately
  3736. // explicit StringHash::operator bool() const
  3737. engine->RegisterObjectMethod(className, "bool opConv() const", AS_METHODPR(T, operator bool, () const, bool), AS_CALL_THISCALL);
  3738. // StringHash StringHash::operator +(const StringHash& rhs) const
  3739. engine->RegisterObjectMethod(className, "StringHash opAdd(const StringHash&in) const", AS_METHODPR(T, operator+, (const StringHash&) const, StringHash), AS_CALL_THISCALL);
  3740. // StringHash& StringHash::operator +=(const StringHash& rhs)
  3741. engine->RegisterObjectMethod(className, "StringHash& opAddAssign(const StringHash&in)", AS_METHODPR(T, operator+=, (const StringHash&), StringHash&), AS_CALL_THISCALL);
  3742. // StringHash& StringHash::operator =(const StringHash& rhs) noexcept = default
  3743. engine->RegisterObjectMethod(className, "StringHash& opAssign(const StringHash&in)", AS_METHODPR(T, operator=, (const StringHash&), StringHash&), AS_CALL_THISCALL);
  3744. // bool StringHash::operator ==(const StringHash& rhs) const
  3745. engine->RegisterObjectMethod(className, "bool opEquals(const StringHash&in) const", AS_METHODPR(T, operator==, (const StringHash&) const, bool), AS_CALL_THISCALL);
  3746. // String StringHash::Reverse() const
  3747. engine->RegisterObjectMethod(className, "String Reverse() const", AS_METHODPR(T, Reverse, () const, String), AS_CALL_THISCALL);
  3748. // unsigned StringHash::ToHash() const
  3749. engine->RegisterObjectMethod(className, "uint ToHash() const", AS_METHODPR(T, ToHash, () const, unsigned), AS_CALL_THISCALL);
  3750. // String StringHash::ToString() const
  3751. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  3752. // unsigned StringHash::Value() const
  3753. engine->RegisterObjectMethod(className, "uint Value() const", AS_METHODPR(T, Value, () const, unsigned), AS_CALL_THISCALL);
  3754. engine->RegisterObjectMethod(className, "uint get_value() const", AS_METHODPR(T, Value, () const, unsigned), AS_CALL_THISCALL);
  3755. // bool StringHash::operator <(const StringHash& rhs) const
  3756. engine->RegisterObjectMethod(className, "int opCmp(const StringHash& in) const", AS_FUNCTION_OBJFIRST(StringHash_bool_operatorles_constspStringHashamp<T>), AS_CALL_CDECL_OBJFIRST);
  3757. // static unsigned StringHash::Calculate(const char* str, unsigned hash = 0)
  3758. // Error: type "const char*" can not automatically bind
  3759. // static StringHashRegister* StringHash::GetGlobalStringHashRegister()
  3760. // Error: type "StringHashRegister*" can not automatically bind
  3761. // static const StringHash StringHash::ZERO
  3762. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const StringHash ZERO", (void*)&T::ZERO);engine->SetDefaultNamespace("");
  3763. #ifdef REGISTER_MEMBERS_MANUAL_PART_StringHash
  3764. REGISTER_MEMBERS_MANUAL_PART_StringHash();
  3765. #endif
  3766. }
  3767. // class StringHashRegister | File: ../Core/StringHashRegister.h
  3768. template <class T> void RegisterMembers_StringHashRegister(asIScriptEngine* engine, const char* className)
  3769. {
  3770. // const StringMap& StringHashRegister::GetInternalMap() const
  3771. // Error: type "const StringMap&" can not automatically bind
  3772. // StringHash StringHashRegister::RegisterString(const StringHash& hash, const char* string)
  3773. // Error: type "const char*" can not automatically bind
  3774. // StringHash StringHashRegister::RegisterString(const char* string)
  3775. // Error: type "const char*" can not automatically bind
  3776. // bool StringHashRegister::Contains(const StringHash& hash) const
  3777. engine->RegisterObjectMethod(className, "bool Contains(const StringHash&in) const", AS_METHODPR(T, Contains, (const StringHash&) const, bool), AS_CALL_THISCALL);
  3778. // const String& StringHashRegister::GetString(const StringHash& hash) const
  3779. engine->RegisterObjectMethod(className, "const String& GetString(const StringHash&in) const", AS_METHODPR(T, GetString, (const StringHash&) const, const String&), AS_CALL_THISCALL);
  3780. // String StringHashRegister::GetStringCopy(const StringHash& hash) const
  3781. engine->RegisterObjectMethod(className, "String GetStringCopy(const StringHash&in) const", AS_METHODPR(T, GetStringCopy, (const StringHash&) const, String), AS_CALL_THISCALL);
  3782. #ifdef REGISTER_MEMBERS_MANUAL_PART_StringHashRegister
  3783. REGISTER_MEMBERS_MANUAL_PART_StringHashRegister();
  3784. #endif
  3785. }
  3786. // struct TechniqueEntry | File: ../Graphics/Material.h
  3787. template <class T> void RegisterMembers_TechniqueEntry(asIScriptEngine* engine, const char* className)
  3788. {
  3789. // SharedPtr<Technique> TechniqueEntry::technique_
  3790. // Error: type "SharedPtr<Technique>" can not automatically bind
  3791. // SharedPtr<Technique> TechniqueEntry::original_
  3792. // Error: type "SharedPtr<Technique>" can not automatically bind
  3793. // MaterialQuality TechniqueEntry::qualityLevel_
  3794. engine->RegisterObjectProperty(className, "MaterialQuality qualityLevel", offsetof(T, qualityLevel_));
  3795. // float TechniqueEntry::lodDistance_
  3796. engine->RegisterObjectProperty(className, "float lodDistance", offsetof(T, lodDistance_));
  3797. #ifdef REGISTER_MEMBERS_MANUAL_PART_TechniqueEntry
  3798. REGISTER_MEMBERS_MANUAL_PART_TechniqueEntry();
  3799. #endif
  3800. }
  3801. // struct TextureFrame | File: ../Graphics/ParticleEffect.h
  3802. template <class T> void RegisterMembers_TextureFrame(asIScriptEngine* engine, const char* className)
  3803. {
  3804. // Rect TextureFrame::uv_
  3805. engine->RegisterObjectProperty(className, "Rect uv", offsetof(T, uv_));
  3806. // float TextureFrame::time_
  3807. engine->RegisterObjectProperty(className, "float time", offsetof(T, time_));
  3808. #ifdef REGISTER_MEMBERS_MANUAL_PART_TextureFrame
  3809. REGISTER_MEMBERS_MANUAL_PART_TextureFrame();
  3810. #endif
  3811. }
  3812. // class Thread | File: ../Core/Thread.h
  3813. template <class T> void RegisterMembers_Thread(asIScriptEngine* engine, const char* className)
  3814. {
  3815. // bool Thread::IsStarted() const
  3816. engine->RegisterObjectMethod(className, "bool IsStarted() const", AS_METHODPR(T, IsStarted, () const, bool), AS_CALL_THISCALL);
  3817. // bool Thread::Run()
  3818. engine->RegisterObjectMethod(className, "bool Run()", AS_METHODPR(T, Run, (), bool), AS_CALL_THISCALL);
  3819. // void Thread::SetPriority(int priority)
  3820. engine->RegisterObjectMethod(className, "void SetPriority(int)", AS_METHODPR(T, SetPriority, (int), void), AS_CALL_THISCALL);
  3821. // void Thread::Stop()
  3822. engine->RegisterObjectMethod(className, "void Stop()", AS_METHODPR(T, Stop, (), void), AS_CALL_THISCALL);
  3823. // virtual void Thread::ThreadFunction() = 0
  3824. engine->RegisterObjectMethod(className, "void ThreadFunction()", AS_METHODPR(T, ThreadFunction, (), void), AS_CALL_THISCALL);
  3825. // static ThreadID Thread::GetCurrentThreadID()
  3826. // Not registered because have @nobind mark
  3827. // static void Thread::SetMainThread()
  3828. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("void SetMainThread()", AS_FUNCTIONPR(T::SetMainThread, (), void), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  3829. // static bool Thread::IsMainThread()
  3830. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("bool IsMainThread()", AS_FUNCTIONPR(T::IsMainThread, (), bool), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  3831. #ifdef REGISTER_MEMBERS_MANUAL_PART_Thread
  3832. REGISTER_MEMBERS_MANUAL_PART_Thread();
  3833. #endif
  3834. }
  3835. // class Timer | File: ../Core/Timer.h
  3836. template <class T> void RegisterMembers_Timer(asIScriptEngine* engine, const char* className)
  3837. {
  3838. // unsigned Timer::GetMSec(bool reset)
  3839. engine->RegisterObjectMethod(className, "uint GetMSec(bool)", AS_METHODPR(T, GetMSec, (bool), unsigned), AS_CALL_THISCALL);
  3840. // void Timer::Reset()
  3841. engine->RegisterObjectMethod(className, "void Reset()", AS_METHODPR(T, Reset, (), void), AS_CALL_THISCALL);
  3842. #ifdef REGISTER_MEMBERS_MANUAL_PART_Timer
  3843. REGISTER_MEMBERS_MANUAL_PART_Timer();
  3844. #endif
  3845. }
  3846. // struct TouchState | File: ../Input/Input.h
  3847. template <class T> void RegisterMembers_TouchState(asIScriptEngine* engine, const char* className)
  3848. {
  3849. // UIElement* TouchState::GetTouchedElement()
  3850. engine->RegisterObjectMethod(className, "UIElement@+ GetTouchedElement()", AS_METHODPR(T, GetTouchedElement, (), UIElement*), AS_CALL_THISCALL);
  3851. engine->RegisterObjectMethod(className, "UIElement@+ get_touchedElement()", AS_METHODPR(T, GetTouchedElement, (), UIElement*), AS_CALL_THISCALL);
  3852. // WeakPtr<UIElement> TouchState::touchedElement_
  3853. // Error: type "WeakPtr<UIElement>" can not automatically bind
  3854. // int TouchState::touchID_
  3855. engine->RegisterObjectProperty(className, "int touchID", offsetof(T, touchID_));
  3856. // IntVector2 TouchState::position_
  3857. engine->RegisterObjectProperty(className, "IntVector2 position", offsetof(T, position_));
  3858. // IntVector2 TouchState::lastPosition_
  3859. engine->RegisterObjectProperty(className, "IntVector2 lastPosition", offsetof(T, lastPosition_));
  3860. // IntVector2 TouchState::delta_
  3861. engine->RegisterObjectProperty(className, "IntVector2 delta", offsetof(T, delta_));
  3862. // float TouchState::pressure_
  3863. engine->RegisterObjectProperty(className, "float pressure", offsetof(T, pressure_));
  3864. #ifdef REGISTER_MEMBERS_MANUAL_PART_TouchState
  3865. REGISTER_MEMBERS_MANUAL_PART_TouchState();
  3866. #endif
  3867. }
  3868. // struct TrailPoint | File: ../Graphics/RibbonTrail.h
  3869. template <class T> void RegisterMembers_TrailPoint(asIScriptEngine* engine, const char* className)
  3870. {
  3871. // TrailPoint* TrailPoint::next_
  3872. // Not registered because pointer
  3873. // Vector3 TrailPoint::position_
  3874. engine->RegisterObjectProperty(className, "Vector3 position", offsetof(T, position_));
  3875. // Vector3 TrailPoint::forward_
  3876. engine->RegisterObjectProperty(className, "Vector3 forward", offsetof(T, forward_));
  3877. // Vector3 TrailPoint::parentPos_
  3878. engine->RegisterObjectProperty(className, "Vector3 parentPos", offsetof(T, parentPos_));
  3879. // float TrailPoint::elapsedLength_
  3880. engine->RegisterObjectProperty(className, "float elapsedLength", offsetof(T, elapsedLength_));
  3881. // float TrailPoint::lifetime_
  3882. engine->RegisterObjectProperty(className, "float lifetime", offsetof(T, lifetime_));
  3883. // float TrailPoint::sortDistance_
  3884. engine->RegisterObjectProperty(className, "float sortDistance", offsetof(T, sortDistance_));
  3885. #ifdef REGISTER_MEMBERS_MANUAL_PART_TrailPoint
  3886. REGISTER_MEMBERS_MANUAL_PART_TrailPoint();
  3887. #endif
  3888. }
  3889. // class TypeInfo | File: ../Core/Object.h
  3890. template <class T> void RegisterMembers_TypeInfo(asIScriptEngine* engine, const char* className)
  3891. {
  3892. // const TypeInfo* TypeInfo::GetBaseTypeInfo() const
  3893. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  3894. // bool TypeInfo::IsTypeOf(const TypeInfo* typeInfo) const
  3895. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  3896. // StringHash TypeInfo::GetType() const
  3897. engine->RegisterObjectMethod(className, "StringHash GetType() const", AS_METHODPR(T, GetType, () const, StringHash), AS_CALL_THISCALL);
  3898. // const String& TypeInfo::GetTypeName() const
  3899. engine->RegisterObjectMethod(className, "const String& GetTypeName() const", AS_METHODPR(T, GetTypeName, () const, const String&), AS_CALL_THISCALL);
  3900. // bool TypeInfo::IsTypeOf(StringHash type) const
  3901. engine->RegisterObjectMethod(className, "bool IsTypeOf(StringHash) const", AS_METHODPR(T, IsTypeOf, (StringHash) const, bool), AS_CALL_THISCALL);
  3902. // template <typename T> bool TypeInfo::IsTypeOf() const
  3903. // Not registered because template
  3904. #ifdef REGISTER_MEMBERS_MANUAL_PART_TypeInfo
  3905. REGISTER_MEMBERS_MANUAL_PART_TypeInfo();
  3906. #endif
  3907. }
  3908. // class UIBatch | File: ../UI/UIBatch.h
  3909. template <class T> void RegisterMembers_UIBatch(asIScriptEngine* engine, const char* className)
  3910. {
  3911. // void UIBatch::AddQuad(float x, float y, float width, float height, int texOffsetX, int texOffsetY, int texWidth = 0, int texHeight = 0)
  3912. engine->RegisterObjectMethod(className, "void AddQuad(float, float, float, float, int, int, int = 0, int = 0)", AS_METHODPR(T, AddQuad, (float, float, float, float, int, int, int, int), void), AS_CALL_THISCALL);
  3913. // void UIBatch::AddQuad(const Matrix3x4& transform, int x, int y, int width, int height, int texOffsetX, int texOffsetY, int texWidth = 0, int texHeight = 0)
  3914. engine->RegisterObjectMethod(className, "void AddQuad(const Matrix3x4&in, int, int, int, int, int, int, int = 0, int = 0)", AS_METHODPR(T, AddQuad, (const Matrix3x4&, int, int, int, int, int, int, int, int), void), AS_CALL_THISCALL);
  3915. // void UIBatch::AddQuad(int x, int y, int width, int height, int texOffsetX, int texOffsetY, int texWidth, int texHeight, bool tiled)
  3916. engine->RegisterObjectMethod(className, "void AddQuad(int, int, int, int, int, int, int, int, bool)", AS_METHODPR(T, AddQuad, (int, int, int, int, int, int, int, int, bool), void), AS_CALL_THISCALL);
  3917. // void UIBatch::AddQuad(const Matrix3x4& transform, const IntVector2& a, const IntVector2& b, const IntVector2& c, const IntVector2& d, const IntVector2& texA, const IntVector2& texB, const IntVector2& texC, const IntVector2& texD)
  3918. engine->RegisterObjectMethod(className, "void AddQuad(const Matrix3x4&in, const IntVector2&in, const IntVector2&in, const IntVector2&in, const IntVector2&in, const IntVector2&in, const IntVector2&in, const IntVector2&in, const IntVector2&in)", AS_METHODPR(T, AddQuad, (const Matrix3x4&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&), void), AS_CALL_THISCALL);
  3919. // void UIBatch::AddQuad(const Matrix3x4& transform, const IntVector2& a, const IntVector2& b, const IntVector2& c, const IntVector2& d, const IntVector2& texA, const IntVector2& texB, const IntVector2& texC, const IntVector2& texD, const Color& colA, const Color& colB, const Color& colC, const Color& colD)
  3920. engine->RegisterObjectMethod(className, "void AddQuad(const Matrix3x4&in, const IntVector2&in, const IntVector2&in, const IntVector2&in, const IntVector2&in, const IntVector2&in, const IntVector2&in, const IntVector2&in, const IntVector2&in, const Color&in, const Color&in, const Color&in, const Color&in)", AS_METHODPR(T, AddQuad, (const Matrix3x4&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const Color&, const Color&, const Color&, const Color&), void), AS_CALL_THISCALL);
  3921. // unsigned UIBatch::GetInterpolatedColor(float x, float y)
  3922. engine->RegisterObjectMethod(className, "uint GetInterpolatedColor(float, float)", AS_METHODPR(T, GetInterpolatedColor, (float, float), unsigned), AS_CALL_THISCALL);
  3923. // bool UIBatch::Merge(const UIBatch& batch)
  3924. engine->RegisterObjectMethod(className, "bool Merge(const UIBatch&in)", AS_METHODPR(T, Merge, (const UIBatch&), bool), AS_CALL_THISCALL);
  3925. // void UIBatch::SetColor(const Color& color, bool overrideAlpha = false)
  3926. engine->RegisterObjectMethod(className, "void SetColor(const Color&in, bool = false)", AS_METHODPR(T, SetColor, (const Color&, bool), void), AS_CALL_THISCALL);
  3927. // void UIBatch::SetDefaultColor()
  3928. engine->RegisterObjectMethod(className, "void SetDefaultColor()", AS_METHODPR(T, SetDefaultColor, (), void), AS_CALL_THISCALL);
  3929. // static void UIBatch::AddOrMerge(const UIBatch& batch, PODVector<UIBatch>& batches)
  3930. // Error: type "PODVector<UIBatch>&" can not automatically bind
  3931. // UIElement* UIBatch::element_
  3932. // Not registered because pointer
  3933. // Texture* UIBatch::texture_
  3934. // Not registered because pointer
  3935. // PODVector<float>* UIBatch::vertexData_
  3936. // Not registered because pointer
  3937. // Material* UIBatch::customMaterial_
  3938. // Not registered because pointer
  3939. // BlendMode UIBatch::blendMode_
  3940. engine->RegisterObjectProperty(className, "BlendMode blendMode", offsetof(T, blendMode_));
  3941. // IntRect UIBatch::scissor_
  3942. engine->RegisterObjectProperty(className, "IntRect scissor", offsetof(T, scissor_));
  3943. // Vector2 UIBatch::invTextureSize_
  3944. engine->RegisterObjectProperty(className, "Vector2 invTextureSize", offsetof(T, invTextureSize_));
  3945. // unsigned UIBatch::vertexStart_
  3946. engine->RegisterObjectProperty(className, "uint vertexStart", offsetof(T, vertexStart_));
  3947. // unsigned UIBatch::vertexEnd_
  3948. engine->RegisterObjectProperty(className, "uint vertexEnd", offsetof(T, vertexEnd_));
  3949. // unsigned UIBatch::color_
  3950. engine->RegisterObjectProperty(className, "uint color", offsetof(T, color_));
  3951. // bool UIBatch::useGradient_
  3952. engine->RegisterObjectProperty(className, "bool useGradient", offsetof(T, useGradient_));
  3953. // static Vector3 UIBatch::posAdjust
  3954. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("Vector3 posAdjust", (void*)&T::posAdjust);engine->SetDefaultNamespace("");
  3955. #ifdef REGISTER_MEMBERS_MANUAL_PART_UIBatch
  3956. REGISTER_MEMBERS_MANUAL_PART_UIBatch();
  3957. #endif
  3958. }
  3959. // struct VAnimEventFrame | File: ../Scene/ValueAnimation.h
  3960. template <class T> void RegisterMembers_VAnimEventFrame(asIScriptEngine* engine, const char* className)
  3961. {
  3962. // float VAnimEventFrame::time_
  3963. engine->RegisterObjectProperty(className, "float time", offsetof(T, time_));
  3964. // StringHash VAnimEventFrame::eventType_
  3965. engine->RegisterObjectProperty(className, "StringHash eventType", offsetof(T, eventType_));
  3966. // VariantMap VAnimEventFrame::eventData_
  3967. engine->RegisterObjectProperty(className, "VariantMap eventData", offsetof(T, eventData_));
  3968. #ifdef REGISTER_MEMBERS_MANUAL_PART_VAnimEventFrame
  3969. REGISTER_MEMBERS_MANUAL_PART_VAnimEventFrame();
  3970. #endif
  3971. }
  3972. // struct VAnimKeyFrame | File: ../Scene/ValueAnimation.h
  3973. template <class T> void RegisterMembers_VAnimKeyFrame(asIScriptEngine* engine, const char* className)
  3974. {
  3975. // float VAnimKeyFrame::time_
  3976. engine->RegisterObjectProperty(className, "float time", offsetof(T, time_));
  3977. // Variant VAnimKeyFrame::value_
  3978. engine->RegisterObjectProperty(className, "Variant value", offsetof(T, value_));
  3979. #ifdef REGISTER_MEMBERS_MANUAL_PART_VAnimKeyFrame
  3980. REGISTER_MEMBERS_MANUAL_PART_VAnimKeyFrame();
  3981. #endif
  3982. }
  3983. // const StringVector& Variant::GetStringVector() const
  3984. template <class T> CScriptArray* Variant_constspStringVectoramp_GetStringVector_void_template(T* _ptr)
  3985. {
  3986. const StringVector& result = _ptr->GetStringVector();
  3987. return VectorToArray<String>(result, "Array<String>");
  3988. }
  3989. // Variant& Variant::operator =(const StringVector& rhs)
  3990. template <class T> Variant& Variant_Variantamp_operatoreq_constspStringVectoramp_template(T* _ptr, CScriptArray* rhs_conv)
  3991. {
  3992. StringVector rhs = ArrayToVector<String>(rhs_conv);
  3993. Variant& result = _ptr->operator=(rhs);
  3994. return result;
  3995. }
  3996. // bool Variant::operator ==(const StringVector& rhs) const
  3997. template <class T> bool Variant_bool_operatoreqeq_constspStringVectoramp_template(T* _ptr, CScriptArray* rhs_conv)
  3998. {
  3999. StringVector rhs = ArrayToVector<String>(rhs_conv);
  4000. bool result = _ptr->operator==(rhs);
  4001. return result;
  4002. }
  4003. // class Variant | File: ../Core/Variant.h
  4004. template <class T> void RegisterMembers_Variant(asIScriptEngine* engine, const char* className)
  4005. {
  4006. // void Variant::FromString(const char* type, const char* value)
  4007. // Error: type "const char*" can not automatically bind
  4008. // void Variant::FromString(VariantType type, const char* value)
  4009. // Error: type "const char*" can not automatically bind
  4010. // const PODVector<unsigned char>& Variant::GetBuffer() const
  4011. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  4012. // PODVector<unsigned char>* Variant::GetBufferPtr()
  4013. // Error: type "PODVector<unsigned char>*" can not automatically bind
  4014. // CustomVariantValue* Variant::GetCustomVariantValuePtr()
  4015. // Error: type "CustomVariantValue" can not automatically bind bacause have @nobind mark
  4016. // const CustomVariantValue* Variant::GetCustomVariantValuePtr() const
  4017. // Error: type "CustomVariantValue" can not automatically bind bacause have @nobind mark
  4018. // StringVector* Variant::GetStringVectorPtr()
  4019. // Error: type "StringVector*" can not automatically bind
  4020. // VariantMap* Variant::GetVariantMapPtr()
  4021. // Error: type "VariantMap*" can not automatically bind
  4022. // const VariantVector& Variant::GetVariantVector() const
  4023. // Error: type "const VariantVector&" can not automatically bind
  4024. // VariantVector* Variant::GetVariantVectorPtr()
  4025. // Error: type "VariantVector*" can not automatically bind
  4026. // void* Variant::GetVoidPtr() const
  4027. // Error: type "void*" can not automatically bind
  4028. // bool Variant::operator !=(const Variant& rhs) const
  4029. // Only operator == is needed
  4030. // bool Variant::operator !=(int rhs) const
  4031. // Only operator == is needed
  4032. // bool Variant::operator !=(unsigned rhs) const
  4033. // Only operator == is needed
  4034. // bool Variant::operator !=(long long rhs) const
  4035. // Only operator == is needed
  4036. // bool Variant::operator !=(unsigned long long rhs) const
  4037. // Only operator == is needed
  4038. // bool Variant::operator !=(bool rhs) const
  4039. // Only operator == is needed
  4040. // bool Variant::operator !=(float rhs) const
  4041. // Only operator == is needed
  4042. // bool Variant::operator !=(double rhs) const
  4043. // Only operator == is needed
  4044. // bool Variant::operator !=(const Vector2& rhs) const
  4045. // Only operator == is needed
  4046. // bool Variant::operator !=(const Vector3& rhs) const
  4047. // Only operator == is needed
  4048. // bool Variant::operator !=(const Vector4& rhs) const
  4049. // Only operator == is needed
  4050. // bool Variant::operator !=(const Quaternion& rhs) const
  4051. // Only operator == is needed
  4052. // bool Variant::operator !=(const String& rhs) const
  4053. // Only operator == is needed
  4054. // bool Variant::operator !=(const PODVector<unsigned char>& rhs) const
  4055. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  4056. // bool Variant::operator !=(const VectorBuffer& rhs) const
  4057. // Only operator == is needed
  4058. // bool Variant::operator !=(void* rhs) const
  4059. // Error: type "void*" can not automatically bind
  4060. // bool Variant::operator !=(const ResourceRef& rhs) const
  4061. // Only operator == is needed
  4062. // bool Variant::operator !=(const ResourceRefList& rhs) const
  4063. // Only operator == is needed
  4064. // bool Variant::operator !=(const VariantVector& rhs) const
  4065. // Error: type "const VariantVector&" can not automatically bind
  4066. // bool Variant::operator !=(const StringVector& rhs) const
  4067. // Only operator == is needed
  4068. // bool Variant::operator !=(const VariantMap& rhs) const
  4069. // Only operator == is needed
  4070. // bool Variant::operator !=(const Rect& rhs) const
  4071. // Only operator == is needed
  4072. // bool Variant::operator !=(const IntRect& rhs) const
  4073. // Only operator == is needed
  4074. // bool Variant::operator !=(const IntVector2& rhs) const
  4075. // Only operator == is needed
  4076. // bool Variant::operator !=(const IntVector3& rhs) const
  4077. // Only operator == is needed
  4078. // bool Variant::operator !=(const StringHash& rhs) const
  4079. // Only operator == is needed
  4080. // bool Variant::operator !=(RefCounted* rhs) const
  4081. // Only operator == is needed
  4082. // bool Variant::operator !=(const Matrix3& rhs) const
  4083. // Only operator == is needed
  4084. // bool Variant::operator !=(const Matrix3x4& rhs) const
  4085. // Only operator == is needed
  4086. // bool Variant::operator !=(const Matrix4& rhs) const
  4087. // Only operator == is needed
  4088. // Variant& Variant::operator =(const char* rhs)
  4089. // Error: type "const char*" can not automatically bind
  4090. // Variant& Variant::operator =(const PODVector<unsigned char>& rhs)
  4091. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  4092. // Variant& Variant::operator =(void* rhs)
  4093. // Error: type "void*" can not automatically bind
  4094. // Variant& Variant::operator =(const VariantVector& rhs)
  4095. // Error: type "const VariantVector&" can not automatically bind
  4096. // bool Variant::operator ==(const PODVector<unsigned char>& rhs) const
  4097. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  4098. // bool Variant::operator ==(void* rhs) const
  4099. // Error: type "void*" can not automatically bind
  4100. // bool Variant::operator ==(const VariantVector& rhs) const
  4101. // Error: type "const VariantVector&" can not automatically bind
  4102. // void Variant::SetBuffer(const void* data, unsigned size)
  4103. // Error: type "const void*" can not automatically bind
  4104. // void Variant::SetCustomVariantValue(const CustomVariantValue& value)
  4105. // Error: type "CustomVariantValue" can not automatically bind bacause have @nobind mark
  4106. // void Variant::Clear()
  4107. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  4108. // void Variant::FromString(const String& type, const String& value)
  4109. engine->RegisterObjectMethod(className, "void FromString(const String&in, const String&in)", AS_METHODPR(T, FromString, (const String&, const String&), void), AS_CALL_THISCALL);
  4110. // void Variant::FromString(VariantType type, const String& value)
  4111. engine->RegisterObjectMethod(className, "void FromString(VariantType, const String&in)", AS_METHODPR(T, FromString, (VariantType, const String&), void), AS_CALL_THISCALL);
  4112. // bool Variant::GetBool() const
  4113. engine->RegisterObjectMethod(className, "bool GetBool() const", AS_METHODPR(T, GetBool, () const, bool), AS_CALL_THISCALL);
  4114. // const Color& Variant::GetColor() const
  4115. engine->RegisterObjectMethod(className, "const Color& GetColor() const", AS_METHODPR(T, GetColor, () const, const Color&), AS_CALL_THISCALL);
  4116. // double Variant::GetDouble() const
  4117. engine->RegisterObjectMethod(className, "double GetDouble() const", AS_METHODPR(T, GetDouble, () const, double), AS_CALL_THISCALL);
  4118. // float Variant::GetFloat() const
  4119. engine->RegisterObjectMethod(className, "float GetFloat() const", AS_METHODPR(T, GetFloat, () const, float), AS_CALL_THISCALL);
  4120. // int Variant::GetInt() const
  4121. engine->RegisterObjectMethod(className, "int GetInt() const", AS_METHODPR(T, GetInt, () const, int), AS_CALL_THISCALL);
  4122. // long long Variant::GetInt64() const
  4123. engine->RegisterObjectMethod(className, "int64 GetInt64() const", AS_METHODPR(T, GetInt64, () const, long long), AS_CALL_THISCALL);
  4124. // const IntRect& Variant::GetIntRect() const
  4125. engine->RegisterObjectMethod(className, "const IntRect& GetIntRect() const", AS_METHODPR(T, GetIntRect, () const, const IntRect&), AS_CALL_THISCALL);
  4126. // const IntVector2& Variant::GetIntVector2() const
  4127. engine->RegisterObjectMethod(className, "const IntVector2& GetIntVector2() const", AS_METHODPR(T, GetIntVector2, () const, const IntVector2&), AS_CALL_THISCALL);
  4128. // const IntVector3& Variant::GetIntVector3() const
  4129. engine->RegisterObjectMethod(className, "const IntVector3& GetIntVector3() const", AS_METHODPR(T, GetIntVector3, () const, const IntVector3&), AS_CALL_THISCALL);
  4130. // const Matrix3& Variant::GetMatrix3() const
  4131. engine->RegisterObjectMethod(className, "const Matrix3& GetMatrix3() const", AS_METHODPR(T, GetMatrix3, () const, const Matrix3&), AS_CALL_THISCALL);
  4132. // const Matrix3x4& Variant::GetMatrix3x4() const
  4133. engine->RegisterObjectMethod(className, "const Matrix3x4& GetMatrix3x4() const", AS_METHODPR(T, GetMatrix3x4, () const, const Matrix3x4&), AS_CALL_THISCALL);
  4134. // const Matrix4& Variant::GetMatrix4() const
  4135. engine->RegisterObjectMethod(className, "const Matrix4& GetMatrix4() const", AS_METHODPR(T, GetMatrix4, () const, const Matrix4&), AS_CALL_THISCALL);
  4136. // RefCounted* Variant::GetPtr() const
  4137. engine->RegisterObjectMethod(className, "RefCounted@+ GetPtr() const", AS_METHODPR(T, GetPtr, () const, RefCounted*), AS_CALL_THISCALL);
  4138. // const Quaternion& Variant::GetQuaternion() const
  4139. engine->RegisterObjectMethod(className, "const Quaternion& GetQuaternion() const", AS_METHODPR(T, GetQuaternion, () const, const Quaternion&), AS_CALL_THISCALL);
  4140. // const Rect& Variant::GetRect() const
  4141. engine->RegisterObjectMethod(className, "const Rect& GetRect() const", AS_METHODPR(T, GetRect, () const, const Rect&), AS_CALL_THISCALL);
  4142. // const ResourceRef& Variant::GetResourceRef() const
  4143. engine->RegisterObjectMethod(className, "const ResourceRef& GetResourceRef() const", AS_METHODPR(T, GetResourceRef, () const, const ResourceRef&), AS_CALL_THISCALL);
  4144. // const ResourceRefList& Variant::GetResourceRefList() const
  4145. engine->RegisterObjectMethod(className, "const ResourceRefList& GetResourceRefList() const", AS_METHODPR(T, GetResourceRefList, () const, const ResourceRefList&), AS_CALL_THISCALL);
  4146. // const String& Variant::GetString() const
  4147. engine->RegisterObjectMethod(className, "const String& GetString() const", AS_METHODPR(T, GetString, () const, const String&), AS_CALL_THISCALL);
  4148. // StringHash Variant::GetStringHash() const
  4149. engine->RegisterObjectMethod(className, "StringHash GetStringHash() const", AS_METHODPR(T, GetStringHash, () const, StringHash), AS_CALL_THISCALL);
  4150. // const StringVector& Variant::GetStringVector() const
  4151. engine->RegisterObjectMethod(className, "Array<String>@ GetStringVector() const", AS_FUNCTION_OBJFIRST(Variant_constspStringVectoramp_GetStringVector_void_template<Variant>), AS_CALL_CDECL_OBJFIRST);
  4152. // VariantType Variant::GetType() const
  4153. engine->RegisterObjectMethod(className, "VariantType GetType() const", AS_METHODPR(T, GetType, () const, VariantType), AS_CALL_THISCALL);
  4154. engine->RegisterObjectMethod(className, "VariantType get_type() const", AS_METHODPR(T, GetType, () const, VariantType), AS_CALL_THISCALL);
  4155. // String Variant::GetTypeName() const
  4156. engine->RegisterObjectMethod(className, "String GetTypeName() const", AS_METHODPR(T, GetTypeName, () const, String), AS_CALL_THISCALL);
  4157. engine->RegisterObjectMethod(className, "String get_typeName() const", AS_METHODPR(T, GetTypeName, () const, String), AS_CALL_THISCALL);
  4158. // unsigned Variant::GetUInt() const
  4159. engine->RegisterObjectMethod(className, "uint GetUInt() const", AS_METHODPR(T, GetUInt, () const, unsigned), AS_CALL_THISCALL);
  4160. // unsigned long long Variant::GetUInt64() const
  4161. engine->RegisterObjectMethod(className, "uint64 GetUInt64() const", AS_METHODPR(T, GetUInt64, () const, unsigned long long), AS_CALL_THISCALL);
  4162. // const VariantMap& Variant::GetVariantMap() const
  4163. engine->RegisterObjectMethod(className, "const VariantMap& GetVariantMap() const", AS_METHODPR(T, GetVariantMap, () const, const VariantMap&), AS_CALL_THISCALL);
  4164. // const Vector2& Variant::GetVector2() const
  4165. engine->RegisterObjectMethod(className, "const Vector2& GetVector2() const", AS_METHODPR(T, GetVector2, () const, const Vector2&), AS_CALL_THISCALL);
  4166. // const Vector3& Variant::GetVector3() const
  4167. engine->RegisterObjectMethod(className, "const Vector3& GetVector3() const", AS_METHODPR(T, GetVector3, () const, const Vector3&), AS_CALL_THISCALL);
  4168. // const Vector4& Variant::GetVector4() const
  4169. engine->RegisterObjectMethod(className, "const Vector4& GetVector4() const", AS_METHODPR(T, GetVector4, () const, const Vector4&), AS_CALL_THISCALL);
  4170. // VectorBuffer Variant::GetVectorBuffer() const
  4171. engine->RegisterObjectMethod(className, "VectorBuffer GetVectorBuffer() const", AS_METHODPR(T, GetVectorBuffer, () const, VectorBuffer), AS_CALL_THISCALL);
  4172. // bool Variant::IsCustom() const
  4173. engine->RegisterObjectMethod(className, "bool IsCustom() const", AS_METHODPR(T, IsCustom, () const, bool), AS_CALL_THISCALL);
  4174. // bool Variant::IsEmpty() const
  4175. engine->RegisterObjectMethod(className, "bool IsEmpty() const", AS_METHODPR(T, IsEmpty, () const, bool), AS_CALL_THISCALL);
  4176. engine->RegisterObjectMethod(className, "bool get_empty() const", AS_METHODPR(T, IsEmpty, () const, bool), AS_CALL_THISCALL);
  4177. // bool Variant::IsZero() const
  4178. engine->RegisterObjectMethod(className, "bool IsZero() const", AS_METHODPR(T, IsZero, () const, bool), AS_CALL_THISCALL);
  4179. engine->RegisterObjectMethod(className, "bool get_zero() const", AS_METHODPR(T, IsZero, () const, bool), AS_CALL_THISCALL);
  4180. // Variant& Variant::operator =(const Variant& rhs)
  4181. engine->RegisterObjectMethod(className, "Variant& opAssign(const Variant&in)", AS_METHODPR(T, operator=, (const Variant&), Variant&), AS_CALL_THISCALL);
  4182. // Variant& Variant::operator =(int rhs)
  4183. engine->RegisterObjectMethod(className, "Variant& opAssign(int)", AS_METHODPR(T, operator=, (int), Variant&), AS_CALL_THISCALL);
  4184. // Variant& Variant::operator =(long long rhs)
  4185. engine->RegisterObjectMethod(className, "Variant& opAssign(int64)", AS_METHODPR(T, operator=, (long long), Variant&), AS_CALL_THISCALL);
  4186. // Variant& Variant::operator =(unsigned long long rhs)
  4187. engine->RegisterObjectMethod(className, "Variant& opAssign(uint64)", AS_METHODPR(T, operator=, (unsigned long long), Variant&), AS_CALL_THISCALL);
  4188. // Variant& Variant::operator =(unsigned rhs)
  4189. engine->RegisterObjectMethod(className, "Variant& opAssign(uint)", AS_METHODPR(T, operator=, (unsigned), Variant&), AS_CALL_THISCALL);
  4190. // Variant& Variant::operator =(const StringHash& rhs)
  4191. engine->RegisterObjectMethod(className, "Variant& opAssign(const StringHash&in)", AS_METHODPR(T, operator=, (const StringHash&), Variant&), AS_CALL_THISCALL);
  4192. // Variant& Variant::operator =(bool rhs)
  4193. engine->RegisterObjectMethod(className, "Variant& opAssign(bool)", AS_METHODPR(T, operator=, (bool), Variant&), AS_CALL_THISCALL);
  4194. // Variant& Variant::operator =(float rhs)
  4195. engine->RegisterObjectMethod(className, "Variant& opAssign(float)", AS_METHODPR(T, operator=, (float), Variant&), AS_CALL_THISCALL);
  4196. // Variant& Variant::operator =(double rhs)
  4197. engine->RegisterObjectMethod(className, "Variant& opAssign(double)", AS_METHODPR(T, operator=, (double), Variant&), AS_CALL_THISCALL);
  4198. // Variant& Variant::operator =(const Vector2& rhs)
  4199. engine->RegisterObjectMethod(className, "Variant& opAssign(const Vector2&in)", AS_METHODPR(T, operator=, (const Vector2&), Variant&), AS_CALL_THISCALL);
  4200. // Variant& Variant::operator =(const Vector3& rhs)
  4201. engine->RegisterObjectMethod(className, "Variant& opAssign(const Vector3&in)", AS_METHODPR(T, operator=, (const Vector3&), Variant&), AS_CALL_THISCALL);
  4202. // Variant& Variant::operator =(const Vector4& rhs)
  4203. engine->RegisterObjectMethod(className, "Variant& opAssign(const Vector4&in)", AS_METHODPR(T, operator=, (const Vector4&), Variant&), AS_CALL_THISCALL);
  4204. // Variant& Variant::operator =(const Quaternion& rhs)
  4205. engine->RegisterObjectMethod(className, "Variant& opAssign(const Quaternion&in)", AS_METHODPR(T, operator=, (const Quaternion&), Variant&), AS_CALL_THISCALL);
  4206. // Variant& Variant::operator =(const Color& rhs)
  4207. engine->RegisterObjectMethod(className, "Variant& opAssign(const Color&in)", AS_METHODPR(T, operator=, (const Color&), Variant&), AS_CALL_THISCALL);
  4208. // Variant& Variant::operator =(const String& rhs)
  4209. engine->RegisterObjectMethod(className, "Variant& opAssign(const String&in)", AS_METHODPR(T, operator=, (const String&), Variant&), AS_CALL_THISCALL);
  4210. // Variant& Variant::operator =(const VectorBuffer& rhs)
  4211. engine->RegisterObjectMethod(className, "Variant& opAssign(const VectorBuffer&in)", AS_METHODPR(T, operator=, (const VectorBuffer&), Variant&), AS_CALL_THISCALL);
  4212. // Variant& Variant::operator =(const ResourceRef& rhs)
  4213. engine->RegisterObjectMethod(className, "Variant& opAssign(const ResourceRef&in)", AS_METHODPR(T, operator=, (const ResourceRef&), Variant&), AS_CALL_THISCALL);
  4214. // Variant& Variant::operator =(const ResourceRefList& rhs)
  4215. engine->RegisterObjectMethod(className, "Variant& opAssign(const ResourceRefList&in)", AS_METHODPR(T, operator=, (const ResourceRefList&), Variant&), AS_CALL_THISCALL);
  4216. // Variant& Variant::operator =(const StringVector& rhs)
  4217. engine->RegisterObjectMethod(className, "Variant& opAssign(Array<String>@+)", AS_FUNCTION_OBJFIRST(Variant_Variantamp_operatoreq_constspStringVectoramp_template<Variant>), AS_CALL_CDECL_OBJFIRST);
  4218. // Variant& Variant::operator =(const VariantMap& rhs)
  4219. engine->RegisterObjectMethod(className, "Variant& opAssign(const VariantMap&in)", AS_METHODPR(T, operator=, (const VariantMap&), Variant&), AS_CALL_THISCALL);
  4220. // Variant& Variant::operator =(const Rect& rhs)
  4221. engine->RegisterObjectMethod(className, "Variant& opAssign(const Rect&in)", AS_METHODPR(T, operator=, (const Rect&), Variant&), AS_CALL_THISCALL);
  4222. // Variant& Variant::operator =(const IntRect& rhs)
  4223. engine->RegisterObjectMethod(className, "Variant& opAssign(const IntRect&in)", AS_METHODPR(T, operator=, (const IntRect&), Variant&), AS_CALL_THISCALL);
  4224. // Variant& Variant::operator =(const IntVector2& rhs)
  4225. engine->RegisterObjectMethod(className, "Variant& opAssign(const IntVector2&in)", AS_METHODPR(T, operator=, (const IntVector2&), Variant&), AS_CALL_THISCALL);
  4226. // Variant& Variant::operator =(const IntVector3& rhs)
  4227. engine->RegisterObjectMethod(className, "Variant& opAssign(const IntVector3&in)", AS_METHODPR(T, operator=, (const IntVector3&), Variant&), AS_CALL_THISCALL);
  4228. // Variant& Variant::operator =(RefCounted* rhs)
  4229. engine->RegisterObjectMethod(className, "Variant& opAssign(RefCounted@+)", AS_METHODPR(T, operator=, (RefCounted*), Variant&), AS_CALL_THISCALL);
  4230. // Variant& Variant::operator =(const Matrix3& rhs)
  4231. engine->RegisterObjectMethod(className, "Variant& opAssign(const Matrix3&in)", AS_METHODPR(T, operator=, (const Matrix3&), Variant&), AS_CALL_THISCALL);
  4232. // Variant& Variant::operator =(const Matrix3x4& rhs)
  4233. engine->RegisterObjectMethod(className, "Variant& opAssign(const Matrix3x4&in)", AS_METHODPR(T, operator=, (const Matrix3x4&), Variant&), AS_CALL_THISCALL);
  4234. // Variant& Variant::operator =(const Matrix4& rhs)
  4235. engine->RegisterObjectMethod(className, "Variant& opAssign(const Matrix4&in)", AS_METHODPR(T, operator=, (const Matrix4&), Variant&), AS_CALL_THISCALL);
  4236. // bool Variant::operator ==(const Variant& rhs) const
  4237. engine->RegisterObjectMethod(className, "bool opEquals(const Variant&in) const", AS_METHODPR(T, operator==, (const Variant&) const, bool), AS_CALL_THISCALL);
  4238. // bool Variant::operator ==(int rhs) const
  4239. engine->RegisterObjectMethod(className, "bool opEquals(int) const", AS_METHODPR(T, operator==, (int) const, bool), AS_CALL_THISCALL);
  4240. // bool Variant::operator ==(unsigned rhs) const
  4241. engine->RegisterObjectMethod(className, "bool opEquals(uint) const", AS_METHODPR(T, operator==, (unsigned) const, bool), AS_CALL_THISCALL);
  4242. // bool Variant::operator ==(long long rhs) const
  4243. engine->RegisterObjectMethod(className, "bool opEquals(int64) const", AS_METHODPR(T, operator==, (long long) const, bool), AS_CALL_THISCALL);
  4244. // bool Variant::operator ==(unsigned long long rhs) const
  4245. engine->RegisterObjectMethod(className, "bool opEquals(uint64) const", AS_METHODPR(T, operator==, (unsigned long long) const, bool), AS_CALL_THISCALL);
  4246. // bool Variant::operator ==(bool rhs) const
  4247. engine->RegisterObjectMethod(className, "bool opEquals(bool) const", AS_METHODPR(T, operator==, (bool) const, bool), AS_CALL_THISCALL);
  4248. // bool Variant::operator ==(float rhs) const
  4249. engine->RegisterObjectMethod(className, "bool opEquals(float) const", AS_METHODPR(T, operator==, (float) const, bool), AS_CALL_THISCALL);
  4250. // bool Variant::operator ==(double rhs) const
  4251. engine->RegisterObjectMethod(className, "bool opEquals(double) const", AS_METHODPR(T, operator==, (double) const, bool), AS_CALL_THISCALL);
  4252. // bool Variant::operator ==(const Vector2& rhs) const
  4253. engine->RegisterObjectMethod(className, "bool opEquals(const Vector2&in) const", AS_METHODPR(T, operator==, (const Vector2&) const, bool), AS_CALL_THISCALL);
  4254. // bool Variant::operator ==(const Vector3& rhs) const
  4255. engine->RegisterObjectMethod(className, "bool opEquals(const Vector3&in) const", AS_METHODPR(T, operator==, (const Vector3&) const, bool), AS_CALL_THISCALL);
  4256. // bool Variant::operator ==(const Vector4& rhs) const
  4257. engine->RegisterObjectMethod(className, "bool opEquals(const Vector4&in) const", AS_METHODPR(T, operator==, (const Vector4&) const, bool), AS_CALL_THISCALL);
  4258. // bool Variant::operator ==(const Quaternion& rhs) const
  4259. engine->RegisterObjectMethod(className, "bool opEquals(const Quaternion&in) const", AS_METHODPR(T, operator==, (const Quaternion&) const, bool), AS_CALL_THISCALL);
  4260. // bool Variant::operator ==(const Color& rhs) const
  4261. engine->RegisterObjectMethod(className, "bool opEquals(const Color&in) const", AS_METHODPR(T, operator==, (const Color&) const, bool), AS_CALL_THISCALL);
  4262. // bool Variant::operator ==(const String& rhs) const
  4263. engine->RegisterObjectMethod(className, "bool opEquals(const String&in) const", AS_METHODPR(T, operator==, (const String&) const, bool), AS_CALL_THISCALL);
  4264. // bool Variant::operator ==(const VectorBuffer& rhs) const
  4265. engine->RegisterObjectMethod(className, "bool opEquals(const VectorBuffer&in) const", AS_METHODPR(T, operator==, (const VectorBuffer&) const, bool), AS_CALL_THISCALL);
  4266. // bool Variant::operator ==(const ResourceRef& rhs) const
  4267. engine->RegisterObjectMethod(className, "bool opEquals(const ResourceRef&in) const", AS_METHODPR(T, operator==, (const ResourceRef&) const, bool), AS_CALL_THISCALL);
  4268. // bool Variant::operator ==(const ResourceRefList& rhs) const
  4269. engine->RegisterObjectMethod(className, "bool opEquals(const ResourceRefList&in) const", AS_METHODPR(T, operator==, (const ResourceRefList&) const, bool), AS_CALL_THISCALL);
  4270. // bool Variant::operator ==(const StringVector& rhs) const
  4271. engine->RegisterObjectMethod(className, "bool opEquals(Array<String>@+) const", AS_FUNCTION_OBJFIRST(Variant_bool_operatoreqeq_constspStringVectoramp_template<Variant>), AS_CALL_CDECL_OBJFIRST);
  4272. // bool Variant::operator ==(const VariantMap& rhs) const
  4273. engine->RegisterObjectMethod(className, "bool opEquals(const VariantMap&in) const", AS_METHODPR(T, operator==, (const VariantMap&) const, bool), AS_CALL_THISCALL);
  4274. // bool Variant::operator ==(const Rect& rhs) const
  4275. engine->RegisterObjectMethod(className, "bool opEquals(const Rect&in) const", AS_METHODPR(T, operator==, (const Rect&) const, bool), AS_CALL_THISCALL);
  4276. // bool Variant::operator ==(const IntRect& rhs) const
  4277. engine->RegisterObjectMethod(className, "bool opEquals(const IntRect&in) const", AS_METHODPR(T, operator==, (const IntRect&) const, bool), AS_CALL_THISCALL);
  4278. // bool Variant::operator ==(const IntVector2& rhs) const
  4279. engine->RegisterObjectMethod(className, "bool opEquals(const IntVector2&in) const", AS_METHODPR(T, operator==, (const IntVector2&) const, bool), AS_CALL_THISCALL);
  4280. // bool Variant::operator ==(const IntVector3& rhs) const
  4281. engine->RegisterObjectMethod(className, "bool opEquals(const IntVector3&in) const", AS_METHODPR(T, operator==, (const IntVector3&) const, bool), AS_CALL_THISCALL);
  4282. // bool Variant::operator ==(const StringHash& rhs) const
  4283. engine->RegisterObjectMethod(className, "bool opEquals(const StringHash&in) const", AS_METHODPR(T, operator==, (const StringHash&) const, bool), AS_CALL_THISCALL);
  4284. // bool Variant::operator ==(RefCounted* rhs) const
  4285. engine->RegisterObjectMethod(className, "bool opEquals(RefCounted@+) const", AS_METHODPR(T, operator==, (RefCounted*) const, bool), AS_CALL_THISCALL);
  4286. // bool Variant::operator ==(const Matrix3& rhs) const
  4287. engine->RegisterObjectMethod(className, "bool opEquals(const Matrix3&in) const", AS_METHODPR(T, operator==, (const Matrix3&) const, bool), AS_CALL_THISCALL);
  4288. // bool Variant::operator ==(const Matrix3x4& rhs) const
  4289. engine->RegisterObjectMethod(className, "bool opEquals(const Matrix3x4&in) const", AS_METHODPR(T, operator==, (const Matrix3x4&) const, bool), AS_CALL_THISCALL);
  4290. // bool Variant::operator ==(const Matrix4& rhs) const
  4291. engine->RegisterObjectMethod(className, "bool opEquals(const Matrix4&in) const", AS_METHODPR(T, operator==, (const Matrix4&) const, bool), AS_CALL_THISCALL);
  4292. // String Variant::ToString() const
  4293. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  4294. // template <class T> T Variant::Get() const
  4295. // Not registered because template
  4296. // template <> int Variant::Get() const
  4297. // Not registered because template
  4298. // template <> unsigned Variant::Get() const
  4299. // Not registered because template
  4300. // template <> long long Variant::Get() const
  4301. // Not registered because template
  4302. // template <> unsigned long long Variant::Get() const
  4303. // Not registered because template
  4304. // template <> StringHash Variant::Get() const
  4305. // Not registered because template
  4306. // template <> bool Variant::Get() const
  4307. // Not registered because template
  4308. // template <> float Variant::Get() const
  4309. // Not registered because template
  4310. // template <> double Variant::Get() const
  4311. // Not registered because template
  4312. // template <> const Vector2& Variant::Get() const
  4313. // Not registered because template
  4314. // template <> const Vector3& Variant::Get() const
  4315. // Not registered because template
  4316. // template <> const Vector4& Variant::Get() const
  4317. // Not registered because template
  4318. // template <> const Quaternion& Variant::Get() const
  4319. // Not registered because template
  4320. // template <> const Color& Variant::Get() const
  4321. // Not registered because template
  4322. // template <> const String& Variant::Get() const
  4323. // Not registered because template
  4324. // template <> const Rect& Variant::Get() const
  4325. // Not registered because template
  4326. // template <> const IntRect& Variant::Get() const
  4327. // Not registered because template
  4328. // template <> const IntVector2& Variant::Get() const
  4329. // Not registered because template
  4330. // template <> const IntVector3& Variant::Get() const
  4331. // Not registered because template
  4332. // template <> const PODVector<unsigned char>& Variant::Get() const
  4333. // Not registered because template
  4334. // template <> void* Variant::Get() const
  4335. // Not registered because template
  4336. // template <> RefCounted* Variant::Get() const
  4337. // Not registered because template
  4338. // template <> const Matrix3& Variant::Get() const
  4339. // Not registered because template
  4340. // template <> const Matrix3x4& Variant::Get() const
  4341. // Not registered because template
  4342. // template <> const Matrix4& Variant::Get() const
  4343. // Not registered because template
  4344. // template <> ResourceRef Variant::Get() const
  4345. // Not registered because template
  4346. // template <> ResourceRefList Variant::Get() const
  4347. // Not registered because template
  4348. // template <> VariantVector Variant::Get() const
  4349. // Not registered because template
  4350. // template <> StringVector Variant::Get() const
  4351. // Not registered because template
  4352. // template <> VariantMap Variant::Get() const
  4353. // Not registered because template
  4354. // template <> Vector2 Variant::Get() const
  4355. // Not registered because template
  4356. // template <> Vector3 Variant::Get() const
  4357. // Not registered because template
  4358. // template <> Vector4 Variant::Get() const
  4359. // Not registered because template
  4360. // template <> Quaternion Variant::Get() const
  4361. // Not registered because template
  4362. // template <> Color Variant::Get() const
  4363. // Not registered because template
  4364. // template <> String Variant::Get() const
  4365. // Not registered because template
  4366. // template <> Rect Variant::Get() const
  4367. // Not registered because template
  4368. // template <> IntRect Variant::Get() const
  4369. // Not registered because template
  4370. // template <> IntVector2 Variant::Get() const
  4371. // Not registered because template
  4372. // template <> IntVector3 Variant::Get() const
  4373. // Not registered because template
  4374. // template <> PODVector<unsigned char> Variant::Get() const
  4375. // Not registered because template
  4376. // template <> Matrix3 Variant::Get() const
  4377. // Not registered because template
  4378. // template <> Matrix3x4 Variant::Get() const
  4379. // Not registered because template
  4380. // template <> Matrix4 Variant::Get() const
  4381. // Not registered because template
  4382. // template <class T> T Variant::GetCustom() const
  4383. // Not registered because template
  4384. // template <class T> T* Variant::GetCustomPtr()
  4385. // Not registered because template
  4386. // template <class T> bool Variant::IsCustomType() const
  4387. // Not registered because template
  4388. // template <class T> Variant& Variant::operator =(const CustomVariantValueImpl<T>& value)
  4389. // Not registered because template
  4390. // template <class T> void Variant::SetCustom(const T& value)
  4391. // Not registered because template
  4392. // static VariantType Variant::GetTypeFromName(const char* typeName)
  4393. // Error: type "const char*" can not automatically bind
  4394. // static String Variant::GetTypeName(VariantType type)
  4395. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("String GetTypeName(VariantType)", AS_FUNCTIONPR(T::GetTypeName, (VariantType), String), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  4396. // static VariantType Variant::GetTypeFromName(const String& typeName)
  4397. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("VariantType GetTypeFromName(const String&in)", AS_FUNCTIONPR(T::GetTypeFromName, (const String&), VariantType), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  4398. // static const PODVector<unsigned char> Variant::emptyBuffer
  4399. // Error: type "const PODVector<unsigned char>" can not automatically bind
  4400. // static const VariantVector Variant::emptyVariantVector
  4401. // Error: type "const VariantVector" can not automatically bind
  4402. // static const StringVector Variant::emptyStringVector
  4403. // Error: type "const StringVector" can not automatically bind
  4404. // static const Variant Variant::EMPTY
  4405. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Variant EMPTY", (void*)&T::EMPTY);engine->SetDefaultNamespace("");
  4406. // static const ResourceRef Variant::emptyResourceRef
  4407. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const ResourceRef emptyResourceRef", (void*)&T::emptyResourceRef);engine->SetDefaultNamespace("");
  4408. // static const ResourceRefList Variant::emptyResourceRefList
  4409. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const ResourceRefList emptyResourceRefList", (void*)&T::emptyResourceRefList);engine->SetDefaultNamespace("");
  4410. // static const VariantMap Variant::emptyVariantMap
  4411. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const VariantMap emptyVariantMap", (void*)&T::emptyVariantMap);engine->SetDefaultNamespace("");
  4412. #ifdef REGISTER_MEMBERS_MANUAL_PART_Variant
  4413. REGISTER_MEMBERS_MANUAL_PART_Variant();
  4414. #endif
  4415. }
  4416. // class Vector2 | File: ../Math/Vector2.h
  4417. template <class T> void RegisterMembers_Vector2(asIScriptEngine* engine, const char* className)
  4418. {
  4419. // const float* Vector2::Data() const
  4420. // Error: type "const float*" can not automatically bind
  4421. // bool Vector2::operator !=(const Vector2& rhs) const
  4422. // Only operator == is needed
  4423. // Vector2 Vector2::Abs() const
  4424. engine->RegisterObjectMethod(className, "Vector2 Abs() const", AS_METHODPR(T, Abs, () const, Vector2), AS_CALL_THISCALL);
  4425. // float Vector2::AbsDotProduct(const Vector2& rhs) const
  4426. engine->RegisterObjectMethod(className, "float AbsDotProduct(const Vector2&in) const", AS_METHODPR(T, AbsDotProduct, (const Vector2&) const, float), AS_CALL_THISCALL);
  4427. // float Vector2::Angle(const Vector2& rhs) const
  4428. engine->RegisterObjectMethod(className, "float Angle(const Vector2&in) const", AS_METHODPR(T, Angle, (const Vector2&) const, float), AS_CALL_THISCALL);
  4429. // float Vector2::DotProduct(const Vector2& rhs) const
  4430. engine->RegisterObjectMethod(className, "float DotProduct(const Vector2&in) const", AS_METHODPR(T, DotProduct, (const Vector2&) const, float), AS_CALL_THISCALL);
  4431. // bool Vector2::Equals(const Vector2& rhs) const
  4432. engine->RegisterObjectMethod(className, "bool Equals(const Vector2&in) const", AS_METHODPR(T, Equals, (const Vector2&) const, bool), AS_CALL_THISCALL);
  4433. // bool Vector2::IsInf() const
  4434. engine->RegisterObjectMethod(className, "bool IsInf() const", AS_METHODPR(T, IsInf, () const, bool), AS_CALL_THISCALL);
  4435. // bool Vector2::IsNaN() const
  4436. engine->RegisterObjectMethod(className, "bool IsNaN() const", AS_METHODPR(T, IsNaN, () const, bool), AS_CALL_THISCALL);
  4437. // float Vector2::Length() const
  4438. engine->RegisterObjectMethod(className, "float Length() const", AS_METHODPR(T, Length, () const, float), AS_CALL_THISCALL);
  4439. engine->RegisterObjectMethod(className, "float get_length() const", AS_METHODPR(T, Length, () const, float), AS_CALL_THISCALL);
  4440. // float Vector2::LengthSquared() const
  4441. engine->RegisterObjectMethod(className, "float LengthSquared() const", AS_METHODPR(T, LengthSquared, () const, float), AS_CALL_THISCALL);
  4442. engine->RegisterObjectMethod(className, "float get_lengthSquared() const", AS_METHODPR(T, LengthSquared, () const, float), AS_CALL_THISCALL);
  4443. // Vector2 Vector2::Lerp(const Vector2& rhs, float t) const
  4444. engine->RegisterObjectMethod(className, "Vector2 Lerp(const Vector2&in, float) const", AS_METHODPR(T, Lerp, (const Vector2&, float) const, Vector2), AS_CALL_THISCALL);
  4445. // void Vector2::Normalize()
  4446. engine->RegisterObjectMethod(className, "void Normalize()", AS_METHODPR(T, Normalize, (), void), AS_CALL_THISCALL);
  4447. // Vector2 Vector2::Normalized() const
  4448. engine->RegisterObjectMethod(className, "Vector2 Normalized() const", AS_METHODPR(T, Normalized, () const, Vector2), AS_CALL_THISCALL);
  4449. // Vector2 Vector2::NormalizedOrDefault(const Vector2& defaultValue = Vector2::ZERO, float eps = M_LARGE_EPSILON) const
  4450. engine->RegisterObjectMethod(className, "Vector2 NormalizedOrDefault(const Vector2&in = Vector2::ZERO, float = M_LARGE_EPSILON) const", AS_METHODPR(T, NormalizedOrDefault, (const Vector2&, float) const, Vector2), AS_CALL_THISCALL);
  4451. // Vector2 Vector2::operator *(float rhs) const
  4452. engine->RegisterObjectMethod(className, "Vector2 opMul(float) const", AS_METHODPR(T, operator*, (float) const, Vector2), AS_CALL_THISCALL);
  4453. // Vector2 Vector2::operator *(const Vector2& rhs) const
  4454. engine->RegisterObjectMethod(className, "Vector2 opMul(const Vector2&in) const", AS_METHODPR(T, operator*, (const Vector2&) const, Vector2), AS_CALL_THISCALL);
  4455. // Vector2& Vector2::operator *=(float rhs)
  4456. engine->RegisterObjectMethod(className, "Vector2& opMulAssign(float)", AS_METHODPR(T, operator*=, (float), Vector2&), AS_CALL_THISCALL);
  4457. // Vector2& Vector2::operator *=(const Vector2& rhs)
  4458. engine->RegisterObjectMethod(className, "Vector2& opMulAssign(const Vector2&in)", AS_METHODPR(T, operator*=, (const Vector2&), Vector2&), AS_CALL_THISCALL);
  4459. // Vector2 Vector2::operator +(const Vector2& rhs) const
  4460. engine->RegisterObjectMethod(className, "Vector2 opAdd(const Vector2&in) const", AS_METHODPR(T, operator+, (const Vector2&) const, Vector2), AS_CALL_THISCALL);
  4461. // Vector2& Vector2::operator +=(const Vector2& rhs)
  4462. engine->RegisterObjectMethod(className, "Vector2& opAddAssign(const Vector2&in)", AS_METHODPR(T, operator+=, (const Vector2&), Vector2&), AS_CALL_THISCALL);
  4463. // Vector2 Vector2::operator -() const
  4464. engine->RegisterObjectMethod(className, "Vector2 opNeg() const", AS_METHODPR(T, operator-, () const, Vector2), AS_CALL_THISCALL);
  4465. // Vector2 Vector2::operator -(const Vector2& rhs) const
  4466. engine->RegisterObjectMethod(className, "Vector2 opSub(const Vector2&in) const", AS_METHODPR(T, operator-, (const Vector2&) const, Vector2), AS_CALL_THISCALL);
  4467. // Vector2& Vector2::operator -=(const Vector2& rhs)
  4468. engine->RegisterObjectMethod(className, "Vector2& opSubAssign(const Vector2&in)", AS_METHODPR(T, operator-=, (const Vector2&), Vector2&), AS_CALL_THISCALL);
  4469. // Vector2 Vector2::operator /(float rhs) const
  4470. engine->RegisterObjectMethod(className, "Vector2 opDiv(float) const", AS_METHODPR(T, operator/, (float) const, Vector2), AS_CALL_THISCALL);
  4471. // Vector2 Vector2::operator /(const Vector2& rhs) const
  4472. engine->RegisterObjectMethod(className, "Vector2 opDiv(const Vector2&in) const", AS_METHODPR(T, operator/, (const Vector2&) const, Vector2), AS_CALL_THISCALL);
  4473. // Vector2& Vector2::operator /=(float rhs)
  4474. engine->RegisterObjectMethod(className, "Vector2& opDivAssign(float)", AS_METHODPR(T, operator/=, (float), Vector2&), AS_CALL_THISCALL);
  4475. // Vector2& Vector2::operator /=(const Vector2& rhs)
  4476. engine->RegisterObjectMethod(className, "Vector2& opDivAssign(const Vector2&in)", AS_METHODPR(T, operator/=, (const Vector2&), Vector2&), AS_CALL_THISCALL);
  4477. // Vector2& Vector2::operator =(const Vector2& rhs) noexcept = default
  4478. engine->RegisterObjectMethod(className, "Vector2& opAssign(const Vector2&in)", AS_METHODPR(T, operator=, (const Vector2&), Vector2&), AS_CALL_THISCALL);
  4479. // bool Vector2::operator ==(const Vector2& rhs) const
  4480. engine->RegisterObjectMethod(className, "bool opEquals(const Vector2&in) const", AS_METHODPR(T, operator==, (const Vector2&) const, bool), AS_CALL_THISCALL);
  4481. // float Vector2::ProjectOntoAxis(const Vector2& axis) const
  4482. engine->RegisterObjectMethod(className, "float ProjectOntoAxis(const Vector2&in) const", AS_METHODPR(T, ProjectOntoAxis, (const Vector2&) const, float), AS_CALL_THISCALL);
  4483. // Vector2 Vector2::ReNormalized(float minLength, float maxLength, const Vector2& defaultValue = Vector2::ZERO, float eps = M_LARGE_EPSILON) const
  4484. engine->RegisterObjectMethod(className, "Vector2 ReNormalized(float, float, const Vector2&in = Vector2::ZERO, float = M_LARGE_EPSILON) const", AS_METHODPR(T, ReNormalized, (float, float, const Vector2&, float) const, Vector2), AS_CALL_THISCALL);
  4485. // String Vector2::ToString() const
  4486. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  4487. // float Vector2::x_
  4488. engine->RegisterObjectProperty(className, "float x", offsetof(T, x_));
  4489. // float Vector2::y_
  4490. engine->RegisterObjectProperty(className, "float y", offsetof(T, y_));
  4491. // static const Vector2 Vector2::ZERO
  4492. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector2 ZERO", (void*)&T::ZERO);engine->SetDefaultNamespace("");
  4493. // static const Vector2 Vector2::LEFT
  4494. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector2 LEFT", (void*)&T::LEFT);engine->SetDefaultNamespace("");
  4495. // static const Vector2 Vector2::RIGHT
  4496. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector2 RIGHT", (void*)&T::RIGHT);engine->SetDefaultNamespace("");
  4497. // static const Vector2 Vector2::UP
  4498. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector2 UP", (void*)&T::UP);engine->SetDefaultNamespace("");
  4499. // static const Vector2 Vector2::DOWN
  4500. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector2 DOWN", (void*)&T::DOWN);engine->SetDefaultNamespace("");
  4501. // static const Vector2 Vector2::ONE
  4502. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector2 ONE", (void*)&T::ONE);engine->SetDefaultNamespace("");
  4503. #ifdef REGISTER_MEMBERS_MANUAL_PART_Vector2
  4504. REGISTER_MEMBERS_MANUAL_PART_Vector2();
  4505. #endif
  4506. }
  4507. // class Vector3 | File: ../Math/Vector3.h
  4508. template <class T> void RegisterMembers_Vector3(asIScriptEngine* engine, const char* className)
  4509. {
  4510. // const float* Vector3::Data() const
  4511. // Error: type "const float*" can not automatically bind
  4512. // bool Vector3::operator !=(const Vector3& rhs) const
  4513. // Only operator == is needed
  4514. // Vector3 Vector3::Abs() const
  4515. engine->RegisterObjectMethod(className, "Vector3 Abs() const", AS_METHODPR(T, Abs, () const, Vector3), AS_CALL_THISCALL);
  4516. // float Vector3::AbsDotProduct(const Vector3& rhs) const
  4517. engine->RegisterObjectMethod(className, "float AbsDotProduct(const Vector3&in) const", AS_METHODPR(T, AbsDotProduct, (const Vector3&) const, float), AS_CALL_THISCALL);
  4518. // float Vector3::Angle(const Vector3& rhs) const
  4519. engine->RegisterObjectMethod(className, "float Angle(const Vector3&in) const", AS_METHODPR(T, Angle, (const Vector3&) const, float), AS_CALL_THISCALL);
  4520. // Vector3 Vector3::CrossProduct(const Vector3& rhs) const
  4521. engine->RegisterObjectMethod(className, "Vector3 CrossProduct(const Vector3&in) const", AS_METHODPR(T, CrossProduct, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  4522. // float Vector3::DistanceToPlane(const Vector3& origin, const Vector3& normal) const
  4523. engine->RegisterObjectMethod(className, "float DistanceToPlane(const Vector3&in, const Vector3&in) const", AS_METHODPR(T, DistanceToPlane, (const Vector3&, const Vector3&) const, float), AS_CALL_THISCALL);
  4524. // float Vector3::DistanceToPoint(const Vector3& point) const
  4525. engine->RegisterObjectMethod(className, "float DistanceToPoint(const Vector3&in) const", AS_METHODPR(T, DistanceToPoint, (const Vector3&) const, float), AS_CALL_THISCALL);
  4526. // float Vector3::DotProduct(const Vector3& rhs) const
  4527. engine->RegisterObjectMethod(className, "float DotProduct(const Vector3&in) const", AS_METHODPR(T, DotProduct, (const Vector3&) const, float), AS_CALL_THISCALL);
  4528. // bool Vector3::Equals(const Vector3& rhs) const
  4529. engine->RegisterObjectMethod(className, "bool Equals(const Vector3&in) const", AS_METHODPR(T, Equals, (const Vector3&) const, bool), AS_CALL_THISCALL);
  4530. // bool Vector3::IsInf() const
  4531. engine->RegisterObjectMethod(className, "bool IsInf() const", AS_METHODPR(T, IsInf, () const, bool), AS_CALL_THISCALL);
  4532. // bool Vector3::IsNaN() const
  4533. engine->RegisterObjectMethod(className, "bool IsNaN() const", AS_METHODPR(T, IsNaN, () const, bool), AS_CALL_THISCALL);
  4534. // float Vector3::Length() const
  4535. engine->RegisterObjectMethod(className, "float Length() const", AS_METHODPR(T, Length, () const, float), AS_CALL_THISCALL);
  4536. engine->RegisterObjectMethod(className, "float get_length() const", AS_METHODPR(T, Length, () const, float), AS_CALL_THISCALL);
  4537. // float Vector3::LengthSquared() const
  4538. engine->RegisterObjectMethod(className, "float LengthSquared() const", AS_METHODPR(T, LengthSquared, () const, float), AS_CALL_THISCALL);
  4539. engine->RegisterObjectMethod(className, "float get_lengthSquared() const", AS_METHODPR(T, LengthSquared, () const, float), AS_CALL_THISCALL);
  4540. // Vector3 Vector3::Lerp(const Vector3& rhs, float t) const
  4541. engine->RegisterObjectMethod(className, "Vector3 Lerp(const Vector3&in, float) const", AS_METHODPR(T, Lerp, (const Vector3&, float) const, Vector3), AS_CALL_THISCALL);
  4542. // void Vector3::Normalize()
  4543. engine->RegisterObjectMethod(className, "void Normalize()", AS_METHODPR(T, Normalize, (), void), AS_CALL_THISCALL);
  4544. // Vector3 Vector3::Normalized() const
  4545. engine->RegisterObjectMethod(className, "Vector3 Normalized() const", AS_METHODPR(T, Normalized, () const, Vector3), AS_CALL_THISCALL);
  4546. // Vector3 Vector3::NormalizedOrDefault(const Vector3& defaultValue = Vector3::ZERO, float eps = M_LARGE_EPSILON) const
  4547. engine->RegisterObjectMethod(className, "Vector3 NormalizedOrDefault(const Vector3&in = Vector3::ZERO, float = M_LARGE_EPSILON) const", AS_METHODPR(T, NormalizedOrDefault, (const Vector3&, float) const, Vector3), AS_CALL_THISCALL);
  4548. // Vector3 Vector3::operator *(float rhs) const
  4549. engine->RegisterObjectMethod(className, "Vector3 opMul(float) const", AS_METHODPR(T, operator*, (float) const, Vector3), AS_CALL_THISCALL);
  4550. // Vector3 Vector3::operator *(const Vector3& rhs) const
  4551. engine->RegisterObjectMethod(className, "Vector3 opMul(const Vector3&in) const", AS_METHODPR(T, operator*, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  4552. // Vector3& Vector3::operator *=(float rhs)
  4553. engine->RegisterObjectMethod(className, "Vector3& opMulAssign(float)", AS_METHODPR(T, operator*=, (float), Vector3&), AS_CALL_THISCALL);
  4554. // Vector3& Vector3::operator *=(const Vector3& rhs)
  4555. engine->RegisterObjectMethod(className, "Vector3& opMulAssign(const Vector3&in)", AS_METHODPR(T, operator*=, (const Vector3&), Vector3&), AS_CALL_THISCALL);
  4556. // Vector3 Vector3::operator +(const Vector3& rhs) const
  4557. engine->RegisterObjectMethod(className, "Vector3 opAdd(const Vector3&in) const", AS_METHODPR(T, operator+, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  4558. // Vector3& Vector3::operator +=(const Vector3& rhs)
  4559. engine->RegisterObjectMethod(className, "Vector3& opAddAssign(const Vector3&in)", AS_METHODPR(T, operator+=, (const Vector3&), Vector3&), AS_CALL_THISCALL);
  4560. // Vector3 Vector3::operator -() const
  4561. engine->RegisterObjectMethod(className, "Vector3 opNeg() const", AS_METHODPR(T, operator-, () const, Vector3), AS_CALL_THISCALL);
  4562. // Vector3 Vector3::operator -(const Vector3& rhs) const
  4563. engine->RegisterObjectMethod(className, "Vector3 opSub(const Vector3&in) const", AS_METHODPR(T, operator-, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  4564. // Vector3& Vector3::operator -=(const Vector3& rhs)
  4565. engine->RegisterObjectMethod(className, "Vector3& opSubAssign(const Vector3&in)", AS_METHODPR(T, operator-=, (const Vector3&), Vector3&), AS_CALL_THISCALL);
  4566. // Vector3 Vector3::operator /(float rhs) const
  4567. engine->RegisterObjectMethod(className, "Vector3 opDiv(float) const", AS_METHODPR(T, operator/, (float) const, Vector3), AS_CALL_THISCALL);
  4568. // Vector3 Vector3::operator /(const Vector3& rhs) const
  4569. engine->RegisterObjectMethod(className, "Vector3 opDiv(const Vector3&in) const", AS_METHODPR(T, operator/, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  4570. // Vector3& Vector3::operator /=(float rhs)
  4571. engine->RegisterObjectMethod(className, "Vector3& opDivAssign(float)", AS_METHODPR(T, operator/=, (float), Vector3&), AS_CALL_THISCALL);
  4572. // Vector3& Vector3::operator /=(const Vector3& rhs)
  4573. engine->RegisterObjectMethod(className, "Vector3& opDivAssign(const Vector3&in)", AS_METHODPR(T, operator/=, (const Vector3&), Vector3&), AS_CALL_THISCALL);
  4574. // Vector3& Vector3::operator =(const Vector3& rhs) noexcept = default
  4575. engine->RegisterObjectMethod(className, "Vector3& opAssign(const Vector3&in)", AS_METHODPR(T, operator=, (const Vector3&), Vector3&), AS_CALL_THISCALL);
  4576. // bool Vector3::operator ==(const Vector3& rhs) const
  4577. engine->RegisterObjectMethod(className, "bool opEquals(const Vector3&in) const", AS_METHODPR(T, operator==, (const Vector3&) const, bool), AS_CALL_THISCALL);
  4578. // Vector3 Vector3::Orthogonalize(const Vector3& axis) const
  4579. engine->RegisterObjectMethod(className, "Vector3 Orthogonalize(const Vector3&in) const", AS_METHODPR(T, Orthogonalize, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  4580. // float Vector3::ProjectOntoAxis(const Vector3& axis) const
  4581. engine->RegisterObjectMethod(className, "float ProjectOntoAxis(const Vector3&in) const", AS_METHODPR(T, ProjectOntoAxis, (const Vector3&) const, float), AS_CALL_THISCALL);
  4582. // Vector3 Vector3::ProjectOntoLine(const Vector3& from, const Vector3& to, bool clamped = false) const
  4583. engine->RegisterObjectMethod(className, "Vector3 ProjectOntoLine(const Vector3&in, const Vector3&in, bool = false) const", AS_METHODPR(T, ProjectOntoLine, (const Vector3&, const Vector3&, bool) const, Vector3), AS_CALL_THISCALL);
  4584. // Vector3 Vector3::ProjectOntoPlane(const Vector3& origin, const Vector3& normal) const
  4585. engine->RegisterObjectMethod(className, "Vector3 ProjectOntoPlane(const Vector3&in, const Vector3&in) const", AS_METHODPR(T, ProjectOntoPlane, (const Vector3&, const Vector3&) const, Vector3), AS_CALL_THISCALL);
  4586. // Vector3 Vector3::ReNormalized(float minLength, float maxLength, const Vector3& defaultValue = Vector3::ZERO, float eps = M_LARGE_EPSILON) const
  4587. engine->RegisterObjectMethod(className, "Vector3 ReNormalized(float, float, const Vector3&in = Vector3::ZERO, float = M_LARGE_EPSILON) const", AS_METHODPR(T, ReNormalized, (float, float, const Vector3&, float) const, Vector3), AS_CALL_THISCALL);
  4588. // unsigned Vector3::ToHash() const
  4589. engine->RegisterObjectMethod(className, "uint ToHash() const", AS_METHODPR(T, ToHash, () const, unsigned), AS_CALL_THISCALL);
  4590. // String Vector3::ToString() const
  4591. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  4592. // float Vector3::x_
  4593. engine->RegisterObjectProperty(className, "float x", offsetof(T, x_));
  4594. // float Vector3::y_
  4595. engine->RegisterObjectProperty(className, "float y", offsetof(T, y_));
  4596. // float Vector3::z_
  4597. engine->RegisterObjectProperty(className, "float z", offsetof(T, z_));
  4598. // static const Vector3 Vector3::ZERO
  4599. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector3 ZERO", (void*)&T::ZERO);engine->SetDefaultNamespace("");
  4600. // static const Vector3 Vector3::LEFT
  4601. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector3 LEFT", (void*)&T::LEFT);engine->SetDefaultNamespace("");
  4602. // static const Vector3 Vector3::RIGHT
  4603. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector3 RIGHT", (void*)&T::RIGHT);engine->SetDefaultNamespace("");
  4604. // static const Vector3 Vector3::UP
  4605. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector3 UP", (void*)&T::UP);engine->SetDefaultNamespace("");
  4606. // static const Vector3 Vector3::DOWN
  4607. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector3 DOWN", (void*)&T::DOWN);engine->SetDefaultNamespace("");
  4608. // static const Vector3 Vector3::FORWARD
  4609. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector3 FORWARD", (void*)&T::FORWARD);engine->SetDefaultNamespace("");
  4610. // static const Vector3 Vector3::BACK
  4611. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector3 BACK", (void*)&T::BACK);engine->SetDefaultNamespace("");
  4612. // static const Vector3 Vector3::ONE
  4613. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector3 ONE", (void*)&T::ONE);engine->SetDefaultNamespace("");
  4614. #ifdef REGISTER_MEMBERS_MANUAL_PART_Vector3
  4615. REGISTER_MEMBERS_MANUAL_PART_Vector3();
  4616. #endif
  4617. }
  4618. // class Vector4 | File: ../Math/Vector4.h
  4619. template <class T> void RegisterMembers_Vector4(asIScriptEngine* engine, const char* className)
  4620. {
  4621. // const float* Vector4::Data() const
  4622. // Error: type "const float*" can not automatically bind
  4623. // bool Vector4::operator !=(const Vector4& rhs) const
  4624. // Only operator == is needed
  4625. // Vector4 Vector4::Abs() const
  4626. engine->RegisterObjectMethod(className, "Vector4 Abs() const", AS_METHODPR(T, Abs, () const, Vector4), AS_CALL_THISCALL);
  4627. // float Vector4::AbsDotProduct(const Vector4& rhs) const
  4628. engine->RegisterObjectMethod(className, "float AbsDotProduct(const Vector4&in) const", AS_METHODPR(T, AbsDotProduct, (const Vector4&) const, float), AS_CALL_THISCALL);
  4629. // float Vector4::DotProduct(const Vector4& rhs) const
  4630. engine->RegisterObjectMethod(className, "float DotProduct(const Vector4&in) const", AS_METHODPR(T, DotProduct, (const Vector4&) const, float), AS_CALL_THISCALL);
  4631. // bool Vector4::Equals(const Vector4& rhs) const
  4632. engine->RegisterObjectMethod(className, "bool Equals(const Vector4&in) const", AS_METHODPR(T, Equals, (const Vector4&) const, bool), AS_CALL_THISCALL);
  4633. // bool Vector4::IsInf() const
  4634. engine->RegisterObjectMethod(className, "bool IsInf() const", AS_METHODPR(T, IsInf, () const, bool), AS_CALL_THISCALL);
  4635. // bool Vector4::IsNaN() const
  4636. engine->RegisterObjectMethod(className, "bool IsNaN() const", AS_METHODPR(T, IsNaN, () const, bool), AS_CALL_THISCALL);
  4637. // Vector4 Vector4::Lerp(const Vector4& rhs, float t) const
  4638. engine->RegisterObjectMethod(className, "Vector4 Lerp(const Vector4&in, float) const", AS_METHODPR(T, Lerp, (const Vector4&, float) const, Vector4), AS_CALL_THISCALL);
  4639. // explicit Vector4::operator Vector2() const
  4640. engine->RegisterObjectMethod(className, "Vector2 opConv() const", AS_METHODPR(T, operator Vector2, () const, Vector2), AS_CALL_THISCALL);
  4641. // explicit Vector4::operator Vector3() const
  4642. engine->RegisterObjectMethod(className, "Vector3 opConv() const", AS_METHODPR(T, operator Vector3, () const, Vector3), AS_CALL_THISCALL);
  4643. // Vector4 Vector4::operator *(float rhs) const
  4644. engine->RegisterObjectMethod(className, "Vector4 opMul(float) const", AS_METHODPR(T, operator*, (float) const, Vector4), AS_CALL_THISCALL);
  4645. // Vector4 Vector4::operator *(const Vector4& rhs) const
  4646. engine->RegisterObjectMethod(className, "Vector4 opMul(const Vector4&in) const", AS_METHODPR(T, operator*, (const Vector4&) const, Vector4), AS_CALL_THISCALL);
  4647. // Vector4& Vector4::operator *=(float rhs)
  4648. engine->RegisterObjectMethod(className, "Vector4& opMulAssign(float)", AS_METHODPR(T, operator*=, (float), Vector4&), AS_CALL_THISCALL);
  4649. // Vector4& Vector4::operator *=(const Vector4& rhs)
  4650. engine->RegisterObjectMethod(className, "Vector4& opMulAssign(const Vector4&in)", AS_METHODPR(T, operator*=, (const Vector4&), Vector4&), AS_CALL_THISCALL);
  4651. // Vector4 Vector4::operator +(const Vector4& rhs) const
  4652. engine->RegisterObjectMethod(className, "Vector4 opAdd(const Vector4&in) const", AS_METHODPR(T, operator+, (const Vector4&) const, Vector4), AS_CALL_THISCALL);
  4653. // Vector4& Vector4::operator +=(const Vector4& rhs)
  4654. engine->RegisterObjectMethod(className, "Vector4& opAddAssign(const Vector4&in)", AS_METHODPR(T, operator+=, (const Vector4&), Vector4&), AS_CALL_THISCALL);
  4655. // Vector4 Vector4::operator -() const
  4656. engine->RegisterObjectMethod(className, "Vector4 opNeg() const", AS_METHODPR(T, operator-, () const, Vector4), AS_CALL_THISCALL);
  4657. // Vector4 Vector4::operator -(const Vector4& rhs) const
  4658. engine->RegisterObjectMethod(className, "Vector4 opSub(const Vector4&in) const", AS_METHODPR(T, operator-, (const Vector4&) const, Vector4), AS_CALL_THISCALL);
  4659. // Vector4& Vector4::operator -=(const Vector4& rhs)
  4660. engine->RegisterObjectMethod(className, "Vector4& opSubAssign(const Vector4&in)", AS_METHODPR(T, operator-=, (const Vector4&), Vector4&), AS_CALL_THISCALL);
  4661. // Vector4 Vector4::operator /(float rhs) const
  4662. engine->RegisterObjectMethod(className, "Vector4 opDiv(float) const", AS_METHODPR(T, operator/, (float) const, Vector4), AS_CALL_THISCALL);
  4663. // Vector4 Vector4::operator /(const Vector4& rhs) const
  4664. engine->RegisterObjectMethod(className, "Vector4 opDiv(const Vector4&in) const", AS_METHODPR(T, operator/, (const Vector4&) const, Vector4), AS_CALL_THISCALL);
  4665. // Vector4& Vector4::operator /=(float rhs)
  4666. engine->RegisterObjectMethod(className, "Vector4& opDivAssign(float)", AS_METHODPR(T, operator/=, (float), Vector4&), AS_CALL_THISCALL);
  4667. // Vector4& Vector4::operator /=(const Vector4& rhs)
  4668. engine->RegisterObjectMethod(className, "Vector4& opDivAssign(const Vector4&in)", AS_METHODPR(T, operator/=, (const Vector4&), Vector4&), AS_CALL_THISCALL);
  4669. // Vector4& Vector4::operator =(const Vector4& rhs) noexcept = default
  4670. engine->RegisterObjectMethod(className, "Vector4& opAssign(const Vector4&in)", AS_METHODPR(T, operator=, (const Vector4&), Vector4&), AS_CALL_THISCALL);
  4671. // bool Vector4::operator ==(const Vector4& rhs) const
  4672. engine->RegisterObjectMethod(className, "bool opEquals(const Vector4&in) const", AS_METHODPR(T, operator==, (const Vector4&) const, bool), AS_CALL_THISCALL);
  4673. // float Vector4::operator [](unsigned index) const
  4674. engine->RegisterObjectMethod(className, "float opIndex(uint) const", AS_METHODPR(T, operator[], (unsigned) const, float), AS_CALL_THISCALL);
  4675. // float& Vector4::operator [](unsigned index)
  4676. engine->RegisterObjectMethod(className, "float& opIndex(uint)", AS_METHODPR(T, operator[], (unsigned), float&), AS_CALL_THISCALL);
  4677. // float Vector4::ProjectOntoAxis(const Vector3& axis) const
  4678. engine->RegisterObjectMethod(className, "float ProjectOntoAxis(const Vector3&in) const", AS_METHODPR(T, ProjectOntoAxis, (const Vector3&) const, float), AS_CALL_THISCALL);
  4679. // unsigned Vector4::ToHash() const
  4680. engine->RegisterObjectMethod(className, "uint ToHash() const", AS_METHODPR(T, ToHash, () const, unsigned), AS_CALL_THISCALL);
  4681. // String Vector4::ToString() const
  4682. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  4683. // float Vector4::x_
  4684. engine->RegisterObjectProperty(className, "float x", offsetof(T, x_));
  4685. // float Vector4::y_
  4686. engine->RegisterObjectProperty(className, "float y", offsetof(T, y_));
  4687. // float Vector4::z_
  4688. engine->RegisterObjectProperty(className, "float z", offsetof(T, z_));
  4689. // float Vector4::w_
  4690. engine->RegisterObjectProperty(className, "float w", offsetof(T, w_));
  4691. // static const Vector4 Vector4::ZERO
  4692. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector4 ZERO", (void*)&T::ZERO);engine->SetDefaultNamespace("");
  4693. // static const Vector4 Vector4::ONE
  4694. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const Vector4 ONE", (void*)&T::ONE);engine->SetDefaultNamespace("");
  4695. #ifdef REGISTER_MEMBERS_MANUAL_PART_Vector4
  4696. REGISTER_MEMBERS_MANUAL_PART_Vector4();
  4697. #endif
  4698. }
  4699. // class VectorBase | File: ../Container/VectorBase.h
  4700. template <class T> void RegisterMembers_VectorBase(asIScriptEngine* engine, const char* className)
  4701. {
  4702. // void VectorBase::Swap(VectorBase& rhs)
  4703. engine->RegisterObjectMethod(className, "void Swap(VectorBase&)", AS_METHODPR(T, Swap, (VectorBase&), void), AS_CALL_THISCALL);
  4704. #ifdef REGISTER_MEMBERS_MANUAL_PART_VectorBase
  4705. REGISTER_MEMBERS_MANUAL_PART_VectorBase();
  4706. #endif
  4707. }
  4708. // struct VertexBufferDesc | File: ../Graphics/Model.h
  4709. template <class T> void RegisterMembers_VertexBufferDesc(asIScriptEngine* engine, const char* className)
  4710. {
  4711. // PODVector<VertexElement> VertexBufferDesc::vertexElements_
  4712. // Error: type "PODVector<VertexElement>" can not automatically bind
  4713. // SharedArrayPtr<unsigned char> VertexBufferDesc::data_
  4714. // Error: type "SharedArrayPtr<unsigned char>" can not automatically bind
  4715. // unsigned VertexBufferDesc::vertexCount_
  4716. engine->RegisterObjectProperty(className, "uint vertexCount", offsetof(T, vertexCount_));
  4717. // unsigned VertexBufferDesc::dataSize_
  4718. engine->RegisterObjectProperty(className, "uint dataSize", offsetof(T, dataSize_));
  4719. #ifdef REGISTER_MEMBERS_MANUAL_PART_VertexBufferDesc
  4720. REGISTER_MEMBERS_MANUAL_PART_VertexBufferDesc();
  4721. #endif
  4722. }
  4723. // struct VertexBufferMorph | File: ../Graphics/Model.h
  4724. template <class T> void RegisterMembers_VertexBufferMorph(asIScriptEngine* engine, const char* className)
  4725. {
  4726. // SharedArrayPtr<unsigned char> VertexBufferMorph::morphData_
  4727. // Error: type "SharedArrayPtr<unsigned char>" can not automatically bind
  4728. // VertexMaskFlags VertexBufferMorph::elementMask_
  4729. engine->RegisterObjectProperty(className, "VertexMaskFlags elementMask", offsetof(T, elementMask_));
  4730. // unsigned VertexBufferMorph::vertexCount_
  4731. engine->RegisterObjectProperty(className, "uint vertexCount", offsetof(T, vertexCount_));
  4732. // unsigned VertexBufferMorph::dataSize_
  4733. engine->RegisterObjectProperty(className, "uint dataSize", offsetof(T, dataSize_));
  4734. #ifdef REGISTER_MEMBERS_MANUAL_PART_VertexBufferMorph
  4735. REGISTER_MEMBERS_MANUAL_PART_VertexBufferMorph();
  4736. #endif
  4737. }
  4738. // struct VertexElement | File: ../Graphics/GraphicsDefs.h
  4739. template <class T> void RegisterMembers_VertexElement(asIScriptEngine* engine, const char* className)
  4740. {
  4741. // bool VertexElement::operator !=(const VertexElement& rhs) const
  4742. // Only operator == is needed
  4743. // bool VertexElement::operator ==(const VertexElement& rhs) const
  4744. engine->RegisterObjectMethod(className, "bool opEquals(const VertexElement&in) const", AS_METHODPR(T, operator==, (const VertexElement&) const, bool), AS_CALL_THISCALL);
  4745. // VertexElementType VertexElement::type_
  4746. engine->RegisterObjectProperty(className, "VertexElementType type", offsetof(T, type_));
  4747. // VertexElementSemantic VertexElement::semantic_
  4748. engine->RegisterObjectProperty(className, "VertexElementSemantic semantic", offsetof(T, semantic_));
  4749. // unsigned char VertexElement::index_
  4750. engine->RegisterObjectProperty(className, "uint8 index", offsetof(T, index_));
  4751. // bool VertexElement::perInstance_
  4752. engine->RegisterObjectProperty(className, "bool perInstance", offsetof(T, perInstance_));
  4753. // unsigned VertexElement::offset_
  4754. engine->RegisterObjectProperty(className, "uint offset", offsetof(T, offset_));
  4755. #ifdef REGISTER_MEMBERS_MANUAL_PART_VertexElement
  4756. REGISTER_MEMBERS_MANUAL_PART_VertexElement();
  4757. #endif
  4758. }
  4759. // class WString | File: ../Container/Str.h
  4760. template <class T> void RegisterMembers_WString(asIScriptEngine* engine, const char* className)
  4761. {
  4762. // wchar_t& WString::At(unsigned index)
  4763. // Error: type "wchar_t&" can not automatically bind
  4764. // const wchar_t& WString::At(unsigned index) const
  4765. // Error: type "const wchar_t&" can not automatically bind
  4766. // const wchar_t* WString::CString() const
  4767. // Error: type "const wchar_t*" can not automatically bind
  4768. // wchar_t& WString::operator [](unsigned index)
  4769. // Error: type "wchar_t&" can not automatically bind
  4770. // const wchar_t& WString::operator [](unsigned index) const
  4771. // Error: type "const wchar_t&" can not automatically bind
  4772. // bool WString::Empty() const
  4773. engine->RegisterObjectMethod(className, "bool Empty() const", AS_METHODPR(T, Empty, () const, bool), AS_CALL_THISCALL);
  4774. // unsigned WString::Length() const
  4775. engine->RegisterObjectMethod(className, "uint Length() const", AS_METHODPR(T, Length, () const, unsigned), AS_CALL_THISCALL);
  4776. // void WString::Resize(unsigned newLength)
  4777. engine->RegisterObjectMethod(className, "void Resize(uint)", AS_METHODPR(T, Resize, (unsigned), void), AS_CALL_THISCALL);
  4778. #ifdef REGISTER_MEMBERS_MANUAL_PART_WString
  4779. REGISTER_MEMBERS_MANUAL_PART_WString();
  4780. #endif
  4781. }
  4782. // struct WindowModeParams | File: ../Graphics/Graphics.h
  4783. template <class T> void RegisterMembers_WindowModeParams(asIScriptEngine* engine, const char* className)
  4784. {
  4785. // int WindowModeParams::width_
  4786. engine->RegisterObjectProperty(className, "int width", offsetof(T, width_));
  4787. // int WindowModeParams::height_
  4788. engine->RegisterObjectProperty(className, "int height", offsetof(T, height_));
  4789. // ScreenModeParams WindowModeParams::screenParams_
  4790. engine->RegisterObjectProperty(className, "ScreenModeParams screenParams", offsetof(T, screenParams_));
  4791. #ifdef REGISTER_MEMBERS_MANUAL_PART_WindowModeParams
  4792. REGISTER_MEMBERS_MANUAL_PART_WindowModeParams();
  4793. #endif
  4794. }
  4795. // Vector<String> XMLElement::GetAttributeNames() const
  4796. template <class T> CScriptArray* XMLElement_VectorlesStringgre_GetAttributeNames_void_template(T* _ptr)
  4797. {
  4798. Vector<String> result = _ptr->GetAttributeNames();
  4799. return VectorToArray<String>(result, "Array<String>");
  4800. }
  4801. // StringVector XMLElement::GetStringVector() const
  4802. template <class T> CScriptArray* XMLElement_StringVector_GetStringVector_void_template(T* _ptr)
  4803. {
  4804. StringVector result = _ptr->GetStringVector();
  4805. return VectorToArray<String>(result, "Array<String>");
  4806. }
  4807. // bool XMLElement::SetStringVector(const StringVector& value)
  4808. template <class T> bool XMLElement_bool_SetStringVector_constspStringVectoramp_template(T* _ptr, CScriptArray* value_conv)
  4809. {
  4810. StringVector value = ArrayToVector<String>(value_conv);
  4811. bool result = _ptr->SetStringVector(value);
  4812. return result;
  4813. }
  4814. // class XMLElement | File: ../Resource/XMLElement.h
  4815. template <class T> void RegisterMembers_XMLElement(asIScriptEngine* engine, const char* className)
  4816. {
  4817. // XMLElement XMLElement::CreateChild(const char* name)
  4818. // Error: type "const char*" can not automatically bind
  4819. // String XMLElement::GetAttribute(const char* name) const
  4820. // Error: type "const char*" can not automatically bind
  4821. // const char* XMLElement::GetAttributeCString(const char* name) const
  4822. // Error: type "const char*" can not automatically bind
  4823. // String XMLElement::GetAttributeLower(const char* name) const
  4824. // Error: type "const char*" can not automatically bind
  4825. // String XMLElement::GetAttributeUpper(const char* name) const
  4826. // Error: type "const char*" can not automatically bind
  4827. // PODVector<unsigned char> XMLElement::GetBuffer(const String& name) const
  4828. // Error: type "PODVector<unsigned char>" can not automatically bind
  4829. // bool XMLElement::GetBuffer(const String& name, void* dest, unsigned size) const
  4830. // Error: type "void*" can not automatically bind
  4831. // XMLElement XMLElement::GetChild(const char* name) const
  4832. // Error: type "const char*" can not automatically bind
  4833. // XMLElement XMLElement::GetNext(const char* name) const
  4834. // Error: type "const char*" can not automatically bind
  4835. // pugi::xml_node_struct* XMLElement::GetNode() const
  4836. // Error: type "pugi::xml_node_struct*" can not automatically bind
  4837. // XMLElement XMLElement::GetOrCreateChild(const char* name)
  4838. // Error: type "const char*" can not automatically bind
  4839. // VariantVector XMLElement::GetVariantVector() const
  4840. // Error: type "VariantVector" can not automatically bind
  4841. // const pugi::xpath_node* XMLElement::GetXPathNode() const
  4842. // Error: type "const pugi::xpath_node*" can not automatically bind
  4843. // const XPathResultSet* XMLElement::GetXPathResultSet() const
  4844. // Error: type "const XPathResultSet*" can not automatically bind
  4845. // bool XMLElement::HasAttribute(const char* name) const
  4846. // Error: type "const char*" can not automatically bind
  4847. // bool XMLElement::HasChild(const char* name) const
  4848. // Error: type "const char*" can not automatically bind
  4849. // bool XMLElement::RemoveAttribute(const char* name)
  4850. // Error: type "const char*" can not automatically bind
  4851. // bool XMLElement::RemoveChild(const char* name)
  4852. // Error: type "const char*" can not automatically bind
  4853. // bool XMLElement::RemoveChildren(const char* name)
  4854. // Error: type "const char*" can not automatically bind
  4855. // XPathResultSet XMLElement::Select(const String& query, pugi::xpath_variable_set* variables = nullptr) const
  4856. // Error: type "pugi::xpath_variable_set*" can not automatically bind
  4857. // XMLElement XMLElement::SelectSingle(const String& query, pugi::xpath_variable_set* variables = nullptr) const
  4858. // Error: type "pugi::xpath_variable_set*" can not automatically bind
  4859. // bool XMLElement::SetAttribute(const char* name, const char* value)
  4860. // Error: type "const char*" can not automatically bind
  4861. // bool XMLElement::SetAttribute(const char* value)
  4862. // Error: type "const char*" can not automatically bind
  4863. // bool XMLElement::SetBuffer(const String& name, const void* data, unsigned size)
  4864. // Error: type "const void*" can not automatically bind
  4865. // bool XMLElement::SetBuffer(const String& name, const PODVector<unsigned char>& value)
  4866. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  4867. // bool XMLElement::SetValue(const char* value)
  4868. // Error: type "const char*" can not automatically bind
  4869. // bool XMLElement::SetVariantVector(const VariantVector& value)
  4870. // Error: type "const VariantVector&" can not automatically bind
  4871. // bool XMLElement::AppendChild(XMLElement element, bool asCopy = false)
  4872. engine->RegisterObjectMethod(className, "bool AppendChild(XMLElement, bool = false)", AS_METHODPR(T, AppendChild, (XMLElement, bool), bool), AS_CALL_THISCALL);
  4873. // XMLElement XMLElement::CreateChild(const String& name)
  4874. engine->RegisterObjectMethod(className, "XMLElement CreateChild(const String&in)", AS_METHODPR(T, CreateChild, (const String&), XMLElement), AS_CALL_THISCALL);
  4875. // String XMLElement::GetAttribute(const String& name = String::EMPTY) const
  4876. engine->RegisterObjectMethod(className, "String GetAttribute(const String&in = String::EMPTY) const", AS_METHODPR(T, GetAttribute, (const String&) const, String), AS_CALL_THISCALL);
  4877. // String XMLElement::GetAttributeLower(const String& name) const
  4878. engine->RegisterObjectMethod(className, "String GetAttributeLower(const String&in) const", AS_METHODPR(T, GetAttributeLower, (const String&) const, String), AS_CALL_THISCALL);
  4879. // Vector<String> XMLElement::GetAttributeNames() const
  4880. engine->RegisterObjectMethod(className, "Array<String>@ GetAttributeNames() const", AS_FUNCTION_OBJFIRST(XMLElement_VectorlesStringgre_GetAttributeNames_void_template<XMLElement>), AS_CALL_CDECL_OBJFIRST);
  4881. // String XMLElement::GetAttributeUpper(const String& name) const
  4882. engine->RegisterObjectMethod(className, "String GetAttributeUpper(const String&in) const", AS_METHODPR(T, GetAttributeUpper, (const String&) const, String), AS_CALL_THISCALL);
  4883. // bool XMLElement::GetBool(const String& name) const
  4884. engine->RegisterObjectMethod(className, "bool GetBool(const String&in) const", AS_METHODPR(T, GetBool, (const String&) const, bool), AS_CALL_THISCALL);
  4885. // BoundingBox XMLElement::GetBoundingBox() const
  4886. engine->RegisterObjectMethod(className, "BoundingBox GetBoundingBox() const", AS_METHODPR(T, GetBoundingBox, () const, BoundingBox), AS_CALL_THISCALL);
  4887. // XMLElement XMLElement::GetChild(const String& name = String::EMPTY) const
  4888. engine->RegisterObjectMethod(className, "XMLElement GetChild(const String&in = String::EMPTY) const", AS_METHODPR(T, GetChild, (const String&) const, XMLElement), AS_CALL_THISCALL);
  4889. // Color XMLElement::GetColor(const String& name) const
  4890. engine->RegisterObjectMethod(className, "Color GetColor(const String&in) const", AS_METHODPR(T, GetColor, (const String&) const, Color), AS_CALL_THISCALL);
  4891. // double XMLElement::GetDouble(const String& name) const
  4892. engine->RegisterObjectMethod(className, "double GetDouble(const String&in) const", AS_METHODPR(T, GetDouble, (const String&) const, double), AS_CALL_THISCALL);
  4893. // XMLFile* XMLElement::GetFile() const
  4894. engine->RegisterObjectMethod(className, "XMLFile@+ GetFile() const", AS_METHODPR(T, GetFile, () const, XMLFile*), AS_CALL_THISCALL);
  4895. engine->RegisterObjectMethod(className, "XMLFile@+ get_file() const", AS_METHODPR(T, GetFile, () const, XMLFile*), AS_CALL_THISCALL);
  4896. // float XMLElement::GetFloat(const String& name) const
  4897. engine->RegisterObjectMethod(className, "float GetFloat(const String&in) const", AS_METHODPR(T, GetFloat, (const String&) const, float), AS_CALL_THISCALL);
  4898. // int XMLElement::GetInt(const String& name) const
  4899. engine->RegisterObjectMethod(className, "int GetInt(const String&in) const", AS_METHODPR(T, GetInt, (const String&) const, int), AS_CALL_THISCALL);
  4900. // long long XMLElement::GetInt64(const String& name) const
  4901. engine->RegisterObjectMethod(className, "int64 GetInt64(const String&in) const", AS_METHODPR(T, GetInt64, (const String&) const, long long), AS_CALL_THISCALL);
  4902. // IntRect XMLElement::GetIntRect(const String& name) const
  4903. engine->RegisterObjectMethod(className, "IntRect GetIntRect(const String&in) const", AS_METHODPR(T, GetIntRect, (const String&) const, IntRect), AS_CALL_THISCALL);
  4904. // IntVector2 XMLElement::GetIntVector2(const String& name) const
  4905. engine->RegisterObjectMethod(className, "IntVector2 GetIntVector2(const String&in) const", AS_METHODPR(T, GetIntVector2, (const String&) const, IntVector2), AS_CALL_THISCALL);
  4906. // IntVector3 XMLElement::GetIntVector3(const String& name) const
  4907. engine->RegisterObjectMethod(className, "IntVector3 GetIntVector3(const String&in) const", AS_METHODPR(T, GetIntVector3, (const String&) const, IntVector3), AS_CALL_THISCALL);
  4908. // Matrix3 XMLElement::GetMatrix3(const String& name) const
  4909. engine->RegisterObjectMethod(className, "Matrix3 GetMatrix3(const String&in) const", AS_METHODPR(T, GetMatrix3, (const String&) const, Matrix3), AS_CALL_THISCALL);
  4910. // Matrix3x4 XMLElement::GetMatrix3x4(const String& name) const
  4911. engine->RegisterObjectMethod(className, "Matrix3x4 GetMatrix3x4(const String&in) const", AS_METHODPR(T, GetMatrix3x4, (const String&) const, Matrix3x4), AS_CALL_THISCALL);
  4912. // Matrix4 XMLElement::GetMatrix4(const String& name) const
  4913. engine->RegisterObjectMethod(className, "Matrix4 GetMatrix4(const String&in) const", AS_METHODPR(T, GetMatrix4, (const String&) const, Matrix4), AS_CALL_THISCALL);
  4914. // String XMLElement::GetName() const
  4915. engine->RegisterObjectMethod(className, "String GetName() const", AS_METHODPR(T, GetName, () const, String), AS_CALL_THISCALL);
  4916. engine->RegisterObjectMethod(className, "String get_name() const", AS_METHODPR(T, GetName, () const, String), AS_CALL_THISCALL);
  4917. // XMLElement XMLElement::GetNext(const String& name = String::EMPTY) const
  4918. engine->RegisterObjectMethod(className, "XMLElement GetNext(const String&in = String::EMPTY) const", AS_METHODPR(T, GetNext, (const String&) const, XMLElement), AS_CALL_THISCALL);
  4919. // unsigned XMLElement::GetNumAttributes() const
  4920. engine->RegisterObjectMethod(className, "uint GetNumAttributes() const", AS_METHODPR(T, GetNumAttributes, () const, unsigned), AS_CALL_THISCALL);
  4921. engine->RegisterObjectMethod(className, "uint get_numAttributes() const", AS_METHODPR(T, GetNumAttributes, () const, unsigned), AS_CALL_THISCALL);
  4922. // XMLElement XMLElement::GetOrCreateChild(const String& name)
  4923. engine->RegisterObjectMethod(className, "XMLElement GetOrCreateChild(const String&in)", AS_METHODPR(T, GetOrCreateChild, (const String&), XMLElement), AS_CALL_THISCALL);
  4924. // XMLElement XMLElement::GetParent() const
  4925. engine->RegisterObjectMethod(className, "XMLElement GetParent() const", AS_METHODPR(T, GetParent, () const, XMLElement), AS_CALL_THISCALL);
  4926. engine->RegisterObjectMethod(className, "XMLElement get_parent() const", AS_METHODPR(T, GetParent, () const, XMLElement), AS_CALL_THISCALL);
  4927. // Quaternion XMLElement::GetQuaternion(const String& name) const
  4928. engine->RegisterObjectMethod(className, "Quaternion GetQuaternion(const String&in) const", AS_METHODPR(T, GetQuaternion, (const String&) const, Quaternion), AS_CALL_THISCALL);
  4929. // Rect XMLElement::GetRect(const String& name) const
  4930. engine->RegisterObjectMethod(className, "Rect GetRect(const String&in) const", AS_METHODPR(T, GetRect, (const String&) const, Rect), AS_CALL_THISCALL);
  4931. // ResourceRef XMLElement::GetResourceRef() const
  4932. engine->RegisterObjectMethod(className, "ResourceRef GetResourceRef() const", AS_METHODPR(T, GetResourceRef, () const, ResourceRef), AS_CALL_THISCALL);
  4933. // ResourceRefList XMLElement::GetResourceRefList() const
  4934. engine->RegisterObjectMethod(className, "ResourceRefList GetResourceRefList() const", AS_METHODPR(T, GetResourceRefList, () const, ResourceRefList), AS_CALL_THISCALL);
  4935. // StringVector XMLElement::GetStringVector() const
  4936. engine->RegisterObjectMethod(className, "Array<String>@ GetStringVector() const", AS_FUNCTION_OBJFIRST(XMLElement_StringVector_GetStringVector_void_template<XMLElement>), AS_CALL_CDECL_OBJFIRST);
  4937. // unsigned XMLElement::GetUInt(const String& name) const
  4938. engine->RegisterObjectMethod(className, "uint GetUInt(const String&in) const", AS_METHODPR(T, GetUInt, (const String&) const, unsigned), AS_CALL_THISCALL);
  4939. // unsigned long long XMLElement::GetUInt64(const String& name) const
  4940. engine->RegisterObjectMethod(className, "uint64 GetUInt64(const String&in) const", AS_METHODPR(T, GetUInt64, (const String&) const, unsigned long long), AS_CALL_THISCALL);
  4941. // String XMLElement::GetValue() const
  4942. engine->RegisterObjectMethod(className, "String GetValue() const", AS_METHODPR(T, GetValue, () const, String), AS_CALL_THISCALL);
  4943. engine->RegisterObjectMethod(className, "String get_value() const", AS_METHODPR(T, GetValue, () const, String), AS_CALL_THISCALL);
  4944. // Variant XMLElement::GetVariant() const
  4945. engine->RegisterObjectMethod(className, "Variant GetVariant() const", AS_METHODPR(T, GetVariant, () const, Variant), AS_CALL_THISCALL);
  4946. // VariantMap XMLElement::GetVariantMap() const
  4947. engine->RegisterObjectMethod(className, "VariantMap GetVariantMap() const", AS_METHODPR(T, GetVariantMap, () const, VariantMap), AS_CALL_THISCALL);
  4948. // Variant XMLElement::GetVariantValue(VariantType type) const
  4949. engine->RegisterObjectMethod(className, "Variant GetVariantValue(VariantType) const", AS_METHODPR(T, GetVariantValue, (VariantType) const, Variant), AS_CALL_THISCALL);
  4950. // Vector4 XMLElement::GetVector(const String& name) const
  4951. engine->RegisterObjectMethod(className, "Vector4 GetVector(const String&in) const", AS_METHODPR(T, GetVector, (const String&) const, Vector4), AS_CALL_THISCALL);
  4952. // Vector2 XMLElement::GetVector2(const String& name) const
  4953. engine->RegisterObjectMethod(className, "Vector2 GetVector2(const String&in) const", AS_METHODPR(T, GetVector2, (const String&) const, Vector2), AS_CALL_THISCALL);
  4954. // Vector3 XMLElement::GetVector3(const String& name) const
  4955. engine->RegisterObjectMethod(className, "Vector3 GetVector3(const String&in) const", AS_METHODPR(T, GetVector3, (const String&) const, Vector3), AS_CALL_THISCALL);
  4956. // Vector4 XMLElement::GetVector4(const String& name) const
  4957. engine->RegisterObjectMethod(className, "Vector4 GetVector4(const String&in) const", AS_METHODPR(T, GetVector4, (const String&) const, Vector4), AS_CALL_THISCALL);
  4958. // Variant XMLElement::GetVectorVariant(const String& name) const
  4959. engine->RegisterObjectMethod(className, "Variant GetVectorVariant(const String&in) const", AS_METHODPR(T, GetVectorVariant, (const String&) const, Variant), AS_CALL_THISCALL);
  4960. // unsigned XMLElement::GetXPathResultIndex() const
  4961. engine->RegisterObjectMethod(className, "uint GetXPathResultIndex() const", AS_METHODPR(T, GetXPathResultIndex, () const, unsigned), AS_CALL_THISCALL);
  4962. // bool XMLElement::HasAttribute(const String& name) const
  4963. engine->RegisterObjectMethod(className, "bool HasAttribute(const String&in) const", AS_METHODPR(T, HasAttribute, (const String&) const, bool), AS_CALL_THISCALL);
  4964. // bool XMLElement::HasChild(const String& name) const
  4965. engine->RegisterObjectMethod(className, "bool HasChild(const String&in) const", AS_METHODPR(T, HasChild, (const String&) const, bool), AS_CALL_THISCALL);
  4966. // bool XMLElement::IsNull() const
  4967. engine->RegisterObjectMethod(className, "bool IsNull() const", AS_METHODPR(T, IsNull, () const, bool), AS_CALL_THISCALL);
  4968. engine->RegisterObjectMethod(className, "bool get_isNull() const", AS_METHODPR(T, IsNull, () const, bool), AS_CALL_THISCALL);
  4969. // XMLElement XMLElement::NextResult() const
  4970. engine->RegisterObjectMethod(className, "XMLElement NextResult() const", AS_METHODPR(T, NextResult, () const, XMLElement), AS_CALL_THISCALL);
  4971. engine->RegisterObjectMethod(className, "XMLElement get_nextResult() const", AS_METHODPR(T, NextResult, () const, XMLElement), AS_CALL_THISCALL);
  4972. // bool XMLElement::NotNull() const
  4973. engine->RegisterObjectMethod(className, "bool NotNull() const", AS_METHODPR(T, NotNull, () const, bool), AS_CALL_THISCALL);
  4974. engine->RegisterObjectMethod(className, "bool get_notNull() const", AS_METHODPR(T, NotNull, () const, bool), AS_CALL_THISCALL);
  4975. // explicit XMLElement::operator bool() const
  4976. engine->RegisterObjectMethod(className, "bool opConv() const", AS_METHODPR(T, operator bool, () const, bool), AS_CALL_THISCALL);
  4977. // XMLElement& XMLElement::operator =(const XMLElement& rhs)
  4978. engine->RegisterObjectMethod(className, "XMLElement& opAssign(const XMLElement&in)", AS_METHODPR(T, operator=, (const XMLElement&), XMLElement&), AS_CALL_THISCALL);
  4979. // bool XMLElement::Remove()
  4980. engine->RegisterObjectMethod(className, "bool Remove()", AS_METHODPR(T, Remove, (), bool), AS_CALL_THISCALL);
  4981. // bool XMLElement::RemoveAttribute(const String& name = String::EMPTY)
  4982. engine->RegisterObjectMethod(className, "bool RemoveAttribute(const String&in = String::EMPTY)", AS_METHODPR(T, RemoveAttribute, (const String&), bool), AS_CALL_THISCALL);
  4983. // bool XMLElement::RemoveChild(const XMLElement& element)
  4984. engine->RegisterObjectMethod(className, "bool RemoveChild(const XMLElement&in)", AS_METHODPR(T, RemoveChild, (const XMLElement&), bool), AS_CALL_THISCALL);
  4985. // bool XMLElement::RemoveChild(const String& name)
  4986. engine->RegisterObjectMethod(className, "bool RemoveChild(const String&in)", AS_METHODPR(T, RemoveChild, (const String&), bool), AS_CALL_THISCALL);
  4987. // bool XMLElement::RemoveChildren(const String& name = String::EMPTY)
  4988. engine->RegisterObjectMethod(className, "bool RemoveChildren(const String&in = String::EMPTY)", AS_METHODPR(T, RemoveChildren, (const String&), bool), AS_CALL_THISCALL);
  4989. // XPathResultSet XMLElement::SelectPrepared(const XPathQuery& query) const
  4990. engine->RegisterObjectMethod(className, "XPathResultSet SelectPrepared(const XPathQuery&in) const", AS_METHODPR(T, SelectPrepared, (const XPathQuery&) const, XPathResultSet), AS_CALL_THISCALL);
  4991. // XMLElement XMLElement::SelectSinglePrepared(const XPathQuery& query) const
  4992. engine->RegisterObjectMethod(className, "XMLElement SelectSinglePrepared(const XPathQuery&in) const", AS_METHODPR(T, SelectSinglePrepared, (const XPathQuery&) const, XMLElement), AS_CALL_THISCALL);
  4993. // bool XMLElement::SetAttribute(const String& name, const String& value)
  4994. engine->RegisterObjectMethod(className, "bool SetAttribute(const String&in, const String&in)", AS_METHODPR(T, SetAttribute, (const String&, const String&), bool), AS_CALL_THISCALL);
  4995. // bool XMLElement::SetAttribute(const String& value)
  4996. engine->RegisterObjectMethod(className, "bool SetAttribute(const String&in)", AS_METHODPR(T, SetAttribute, (const String&), bool), AS_CALL_THISCALL);
  4997. // bool XMLElement::SetBool(const String& name, bool value)
  4998. engine->RegisterObjectMethod(className, "bool SetBool(const String&in, bool)", AS_METHODPR(T, SetBool, (const String&, bool), bool), AS_CALL_THISCALL);
  4999. // bool XMLElement::SetBoundingBox(const BoundingBox& value)
  5000. engine->RegisterObjectMethod(className, "bool SetBoundingBox(const BoundingBox&in)", AS_METHODPR(T, SetBoundingBox, (const BoundingBox&), bool), AS_CALL_THISCALL);
  5001. // bool XMLElement::SetColor(const String& name, const Color& value)
  5002. engine->RegisterObjectMethod(className, "bool SetColor(const String&in, const Color&in)", AS_METHODPR(T, SetColor, (const String&, const Color&), bool), AS_CALL_THISCALL);
  5003. // bool XMLElement::SetDouble(const String& name, double value)
  5004. engine->RegisterObjectMethod(className, "bool SetDouble(const String&in, double)", AS_METHODPR(T, SetDouble, (const String&, double), bool), AS_CALL_THISCALL);
  5005. // bool XMLElement::SetFloat(const String& name, float value)
  5006. engine->RegisterObjectMethod(className, "bool SetFloat(const String&in, float)", AS_METHODPR(T, SetFloat, (const String&, float), bool), AS_CALL_THISCALL);
  5007. // bool XMLElement::SetInt(const String& name, int value)
  5008. engine->RegisterObjectMethod(className, "bool SetInt(const String&in, int)", AS_METHODPR(T, SetInt, (const String&, int), bool), AS_CALL_THISCALL);
  5009. // bool XMLElement::SetInt64(const String& name, long long value)
  5010. engine->RegisterObjectMethod(className, "bool SetInt64(const String&in, int64)", AS_METHODPR(T, SetInt64, (const String&, long long), bool), AS_CALL_THISCALL);
  5011. // bool XMLElement::SetIntRect(const String& name, const IntRect& value)
  5012. engine->RegisterObjectMethod(className, "bool SetIntRect(const String&in, const IntRect&in)", AS_METHODPR(T, SetIntRect, (const String&, const IntRect&), bool), AS_CALL_THISCALL);
  5013. // bool XMLElement::SetIntVector2(const String& name, const IntVector2& value)
  5014. engine->RegisterObjectMethod(className, "bool SetIntVector2(const String&in, const IntVector2&in)", AS_METHODPR(T, SetIntVector2, (const String&, const IntVector2&), bool), AS_CALL_THISCALL);
  5015. // bool XMLElement::SetIntVector3(const String& name, const IntVector3& value)
  5016. engine->RegisterObjectMethod(className, "bool SetIntVector3(const String&in, const IntVector3&in)", AS_METHODPR(T, SetIntVector3, (const String&, const IntVector3&), bool), AS_CALL_THISCALL);
  5017. // bool XMLElement::SetMatrix3(const String& name, const Matrix3& value)
  5018. engine->RegisterObjectMethod(className, "bool SetMatrix3(const String&in, const Matrix3&in)", AS_METHODPR(T, SetMatrix3, (const String&, const Matrix3&), bool), AS_CALL_THISCALL);
  5019. // bool XMLElement::SetMatrix3x4(const String& name, const Matrix3x4& value)
  5020. engine->RegisterObjectMethod(className, "bool SetMatrix3x4(const String&in, const Matrix3x4&in)", AS_METHODPR(T, SetMatrix3x4, (const String&, const Matrix3x4&), bool), AS_CALL_THISCALL);
  5021. // bool XMLElement::SetMatrix4(const String& name, const Matrix4& value)
  5022. engine->RegisterObjectMethod(className, "bool SetMatrix4(const String&in, const Matrix4&in)", AS_METHODPR(T, SetMatrix4, (const String&, const Matrix4&), bool), AS_CALL_THISCALL);
  5023. // bool XMLElement::SetQuaternion(const String& name, const Quaternion& value)
  5024. engine->RegisterObjectMethod(className, "bool SetQuaternion(const String&in, const Quaternion&in)", AS_METHODPR(T, SetQuaternion, (const String&, const Quaternion&), bool), AS_CALL_THISCALL);
  5025. // bool XMLElement::SetRect(const String& name, const Rect& value)
  5026. engine->RegisterObjectMethod(className, "bool SetRect(const String&in, const Rect&in)", AS_METHODPR(T, SetRect, (const String&, const Rect&), bool), AS_CALL_THISCALL);
  5027. // bool XMLElement::SetResourceRef(const ResourceRef& value)
  5028. engine->RegisterObjectMethod(className, "bool SetResourceRef(const ResourceRef&in)", AS_METHODPR(T, SetResourceRef, (const ResourceRef&), bool), AS_CALL_THISCALL);
  5029. // bool XMLElement::SetResourceRefList(const ResourceRefList& value)
  5030. engine->RegisterObjectMethod(className, "bool SetResourceRefList(const ResourceRefList&in)", AS_METHODPR(T, SetResourceRefList, (const ResourceRefList&), bool), AS_CALL_THISCALL);
  5031. // bool XMLElement::SetString(const String& name, const String& value)
  5032. engine->RegisterObjectMethod(className, "bool SetString(const String&in, const String&in)", AS_METHODPR(T, SetString, (const String&, const String&), bool), AS_CALL_THISCALL);
  5033. // bool XMLElement::SetStringVector(const StringVector& value)
  5034. engine->RegisterObjectMethod(className, "bool SetStringVector(Array<String>@+)", AS_FUNCTION_OBJFIRST(XMLElement_bool_SetStringVector_constspStringVectoramp_template<XMLElement>), AS_CALL_CDECL_OBJFIRST);
  5035. // bool XMLElement::SetUInt(const String& name, unsigned value)
  5036. engine->RegisterObjectMethod(className, "bool SetUInt(const String&in, uint)", AS_METHODPR(T, SetUInt, (const String&, unsigned), bool), AS_CALL_THISCALL);
  5037. // bool XMLElement::SetUInt64(const String& name, unsigned long long value)
  5038. engine->RegisterObjectMethod(className, "bool SetUInt64(const String&in, uint64)", AS_METHODPR(T, SetUInt64, (const String&, unsigned long long), bool), AS_CALL_THISCALL);
  5039. // bool XMLElement::SetValue(const String& value)
  5040. engine->RegisterObjectMethod(className, "bool SetValue(const String&in)", AS_METHODPR(T, SetValue, (const String&), bool), AS_CALL_THISCALL);
  5041. engine->RegisterObjectMethod(className, "bool set_value(const String&in)", AS_METHODPR(T, SetValue, (const String&), bool), AS_CALL_THISCALL);
  5042. // bool XMLElement::SetVariant(const Variant& value)
  5043. engine->RegisterObjectMethod(className, "bool SetVariant(const Variant&in)", AS_METHODPR(T, SetVariant, (const Variant&), bool), AS_CALL_THISCALL);
  5044. // bool XMLElement::SetVariantMap(const VariantMap& value)
  5045. engine->RegisterObjectMethod(className, "bool SetVariantMap(const VariantMap&in)", AS_METHODPR(T, SetVariantMap, (const VariantMap&), bool), AS_CALL_THISCALL);
  5046. // bool XMLElement::SetVariantValue(const Variant& value)
  5047. engine->RegisterObjectMethod(className, "bool SetVariantValue(const Variant&in)", AS_METHODPR(T, SetVariantValue, (const Variant&), bool), AS_CALL_THISCALL);
  5048. // bool XMLElement::SetVector2(const String& name, const Vector2& value)
  5049. engine->RegisterObjectMethod(className, "bool SetVector2(const String&in, const Vector2&in)", AS_METHODPR(T, SetVector2, (const String&, const Vector2&), bool), AS_CALL_THISCALL);
  5050. // bool XMLElement::SetVector3(const String& name, const Vector3& value)
  5051. engine->RegisterObjectMethod(className, "bool SetVector3(const String&in, const Vector3&in)", AS_METHODPR(T, SetVector3, (const String&, const Vector3&), bool), AS_CALL_THISCALL);
  5052. // bool XMLElement::SetVector4(const String& name, const Vector4& value)
  5053. engine->RegisterObjectMethod(className, "bool SetVector4(const String&in, const Vector4&in)", AS_METHODPR(T, SetVector4, (const String&, const Vector4&), bool), AS_CALL_THISCALL);
  5054. // bool XMLElement::SetVectorVariant(const String& name, const Variant& value)
  5055. engine->RegisterObjectMethod(className, "bool SetVectorVariant(const String&in, const Variant&in)", AS_METHODPR(T, SetVectorVariant, (const String&, const Variant&), bool), AS_CALL_THISCALL);
  5056. // static const XMLElement XMLElement::EMPTY
  5057. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const XMLElement EMPTY", (void*)&T::EMPTY);engine->SetDefaultNamespace("");
  5058. #ifdef REGISTER_MEMBERS_MANUAL_PART_XMLElement
  5059. REGISTER_MEMBERS_MANUAL_PART_XMLElement();
  5060. #endif
  5061. }
  5062. // class XPathQuery | File: ../Resource/XMLElement.h
  5063. template <class T> void RegisterMembers_XPathQuery(asIScriptEngine* engine, const char* className)
  5064. {
  5065. // pugi::xpath_query* XPathQuery::GetXPathQuery() const
  5066. // Error: type "pugi::xpath_query*" can not automatically bind
  5067. // pugi::xpath_variable_set* XPathQuery::GetXPathVariableSet() const
  5068. // Error: type "pugi::xpath_variable_set*" can not automatically bind
  5069. // bool XPathQuery::SetVariable(const char* name, const char* value)
  5070. // Error: type "const char*" can not automatically bind
  5071. // void XPathQuery::Bind()
  5072. engine->RegisterObjectMethod(className, "void Bind()", AS_METHODPR(T, Bind, (), void), AS_CALL_THISCALL);
  5073. // void XPathQuery::Clear()
  5074. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  5075. // XPathResultSet XPathQuery::Evaluate(const XMLElement& element) const
  5076. engine->RegisterObjectMethod(className, "XPathResultSet Evaluate(const XMLElement&in) const", AS_METHODPR(T, Evaluate, (const XMLElement&) const, XPathResultSet), AS_CALL_THISCALL);
  5077. // bool XPathQuery::EvaluateToBool(const XMLElement& element) const
  5078. engine->RegisterObjectMethod(className, "bool EvaluateToBool(const XMLElement&in) const", AS_METHODPR(T, EvaluateToBool, (const XMLElement&) const, bool), AS_CALL_THISCALL);
  5079. // float XPathQuery::EvaluateToFloat(const XMLElement& element) const
  5080. engine->RegisterObjectMethod(className, "float EvaluateToFloat(const XMLElement&in) const", AS_METHODPR(T, EvaluateToFloat, (const XMLElement&) const, float), AS_CALL_THISCALL);
  5081. // String XPathQuery::EvaluateToString(const XMLElement& element) const
  5082. engine->RegisterObjectMethod(className, "String EvaluateToString(const XMLElement&in) const", AS_METHODPR(T, EvaluateToString, (const XMLElement&) const, String), AS_CALL_THISCALL);
  5083. // String XPathQuery::GetQuery() const
  5084. engine->RegisterObjectMethod(className, "String GetQuery() const", AS_METHODPR(T, GetQuery, () const, String), AS_CALL_THISCALL);
  5085. engine->RegisterObjectMethod(className, "String get_query() const", AS_METHODPR(T, GetQuery, () const, String), AS_CALL_THISCALL);
  5086. // bool XPathQuery::SetQuery(const String& queryString, const String& variableString = String::EMPTY, bool bind = true)
  5087. engine->RegisterObjectMethod(className, "bool SetQuery(const String&in, const String&in = String::EMPTY, bool = true)", AS_METHODPR(T, SetQuery, (const String&, const String&, bool), bool), AS_CALL_THISCALL);
  5088. // bool XPathQuery::SetVariable(const String& name, bool value)
  5089. engine->RegisterObjectMethod(className, "bool SetVariable(const String&in, bool)", AS_METHODPR(T, SetVariable, (const String&, bool), bool), AS_CALL_THISCALL);
  5090. // bool XPathQuery::SetVariable(const String& name, float value)
  5091. engine->RegisterObjectMethod(className, "bool SetVariable(const String&in, float)", AS_METHODPR(T, SetVariable, (const String&, float), bool), AS_CALL_THISCALL);
  5092. // bool XPathQuery::SetVariable(const String& name, const String& value)
  5093. engine->RegisterObjectMethod(className, "bool SetVariable(const String&in, const String&in)", AS_METHODPR(T, SetVariable, (const String&, const String&), bool), AS_CALL_THISCALL);
  5094. // bool XPathQuery::SetVariable(const String& name, const XPathResultSet& value)
  5095. engine->RegisterObjectMethod(className, "bool SetVariable(const String&in, const XPathResultSet&in)", AS_METHODPR(T, SetVariable, (const String&, const XPathResultSet&), bool), AS_CALL_THISCALL);
  5096. #ifdef REGISTER_MEMBERS_MANUAL_PART_XPathQuery
  5097. REGISTER_MEMBERS_MANUAL_PART_XPathQuery();
  5098. #endif
  5099. }
  5100. // class XPathResultSet | File: ../Resource/XMLElement.h
  5101. template <class T> void RegisterMembers_XPathResultSet(asIScriptEngine* engine, const char* className)
  5102. {
  5103. // pugi::xpath_node_set* XPathResultSet::GetXPathNodeSet() const
  5104. // Error: type "pugi::xpath_node_set*" can not automatically bind
  5105. // bool XPathResultSet::Empty() const
  5106. engine->RegisterObjectMethod(className, "bool Empty() const", AS_METHODPR(T, Empty, () const, bool), AS_CALL_THISCALL);
  5107. engine->RegisterObjectMethod(className, "bool get_empty() const", AS_METHODPR(T, Empty, () const, bool), AS_CALL_THISCALL);
  5108. // XMLElement XPathResultSet::FirstResult()
  5109. engine->RegisterObjectMethod(className, "XMLElement FirstResult()", AS_METHODPR(T, FirstResult, (), XMLElement), AS_CALL_THISCALL);
  5110. engine->RegisterObjectMethod(className, "XMLElement get_firstResult()", AS_METHODPR(T, FirstResult, (), XMLElement), AS_CALL_THISCALL);
  5111. // XPathResultSet& XPathResultSet::operator =(const XPathResultSet& rhs)
  5112. engine->RegisterObjectMethod(className, "XPathResultSet& opAssign(const XPathResultSet&in)", AS_METHODPR(T, operator=, (const XPathResultSet&), XPathResultSet&), AS_CALL_THISCALL);
  5113. // XMLElement XPathResultSet::operator [](unsigned index) const
  5114. engine->RegisterObjectMethod(className, "XMLElement opIndex(uint) const", AS_METHODPR(T, operator[], (unsigned) const, XMLElement), AS_CALL_THISCALL);
  5115. // unsigned XPathResultSet::Size() const
  5116. engine->RegisterObjectMethod(className, "uint Size() const", AS_METHODPR(T, Size, () const, unsigned), AS_CALL_THISCALL);
  5117. engine->RegisterObjectMethod(className, "uint get_size() const", AS_METHODPR(T, Size, () const, unsigned), AS_CALL_THISCALL);
  5118. #ifdef REGISTER_MEMBERS_MANUAL_PART_XPathResultSet
  5119. REGISTER_MEMBERS_MANUAL_PART_XPathResultSet();
  5120. #endif
  5121. }
  5122. #ifdef URHO3D_NAVIGATION
  5123. // struct CrowdObstacleAvoidanceParams | File: ../Navigation/CrowdManager.h
  5124. template <class T> void RegisterMembers_CrowdObstacleAvoidanceParams(asIScriptEngine* engine, const char* className)
  5125. {
  5126. // float CrowdObstacleAvoidanceParams::velBias
  5127. engine->RegisterObjectProperty(className, "float velBias", offsetof(T, velBias));
  5128. // float CrowdObstacleAvoidanceParams::weightDesVel
  5129. engine->RegisterObjectProperty(className, "float weightDesVel", offsetof(T, weightDesVel));
  5130. // float CrowdObstacleAvoidanceParams::weightCurVel
  5131. engine->RegisterObjectProperty(className, "float weightCurVel", offsetof(T, weightCurVel));
  5132. // float CrowdObstacleAvoidanceParams::weightSide
  5133. engine->RegisterObjectProperty(className, "float weightSide", offsetof(T, weightSide));
  5134. // float CrowdObstacleAvoidanceParams::weightToi
  5135. engine->RegisterObjectProperty(className, "float weightToi", offsetof(T, weightToi));
  5136. // float CrowdObstacleAvoidanceParams::horizTime
  5137. engine->RegisterObjectProperty(className, "float horizTime", offsetof(T, horizTime));
  5138. // unsigned char CrowdObstacleAvoidanceParams::gridSize
  5139. engine->RegisterObjectProperty(className, "uint8 gridSize", offsetof(T, gridSize));
  5140. // unsigned char CrowdObstacleAvoidanceParams::adaptiveDivs
  5141. engine->RegisterObjectProperty(className, "uint8 adaptiveDivs", offsetof(T, adaptiveDivs));
  5142. // unsigned char CrowdObstacleAvoidanceParams::adaptiveRings
  5143. engine->RegisterObjectProperty(className, "uint8 adaptiveRings", offsetof(T, adaptiveRings));
  5144. // unsigned char CrowdObstacleAvoidanceParams::adaptiveDepth
  5145. engine->RegisterObjectProperty(className, "uint8 adaptiveDepth", offsetof(T, adaptiveDepth));
  5146. #ifdef REGISTER_MEMBERS_MANUAL_PART_CrowdObstacleAvoidanceParams
  5147. REGISTER_MEMBERS_MANUAL_PART_CrowdObstacleAvoidanceParams();
  5148. #endif
  5149. }
  5150. // struct NavAreaStub | File: ../Navigation/NavBuildData.h
  5151. template <class T> void RegisterMembers_NavAreaStub(asIScriptEngine* engine, const char* className)
  5152. {
  5153. // BoundingBox NavAreaStub::bounds_
  5154. engine->RegisterObjectProperty(className, "BoundingBox bounds", offsetof(T, bounds_));
  5155. // unsigned char NavAreaStub::areaID_
  5156. engine->RegisterObjectProperty(className, "uint8 areaID", offsetof(T, areaID_));
  5157. #ifdef REGISTER_MEMBERS_MANUAL_PART_NavAreaStub
  5158. REGISTER_MEMBERS_MANUAL_PART_NavAreaStub();
  5159. #endif
  5160. }
  5161. // struct NavBuildData | File: ../Navigation/NavBuildData.h
  5162. template <class T> void RegisterMembers_NavBuildData(asIScriptEngine* engine, const char* className)
  5163. {
  5164. // PODVector<Vector3> NavBuildData::vertices_
  5165. // Error: type "PODVector<Vector3>" can not automatically bind
  5166. // PODVector<int> NavBuildData::indices_
  5167. // Error: type "PODVector<int>" can not automatically bind
  5168. // PODVector<Vector3> NavBuildData::offMeshVertices_
  5169. // Error: type "PODVector<Vector3>" can not automatically bind
  5170. // PODVector<float> NavBuildData::offMeshRadii_
  5171. // Error: type "PODVector<float>" can not automatically bind
  5172. // PODVector<unsigned short> NavBuildData::offMeshFlags_
  5173. // Error: type "PODVector<unsigned short>" can not automatically bind
  5174. // PODVector<unsigned char> NavBuildData::offMeshAreas_
  5175. // Error: type "PODVector<unsigned char>" can not automatically bind
  5176. // PODVector<unsigned char> NavBuildData::offMeshDir_
  5177. // Error: type "PODVector<unsigned char>" can not automatically bind
  5178. // rcContext* NavBuildData::ctx_
  5179. // Not registered because pointer
  5180. // rcHeightfield* NavBuildData::heightField_
  5181. // Not registered because pointer
  5182. // rcCompactHeightfield* NavBuildData::compactHeightField_
  5183. // Not registered because pointer
  5184. // PODVector<NavAreaStub> NavBuildData::navAreas_
  5185. // Error: type "PODVector<NavAreaStub>" can not automatically bind
  5186. // BoundingBox NavBuildData::worldBoundingBox_
  5187. engine->RegisterObjectProperty(className, "BoundingBox worldBoundingBox", offsetof(T, worldBoundingBox_));
  5188. #ifdef REGISTER_MEMBERS_MANUAL_PART_NavBuildData
  5189. REGISTER_MEMBERS_MANUAL_PART_NavBuildData();
  5190. #endif
  5191. }
  5192. // struct NavigationGeometryInfo | File: ../Navigation/NavigationMesh.h
  5193. template <class T> void RegisterMembers_NavigationGeometryInfo(asIScriptEngine* engine, const char* className)
  5194. {
  5195. // Component* NavigationGeometryInfo::component_
  5196. // Not registered because pointer
  5197. // unsigned NavigationGeometryInfo::lodLevel_
  5198. engine->RegisterObjectProperty(className, "uint lodLevel", offsetof(T, lodLevel_));
  5199. // Matrix3x4 NavigationGeometryInfo::transform_
  5200. engine->RegisterObjectProperty(className, "Matrix3x4 transform", offsetof(T, transform_));
  5201. // BoundingBox NavigationGeometryInfo::boundingBox_
  5202. engine->RegisterObjectProperty(className, "BoundingBox boundingBox", offsetof(T, boundingBox_));
  5203. #ifdef REGISTER_MEMBERS_MANUAL_PART_NavigationGeometryInfo
  5204. REGISTER_MEMBERS_MANUAL_PART_NavigationGeometryInfo();
  5205. #endif
  5206. }
  5207. // struct NavigationPathPoint | File: ../Navigation/NavigationMesh.h
  5208. template <class T> void RegisterMembers_NavigationPathPoint(asIScriptEngine* engine, const char* className)
  5209. {
  5210. // Vector3 NavigationPathPoint::position_
  5211. engine->RegisterObjectProperty(className, "Vector3 position", offsetof(T, position_));
  5212. // NavigationPathPointFlag NavigationPathPoint::flag_
  5213. engine->RegisterObjectProperty(className, "NavigationPathPointFlag flag", offsetof(T, flag_));
  5214. // unsigned char NavigationPathPoint::areaID_
  5215. engine->RegisterObjectProperty(className, "uint8 areaID", offsetof(T, areaID_));
  5216. #ifdef REGISTER_MEMBERS_MANUAL_PART_NavigationPathPoint
  5217. REGISTER_MEMBERS_MANUAL_PART_NavigationPathPoint();
  5218. #endif
  5219. }
  5220. #endif // def URHO3D_NAVIGATION
  5221. #ifdef URHO3D_NETWORK
  5222. // struct PackageDownload | File: ../Network/Connection.h
  5223. template <class T> void RegisterMembers_PackageDownload(asIScriptEngine* engine, const char* className)
  5224. {
  5225. // SharedPtr<File> PackageDownload::file_
  5226. // Error: type "SharedPtr<File>" can not automatically bind
  5227. // HashSet<unsigned> PackageDownload::receivedFragments_
  5228. // Error: type "HashSet<unsigned>" can not automatically bind
  5229. // String PackageDownload::name_
  5230. engine->RegisterObjectProperty(className, "String name", offsetof(T, name_));
  5231. // unsigned PackageDownload::totalFragments_
  5232. engine->RegisterObjectProperty(className, "uint totalFragments", offsetof(T, totalFragments_));
  5233. // unsigned PackageDownload::checksum_
  5234. engine->RegisterObjectProperty(className, "uint checksum", offsetof(T, checksum_));
  5235. // bool PackageDownload::initiated_
  5236. engine->RegisterObjectProperty(className, "bool initiated", offsetof(T, initiated_));
  5237. #ifdef REGISTER_MEMBERS_MANUAL_PART_PackageDownload
  5238. REGISTER_MEMBERS_MANUAL_PART_PackageDownload();
  5239. #endif
  5240. }
  5241. // struct PackageUpload | File: ../Network/Connection.h
  5242. template <class T> void RegisterMembers_PackageUpload(asIScriptEngine* engine, const char* className)
  5243. {
  5244. // SharedPtr<File> PackageUpload::file_
  5245. // Error: type "SharedPtr<File>" can not automatically bind
  5246. // unsigned PackageUpload::fragment_
  5247. engine->RegisterObjectProperty(className, "uint fragment", offsetof(T, fragment_));
  5248. // unsigned PackageUpload::totalFragments_
  5249. engine->RegisterObjectProperty(className, "uint totalFragments", offsetof(T, totalFragments_));
  5250. #ifdef REGISTER_MEMBERS_MANUAL_PART_PackageUpload
  5251. REGISTER_MEMBERS_MANUAL_PART_PackageUpload();
  5252. #endif
  5253. }
  5254. // struct RemoteEvent | File: ../Network/Connection.h
  5255. template <class T> void RegisterMembers_RemoteEvent(asIScriptEngine* engine, const char* className)
  5256. {
  5257. // unsigned RemoteEvent::senderID_
  5258. engine->RegisterObjectProperty(className, "uint senderID", offsetof(T, senderID_));
  5259. // StringHash RemoteEvent::eventType_
  5260. engine->RegisterObjectProperty(className, "StringHash eventType", offsetof(T, eventType_));
  5261. // VariantMap RemoteEvent::eventData_
  5262. engine->RegisterObjectProperty(className, "VariantMap eventData", offsetof(T, eventData_));
  5263. // bool RemoteEvent::inOrder_
  5264. engine->RegisterObjectProperty(className, "bool inOrder", offsetof(T, inOrder_));
  5265. #ifdef REGISTER_MEMBERS_MANUAL_PART_RemoteEvent
  5266. REGISTER_MEMBERS_MANUAL_PART_RemoteEvent();
  5267. #endif
  5268. }
  5269. #endif // def URHO3D_NETWORK
  5270. #ifdef URHO3D_PHYSICS
  5271. // struct DelayedWorldTransform | File: ../Physics/PhysicsWorld.h
  5272. template <class T> void RegisterMembers_DelayedWorldTransform(asIScriptEngine* engine, const char* className)
  5273. {
  5274. // RigidBody* DelayedWorldTransform::rigidBody_
  5275. // Not registered because pointer
  5276. // RigidBody* DelayedWorldTransform::parentRigidBody_
  5277. // Not registered because pointer
  5278. // Vector3 DelayedWorldTransform::worldPosition_
  5279. engine->RegisterObjectProperty(className, "Vector3 worldPosition", offsetof(T, worldPosition_));
  5280. // Quaternion DelayedWorldTransform::worldRotation_
  5281. engine->RegisterObjectProperty(className, "Quaternion worldRotation", offsetof(T, worldRotation_));
  5282. #ifdef REGISTER_MEMBERS_MANUAL_PART_DelayedWorldTransform
  5283. REGISTER_MEMBERS_MANUAL_PART_DelayedWorldTransform();
  5284. #endif
  5285. }
  5286. // struct ManifoldPair | File: ../Physics/PhysicsWorld.h
  5287. template <class T> void RegisterMembers_ManifoldPair(asIScriptEngine* engine, const char* className)
  5288. {
  5289. // btPersistentManifold* ManifoldPair::manifold_
  5290. // Not registered because pointer
  5291. // btPersistentManifold* ManifoldPair::flippedManifold_
  5292. // Not registered because pointer
  5293. #ifdef REGISTER_MEMBERS_MANUAL_PART_ManifoldPair
  5294. REGISTER_MEMBERS_MANUAL_PART_ManifoldPair();
  5295. #endif
  5296. }
  5297. // struct PhysicsRaycastResult | File: ../Physics/PhysicsWorld.h
  5298. template <class T> void RegisterMembers_PhysicsRaycastResult(asIScriptEngine* engine, const char* className)
  5299. {
  5300. // bool PhysicsRaycastResult::operator !=(const PhysicsRaycastResult& rhs) const
  5301. // Only operator == is needed
  5302. // RigidBody* PhysicsRaycastResult::body_
  5303. // Not registered because pointer
  5304. // Vector3 PhysicsRaycastResult::position_
  5305. engine->RegisterObjectProperty(className, "Vector3 position", offsetof(T, position_));
  5306. // Vector3 PhysicsRaycastResult::normal_
  5307. engine->RegisterObjectProperty(className, "Vector3 normal", offsetof(T, normal_));
  5308. // float PhysicsRaycastResult::distance_
  5309. engine->RegisterObjectProperty(className, "float distance", offsetof(T, distance_));
  5310. // float PhysicsRaycastResult::hitFraction_
  5311. engine->RegisterObjectProperty(className, "float hitFraction", offsetof(T, hitFraction_));
  5312. #ifdef REGISTER_MEMBERS_MANUAL_PART_PhysicsRaycastResult
  5313. REGISTER_MEMBERS_MANUAL_PART_PhysicsRaycastResult();
  5314. #endif
  5315. }
  5316. // struct PhysicsWorldConfig | File: ../Physics/PhysicsWorld.h
  5317. template <class T> void RegisterMembers_PhysicsWorldConfig(asIScriptEngine* engine, const char* className)
  5318. {
  5319. // btCollisionConfiguration* PhysicsWorldConfig::collisionConfig_
  5320. // Not registered because pointer
  5321. #ifdef REGISTER_MEMBERS_MANUAL_PART_PhysicsWorldConfig
  5322. REGISTER_MEMBERS_MANUAL_PART_PhysicsWorldConfig();
  5323. #endif
  5324. }
  5325. #endif // def URHO3D_PHYSICS
  5326. #ifdef URHO3D_PHYSICS2D
  5327. // struct DelayedWorldTransform2D | File: ../Physics2D/PhysicsWorld2D.h
  5328. template <class T> void RegisterMembers_DelayedWorldTransform2D(asIScriptEngine* engine, const char* className)
  5329. {
  5330. // RigidBody2D* DelayedWorldTransform2D::rigidBody_
  5331. // Not registered because pointer
  5332. // RigidBody2D* DelayedWorldTransform2D::parentRigidBody_
  5333. // Not registered because pointer
  5334. // Vector3 DelayedWorldTransform2D::worldPosition_
  5335. engine->RegisterObjectProperty(className, "Vector3 worldPosition", offsetof(T, worldPosition_));
  5336. // Quaternion DelayedWorldTransform2D::worldRotation_
  5337. engine->RegisterObjectProperty(className, "Quaternion worldRotation", offsetof(T, worldRotation_));
  5338. #ifdef REGISTER_MEMBERS_MANUAL_PART_DelayedWorldTransform2D
  5339. REGISTER_MEMBERS_MANUAL_PART_DelayedWorldTransform2D();
  5340. #endif
  5341. }
  5342. // struct PhysicsRaycastResult2D | File: ../Physics2D/PhysicsWorld2D.h
  5343. template <class T> void RegisterMembers_PhysicsRaycastResult2D(asIScriptEngine* engine, const char* className)
  5344. {
  5345. // bool PhysicsRaycastResult2D::operator !=(const PhysicsRaycastResult2D& rhs) const
  5346. // Only operator == is needed
  5347. // RigidBody2D* PhysicsRaycastResult2D::body_
  5348. // Not registered because pointer
  5349. // Vector2 PhysicsRaycastResult2D::position_
  5350. engine->RegisterObjectProperty(className, "Vector2 position", offsetof(T, position_));
  5351. // Vector2 PhysicsRaycastResult2D::normal_
  5352. engine->RegisterObjectProperty(className, "Vector2 normal", offsetof(T, normal_));
  5353. // float PhysicsRaycastResult2D::distance_
  5354. engine->RegisterObjectProperty(className, "float distance", offsetof(T, distance_));
  5355. #ifdef REGISTER_MEMBERS_MANUAL_PART_PhysicsRaycastResult2D
  5356. REGISTER_MEMBERS_MANUAL_PART_PhysicsRaycastResult2D();
  5357. #endif
  5358. }
  5359. #endif // def URHO3D_PHYSICS2D
  5360. #ifdef URHO3D_URHO2D
  5361. // struct Particle2D | File: ../Urho2D/ParticleEmitter2D.h
  5362. template <class T> void RegisterMembers_Particle2D(asIScriptEngine* engine, const char* className)
  5363. {
  5364. // float Particle2D::timeToLive_
  5365. engine->RegisterObjectProperty(className, "float timeToLive", offsetof(T, timeToLive_));
  5366. // Vector3 Particle2D::position_
  5367. engine->RegisterObjectProperty(className, "Vector3 position", offsetof(T, position_));
  5368. // float Particle2D::size_
  5369. engine->RegisterObjectProperty(className, "float size", offsetof(T, size_));
  5370. // float Particle2D::sizeDelta_
  5371. engine->RegisterObjectProperty(className, "float sizeDelta", offsetof(T, sizeDelta_));
  5372. // float Particle2D::rotation_
  5373. engine->RegisterObjectProperty(className, "float rotation", offsetof(T, rotation_));
  5374. // float Particle2D::rotationDelta_
  5375. engine->RegisterObjectProperty(className, "float rotationDelta", offsetof(T, rotationDelta_));
  5376. // Color Particle2D::color_
  5377. engine->RegisterObjectProperty(className, "Color color", offsetof(T, color_));
  5378. // Color Particle2D::colorDelta_
  5379. engine->RegisterObjectProperty(className, "Color colorDelta", offsetof(T, colorDelta_));
  5380. // Vector2 Particle2D::startPos_
  5381. engine->RegisterObjectProperty(className, "Vector2 startPos", offsetof(T, startPos_));
  5382. // Vector2 Particle2D::velocity_
  5383. engine->RegisterObjectProperty(className, "Vector2 velocity", offsetof(T, velocity_));
  5384. // float Particle2D::radialAcceleration_
  5385. engine->RegisterObjectProperty(className, "float radialAcceleration", offsetof(T, radialAcceleration_));
  5386. // float Particle2D::tangentialAcceleration_
  5387. engine->RegisterObjectProperty(className, "float tangentialAcceleration", offsetof(T, tangentialAcceleration_));
  5388. // float Particle2D::emitRadius_
  5389. engine->RegisterObjectProperty(className, "float emitRadius", offsetof(T, emitRadius_));
  5390. // float Particle2D::emitRadiusDelta_
  5391. engine->RegisterObjectProperty(className, "float emitRadiusDelta", offsetof(T, emitRadiusDelta_));
  5392. // float Particle2D::emitRotation_
  5393. engine->RegisterObjectProperty(className, "float emitRotation", offsetof(T, emitRotation_));
  5394. // float Particle2D::emitRotationDelta_
  5395. engine->RegisterObjectProperty(className, "float emitRotationDelta", offsetof(T, emitRotationDelta_));
  5396. #ifdef REGISTER_MEMBERS_MANUAL_PART_Particle2D
  5397. REGISTER_MEMBERS_MANUAL_PART_Particle2D();
  5398. #endif
  5399. }
  5400. // struct SourceBatch2D | File: ../Urho2D/Drawable2D.h
  5401. template <class T> void RegisterMembers_SourceBatch2D(asIScriptEngine* engine, const char* className)
  5402. {
  5403. // WeakPtr<Drawable2D> SourceBatch2D::owner_
  5404. // Error: type "WeakPtr<Drawable2D>" can not automatically bind
  5405. // SharedPtr<Material> SourceBatch2D::material_
  5406. // Error: type "SharedPtr<Material>" can not automatically bind
  5407. // Vector<Vertex2D> SourceBatch2D::vertices_
  5408. // Error: type "Vector<Vertex2D>" can not automatically bind
  5409. // float SourceBatch2D::distance_
  5410. engine->RegisterObjectProperty(className, "float distance", offsetof(T, distance_));
  5411. // int SourceBatch2D::drawOrder_
  5412. engine->RegisterObjectProperty(className, "int drawOrder", offsetof(T, drawOrder_));
  5413. #ifdef REGISTER_MEMBERS_MANUAL_PART_SourceBatch2D
  5414. REGISTER_MEMBERS_MANUAL_PART_SourceBatch2D();
  5415. #endif
  5416. }
  5417. // struct TileMapInfo2D | File: ../Urho2D/TileMapDefs2D.h
  5418. template <class T> void RegisterMembers_TileMapInfo2D(asIScriptEngine* engine, const char* className)
  5419. {
  5420. // Vector2 TileMapInfo2D::ConvertPosition(const Vector2& position) const
  5421. engine->RegisterObjectMethod(className, "Vector2 ConvertPosition(const Vector2&in) const", AS_METHODPR(T, ConvertPosition, (const Vector2&) const, Vector2), AS_CALL_THISCALL);
  5422. // float TileMapInfo2D::GetMapHeight() const
  5423. engine->RegisterObjectMethod(className, "float GetMapHeight() const", AS_METHODPR(T, GetMapHeight, () const, float), AS_CALL_THISCALL);
  5424. engine->RegisterObjectMethod(className, "float get_mapHeight() const", AS_METHODPR(T, GetMapHeight, () const, float), AS_CALL_THISCALL);
  5425. // float TileMapInfo2D::GetMapWidth() const
  5426. engine->RegisterObjectMethod(className, "float GetMapWidth() const", AS_METHODPR(T, GetMapWidth, () const, float), AS_CALL_THISCALL);
  5427. engine->RegisterObjectMethod(className, "float get_mapWidth() const", AS_METHODPR(T, GetMapWidth, () const, float), AS_CALL_THISCALL);
  5428. // bool TileMapInfo2D::PositionToTileIndex(int& x, int& y, const Vector2& position) const
  5429. engine->RegisterObjectMethod(className, "bool PositionToTileIndex(int&, int&, const Vector2&in) const", AS_METHODPR(T, PositionToTileIndex, (int&, int&, const Vector2&) const, bool), AS_CALL_THISCALL);
  5430. // Vector2 TileMapInfo2D::TileIndexToPosition(int x, int y) const
  5431. engine->RegisterObjectMethod(className, "Vector2 TileIndexToPosition(int, int) const", AS_METHODPR(T, TileIndexToPosition, (int, int) const, Vector2), AS_CALL_THISCALL);
  5432. // Orientation2D TileMapInfo2D::orientation_
  5433. engine->RegisterObjectProperty(className, "Orientation2D orientation", offsetof(T, orientation_));
  5434. // int TileMapInfo2D::width_
  5435. engine->RegisterObjectProperty(className, "int width", offsetof(T, width_));
  5436. // int TileMapInfo2D::height_
  5437. engine->RegisterObjectProperty(className, "int height", offsetof(T, height_));
  5438. // float TileMapInfo2D::tileWidth_
  5439. engine->RegisterObjectProperty(className, "float tileWidth", offsetof(T, tileWidth_));
  5440. // float TileMapInfo2D::tileHeight_
  5441. engine->RegisterObjectProperty(className, "float tileHeight", offsetof(T, tileHeight_));
  5442. #ifdef REGISTER_MEMBERS_MANUAL_PART_TileMapInfo2D
  5443. REGISTER_MEMBERS_MANUAL_PART_TileMapInfo2D();
  5444. #endif
  5445. }
  5446. // struct Vertex2D | File: ../Urho2D/Drawable2D.h
  5447. template <class T> void RegisterMembers_Vertex2D(asIScriptEngine* engine, const char* className)
  5448. {
  5449. // Vector3 Vertex2D::position_
  5450. engine->RegisterObjectProperty(className, "Vector3 position", offsetof(T, position_));
  5451. // unsigned Vertex2D::color_
  5452. engine->RegisterObjectProperty(className, "uint color", offsetof(T, color_));
  5453. // Vector2 Vertex2D::uv_
  5454. engine->RegisterObjectProperty(className, "Vector2 uv", offsetof(T, uv_));
  5455. #ifdef REGISTER_MEMBERS_MANUAL_PART_Vertex2D
  5456. REGISTER_MEMBERS_MANUAL_PART_Vertex2D();
  5457. #endif
  5458. }
  5459. // struct ViewBatchInfo2D | File: ../Urho2D/Renderer2D.h
  5460. template <class T> void RegisterMembers_ViewBatchInfo2D(asIScriptEngine* engine, const char* className)
  5461. {
  5462. // SharedPtr<VertexBuffer> ViewBatchInfo2D::vertexBuffer_
  5463. // Error: type "SharedPtr<VertexBuffer>" can not automatically bind
  5464. // PODVector<const SourceBatch2D*> ViewBatchInfo2D::sourceBatches_
  5465. // Error: type "PODVector<const SourceBatch2D*>" can not automatically bind
  5466. // PODVector<float> ViewBatchInfo2D::distances_
  5467. // Error: type "PODVector<float>" can not automatically bind
  5468. // Vector<SharedPtr<Material>> ViewBatchInfo2D::materials_
  5469. // Error: type "Vector<SharedPtr<Material>>" can not automatically bind
  5470. // Vector<SharedPtr<Geometry>> ViewBatchInfo2D::geometries_
  5471. // Error: type "Vector<SharedPtr<Geometry>>" can not automatically bind
  5472. // unsigned ViewBatchInfo2D::vertexBufferUpdateFrameNumber_
  5473. engine->RegisterObjectProperty(className, "uint vertexBufferUpdateFrameNumber", offsetof(T, vertexBufferUpdateFrameNumber_));
  5474. // unsigned ViewBatchInfo2D::indexCount_
  5475. engine->RegisterObjectProperty(className, "uint indexCount", offsetof(T, indexCount_));
  5476. // unsigned ViewBatchInfo2D::vertexCount_
  5477. engine->RegisterObjectProperty(className, "uint vertexCount", offsetof(T, vertexCount_));
  5478. // unsigned ViewBatchInfo2D::batchUpdatedFrameNumber_
  5479. engine->RegisterObjectProperty(className, "uint batchUpdatedFrameNumber", offsetof(T, batchUpdatedFrameNumber_));
  5480. // unsigned ViewBatchInfo2D::batchCount_
  5481. engine->RegisterObjectProperty(className, "uint batchCount", offsetof(T, batchCount_));
  5482. #ifdef REGISTER_MEMBERS_MANUAL_PART_ViewBatchInfo2D
  5483. REGISTER_MEMBERS_MANUAL_PART_ViewBatchInfo2D();
  5484. #endif
  5485. }
  5486. #endif // def URHO3D_URHO2D
  5487. // class AbstractFile | File: ../IO/AbstractFile.h
  5488. template <class T> void RegisterMembers_AbstractFile(asIScriptEngine* engine, const char* className)
  5489. {
  5490. RegisterMembers_Deserializer<T>(engine, className);
  5491. RegisterMembers_Serializer<T>(engine, className);
  5492. // virtual void AbstractFile::SetName(const String& name)
  5493. engine->RegisterObjectMethod(className, "void SetName(const String&in)", AS_METHODPR(T, SetName, (const String&), void), AS_CALL_THISCALL);
  5494. engine->RegisterObjectMethod(className, "void set_name(const String&in)", AS_METHODPR(T, SetName, (const String&), void), AS_CALL_THISCALL);
  5495. #ifdef REGISTER_MEMBERS_MANUAL_PART_AbstractFile
  5496. REGISTER_MEMBERS_MANUAL_PART_AbstractFile();
  5497. #endif
  5498. }
  5499. // class AllContentOctreeQuery | File: ../Graphics/OctreeQuery.h
  5500. template <class T> void RegisterMembers_AllContentOctreeQuery(asIScriptEngine* engine, const char* className)
  5501. {
  5502. RegisterMembers_OctreeQuery<T>(engine, className);
  5503. #ifdef REGISTER_MEMBERS_MANUAL_PART_AllContentOctreeQuery
  5504. REGISTER_MEMBERS_MANUAL_PART_AllContentOctreeQuery();
  5505. #endif
  5506. }
  5507. // class AnimationState | File: ../Graphics/AnimationState.h
  5508. template <class T> void RegisterMembers_AnimationState(asIScriptEngine* engine, const char* className)
  5509. {
  5510. RegisterMembers_RefCounted<T>(engine, className);
  5511. // void AnimationState::AddTime(float delta)
  5512. engine->RegisterObjectMethod(className, "void AddTime(float)", AS_METHODPR(T, AddTime, (float), void), AS_CALL_THISCALL);
  5513. // void AnimationState::AddWeight(float delta)
  5514. engine->RegisterObjectMethod(className, "void AddWeight(float)", AS_METHODPR(T, AddWeight, (float), void), AS_CALL_THISCALL);
  5515. // void AnimationState::Apply()
  5516. engine->RegisterObjectMethod(className, "void Apply()", AS_METHODPR(T, Apply, (), void), AS_CALL_THISCALL);
  5517. // Animation* AnimationState::GetAnimation() const
  5518. engine->RegisterObjectMethod(className, "Animation@+ GetAnimation() const", AS_METHODPR(T, GetAnimation, () const, Animation*), AS_CALL_THISCALL);
  5519. engine->RegisterObjectMethod(className, "Animation@+ get_animation() const", AS_METHODPR(T, GetAnimation, () const, Animation*), AS_CALL_THISCALL);
  5520. // AnimationBlendMode AnimationState::GetBlendMode() const
  5521. engine->RegisterObjectMethod(className, "AnimationBlendMode GetBlendMode() const", AS_METHODPR(T, GetBlendMode, () const, AnimationBlendMode), AS_CALL_THISCALL);
  5522. engine->RegisterObjectMethod(className, "AnimationBlendMode get_blendMode() const", AS_METHODPR(T, GetBlendMode, () const, AnimationBlendMode), AS_CALL_THISCALL);
  5523. // float AnimationState::GetBoneWeight(unsigned index) const
  5524. engine->RegisterObjectMethod(className, "float GetBoneWeight(uint) const", AS_METHODPR(T, GetBoneWeight, (unsigned) const, float), AS_CALL_THISCALL);
  5525. // float AnimationState::GetBoneWeight(const String& name) const
  5526. engine->RegisterObjectMethod(className, "float GetBoneWeight(const String&in) const", AS_METHODPR(T, GetBoneWeight, (const String&) const, float), AS_CALL_THISCALL);
  5527. engine->RegisterObjectMethod(className, "float get_boneWeights(const String&in) const", AS_METHODPR(T, GetBoneWeight, (const String&) const, float), AS_CALL_THISCALL);
  5528. // float AnimationState::GetBoneWeight(StringHash nameHash) const
  5529. engine->RegisterObjectMethod(className, "float GetBoneWeight(StringHash) const", AS_METHODPR(T, GetBoneWeight, (StringHash) const, float), AS_CALL_THISCALL);
  5530. // unsigned char AnimationState::GetLayer() const
  5531. engine->RegisterObjectMethod(className, "uint8 GetLayer() const", AS_METHODPR(T, GetLayer, () const, unsigned char), AS_CALL_THISCALL);
  5532. engine->RegisterObjectMethod(className, "uint8 get_layer() const", AS_METHODPR(T, GetLayer, () const, unsigned char), AS_CALL_THISCALL);
  5533. // float AnimationState::GetLength() const
  5534. engine->RegisterObjectMethod(className, "float GetLength() const", AS_METHODPR(T, GetLength, () const, float), AS_CALL_THISCALL);
  5535. engine->RegisterObjectMethod(className, "float get_length() const", AS_METHODPR(T, GetLength, () const, float), AS_CALL_THISCALL);
  5536. // AnimatedModel* AnimationState::GetModel() const
  5537. engine->RegisterObjectMethod(className, "AnimatedModel@+ GetModel() const", AS_METHODPR(T, GetModel, () const, AnimatedModel*), AS_CALL_THISCALL);
  5538. engine->RegisterObjectMethod(className, "AnimatedModel@+ get_model() const", AS_METHODPR(T, GetModel, () const, AnimatedModel*), AS_CALL_THISCALL);
  5539. // Node* AnimationState::GetNode() const
  5540. engine->RegisterObjectMethod(className, "Node@+ GetNode() const", AS_METHODPR(T, GetNode, () const, Node*), AS_CALL_THISCALL);
  5541. engine->RegisterObjectMethod(className, "Node@+ get_node() const", AS_METHODPR(T, GetNode, () const, Node*), AS_CALL_THISCALL);
  5542. // Bone* AnimationState::GetStartBone() const
  5543. engine->RegisterObjectMethod(className, "Bone@ GetStartBone() const", AS_METHODPR(T, GetStartBone, () const, Bone*), AS_CALL_THISCALL);
  5544. engine->RegisterObjectMethod(className, "Bone@ get_startBone() const", AS_METHODPR(T, GetStartBone, () const, Bone*), AS_CALL_THISCALL);
  5545. // float AnimationState::GetTime() const
  5546. engine->RegisterObjectMethod(className, "float GetTime() const", AS_METHODPR(T, GetTime, () const, float), AS_CALL_THISCALL);
  5547. engine->RegisterObjectMethod(className, "float get_time() const", AS_METHODPR(T, GetTime, () const, float), AS_CALL_THISCALL);
  5548. // unsigned AnimationState::GetTrackIndex(Node* node) const
  5549. engine->RegisterObjectMethod(className, "uint GetTrackIndex(Node@+) const", AS_METHODPR(T, GetTrackIndex, (Node*) const, unsigned), AS_CALL_THISCALL);
  5550. // unsigned AnimationState::GetTrackIndex(const String& name) const
  5551. engine->RegisterObjectMethod(className, "uint GetTrackIndex(const String&in) const", AS_METHODPR(T, GetTrackIndex, (const String&) const, unsigned), AS_CALL_THISCALL);
  5552. // unsigned AnimationState::GetTrackIndex(StringHash nameHash) const
  5553. engine->RegisterObjectMethod(className, "uint GetTrackIndex(StringHash) const", AS_METHODPR(T, GetTrackIndex, (StringHash) const, unsigned), AS_CALL_THISCALL);
  5554. // float AnimationState::GetWeight() const
  5555. engine->RegisterObjectMethod(className, "float GetWeight() const", AS_METHODPR(T, GetWeight, () const, float), AS_CALL_THISCALL);
  5556. engine->RegisterObjectMethod(className, "float get_weight() const", AS_METHODPR(T, GetWeight, () const, float), AS_CALL_THISCALL);
  5557. // bool AnimationState::IsEnabled() const
  5558. engine->RegisterObjectMethod(className, "bool IsEnabled() const", AS_METHODPR(T, IsEnabled, () const, bool), AS_CALL_THISCALL);
  5559. engine->RegisterObjectMethod(className, "bool get_enabled() const", AS_METHODPR(T, IsEnabled, () const, bool), AS_CALL_THISCALL);
  5560. // bool AnimationState::IsLooped() const
  5561. engine->RegisterObjectMethod(className, "bool IsLooped() const", AS_METHODPR(T, IsLooped, () const, bool), AS_CALL_THISCALL);
  5562. engine->RegisterObjectMethod(className, "bool get_looped() const", AS_METHODPR(T, IsLooped, () const, bool), AS_CALL_THISCALL);
  5563. // void AnimationState::SetBlendMode(AnimationBlendMode mode)
  5564. engine->RegisterObjectMethod(className, "void SetBlendMode(AnimationBlendMode)", AS_METHODPR(T, SetBlendMode, (AnimationBlendMode), void), AS_CALL_THISCALL);
  5565. engine->RegisterObjectMethod(className, "void set_blendMode(AnimationBlendMode)", AS_METHODPR(T, SetBlendMode, (AnimationBlendMode), void), AS_CALL_THISCALL);
  5566. // void AnimationState::SetBoneWeight(unsigned index, float weight, bool recursive = false)
  5567. engine->RegisterObjectMethod(className, "void SetBoneWeight(uint, float, bool = false)", AS_METHODPR(T, SetBoneWeight, (unsigned, float, bool), void), AS_CALL_THISCALL);
  5568. // void AnimationState::SetBoneWeight(const String& name, float weight, bool recursive = false)
  5569. engine->RegisterObjectMethod(className, "void SetBoneWeight(const String&in, float, bool = false)", AS_METHODPR(T, SetBoneWeight, (const String&, float, bool), void), AS_CALL_THISCALL);
  5570. // void AnimationState::SetBoneWeight(StringHash nameHash, float weight, bool recursive = false)
  5571. engine->RegisterObjectMethod(className, "void SetBoneWeight(StringHash, float, bool = false)", AS_METHODPR(T, SetBoneWeight, (StringHash, float, bool), void), AS_CALL_THISCALL);
  5572. // void AnimationState::SetLayer(unsigned char layer)
  5573. engine->RegisterObjectMethod(className, "void SetLayer(uint8)", AS_METHODPR(T, SetLayer, (unsigned char), void), AS_CALL_THISCALL);
  5574. engine->RegisterObjectMethod(className, "void set_layer(uint8)", AS_METHODPR(T, SetLayer, (unsigned char), void), AS_CALL_THISCALL);
  5575. // void AnimationState::SetLooped(bool looped)
  5576. engine->RegisterObjectMethod(className, "void SetLooped(bool)", AS_METHODPR(T, SetLooped, (bool), void), AS_CALL_THISCALL);
  5577. engine->RegisterObjectMethod(className, "void set_looped(bool)", AS_METHODPR(T, SetLooped, (bool), void), AS_CALL_THISCALL);
  5578. // void AnimationState::SetStartBone(Bone* startBone)
  5579. engine->RegisterObjectMethod(className, "void SetStartBone(Bone@)", AS_METHODPR(T, SetStartBone, (Bone*), void), AS_CALL_THISCALL);
  5580. engine->RegisterObjectMethod(className, "void set_startBone(Bone@)", AS_METHODPR(T, SetStartBone, (Bone*), void), AS_CALL_THISCALL);
  5581. // void AnimationState::SetTime(float time)
  5582. engine->RegisterObjectMethod(className, "void SetTime(float)", AS_METHODPR(T, SetTime, (float), void), AS_CALL_THISCALL);
  5583. engine->RegisterObjectMethod(className, "void set_time(float)", AS_METHODPR(T, SetTime, (float), void), AS_CALL_THISCALL);
  5584. // void AnimationState::SetWeight(float weight)
  5585. engine->RegisterObjectMethod(className, "void SetWeight(float)", AS_METHODPR(T, SetWeight, (float), void), AS_CALL_THISCALL);
  5586. engine->RegisterObjectMethod(className, "void set_weight(float)", AS_METHODPR(T, SetWeight, (float), void), AS_CALL_THISCALL);
  5587. #ifdef REGISTER_MEMBERS_MANUAL_PART_AnimationState
  5588. REGISTER_MEMBERS_MANUAL_PART_AnimationState();
  5589. #endif
  5590. }
  5591. // class AttributeAccessor | File: ../Core/Attribute.h
  5592. template <class T> void RegisterMembers_AttributeAccessor(asIScriptEngine* engine, const char* className)
  5593. {
  5594. RegisterMembers_RefCounted<T>(engine, className);
  5595. // virtual void AttributeAccessor::Get(const Serializable* ptr, Variant& dest) const = 0
  5596. engine->RegisterObjectMethod(className, "void Get(Serializable@+, Variant&) const", AS_METHODPR(T, Get, (const Serializable*, Variant&) const, void), AS_CALL_THISCALL);
  5597. // virtual void AttributeAccessor::Set(Serializable* ptr, const Variant& src) = 0
  5598. engine->RegisterObjectMethod(className, "void Set(Serializable@+, const Variant&in)", AS_METHODPR(T, Set, (Serializable*, const Variant&), void), AS_CALL_THISCALL);
  5599. #ifdef REGISTER_MEMBERS_MANUAL_PART_AttributeAccessor
  5600. REGISTER_MEMBERS_MANUAL_PART_AttributeAccessor();
  5601. #endif
  5602. }
  5603. // class BackgroundLoader | File: ../Resource/BackgroundLoader.h
  5604. template <class T> void RegisterMembers_BackgroundLoader(asIScriptEngine* engine, const char* className)
  5605. {
  5606. RegisterMembers_RefCounted<T>(engine, className);
  5607. RegisterMembers_Thread<T>(engine, className);
  5608. // void BackgroundLoader::FinishResources(int maxMs)
  5609. engine->RegisterObjectMethod(className, "void FinishResources(int)", AS_METHODPR(T, FinishResources, (int), void), AS_CALL_THISCALL);
  5610. // unsigned BackgroundLoader::GetNumQueuedResources() const
  5611. engine->RegisterObjectMethod(className, "uint GetNumQueuedResources() const", AS_METHODPR(T, GetNumQueuedResources, () const, unsigned), AS_CALL_THISCALL);
  5612. // bool BackgroundLoader::QueueResource(StringHash type, const String& name, bool sendEventOnFailure, Resource* caller)
  5613. engine->RegisterObjectMethod(className, "bool QueueResource(StringHash, const String&in, bool, Resource@+)", AS_METHODPR(T, QueueResource, (StringHash, const String&, bool, Resource*), bool), AS_CALL_THISCALL);
  5614. // void BackgroundLoader::WaitForResource(StringHash type, StringHash nameHash)
  5615. engine->RegisterObjectMethod(className, "void WaitForResource(StringHash, StringHash)", AS_METHODPR(T, WaitForResource, (StringHash, StringHash), void), AS_CALL_THISCALL);
  5616. #ifdef REGISTER_MEMBERS_MANUAL_PART_BackgroundLoader
  5617. REGISTER_MEMBERS_MANUAL_PART_BackgroundLoader();
  5618. #endif
  5619. }
  5620. // struct BatchGroup | File: ../Graphics/Batch.h
  5621. template <class T> void RegisterMembers_BatchGroup(asIScriptEngine* engine, const char* className)
  5622. {
  5623. RegisterMembers_Batch<T>(engine, className);
  5624. // void BatchGroup::SetInstancingData(void* lockedData, unsigned stride, unsigned& freeIndex)
  5625. // Error: type "void*" can not automatically bind
  5626. // void BatchGroup::AddTransforms(const Batch& batch)
  5627. engine->RegisterObjectMethod(className, "void AddTransforms(const Batch&in)", AS_METHODPR(T, AddTransforms, (const Batch&), void), AS_CALL_THISCALL);
  5628. // PODVector<InstanceData> BatchGroup::instances_
  5629. // Error: type "PODVector<InstanceData>" can not automatically bind
  5630. // unsigned BatchGroup::startIndex_
  5631. engine->RegisterObjectProperty(className, "uint startIndex", offsetof(T, startIndex_));
  5632. #ifdef REGISTER_MEMBERS_MANUAL_PART_BatchGroup
  5633. REGISTER_MEMBERS_MANUAL_PART_BatchGroup();
  5634. #endif
  5635. }
  5636. // class BoxOctreeQuery | File: ../Graphics/OctreeQuery.h
  5637. template <class T> void RegisterMembers_BoxOctreeQuery(asIScriptEngine* engine, const char* className)
  5638. {
  5639. RegisterMembers_OctreeQuery<T>(engine, className);
  5640. // BoundingBox BoxOctreeQuery::box_
  5641. engine->RegisterObjectProperty(className, "BoundingBox box", offsetof(T, box_));
  5642. #ifdef REGISTER_MEMBERS_MANUAL_PART_BoxOctreeQuery
  5643. REGISTER_MEMBERS_MANUAL_PART_BoxOctreeQuery();
  5644. #endif
  5645. }
  5646. // struct ComponentReplicationState | File: ../Scene/ReplicationState.h
  5647. template <class T> void RegisterMembers_ComponentReplicationState(asIScriptEngine* engine, const char* className)
  5648. {
  5649. RegisterMembers_ReplicationState<T>(engine, className);
  5650. // NodeReplicationState* ComponentReplicationState::nodeState_
  5651. // Not registered because pointer
  5652. // WeakPtr<Component> ComponentReplicationState::component_
  5653. // Error: type "WeakPtr<Component>" can not automatically bind
  5654. // DirtyBits ComponentReplicationState::dirtyAttributes_
  5655. engine->RegisterObjectProperty(className, "DirtyBits dirtyAttributes", offsetof(T, dirtyAttributes_));
  5656. #ifdef REGISTER_MEMBERS_MANUAL_PART_ComponentReplicationState
  5657. REGISTER_MEMBERS_MANUAL_PART_ComponentReplicationState();
  5658. #endif
  5659. }
  5660. // SharedPtr<Object> Context::CreateObject(StringHash objectType)
  5661. template <class T> Object* Context_SharedPtrlesObjectgre_CreateObject_StringHash_template(T* _ptr, StringHash objectType)
  5662. {
  5663. SharedPtr<Object> result = _ptr->CreateObject(objectType);
  5664. return result.Detach();
  5665. }
  5666. // class Context | File: ../Core/Context.h
  5667. template <class T> void RegisterMembers_Context(asIScriptEngine* engine, const char* className)
  5668. {
  5669. RegisterMembers_RefCounted<T>(engine, className);
  5670. // const HashMap<StringHash, Vector<AttributeInfo>>& Context::GetAllAttributes() const
  5671. // Error: type "const HashMap<StringHash, Vector<AttributeInfo>>&" can not automatically bind
  5672. // AttributeInfo* Context::GetAttribute(StringHash objectType, const char* name)
  5673. // Error: type "const char*" can not automatically bind
  5674. // const Vector<AttributeInfo>* Context::GetAttributes(StringHash type) const
  5675. // Error: type "const Vector<AttributeInfo>*" can not automatically bind
  5676. // EventHandler* Context::GetEventHandler() const
  5677. // Error: type "EventHandler" can not bind bacause abstract value
  5678. // const Vector<AttributeInfo>* Context::GetNetworkAttributes(StringHash type) const
  5679. // Error: type "const Vector<AttributeInfo>*" can not automatically bind
  5680. // const HashMap<String, Vector<StringHash>>& Context::GetObjectCategories() const
  5681. // Error: type "const HashMap<String, Vector<StringHash>>&" can not automatically bind
  5682. // const HashMap<StringHash, SharedPtr<ObjectFactory>>& Context::GetObjectFactories() const
  5683. // Error: type "const HashMap<StringHash, SharedPtr<ObjectFactory>>&" can not automatically bind
  5684. // const HashMap<StringHash, SharedPtr<Object>>& Context::GetSubsystems() const
  5685. // Error: type "const HashMap<StringHash, SharedPtr<Object>>&" can not automatically bind
  5686. // AttributeHandle Context::RegisterAttribute(StringHash objectType, const AttributeInfo& attr)
  5687. // Error: type "AttributeHandle" can not automatically bind bacause have @nobind mark
  5688. // void Context::RegisterFactory(ObjectFactory* factory, const char* category)
  5689. // Error: type "const char*" can not automatically bind
  5690. // void Context::RemoveAttribute(StringHash objectType, const char* name)
  5691. // Error: type "const char*" can not automatically bind
  5692. // void Context::UpdateAttributeDefaultValue(StringHash objectType, const char* name, const Variant& defaultValue)
  5693. // Error: type "const char*" can not automatically bind
  5694. // void Context::CopyBaseAttributes(StringHash baseType, StringHash derivedType)
  5695. engine->RegisterObjectMethod(className, "void CopyBaseAttributes(StringHash, StringHash)", AS_METHODPR(T, CopyBaseAttributes, (StringHash, StringHash), void), AS_CALL_THISCALL);
  5696. // SharedPtr<Object> Context::CreateObject(StringHash objectType)
  5697. engine->RegisterObjectMethod(className, "Object@+ CreateObject(StringHash)", AS_FUNCTION_OBJFIRST(Context_SharedPtrlesObjectgre_CreateObject_StringHash_template<Context>), AS_CALL_CDECL_OBJFIRST);
  5698. // VariantMap& Context::GetEventDataMap()
  5699. engine->RegisterObjectMethod(className, "VariantMap& GetEventDataMap()", AS_METHODPR(T, GetEventDataMap, (), VariantMap&), AS_CALL_THISCALL);
  5700. // EventReceiverGroup* Context::GetEventReceivers(Object* sender, StringHash eventType)
  5701. engine->RegisterObjectMethod(className, "EventReceiverGroup@+ GetEventReceivers(Object@+, StringHash)", AS_METHODPR(T, GetEventReceivers, (Object*, StringHash), EventReceiverGroup*), AS_CALL_THISCALL);
  5702. // EventReceiverGroup* Context::GetEventReceivers(StringHash eventType)
  5703. engine->RegisterObjectMethod(className, "EventReceiverGroup@+ GetEventReceivers(StringHash)", AS_METHODPR(T, GetEventReceivers, (StringHash), EventReceiverGroup*), AS_CALL_THISCALL);
  5704. // Object* Context::GetEventSender() const
  5705. engine->RegisterObjectMethod(className, "Object@+ GetEventSender() const", AS_METHODPR(T, GetEventSender, () const, Object*), AS_CALL_THISCALL);
  5706. // const Variant& Context::GetGlobalVar(StringHash key) const
  5707. engine->RegisterObjectMethod(className, "const Variant& GetGlobalVar(StringHash) const", AS_METHODPR(T, GetGlobalVar, (StringHash) const, const Variant&), AS_CALL_THISCALL);
  5708. // const VariantMap& Context::GetGlobalVars() const
  5709. engine->RegisterObjectMethod(className, "const VariantMap& GetGlobalVars() const", AS_METHODPR(T, GetGlobalVars, () const, const VariantMap&), AS_CALL_THISCALL);
  5710. // Object* Context::GetSubsystem(StringHash type) const
  5711. engine->RegisterObjectMethod(className, "Object@+ GetSubsystem(StringHash) const", AS_METHODPR(T, GetSubsystem, (StringHash) const, Object*), AS_CALL_THISCALL);
  5712. // const String& Context::GetTypeName(StringHash objectType) const
  5713. engine->RegisterObjectMethod(className, "const String& GetTypeName(StringHash) const", AS_METHODPR(T, GetTypeName, (StringHash) const, const String&), AS_CALL_THISCALL);
  5714. // void Context::RegisterFactory(ObjectFactory* factory)
  5715. engine->RegisterObjectMethod(className, "void RegisterFactory(ObjectFactory@+)", AS_METHODPR(T, RegisterFactory, (ObjectFactory*), void), AS_CALL_THISCALL);
  5716. // void Context::RegisterSubsystem(Object* object)
  5717. engine->RegisterObjectMethod(className, "void RegisterSubsystem(Object@+)", AS_METHODPR(T, RegisterSubsystem, (Object*), void), AS_CALL_THISCALL);
  5718. // void Context::ReleaseSDL()
  5719. engine->RegisterObjectMethod(className, "void ReleaseSDL()", AS_METHODPR(T, ReleaseSDL, (), void), AS_CALL_THISCALL);
  5720. // void Context::RemoveAllAttributes(StringHash objectType)
  5721. engine->RegisterObjectMethod(className, "void RemoveAllAttributes(StringHash)", AS_METHODPR(T, RemoveAllAttributes, (StringHash), void), AS_CALL_THISCALL);
  5722. // void Context::RemoveSubsystem(StringHash objectType)
  5723. engine->RegisterObjectMethod(className, "void RemoveSubsystem(StringHash)", AS_METHODPR(T, RemoveSubsystem, (StringHash), void), AS_CALL_THISCALL);
  5724. // bool Context::RequireSDL(unsigned int sdlFlags)
  5725. engine->RegisterObjectMethod(className, "bool RequireSDL(uint)", AS_METHODPR(T, RequireSDL, (unsigned int), bool), AS_CALL_THISCALL);
  5726. // void Context::SetGlobalVar(StringHash key, const Variant& value)
  5727. engine->RegisterObjectMethod(className, "void SetGlobalVar(StringHash, const Variant&in)", AS_METHODPR(T, SetGlobalVar, (StringHash, const Variant&), void), AS_CALL_THISCALL);
  5728. // template <class T, class U> void Context::CopyBaseAttributes()
  5729. // Not registered because template
  5730. // template <class T> SharedPtr<T> Context::CreateObject()
  5731. // Not registered because template
  5732. // template <class T> AttributeInfo* Context::GetAttribute(const char* name)
  5733. // Not registered because template
  5734. // template <class T> T* Context::GetSubsystem() const
  5735. // Not registered because template
  5736. // template <class T> AttributeHandle Context::RegisterAttribute(const AttributeInfo& attr)
  5737. // Not registered because template
  5738. // template <class T> void Context::RegisterFactory()
  5739. // Not registered because template
  5740. // template <class T> void Context::RegisterFactory(const char* category)
  5741. // Not registered because template
  5742. // template <class T> T* Context::RegisterSubsystem()
  5743. // Not registered because template
  5744. // template <class T> void Context::RemoveAllAttributes()
  5745. // Not registered because template
  5746. // template <class T> void Context::RemoveAttribute(const char* name)
  5747. // Not registered because template
  5748. // template <class T> void Context::RemoveSubsystem()
  5749. // Not registered because template
  5750. // template <class T> void Context::UpdateAttributeDefaultValue(const char* name, const Variant& defaultValue)
  5751. // Not registered because template
  5752. #ifdef REGISTER_MEMBERS_MANUAL_PART_Context
  5753. REGISTER_MEMBERS_MANUAL_PART_Context();
  5754. #endif
  5755. }
  5756. // class EventHandler | File: ../Core/Object.h
  5757. template <class T> void RegisterMembers_EventHandler(asIScriptEngine* engine, const char* className)
  5758. {
  5759. RegisterMembers_LinkedListNode<T>(engine, className);
  5760. // virtual EventHandler* EventHandler::Clone() const = 0
  5761. // Error: type "EventHandler" can not bind bacause abstract value
  5762. // void* EventHandler::GetUserData() const
  5763. // Error: type "void*" can not automatically bind
  5764. // const StringHash& EventHandler::GetEventType() const
  5765. engine->RegisterObjectMethod(className, "const StringHash& GetEventType() const", AS_METHODPR(T, GetEventType, () const, const StringHash&), AS_CALL_THISCALL);
  5766. // Object* EventHandler::GetReceiver() const
  5767. engine->RegisterObjectMethod(className, "Object@+ GetReceiver() const", AS_METHODPR(T, GetReceiver, () const, Object*), AS_CALL_THISCALL);
  5768. // Object* EventHandler::GetSender() const
  5769. engine->RegisterObjectMethod(className, "Object@+ GetSender() const", AS_METHODPR(T, GetSender, () const, Object*), AS_CALL_THISCALL);
  5770. // virtual void EventHandler::Invoke(VariantMap& eventData) = 0
  5771. engine->RegisterObjectMethod(className, "void Invoke(VariantMap&)", AS_METHODPR(T, Invoke, (VariantMap&), void), AS_CALL_THISCALL);
  5772. // void EventHandler::SetSenderAndEventType(Object* sender, StringHash eventType)
  5773. engine->RegisterObjectMethod(className, "void SetSenderAndEventType(Object@+, StringHash)", AS_METHODPR(T, SetSenderAndEventType, (Object*, StringHash), void), AS_CALL_THISCALL);
  5774. #ifdef REGISTER_MEMBERS_MANUAL_PART_EventHandler
  5775. REGISTER_MEMBERS_MANUAL_PART_EventHandler();
  5776. #endif
  5777. }
  5778. // class EventProfilerBlock | File: ../Core/EventProfiler.h
  5779. template <class T> void RegisterMembers_EventProfilerBlock(asIScriptEngine* engine, const char* className)
  5780. {
  5781. RegisterMembers_ProfilerBlock<T>(engine, className);
  5782. // EventProfilerBlock* EventProfilerBlock::GetChild(StringHash eventID)
  5783. // Error: type "EventProfilerBlock" can not automatically bind bacause have @nobind mark
  5784. // StringHash EventProfilerBlock::eventID_
  5785. engine->RegisterObjectProperty(className, "StringHash eventID", offsetof(T, eventID_));
  5786. #ifdef REGISTER_MEMBERS_MANUAL_PART_EventProfilerBlock
  5787. REGISTER_MEMBERS_MANUAL_PART_EventProfilerBlock();
  5788. #endif
  5789. }
  5790. // class EventReceiverGroup | File: ../Core/Context.h
  5791. template <class T> void RegisterMembers_EventReceiverGroup(asIScriptEngine* engine, const char* className)
  5792. {
  5793. RegisterMembers_RefCounted<T>(engine, className);
  5794. // void EventReceiverGroup::Add(Object* object)
  5795. engine->RegisterObjectMethod(className, "void Add(Object@+)", AS_METHODPR(T, Add, (Object*), void), AS_CALL_THISCALL);
  5796. // void EventReceiverGroup::BeginSendEvent()
  5797. engine->RegisterObjectMethod(className, "void BeginSendEvent()", AS_METHODPR(T, BeginSendEvent, (), void), AS_CALL_THISCALL);
  5798. // void EventReceiverGroup::EndSendEvent()
  5799. engine->RegisterObjectMethod(className, "void EndSendEvent()", AS_METHODPR(T, EndSendEvent, (), void), AS_CALL_THISCALL);
  5800. // void EventReceiverGroup::Remove(Object* object)
  5801. engine->RegisterObjectMethod(className, "void Remove(Object@+)", AS_METHODPR(T, Remove, (Object*), void), AS_CALL_THISCALL);
  5802. // PODVector<Object*> EventReceiverGroup::receivers_
  5803. // Error: type "PODVector<Object*>" can not automatically bind
  5804. #ifdef REGISTER_MEMBERS_MANUAL_PART_EventReceiverGroup
  5805. REGISTER_MEMBERS_MANUAL_PART_EventReceiverGroup();
  5806. #endif
  5807. }
  5808. // const Vector<SharedPtr<Texture2D>>& FontFace::GetTextures() const
  5809. template <class T> CScriptArray* FontFace_constspVectorlesSharedPtrlesTexture2Dgregreamp_GetTextures_void_template(T* _ptr)
  5810. {
  5811. const Vector<SharedPtr<Texture2D>>& result = _ptr->GetTextures();
  5812. return VectorToHandleArray(result, "Array<Texture2D@>");
  5813. }
  5814. // class FontFace | File: ../UI/FontFace.h
  5815. template <class T> void RegisterMembers_FontFace(asIScriptEngine* engine, const char* className)
  5816. {
  5817. RegisterMembers_RefCounted<T>(engine, className);
  5818. // virtual const FontGlyph* FontFace::GetGlyph(unsigned c)
  5819. // Error: type "const FontGlyph*" can not automatically bind
  5820. // virtual bool FontFace::Load(const unsigned char* fontData, unsigned fontDataSize, float pointSize) = 0
  5821. // Error: type "const unsigned char*" can not automatically bind
  5822. // float FontFace::GetKerning(unsigned c, unsigned d) const
  5823. engine->RegisterObjectMethod(className, "float GetKerning(uint, uint) const", AS_METHODPR(T, GetKerning, (unsigned, unsigned) const, float), AS_CALL_THISCALL);
  5824. // float FontFace::GetPointSize() const
  5825. engine->RegisterObjectMethod(className, "float GetPointSize() const", AS_METHODPR(T, GetPointSize, () const, float), AS_CALL_THISCALL);
  5826. // float FontFace::GetRowHeight() const
  5827. engine->RegisterObjectMethod(className, "float GetRowHeight() const", AS_METHODPR(T, GetRowHeight, () const, float), AS_CALL_THISCALL);
  5828. // const Vector<SharedPtr<Texture2D>>& FontFace::GetTextures() const
  5829. engine->RegisterObjectMethod(className, "Array<Texture2D@>@ GetTextures() const", AS_FUNCTION_OBJFIRST(FontFace_constspVectorlesSharedPtrlesTexture2Dgregreamp_GetTextures_void_template<FontFace>), AS_CALL_CDECL_OBJFIRST);
  5830. // virtual bool FontFace::HasMutableGlyphs() const
  5831. engine->RegisterObjectMethod(className, "bool HasMutableGlyphs() const", AS_METHODPR(T, HasMutableGlyphs, () const, bool), AS_CALL_THISCALL);
  5832. // bool FontFace::IsDataLost() const
  5833. engine->RegisterObjectMethod(className, "bool IsDataLost() const", AS_METHODPR(T, IsDataLost, () const, bool), AS_CALL_THISCALL);
  5834. #ifdef REGISTER_MEMBERS_MANUAL_PART_FontFace
  5835. REGISTER_MEMBERS_MANUAL_PART_FontFace();
  5836. #endif
  5837. }
  5838. // class FrustumOctreeQuery | File: ../Graphics/OctreeQuery.h
  5839. template <class T> void RegisterMembers_FrustumOctreeQuery(asIScriptEngine* engine, const char* className)
  5840. {
  5841. RegisterMembers_OctreeQuery<T>(engine, className);
  5842. // Frustum FrustumOctreeQuery::frustum_
  5843. engine->RegisterObjectProperty(className, "Frustum frustum", offsetof(T, frustum_));
  5844. #ifdef REGISTER_MEMBERS_MANUAL_PART_FrustumOctreeQuery
  5845. REGISTER_MEMBERS_MANUAL_PART_FrustumOctreeQuery();
  5846. #endif
  5847. }
  5848. // struct NodeReplicationState | File: ../Scene/ReplicationState.h
  5849. template <class T> void RegisterMembers_NodeReplicationState(asIScriptEngine* engine, const char* className)
  5850. {
  5851. RegisterMembers_ReplicationState<T>(engine, className);
  5852. // SceneReplicationState* NodeReplicationState::sceneState_
  5853. // Not registered because pointer
  5854. // WeakPtr<Node> NodeReplicationState::node_
  5855. // Error: type "WeakPtr<Node>" can not automatically bind
  5856. // HashSet<StringHash> NodeReplicationState::dirtyVars_
  5857. // Error: type "HashSet<StringHash>" can not automatically bind
  5858. // HashMap<unsigned, ComponentReplicationState> NodeReplicationState::componentStates_
  5859. // Error: type "HashMap<unsigned, ComponentReplicationState>" can not automatically bind
  5860. // DirtyBits NodeReplicationState::dirtyAttributes_
  5861. engine->RegisterObjectProperty(className, "DirtyBits dirtyAttributes", offsetof(T, dirtyAttributes_));
  5862. // float NodeReplicationState::priorityAcc_
  5863. engine->RegisterObjectProperty(className, "float priorityAcc", offsetof(T, priorityAcc_));
  5864. // bool NodeReplicationState::markedDirty_
  5865. engine->RegisterObjectProperty(className, "bool markedDirty", offsetof(T, markedDirty_));
  5866. #ifdef REGISTER_MEMBERS_MANUAL_PART_NodeReplicationState
  5867. REGISTER_MEMBERS_MANUAL_PART_NodeReplicationState();
  5868. #endif
  5869. }
  5870. // void Object::UnsubscribeFromAllEventsExcept(const PODVector<StringHash>& exceptions, bool onlyUserData)
  5871. template <class T> void Object_void_UnsubscribeFromAllEventsExcept_constspPODVectorlesStringHashgreamp_bool_template(T* _ptr, CScriptArray* exceptions_conv, bool onlyUserData)
  5872. {
  5873. PODVector<StringHash> exceptions = ArrayToPODVector<StringHash>(exceptions_conv);
  5874. _ptr->UnsubscribeFromAllEventsExcept(exceptions, onlyUserData);
  5875. }
  5876. // class Object | File: ../Core/Object.h
  5877. template <class T> void RegisterMembers_Object(asIScriptEngine* engine, const char* className)
  5878. {
  5879. RegisterMembers_RefCounted<T>(engine, className);
  5880. // Context* Object::GetContext() const
  5881. // Error: type "Context*" can used only as function parameter
  5882. // EventHandler* Object::GetEventHandler() const
  5883. // Error: type "EventHandler" can not bind bacause abstract value
  5884. // virtual const TypeInfo* Object::GetTypeInfo() const = 0
  5885. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  5886. // bool Object::IsInstanceOf(const TypeInfo* typeInfo) const
  5887. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  5888. // void Object::SubscribeToEvent(StringHash eventType, EventHandler* handler)
  5889. // Error: type "EventHandler" can not bind bacause abstract value
  5890. // void Object::SubscribeToEvent(Object* sender, StringHash eventType, EventHandler* handler)
  5891. // Error: type "EventHandler" can not bind bacause abstract value
  5892. // void Object::SubscribeToEvent(StringHash eventType, const std::function<void(StringHash, VariantMap&)>& function, void* userData = nullptr)
  5893. // Error: type "const std::function<void(StringHash, VariantMap&)>&" can not automatically bind
  5894. // void Object::SubscribeToEvent(Object* sender, StringHash eventType, const std::function<void(StringHash, VariantMap&)>& function, void* userData = nullptr)
  5895. // Error: type "const std::function<void(StringHash, VariantMap&)>&" can not automatically bind
  5896. // bool Object::GetBlockEvents() const
  5897. engine->RegisterObjectMethod(className, "bool GetBlockEvents() const", AS_METHODPR(T, GetBlockEvents, () const, bool), AS_CALL_THISCALL);
  5898. // const String& Object::GetCategory() const
  5899. engine->RegisterObjectMethod(className, "const String& GetCategory() const", AS_METHODPR(T, GetCategory, () const, const String&), AS_CALL_THISCALL);
  5900. engine->RegisterObjectMethod(className, "const String& get_category() const", AS_METHODPR(T, GetCategory, () const, const String&), AS_CALL_THISCALL);
  5901. // VariantMap& Object::GetEventDataMap() const
  5902. engine->RegisterObjectMethod(className, "VariantMap& GetEventDataMap() const", AS_METHODPR(T, GetEventDataMap, () const, VariantMap&), AS_CALL_THISCALL);
  5903. // Object* Object::GetEventSender() const
  5904. engine->RegisterObjectMethod(className, "Object@+ GetEventSender() const", AS_METHODPR(T, GetEventSender, () const, Object*), AS_CALL_THISCALL);
  5905. // const Variant& Object::GetGlobalVar(StringHash key) const
  5906. engine->RegisterObjectMethod(className, "const Variant& GetGlobalVar(StringHash) const", AS_METHODPR(T, GetGlobalVar, (StringHash) const, const Variant&), AS_CALL_THISCALL);
  5907. engine->RegisterObjectMethod(className, "const Variant& get_globalVar(StringHash) const", AS_METHODPR(T, GetGlobalVar, (StringHash) const, const Variant&), AS_CALL_THISCALL);
  5908. // const VariantMap& Object::GetGlobalVars() const
  5909. engine->RegisterObjectMethod(className, "const VariantMap& GetGlobalVars() const", AS_METHODPR(T, GetGlobalVars, () const, const VariantMap&), AS_CALL_THISCALL);
  5910. engine->RegisterObjectMethod(className, "const VariantMap& get_globalVars() const", AS_METHODPR(T, GetGlobalVars, () const, const VariantMap&), AS_CALL_THISCALL);
  5911. // Object* Object::GetSubsystem(StringHash type) const
  5912. engine->RegisterObjectMethod(className, "Object@+ GetSubsystem(StringHash) const", AS_METHODPR(T, GetSubsystem, (StringHash) const, Object*), AS_CALL_THISCALL);
  5913. // virtual StringHash Object::GetType() const = 0
  5914. engine->RegisterObjectMethod(className, "StringHash GetType() const", AS_METHODPR(T, GetType, () const, StringHash), AS_CALL_THISCALL);
  5915. engine->RegisterObjectMethod(className, "StringHash get_type() const", AS_METHODPR(T, GetType, () const, StringHash), AS_CALL_THISCALL);
  5916. // virtual const String& Object::GetTypeName() const = 0
  5917. engine->RegisterObjectMethod(className, "const String& GetTypeName() const", AS_METHODPR(T, GetTypeName, () const, const String&), AS_CALL_THISCALL);
  5918. engine->RegisterObjectMethod(className, "const String& get_typeName() const", AS_METHODPR(T, GetTypeName, () const, const String&), AS_CALL_THISCALL);
  5919. // bool Object::HasEventHandlers() const
  5920. engine->RegisterObjectMethod(className, "bool HasEventHandlers() const", AS_METHODPR(T, HasEventHandlers, () const, bool), AS_CALL_THISCALL);
  5921. // bool Object::HasSubscribedToEvent(StringHash eventType) const
  5922. engine->RegisterObjectMethod(className, "bool HasSubscribedToEvent(StringHash) const", AS_METHODPR(T, HasSubscribedToEvent, (StringHash) const, bool), AS_CALL_THISCALL);
  5923. // bool Object::HasSubscribedToEvent(Object* sender, StringHash eventType) const
  5924. engine->RegisterObjectMethod(className, "bool HasSubscribedToEvent(Object@+, StringHash) const", AS_METHODPR(T, HasSubscribedToEvent, (Object*, StringHash) const, bool), AS_CALL_THISCALL);
  5925. // bool Object::IsInstanceOf(StringHash type) const
  5926. engine->RegisterObjectMethod(className, "bool IsInstanceOf(StringHash) const", AS_METHODPR(T, IsInstanceOf, (StringHash) const, bool), AS_CALL_THISCALL);
  5927. // virtual void Object::OnEvent(Object* sender, StringHash eventType, VariantMap& eventData)
  5928. engine->RegisterObjectMethod(className, "void OnEvent(Object@+, StringHash, VariantMap&)", AS_METHODPR(T, OnEvent, (Object*, StringHash, VariantMap&), void), AS_CALL_THISCALL);
  5929. // void Object::SendEvent(StringHash eventType)
  5930. engine->RegisterObjectMethod(className, "void SendEvent(StringHash)", AS_METHODPR(T, SendEvent, (StringHash), void), AS_CALL_THISCALL);
  5931. // void Object::SendEvent(StringHash eventType, VariantMap& eventData)
  5932. engine->RegisterObjectMethod(className, "void SendEvent(StringHash, VariantMap&)", AS_METHODPR(T, SendEvent, (StringHash, VariantMap&), void), AS_CALL_THISCALL);
  5933. // void Object::SetBlockEvents(bool block)
  5934. engine->RegisterObjectMethod(className, "void SetBlockEvents(bool)", AS_METHODPR(T, SetBlockEvents, (bool), void), AS_CALL_THISCALL);
  5935. // void Object::SetGlobalVar(StringHash key, const Variant& value)
  5936. engine->RegisterObjectMethod(className, "void SetGlobalVar(StringHash, const Variant&in)", AS_METHODPR(T, SetGlobalVar, (StringHash, const Variant&), void), AS_CALL_THISCALL);
  5937. engine->RegisterObjectMethod(className, "void set_globalVar(StringHash, const Variant&in)", AS_METHODPR(T, SetGlobalVar, (StringHash, const Variant&), void), AS_CALL_THISCALL);
  5938. // void Object::UnsubscribeFromAllEvents()
  5939. engine->RegisterObjectMethod(className, "void UnsubscribeFromAllEvents()", AS_METHODPR(T, UnsubscribeFromAllEvents, (), void), AS_CALL_THISCALL);
  5940. // void Object::UnsubscribeFromAllEventsExcept(const PODVector<StringHash>& exceptions, bool onlyUserData)
  5941. engine->RegisterObjectMethod(className, "void UnsubscribeFromAllEventsExcept(Array<StringHash>@+, bool)", AS_FUNCTION_OBJFIRST(Object_void_UnsubscribeFromAllEventsExcept_constspPODVectorlesStringHashgreamp_bool_template<Object>), AS_CALL_CDECL_OBJFIRST);
  5942. // void Object::UnsubscribeFromEvent(StringHash eventType)
  5943. engine->RegisterObjectMethod(className, "void UnsubscribeFromEvent(StringHash)", AS_METHODPR(T, UnsubscribeFromEvent, (StringHash), void), AS_CALL_THISCALL);
  5944. // void Object::UnsubscribeFromEvent(Object* sender, StringHash eventType)
  5945. engine->RegisterObjectMethod(className, "void UnsubscribeFromEvent(Object@+, StringHash)", AS_METHODPR(T, UnsubscribeFromEvent, (Object*, StringHash), void), AS_CALL_THISCALL);
  5946. // void Object::UnsubscribeFromEvents(Object* sender)
  5947. engine->RegisterObjectMethod(className, "void UnsubscribeFromEvents(Object@+)", AS_METHODPR(T, UnsubscribeFromEvents, (Object*), void), AS_CALL_THISCALL);
  5948. // template <typename T> T* Object::Cast()
  5949. // Not registered because template
  5950. // template <typename T> const T* Object::Cast() const
  5951. // Not registered because template
  5952. // template <class T> T* Object::GetSubsystem() const
  5953. // Not registered because template
  5954. // template <typename T> bool Object::IsInstanceOf() const
  5955. // Not registered because template
  5956. // template <typename... Args> void Object::SendEvent(StringHash eventType, Args... args)
  5957. // Not registered because template
  5958. // static const TypeInfo* Object::GetTypeInfoStatic()
  5959. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  5960. #ifdef REGISTER_MEMBERS_MANUAL_PART_Object
  5961. REGISTER_MEMBERS_MANUAL_PART_Object();
  5962. #endif
  5963. }
  5964. // virtual SharedPtr<Object> ObjectFactory::CreateObject() = 0
  5965. template <class T> Object* ObjectFactory_SharedPtrlesObjectgre_CreateObject_void_template(T* _ptr)
  5966. {
  5967. SharedPtr<Object> result = _ptr->CreateObject();
  5968. return result.Detach();
  5969. }
  5970. // class ObjectFactory | File: ../Core/Object.h
  5971. template <class T> void RegisterMembers_ObjectFactory(asIScriptEngine* engine, const char* className)
  5972. {
  5973. RegisterMembers_RefCounted<T>(engine, className);
  5974. // Context* ObjectFactory::GetContext() const
  5975. // Error: type "Context*" can used only as function parameter
  5976. // const TypeInfo* ObjectFactory::GetTypeInfo() const
  5977. // Error: type "TypeInfo" can not automatically bind bacause have @nobind mark
  5978. // virtual SharedPtr<Object> ObjectFactory::CreateObject() = 0
  5979. engine->RegisterObjectMethod(className, "Object@+ CreateObject()", AS_FUNCTION_OBJFIRST(ObjectFactory_SharedPtrlesObjectgre_CreateObject_void_template<ObjectFactory>), AS_CALL_CDECL_OBJFIRST);
  5980. // StringHash ObjectFactory::GetType() const
  5981. engine->RegisterObjectMethod(className, "StringHash GetType() const", AS_METHODPR(T, GetType, () const, StringHash), AS_CALL_THISCALL);
  5982. // const String& ObjectFactory::GetTypeName() const
  5983. engine->RegisterObjectMethod(className, "const String& GetTypeName() const", AS_METHODPR(T, GetTypeName, () const, const String&), AS_CALL_THISCALL);
  5984. #ifdef REGISTER_MEMBERS_MANUAL_PART_ObjectFactory
  5985. REGISTER_MEMBERS_MANUAL_PART_ObjectFactory();
  5986. #endif
  5987. }
  5988. // Vector<SharedPtr<ShaderVariation>>& Pass::GetPixelShaders()
  5989. template <class T> CScriptArray* Pass_VectorlesSharedPtrlesShaderVariationgregreamp_GetPixelShaders_void_template(T* _ptr)
  5990. {
  5991. Vector<SharedPtr<ShaderVariation>>& result = _ptr->GetPixelShaders();
  5992. return VectorToHandleArray(result, "Array<ShaderVariation@>");
  5993. }
  5994. // Vector<SharedPtr<ShaderVariation>>& Pass::GetPixelShaders(const StringHash& extraDefinesHash)
  5995. template <class T> CScriptArray* Pass_VectorlesSharedPtrlesShaderVariationgregreamp_GetPixelShaders_constspStringHashamp_template(T* _ptr, const StringHash& extraDefinesHash)
  5996. {
  5997. Vector<SharedPtr<ShaderVariation>>& result = _ptr->GetPixelShaders(extraDefinesHash);
  5998. return VectorToHandleArray(result, "Array<ShaderVariation@>");
  5999. }
  6000. // Vector<SharedPtr<ShaderVariation>>& Pass::GetVertexShaders()
  6001. template <class T> CScriptArray* Pass_VectorlesSharedPtrlesShaderVariationgregreamp_GetVertexShaders_void_template(T* _ptr)
  6002. {
  6003. Vector<SharedPtr<ShaderVariation>>& result = _ptr->GetVertexShaders();
  6004. return VectorToHandleArray(result, "Array<ShaderVariation@>");
  6005. }
  6006. // Vector<SharedPtr<ShaderVariation>>& Pass::GetVertexShaders(const StringHash& extraDefinesHash)
  6007. template <class T> CScriptArray* Pass_VectorlesSharedPtrlesShaderVariationgregreamp_GetVertexShaders_constspStringHashamp_template(T* _ptr, const StringHash& extraDefinesHash)
  6008. {
  6009. Vector<SharedPtr<ShaderVariation>>& result = _ptr->GetVertexShaders(extraDefinesHash);
  6010. return VectorToHandleArray(result, "Array<ShaderVariation@>");
  6011. }
  6012. // class Pass | File: ../Graphics/Technique.h
  6013. template <class T> void RegisterMembers_Pass(asIScriptEngine* engine, const char* className)
  6014. {
  6015. RegisterMembers_RefCounted<T>(engine, className);
  6016. // bool Pass::GetAlphaToCoverage() const
  6017. engine->RegisterObjectMethod(className, "bool GetAlphaToCoverage() const", AS_METHODPR(T, GetAlphaToCoverage, () const, bool), AS_CALL_THISCALL);
  6018. engine->RegisterObjectMethod(className, "bool get_alphaToCoverage() const", AS_METHODPR(T, GetAlphaToCoverage, () const, bool), AS_CALL_THISCALL);
  6019. // BlendMode Pass::GetBlendMode() const
  6020. engine->RegisterObjectMethod(className, "BlendMode GetBlendMode() const", AS_METHODPR(T, GetBlendMode, () const, BlendMode), AS_CALL_THISCALL);
  6021. engine->RegisterObjectMethod(className, "BlendMode get_blendMode() const", AS_METHODPR(T, GetBlendMode, () const, BlendMode), AS_CALL_THISCALL);
  6022. // CullMode Pass::GetCullMode() const
  6023. engine->RegisterObjectMethod(className, "CullMode GetCullMode() const", AS_METHODPR(T, GetCullMode, () const, CullMode), AS_CALL_THISCALL);
  6024. engine->RegisterObjectMethod(className, "CullMode get_cullMode() const", AS_METHODPR(T, GetCullMode, () const, CullMode), AS_CALL_THISCALL);
  6025. // CompareMode Pass::GetDepthTestMode() const
  6026. engine->RegisterObjectMethod(className, "CompareMode GetDepthTestMode() const", AS_METHODPR(T, GetDepthTestMode, () const, CompareMode), AS_CALL_THISCALL);
  6027. engine->RegisterObjectMethod(className, "CompareMode get_depthTestMode() const", AS_METHODPR(T, GetDepthTestMode, () const, CompareMode), AS_CALL_THISCALL);
  6028. // bool Pass::GetDepthWrite() const
  6029. engine->RegisterObjectMethod(className, "bool GetDepthWrite() const", AS_METHODPR(T, GetDepthWrite, () const, bool), AS_CALL_THISCALL);
  6030. engine->RegisterObjectMethod(className, "bool get_depthWrite() const", AS_METHODPR(T, GetDepthWrite, () const, bool), AS_CALL_THISCALL);
  6031. // String Pass::GetEffectivePixelShaderDefines() const
  6032. engine->RegisterObjectMethod(className, "String GetEffectivePixelShaderDefines() const", AS_METHODPR(T, GetEffectivePixelShaderDefines, () const, String), AS_CALL_THISCALL);
  6033. // String Pass::GetEffectiveVertexShaderDefines() const
  6034. engine->RegisterObjectMethod(className, "String GetEffectiveVertexShaderDefines() const", AS_METHODPR(T, GetEffectiveVertexShaderDefines, () const, String), AS_CALL_THISCALL);
  6035. // unsigned Pass::GetIndex() const
  6036. engine->RegisterObjectMethod(className, "uint GetIndex() const", AS_METHODPR(T, GetIndex, () const, unsigned), AS_CALL_THISCALL);
  6037. // PassLightingMode Pass::GetLightingMode() const
  6038. engine->RegisterObjectMethod(className, "PassLightingMode GetLightingMode() const", AS_METHODPR(T, GetLightingMode, () const, PassLightingMode), AS_CALL_THISCALL);
  6039. engine->RegisterObjectMethod(className, "PassLightingMode get_lightingMode() const", AS_METHODPR(T, GetLightingMode, () const, PassLightingMode), AS_CALL_THISCALL);
  6040. // const String& Pass::GetName() const
  6041. engine->RegisterObjectMethod(className, "const String& GetName() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  6042. // const String& Pass::GetPixelShader() const
  6043. engine->RegisterObjectMethod(className, "const String& GetPixelShader() const", AS_METHODPR(T, GetPixelShader, () const, const String&), AS_CALL_THISCALL);
  6044. engine->RegisterObjectMethod(className, "const String& get_pixelShader() const", AS_METHODPR(T, GetPixelShader, () const, const String&), AS_CALL_THISCALL);
  6045. // const String& Pass::GetPixelShaderDefineExcludes() const
  6046. engine->RegisterObjectMethod(className, "const String& GetPixelShaderDefineExcludes() const", AS_METHODPR(T, GetPixelShaderDefineExcludes, () const, const String&), AS_CALL_THISCALL);
  6047. engine->RegisterObjectMethod(className, "const String& get_pixelShaderDefineExcludes() const", AS_METHODPR(T, GetPixelShaderDefineExcludes, () const, const String&), AS_CALL_THISCALL);
  6048. // const String& Pass::GetPixelShaderDefines() const
  6049. engine->RegisterObjectMethod(className, "const String& GetPixelShaderDefines() const", AS_METHODPR(T, GetPixelShaderDefines, () const, const String&), AS_CALL_THISCALL);
  6050. engine->RegisterObjectMethod(className, "const String& get_pixelShaderDefines() const", AS_METHODPR(T, GetPixelShaderDefines, () const, const String&), AS_CALL_THISCALL);
  6051. // Vector<SharedPtr<ShaderVariation>>& Pass::GetPixelShaders()
  6052. engine->RegisterObjectMethod(className, "Array<ShaderVariation@>@ GetPixelShaders()", AS_FUNCTION_OBJFIRST(Pass_VectorlesSharedPtrlesShaderVariationgregreamp_GetPixelShaders_void_template<Pass>), AS_CALL_CDECL_OBJFIRST);
  6053. // Vector<SharedPtr<ShaderVariation>>& Pass::GetPixelShaders(const StringHash& extraDefinesHash)
  6054. engine->RegisterObjectMethod(className, "Array<ShaderVariation@>@ GetPixelShaders(const StringHash&in)", AS_FUNCTION_OBJFIRST(Pass_VectorlesSharedPtrlesShaderVariationgregreamp_GetPixelShaders_constspStringHashamp_template<Pass>), AS_CALL_CDECL_OBJFIRST);
  6055. // unsigned Pass::GetShadersLoadedFrameNumber() const
  6056. engine->RegisterObjectMethod(className, "uint GetShadersLoadedFrameNumber() const", AS_METHODPR(T, GetShadersLoadedFrameNumber, () const, unsigned), AS_CALL_THISCALL);
  6057. // const String& Pass::GetVertexShader() const
  6058. engine->RegisterObjectMethod(className, "const String& GetVertexShader() const", AS_METHODPR(T, GetVertexShader, () const, const String&), AS_CALL_THISCALL);
  6059. engine->RegisterObjectMethod(className, "const String& get_vertexShader() const", AS_METHODPR(T, GetVertexShader, () const, const String&), AS_CALL_THISCALL);
  6060. // const String& Pass::GetVertexShaderDefineExcludes() const
  6061. engine->RegisterObjectMethod(className, "const String& GetVertexShaderDefineExcludes() const", AS_METHODPR(T, GetVertexShaderDefineExcludes, () const, const String&), AS_CALL_THISCALL);
  6062. engine->RegisterObjectMethod(className, "const String& get_vertexShaderDefineExcludes() const", AS_METHODPR(T, GetVertexShaderDefineExcludes, () const, const String&), AS_CALL_THISCALL);
  6063. // const String& Pass::GetVertexShaderDefines() const
  6064. engine->RegisterObjectMethod(className, "const String& GetVertexShaderDefines() const", AS_METHODPR(T, GetVertexShaderDefines, () const, const String&), AS_CALL_THISCALL);
  6065. engine->RegisterObjectMethod(className, "const String& get_vertexShaderDefines() const", AS_METHODPR(T, GetVertexShaderDefines, () const, const String&), AS_CALL_THISCALL);
  6066. // Vector<SharedPtr<ShaderVariation>>& Pass::GetVertexShaders()
  6067. engine->RegisterObjectMethod(className, "Array<ShaderVariation@>@ GetVertexShaders()", AS_FUNCTION_OBJFIRST(Pass_VectorlesSharedPtrlesShaderVariationgregreamp_GetVertexShaders_void_template<Pass>), AS_CALL_CDECL_OBJFIRST);
  6068. // Vector<SharedPtr<ShaderVariation>>& Pass::GetVertexShaders(const StringHash& extraDefinesHash)
  6069. engine->RegisterObjectMethod(className, "Array<ShaderVariation@>@ GetVertexShaders(const StringHash&in)", AS_FUNCTION_OBJFIRST(Pass_VectorlesSharedPtrlesShaderVariationgregreamp_GetVertexShaders_constspStringHashamp_template<Pass>), AS_CALL_CDECL_OBJFIRST);
  6070. // bool Pass::IsDesktop() const
  6071. engine->RegisterObjectMethod(className, "bool IsDesktop() const", AS_METHODPR(T, IsDesktop, () const, bool), AS_CALL_THISCALL);
  6072. engine->RegisterObjectMethod(className, "bool get_desktop() const", AS_METHODPR(T, IsDesktop, () const, bool), AS_CALL_THISCALL);
  6073. // void Pass::MarkShadersLoaded(unsigned frameNumber)
  6074. engine->RegisterObjectMethod(className, "void MarkShadersLoaded(uint)", AS_METHODPR(T, MarkShadersLoaded, (unsigned), void), AS_CALL_THISCALL);
  6075. // void Pass::ReleaseShaders()
  6076. engine->RegisterObjectMethod(className, "void ReleaseShaders()", AS_METHODPR(T, ReleaseShaders, (), void), AS_CALL_THISCALL);
  6077. // void Pass::SetAlphaToCoverage(bool enable)
  6078. engine->RegisterObjectMethod(className, "void SetAlphaToCoverage(bool)", AS_METHODPR(T, SetAlphaToCoverage, (bool), void), AS_CALL_THISCALL);
  6079. engine->RegisterObjectMethod(className, "void set_alphaToCoverage(bool)", AS_METHODPR(T, SetAlphaToCoverage, (bool), void), AS_CALL_THISCALL);
  6080. // void Pass::SetBlendMode(BlendMode mode)
  6081. engine->RegisterObjectMethod(className, "void SetBlendMode(BlendMode)", AS_METHODPR(T, SetBlendMode, (BlendMode), void), AS_CALL_THISCALL);
  6082. engine->RegisterObjectMethod(className, "void set_blendMode(BlendMode)", AS_METHODPR(T, SetBlendMode, (BlendMode), void), AS_CALL_THISCALL);
  6083. // void Pass::SetCullMode(CullMode mode)
  6084. engine->RegisterObjectMethod(className, "void SetCullMode(CullMode)", AS_METHODPR(T, SetCullMode, (CullMode), void), AS_CALL_THISCALL);
  6085. engine->RegisterObjectMethod(className, "void set_cullMode(CullMode)", AS_METHODPR(T, SetCullMode, (CullMode), void), AS_CALL_THISCALL);
  6086. // void Pass::SetDepthTestMode(CompareMode mode)
  6087. engine->RegisterObjectMethod(className, "void SetDepthTestMode(CompareMode)", AS_METHODPR(T, SetDepthTestMode, (CompareMode), void), AS_CALL_THISCALL);
  6088. engine->RegisterObjectMethod(className, "void set_depthTestMode(CompareMode)", AS_METHODPR(T, SetDepthTestMode, (CompareMode), void), AS_CALL_THISCALL);
  6089. // void Pass::SetDepthWrite(bool enable)
  6090. engine->RegisterObjectMethod(className, "void SetDepthWrite(bool)", AS_METHODPR(T, SetDepthWrite, (bool), void), AS_CALL_THISCALL);
  6091. engine->RegisterObjectMethod(className, "void set_depthWrite(bool)", AS_METHODPR(T, SetDepthWrite, (bool), void), AS_CALL_THISCALL);
  6092. // void Pass::SetIsDesktop(bool enable)
  6093. engine->RegisterObjectMethod(className, "void SetIsDesktop(bool)", AS_METHODPR(T, SetIsDesktop, (bool), void), AS_CALL_THISCALL);
  6094. engine->RegisterObjectMethod(className, "void set_desktop(bool)", AS_METHODPR(T, SetIsDesktop, (bool), void), AS_CALL_THISCALL);
  6095. // void Pass::SetLightingMode(PassLightingMode mode)
  6096. engine->RegisterObjectMethod(className, "void SetLightingMode(PassLightingMode)", AS_METHODPR(T, SetLightingMode, (PassLightingMode), void), AS_CALL_THISCALL);
  6097. engine->RegisterObjectMethod(className, "void set_lightingMode(PassLightingMode)", AS_METHODPR(T, SetLightingMode, (PassLightingMode), void), AS_CALL_THISCALL);
  6098. // void Pass::SetPixelShader(const String& name)
  6099. engine->RegisterObjectMethod(className, "void SetPixelShader(const String&in)", AS_METHODPR(T, SetPixelShader, (const String&), void), AS_CALL_THISCALL);
  6100. engine->RegisterObjectMethod(className, "void set_pixelShader(const String&in)", AS_METHODPR(T, SetPixelShader, (const String&), void), AS_CALL_THISCALL);
  6101. // void Pass::SetPixelShaderDefineExcludes(const String& excludes)
  6102. engine->RegisterObjectMethod(className, "void SetPixelShaderDefineExcludes(const String&in)", AS_METHODPR(T, SetPixelShaderDefineExcludes, (const String&), void), AS_CALL_THISCALL);
  6103. engine->RegisterObjectMethod(className, "void set_pixelShaderDefineExcludes(const String&in)", AS_METHODPR(T, SetPixelShaderDefineExcludes, (const String&), void), AS_CALL_THISCALL);
  6104. // void Pass::SetPixelShaderDefines(const String& defines)
  6105. engine->RegisterObjectMethod(className, "void SetPixelShaderDefines(const String&in)", AS_METHODPR(T, SetPixelShaderDefines, (const String&), void), AS_CALL_THISCALL);
  6106. engine->RegisterObjectMethod(className, "void set_pixelShaderDefines(const String&in)", AS_METHODPR(T, SetPixelShaderDefines, (const String&), void), AS_CALL_THISCALL);
  6107. // void Pass::SetVertexShader(const String& name)
  6108. engine->RegisterObjectMethod(className, "void SetVertexShader(const String&in)", AS_METHODPR(T, SetVertexShader, (const String&), void), AS_CALL_THISCALL);
  6109. engine->RegisterObjectMethod(className, "void set_vertexShader(const String&in)", AS_METHODPR(T, SetVertexShader, (const String&), void), AS_CALL_THISCALL);
  6110. // void Pass::SetVertexShaderDefineExcludes(const String& excludes)
  6111. engine->RegisterObjectMethod(className, "void SetVertexShaderDefineExcludes(const String&in)", AS_METHODPR(T, SetVertexShaderDefineExcludes, (const String&), void), AS_CALL_THISCALL);
  6112. engine->RegisterObjectMethod(className, "void set_vertexShaderDefineExcludes(const String&in)", AS_METHODPR(T, SetVertexShaderDefineExcludes, (const String&), void), AS_CALL_THISCALL);
  6113. // void Pass::SetVertexShaderDefines(const String& defines)
  6114. engine->RegisterObjectMethod(className, "void SetVertexShaderDefines(const String&in)", AS_METHODPR(T, SetVertexShaderDefines, (const String&), void), AS_CALL_THISCALL);
  6115. engine->RegisterObjectMethod(className, "void set_vertexShaderDefines(const String&in)", AS_METHODPR(T, SetVertexShaderDefines, (const String&), void), AS_CALL_THISCALL);
  6116. #ifdef REGISTER_MEMBERS_MANUAL_PART_Pass
  6117. REGISTER_MEMBERS_MANUAL_PART_Pass();
  6118. #endif
  6119. }
  6120. // class PointOctreeQuery | File: ../Graphics/OctreeQuery.h
  6121. template <class T> void RegisterMembers_PointOctreeQuery(asIScriptEngine* engine, const char* className)
  6122. {
  6123. RegisterMembers_OctreeQuery<T>(engine, className);
  6124. // Vector3 PointOctreeQuery::point_
  6125. engine->RegisterObjectProperty(className, "Vector3 point", offsetof(T, point_));
  6126. #ifdef REGISTER_MEMBERS_MANUAL_PART_PointOctreeQuery
  6127. REGISTER_MEMBERS_MANUAL_PART_PointOctreeQuery();
  6128. #endif
  6129. }
  6130. // SharedPtr<RenderPath> RenderPath::Clone()
  6131. template <class T> RenderPath* RenderPath_SharedPtrlesRenderPathgre_Clone_void_template(T* _ptr)
  6132. {
  6133. SharedPtr<RenderPath> result = _ptr->Clone();
  6134. return result.Detach();
  6135. }
  6136. // class RenderPath | File: ../Graphics/RenderPath.h
  6137. template <class T> void RegisterMembers_RenderPath(asIScriptEngine* engine, const char* className)
  6138. {
  6139. RegisterMembers_RefCounted<T>(engine, className);
  6140. // RenderPathCommand* RenderPath::GetCommand(unsigned index)
  6141. // Error: type "RenderPathCommand*" can not automatically bind
  6142. // void RenderPath::AddCommand(const RenderPathCommand& command)
  6143. engine->RegisterObjectMethod(className, "void AddCommand(const RenderPathCommand&in)", AS_METHODPR(T, AddCommand, (const RenderPathCommand&), void), AS_CALL_THISCALL);
  6144. // void RenderPath::AddRenderTarget(const RenderTargetInfo& info)
  6145. engine->RegisterObjectMethod(className, "void AddRenderTarget(const RenderTargetInfo&in)", AS_METHODPR(T, AddRenderTarget, (const RenderTargetInfo&), void), AS_CALL_THISCALL);
  6146. // bool RenderPath::Append(XMLFile* file)
  6147. engine->RegisterObjectMethod(className, "bool Append(XMLFile@+)", AS_METHODPR(T, Append, (XMLFile*), bool), AS_CALL_THISCALL);
  6148. // SharedPtr<RenderPath> RenderPath::Clone()
  6149. engine->RegisterObjectMethod(className, "RenderPath@+ Clone()", AS_FUNCTION_OBJFIRST(RenderPath_SharedPtrlesRenderPathgre_Clone_void_template<RenderPath>), AS_CALL_CDECL_OBJFIRST);
  6150. // unsigned RenderPath::GetNumCommands() const
  6151. engine->RegisterObjectMethod(className, "uint GetNumCommands() const", AS_METHODPR(T, GetNumCommands, () const, unsigned), AS_CALL_THISCALL);
  6152. engine->RegisterObjectMethod(className, "uint get_numCommands() const", AS_METHODPR(T, GetNumCommands, () const, unsigned), AS_CALL_THISCALL);
  6153. // unsigned RenderPath::GetNumRenderTargets() const
  6154. engine->RegisterObjectMethod(className, "uint GetNumRenderTargets() const", AS_METHODPR(T, GetNumRenderTargets, () const, unsigned), AS_CALL_THISCALL);
  6155. engine->RegisterObjectMethod(className, "uint get_numRenderTargets() const", AS_METHODPR(T, GetNumRenderTargets, () const, unsigned), AS_CALL_THISCALL);
  6156. // const Variant& RenderPath::GetShaderParameter(const String& name) const
  6157. engine->RegisterObjectMethod(className, "const Variant& GetShaderParameter(const String&in) const", AS_METHODPR(T, GetShaderParameter, (const String&) const, const Variant&), AS_CALL_THISCALL);
  6158. engine->RegisterObjectMethod(className, "const Variant& get_shaderParameters(const String&in) const", AS_METHODPR(T, GetShaderParameter, (const String&) const, const Variant&), AS_CALL_THISCALL);
  6159. // void RenderPath::InsertCommand(unsigned index, const RenderPathCommand& command)
  6160. engine->RegisterObjectMethod(className, "void InsertCommand(uint, const RenderPathCommand&in)", AS_METHODPR(T, InsertCommand, (unsigned, const RenderPathCommand&), void), AS_CALL_THISCALL);
  6161. // bool RenderPath::IsAdded(const String& tag) const
  6162. engine->RegisterObjectMethod(className, "bool IsAdded(const String&in) const", AS_METHODPR(T, IsAdded, (const String&) const, bool), AS_CALL_THISCALL);
  6163. engine->RegisterObjectMethod(className, "bool get_added(const String&in) const", AS_METHODPR(T, IsAdded, (const String&) const, bool), AS_CALL_THISCALL);
  6164. // bool RenderPath::IsEnabled(const String& tag) const
  6165. engine->RegisterObjectMethod(className, "bool IsEnabled(const String&in) const", AS_METHODPR(T, IsEnabled, (const String&) const, bool), AS_CALL_THISCALL);
  6166. engine->RegisterObjectMethod(className, "bool get_enabled(const String&in) const", AS_METHODPR(T, IsEnabled, (const String&) const, bool), AS_CALL_THISCALL);
  6167. // bool RenderPath::Load(XMLFile* file)
  6168. engine->RegisterObjectMethod(className, "bool Load(XMLFile@+)", AS_METHODPR(T, Load, (XMLFile*), bool), AS_CALL_THISCALL);
  6169. // void RenderPath::RemoveCommand(unsigned index)
  6170. engine->RegisterObjectMethod(className, "void RemoveCommand(uint)", AS_METHODPR(T, RemoveCommand, (unsigned), void), AS_CALL_THISCALL);
  6171. // void RenderPath::RemoveCommands(const String& tag)
  6172. engine->RegisterObjectMethod(className, "void RemoveCommands(const String&in)", AS_METHODPR(T, RemoveCommands, (const String&), void), AS_CALL_THISCALL);
  6173. // void RenderPath::RemoveRenderTarget(unsigned index)
  6174. engine->RegisterObjectMethod(className, "void RemoveRenderTarget(uint)", AS_METHODPR(T, RemoveRenderTarget, (unsigned), void), AS_CALL_THISCALL);
  6175. // void RenderPath::RemoveRenderTarget(const String& name)
  6176. engine->RegisterObjectMethod(className, "void RemoveRenderTarget(const String&in)", AS_METHODPR(T, RemoveRenderTarget, (const String&), void), AS_CALL_THISCALL);
  6177. // void RenderPath::RemoveRenderTargets(const String& tag)
  6178. engine->RegisterObjectMethod(className, "void RemoveRenderTargets(const String&in)", AS_METHODPR(T, RemoveRenderTargets, (const String&), void), AS_CALL_THISCALL);
  6179. // void RenderPath::SetCommand(unsigned index, const RenderPathCommand& command)
  6180. engine->RegisterObjectMethod(className, "void SetCommand(uint, const RenderPathCommand&in)", AS_METHODPR(T, SetCommand, (unsigned, const RenderPathCommand&), void), AS_CALL_THISCALL);
  6181. engine->RegisterObjectMethod(className, "void set_commands(uint, const RenderPathCommand&in)", AS_METHODPR(T, SetCommand, (unsigned, const RenderPathCommand&), void), AS_CALL_THISCALL);
  6182. // void RenderPath::SetEnabled(const String& tag, bool active)
  6183. engine->RegisterObjectMethod(className, "void SetEnabled(const String&in, bool)", AS_METHODPR(T, SetEnabled, (const String&, bool), void), AS_CALL_THISCALL);
  6184. // void RenderPath::SetRenderTarget(unsigned index, const RenderTargetInfo& info)
  6185. engine->RegisterObjectMethod(className, "void SetRenderTarget(uint, const RenderTargetInfo&in)", AS_METHODPR(T, SetRenderTarget, (unsigned, const RenderTargetInfo&), void), AS_CALL_THISCALL);
  6186. engine->RegisterObjectMethod(className, "void set_renderTargets(uint, const RenderTargetInfo&in)", AS_METHODPR(T, SetRenderTarget, (unsigned, const RenderTargetInfo&), void), AS_CALL_THISCALL);
  6187. // void RenderPath::SetShaderParameter(const String& name, const Variant& value)
  6188. engine->RegisterObjectMethod(className, "void SetShaderParameter(const String&in, const Variant&in)", AS_METHODPR(T, SetShaderParameter, (const String&, const Variant&), void), AS_CALL_THISCALL);
  6189. engine->RegisterObjectMethod(className, "void set_shaderParameters(const String&in, const Variant&in)", AS_METHODPR(T, SetShaderParameter, (const String&, const Variant&), void), AS_CALL_THISCALL);
  6190. // void RenderPath::ToggleEnabled(const String& tag)
  6191. engine->RegisterObjectMethod(className, "void ToggleEnabled(const String&in)", AS_METHODPR(T, ToggleEnabled, (const String&), void), AS_CALL_THISCALL);
  6192. // Vector<RenderTargetInfo> RenderPath::renderTargets_
  6193. // Error: type "Vector<RenderTargetInfo>" can not automatically bind
  6194. // Vector<RenderPathCommand> RenderPath::commands_
  6195. // Error: type "Vector<RenderPathCommand>" can not automatically bind
  6196. #ifdef REGISTER_MEMBERS_MANUAL_PART_RenderPath
  6197. REGISTER_MEMBERS_MANUAL_PART_RenderPath();
  6198. #endif
  6199. }
  6200. // class RenderSurface | File: ../Graphics/RenderSurface.h
  6201. template <class T> void RegisterMembers_RenderSurface(asIScriptEngine* engine, const char* className)
  6202. {
  6203. RegisterMembers_RefCounted<T>(engine, className);
  6204. // void* RenderSurface::GetReadOnlyView() const
  6205. // Error: type "void*" can not automatically bind
  6206. // void* RenderSurface::GetRenderTargetView() const
  6207. // Error: type "void*" can not automatically bind
  6208. // void* RenderSurface::GetSurface() const
  6209. // Error: type "void*" can not automatically bind
  6210. // bool RenderSurface::CreateRenderBuffer(unsigned width, unsigned height, unsigned format, int multiSample)
  6211. engine->RegisterObjectMethod(className, "bool CreateRenderBuffer(uint, uint, uint, int)", AS_METHODPR(T, CreateRenderBuffer, (unsigned, unsigned, unsigned, int), bool), AS_CALL_THISCALL);
  6212. // bool RenderSurface::GetAutoResolve() const
  6213. engine->RegisterObjectMethod(className, "bool GetAutoResolve() const", AS_METHODPR(T, GetAutoResolve, () const, bool), AS_CALL_THISCALL);
  6214. // int RenderSurface::GetHeight() const
  6215. engine->RegisterObjectMethod(className, "int GetHeight() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  6216. engine->RegisterObjectMethod(className, "int get_height() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  6217. // RenderSurface* RenderSurface::GetLinkedDepthStencil() const
  6218. engine->RegisterObjectMethod(className, "RenderSurface@+ GetLinkedDepthStencil() const", AS_METHODPR(T, GetLinkedDepthStencil, () const, RenderSurface*), AS_CALL_THISCALL);
  6219. engine->RegisterObjectMethod(className, "RenderSurface@+ get_linkedDepthStencil() const", AS_METHODPR(T, GetLinkedDepthStencil, () const, RenderSurface*), AS_CALL_THISCALL);
  6220. // RenderSurface* RenderSurface::GetLinkedRenderTarget() const
  6221. engine->RegisterObjectMethod(className, "RenderSurface@+ GetLinkedRenderTarget() const", AS_METHODPR(T, GetLinkedRenderTarget, () const, RenderSurface*), AS_CALL_THISCALL);
  6222. engine->RegisterObjectMethod(className, "RenderSurface@+ get_linkedRenderTarget() const", AS_METHODPR(T, GetLinkedRenderTarget, () const, RenderSurface*), AS_CALL_THISCALL);
  6223. // int RenderSurface::GetMultiSample() const
  6224. engine->RegisterObjectMethod(className, "int GetMultiSample() const", AS_METHODPR(T, GetMultiSample, () const, int), AS_CALL_THISCALL);
  6225. // unsigned RenderSurface::GetNumViewports() const
  6226. engine->RegisterObjectMethod(className, "uint GetNumViewports() const", AS_METHODPR(T, GetNumViewports, () const, unsigned), AS_CALL_THISCALL);
  6227. engine->RegisterObjectMethod(className, "uint get_numViewports() const", AS_METHODPR(T, GetNumViewports, () const, unsigned), AS_CALL_THISCALL);
  6228. // Texture* RenderSurface::GetParentTexture() const
  6229. engine->RegisterObjectMethod(className, "Texture@+ GetParentTexture() const", AS_METHODPR(T, GetParentTexture, () const, Texture*), AS_CALL_THISCALL);
  6230. engine->RegisterObjectMethod(className, "Texture@+ get_parentTexture() const", AS_METHODPR(T, GetParentTexture, () const, Texture*), AS_CALL_THISCALL);
  6231. // unsigned RenderSurface::GetRenderBuffer() const
  6232. engine->RegisterObjectMethod(className, "uint GetRenderBuffer() const", AS_METHODPR(T, GetRenderBuffer, () const, unsigned), AS_CALL_THISCALL);
  6233. // unsigned RenderSurface::GetTarget() const
  6234. engine->RegisterObjectMethod(className, "uint GetTarget() const", AS_METHODPR(T, GetTarget, () const, unsigned), AS_CALL_THISCALL);
  6235. // RenderSurfaceUpdateMode RenderSurface::GetUpdateMode() const
  6236. engine->RegisterObjectMethod(className, "RenderSurfaceUpdateMode GetUpdateMode() const", AS_METHODPR(T, GetUpdateMode, () const, RenderSurfaceUpdateMode), AS_CALL_THISCALL);
  6237. engine->RegisterObjectMethod(className, "RenderSurfaceUpdateMode get_updateMode() const", AS_METHODPR(T, GetUpdateMode, () const, RenderSurfaceUpdateMode), AS_CALL_THISCALL);
  6238. // TextureUsage RenderSurface::GetUsage() const
  6239. engine->RegisterObjectMethod(className, "TextureUsage GetUsage() const", AS_METHODPR(T, GetUsage, () const, TextureUsage), AS_CALL_THISCALL);
  6240. engine->RegisterObjectMethod(className, "TextureUsage get_usage() const", AS_METHODPR(T, GetUsage, () const, TextureUsage), AS_CALL_THISCALL);
  6241. // Viewport* RenderSurface::GetViewport(unsigned index) const
  6242. engine->RegisterObjectMethod(className, "Viewport@+ GetViewport(uint) const", AS_METHODPR(T, GetViewport, (unsigned) const, Viewport*), AS_CALL_THISCALL);
  6243. engine->RegisterObjectMethod(className, "Viewport@+ get_viewports(uint) const", AS_METHODPR(T, GetViewport, (unsigned) const, Viewport*), AS_CALL_THISCALL);
  6244. // int RenderSurface::GetWidth() const
  6245. engine->RegisterObjectMethod(className, "int GetWidth() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  6246. engine->RegisterObjectMethod(className, "int get_width() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  6247. // bool RenderSurface::IsResolveDirty() const
  6248. engine->RegisterObjectMethod(className, "bool IsResolveDirty() const", AS_METHODPR(T, IsResolveDirty, () const, bool), AS_CALL_THISCALL);
  6249. engine->RegisterObjectMethod(className, "bool get_resolveDirty() const", AS_METHODPR(T, IsResolveDirty, () const, bool), AS_CALL_THISCALL);
  6250. // bool RenderSurface::IsUpdateQueued() const
  6251. engine->RegisterObjectMethod(className, "bool IsUpdateQueued() const", AS_METHODPR(T, IsUpdateQueued, () const, bool), AS_CALL_THISCALL);
  6252. // void RenderSurface::OnDeviceLost()
  6253. engine->RegisterObjectMethod(className, "void OnDeviceLost()", AS_METHODPR(T, OnDeviceLost, (), void), AS_CALL_THISCALL);
  6254. // void RenderSurface::QueueUpdate()
  6255. engine->RegisterObjectMethod(className, "void QueueUpdate()", AS_METHODPR(T, QueueUpdate, (), void), AS_CALL_THISCALL);
  6256. // void RenderSurface::Release()
  6257. engine->RegisterObjectMethod(className, "void Release()", AS_METHODPR(T, Release, (), void), AS_CALL_THISCALL);
  6258. // void RenderSurface::ResetUpdateQueued()
  6259. engine->RegisterObjectMethod(className, "void ResetUpdateQueued()", AS_METHODPR(T, ResetUpdateQueued, (), void), AS_CALL_THISCALL);
  6260. // void RenderSurface::SetLinkedDepthStencil(RenderSurface* depthStencil)
  6261. engine->RegisterObjectMethod(className, "void SetLinkedDepthStencil(RenderSurface@+)", AS_METHODPR(T, SetLinkedDepthStencil, (RenderSurface*), void), AS_CALL_THISCALL);
  6262. engine->RegisterObjectMethod(className, "void set_linkedDepthStencil(RenderSurface@+)", AS_METHODPR(T, SetLinkedDepthStencil, (RenderSurface*), void), AS_CALL_THISCALL);
  6263. // void RenderSurface::SetLinkedRenderTarget(RenderSurface* renderTarget)
  6264. engine->RegisterObjectMethod(className, "void SetLinkedRenderTarget(RenderSurface@+)", AS_METHODPR(T, SetLinkedRenderTarget, (RenderSurface*), void), AS_CALL_THISCALL);
  6265. engine->RegisterObjectMethod(className, "void set_linkedRenderTarget(RenderSurface@+)", AS_METHODPR(T, SetLinkedRenderTarget, (RenderSurface*), void), AS_CALL_THISCALL);
  6266. // void RenderSurface::SetNumViewports(unsigned num)
  6267. engine->RegisterObjectMethod(className, "void SetNumViewports(uint)", AS_METHODPR(T, SetNumViewports, (unsigned), void), AS_CALL_THISCALL);
  6268. engine->RegisterObjectMethod(className, "void set_numViewports(uint)", AS_METHODPR(T, SetNumViewports, (unsigned), void), AS_CALL_THISCALL);
  6269. // void RenderSurface::SetResolveDirty(bool enable)
  6270. engine->RegisterObjectMethod(className, "void SetResolveDirty(bool)", AS_METHODPR(T, SetResolveDirty, (bool), void), AS_CALL_THISCALL);
  6271. // void RenderSurface::SetUpdateMode(RenderSurfaceUpdateMode mode)
  6272. engine->RegisterObjectMethod(className, "void SetUpdateMode(RenderSurfaceUpdateMode)", AS_METHODPR(T, SetUpdateMode, (RenderSurfaceUpdateMode), void), AS_CALL_THISCALL);
  6273. engine->RegisterObjectMethod(className, "void set_updateMode(RenderSurfaceUpdateMode)", AS_METHODPR(T, SetUpdateMode, (RenderSurfaceUpdateMode), void), AS_CALL_THISCALL);
  6274. // void RenderSurface::SetViewport(unsigned index, Viewport* viewport)
  6275. engine->RegisterObjectMethod(className, "void SetViewport(uint, Viewport@+)", AS_METHODPR(T, SetViewport, (unsigned, Viewport*), void), AS_CALL_THISCALL);
  6276. engine->RegisterObjectMethod(className, "void set_viewports(uint, Viewport@+)", AS_METHODPR(T, SetViewport, (unsigned, Viewport*), void), AS_CALL_THISCALL);
  6277. // void* RenderSurface::surface_
  6278. // Not registered because have @nobind mark
  6279. // void* RenderSurface::renderTargetView_
  6280. // Not registered because have @nobind mark
  6281. // unsigned RenderSurface::renderBuffer_
  6282. // Not registered because have @nobind mark
  6283. // void* RenderSurface::readOnlyView_
  6284. // Not registered because have @nobind mark
  6285. // unsigned RenderSurface::target_
  6286. // Not registered because have @nobind mark
  6287. #ifdef REGISTER_MEMBERS_MANUAL_PART_RenderSurface
  6288. REGISTER_MEMBERS_MANUAL_PART_RenderSurface();
  6289. #endif
  6290. }
  6291. // struct SceneReplicationState | File: ../Scene/ReplicationState.h
  6292. template <class T> void RegisterMembers_SceneReplicationState(asIScriptEngine* engine, const char* className)
  6293. {
  6294. RegisterMembers_ReplicationState<T>(engine, className);
  6295. // void SceneReplicationState::Clear()
  6296. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  6297. // HashMap<unsigned, NodeReplicationState> SceneReplicationState::nodeStates_
  6298. // Error: type "HashMap<unsigned, NodeReplicationState>" can not automatically bind
  6299. // HashSet<unsigned> SceneReplicationState::dirtyNodes_
  6300. // Error: type "HashSet<unsigned>" can not automatically bind
  6301. #ifdef REGISTER_MEMBERS_MANUAL_PART_SceneReplicationState
  6302. REGISTER_MEMBERS_MANUAL_PART_SceneReplicationState();
  6303. #endif
  6304. }
  6305. // class ShaderVariation | File: ../Graphics/ShaderVariation.h
  6306. template <class T> void RegisterMembers_ShaderVariation(asIScriptEngine* engine, const char* className)
  6307. {
  6308. RegisterMembers_RefCounted<T>(engine, className);
  6309. RegisterMembers_GPUObject<T>(engine, className);
  6310. // const PODVector<unsigned char>& ShaderVariation::GetByteCode() const
  6311. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  6312. // const unsigned* ShaderVariation::GetConstantBufferSizes() const
  6313. // Error: type "const unsigned*" can not automatically bind
  6314. // const HashMap<StringHash, ShaderParameter>& ShaderVariation::GetParameters() const
  6315. // Error: type "const HashMap<StringHash, ShaderParameter>&" can not automatically bind
  6316. // bool ShaderVariation::Create()
  6317. engine->RegisterObjectMethod(className, "bool Create()", AS_METHODPR(T, Create, (), bool), AS_CALL_THISCALL);
  6318. // const String& ShaderVariation::GetCompilerOutput() const
  6319. engine->RegisterObjectMethod(className, "const String& GetCompilerOutput() const", AS_METHODPR(T, GetCompilerOutput, () const, const String&), AS_CALL_THISCALL);
  6320. // const String& ShaderVariation::GetDefines() const
  6321. engine->RegisterObjectMethod(className, "const String& GetDefines() const", AS_METHODPR(T, GetDefines, () const, const String&), AS_CALL_THISCALL);
  6322. // const String& ShaderVariation::GetDefinesClipPlane()
  6323. engine->RegisterObjectMethod(className, "const String& GetDefinesClipPlane()", AS_METHODPR(T, GetDefinesClipPlane, (), const String&), AS_CALL_THISCALL);
  6324. // unsigned long long ShaderVariation::GetElementHash() const
  6325. engine->RegisterObjectMethod(className, "uint64 GetElementHash() const", AS_METHODPR(T, GetElementHash, () const, unsigned long long), AS_CALL_THISCALL);
  6326. // String ShaderVariation::GetFullName() const
  6327. engine->RegisterObjectMethod(className, "String GetFullName() const", AS_METHODPR(T, GetFullName, () const, String), AS_CALL_THISCALL);
  6328. // const String& ShaderVariation::GetName() const
  6329. engine->RegisterObjectMethod(className, "const String& GetName() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  6330. // Shader* ShaderVariation::GetOwner() const
  6331. engine->RegisterObjectMethod(className, "Shader@+ GetOwner() const", AS_METHODPR(T, GetOwner, () const, Shader*), AS_CALL_THISCALL);
  6332. // ShaderType ShaderVariation::GetShaderType() const
  6333. engine->RegisterObjectMethod(className, "ShaderType GetShaderType() const", AS_METHODPR(T, GetShaderType, () const, ShaderType), AS_CALL_THISCALL);
  6334. // bool ShaderVariation::HasParameter(StringHash param) const
  6335. engine->RegisterObjectMethod(className, "bool HasParameter(StringHash) const", AS_METHODPR(T, HasParameter, (StringHash) const, bool), AS_CALL_THISCALL);
  6336. // bool ShaderVariation::HasTextureUnit(TextureUnit unit) const
  6337. engine->RegisterObjectMethod(className, "bool HasTextureUnit(TextureUnit) const", AS_METHODPR(T, HasTextureUnit, (TextureUnit) const, bool), AS_CALL_THISCALL);
  6338. // void ShaderVariation::SetDefines(const String& defines)
  6339. engine->RegisterObjectMethod(className, "void SetDefines(const String&in)", AS_METHODPR(T, SetDefines, (const String&), void), AS_CALL_THISCALL);
  6340. // void ShaderVariation::SetName(const String& name)
  6341. engine->RegisterObjectMethod(className, "void SetName(const String&in)", AS_METHODPR(T, SetName, (const String&), void), AS_CALL_THISCALL);
  6342. // static const char* ShaderVariation::elementSemanticNames[]
  6343. // Error: type "const char*" can not automatically bind
  6344. #ifdef REGISTER_MEMBERS_MANUAL_PART_ShaderVariation
  6345. REGISTER_MEMBERS_MANUAL_PART_ShaderVariation();
  6346. #endif
  6347. }
  6348. // class SoundStream | File: ../Audio/SoundStream.h
  6349. template <class T> void RegisterMembers_SoundStream(asIScriptEngine* engine, const char* className)
  6350. {
  6351. RegisterMembers_RefCounted<T>(engine, className);
  6352. // virtual unsigned SoundStream::GetData(signed char* dest, unsigned numBytes) = 0
  6353. // Error: type "signed char*" can not automatically bind
  6354. // float SoundStream::GetFrequency() const
  6355. engine->RegisterObjectMethod(className, "float GetFrequency() const", AS_METHODPR(T, GetFrequency, () const, float), AS_CALL_THISCALL);
  6356. // unsigned SoundStream::GetIntFrequency() const
  6357. engine->RegisterObjectMethod(className, "uint GetIntFrequency() const", AS_METHODPR(T, GetIntFrequency, () const, unsigned), AS_CALL_THISCALL);
  6358. // unsigned SoundStream::GetSampleSize() const
  6359. engine->RegisterObjectMethod(className, "uint GetSampleSize() const", AS_METHODPR(T, GetSampleSize, () const, unsigned), AS_CALL_THISCALL);
  6360. // bool SoundStream::GetStopAtEnd() const
  6361. engine->RegisterObjectMethod(className, "bool GetStopAtEnd() const", AS_METHODPR(T, GetStopAtEnd, () const, bool), AS_CALL_THISCALL);
  6362. // bool SoundStream::IsSixteenBit() const
  6363. engine->RegisterObjectMethod(className, "bool IsSixteenBit() const", AS_METHODPR(T, IsSixteenBit, () const, bool), AS_CALL_THISCALL);
  6364. // bool SoundStream::IsStereo() const
  6365. engine->RegisterObjectMethod(className, "bool IsStereo() const", AS_METHODPR(T, IsStereo, () const, bool), AS_CALL_THISCALL);
  6366. // virtual bool SoundStream::Seek(unsigned sample_number)
  6367. engine->RegisterObjectMethod(className, "bool Seek(uint)", AS_METHODPR(T, Seek, (unsigned), bool), AS_CALL_THISCALL);
  6368. // void SoundStream::SetFormat(unsigned frequency, bool sixteenBit, bool stereo)
  6369. engine->RegisterObjectMethod(className, "void SetFormat(uint, bool, bool)", AS_METHODPR(T, SetFormat, (unsigned, bool, bool), void), AS_CALL_THISCALL);
  6370. // void SoundStream::SetStopAtEnd(bool enable)
  6371. engine->RegisterObjectMethod(className, "void SetStopAtEnd(bool)", AS_METHODPR(T, SetStopAtEnd, (bool), void), AS_CALL_THISCALL);
  6372. #ifdef REGISTER_MEMBERS_MANUAL_PART_SoundStream
  6373. REGISTER_MEMBERS_MANUAL_PART_SoundStream();
  6374. #endif
  6375. }
  6376. // class SphereOctreeQuery | File: ../Graphics/OctreeQuery.h
  6377. template <class T> void RegisterMembers_SphereOctreeQuery(asIScriptEngine* engine, const char* className)
  6378. {
  6379. RegisterMembers_OctreeQuery<T>(engine, className);
  6380. // Sphere SphereOctreeQuery::sphere_
  6381. engine->RegisterObjectProperty(className, "Sphere sphere", offsetof(T, sphere_));
  6382. #ifdef REGISTER_MEMBERS_MANUAL_PART_SphereOctreeQuery
  6383. REGISTER_MEMBERS_MANUAL_PART_SphereOctreeQuery();
  6384. #endif
  6385. }
  6386. // class ValueAnimationInfo | File: ../Scene/ValueAnimationInfo.h
  6387. template <class T> void RegisterMembers_ValueAnimationInfo(asIScriptEngine* engine, const char* className)
  6388. {
  6389. RegisterMembers_RefCounted<T>(engine, className);
  6390. // ValueAnimation* ValueAnimationInfo::GetAnimation() const
  6391. engine->RegisterObjectMethod(className, "ValueAnimation@+ GetAnimation() const", AS_METHODPR(T, GetAnimation, () const, ValueAnimation*), AS_CALL_THISCALL);
  6392. // float ValueAnimationInfo::GetSpeed() const
  6393. engine->RegisterObjectMethod(className, "float GetSpeed() const", AS_METHODPR(T, GetSpeed, () const, float), AS_CALL_THISCALL);
  6394. // Object* ValueAnimationInfo::GetTarget() const
  6395. engine->RegisterObjectMethod(className, "Object@+ GetTarget() const", AS_METHODPR(T, GetTarget, () const, Object*), AS_CALL_THISCALL);
  6396. // float ValueAnimationInfo::GetTime() const
  6397. engine->RegisterObjectMethod(className, "float GetTime() const", AS_METHODPR(T, GetTime, () const, float), AS_CALL_THISCALL);
  6398. // WrapMode ValueAnimationInfo::GetWrapMode() const
  6399. engine->RegisterObjectMethod(className, "WrapMode GetWrapMode() const", AS_METHODPR(T, GetWrapMode, () const, WrapMode), AS_CALL_THISCALL);
  6400. // void ValueAnimationInfo::SetSpeed(float speed)
  6401. engine->RegisterObjectMethod(className, "void SetSpeed(float)", AS_METHODPR(T, SetSpeed, (float), void), AS_CALL_THISCALL);
  6402. // bool ValueAnimationInfo::SetTime(float time)
  6403. engine->RegisterObjectMethod(className, "bool SetTime(float)", AS_METHODPR(T, SetTime, (float), bool), AS_CALL_THISCALL);
  6404. // void ValueAnimationInfo::SetWrapMode(WrapMode wrapMode)
  6405. engine->RegisterObjectMethod(className, "void SetWrapMode(WrapMode)", AS_METHODPR(T, SetWrapMode, (WrapMode), void), AS_CALL_THISCALL);
  6406. // bool ValueAnimationInfo::Update(float timeStep)
  6407. engine->RegisterObjectMethod(className, "bool Update(float)", AS_METHODPR(T, Update, (float), bool), AS_CALL_THISCALL);
  6408. #ifdef REGISTER_MEMBERS_MANUAL_PART_ValueAnimationInfo
  6409. REGISTER_MEMBERS_MANUAL_PART_ValueAnimationInfo();
  6410. #endif
  6411. }
  6412. // struct WorkItem | File: ../Core/WorkQueue.h
  6413. template <class T> void RegisterMembers_WorkItem(asIScriptEngine* engine, const char* className)
  6414. {
  6415. RegisterMembers_RefCounted<T>(engine, className);
  6416. // void(* WorkItem::workFunction_) (const WorkItem* , unsigned)
  6417. // Not registered because pointer
  6418. // void* WorkItem::start_
  6419. // Not registered because pointer
  6420. // void* WorkItem::end_
  6421. // Not registered because pointer
  6422. // void* WorkItem::aux_
  6423. // Not registered because pointer
  6424. // std::atomic<bool> WorkItem::completed_
  6425. // Error: type "std::atomic<bool>" can not automatically bind
  6426. // unsigned WorkItem::priority_
  6427. engine->RegisterObjectProperty(className, "uint priority", offsetof(T, priority_));
  6428. // bool WorkItem::sendEvent_
  6429. engine->RegisterObjectProperty(className, "bool sendEvent", offsetof(T, sendEvent_));
  6430. #ifdef REGISTER_MEMBERS_MANUAL_PART_WorkItem
  6431. REGISTER_MEMBERS_MANUAL_PART_WorkItem();
  6432. #endif
  6433. }
  6434. #ifdef URHO3D_NAVIGATION
  6435. // struct DynamicNavBuildData | File: ../Navigation/NavBuildData.h
  6436. template <class T> void RegisterMembers_DynamicNavBuildData(asIScriptEngine* engine, const char* className)
  6437. {
  6438. RegisterMembers_NavBuildData<T>(engine, className);
  6439. // dtTileCacheContourSet* DynamicNavBuildData::contourSet_
  6440. // Not registered because pointer
  6441. // dtTileCachePolyMesh* DynamicNavBuildData::polyMesh_
  6442. // Not registered because pointer
  6443. // rcHeightfieldLayerSet* DynamicNavBuildData::heightFieldLayers_
  6444. // Not registered because pointer
  6445. // dtTileCacheAlloc* DynamicNavBuildData::alloc_
  6446. // Not registered because pointer
  6447. #ifdef REGISTER_MEMBERS_MANUAL_PART_DynamicNavBuildData
  6448. REGISTER_MEMBERS_MANUAL_PART_DynamicNavBuildData();
  6449. #endif
  6450. }
  6451. // struct SimpleNavBuildData | File: ../Navigation/NavBuildData.h
  6452. template <class T> void RegisterMembers_SimpleNavBuildData(asIScriptEngine* engine, const char* className)
  6453. {
  6454. RegisterMembers_NavBuildData<T>(engine, className);
  6455. // rcContourSet* SimpleNavBuildData::contourSet_
  6456. // Not registered because pointer
  6457. // rcPolyMesh* SimpleNavBuildData::polyMesh_
  6458. // Not registered because pointer
  6459. // rcPolyMeshDetail* SimpleNavBuildData::polyMeshDetail_
  6460. // Not registered because pointer
  6461. #ifdef REGISTER_MEMBERS_MANUAL_PART_SimpleNavBuildData
  6462. REGISTER_MEMBERS_MANUAL_PART_SimpleNavBuildData();
  6463. #endif
  6464. }
  6465. #endif // def URHO3D_NAVIGATION
  6466. #ifdef URHO3D_NETWORK
  6467. // class HttpRequest | File: ../Network/HttpRequest.h
  6468. template <class T> void RegisterMembers_HttpRequest(asIScriptEngine* engine, const char* className)
  6469. {
  6470. RegisterMembers_RefCounted<T>(engine, className);
  6471. RegisterMembers_Deserializer<T>(engine, className);
  6472. RegisterMembers_Thread<T>(engine, className);
  6473. // unsigned HttpRequest::GetAvailableSize() const
  6474. engine->RegisterObjectMethod(className, "uint GetAvailableSize() const", AS_METHODPR(T, GetAvailableSize, () const, unsigned), AS_CALL_THISCALL);
  6475. engine->RegisterObjectMethod(className, "uint get_availableSize() const", AS_METHODPR(T, GetAvailableSize, () const, unsigned), AS_CALL_THISCALL);
  6476. // String HttpRequest::GetError() const
  6477. engine->RegisterObjectMethod(className, "String GetError() const", AS_METHODPR(T, GetError, () const, String), AS_CALL_THISCALL);
  6478. engine->RegisterObjectMethod(className, "String get_error() const", AS_METHODPR(T, GetError, () const, String), AS_CALL_THISCALL);
  6479. // HttpRequestState HttpRequest::GetState() const
  6480. engine->RegisterObjectMethod(className, "HttpRequestState GetState() const", AS_METHODPR(T, GetState, () const, HttpRequestState), AS_CALL_THISCALL);
  6481. engine->RegisterObjectMethod(className, "HttpRequestState get_state() const", AS_METHODPR(T, GetState, () const, HttpRequestState), AS_CALL_THISCALL);
  6482. // const String& HttpRequest::GetURL() const
  6483. engine->RegisterObjectMethod(className, "const String& GetURL() const", AS_METHODPR(T, GetURL, () const, const String&), AS_CALL_THISCALL);
  6484. engine->RegisterObjectMethod(className, "const String& get_url() const", AS_METHODPR(T, GetURL, () const, const String&), AS_CALL_THISCALL);
  6485. // const String& HttpRequest::GetVerb() const
  6486. engine->RegisterObjectMethod(className, "const String& GetVerb() const", AS_METHODPR(T, GetVerb, () const, const String&), AS_CALL_THISCALL);
  6487. engine->RegisterObjectMethod(className, "const String& get_verb() const", AS_METHODPR(T, GetVerb, () const, const String&), AS_CALL_THISCALL);
  6488. // bool HttpRequest::IsOpen() const
  6489. engine->RegisterObjectMethod(className, "bool IsOpen() const", AS_METHODPR(T, IsOpen, () const, bool), AS_CALL_THISCALL);
  6490. engine->RegisterObjectMethod(className, "bool get_open() const", AS_METHODPR(T, IsOpen, () const, bool), AS_CALL_THISCALL);
  6491. #ifdef REGISTER_MEMBERS_MANUAL_PART_HttpRequest
  6492. REGISTER_MEMBERS_MANUAL_PART_HttpRequest();
  6493. #endif
  6494. }
  6495. #endif // def URHO3D_NETWORK
  6496. #ifdef URHO3D_PHYSICS
  6497. // struct CollisionGeometryData | File: ../Physics/CollisionShape.h
  6498. template <class T> void RegisterMembers_CollisionGeometryData(asIScriptEngine* engine, const char* className)
  6499. {
  6500. RegisterMembers_RefCounted<T>(engine, className);
  6501. #ifdef REGISTER_MEMBERS_MANUAL_PART_CollisionGeometryData
  6502. REGISTER_MEMBERS_MANUAL_PART_CollisionGeometryData();
  6503. #endif
  6504. }
  6505. #endif // def URHO3D_PHYSICS
  6506. #ifdef URHO3D_URHO2D
  6507. // class PropertySet2D | File: ../Urho2D/TileMapDefs2D.h
  6508. template <class T> void RegisterMembers_PropertySet2D(asIScriptEngine* engine, const char* className)
  6509. {
  6510. RegisterMembers_RefCounted<T>(engine, className);
  6511. // const String& PropertySet2D::GetProperty(const String& name) const
  6512. engine->RegisterObjectMethod(className, "const String& GetProperty(const String&in) const", AS_METHODPR(T, GetProperty, (const String&) const, const String&), AS_CALL_THISCALL);
  6513. // bool PropertySet2D::HasProperty(const String& name) const
  6514. engine->RegisterObjectMethod(className, "bool HasProperty(const String&in) const", AS_METHODPR(T, HasProperty, (const String&) const, bool), AS_CALL_THISCALL);
  6515. // void PropertySet2D::Load(const XMLElement& element)
  6516. engine->RegisterObjectMethod(className, "void Load(const XMLElement&in)", AS_METHODPR(T, Load, (const XMLElement&), void), AS_CALL_THISCALL);
  6517. #ifdef REGISTER_MEMBERS_MANUAL_PART_PropertySet2D
  6518. REGISTER_MEMBERS_MANUAL_PART_PropertySet2D();
  6519. #endif
  6520. }
  6521. // class Tile2D | File: ../Urho2D/TileMapDefs2D.h
  6522. template <class T> void RegisterMembers_Tile2D(asIScriptEngine* engine, const char* className)
  6523. {
  6524. RegisterMembers_RefCounted<T>(engine, className);
  6525. // bool Tile2D::GetFlipX() const
  6526. engine->RegisterObjectMethod(className, "bool GetFlipX() const", AS_METHODPR(T, GetFlipX, () const, bool), AS_CALL_THISCALL);
  6527. engine->RegisterObjectMethod(className, "bool get_flipX() const", AS_METHODPR(T, GetFlipX, () const, bool), AS_CALL_THISCALL);
  6528. // bool Tile2D::GetFlipY() const
  6529. engine->RegisterObjectMethod(className, "bool GetFlipY() const", AS_METHODPR(T, GetFlipY, () const, bool), AS_CALL_THISCALL);
  6530. engine->RegisterObjectMethod(className, "bool get_flipY() const", AS_METHODPR(T, GetFlipY, () const, bool), AS_CALL_THISCALL);
  6531. // unsigned Tile2D::GetGid() const
  6532. engine->RegisterObjectMethod(className, "uint GetGid() const", AS_METHODPR(T, GetGid, () const, unsigned), AS_CALL_THISCALL);
  6533. engine->RegisterObjectMethod(className, "uint get_gid() const", AS_METHODPR(T, GetGid, () const, unsigned), AS_CALL_THISCALL);
  6534. // const String& Tile2D::GetProperty(const String& name) const
  6535. engine->RegisterObjectMethod(className, "const String& GetProperty(const String&in) const", AS_METHODPR(T, GetProperty, (const String&) const, const String&), AS_CALL_THISCALL);
  6536. // Sprite2D* Tile2D::GetSprite() const
  6537. engine->RegisterObjectMethod(className, "Sprite2D@+ GetSprite() const", AS_METHODPR(T, GetSprite, () const, Sprite2D*), AS_CALL_THISCALL);
  6538. engine->RegisterObjectMethod(className, "Sprite2D@+ get_sprite() const", AS_METHODPR(T, GetSprite, () const, Sprite2D*), AS_CALL_THISCALL);
  6539. // bool Tile2D::GetSwapXY() const
  6540. engine->RegisterObjectMethod(className, "bool GetSwapXY() const", AS_METHODPR(T, GetSwapXY, () const, bool), AS_CALL_THISCALL);
  6541. engine->RegisterObjectMethod(className, "bool get_swapXY() const", AS_METHODPR(T, GetSwapXY, () const, bool), AS_CALL_THISCALL);
  6542. // bool Tile2D::HasProperty(const String& name) const
  6543. engine->RegisterObjectMethod(className, "bool HasProperty(const String&in) const", AS_METHODPR(T, HasProperty, (const String&) const, bool), AS_CALL_THISCALL);
  6544. #ifdef REGISTER_MEMBERS_MANUAL_PART_Tile2D
  6545. REGISTER_MEMBERS_MANUAL_PART_Tile2D();
  6546. #endif
  6547. }
  6548. // class TileMapObject2D | File: ../Urho2D/TileMapDefs2D.h
  6549. template <class T> void RegisterMembers_TileMapObject2D(asIScriptEngine* engine, const char* className)
  6550. {
  6551. RegisterMembers_RefCounted<T>(engine, className);
  6552. // const String& TileMapObject2D::GetName() const
  6553. engine->RegisterObjectMethod(className, "const String& GetName() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  6554. engine->RegisterObjectMethod(className, "const String& get_name() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  6555. // unsigned TileMapObject2D::GetNumPoints() const
  6556. engine->RegisterObjectMethod(className, "uint GetNumPoints() const", AS_METHODPR(T, GetNumPoints, () const, unsigned), AS_CALL_THISCALL);
  6557. engine->RegisterObjectMethod(className, "uint get_numPoints() const", AS_METHODPR(T, GetNumPoints, () const, unsigned), AS_CALL_THISCALL);
  6558. // TileMapObjectType2D TileMapObject2D::GetObjectType() const
  6559. engine->RegisterObjectMethod(className, "TileMapObjectType2D GetObjectType() const", AS_METHODPR(T, GetObjectType, () const, TileMapObjectType2D), AS_CALL_THISCALL);
  6560. engine->RegisterObjectMethod(className, "TileMapObjectType2D get_objectType() const", AS_METHODPR(T, GetObjectType, () const, TileMapObjectType2D), AS_CALL_THISCALL);
  6561. // const Vector2& TileMapObject2D::GetPoint(unsigned index) const
  6562. engine->RegisterObjectMethod(className, "const Vector2& GetPoint(uint) const", AS_METHODPR(T, GetPoint, (unsigned) const, const Vector2&), AS_CALL_THISCALL);
  6563. // const Vector2& TileMapObject2D::GetPosition() const
  6564. engine->RegisterObjectMethod(className, "const Vector2& GetPosition() const", AS_METHODPR(T, GetPosition, () const, const Vector2&), AS_CALL_THISCALL);
  6565. engine->RegisterObjectMethod(className, "const Vector2& get_position() const", AS_METHODPR(T, GetPosition, () const, const Vector2&), AS_CALL_THISCALL);
  6566. // const String& TileMapObject2D::GetProperty(const String& name) const
  6567. engine->RegisterObjectMethod(className, "const String& GetProperty(const String&in) const", AS_METHODPR(T, GetProperty, (const String&) const, const String&), AS_CALL_THISCALL);
  6568. // const Vector2& TileMapObject2D::GetSize() const
  6569. engine->RegisterObjectMethod(className, "const Vector2& GetSize() const", AS_METHODPR(T, GetSize, () const, const Vector2&), AS_CALL_THISCALL);
  6570. engine->RegisterObjectMethod(className, "const Vector2& get_size() const", AS_METHODPR(T, GetSize, () const, const Vector2&), AS_CALL_THISCALL);
  6571. // bool TileMapObject2D::GetTileFlipX() const
  6572. engine->RegisterObjectMethod(className, "bool GetTileFlipX() const", AS_METHODPR(T, GetTileFlipX, () const, bool), AS_CALL_THISCALL);
  6573. engine->RegisterObjectMethod(className, "bool get_tileFlipX() const", AS_METHODPR(T, GetTileFlipX, () const, bool), AS_CALL_THISCALL);
  6574. // bool TileMapObject2D::GetTileFlipY() const
  6575. engine->RegisterObjectMethod(className, "bool GetTileFlipY() const", AS_METHODPR(T, GetTileFlipY, () const, bool), AS_CALL_THISCALL);
  6576. engine->RegisterObjectMethod(className, "bool get_tileFlipY() const", AS_METHODPR(T, GetTileFlipY, () const, bool), AS_CALL_THISCALL);
  6577. // unsigned TileMapObject2D::GetTileGid() const
  6578. engine->RegisterObjectMethod(className, "uint GetTileGid() const", AS_METHODPR(T, GetTileGid, () const, unsigned), AS_CALL_THISCALL);
  6579. engine->RegisterObjectMethod(className, "uint get_tileGid() const", AS_METHODPR(T, GetTileGid, () const, unsigned), AS_CALL_THISCALL);
  6580. // Sprite2D* TileMapObject2D::GetTileSprite() const
  6581. engine->RegisterObjectMethod(className, "Sprite2D@+ GetTileSprite() const", AS_METHODPR(T, GetTileSprite, () const, Sprite2D*), AS_CALL_THISCALL);
  6582. engine->RegisterObjectMethod(className, "Sprite2D@+ get_tileSprite() const", AS_METHODPR(T, GetTileSprite, () const, Sprite2D*), AS_CALL_THISCALL);
  6583. // bool TileMapObject2D::GetTileSwapXY() const
  6584. engine->RegisterObjectMethod(className, "bool GetTileSwapXY() const", AS_METHODPR(T, GetTileSwapXY, () const, bool), AS_CALL_THISCALL);
  6585. engine->RegisterObjectMethod(className, "bool get_tileSwapXY() const", AS_METHODPR(T, GetTileSwapXY, () const, bool), AS_CALL_THISCALL);
  6586. // const String& TileMapObject2D::GetType() const
  6587. engine->RegisterObjectMethod(className, "const String& GetType() const", AS_METHODPR(T, GetType, () const, const String&), AS_CALL_THISCALL);
  6588. engine->RegisterObjectMethod(className, "const String& get_type() const", AS_METHODPR(T, GetType, () const, const String&), AS_CALL_THISCALL);
  6589. // bool TileMapObject2D::HasProperty(const String& name) const
  6590. engine->RegisterObjectMethod(className, "bool HasProperty(const String&in) const", AS_METHODPR(T, HasProperty, (const String&) const, bool), AS_CALL_THISCALL);
  6591. #ifdef REGISTER_MEMBERS_MANUAL_PART_TileMapObject2D
  6592. REGISTER_MEMBERS_MANUAL_PART_TileMapObject2D();
  6593. #endif
  6594. }
  6595. // class TmxLayer2D | File: ../Urho2D/TmxFile2D.h
  6596. template <class T> void RegisterMembers_TmxLayer2D(asIScriptEngine* engine, const char* className)
  6597. {
  6598. RegisterMembers_RefCounted<T>(engine, className);
  6599. // int TmxLayer2D::GetHeight() const
  6600. engine->RegisterObjectMethod(className, "int GetHeight() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  6601. // const String& TmxLayer2D::GetName() const
  6602. engine->RegisterObjectMethod(className, "const String& GetName() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  6603. // const String& TmxLayer2D::GetProperty(const String& name) const
  6604. engine->RegisterObjectMethod(className, "const String& GetProperty(const String&in) const", AS_METHODPR(T, GetProperty, (const String&) const, const String&), AS_CALL_THISCALL);
  6605. // TmxFile2D* TmxLayer2D::GetTmxFile() const
  6606. engine->RegisterObjectMethod(className, "TmxFile2D@+ GetTmxFile() const", AS_METHODPR(T, GetTmxFile, () const, TmxFile2D*), AS_CALL_THISCALL);
  6607. // TileMapLayerType2D TmxLayer2D::GetType() const
  6608. engine->RegisterObjectMethod(className, "TileMapLayerType2D GetType() const", AS_METHODPR(T, GetType, () const, TileMapLayerType2D), AS_CALL_THISCALL);
  6609. // int TmxLayer2D::GetWidth() const
  6610. engine->RegisterObjectMethod(className, "int GetWidth() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  6611. // bool TmxLayer2D::HasProperty(const String& name) const
  6612. engine->RegisterObjectMethod(className, "bool HasProperty(const String&in) const", AS_METHODPR(T, HasProperty, (const String&) const, bool), AS_CALL_THISCALL);
  6613. // bool TmxLayer2D::IsVisible() const
  6614. engine->RegisterObjectMethod(className, "bool IsVisible() const", AS_METHODPR(T, IsVisible, () const, bool), AS_CALL_THISCALL);
  6615. #ifdef REGISTER_MEMBERS_MANUAL_PART_TmxLayer2D
  6616. REGISTER_MEMBERS_MANUAL_PART_TmxLayer2D();
  6617. #endif
  6618. }
  6619. #endif // def URHO3D_URHO2D
  6620. // class AttributeAnimationInfo | File: ../Scene/Animatable.h
  6621. template <class T> void RegisterMembers_AttributeAnimationInfo(asIScriptEngine* engine, const char* className)
  6622. {
  6623. RegisterMembers_ValueAnimationInfo<T>(engine, className);
  6624. // const AttributeInfo& AttributeAnimationInfo::GetAttributeInfo() const
  6625. engine->RegisterObjectMethod(className, "const AttributeInfo& GetAttributeInfo() const", AS_METHODPR(T, GetAttributeInfo, () const, const AttributeInfo&), AS_CALL_THISCALL);
  6626. #ifdef REGISTER_MEMBERS_MANUAL_PART_AttributeAnimationInfo
  6627. REGISTER_MEMBERS_MANUAL_PART_AttributeAnimationInfo();
  6628. #endif
  6629. }
  6630. // const PODVector<SoundSource*>& Audio::GetSoundSources() const
  6631. template <class T> CScriptArray* Audio_constspPODVectorlesSoundSourcestargreamp_GetSoundSources_void_template(T* _ptr)
  6632. {
  6633. const PODVector<SoundSource*>& result = _ptr->GetSoundSources();
  6634. return VectorToHandleArray(result, "Array<SoundSource@>");
  6635. }
  6636. // class Audio | File: ../Audio/Audio.h
  6637. template <class T> void RegisterMembers_Audio(asIScriptEngine* engine, const char* className)
  6638. {
  6639. RegisterMembers_Object<T>(engine, className);
  6640. // void Audio::MixOutput(void* dest, unsigned samples)
  6641. // Error: type "void*" can not automatically bind
  6642. // void Audio::AddSoundSource(SoundSource* soundSource)
  6643. engine->RegisterObjectMethod(className, "void AddSoundSource(SoundSource@+)", AS_METHODPR(T, AddSoundSource, (SoundSource*), void), AS_CALL_THISCALL);
  6644. // bool Audio::GetInterpolation() const
  6645. engine->RegisterObjectMethod(className, "bool GetInterpolation() const", AS_METHODPR(T, GetInterpolation, () const, bool), AS_CALL_THISCALL);
  6646. engine->RegisterObjectMethod(className, "bool get_interpolation() const", AS_METHODPR(T, GetInterpolation, () const, bool), AS_CALL_THISCALL);
  6647. // SoundListener* Audio::GetListener() const
  6648. engine->RegisterObjectMethod(className, "SoundListener@+ GetListener() const", AS_METHODPR(T, GetListener, () const, SoundListener*), AS_CALL_THISCALL);
  6649. engine->RegisterObjectMethod(className, "SoundListener@+ get_listener() const", AS_METHODPR(T, GetListener, () const, SoundListener*), AS_CALL_THISCALL);
  6650. // float Audio::GetMasterGain(const String& type) const
  6651. engine->RegisterObjectMethod(className, "float GetMasterGain(const String&in) const", AS_METHODPR(T, GetMasterGain, (const String&) const, float), AS_CALL_THISCALL);
  6652. engine->RegisterObjectMethod(className, "float get_masterGain(const String&in) const", AS_METHODPR(T, GetMasterGain, (const String&) const, float), AS_CALL_THISCALL);
  6653. // int Audio::GetMixRate() const
  6654. engine->RegisterObjectMethod(className, "int GetMixRate() const", AS_METHODPR(T, GetMixRate, () const, int), AS_CALL_THISCALL);
  6655. engine->RegisterObjectMethod(className, "int get_mixRate() const", AS_METHODPR(T, GetMixRate, () const, int), AS_CALL_THISCALL);
  6656. // Mutex& Audio::GetMutex()
  6657. engine->RegisterObjectMethod(className, "Mutex& GetMutex()", AS_METHODPR(T, GetMutex, (), Mutex&), AS_CALL_THISCALL);
  6658. // unsigned Audio::GetSampleSize() const
  6659. engine->RegisterObjectMethod(className, "uint GetSampleSize() const", AS_METHODPR(T, GetSampleSize, () const, unsigned), AS_CALL_THISCALL);
  6660. engine->RegisterObjectMethod(className, "uint get_sampleSize() const", AS_METHODPR(T, GetSampleSize, () const, unsigned), AS_CALL_THISCALL);
  6661. // float Audio::GetSoundSourceMasterGain(StringHash typeHash) const
  6662. engine->RegisterObjectMethod(className, "float GetSoundSourceMasterGain(StringHash) const", AS_METHODPR(T, GetSoundSourceMasterGain, (StringHash) const, float), AS_CALL_THISCALL);
  6663. // const PODVector<SoundSource*>& Audio::GetSoundSources() const
  6664. engine->RegisterObjectMethod(className, "Array<SoundSource@>@ GetSoundSources() const", AS_FUNCTION_OBJFIRST(Audio_constspPODVectorlesSoundSourcestargreamp_GetSoundSources_void_template<Audio>), AS_CALL_CDECL_OBJFIRST);
  6665. // bool Audio::HasMasterGain(const String& type) const
  6666. engine->RegisterObjectMethod(className, "bool HasMasterGain(const String&in) const", AS_METHODPR(T, HasMasterGain, (const String&) const, bool), AS_CALL_THISCALL);
  6667. // bool Audio::IsInitialized() const
  6668. engine->RegisterObjectMethod(className, "bool IsInitialized() const", AS_METHODPR(T, IsInitialized, () const, bool), AS_CALL_THISCALL);
  6669. engine->RegisterObjectMethod(className, "bool get_initialized() const", AS_METHODPR(T, IsInitialized, () const, bool), AS_CALL_THISCALL);
  6670. // bool Audio::IsPlaying() const
  6671. engine->RegisterObjectMethod(className, "bool IsPlaying() const", AS_METHODPR(T, IsPlaying, () const, bool), AS_CALL_THISCALL);
  6672. engine->RegisterObjectMethod(className, "bool get_playing() const", AS_METHODPR(T, IsPlaying, () const, bool), AS_CALL_THISCALL);
  6673. // bool Audio::IsSoundTypePaused(const String& type) const
  6674. engine->RegisterObjectMethod(className, "bool IsSoundTypePaused(const String&in) const", AS_METHODPR(T, IsSoundTypePaused, (const String&) const, bool), AS_CALL_THISCALL);
  6675. // bool Audio::IsStereo() const
  6676. engine->RegisterObjectMethod(className, "bool IsStereo() const", AS_METHODPR(T, IsStereo, () const, bool), AS_CALL_THISCALL);
  6677. engine->RegisterObjectMethod(className, "bool get_stereo() const", AS_METHODPR(T, IsStereo, () const, bool), AS_CALL_THISCALL);
  6678. // void Audio::PauseSoundType(const String& type)
  6679. engine->RegisterObjectMethod(className, "void PauseSoundType(const String&in)", AS_METHODPR(T, PauseSoundType, (const String&), void), AS_CALL_THISCALL);
  6680. // bool Audio::Play()
  6681. engine->RegisterObjectMethod(className, "bool Play()", AS_METHODPR(T, Play, (), bool), AS_CALL_THISCALL);
  6682. // void Audio::RemoveSoundSource(SoundSource* soundSource)
  6683. engine->RegisterObjectMethod(className, "void RemoveSoundSource(SoundSource@+)", AS_METHODPR(T, RemoveSoundSource, (SoundSource*), void), AS_CALL_THISCALL);
  6684. // void Audio::ResumeAll()
  6685. engine->RegisterObjectMethod(className, "void ResumeAll()", AS_METHODPR(T, ResumeAll, (), void), AS_CALL_THISCALL);
  6686. // void Audio::ResumeSoundType(const String& type)
  6687. engine->RegisterObjectMethod(className, "void ResumeSoundType(const String&in)", AS_METHODPR(T, ResumeSoundType, (const String&), void), AS_CALL_THISCALL);
  6688. // void Audio::SetListener(SoundListener* listener)
  6689. engine->RegisterObjectMethod(className, "void SetListener(SoundListener@+)", AS_METHODPR(T, SetListener, (SoundListener*), void), AS_CALL_THISCALL);
  6690. engine->RegisterObjectMethod(className, "void set_listener(SoundListener@+)", AS_METHODPR(T, SetListener, (SoundListener*), void), AS_CALL_THISCALL);
  6691. // void Audio::SetMasterGain(const String& type, float gain)
  6692. engine->RegisterObjectMethod(className, "void SetMasterGain(const String&in, float)", AS_METHODPR(T, SetMasterGain, (const String&, float), void), AS_CALL_THISCALL);
  6693. engine->RegisterObjectMethod(className, "void set_masterGain(const String&in, float)", AS_METHODPR(T, SetMasterGain, (const String&, float), void), AS_CALL_THISCALL);
  6694. // bool Audio::SetMode(int bufferLengthMSec, int mixRate, bool stereo, bool interpolation = true)
  6695. engine->RegisterObjectMethod(className, "bool SetMode(int, int, bool, bool = true)", AS_METHODPR(T, SetMode, (int, int, bool, bool), bool), AS_CALL_THISCALL);
  6696. // void Audio::Stop()
  6697. engine->RegisterObjectMethod(className, "void Stop()", AS_METHODPR(T, Stop, (), void), AS_CALL_THISCALL);
  6698. // void Audio::StopSound(Sound* sound)
  6699. engine->RegisterObjectMethod(className, "void StopSound(Sound@+)", AS_METHODPR(T, StopSound, (Sound*), void), AS_CALL_THISCALL);
  6700. // void Audio::Update(float timeStep)
  6701. engine->RegisterObjectMethod(className, "void Update(float)", AS_METHODPR(T, Update, (float), void), AS_CALL_THISCALL);
  6702. #ifdef REGISTER_MEMBERS_MANUAL_PART_Audio
  6703. REGISTER_MEMBERS_MANUAL_PART_Audio();
  6704. #endif
  6705. }
  6706. // class BufferedSoundStream | File: ../Audio/BufferedSoundStream.h
  6707. template <class T> void RegisterMembers_BufferedSoundStream(asIScriptEngine* engine, const char* className)
  6708. {
  6709. RegisterMembers_SoundStream<T>(engine, className);
  6710. // void BufferedSoundStream::AddData(void* data, unsigned numBytes)
  6711. // Error: type "void*" can not automatically bind
  6712. // void BufferedSoundStream::AddData(const SharedArrayPtr<signed char>& data, unsigned numBytes)
  6713. // Error: type "const SharedArrayPtr<signed char>&" can not automatically bind
  6714. // void BufferedSoundStream::AddData(const SharedArrayPtr<signed short>& data, unsigned numBytes)
  6715. // Error: type "const SharedArrayPtr<signed short>&" can not automatically bind
  6716. // void BufferedSoundStream::Clear()
  6717. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  6718. // float BufferedSoundStream::GetBufferLength() const
  6719. engine->RegisterObjectMethod(className, "float GetBufferLength() const", AS_METHODPR(T, GetBufferLength, () const, float), AS_CALL_THISCALL);
  6720. // unsigned BufferedSoundStream::GetBufferNumBytes() const
  6721. engine->RegisterObjectMethod(className, "uint GetBufferNumBytes() const", AS_METHODPR(T, GetBufferNumBytes, () const, unsigned), AS_CALL_THISCALL);
  6722. #ifdef REGISTER_MEMBERS_MANUAL_PART_BufferedSoundStream
  6723. REGISTER_MEMBERS_MANUAL_PART_BufferedSoundStream();
  6724. #endif
  6725. }
  6726. // class Console | File: ../Engine/Console.h
  6727. template <class T> void RegisterMembers_Console(asIScriptEngine* engine, const char* className)
  6728. {
  6729. RegisterMembers_Object<T>(engine, className);
  6730. // void Console::AddAutoComplete(const String& option)
  6731. engine->RegisterObjectMethod(className, "void AddAutoComplete(const String&in)", AS_METHODPR(T, AddAutoComplete, (const String&), void), AS_CALL_THISCALL);
  6732. // void Console::CopySelectedRows() const
  6733. engine->RegisterObjectMethod(className, "void CopySelectedRows() const", AS_METHODPR(T, CopySelectedRows, () const, void), AS_CALL_THISCALL);
  6734. // BorderImage* Console::GetBackground() const
  6735. engine->RegisterObjectMethod(className, "BorderImage@+ GetBackground() const", AS_METHODPR(T, GetBackground, () const, BorderImage*), AS_CALL_THISCALL);
  6736. engine->RegisterObjectMethod(className, "BorderImage@+ get_background() const", AS_METHODPR(T, GetBackground, () const, BorderImage*), AS_CALL_THISCALL);
  6737. // Button* Console::GetCloseButton() const
  6738. engine->RegisterObjectMethod(className, "Button@+ GetCloseButton() const", AS_METHODPR(T, GetCloseButton, () const, Button*), AS_CALL_THISCALL);
  6739. engine->RegisterObjectMethod(className, "Button@+ get_closeButton() const", AS_METHODPR(T, GetCloseButton, () const, Button*), AS_CALL_THISCALL);
  6740. // const String& Console::GetCommandInterpreter() const
  6741. engine->RegisterObjectMethod(className, "const String& GetCommandInterpreter() const", AS_METHODPR(T, GetCommandInterpreter, () const, const String&), AS_CALL_THISCALL);
  6742. engine->RegisterObjectMethod(className, "const String& get_commandInterpreter() const", AS_METHODPR(T, GetCommandInterpreter, () const, const String&), AS_CALL_THISCALL);
  6743. // XMLFile* Console::GetDefaultStyle() const
  6744. engine->RegisterObjectMethod(className, "XMLFile@+ GetDefaultStyle() const", AS_METHODPR(T, GetDefaultStyle, () const, XMLFile*), AS_CALL_THISCALL);
  6745. engine->RegisterObjectMethod(className, "XMLFile@+ get_defaultStyle() const", AS_METHODPR(T, GetDefaultStyle, () const, XMLFile*), AS_CALL_THISCALL);
  6746. // bool Console::GetFocusOnShow() const
  6747. engine->RegisterObjectMethod(className, "bool GetFocusOnShow() const", AS_METHODPR(T, GetFocusOnShow, () const, bool), AS_CALL_THISCALL);
  6748. engine->RegisterObjectMethod(className, "bool get_focusOnShow() const", AS_METHODPR(T, GetFocusOnShow, () const, bool), AS_CALL_THISCALL);
  6749. // unsigned Console::GetHistoryPosition() const
  6750. engine->RegisterObjectMethod(className, "uint GetHistoryPosition() const", AS_METHODPR(T, GetHistoryPosition, () const, unsigned), AS_CALL_THISCALL);
  6751. engine->RegisterObjectMethod(className, "uint get_historyPosition() const", AS_METHODPR(T, GetHistoryPosition, () const, unsigned), AS_CALL_THISCALL);
  6752. // const String& Console::GetHistoryRow(unsigned index) const
  6753. engine->RegisterObjectMethod(className, "const String& GetHistoryRow(uint) const", AS_METHODPR(T, GetHistoryRow, (unsigned) const, const String&), AS_CALL_THISCALL);
  6754. engine->RegisterObjectMethod(className, "const String& get_historyRow(uint) const", AS_METHODPR(T, GetHistoryRow, (unsigned) const, const String&), AS_CALL_THISCALL);
  6755. // LineEdit* Console::GetLineEdit() const
  6756. engine->RegisterObjectMethod(className, "LineEdit@+ GetLineEdit() const", AS_METHODPR(T, GetLineEdit, () const, LineEdit*), AS_CALL_THISCALL);
  6757. engine->RegisterObjectMethod(className, "LineEdit@+ get_lineEdit() const", AS_METHODPR(T, GetLineEdit, () const, LineEdit*), AS_CALL_THISCALL);
  6758. // unsigned Console::GetNumBufferedRows() const
  6759. engine->RegisterObjectMethod(className, "uint GetNumBufferedRows() const", AS_METHODPR(T, GetNumBufferedRows, () const, unsigned), AS_CALL_THISCALL);
  6760. engine->RegisterObjectMethod(className, "uint get_numBufferedRows() const", AS_METHODPR(T, GetNumBufferedRows, () const, unsigned), AS_CALL_THISCALL);
  6761. // unsigned Console::GetNumHistoryRows() const
  6762. engine->RegisterObjectMethod(className, "uint GetNumHistoryRows() const", AS_METHODPR(T, GetNumHistoryRows, () const, unsigned), AS_CALL_THISCALL);
  6763. engine->RegisterObjectMethod(className, "uint get_numHistoryRows() const", AS_METHODPR(T, GetNumHistoryRows, () const, unsigned), AS_CALL_THISCALL);
  6764. // unsigned Console::GetNumRows() const
  6765. engine->RegisterObjectMethod(className, "uint GetNumRows() const", AS_METHODPR(T, GetNumRows, () const, unsigned), AS_CALL_THISCALL);
  6766. engine->RegisterObjectMethod(className, "uint get_numRows() const", AS_METHODPR(T, GetNumRows, () const, unsigned), AS_CALL_THISCALL);
  6767. // bool Console::IsAutoVisibleOnError() const
  6768. engine->RegisterObjectMethod(className, "bool IsAutoVisibleOnError() const", AS_METHODPR(T, IsAutoVisibleOnError, () const, bool), AS_CALL_THISCALL);
  6769. engine->RegisterObjectMethod(className, "bool get_autoVisibleOnError() const", AS_METHODPR(T, IsAutoVisibleOnError, () const, bool), AS_CALL_THISCALL);
  6770. // bool Console::IsVisible() const
  6771. engine->RegisterObjectMethod(className, "bool IsVisible() const", AS_METHODPR(T, IsVisible, () const, bool), AS_CALL_THISCALL);
  6772. engine->RegisterObjectMethod(className, "bool get_visible() const", AS_METHODPR(T, IsVisible, () const, bool), AS_CALL_THISCALL);
  6773. // void Console::RemoveAutoComplete(const String& option)
  6774. engine->RegisterObjectMethod(className, "void RemoveAutoComplete(const String&in)", AS_METHODPR(T, RemoveAutoComplete, (const String&), void), AS_CALL_THISCALL);
  6775. // void Console::SetAutoVisibleOnError(bool enable)
  6776. engine->RegisterObjectMethod(className, "void SetAutoVisibleOnError(bool)", AS_METHODPR(T, SetAutoVisibleOnError, (bool), void), AS_CALL_THISCALL);
  6777. engine->RegisterObjectMethod(className, "void set_autoVisibleOnError(bool)", AS_METHODPR(T, SetAutoVisibleOnError, (bool), void), AS_CALL_THISCALL);
  6778. // void Console::SetCommandInterpreter(const String& interpreter)
  6779. engine->RegisterObjectMethod(className, "void SetCommandInterpreter(const String&in)", AS_METHODPR(T, SetCommandInterpreter, (const String&), void), AS_CALL_THISCALL);
  6780. engine->RegisterObjectMethod(className, "void set_commandInterpreter(const String&in)", AS_METHODPR(T, SetCommandInterpreter, (const String&), void), AS_CALL_THISCALL);
  6781. // void Console::SetDefaultStyle(XMLFile* style)
  6782. engine->RegisterObjectMethod(className, "void SetDefaultStyle(XMLFile@+)", AS_METHODPR(T, SetDefaultStyle, (XMLFile*), void), AS_CALL_THISCALL);
  6783. engine->RegisterObjectMethod(className, "void set_defaultStyle(XMLFile@+)", AS_METHODPR(T, SetDefaultStyle, (XMLFile*), void), AS_CALL_THISCALL);
  6784. // void Console::SetFocusOnShow(bool enable)
  6785. engine->RegisterObjectMethod(className, "void SetFocusOnShow(bool)", AS_METHODPR(T, SetFocusOnShow, (bool), void), AS_CALL_THISCALL);
  6786. engine->RegisterObjectMethod(className, "void set_focusOnShow(bool)", AS_METHODPR(T, SetFocusOnShow, (bool), void), AS_CALL_THISCALL);
  6787. // void Console::SetNumBufferedRows(unsigned rows)
  6788. engine->RegisterObjectMethod(className, "void SetNumBufferedRows(uint)", AS_METHODPR(T, SetNumBufferedRows, (unsigned), void), AS_CALL_THISCALL);
  6789. engine->RegisterObjectMethod(className, "void set_numBufferedRows(uint)", AS_METHODPR(T, SetNumBufferedRows, (unsigned), void), AS_CALL_THISCALL);
  6790. // void Console::SetNumHistoryRows(unsigned rows)
  6791. engine->RegisterObjectMethod(className, "void SetNumHistoryRows(uint)", AS_METHODPR(T, SetNumHistoryRows, (unsigned), void), AS_CALL_THISCALL);
  6792. engine->RegisterObjectMethod(className, "void set_numHistoryRows(uint)", AS_METHODPR(T, SetNumHistoryRows, (unsigned), void), AS_CALL_THISCALL);
  6793. // void Console::SetNumRows(unsigned rows)
  6794. engine->RegisterObjectMethod(className, "void SetNumRows(uint)", AS_METHODPR(T, SetNumRows, (unsigned), void), AS_CALL_THISCALL);
  6795. engine->RegisterObjectMethod(className, "void set_numRows(uint)", AS_METHODPR(T, SetNumRows, (unsigned), void), AS_CALL_THISCALL);
  6796. // void Console::SetVisible(bool enable)
  6797. engine->RegisterObjectMethod(className, "void SetVisible(bool)", AS_METHODPR(T, SetVisible, (bool), void), AS_CALL_THISCALL);
  6798. engine->RegisterObjectMethod(className, "void set_visible(bool)", AS_METHODPR(T, SetVisible, (bool), void), AS_CALL_THISCALL);
  6799. // void Console::Toggle()
  6800. engine->RegisterObjectMethod(className, "void Toggle()", AS_METHODPR(T, Toggle, (), void), AS_CALL_THISCALL);
  6801. // void Console::UpdateElements()
  6802. engine->RegisterObjectMethod(className, "void UpdateElements()", AS_METHODPR(T, UpdateElements, (), void), AS_CALL_THISCALL);
  6803. #ifdef REGISTER_MEMBERS_MANUAL_PART_Console
  6804. REGISTER_MEMBERS_MANUAL_PART_Console();
  6805. #endif
  6806. }
  6807. // class ConstantBuffer | File: ../Graphics/ConstantBuffer.h
  6808. template <class T> void RegisterMembers_ConstantBuffer(asIScriptEngine* engine, const char* className)
  6809. {
  6810. RegisterMembers_Object<T>(engine, className);
  6811. RegisterMembers_GPUObject<T>(engine, className);
  6812. // void ConstantBuffer::SetParameter(unsigned offset, unsigned size, const void* data)
  6813. // Error: type "const void*" can not automatically bind
  6814. // void ConstantBuffer::SetVector3ArrayParameter(unsigned offset, unsigned rows, const void* data)
  6815. // Error: type "const void*" can not automatically bind
  6816. // void ConstantBuffer::Apply()
  6817. engine->RegisterObjectMethod(className, "void Apply()", AS_METHODPR(T, Apply, (), void), AS_CALL_THISCALL);
  6818. // unsigned ConstantBuffer::GetSize() const
  6819. engine->RegisterObjectMethod(className, "uint GetSize() const", AS_METHODPR(T, GetSize, () const, unsigned), AS_CALL_THISCALL);
  6820. // bool ConstantBuffer::IsDirty() const
  6821. engine->RegisterObjectMethod(className, "bool IsDirty() const", AS_METHODPR(T, IsDirty, () const, bool), AS_CALL_THISCALL);
  6822. // bool ConstantBuffer::SetSize(unsigned size)
  6823. engine->RegisterObjectMethod(className, "bool SetSize(uint)", AS_METHODPR(T, SetSize, (unsigned), bool), AS_CALL_THISCALL);
  6824. #ifdef REGISTER_MEMBERS_MANUAL_PART_ConstantBuffer
  6825. REGISTER_MEMBERS_MANUAL_PART_ConstantBuffer();
  6826. #endif
  6827. }
  6828. // class DebugHud | File: ../Engine/DebugHud.h
  6829. template <class T> void RegisterMembers_DebugHud(asIScriptEngine* engine, const char* className)
  6830. {
  6831. RegisterMembers_Object<T>(engine, className);
  6832. // void DebugHud::ClearAppStats()
  6833. engine->RegisterObjectMethod(className, "void ClearAppStats()", AS_METHODPR(T, ClearAppStats, (), void), AS_CALL_THISCALL);
  6834. // XMLFile* DebugHud::GetDefaultStyle() const
  6835. engine->RegisterObjectMethod(className, "XMLFile@+ GetDefaultStyle() const", AS_METHODPR(T, GetDefaultStyle, () const, XMLFile*), AS_CALL_THISCALL);
  6836. engine->RegisterObjectMethod(className, "XMLFile@+ get_defaultStyle() const", AS_METHODPR(T, GetDefaultStyle, () const, XMLFile*), AS_CALL_THISCALL);
  6837. // Text* DebugHud::GetMemoryText() const
  6838. engine->RegisterObjectMethod(className, "Text@+ GetMemoryText() const", AS_METHODPR(T, GetMemoryText, () const, Text*), AS_CALL_THISCALL);
  6839. engine->RegisterObjectMethod(className, "Text@+ get_memoryText() const", AS_METHODPR(T, GetMemoryText, () const, Text*), AS_CALL_THISCALL);
  6840. // unsigned DebugHud::GetMode() const
  6841. engine->RegisterObjectMethod(className, "uint GetMode() const", AS_METHODPR(T, GetMode, () const, unsigned), AS_CALL_THISCALL);
  6842. engine->RegisterObjectMethod(className, "uint get_mode() const", AS_METHODPR(T, GetMode, () const, unsigned), AS_CALL_THISCALL);
  6843. // Text* DebugHud::GetModeText() const
  6844. engine->RegisterObjectMethod(className, "Text@+ GetModeText() const", AS_METHODPR(T, GetModeText, () const, Text*), AS_CALL_THISCALL);
  6845. engine->RegisterObjectMethod(className, "Text@+ get_modeText() const", AS_METHODPR(T, GetModeText, () const, Text*), AS_CALL_THISCALL);
  6846. // float DebugHud::GetProfilerInterval() const
  6847. engine->RegisterObjectMethod(className, "float GetProfilerInterval() const", AS_METHODPR(T, GetProfilerInterval, () const, float), AS_CALL_THISCALL);
  6848. engine->RegisterObjectMethod(className, "float get_profilerInterval() const", AS_METHODPR(T, GetProfilerInterval, () const, float), AS_CALL_THISCALL);
  6849. // unsigned DebugHud::GetProfilerMaxDepth() const
  6850. engine->RegisterObjectMethod(className, "uint GetProfilerMaxDepth() const", AS_METHODPR(T, GetProfilerMaxDepth, () const, unsigned), AS_CALL_THISCALL);
  6851. engine->RegisterObjectMethod(className, "uint get_profilerMaxDepth() const", AS_METHODPR(T, GetProfilerMaxDepth, () const, unsigned), AS_CALL_THISCALL);
  6852. // Text* DebugHud::GetProfilerText() const
  6853. engine->RegisterObjectMethod(className, "Text@+ GetProfilerText() const", AS_METHODPR(T, GetProfilerText, () const, Text*), AS_CALL_THISCALL);
  6854. engine->RegisterObjectMethod(className, "Text@+ get_profilerText() const", AS_METHODPR(T, GetProfilerText, () const, Text*), AS_CALL_THISCALL);
  6855. // Text* DebugHud::GetStatsText() const
  6856. engine->RegisterObjectMethod(className, "Text@+ GetStatsText() const", AS_METHODPR(T, GetStatsText, () const, Text*), AS_CALL_THISCALL);
  6857. engine->RegisterObjectMethod(className, "Text@+ get_statsText() const", AS_METHODPR(T, GetStatsText, () const, Text*), AS_CALL_THISCALL);
  6858. // bool DebugHud::GetUseRendererStats() const
  6859. engine->RegisterObjectMethod(className, "bool GetUseRendererStats() const", AS_METHODPR(T, GetUseRendererStats, () const, bool), AS_CALL_THISCALL);
  6860. engine->RegisterObjectMethod(className, "bool get_useRendererStats() const", AS_METHODPR(T, GetUseRendererStats, () const, bool), AS_CALL_THISCALL);
  6861. // bool DebugHud::ResetAppStats(const String& label)
  6862. engine->RegisterObjectMethod(className, "bool ResetAppStats(const String&in)", AS_METHODPR(T, ResetAppStats, (const String&), bool), AS_CALL_THISCALL);
  6863. // void DebugHud::SetAppStats(const String& label, const Variant& stats)
  6864. engine->RegisterObjectMethod(className, "void SetAppStats(const String&in, const Variant&in)", AS_METHODPR(T, SetAppStats, (const String&, const Variant&), void), AS_CALL_THISCALL);
  6865. // void DebugHud::SetAppStats(const String& label, const String& stats)
  6866. engine->RegisterObjectMethod(className, "void SetAppStats(const String&in, const String&in)", AS_METHODPR(T, SetAppStats, (const String&, const String&), void), AS_CALL_THISCALL);
  6867. // void DebugHud::SetDefaultStyle(XMLFile* style)
  6868. engine->RegisterObjectMethod(className, "void SetDefaultStyle(XMLFile@+)", AS_METHODPR(T, SetDefaultStyle, (XMLFile*), void), AS_CALL_THISCALL);
  6869. engine->RegisterObjectMethod(className, "void set_defaultStyle(XMLFile@+)", AS_METHODPR(T, SetDefaultStyle, (XMLFile*), void), AS_CALL_THISCALL);
  6870. // void DebugHud::SetMode(unsigned mode)
  6871. engine->RegisterObjectMethod(className, "void SetMode(uint)", AS_METHODPR(T, SetMode, (unsigned), void), AS_CALL_THISCALL);
  6872. engine->RegisterObjectMethod(className, "void set_mode(uint)", AS_METHODPR(T, SetMode, (unsigned), void), AS_CALL_THISCALL);
  6873. // void DebugHud::SetProfilerInterval(float interval)
  6874. engine->RegisterObjectMethod(className, "void SetProfilerInterval(float)", AS_METHODPR(T, SetProfilerInterval, (float), void), AS_CALL_THISCALL);
  6875. engine->RegisterObjectMethod(className, "void set_profilerInterval(float)", AS_METHODPR(T, SetProfilerInterval, (float), void), AS_CALL_THISCALL);
  6876. // void DebugHud::SetProfilerMaxDepth(unsigned depth)
  6877. engine->RegisterObjectMethod(className, "void SetProfilerMaxDepth(uint)", AS_METHODPR(T, SetProfilerMaxDepth, (unsigned), void), AS_CALL_THISCALL);
  6878. engine->RegisterObjectMethod(className, "void set_profilerMaxDepth(uint)", AS_METHODPR(T, SetProfilerMaxDepth, (unsigned), void), AS_CALL_THISCALL);
  6879. // void DebugHud::SetUseRendererStats(bool enable)
  6880. engine->RegisterObjectMethod(className, "void SetUseRendererStats(bool)", AS_METHODPR(T, SetUseRendererStats, (bool), void), AS_CALL_THISCALL);
  6881. engine->RegisterObjectMethod(className, "void set_useRendererStats(bool)", AS_METHODPR(T, SetUseRendererStats, (bool), void), AS_CALL_THISCALL);
  6882. // void DebugHud::Toggle(unsigned mode)
  6883. engine->RegisterObjectMethod(className, "void Toggle(uint)", AS_METHODPR(T, Toggle, (unsigned), void), AS_CALL_THISCALL);
  6884. // void DebugHud::ToggleAll()
  6885. engine->RegisterObjectMethod(className, "void ToggleAll()", AS_METHODPR(T, ToggleAll, (), void), AS_CALL_THISCALL);
  6886. // void DebugHud::Update()
  6887. engine->RegisterObjectMethod(className, "void Update()", AS_METHODPR(T, Update, (), void), AS_CALL_THISCALL);
  6888. #ifdef REGISTER_MEMBERS_MANUAL_PART_DebugHud
  6889. REGISTER_MEMBERS_MANUAL_PART_DebugHud();
  6890. #endif
  6891. }
  6892. // static VariantMap Engine::ParseParameters(const Vector<String>& arguments)
  6893. template <class T> VariantMap Engine_VariantMap_ParseParameters_constspVectorlesStringgreamp(CScriptArray* arguments_conv)
  6894. {
  6895. Vector<String> arguments = ArrayToVector<String>(arguments_conv);
  6896. VariantMap result = T::ParseParameters(arguments);
  6897. return result;
  6898. }
  6899. // class Engine | File: ../Engine/Engine.h
  6900. template <class T> void RegisterMembers_Engine(asIScriptEngine* engine, const char* className)
  6901. {
  6902. RegisterMembers_Object<T>(engine, className);
  6903. // void Engine::ApplyFrameLimit()
  6904. engine->RegisterObjectMethod(className, "void ApplyFrameLimit()", AS_METHODPR(T, ApplyFrameLimit, (), void), AS_CALL_THISCALL);
  6905. // Console* Engine::CreateConsole()
  6906. engine->RegisterObjectMethod(className, "Console@+ CreateConsole()", AS_METHODPR(T, CreateConsole, (), Console*), AS_CALL_THISCALL);
  6907. // DebugHud* Engine::CreateDebugHud()
  6908. engine->RegisterObjectMethod(className, "DebugHud@+ CreateDebugHud()", AS_METHODPR(T, CreateDebugHud, (), DebugHud*), AS_CALL_THISCALL);
  6909. // void Engine::DumpMemory()
  6910. engine->RegisterObjectMethod(className, "void DumpMemory()", AS_METHODPR(T, DumpMemory, (), void), AS_CALL_THISCALL);
  6911. // void Engine::DumpProfiler()
  6912. engine->RegisterObjectMethod(className, "void DumpProfiler()", AS_METHODPR(T, DumpProfiler, (), void), AS_CALL_THISCALL);
  6913. // void Engine::DumpResources(bool dumpFileName = false)
  6914. engine->RegisterObjectMethod(className, "void DumpResources(bool = false)", AS_METHODPR(T, DumpResources, (bool), void), AS_CALL_THISCALL);
  6915. // void Engine::Exit()
  6916. engine->RegisterObjectMethod(className, "void Exit()", AS_METHODPR(T, Exit, (), void), AS_CALL_THISCALL);
  6917. // bool Engine::GetAutoExit() const
  6918. engine->RegisterObjectMethod(className, "bool GetAutoExit() const", AS_METHODPR(T, GetAutoExit, () const, bool), AS_CALL_THISCALL);
  6919. engine->RegisterObjectMethod(className, "bool get_autoExit() const", AS_METHODPR(T, GetAutoExit, () const, bool), AS_CALL_THISCALL);
  6920. // int Engine::GetMaxFps() const
  6921. engine->RegisterObjectMethod(className, "int GetMaxFps() const", AS_METHODPR(T, GetMaxFps, () const, int), AS_CALL_THISCALL);
  6922. engine->RegisterObjectMethod(className, "int get_maxFps() const", AS_METHODPR(T, GetMaxFps, () const, int), AS_CALL_THISCALL);
  6923. // int Engine::GetMaxInactiveFps() const
  6924. engine->RegisterObjectMethod(className, "int GetMaxInactiveFps() const", AS_METHODPR(T, GetMaxInactiveFps, () const, int), AS_CALL_THISCALL);
  6925. engine->RegisterObjectMethod(className, "int get_maxInactiveFps() const", AS_METHODPR(T, GetMaxInactiveFps, () const, int), AS_CALL_THISCALL);
  6926. // int Engine::GetMinFps() const
  6927. engine->RegisterObjectMethod(className, "int GetMinFps() const", AS_METHODPR(T, GetMinFps, () const, int), AS_CALL_THISCALL);
  6928. engine->RegisterObjectMethod(className, "int get_minFps() const", AS_METHODPR(T, GetMinFps, () const, int), AS_CALL_THISCALL);
  6929. // float Engine::GetNextTimeStep() const
  6930. engine->RegisterObjectMethod(className, "float GetNextTimeStep() const", AS_METHODPR(T, GetNextTimeStep, () const, float), AS_CALL_THISCALL);
  6931. // bool Engine::GetPauseMinimized() const
  6932. engine->RegisterObjectMethod(className, "bool GetPauseMinimized() const", AS_METHODPR(T, GetPauseMinimized, () const, bool), AS_CALL_THISCALL);
  6933. engine->RegisterObjectMethod(className, "bool get_pauseMinimized() const", AS_METHODPR(T, GetPauseMinimized, () const, bool), AS_CALL_THISCALL);
  6934. // int Engine::GetTimeStepSmoothing() const
  6935. engine->RegisterObjectMethod(className, "int GetTimeStepSmoothing() const", AS_METHODPR(T, GetTimeStepSmoothing, () const, int), AS_CALL_THISCALL);
  6936. engine->RegisterObjectMethod(className, "int get_timeStepSmoothing() const", AS_METHODPR(T, GetTimeStepSmoothing, () const, int), AS_CALL_THISCALL);
  6937. // bool Engine::Initialize(const VariantMap& parameters)
  6938. engine->RegisterObjectMethod(className, "bool Initialize(const VariantMap&in)", AS_METHODPR(T, Initialize, (const VariantMap&), bool), AS_CALL_THISCALL);
  6939. // bool Engine::InitializeResourceCache(const VariantMap& parameters, bool removeOld = true)
  6940. engine->RegisterObjectMethod(className, "bool InitializeResourceCache(const VariantMap&in, bool = true)", AS_METHODPR(T, InitializeResourceCache, (const VariantMap&, bool), bool), AS_CALL_THISCALL);
  6941. // bool Engine::IsExiting() const
  6942. engine->RegisterObjectMethod(className, "bool IsExiting() const", AS_METHODPR(T, IsExiting, () const, bool), AS_CALL_THISCALL);
  6943. engine->RegisterObjectMethod(className, "bool get_exiting() const", AS_METHODPR(T, IsExiting, () const, bool), AS_CALL_THISCALL);
  6944. // bool Engine::IsHeadless() const
  6945. engine->RegisterObjectMethod(className, "bool IsHeadless() const", AS_METHODPR(T, IsHeadless, () const, bool), AS_CALL_THISCALL);
  6946. engine->RegisterObjectMethod(className, "bool get_headless() const", AS_METHODPR(T, IsHeadless, () const, bool), AS_CALL_THISCALL);
  6947. // bool Engine::IsInitialized() const
  6948. engine->RegisterObjectMethod(className, "bool IsInitialized() const", AS_METHODPR(T, IsInitialized, () const, bool), AS_CALL_THISCALL);
  6949. engine->RegisterObjectMethod(className, "bool get_initialized() const", AS_METHODPR(T, IsInitialized, () const, bool), AS_CALL_THISCALL);
  6950. // void Engine::Render()
  6951. engine->RegisterObjectMethod(className, "void Render()", AS_METHODPR(T, Render, (), void), AS_CALL_THISCALL);
  6952. // void Engine::RunFrame()
  6953. engine->RegisterObjectMethod(className, "void RunFrame()", AS_METHODPR(T, RunFrame, (), void), AS_CALL_THISCALL);
  6954. // void Engine::SetAutoExit(bool enable)
  6955. engine->RegisterObjectMethod(className, "void SetAutoExit(bool)", AS_METHODPR(T, SetAutoExit, (bool), void), AS_CALL_THISCALL);
  6956. engine->RegisterObjectMethod(className, "void set_autoExit(bool)", AS_METHODPR(T, SetAutoExit, (bool), void), AS_CALL_THISCALL);
  6957. // void Engine::SetMaxFps(int fps)
  6958. engine->RegisterObjectMethod(className, "void SetMaxFps(int)", AS_METHODPR(T, SetMaxFps, (int), void), AS_CALL_THISCALL);
  6959. engine->RegisterObjectMethod(className, "void set_maxFps(int)", AS_METHODPR(T, SetMaxFps, (int), void), AS_CALL_THISCALL);
  6960. // void Engine::SetMaxInactiveFps(int fps)
  6961. engine->RegisterObjectMethod(className, "void SetMaxInactiveFps(int)", AS_METHODPR(T, SetMaxInactiveFps, (int), void), AS_CALL_THISCALL);
  6962. engine->RegisterObjectMethod(className, "void set_maxInactiveFps(int)", AS_METHODPR(T, SetMaxInactiveFps, (int), void), AS_CALL_THISCALL);
  6963. // void Engine::SetMinFps(int fps)
  6964. engine->RegisterObjectMethod(className, "void SetMinFps(int)", AS_METHODPR(T, SetMinFps, (int), void), AS_CALL_THISCALL);
  6965. engine->RegisterObjectMethod(className, "void set_minFps(int)", AS_METHODPR(T, SetMinFps, (int), void), AS_CALL_THISCALL);
  6966. // void Engine::SetNextTimeStep(float seconds)
  6967. engine->RegisterObjectMethod(className, "void SetNextTimeStep(float)", AS_METHODPR(T, SetNextTimeStep, (float), void), AS_CALL_THISCALL);
  6968. // void Engine::SetPauseMinimized(bool enable)
  6969. engine->RegisterObjectMethod(className, "void SetPauseMinimized(bool)", AS_METHODPR(T, SetPauseMinimized, (bool), void), AS_CALL_THISCALL);
  6970. engine->RegisterObjectMethod(className, "void set_pauseMinimized(bool)", AS_METHODPR(T, SetPauseMinimized, (bool), void), AS_CALL_THISCALL);
  6971. // void Engine::SetTimeStepSmoothing(int frames)
  6972. engine->RegisterObjectMethod(className, "void SetTimeStepSmoothing(int)", AS_METHODPR(T, SetTimeStepSmoothing, (int), void), AS_CALL_THISCALL);
  6973. engine->RegisterObjectMethod(className, "void set_timeStepSmoothing(int)", AS_METHODPR(T, SetTimeStepSmoothing, (int), void), AS_CALL_THISCALL);
  6974. // void Engine::Update()
  6975. engine->RegisterObjectMethod(className, "void Update()", AS_METHODPR(T, Update, (), void), AS_CALL_THISCALL);
  6976. // static VariantMap Engine::ParseParameters(const Vector<String>& arguments)
  6977. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("VariantMap ParseParameters(Array<String>@+)", AS_FUNCTION(Engine_VariantMap_ParseParameters_constspVectorlesStringgreamp<Engine>), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  6978. // static bool Engine::HasParameter(const VariantMap& parameters, const String& parameter)
  6979. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("bool HasParameter(const VariantMap&in, const String&in)", AS_FUNCTIONPR(T::HasParameter, (const VariantMap&, const String&), bool), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  6980. // static const Variant& Engine::GetParameter(const VariantMap& parameters, const String& parameter, const Variant& defaultValue = Variant::EMPTY)
  6981. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("const Variant& GetParameter(const VariantMap&in, const String&in, const Variant&in = Variant::EMPTY)", AS_FUNCTIONPR(T::GetParameter, (const VariantMap&, const String&, const Variant&), const Variant&), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  6982. #ifdef REGISTER_MEMBERS_MANUAL_PART_Engine
  6983. REGISTER_MEMBERS_MANUAL_PART_Engine();
  6984. #endif
  6985. }
  6986. // class EventHandler11Impl | File: ../Core/Object.h
  6987. template <class T> void RegisterMembers_EventHandler11Impl(asIScriptEngine* engine, const char* className)
  6988. {
  6989. RegisterMembers_EventHandler<T>(engine, className);
  6990. #ifdef REGISTER_MEMBERS_MANUAL_PART_EventHandler11Impl
  6991. REGISTER_MEMBERS_MANUAL_PART_EventHandler11Impl();
  6992. #endif
  6993. }
  6994. // class File | File: ../IO/File.h
  6995. template <class T> void RegisterMembers_File(asIScriptEngine* engine, const char* className)
  6996. {
  6997. RegisterMembers_Object<T>(engine, className);
  6998. RegisterMembers_AbstractFile<T>(engine, className);
  6999. // void* File::GetHandle() const
  7000. // Error: type "void*" can not automatically bind
  7001. // void File::Close()
  7002. engine->RegisterObjectMethod(className, "void Close()", AS_METHODPR(T, Close, (), void), AS_CALL_THISCALL);
  7003. // void File::Flush()
  7004. engine->RegisterObjectMethod(className, "void Flush()", AS_METHODPR(T, Flush, (), void), AS_CALL_THISCALL);
  7005. // FileMode File::GetMode() const
  7006. engine->RegisterObjectMethod(className, "FileMode GetMode() const", AS_METHODPR(T, GetMode, () const, FileMode), AS_CALL_THISCALL);
  7007. engine->RegisterObjectMethod(className, "FileMode get_mode() const", AS_METHODPR(T, GetMode, () const, FileMode), AS_CALL_THISCALL);
  7008. // bool File::IsOpen() const
  7009. engine->RegisterObjectMethod(className, "bool IsOpen() const", AS_METHODPR(T, IsOpen, () const, bool), AS_CALL_THISCALL);
  7010. engine->RegisterObjectMethod(className, "bool get_open() const", AS_METHODPR(T, IsOpen, () const, bool), AS_CALL_THISCALL);
  7011. // bool File::IsPackaged() const
  7012. engine->RegisterObjectMethod(className, "bool IsPackaged() const", AS_METHODPR(T, IsPackaged, () const, bool), AS_CALL_THISCALL);
  7013. engine->RegisterObjectMethod(className, "bool get_packaged() const", AS_METHODPR(T, IsPackaged, () const, bool), AS_CALL_THISCALL);
  7014. // bool File::Open(const String& fileName, FileMode mode = FILE_READ)
  7015. engine->RegisterObjectMethod(className, "bool Open(const String&in, FileMode = FILE_READ)", AS_METHODPR(T, Open, (const String&, FileMode), bool), AS_CALL_THISCALL);
  7016. // bool File::Open(PackageFile* package, const String& fileName)
  7017. engine->RegisterObjectMethod(className, "bool Open(PackageFile@+, const String&in)", AS_METHODPR(T, Open, (PackageFile*, const String&), bool), AS_CALL_THISCALL);
  7018. #ifdef REGISTER_MEMBERS_MANUAL_PART_File
  7019. REGISTER_MEMBERS_MANUAL_PART_File();
  7020. #endif
  7021. }
  7022. // void FileSelector::SetFilters(const Vector<String>& filters, unsigned defaultIndex)
  7023. template <class T> void FileSelector_void_SetFilters_constspVectorlesStringgreamp_unsigned_template(T* _ptr, CScriptArray* filters_conv, unsigned defaultIndex)
  7024. {
  7025. Vector<String> filters = ArrayToVector<String>(filters_conv);
  7026. _ptr->SetFilters(filters, defaultIndex);
  7027. }
  7028. // class FileSelector | File: ../UI/FileSelector.h
  7029. template <class T> void RegisterMembers_FileSelector(asIScriptEngine* engine, const char* className)
  7030. {
  7031. RegisterMembers_Object<T>(engine, className);
  7032. // Button* FileSelector::GetCancelButton() const
  7033. engine->RegisterObjectMethod(className, "Button@+ GetCancelButton() const", AS_METHODPR(T, GetCancelButton, () const, Button*), AS_CALL_THISCALL);
  7034. engine->RegisterObjectMethod(className, "Button@+ get_cancelButton() const", AS_METHODPR(T, GetCancelButton, () const, Button*), AS_CALL_THISCALL);
  7035. // Button* FileSelector::GetCloseButton() const
  7036. engine->RegisterObjectMethod(className, "Button@+ GetCloseButton() const", AS_METHODPR(T, GetCloseButton, () const, Button*), AS_CALL_THISCALL);
  7037. // XMLFile* FileSelector::GetDefaultStyle() const
  7038. engine->RegisterObjectMethod(className, "XMLFile@+ GetDefaultStyle() const", AS_METHODPR(T, GetDefaultStyle, () const, XMLFile*), AS_CALL_THISCALL);
  7039. engine->RegisterObjectMethod(className, "XMLFile@+ get_defaultStyle() const", AS_METHODPR(T, GetDefaultStyle, () const, XMLFile*), AS_CALL_THISCALL);
  7040. // bool FileSelector::GetDirectoryMode() const
  7041. engine->RegisterObjectMethod(className, "bool GetDirectoryMode() const", AS_METHODPR(T, GetDirectoryMode, () const, bool), AS_CALL_THISCALL);
  7042. engine->RegisterObjectMethod(className, "bool get_directoryMode() const", AS_METHODPR(T, GetDirectoryMode, () const, bool), AS_CALL_THISCALL);
  7043. // ListView* FileSelector::GetFileList() const
  7044. engine->RegisterObjectMethod(className, "ListView@+ GetFileList() const", AS_METHODPR(T, GetFileList, () const, ListView*), AS_CALL_THISCALL);
  7045. engine->RegisterObjectMethod(className, "ListView@+ get_fileList() const", AS_METHODPR(T, GetFileList, () const, ListView*), AS_CALL_THISCALL);
  7046. // const String& FileSelector::GetFileName() const
  7047. engine->RegisterObjectMethod(className, "const String& GetFileName() const", AS_METHODPR(T, GetFileName, () const, const String&), AS_CALL_THISCALL);
  7048. engine->RegisterObjectMethod(className, "const String& get_fileName() const", AS_METHODPR(T, GetFileName, () const, const String&), AS_CALL_THISCALL);
  7049. // LineEdit* FileSelector::GetFileNameEdit() const
  7050. engine->RegisterObjectMethod(className, "LineEdit@+ GetFileNameEdit() const", AS_METHODPR(T, GetFileNameEdit, () const, LineEdit*), AS_CALL_THISCALL);
  7051. engine->RegisterObjectMethod(className, "LineEdit@+ get_fileNameEdit() const", AS_METHODPR(T, GetFileNameEdit, () const, LineEdit*), AS_CALL_THISCALL);
  7052. // const String& FileSelector::GetFilter() const
  7053. engine->RegisterObjectMethod(className, "const String& GetFilter() const", AS_METHODPR(T, GetFilter, () const, const String&), AS_CALL_THISCALL);
  7054. engine->RegisterObjectMethod(className, "const String& get_filter() const", AS_METHODPR(T, GetFilter, () const, const String&), AS_CALL_THISCALL);
  7055. // unsigned FileSelector::GetFilterIndex() const
  7056. engine->RegisterObjectMethod(className, "uint GetFilterIndex() const", AS_METHODPR(T, GetFilterIndex, () const, unsigned), AS_CALL_THISCALL);
  7057. engine->RegisterObjectMethod(className, "uint get_filterIndex() const", AS_METHODPR(T, GetFilterIndex, () const, unsigned), AS_CALL_THISCALL);
  7058. // DropDownList* FileSelector::GetFilterList() const
  7059. engine->RegisterObjectMethod(className, "DropDownList@+ GetFilterList() const", AS_METHODPR(T, GetFilterList, () const, DropDownList*), AS_CALL_THISCALL);
  7060. engine->RegisterObjectMethod(className, "DropDownList@+ get_filterList() const", AS_METHODPR(T, GetFilterList, () const, DropDownList*), AS_CALL_THISCALL);
  7061. // Button* FileSelector::GetOKButton() const
  7062. engine->RegisterObjectMethod(className, "Button@+ GetOKButton() const", AS_METHODPR(T, GetOKButton, () const, Button*), AS_CALL_THISCALL);
  7063. engine->RegisterObjectMethod(className, "Button@+ get_okButton() const", AS_METHODPR(T, GetOKButton, () const, Button*), AS_CALL_THISCALL);
  7064. // const String& FileSelector::GetPath() const
  7065. engine->RegisterObjectMethod(className, "const String& GetPath() const", AS_METHODPR(T, GetPath, () const, const String&), AS_CALL_THISCALL);
  7066. engine->RegisterObjectMethod(className, "const String& get_path() const", AS_METHODPR(T, GetPath, () const, const String&), AS_CALL_THISCALL);
  7067. // LineEdit* FileSelector::GetPathEdit() const
  7068. engine->RegisterObjectMethod(className, "LineEdit@+ GetPathEdit() const", AS_METHODPR(T, GetPathEdit, () const, LineEdit*), AS_CALL_THISCALL);
  7069. engine->RegisterObjectMethod(className, "LineEdit@+ get_pathEdit() const", AS_METHODPR(T, GetPathEdit, () const, LineEdit*), AS_CALL_THISCALL);
  7070. // const String& FileSelector::GetTitle() const
  7071. engine->RegisterObjectMethod(className, "const String& GetTitle() const", AS_METHODPR(T, GetTitle, () const, const String&), AS_CALL_THISCALL);
  7072. engine->RegisterObjectMethod(className, "const String& get_title() const", AS_METHODPR(T, GetTitle, () const, const String&), AS_CALL_THISCALL);
  7073. // Text* FileSelector::GetTitleText() const
  7074. engine->RegisterObjectMethod(className, "Text@+ GetTitleText() const", AS_METHODPR(T, GetTitleText, () const, Text*), AS_CALL_THISCALL);
  7075. engine->RegisterObjectMethod(className, "Text@+ get_titleText() const", AS_METHODPR(T, GetTitleText, () const, Text*), AS_CALL_THISCALL);
  7076. // Window* FileSelector::GetWindow() const
  7077. engine->RegisterObjectMethod(className, "Window@+ GetWindow() const", AS_METHODPR(T, GetWindow, () const, Window*), AS_CALL_THISCALL);
  7078. engine->RegisterObjectMethod(className, "Window@+ get_window() const", AS_METHODPR(T, GetWindow, () const, Window*), AS_CALL_THISCALL);
  7079. // void FileSelector::SetButtonTexts(const String& okText, const String& cancelText)
  7080. engine->RegisterObjectMethod(className, "void SetButtonTexts(const String&in, const String&in)", AS_METHODPR(T, SetButtonTexts, (const String&, const String&), void), AS_CALL_THISCALL);
  7081. // void FileSelector::SetDefaultStyle(XMLFile* style)
  7082. engine->RegisterObjectMethod(className, "void SetDefaultStyle(XMLFile@+)", AS_METHODPR(T, SetDefaultStyle, (XMLFile*), void), AS_CALL_THISCALL);
  7083. engine->RegisterObjectMethod(className, "void set_defaultStyle(XMLFile@+)", AS_METHODPR(T, SetDefaultStyle, (XMLFile*), void), AS_CALL_THISCALL);
  7084. // void FileSelector::SetDirectoryMode(bool enable)
  7085. engine->RegisterObjectMethod(className, "void SetDirectoryMode(bool)", AS_METHODPR(T, SetDirectoryMode, (bool), void), AS_CALL_THISCALL);
  7086. engine->RegisterObjectMethod(className, "void set_directoryMode(bool)", AS_METHODPR(T, SetDirectoryMode, (bool), void), AS_CALL_THISCALL);
  7087. // void FileSelector::SetFileName(const String& fileName)
  7088. engine->RegisterObjectMethod(className, "void SetFileName(const String&in)", AS_METHODPR(T, SetFileName, (const String&), void), AS_CALL_THISCALL);
  7089. engine->RegisterObjectMethod(className, "void set_fileName(const String&in)", AS_METHODPR(T, SetFileName, (const String&), void), AS_CALL_THISCALL);
  7090. // void FileSelector::SetFilters(const Vector<String>& filters, unsigned defaultIndex)
  7091. engine->RegisterObjectMethod(className, "void SetFilters(Array<String>@+, uint)", AS_FUNCTION_OBJFIRST(FileSelector_void_SetFilters_constspVectorlesStringgreamp_unsigned_template<FileSelector>), AS_CALL_CDECL_OBJFIRST);
  7092. // void FileSelector::SetPath(const String& path)
  7093. engine->RegisterObjectMethod(className, "void SetPath(const String&in)", AS_METHODPR(T, SetPath, (const String&), void), AS_CALL_THISCALL);
  7094. engine->RegisterObjectMethod(className, "void set_path(const String&in)", AS_METHODPR(T, SetPath, (const String&), void), AS_CALL_THISCALL);
  7095. // void FileSelector::SetTitle(const String& text)
  7096. engine->RegisterObjectMethod(className, "void SetTitle(const String&in)", AS_METHODPR(T, SetTitle, (const String&), void), AS_CALL_THISCALL);
  7097. engine->RegisterObjectMethod(className, "void set_title(const String&in)", AS_METHODPR(T, SetTitle, (const String&), void), AS_CALL_THISCALL);
  7098. // void FileSelector::UpdateElements()
  7099. engine->RegisterObjectMethod(className, "void UpdateElements()", AS_METHODPR(T, UpdateElements, (), void), AS_CALL_THISCALL);
  7100. // static void FileSelector::RegisterObject(Context* context)
  7101. // Not registered because have @nobind mark
  7102. #ifdef REGISTER_MEMBERS_MANUAL_PART_FileSelector
  7103. REGISTER_MEMBERS_MANUAL_PART_FileSelector();
  7104. #endif
  7105. }
  7106. // int FileSystem::SystemRun(const String& fileName, const Vector<String>& arguments)
  7107. template <class T> int FileSystem_int_SystemRun_constspStringamp_constspVectorlesStringgreamp_template(T* _ptr, const String& fileName, CScriptArray* arguments_conv)
  7108. {
  7109. Vector<String> arguments = ArrayToVector<String>(arguments_conv);
  7110. int result = _ptr->SystemRun(fileName, arguments);
  7111. return result;
  7112. }
  7113. // unsigned FileSystem::SystemRunAsync(const String& fileName, const Vector<String>& arguments)
  7114. template <class T> unsigned FileSystem_unsigned_SystemRunAsync_constspStringamp_constspVectorlesStringgreamp_template(T* _ptr, const String& fileName, CScriptArray* arguments_conv)
  7115. {
  7116. Vector<String> arguments = ArrayToVector<String>(arguments_conv);
  7117. unsigned result = _ptr->SystemRunAsync(fileName, arguments);
  7118. return result;
  7119. }
  7120. // class FileSystem | File: ../IO/FileSystem.h
  7121. template <class T> void RegisterMembers_FileSystem(asIScriptEngine* engine, const char* className)
  7122. {
  7123. RegisterMembers_Object<T>(engine, className);
  7124. // void FileSystem::ScanDir(Vector<String>& result, const String& pathName, const String& filter, unsigned flags, bool recursive) const
  7125. // Error: type "Vector<String>&" can not automatically bind
  7126. // bool FileSystem::CheckAccess(const String& pathName) const
  7127. engine->RegisterObjectMethod(className, "bool CheckAccess(const String&in) const", AS_METHODPR(T, CheckAccess, (const String&) const, bool), AS_CALL_THISCALL);
  7128. // bool FileSystem::Copy(const String& srcFileName, const String& destFileName)
  7129. engine->RegisterObjectMethod(className, "bool Copy(const String&in, const String&in)", AS_METHODPR(T, Copy, (const String&, const String&), bool), AS_CALL_THISCALL);
  7130. // bool FileSystem::CreateDir(const String& pathName)
  7131. engine->RegisterObjectMethod(className, "bool CreateDir(const String&in)", AS_METHODPR(T, CreateDir, (const String&), bool), AS_CALL_THISCALL);
  7132. // bool FileSystem::Delete(const String& fileName)
  7133. engine->RegisterObjectMethod(className, "bool Delete(const String&in)", AS_METHODPR(T, Delete, (const String&), bool), AS_CALL_THISCALL);
  7134. // bool FileSystem::DirExists(const String& pathName) const
  7135. engine->RegisterObjectMethod(className, "bool DirExists(const String&in) const", AS_METHODPR(T, DirExists, (const String&) const, bool), AS_CALL_THISCALL);
  7136. // bool FileSystem::FileExists(const String& fileName) const
  7137. engine->RegisterObjectMethod(className, "bool FileExists(const String&in) const", AS_METHODPR(T, FileExists, (const String&) const, bool), AS_CALL_THISCALL);
  7138. // String FileSystem::GetAppPreferencesDir(const String& org, const String& app) const
  7139. engine->RegisterObjectMethod(className, "String GetAppPreferencesDir(const String&in, const String&in) const", AS_METHODPR(T, GetAppPreferencesDir, (const String&, const String&) const, String), AS_CALL_THISCALL);
  7140. // String FileSystem::GetCurrentDir() const
  7141. engine->RegisterObjectMethod(className, "String GetCurrentDir() const", AS_METHODPR(T, GetCurrentDir, () const, String), AS_CALL_THISCALL);
  7142. engine->RegisterObjectMethod(className, "String get_currentDir() const", AS_METHODPR(T, GetCurrentDir, () const, String), AS_CALL_THISCALL);
  7143. // bool FileSystem::GetExecuteConsoleCommands() const
  7144. engine->RegisterObjectMethod(className, "bool GetExecuteConsoleCommands() const", AS_METHODPR(T, GetExecuteConsoleCommands, () const, bool), AS_CALL_THISCALL);
  7145. engine->RegisterObjectMethod(className, "bool get_executeConsoleCommands() const", AS_METHODPR(T, GetExecuteConsoleCommands, () const, bool), AS_CALL_THISCALL);
  7146. // unsigned FileSystem::GetLastModifiedTime(const String& fileName) const
  7147. engine->RegisterObjectMethod(className, "uint GetLastModifiedTime(const String&in) const", AS_METHODPR(T, GetLastModifiedTime, (const String&) const, unsigned), AS_CALL_THISCALL);
  7148. // String FileSystem::GetProgramDir() const
  7149. engine->RegisterObjectMethod(className, "String GetProgramDir() const", AS_METHODPR(T, GetProgramDir, () const, String), AS_CALL_THISCALL);
  7150. engine->RegisterObjectMethod(className, "String get_programDir() const", AS_METHODPR(T, GetProgramDir, () const, String), AS_CALL_THISCALL);
  7151. // String FileSystem::GetTemporaryDir() const
  7152. engine->RegisterObjectMethod(className, "String GetTemporaryDir() const", AS_METHODPR(T, GetTemporaryDir, () const, String), AS_CALL_THISCALL);
  7153. engine->RegisterObjectMethod(className, "String get_temporaryDir() const", AS_METHODPR(T, GetTemporaryDir, () const, String), AS_CALL_THISCALL);
  7154. // String FileSystem::GetUserDocumentsDir() const
  7155. engine->RegisterObjectMethod(className, "String GetUserDocumentsDir() const", AS_METHODPR(T, GetUserDocumentsDir, () const, String), AS_CALL_THISCALL);
  7156. engine->RegisterObjectMethod(className, "String get_userDocumentsDir() const", AS_METHODPR(T, GetUserDocumentsDir, () const, String), AS_CALL_THISCALL);
  7157. // bool FileSystem::HasRegisteredPaths() const
  7158. engine->RegisterObjectMethod(className, "bool HasRegisteredPaths() const", AS_METHODPR(T, HasRegisteredPaths, () const, bool), AS_CALL_THISCALL);
  7159. // void FileSystem::RegisterPath(const String& pathName)
  7160. engine->RegisterObjectMethod(className, "void RegisterPath(const String&in)", AS_METHODPR(T, RegisterPath, (const String&), void), AS_CALL_THISCALL);
  7161. // bool FileSystem::Rename(const String& srcFileName, const String& destFileName)
  7162. engine->RegisterObjectMethod(className, "bool Rename(const String&in, const String&in)", AS_METHODPR(T, Rename, (const String&, const String&), bool), AS_CALL_THISCALL);
  7163. // bool FileSystem::SetCurrentDir(const String& pathName)
  7164. engine->RegisterObjectMethod(className, "bool SetCurrentDir(const String&in)", AS_METHODPR(T, SetCurrentDir, (const String&), bool), AS_CALL_THISCALL);
  7165. engine->RegisterObjectMethod(className, "bool set_currentDir(const String&in)", AS_METHODPR(T, SetCurrentDir, (const String&), bool), AS_CALL_THISCALL);
  7166. // void FileSystem::SetExecuteConsoleCommands(bool enable)
  7167. engine->RegisterObjectMethod(className, "void SetExecuteConsoleCommands(bool)", AS_METHODPR(T, SetExecuteConsoleCommands, (bool), void), AS_CALL_THISCALL);
  7168. engine->RegisterObjectMethod(className, "void set_executeConsoleCommands(bool)", AS_METHODPR(T, SetExecuteConsoleCommands, (bool), void), AS_CALL_THISCALL);
  7169. // bool FileSystem::SetLastModifiedTime(const String& fileName, unsigned newTime)
  7170. engine->RegisterObjectMethod(className, "bool SetLastModifiedTime(const String&in, uint)", AS_METHODPR(T, SetLastModifiedTime, (const String&, unsigned), bool), AS_CALL_THISCALL);
  7171. // int FileSystem::SystemCommand(const String& commandLine, bool redirectStdOutToLog = false)
  7172. engine->RegisterObjectMethod(className, "int SystemCommand(const String&in, bool = false)", AS_METHODPR(T, SystemCommand, (const String&, bool), int), AS_CALL_THISCALL);
  7173. // unsigned FileSystem::SystemCommandAsync(const String& commandLine)
  7174. engine->RegisterObjectMethod(className, "uint SystemCommandAsync(const String&in)", AS_METHODPR(T, SystemCommandAsync, (const String&), unsigned), AS_CALL_THISCALL);
  7175. // bool FileSystem::SystemOpen(const String& fileName, const String& mode = String::EMPTY)
  7176. engine->RegisterObjectMethod(className, "bool SystemOpen(const String&in, const String&in = String::EMPTY)", AS_METHODPR(T, SystemOpen, (const String&, const String&), bool), AS_CALL_THISCALL);
  7177. // int FileSystem::SystemRun(const String& fileName, const Vector<String>& arguments)
  7178. engine->RegisterObjectMethod(className, "int SystemRun(const String&in, Array<String>@+)", AS_FUNCTION_OBJFIRST(FileSystem_int_SystemRun_constspStringamp_constspVectorlesStringgreamp_template<FileSystem>), AS_CALL_CDECL_OBJFIRST);
  7179. // unsigned FileSystem::SystemRunAsync(const String& fileName, const Vector<String>& arguments)
  7180. engine->RegisterObjectMethod(className, "uint SystemRunAsync(const String&in, Array<String>@+)", AS_FUNCTION_OBJFIRST(FileSystem_unsigned_SystemRunAsync_constspStringamp_constspVectorlesStringgreamp_template<FileSystem>), AS_CALL_CDECL_OBJFIRST);
  7181. #ifdef REGISTER_MEMBERS_MANUAL_PART_FileSystem
  7182. REGISTER_MEMBERS_MANUAL_PART_FileSystem();
  7183. #endif
  7184. }
  7185. // class FileWatcher | File: ../IO/FileWatcher.h
  7186. template <class T> void RegisterMembers_FileWatcher(asIScriptEngine* engine, const char* className)
  7187. {
  7188. RegisterMembers_Object<T>(engine, className);
  7189. RegisterMembers_Thread<T>(engine, className);
  7190. // void FileWatcher::AddChange(const String& fileName)
  7191. engine->RegisterObjectMethod(className, "void AddChange(const String&in)", AS_METHODPR(T, AddChange, (const String&), void), AS_CALL_THISCALL);
  7192. // float FileWatcher::GetDelay() const
  7193. engine->RegisterObjectMethod(className, "float GetDelay() const", AS_METHODPR(T, GetDelay, () const, float), AS_CALL_THISCALL);
  7194. // bool FileWatcher::GetNextChange(String& dest)
  7195. engine->RegisterObjectMethod(className, "bool GetNextChange(String&)", AS_METHODPR(T, GetNextChange, (String&), bool), AS_CALL_THISCALL);
  7196. // const String& FileWatcher::GetPath() const
  7197. engine->RegisterObjectMethod(className, "const String& GetPath() const", AS_METHODPR(T, GetPath, () const, const String&), AS_CALL_THISCALL);
  7198. // void FileWatcher::SetDelay(float interval)
  7199. engine->RegisterObjectMethod(className, "void SetDelay(float)", AS_METHODPR(T, SetDelay, (float), void), AS_CALL_THISCALL);
  7200. // bool FileWatcher::StartWatching(const String& pathName, bool watchSubDirs)
  7201. engine->RegisterObjectMethod(className, "bool StartWatching(const String&in, bool)", AS_METHODPR(T, StartWatching, (const String&, bool), bool), AS_CALL_THISCALL);
  7202. // void FileWatcher::StopWatching()
  7203. engine->RegisterObjectMethod(className, "void StopWatching()", AS_METHODPR(T, StopWatching, (), void), AS_CALL_THISCALL);
  7204. #ifdef REGISTER_MEMBERS_MANUAL_PART_FileWatcher
  7205. REGISTER_MEMBERS_MANUAL_PART_FileWatcher();
  7206. #endif
  7207. }
  7208. // class FontFaceBitmap | File: ../UI/FontFaceBitmap.h
  7209. template <class T> void RegisterMembers_FontFaceBitmap(asIScriptEngine* engine, const char* className)
  7210. {
  7211. RegisterMembers_FontFace<T>(engine, className);
  7212. // bool FontFaceBitmap::Load(FontFace* fontFace, bool usedGlyphs)
  7213. engine->RegisterObjectMethod(className, "bool Load(FontFace@+, bool)", AS_METHODPR(T, Load, (FontFace*, bool), bool), AS_CALL_THISCALL);
  7214. // bool FontFaceBitmap::Save(Serializer& dest, int pointSize, const String& indentation = "\t")
  7215. engine->RegisterObjectMethod(className, "bool Save(Serializer&, int, const String&in = \"\t\")", AS_METHODPR(T, Save, (Serializer&, int, const String&), bool), AS_CALL_THISCALL);
  7216. #ifdef REGISTER_MEMBERS_MANUAL_PART_FontFaceBitmap
  7217. REGISTER_MEMBERS_MANUAL_PART_FontFaceBitmap();
  7218. #endif
  7219. }
  7220. // class FontFaceFreeType | File: ../UI/FontFaceFreeType.h
  7221. template <class T> void RegisterMembers_FontFaceFreeType(asIScriptEngine* engine, const char* className)
  7222. {
  7223. RegisterMembers_FontFace<T>(engine, className);
  7224. #ifdef REGISTER_MEMBERS_MANUAL_PART_FontFaceFreeType
  7225. REGISTER_MEMBERS_MANUAL_PART_FontFaceFreeType();
  7226. #endif
  7227. }
  7228. // const Vector<SharedPtr<VertexBuffer>>& Geometry::GetVertexBuffers() const
  7229. template <class T> CScriptArray* Geometry_constspVectorlesSharedPtrlesVertexBuffergregreamp_GetVertexBuffers_void_template(T* _ptr)
  7230. {
  7231. const Vector<SharedPtr<VertexBuffer>>& result = _ptr->GetVertexBuffers();
  7232. return VectorToHandleArray(result, "Array<VertexBuffer@>");
  7233. }
  7234. // class Geometry | File: ../Graphics/Geometry.h
  7235. template <class T> void RegisterMembers_Geometry(asIScriptEngine* engine, const char* className)
  7236. {
  7237. RegisterMembers_Object<T>(engine, className);
  7238. // float Geometry::GetHitDistance(const Ray& ray, Vector3* outNormal = nullptr, Vector2* outUV = nullptr) const
  7239. // Error: type "Vector3*" can not automatically bind
  7240. // void Geometry::GetRawData(const unsigned char*& vertexData, unsigned& vertexSize, const unsigned char*& indexData, unsigned& indexSize, const PODVector<VertexElement>*& elements) const
  7241. // Error: type "const unsigned char*&" can not automatically bind
  7242. // void Geometry::GetRawDataShared(SharedArrayPtr<unsigned char>& vertexData, unsigned& vertexSize, SharedArrayPtr<unsigned char>& indexData, unsigned& indexSize, const PODVector<VertexElement>*& elements) const
  7243. // Error: type "SharedArrayPtr<unsigned char>&" can not automatically bind
  7244. // void Geometry::SetRawIndexData(const SharedArrayPtr<unsigned char>& data, unsigned indexSize)
  7245. // Error: type "const SharedArrayPtr<unsigned char>&" can not automatically bind
  7246. // void Geometry::SetRawVertexData(const SharedArrayPtr<unsigned char>& data, const PODVector<VertexElement>& elements)
  7247. // Error: type "const SharedArrayPtr<unsigned char>&" can not automatically bind
  7248. // void Geometry::SetRawVertexData(const SharedArrayPtr<unsigned char>& data, unsigned elementMask)
  7249. // Error: type "const SharedArrayPtr<unsigned char>&" can not automatically bind
  7250. // void Geometry::Draw(Graphics* graphics)
  7251. engine->RegisterObjectMethod(className, "void Draw(Graphics@+)", AS_METHODPR(T, Draw, (Graphics*), void), AS_CALL_THISCALL);
  7252. // unsigned short Geometry::GetBufferHash() const
  7253. engine->RegisterObjectMethod(className, "uint16 GetBufferHash() const", AS_METHODPR(T, GetBufferHash, () const, unsigned short), AS_CALL_THISCALL);
  7254. // IndexBuffer* Geometry::GetIndexBuffer() const
  7255. engine->RegisterObjectMethod(className, "IndexBuffer@+ GetIndexBuffer() const", AS_METHODPR(T, GetIndexBuffer, () const, IndexBuffer*), AS_CALL_THISCALL);
  7256. engine->RegisterObjectMethod(className, "IndexBuffer@+ get_indexBuffer() const", AS_METHODPR(T, GetIndexBuffer, () const, IndexBuffer*), AS_CALL_THISCALL);
  7257. // unsigned Geometry::GetIndexCount() const
  7258. engine->RegisterObjectMethod(className, "uint GetIndexCount() const", AS_METHODPR(T, GetIndexCount, () const, unsigned), AS_CALL_THISCALL);
  7259. engine->RegisterObjectMethod(className, "uint get_indexCount() const", AS_METHODPR(T, GetIndexCount, () const, unsigned), AS_CALL_THISCALL);
  7260. // unsigned Geometry::GetIndexStart() const
  7261. engine->RegisterObjectMethod(className, "uint GetIndexStart() const", AS_METHODPR(T, GetIndexStart, () const, unsigned), AS_CALL_THISCALL);
  7262. engine->RegisterObjectMethod(className, "uint get_indexStart() const", AS_METHODPR(T, GetIndexStart, () const, unsigned), AS_CALL_THISCALL);
  7263. // float Geometry::GetLodDistance() const
  7264. engine->RegisterObjectMethod(className, "float GetLodDistance() const", AS_METHODPR(T, GetLodDistance, () const, float), AS_CALL_THISCALL);
  7265. engine->RegisterObjectMethod(className, "float get_lodDistance() const", AS_METHODPR(T, GetLodDistance, () const, float), AS_CALL_THISCALL);
  7266. // unsigned Geometry::GetNumVertexBuffers() const
  7267. engine->RegisterObjectMethod(className, "uint GetNumVertexBuffers() const", AS_METHODPR(T, GetNumVertexBuffers, () const, unsigned), AS_CALL_THISCALL);
  7268. engine->RegisterObjectMethod(className, "uint get_numVertexBuffers() const", AS_METHODPR(T, GetNumVertexBuffers, () const, unsigned), AS_CALL_THISCALL);
  7269. // PrimitiveType Geometry::GetPrimitiveType() const
  7270. engine->RegisterObjectMethod(className, "PrimitiveType GetPrimitiveType() const", AS_METHODPR(T, GetPrimitiveType, () const, PrimitiveType), AS_CALL_THISCALL);
  7271. engine->RegisterObjectMethod(className, "PrimitiveType get_primitiveType() const", AS_METHODPR(T, GetPrimitiveType, () const, PrimitiveType), AS_CALL_THISCALL);
  7272. // VertexBuffer* Geometry::GetVertexBuffer(unsigned index) const
  7273. engine->RegisterObjectMethod(className, "VertexBuffer@+ GetVertexBuffer(uint) const", AS_METHODPR(T, GetVertexBuffer, (unsigned) const, VertexBuffer*), AS_CALL_THISCALL);
  7274. engine->RegisterObjectMethod(className, "VertexBuffer@+ get_vertexBuffers(uint) const", AS_METHODPR(T, GetVertexBuffer, (unsigned) const, VertexBuffer*), AS_CALL_THISCALL);
  7275. // const Vector<SharedPtr<VertexBuffer>>& Geometry::GetVertexBuffers() const
  7276. engine->RegisterObjectMethod(className, "Array<VertexBuffer@>@ GetVertexBuffers() const", AS_FUNCTION_OBJFIRST(Geometry_constspVectorlesSharedPtrlesVertexBuffergregreamp_GetVertexBuffers_void_template<Geometry>), AS_CALL_CDECL_OBJFIRST);
  7277. // unsigned Geometry::GetVertexCount() const
  7278. engine->RegisterObjectMethod(className, "uint GetVertexCount() const", AS_METHODPR(T, GetVertexCount, () const, unsigned), AS_CALL_THISCALL);
  7279. engine->RegisterObjectMethod(className, "uint get_vertexCount() const", AS_METHODPR(T, GetVertexCount, () const, unsigned), AS_CALL_THISCALL);
  7280. // unsigned Geometry::GetVertexStart() const
  7281. engine->RegisterObjectMethod(className, "uint GetVertexStart() const", AS_METHODPR(T, GetVertexStart, () const, unsigned), AS_CALL_THISCALL);
  7282. engine->RegisterObjectMethod(className, "uint get_vertexStart() const", AS_METHODPR(T, GetVertexStart, () const, unsigned), AS_CALL_THISCALL);
  7283. // bool Geometry::IsEmpty() const
  7284. engine->RegisterObjectMethod(className, "bool IsEmpty() const", AS_METHODPR(T, IsEmpty, () const, bool), AS_CALL_THISCALL);
  7285. engine->RegisterObjectMethod(className, "bool get_empty() const", AS_METHODPR(T, IsEmpty, () const, bool), AS_CALL_THISCALL);
  7286. // bool Geometry::IsInside(const Ray& ray) const
  7287. engine->RegisterObjectMethod(className, "bool IsInside(const Ray&in) const", AS_METHODPR(T, IsInside, (const Ray&) const, bool), AS_CALL_THISCALL);
  7288. // bool Geometry::SetDrawRange(PrimitiveType type, unsigned indexStart, unsigned indexCount, bool getUsedVertexRange = true)
  7289. engine->RegisterObjectMethod(className, "bool SetDrawRange(PrimitiveType, uint, uint, bool = true)", AS_METHODPR(T, SetDrawRange, (PrimitiveType, unsigned, unsigned, bool), bool), AS_CALL_THISCALL);
  7290. // bool Geometry::SetDrawRange(PrimitiveType type, unsigned indexStart, unsigned indexCount, unsigned vertexStart, unsigned vertexCount, bool checkIllegal = true)
  7291. engine->RegisterObjectMethod(className, "bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true)", AS_METHODPR(T, SetDrawRange, (PrimitiveType, unsigned, unsigned, unsigned, unsigned, bool), bool), AS_CALL_THISCALL);
  7292. // void Geometry::SetIndexBuffer(IndexBuffer* buffer)
  7293. engine->RegisterObjectMethod(className, "void SetIndexBuffer(IndexBuffer@+)", AS_METHODPR(T, SetIndexBuffer, (IndexBuffer*), void), AS_CALL_THISCALL);
  7294. engine->RegisterObjectMethod(className, "void set_indexBuffer(IndexBuffer@+)", AS_METHODPR(T, SetIndexBuffer, (IndexBuffer*), void), AS_CALL_THISCALL);
  7295. // void Geometry::SetLodDistance(float distance)
  7296. engine->RegisterObjectMethod(className, "void SetLodDistance(float)", AS_METHODPR(T, SetLodDistance, (float), void), AS_CALL_THISCALL);
  7297. engine->RegisterObjectMethod(className, "void set_lodDistance(float)", AS_METHODPR(T, SetLodDistance, (float), void), AS_CALL_THISCALL);
  7298. // bool Geometry::SetNumVertexBuffers(unsigned num)
  7299. engine->RegisterObjectMethod(className, "bool SetNumVertexBuffers(uint)", AS_METHODPR(T, SetNumVertexBuffers, (unsigned), bool), AS_CALL_THISCALL);
  7300. engine->RegisterObjectMethod(className, "bool set_numVertexBuffers(uint)", AS_METHODPR(T, SetNumVertexBuffers, (unsigned), bool), AS_CALL_THISCALL);
  7301. // bool Geometry::SetVertexBuffer(unsigned index, VertexBuffer* buffer)
  7302. engine->RegisterObjectMethod(className, "bool SetVertexBuffer(uint, VertexBuffer@+)", AS_METHODPR(T, SetVertexBuffer, (unsigned, VertexBuffer*), bool), AS_CALL_THISCALL);
  7303. #ifdef REGISTER_MEMBERS_MANUAL_PART_Geometry
  7304. REGISTER_MEMBERS_MANUAL_PART_Geometry();
  7305. #endif
  7306. }
  7307. // PODVector<int> Graphics::GetMultiSampleLevels() const
  7308. template <class T> CScriptArray* Graphics_PODVectorlesintgre_GetMultiSampleLevels_void_template(T* _ptr)
  7309. {
  7310. PODVector<int> result = _ptr->GetMultiSampleLevels();
  7311. return VectorToArray(result, "Array<int>");
  7312. }
  7313. // PODVector<IntVector3> Graphics::GetResolutions(int monitor) const
  7314. template <class T> CScriptArray* Graphics_PODVectorlesIntVector3gre_GetResolutions_int_template(T* _ptr, int monitor)
  7315. {
  7316. PODVector<IntVector3> result = _ptr->GetResolutions(monitor);
  7317. return VectorToArray(result, "Array<IntVector3>");
  7318. }
  7319. // bool Graphics::SetVertexBuffers(const Vector<SharedPtr<VertexBuffer>>& buffers, unsigned instanceOffset = 0)
  7320. template <class T> bool Graphics_bool_SetVertexBuffers_constspVectorlesSharedPtrlesVertexBuffergregreamp_unsigned_template(T* _ptr, CScriptArray* buffers_conv, unsigned instanceOffset)
  7321. {
  7322. Vector<SharedPtr<VertexBuffer>> buffers = HandleArrayToVector<VertexBuffer>(buffers_conv);
  7323. bool result = _ptr->SetVertexBuffers(buffers, instanceOffset);
  7324. return result;
  7325. }
  7326. // class Graphics | File: ../Graphics/Graphics.h
  7327. template <class T> void RegisterMembers_Graphics(asIScriptEngine* engine, const char* className)
  7328. {
  7329. RegisterMembers_Object<T>(engine, className);
  7330. // void Graphics::AddGPUObject(GPUObject* object)
  7331. // Error: type "GPUObject*" can not automatically bind
  7332. // void Graphics::CleanupRenderSurface(RenderSurface* surface)
  7333. // Not registered because have @nobind mark
  7334. // void Graphics::FreeScratchBuffer(void* buffer)
  7335. // Error: type "void*" can not automatically bind
  7336. // void* Graphics::GetExternalWindow() const
  7337. // Error: type "void*" can not automatically bind
  7338. // GraphicsImpl* Graphics::GetImpl() const
  7339. // Error: type "GraphicsImpl*" can not automatically bind
  7340. // ConstantBuffer* Graphics::GetOrCreateConstantBuffer(ShaderType type, unsigned index, unsigned size)
  7341. // Not registered because have @nobind mark
  7342. // ShaderVariation* Graphics::GetShader(ShaderType type, const char* name, const char* defines) const
  7343. // Error: type "const char*" can not automatically bind
  7344. // ShaderProgram* Graphics::GetShaderProgram() const
  7345. // Not registered because have @nobind mark
  7346. // SDL_Window* Graphics::GetWindow() const
  7347. // Error: type "SDL_Window*" can not automatically bind
  7348. // void Graphics::MarkFBODirty()
  7349. // Not registered because have @nobind mark
  7350. // bool Graphics::NeedParameterUpdate(ShaderParameterGroup group, const void* source)
  7351. // Error: type "const void*" can not automatically bind
  7352. // void Graphics::RemoveGPUObject(GPUObject* object)
  7353. // Error: type "GPUObject*" can not automatically bind
  7354. // void* Graphics::ReserveScratchBuffer(unsigned size)
  7355. // Error: type "void*" can not automatically bind
  7356. // void Graphics::Restore()
  7357. // Not registered because have @nobind mark
  7358. // void Graphics::SetExternalWindow(void* window)
  7359. // Error: type "void*" can not automatically bind
  7360. // void Graphics::SetShaderParameter(StringHash param, const float* data, unsigned count)
  7361. // Error: type "const float*" can not automatically bind
  7362. // void Graphics::SetTextureForUpdate(Texture* texture)
  7363. // Not registered because have @nobind mark
  7364. // void Graphics::SetTextureParametersDirty()
  7365. // Not registered because have @nobind mark
  7366. // void Graphics::SetUBO(unsigned object)
  7367. // Not registered because have @nobind mark
  7368. // void Graphics::SetVBO(unsigned object)
  7369. // Not registered because have @nobind mark
  7370. // bool Graphics::SetVertexBuffers(const PODVector<VertexBuffer*>& buffers, unsigned instanceOffset = 0)
  7371. // Not registered because have @nobind mark
  7372. // void Graphics::BeginDumpShaders(const String& fileName)
  7373. engine->RegisterObjectMethod(className, "void BeginDumpShaders(const String&in)", AS_METHODPR(T, BeginDumpShaders, (const String&), void), AS_CALL_THISCALL);
  7374. // bool Graphics::BeginFrame()
  7375. engine->RegisterObjectMethod(className, "bool BeginFrame()", AS_METHODPR(T, BeginFrame, (), bool), AS_CALL_THISCALL);
  7376. // void Graphics::CleanupScratchBuffers()
  7377. engine->RegisterObjectMethod(className, "void CleanupScratchBuffers()", AS_METHODPR(T, CleanupScratchBuffers, (), void), AS_CALL_THISCALL);
  7378. // void Graphics::CleanupShaderPrograms(ShaderVariation* variation)
  7379. engine->RegisterObjectMethod(className, "void CleanupShaderPrograms(ShaderVariation@+)", AS_METHODPR(T, CleanupShaderPrograms, (ShaderVariation*), void), AS_CALL_THISCALL);
  7380. // void Graphics::Clear(ClearTargetFlags flags, const Color& color = Color(0.0f, 0.0f, 0.0f, 0.0f), float depth = 1.0f, unsigned stencil = 0)
  7381. engine->RegisterObjectMethod(className, "void Clear(ClearTargetFlags, const Color&in = Color(0.0f, 0.0f, 0.0f, 0.0f), float = 1.0f, uint = 0)", AS_METHODPR(T, Clear, (ClearTargetFlags, const Color&, float, unsigned), void), AS_CALL_THISCALL);
  7382. // void Graphics::ClearParameterSource(ShaderParameterGroup group)
  7383. engine->RegisterObjectMethod(className, "void ClearParameterSource(ShaderParameterGroup)", AS_METHODPR(T, ClearParameterSource, (ShaderParameterGroup), void), AS_CALL_THISCALL);
  7384. // void Graphics::ClearParameterSources()
  7385. engine->RegisterObjectMethod(className, "void ClearParameterSources()", AS_METHODPR(T, ClearParameterSources, (), void), AS_CALL_THISCALL);
  7386. // void Graphics::ClearTransformSources()
  7387. engine->RegisterObjectMethod(className, "void ClearTransformSources()", AS_METHODPR(T, ClearTransformSources, (), void), AS_CALL_THISCALL);
  7388. // void Graphics::Close()
  7389. engine->RegisterObjectMethod(className, "void Close()", AS_METHODPR(T, Close, (), void), AS_CALL_THISCALL);
  7390. // void Graphics::Draw(PrimitiveType type, unsigned vertexStart, unsigned vertexCount)
  7391. engine->RegisterObjectMethod(className, "void Draw(PrimitiveType, uint, uint)", AS_METHODPR(T, Draw, (PrimitiveType, unsigned, unsigned), void), AS_CALL_THISCALL);
  7392. // void Graphics::Draw(PrimitiveType type, unsigned indexStart, unsigned indexCount, unsigned minVertex, unsigned vertexCount)
  7393. engine->RegisterObjectMethod(className, "void Draw(PrimitiveType, uint, uint, uint, uint)", AS_METHODPR(T, Draw, (PrimitiveType, unsigned, unsigned, unsigned, unsigned), void), AS_CALL_THISCALL);
  7394. // void Graphics::Draw(PrimitiveType type, unsigned indexStart, unsigned indexCount, unsigned baseVertexIndex, unsigned minVertex, unsigned vertexCount)
  7395. engine->RegisterObjectMethod(className, "void Draw(PrimitiveType, uint, uint, uint, uint, uint)", AS_METHODPR(T, Draw, (PrimitiveType, unsigned, unsigned, unsigned, unsigned, unsigned), void), AS_CALL_THISCALL);
  7396. // void Graphics::DrawInstanced(PrimitiveType type, unsigned indexStart, unsigned indexCount, unsigned minVertex, unsigned vertexCount, unsigned instanceCount)
  7397. engine->RegisterObjectMethod(className, "void DrawInstanced(PrimitiveType, uint, uint, uint, uint, uint)", AS_METHODPR(T, DrawInstanced, (PrimitiveType, unsigned, unsigned, unsigned, unsigned, unsigned), void), AS_CALL_THISCALL);
  7398. // void Graphics::DrawInstanced(PrimitiveType type, unsigned indexStart, unsigned indexCount, unsigned baseVertexIndex, unsigned minVertex, unsigned vertexCount, unsigned instanceCount)
  7399. engine->RegisterObjectMethod(className, "void DrawInstanced(PrimitiveType, uint, uint, uint, uint, uint, uint)", AS_METHODPR(T, DrawInstanced, (PrimitiveType, unsigned, unsigned, unsigned, unsigned, unsigned, unsigned), void), AS_CALL_THISCALL);
  7400. // void Graphics::EndDumpShaders()
  7401. engine->RegisterObjectMethod(className, "void EndDumpShaders()", AS_METHODPR(T, EndDumpShaders, (), void), AS_CALL_THISCALL);
  7402. // void Graphics::EndFrame()
  7403. engine->RegisterObjectMethod(className, "void EndFrame()", AS_METHODPR(T, EndFrame, (), void), AS_CALL_THISCALL);
  7404. // unsigned Graphics::FindBestResolutionIndex(int monitor, int width, int height, int refreshRate) const
  7405. engine->RegisterObjectMethod(className, "uint FindBestResolutionIndex(int, int, int, int) const", AS_METHODPR(T, FindBestResolutionIndex, (int, int, int, int) const, unsigned), AS_CALL_THISCALL);
  7406. // bool Graphics::GetAlphaToCoverage() const
  7407. engine->RegisterObjectMethod(className, "bool GetAlphaToCoverage() const", AS_METHODPR(T, GetAlphaToCoverage, () const, bool), AS_CALL_THISCALL);
  7408. // bool Graphics::GetAnisotropySupport() const
  7409. engine->RegisterObjectMethod(className, "bool GetAnisotropySupport() const", AS_METHODPR(T, GetAnisotropySupport, () const, bool), AS_CALL_THISCALL);
  7410. // const String& Graphics::GetApiName() const
  7411. engine->RegisterObjectMethod(className, "const String& GetApiName() const", AS_METHODPR(T, GetApiName, () const, const String&), AS_CALL_THISCALL);
  7412. engine->RegisterObjectMethod(className, "const String& get_apiName() const", AS_METHODPR(T, GetApiName, () const, const String&), AS_CALL_THISCALL);
  7413. // BlendMode Graphics::GetBlendMode() const
  7414. engine->RegisterObjectMethod(className, "BlendMode GetBlendMode() const", AS_METHODPR(T, GetBlendMode, () const, BlendMode), AS_CALL_THISCALL);
  7415. // bool Graphics::GetBorderless() const
  7416. engine->RegisterObjectMethod(className, "bool GetBorderless() const", AS_METHODPR(T, GetBorderless, () const, bool), AS_CALL_THISCALL);
  7417. engine->RegisterObjectMethod(className, "bool get_borderless() const", AS_METHODPR(T, GetBorderless, () const, bool), AS_CALL_THISCALL);
  7418. // bool Graphics::GetColorWrite() const
  7419. engine->RegisterObjectMethod(className, "bool GetColorWrite() const", AS_METHODPR(T, GetColorWrite, () const, bool), AS_CALL_THISCALL);
  7420. // CullMode Graphics::GetCullMode() const
  7421. engine->RegisterObjectMethod(className, "CullMode GetCullMode() const", AS_METHODPR(T, GetCullMode, () const, CullMode), AS_CALL_THISCALL);
  7422. // int Graphics::GetCurrentMonitor() const
  7423. engine->RegisterObjectMethod(className, "int GetCurrentMonitor() const", AS_METHODPR(T, GetCurrentMonitor, () const, int), AS_CALL_THISCALL);
  7424. engine->RegisterObjectMethod(className, "int get_currentMonitor() const", AS_METHODPR(T, GetCurrentMonitor, () const, int), AS_CALL_THISCALL);
  7425. // unsigned Graphics::GetDefaultTextureAnisotropy() const
  7426. engine->RegisterObjectMethod(className, "uint GetDefaultTextureAnisotropy() const", AS_METHODPR(T, GetDefaultTextureAnisotropy, () const, unsigned), AS_CALL_THISCALL);
  7427. // TextureFilterMode Graphics::GetDefaultTextureFilterMode() const
  7428. engine->RegisterObjectMethod(className, "TextureFilterMode GetDefaultTextureFilterMode() const", AS_METHODPR(T, GetDefaultTextureFilterMode, () const, TextureFilterMode), AS_CALL_THISCALL);
  7429. // bool Graphics::GetDeferredSupport() const
  7430. engine->RegisterObjectMethod(className, "bool GetDeferredSupport() const", AS_METHODPR(T, GetDeferredSupport, () const, bool), AS_CALL_THISCALL);
  7431. engine->RegisterObjectMethod(className, "bool get_deferredSupport() const", AS_METHODPR(T, GetDeferredSupport, () const, bool), AS_CALL_THISCALL);
  7432. // float Graphics::GetDepthConstantBias() const
  7433. engine->RegisterObjectMethod(className, "float GetDepthConstantBias() const", AS_METHODPR(T, GetDepthConstantBias, () const, float), AS_CALL_THISCALL);
  7434. // float Graphics::GetDepthSlopeScaledBias() const
  7435. engine->RegisterObjectMethod(className, "float GetDepthSlopeScaledBias() const", AS_METHODPR(T, GetDepthSlopeScaledBias, () const, float), AS_CALL_THISCALL);
  7436. // RenderSurface* Graphics::GetDepthStencil() const
  7437. engine->RegisterObjectMethod(className, "RenderSurface@+ GetDepthStencil() const", AS_METHODPR(T, GetDepthStencil, () const, RenderSurface*), AS_CALL_THISCALL);
  7438. // CompareMode Graphics::GetDepthTest() const
  7439. engine->RegisterObjectMethod(className, "CompareMode GetDepthTest() const", AS_METHODPR(T, GetDepthTest, () const, CompareMode), AS_CALL_THISCALL);
  7440. // bool Graphics::GetDepthWrite() const
  7441. engine->RegisterObjectMethod(className, "bool GetDepthWrite() const", AS_METHODPR(T, GetDepthWrite, () const, bool), AS_CALL_THISCALL);
  7442. // IntVector2 Graphics::GetDesktopResolution(int monitor) const
  7443. engine->RegisterObjectMethod(className, "IntVector2 GetDesktopResolution(int) const", AS_METHODPR(T, GetDesktopResolution, (int) const, IntVector2), AS_CALL_THISCALL);
  7444. engine->RegisterObjectMethod(className, "IntVector2 get_desktopResolution(int) const", AS_METHODPR(T, GetDesktopResolution, (int) const, IntVector2), AS_CALL_THISCALL);
  7445. // Vector3 Graphics::GetDisplayDPI(int monitor = 0) const
  7446. engine->RegisterObjectMethod(className, "Vector3 GetDisplayDPI(int = 0) const", AS_METHODPR(T, GetDisplayDPI, (int) const, Vector3), AS_CALL_THISCALL);
  7447. engine->RegisterObjectMethod(className, "Vector3 get_displayDPI(int = 0) const", AS_METHODPR(T, GetDisplayDPI, (int) const, Vector3), AS_CALL_THISCALL);
  7448. // bool Graphics::GetDither() const
  7449. engine->RegisterObjectMethod(className, "bool GetDither() const", AS_METHODPR(T, GetDither, () const, bool), AS_CALL_THISCALL);
  7450. engine->RegisterObjectMethod(className, "bool get_dither() const", AS_METHODPR(T, GetDither, () const, bool), AS_CALL_THISCALL);
  7451. // unsigned Graphics::GetDummyColorFormat() const
  7452. engine->RegisterObjectMethod(className, "uint GetDummyColorFormat() const", AS_METHODPR(T, GetDummyColorFormat, () const, unsigned), AS_CALL_THISCALL);
  7453. // FillMode Graphics::GetFillMode() const
  7454. engine->RegisterObjectMethod(className, "FillMode GetFillMode() const", AS_METHODPR(T, GetFillMode, () const, FillMode), AS_CALL_THISCALL);
  7455. // bool Graphics::GetFlushGPU() const
  7456. engine->RegisterObjectMethod(className, "bool GetFlushGPU() const", AS_METHODPR(T, GetFlushGPU, () const, bool), AS_CALL_THISCALL);
  7457. engine->RegisterObjectMethod(className, "bool get_flushGPU() const", AS_METHODPR(T, GetFlushGPU, () const, bool), AS_CALL_THISCALL);
  7458. // bool Graphics::GetForceGL2() const
  7459. engine->RegisterObjectMethod(className, "bool GetForceGL2() const", AS_METHODPR(T, GetForceGL2, () const, bool), AS_CALL_THISCALL);
  7460. // unsigned Graphics::GetFormat(CompressedFormat format) const
  7461. engine->RegisterObjectMethod(className, "uint GetFormat(CompressedFormat) const", AS_METHODPR(T, GetFormat, (CompressedFormat) const, unsigned), AS_CALL_THISCALL);
  7462. // bool Graphics::GetFullscreen() const
  7463. engine->RegisterObjectMethod(className, "bool GetFullscreen() const", AS_METHODPR(T, GetFullscreen, () const, bool), AS_CALL_THISCALL);
  7464. engine->RegisterObjectMethod(className, "bool get_fullscreen() const", AS_METHODPR(T, GetFullscreen, () const, bool), AS_CALL_THISCALL);
  7465. // bool Graphics::GetHardwareShadowSupport() const
  7466. engine->RegisterObjectMethod(className, "bool GetHardwareShadowSupport() const", AS_METHODPR(T, GetHardwareShadowSupport, () const, bool), AS_CALL_THISCALL);
  7467. engine->RegisterObjectMethod(className, "bool get_hardwareShadowSupport() const", AS_METHODPR(T, GetHardwareShadowSupport, () const, bool), AS_CALL_THISCALL);
  7468. // int Graphics::GetHeight() const
  7469. engine->RegisterObjectMethod(className, "int GetHeight() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  7470. engine->RegisterObjectMethod(className, "int get_height() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  7471. // bool Graphics::GetHighDPI() const
  7472. engine->RegisterObjectMethod(className, "bool GetHighDPI() const", AS_METHODPR(T, GetHighDPI, () const, bool), AS_CALL_THISCALL);
  7473. // unsigned Graphics::GetHiresShadowMapFormat() const
  7474. engine->RegisterObjectMethod(className, "uint GetHiresShadowMapFormat() const", AS_METHODPR(T, GetHiresShadowMapFormat, () const, unsigned), AS_CALL_THISCALL);
  7475. // IndexBuffer* Graphics::GetIndexBuffer() const
  7476. engine->RegisterObjectMethod(className, "IndexBuffer@+ GetIndexBuffer() const", AS_METHODPR(T, GetIndexBuffer, () const, IndexBuffer*), AS_CALL_THISCALL);
  7477. // bool Graphics::GetInstancingSupport() const
  7478. engine->RegisterObjectMethod(className, "bool GetInstancingSupport() const", AS_METHODPR(T, GetInstancingSupport, () const, bool), AS_CALL_THISCALL);
  7479. engine->RegisterObjectMethod(className, "bool get_instancingSupport() const", AS_METHODPR(T, GetInstancingSupport, () const, bool), AS_CALL_THISCALL);
  7480. // bool Graphics::GetLightPrepassSupport() const
  7481. engine->RegisterObjectMethod(className, "bool GetLightPrepassSupport() const", AS_METHODPR(T, GetLightPrepassSupport, () const, bool), AS_CALL_THISCALL);
  7482. engine->RegisterObjectMethod(className, "bool get_lightPrepassSupport() const", AS_METHODPR(T, GetLightPrepassSupport, () const, bool), AS_CALL_THISCALL);
  7483. // bool Graphics::GetLineAntiAlias() const
  7484. engine->RegisterObjectMethod(className, "bool GetLineAntiAlias() const", AS_METHODPR(T, GetLineAntiAlias, () const, bool), AS_CALL_THISCALL);
  7485. // bool Graphics::GetMaximized() const
  7486. engine->RegisterObjectMethod(className, "bool GetMaximized() const", AS_METHODPR(T, GetMaximized, () const, bool), AS_CALL_THISCALL);
  7487. engine->RegisterObjectMethod(className, "bool get_maximized() const", AS_METHODPR(T, GetMaximized, () const, bool), AS_CALL_THISCALL);
  7488. // int Graphics::GetMonitor() const
  7489. engine->RegisterObjectMethod(className, "int GetMonitor() const", AS_METHODPR(T, GetMonitor, () const, int), AS_CALL_THISCALL);
  7490. // int Graphics::GetMonitorCount() const
  7491. engine->RegisterObjectMethod(className, "int GetMonitorCount() const", AS_METHODPR(T, GetMonitorCount, () const, int), AS_CALL_THISCALL);
  7492. engine->RegisterObjectMethod(className, "int get_monitorCount() const", AS_METHODPR(T, GetMonitorCount, () const, int), AS_CALL_THISCALL);
  7493. // int Graphics::GetMultiSample() const
  7494. engine->RegisterObjectMethod(className, "int GetMultiSample() const", AS_METHODPR(T, GetMultiSample, () const, int), AS_CALL_THISCALL);
  7495. engine->RegisterObjectMethod(className, "int get_multiSample() const", AS_METHODPR(T, GetMultiSample, () const, int), AS_CALL_THISCALL);
  7496. // PODVector<int> Graphics::GetMultiSampleLevels() const
  7497. engine->RegisterObjectMethod(className, "Array<int>@ GetMultiSampleLevels() const", AS_FUNCTION_OBJFIRST(Graphics_PODVectorlesintgre_GetMultiSampleLevels_void_template<Graphics>), AS_CALL_CDECL_OBJFIRST);
  7498. engine->RegisterObjectMethod(className, "Array<int>@ get_multiSampleLevels() const", AS_FUNCTION_OBJFIRST(Graphics_PODVectorlesintgre_GetMultiSampleLevels_void_template<Graphics>), AS_CALL_CDECL_OBJFIRST);
  7499. // unsigned Graphics::GetNumBatches() const
  7500. engine->RegisterObjectMethod(className, "uint GetNumBatches() const", AS_METHODPR(T, GetNumBatches, () const, unsigned), AS_CALL_THISCALL);
  7501. engine->RegisterObjectMethod(className, "uint get_numBatches() const", AS_METHODPR(T, GetNumBatches, () const, unsigned), AS_CALL_THISCALL);
  7502. // unsigned Graphics::GetNumPrimitives() const
  7503. engine->RegisterObjectMethod(className, "uint GetNumPrimitives() const", AS_METHODPR(T, GetNumPrimitives, () const, unsigned), AS_CALL_THISCALL);
  7504. engine->RegisterObjectMethod(className, "uint get_numPrimitives() const", AS_METHODPR(T, GetNumPrimitives, () const, unsigned), AS_CALL_THISCALL);
  7505. // const String& Graphics::GetOrientations() const
  7506. engine->RegisterObjectMethod(className, "const String& GetOrientations() const", AS_METHODPR(T, GetOrientations, () const, const String&), AS_CALL_THISCALL);
  7507. engine->RegisterObjectMethod(className, "const String& get_orientations() const", AS_METHODPR(T, GetOrientations, () const, const String&), AS_CALL_THISCALL);
  7508. // ShaderVariation* Graphics::GetPixelShader() const
  7509. engine->RegisterObjectMethod(className, "ShaderVariation@+ GetPixelShader() const", AS_METHODPR(T, GetPixelShader, () const, ShaderVariation*), AS_CALL_THISCALL);
  7510. // bool Graphics::GetReadableDepthSupport() const
  7511. engine->RegisterObjectMethod(className, "bool GetReadableDepthSupport() const", AS_METHODPR(T, GetReadableDepthSupport, () const, bool), AS_CALL_THISCALL);
  7512. engine->RegisterObjectMethod(className, "bool get_readableDepthSupport() const", AS_METHODPR(T, GetReadableDepthSupport, () const, bool), AS_CALL_THISCALL);
  7513. // int Graphics::GetRefreshRate() const
  7514. engine->RegisterObjectMethod(className, "int GetRefreshRate() const", AS_METHODPR(T, GetRefreshRate, () const, int), AS_CALL_THISCALL);
  7515. // RenderSurface* Graphics::GetRenderTarget(unsigned index) const
  7516. engine->RegisterObjectMethod(className, "RenderSurface@+ GetRenderTarget(uint) const", AS_METHODPR(T, GetRenderTarget, (unsigned) const, RenderSurface*), AS_CALL_THISCALL);
  7517. // IntVector2 Graphics::GetRenderTargetDimensions() const
  7518. engine->RegisterObjectMethod(className, "IntVector2 GetRenderTargetDimensions() const", AS_METHODPR(T, GetRenderTargetDimensions, () const, IntVector2), AS_CALL_THISCALL);
  7519. // bool Graphics::GetResizable() const
  7520. engine->RegisterObjectMethod(className, "bool GetResizable() const", AS_METHODPR(T, GetResizable, () const, bool), AS_CALL_THISCALL);
  7521. engine->RegisterObjectMethod(className, "bool get_resizable() const", AS_METHODPR(T, GetResizable, () const, bool), AS_CALL_THISCALL);
  7522. // PODVector<IntVector3> Graphics::GetResolutions(int monitor) const
  7523. engine->RegisterObjectMethod(className, "Array<IntVector3>@ GetResolutions(int) const", AS_FUNCTION_OBJFIRST(Graphics_PODVectorlesIntVector3gre_GetResolutions_int_template<Graphics>), AS_CALL_CDECL_OBJFIRST);
  7524. engine->RegisterObjectMethod(className, "Array<IntVector3>@ get_resolutions(int) const", AS_FUNCTION_OBJFIRST(Graphics_PODVectorlesIntVector3gre_GetResolutions_int_template<Graphics>), AS_CALL_CDECL_OBJFIRST);
  7525. // const IntRect& Graphics::GetScissorRect() const
  7526. engine->RegisterObjectMethod(className, "const IntRect& GetScissorRect() const", AS_METHODPR(T, GetScissorRect, () const, const IntRect&), AS_CALL_THISCALL);
  7527. // bool Graphics::GetScissorTest() const
  7528. engine->RegisterObjectMethod(className, "bool GetScissorTest() const", AS_METHODPR(T, GetScissorTest, () const, bool), AS_CALL_THISCALL);
  7529. // const ScreenModeParams& Graphics::GetScreenModeParams() const
  7530. engine->RegisterObjectMethod(className, "const ScreenModeParams& GetScreenModeParams() const", AS_METHODPR(T, GetScreenModeParams, () const, const ScreenModeParams&), AS_CALL_THISCALL);
  7531. // ShaderVariation* Graphics::GetShader(ShaderType type, const String& name, const String& defines = String::EMPTY) const
  7532. engine->RegisterObjectMethod(className, "ShaderVariation@+ GetShader(ShaderType, const String&in, const String&in = String::EMPTY) const", AS_METHODPR(T, GetShader, (ShaderType, const String&, const String&) const, ShaderVariation*), AS_CALL_THISCALL);
  7533. // const String& Graphics::GetShaderCacheDir() const
  7534. engine->RegisterObjectMethod(className, "const String& GetShaderCacheDir() const", AS_METHODPR(T, GetShaderCacheDir, () const, const String&), AS_CALL_THISCALL);
  7535. engine->RegisterObjectMethod(className, "const String& get_shaderCacheDir() const", AS_METHODPR(T, GetShaderCacheDir, () const, const String&), AS_CALL_THISCALL);
  7536. // unsigned Graphics::GetShadowMapFormat() const
  7537. engine->RegisterObjectMethod(className, "uint GetShadowMapFormat() const", AS_METHODPR(T, GetShadowMapFormat, () const, unsigned), AS_CALL_THISCALL);
  7538. // IntVector2 Graphics::GetSize() const
  7539. engine->RegisterObjectMethod(className, "IntVector2 GetSize() const", AS_METHODPR(T, GetSize, () const, IntVector2), AS_CALL_THISCALL);
  7540. engine->RegisterObjectMethod(className, "IntVector2 get_size() const", AS_METHODPR(T, GetSize, () const, IntVector2), AS_CALL_THISCALL);
  7541. // bool Graphics::GetSRGB() const
  7542. engine->RegisterObjectMethod(className, "bool GetSRGB() const", AS_METHODPR(T, GetSRGB, () const, bool), AS_CALL_THISCALL);
  7543. engine->RegisterObjectMethod(className, "bool get_sRGB() const", AS_METHODPR(T, GetSRGB, () const, bool), AS_CALL_THISCALL);
  7544. // bool Graphics::GetSRGBSupport() const
  7545. engine->RegisterObjectMethod(className, "bool GetSRGBSupport() const", AS_METHODPR(T, GetSRGBSupport, () const, bool), AS_CALL_THISCALL);
  7546. engine->RegisterObjectMethod(className, "bool get_sRGBSupport() const", AS_METHODPR(T, GetSRGBSupport, () const, bool), AS_CALL_THISCALL);
  7547. // bool Graphics::GetSRGBWriteSupport() const
  7548. engine->RegisterObjectMethod(className, "bool GetSRGBWriteSupport() const", AS_METHODPR(T, GetSRGBWriteSupport, () const, bool), AS_CALL_THISCALL);
  7549. engine->RegisterObjectMethod(className, "bool get_sRGBWriteSupport() const", AS_METHODPR(T, GetSRGBWriteSupport, () const, bool), AS_CALL_THISCALL);
  7550. // unsigned Graphics::GetStencilCompareMask() const
  7551. engine->RegisterObjectMethod(className, "uint GetStencilCompareMask() const", AS_METHODPR(T, GetStencilCompareMask, () const, unsigned), AS_CALL_THISCALL);
  7552. // StencilOp Graphics::GetStencilFail() const
  7553. engine->RegisterObjectMethod(className, "StencilOp GetStencilFail() const", AS_METHODPR(T, GetStencilFail, () const, StencilOp), AS_CALL_THISCALL);
  7554. // StencilOp Graphics::GetStencilPass() const
  7555. engine->RegisterObjectMethod(className, "StencilOp GetStencilPass() const", AS_METHODPR(T, GetStencilPass, () const, StencilOp), AS_CALL_THISCALL);
  7556. // unsigned Graphics::GetStencilRef() const
  7557. engine->RegisterObjectMethod(className, "uint GetStencilRef() const", AS_METHODPR(T, GetStencilRef, () const, unsigned), AS_CALL_THISCALL);
  7558. // bool Graphics::GetStencilTest() const
  7559. engine->RegisterObjectMethod(className, "bool GetStencilTest() const", AS_METHODPR(T, GetStencilTest, () const, bool), AS_CALL_THISCALL);
  7560. // CompareMode Graphics::GetStencilTestMode() const
  7561. engine->RegisterObjectMethod(className, "CompareMode GetStencilTestMode() const", AS_METHODPR(T, GetStencilTestMode, () const, CompareMode), AS_CALL_THISCALL);
  7562. // unsigned Graphics::GetStencilWriteMask() const
  7563. engine->RegisterObjectMethod(className, "uint GetStencilWriteMask() const", AS_METHODPR(T, GetStencilWriteMask, () const, unsigned), AS_CALL_THISCALL);
  7564. // StencilOp Graphics::GetStencilZFail() const
  7565. engine->RegisterObjectMethod(className, "StencilOp GetStencilZFail() const", AS_METHODPR(T, GetStencilZFail, () const, StencilOp), AS_CALL_THISCALL);
  7566. // Texture* Graphics::GetTexture(unsigned index) const
  7567. engine->RegisterObjectMethod(className, "Texture@+ GetTexture(uint) const", AS_METHODPR(T, GetTexture, (unsigned) const, Texture*), AS_CALL_THISCALL);
  7568. // TextureUnit Graphics::GetTextureUnit(const String& name)
  7569. engine->RegisterObjectMethod(className, "TextureUnit GetTextureUnit(const String&in)", AS_METHODPR(T, GetTextureUnit, (const String&), TextureUnit), AS_CALL_THISCALL);
  7570. // const String& Graphics::GetTextureUnitName(TextureUnit unit)
  7571. engine->RegisterObjectMethod(className, "const String& GetTextureUnitName(TextureUnit)", AS_METHODPR(T, GetTextureUnitName, (TextureUnit), const String&), AS_CALL_THISCALL);
  7572. // bool Graphics::GetTripleBuffer() const
  7573. engine->RegisterObjectMethod(className, "bool GetTripleBuffer() const", AS_METHODPR(T, GetTripleBuffer, () const, bool), AS_CALL_THISCALL);
  7574. engine->RegisterObjectMethod(className, "bool get_tripleBuffer() const", AS_METHODPR(T, GetTripleBuffer, () const, bool), AS_CALL_THISCALL);
  7575. // bool Graphics::GetUseClipPlane() const
  7576. engine->RegisterObjectMethod(className, "bool GetUseClipPlane() const", AS_METHODPR(T, GetUseClipPlane, () const, bool), AS_CALL_THISCALL);
  7577. // VertexBuffer* Graphics::GetVertexBuffer(unsigned index) const
  7578. engine->RegisterObjectMethod(className, "VertexBuffer@+ GetVertexBuffer(uint) const", AS_METHODPR(T, GetVertexBuffer, (unsigned) const, VertexBuffer*), AS_CALL_THISCALL);
  7579. // ShaderVariation* Graphics::GetVertexShader() const
  7580. engine->RegisterObjectMethod(className, "ShaderVariation@+ GetVertexShader() const", AS_METHODPR(T, GetVertexShader, () const, ShaderVariation*), AS_CALL_THISCALL);
  7581. // IntRect Graphics::GetViewport() const
  7582. engine->RegisterObjectMethod(className, "IntRect GetViewport() const", AS_METHODPR(T, GetViewport, () const, IntRect), AS_CALL_THISCALL);
  7583. // bool Graphics::GetVSync() const
  7584. engine->RegisterObjectMethod(className, "bool GetVSync() const", AS_METHODPR(T, GetVSync, () const, bool), AS_CALL_THISCALL);
  7585. engine->RegisterObjectMethod(className, "bool get_vSync() const", AS_METHODPR(T, GetVSync, () const, bool), AS_CALL_THISCALL);
  7586. // int Graphics::GetWidth() const
  7587. engine->RegisterObjectMethod(className, "int GetWidth() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  7588. engine->RegisterObjectMethod(className, "int get_width() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  7589. // IntVector2 Graphics::GetWindowPosition() const
  7590. engine->RegisterObjectMethod(className, "IntVector2 GetWindowPosition() const", AS_METHODPR(T, GetWindowPosition, () const, IntVector2), AS_CALL_THISCALL);
  7591. engine->RegisterObjectMethod(className, "IntVector2 get_windowPosition() const", AS_METHODPR(T, GetWindowPosition, () const, IntVector2), AS_CALL_THISCALL);
  7592. // const String& Graphics::GetWindowTitle() const
  7593. engine->RegisterObjectMethod(className, "const String& GetWindowTitle() const", AS_METHODPR(T, GetWindowTitle, () const, const String&), AS_CALL_THISCALL);
  7594. engine->RegisterObjectMethod(className, "const String& get_windowTitle() const", AS_METHODPR(T, GetWindowTitle, () const, const String&), AS_CALL_THISCALL);
  7595. // bool Graphics::HasShaderParameter(StringHash param)
  7596. engine->RegisterObjectMethod(className, "bool HasShaderParameter(StringHash)", AS_METHODPR(T, HasShaderParameter, (StringHash), bool), AS_CALL_THISCALL);
  7597. // bool Graphics::HasTextureUnit(TextureUnit unit)
  7598. engine->RegisterObjectMethod(className, "bool HasTextureUnit(TextureUnit)", AS_METHODPR(T, HasTextureUnit, (TextureUnit), bool), AS_CALL_THISCALL);
  7599. // bool Graphics::IsDeviceLost() const
  7600. engine->RegisterObjectMethod(className, "bool IsDeviceLost() const", AS_METHODPR(T, IsDeviceLost, () const, bool), AS_CALL_THISCALL);
  7601. engine->RegisterObjectMethod(className, "bool get_deviceLost() const", AS_METHODPR(T, IsDeviceLost, () const, bool), AS_CALL_THISCALL);
  7602. // bool Graphics::IsInitialized() const
  7603. engine->RegisterObjectMethod(className, "bool IsInitialized() const", AS_METHODPR(T, IsInitialized, () const, bool), AS_CALL_THISCALL);
  7604. engine->RegisterObjectMethod(className, "bool get_initialized() const", AS_METHODPR(T, IsInitialized, () const, bool), AS_CALL_THISCALL);
  7605. // void Graphics::Maximize()
  7606. engine->RegisterObjectMethod(className, "void Maximize()", AS_METHODPR(T, Maximize, (), void), AS_CALL_THISCALL);
  7607. // void Graphics::Minimize()
  7608. engine->RegisterObjectMethod(className, "void Minimize()", AS_METHODPR(T, Minimize, (), void), AS_CALL_THISCALL);
  7609. // void Graphics::OnWindowMoved()
  7610. engine->RegisterObjectMethod(className, "void OnWindowMoved()", AS_METHODPR(T, OnWindowMoved, (), void), AS_CALL_THISCALL);
  7611. // void Graphics::OnWindowResized()
  7612. engine->RegisterObjectMethod(className, "void OnWindowResized()", AS_METHODPR(T, OnWindowResized, (), void), AS_CALL_THISCALL);
  7613. // void Graphics::PrecacheShaders(Deserializer& source)
  7614. engine->RegisterObjectMethod(className, "void PrecacheShaders(Deserializer&)", AS_METHODPR(T, PrecacheShaders, (Deserializer&), void), AS_CALL_THISCALL);
  7615. // void Graphics::Raise() const
  7616. engine->RegisterObjectMethod(className, "void Raise() const", AS_METHODPR(T, Raise, () const, void), AS_CALL_THISCALL);
  7617. // void Graphics::ResetDepthStencil()
  7618. engine->RegisterObjectMethod(className, "void ResetDepthStencil()", AS_METHODPR(T, ResetDepthStencil, (), void), AS_CALL_THISCALL);
  7619. // void Graphics::ResetRenderTarget(unsigned index)
  7620. engine->RegisterObjectMethod(className, "void ResetRenderTarget(uint)", AS_METHODPR(T, ResetRenderTarget, (unsigned), void), AS_CALL_THISCALL);
  7621. // void Graphics::ResetRenderTargets()
  7622. engine->RegisterObjectMethod(className, "void ResetRenderTargets()", AS_METHODPR(T, ResetRenderTargets, (), void), AS_CALL_THISCALL);
  7623. // bool Graphics::ResolveToTexture(Texture2D* destination, const IntRect& viewport)
  7624. engine->RegisterObjectMethod(className, "bool ResolveToTexture(Texture2D@+, const IntRect&in)", AS_METHODPR(T, ResolveToTexture, (Texture2D*, const IntRect&), bool), AS_CALL_THISCALL);
  7625. // bool Graphics::ResolveToTexture(Texture2D* texture)
  7626. engine->RegisterObjectMethod(className, "bool ResolveToTexture(Texture2D@+)", AS_METHODPR(T, ResolveToTexture, (Texture2D*), bool), AS_CALL_THISCALL);
  7627. // bool Graphics::ResolveToTexture(TextureCube* texture)
  7628. engine->RegisterObjectMethod(className, "bool ResolveToTexture(TextureCube@+)", AS_METHODPR(T, ResolveToTexture, (TextureCube*), bool), AS_CALL_THISCALL);
  7629. // void Graphics::SetBlendMode(BlendMode mode, bool alphaToCoverage = false)
  7630. engine->RegisterObjectMethod(className, "void SetBlendMode(BlendMode, bool = false)", AS_METHODPR(T, SetBlendMode, (BlendMode, bool), void), AS_CALL_THISCALL);
  7631. // void Graphics::SetClipPlane(bool enable, const Plane& clipPlane = Plane::UP, const Matrix3x4& view = Matrix3x4::IDENTITY, const Matrix4& projection = Matrix4::IDENTITY)
  7632. engine->RegisterObjectMethod(className, "void SetClipPlane(bool, const Plane&in = Plane::UP, const Matrix3x4&in = Matrix3x4::IDENTITY, const Matrix4&in = Matrix4::IDENTITY)", AS_METHODPR(T, SetClipPlane, (bool, const Plane&, const Matrix3x4&, const Matrix4&), void), AS_CALL_THISCALL);
  7633. // void Graphics::SetColorWrite(bool enable)
  7634. engine->RegisterObjectMethod(className, "void SetColorWrite(bool)", AS_METHODPR(T, SetColorWrite, (bool), void), AS_CALL_THISCALL);
  7635. // void Graphics::SetCullMode(CullMode mode)
  7636. engine->RegisterObjectMethod(className, "void SetCullMode(CullMode)", AS_METHODPR(T, SetCullMode, (CullMode), void), AS_CALL_THISCALL);
  7637. // void Graphics::SetDefaultTextureAnisotropy(unsigned level)
  7638. engine->RegisterObjectMethod(className, "void SetDefaultTextureAnisotropy(uint)", AS_METHODPR(T, SetDefaultTextureAnisotropy, (unsigned), void), AS_CALL_THISCALL);
  7639. // void Graphics::SetDefaultTextureFilterMode(TextureFilterMode mode)
  7640. engine->RegisterObjectMethod(className, "void SetDefaultTextureFilterMode(TextureFilterMode)", AS_METHODPR(T, SetDefaultTextureFilterMode, (TextureFilterMode), void), AS_CALL_THISCALL);
  7641. // bool Graphics::SetDefaultWindowModes(int width, int height, const ScreenModeParams& params)
  7642. engine->RegisterObjectMethod(className, "bool SetDefaultWindowModes(int, int, const ScreenModeParams&in)", AS_METHODPR(T, SetDefaultWindowModes, (int, int, const ScreenModeParams&), bool), AS_CALL_THISCALL);
  7643. // void Graphics::SetDepthBias(float constantBias, float slopeScaledBias)
  7644. engine->RegisterObjectMethod(className, "void SetDepthBias(float, float)", AS_METHODPR(T, SetDepthBias, (float, float), void), AS_CALL_THISCALL);
  7645. // void Graphics::SetDepthStencil(RenderSurface* depthStencil)
  7646. engine->RegisterObjectMethod(className, "void SetDepthStencil(RenderSurface@+)", AS_METHODPR(T, SetDepthStencil, (RenderSurface*), void), AS_CALL_THISCALL);
  7647. // void Graphics::SetDepthStencil(Texture2D* texture)
  7648. engine->RegisterObjectMethod(className, "void SetDepthStencil(Texture2D@+)", AS_METHODPR(T, SetDepthStencil, (Texture2D*), void), AS_CALL_THISCALL);
  7649. // void Graphics::SetDepthTest(CompareMode mode)
  7650. engine->RegisterObjectMethod(className, "void SetDepthTest(CompareMode)", AS_METHODPR(T, SetDepthTest, (CompareMode), void), AS_CALL_THISCALL);
  7651. // void Graphics::SetDepthWrite(bool enable)
  7652. engine->RegisterObjectMethod(className, "void SetDepthWrite(bool)", AS_METHODPR(T, SetDepthWrite, (bool), void), AS_CALL_THISCALL);
  7653. // void Graphics::SetDither(bool enable)
  7654. engine->RegisterObjectMethod(className, "void SetDither(bool)", AS_METHODPR(T, SetDither, (bool), void), AS_CALL_THISCALL);
  7655. engine->RegisterObjectMethod(className, "void set_dither(bool)", AS_METHODPR(T, SetDither, (bool), void), AS_CALL_THISCALL);
  7656. // void Graphics::SetFillMode(FillMode mode)
  7657. engine->RegisterObjectMethod(className, "void SetFillMode(FillMode)", AS_METHODPR(T, SetFillMode, (FillMode), void), AS_CALL_THISCALL);
  7658. // void Graphics::SetFlushGPU(bool enable)
  7659. engine->RegisterObjectMethod(className, "void SetFlushGPU(bool)", AS_METHODPR(T, SetFlushGPU, (bool), void), AS_CALL_THISCALL);
  7660. engine->RegisterObjectMethod(className, "void set_flushGPU(bool)", AS_METHODPR(T, SetFlushGPU, (bool), void), AS_CALL_THISCALL);
  7661. // void Graphics::SetForceGL2(bool enable)
  7662. engine->RegisterObjectMethod(className, "void SetForceGL2(bool)", AS_METHODPR(T, SetForceGL2, (bool), void), AS_CALL_THISCALL);
  7663. // void Graphics::SetIndexBuffer(IndexBuffer* buffer)
  7664. engine->RegisterObjectMethod(className, "void SetIndexBuffer(IndexBuffer@+)", AS_METHODPR(T, SetIndexBuffer, (IndexBuffer*), void), AS_CALL_THISCALL);
  7665. // void Graphics::SetLineAntiAlias(bool enable)
  7666. engine->RegisterObjectMethod(className, "void SetLineAntiAlias(bool)", AS_METHODPR(T, SetLineAntiAlias, (bool), void), AS_CALL_THISCALL);
  7667. // bool Graphics::SetMode(int width, int height, bool fullscreen, bool borderless, bool resizable, bool highDPI, bool vsync, bool tripleBuffer, int multiSample, int monitor, int refreshRate)
  7668. engine->RegisterObjectMethod(className, "bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int)", AS_METHODPR(T, SetMode, (int, int, bool, bool, bool, bool, bool, bool, int, int, int), bool), AS_CALL_THISCALL);
  7669. // bool Graphics::SetMode(int width, int height)
  7670. engine->RegisterObjectMethod(className, "bool SetMode(int, int)", AS_METHODPR(T, SetMode, (int, int), bool), AS_CALL_THISCALL);
  7671. // void Graphics::SetOrientations(const String& orientations)
  7672. engine->RegisterObjectMethod(className, "void SetOrientations(const String&in)", AS_METHODPR(T, SetOrientations, (const String&), void), AS_CALL_THISCALL);
  7673. engine->RegisterObjectMethod(className, "void set_orientations(const String&in)", AS_METHODPR(T, SetOrientations, (const String&), void), AS_CALL_THISCALL);
  7674. // void Graphics::SetRenderTarget(unsigned index, RenderSurface* renderTarget)
  7675. engine->RegisterObjectMethod(className, "void SetRenderTarget(uint, RenderSurface@+)", AS_METHODPR(T, SetRenderTarget, (unsigned, RenderSurface*), void), AS_CALL_THISCALL);
  7676. // void Graphics::SetRenderTarget(unsigned index, Texture2D* texture)
  7677. engine->RegisterObjectMethod(className, "void SetRenderTarget(uint, Texture2D@+)", AS_METHODPR(T, SetRenderTarget, (unsigned, Texture2D*), void), AS_CALL_THISCALL);
  7678. // void Graphics::SetScissorTest(bool enable, const Rect& rect = Rect::FULL, bool borderInclusive = true)
  7679. engine->RegisterObjectMethod(className, "void SetScissorTest(bool, const Rect&in = Rect::FULL, bool = true)", AS_METHODPR(T, SetScissorTest, (bool, const Rect&, bool), void), AS_CALL_THISCALL);
  7680. // void Graphics::SetScissorTest(bool enable, const IntRect& rect)
  7681. engine->RegisterObjectMethod(className, "void SetScissorTest(bool, const IntRect&in)", AS_METHODPR(T, SetScissorTest, (bool, const IntRect&), void), AS_CALL_THISCALL);
  7682. // bool Graphics::SetScreenMode(int width, int height, const ScreenModeParams& params, bool maximize = false)
  7683. engine->RegisterObjectMethod(className, "bool SetScreenMode(int, int, const ScreenModeParams&in, bool = false)", AS_METHODPR(T, SetScreenMode, (int, int, const ScreenModeParams&, bool), bool), AS_CALL_THISCALL);
  7684. // bool Graphics::SetScreenMode(int width, int height)
  7685. engine->RegisterObjectMethod(className, "bool SetScreenMode(int, int)", AS_METHODPR(T, SetScreenMode, (int, int), bool), AS_CALL_THISCALL);
  7686. // void Graphics::SetShaderCacheDir(const String& path)
  7687. engine->RegisterObjectMethod(className, "void SetShaderCacheDir(const String&in)", AS_METHODPR(T, SetShaderCacheDir, (const String&), void), AS_CALL_THISCALL);
  7688. engine->RegisterObjectMethod(className, "void set_shaderCacheDir(const String&in)", AS_METHODPR(T, SetShaderCacheDir, (const String&), void), AS_CALL_THISCALL);
  7689. // void Graphics::SetShaderParameter(StringHash param, float value)
  7690. engine->RegisterObjectMethod(className, "void SetShaderParameter(StringHash, float)", AS_METHODPR(T, SetShaderParameter, (StringHash, float), void), AS_CALL_THISCALL);
  7691. // void Graphics::SetShaderParameter(StringHash param, int value)
  7692. engine->RegisterObjectMethod(className, "void SetShaderParameter(StringHash, int)", AS_METHODPR(T, SetShaderParameter, (StringHash, int), void), AS_CALL_THISCALL);
  7693. // void Graphics::SetShaderParameter(StringHash param, bool value)
  7694. engine->RegisterObjectMethod(className, "void SetShaderParameter(StringHash, bool)", AS_METHODPR(T, SetShaderParameter, (StringHash, bool), void), AS_CALL_THISCALL);
  7695. // void Graphics::SetShaderParameter(StringHash param, const Color& color)
  7696. engine->RegisterObjectMethod(className, "void SetShaderParameter(StringHash, const Color&in)", AS_METHODPR(T, SetShaderParameter, (StringHash, const Color&), void), AS_CALL_THISCALL);
  7697. // void Graphics::SetShaderParameter(StringHash param, const Vector2& vector)
  7698. engine->RegisterObjectMethod(className, "void SetShaderParameter(StringHash, const Vector2&in)", AS_METHODPR(T, SetShaderParameter, (StringHash, const Vector2&), void), AS_CALL_THISCALL);
  7699. // void Graphics::SetShaderParameter(StringHash param, const Matrix3& matrix)
  7700. engine->RegisterObjectMethod(className, "void SetShaderParameter(StringHash, const Matrix3&in)", AS_METHODPR(T, SetShaderParameter, (StringHash, const Matrix3&), void), AS_CALL_THISCALL);
  7701. // void Graphics::SetShaderParameter(StringHash param, const Vector3& vector)
  7702. engine->RegisterObjectMethod(className, "void SetShaderParameter(StringHash, const Vector3&in)", AS_METHODPR(T, SetShaderParameter, (StringHash, const Vector3&), void), AS_CALL_THISCALL);
  7703. // void Graphics::SetShaderParameter(StringHash param, const Matrix4& matrix)
  7704. engine->RegisterObjectMethod(className, "void SetShaderParameter(StringHash, const Matrix4&in)", AS_METHODPR(T, SetShaderParameter, (StringHash, const Matrix4&), void), AS_CALL_THISCALL);
  7705. // void Graphics::SetShaderParameter(StringHash param, const Vector4& vector)
  7706. engine->RegisterObjectMethod(className, "void SetShaderParameter(StringHash, const Vector4&in)", AS_METHODPR(T, SetShaderParameter, (StringHash, const Vector4&), void), AS_CALL_THISCALL);
  7707. // void Graphics::SetShaderParameter(StringHash param, const Matrix3x4& matrix)
  7708. engine->RegisterObjectMethod(className, "void SetShaderParameter(StringHash, const Matrix3x4&in)", AS_METHODPR(T, SetShaderParameter, (StringHash, const Matrix3x4&), void), AS_CALL_THISCALL);
  7709. // void Graphics::SetShaderParameter(StringHash param, const Variant& value)
  7710. engine->RegisterObjectMethod(className, "void SetShaderParameter(StringHash, const Variant&in)", AS_METHODPR(T, SetShaderParameter, (StringHash, const Variant&), void), AS_CALL_THISCALL);
  7711. // void Graphics::SetShaders(ShaderVariation* vs, ShaderVariation* ps)
  7712. engine->RegisterObjectMethod(className, "void SetShaders(ShaderVariation@+, ShaderVariation@+)", AS_METHODPR(T, SetShaders, (ShaderVariation*, ShaderVariation*), void), AS_CALL_THISCALL);
  7713. // void Graphics::SetSRGB(bool enable)
  7714. engine->RegisterObjectMethod(className, "void SetSRGB(bool)", AS_METHODPR(T, SetSRGB, (bool), void), AS_CALL_THISCALL);
  7715. engine->RegisterObjectMethod(className, "void set_sRGB(bool)", AS_METHODPR(T, SetSRGB, (bool), void), AS_CALL_THISCALL);
  7716. // void Graphics::SetStencilTest(bool enable, CompareMode mode = CMP_ALWAYS, StencilOp pass = OP_KEEP, StencilOp fail = OP_KEEP, StencilOp zFail = OP_KEEP, unsigned stencilRef = 0, unsigned compareMask = M_MAX_UNSIGNED, unsigned writeMask = M_MAX_UNSIGNED)
  7717. engine->RegisterObjectMethod(className, "void SetStencilTest(bool, CompareMode = CMP_ALWAYS, StencilOp = OP_KEEP, StencilOp = OP_KEEP, StencilOp = OP_KEEP, uint = 0, uint = M_MAX_UNSIGNED, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, SetStencilTest, (bool, CompareMode, StencilOp, StencilOp, StencilOp, unsigned, unsigned, unsigned), void), AS_CALL_THISCALL);
  7718. // void Graphics::SetTexture(unsigned index, Texture* texture)
  7719. engine->RegisterObjectMethod(className, "void SetTexture(uint, Texture@+)", AS_METHODPR(T, SetTexture, (unsigned, Texture*), void), AS_CALL_THISCALL);
  7720. // void Graphics::SetVertexBuffer(VertexBuffer* buffer)
  7721. engine->RegisterObjectMethod(className, "void SetVertexBuffer(VertexBuffer@+)", AS_METHODPR(T, SetVertexBuffer, (VertexBuffer*), void), AS_CALL_THISCALL);
  7722. // bool Graphics::SetVertexBuffers(const Vector<SharedPtr<VertexBuffer>>& buffers, unsigned instanceOffset = 0)
  7723. engine->RegisterObjectMethod(className, "bool SetVertexBuffers(Array<VertexBuffer@>@+, uint = 0)", AS_FUNCTION_OBJFIRST(Graphics_bool_SetVertexBuffers_constspVectorlesSharedPtrlesVertexBuffergregreamp_unsigned_template<Graphics>), AS_CALL_CDECL_OBJFIRST);
  7724. // void Graphics::SetViewport(const IntRect& rect)
  7725. engine->RegisterObjectMethod(className, "void SetViewport(const IntRect&in)", AS_METHODPR(T, SetViewport, (const IntRect&), void), AS_CALL_THISCALL);
  7726. // void Graphics::SetWindowIcon(Image* windowIcon)
  7727. engine->RegisterObjectMethod(className, "void SetWindowIcon(Image@+)", AS_METHODPR(T, SetWindowIcon, (Image*), void), AS_CALL_THISCALL);
  7728. engine->RegisterObjectMethod(className, "void set_windowIcon(Image@+)", AS_METHODPR(T, SetWindowIcon, (Image*), void), AS_CALL_THISCALL);
  7729. // bool Graphics::SetWindowModes(const WindowModeParams& windowMode, const WindowModeParams& secondaryWindowMode, bool maximize = false)
  7730. engine->RegisterObjectMethod(className, "bool SetWindowModes(const WindowModeParams&in, const WindowModeParams&in, bool = false)", AS_METHODPR(T, SetWindowModes, (const WindowModeParams&, const WindowModeParams&, bool), bool), AS_CALL_THISCALL);
  7731. // void Graphics::SetWindowPosition(const IntVector2& position)
  7732. engine->RegisterObjectMethod(className, "void SetWindowPosition(const IntVector2&in)", AS_METHODPR(T, SetWindowPosition, (const IntVector2&), void), AS_CALL_THISCALL);
  7733. engine->RegisterObjectMethod(className, "void set_windowPosition(const IntVector2&in)", AS_METHODPR(T, SetWindowPosition, (const IntVector2&), void), AS_CALL_THISCALL);
  7734. // void Graphics::SetWindowPosition(int x, int y)
  7735. engine->RegisterObjectMethod(className, "void SetWindowPosition(int, int)", AS_METHODPR(T, SetWindowPosition, (int, int), void), AS_CALL_THISCALL);
  7736. // void Graphics::SetWindowTitle(const String& windowTitle)
  7737. engine->RegisterObjectMethod(className, "void SetWindowTitle(const String&in)", AS_METHODPR(T, SetWindowTitle, (const String&), void), AS_CALL_THISCALL);
  7738. engine->RegisterObjectMethod(className, "void set_windowTitle(const String&in)", AS_METHODPR(T, SetWindowTitle, (const String&), void), AS_CALL_THISCALL);
  7739. // bool Graphics::TakeScreenShot(Image& destImage)
  7740. engine->RegisterObjectMethod(className, "bool TakeScreenShot(Image&)", AS_METHODPR(T, TakeScreenShot, (Image&), bool), AS_CALL_THISCALL);
  7741. // bool Graphics::ToggleFullscreen()
  7742. engine->RegisterObjectMethod(className, "bool ToggleFullscreen()", AS_METHODPR(T, ToggleFullscreen, (), bool), AS_CALL_THISCALL);
  7743. // static unsigned Graphics::GetAlphaFormat()
  7744. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetAlphaFormat()", AS_FUNCTIONPR(T::GetAlphaFormat, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7745. // static unsigned Graphics::GetLuminanceFormat()
  7746. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetLuminanceFormat()", AS_FUNCTIONPR(T::GetLuminanceFormat, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7747. // static unsigned Graphics::GetLuminanceAlphaFormat()
  7748. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetLuminanceAlphaFormat()", AS_FUNCTIONPR(T::GetLuminanceAlphaFormat, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7749. // static unsigned Graphics::GetRGBFormat()
  7750. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetRGBFormat()", AS_FUNCTIONPR(T::GetRGBFormat, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7751. // static unsigned Graphics::GetRGBAFormat()
  7752. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetRGBAFormat()", AS_FUNCTIONPR(T::GetRGBAFormat, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7753. // static unsigned Graphics::GetRGBA16Format()
  7754. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetRGBA16Format()", AS_FUNCTIONPR(T::GetRGBA16Format, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7755. // static unsigned Graphics::GetRGBAFloat16Format()
  7756. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetRGBAFloat16Format()", AS_FUNCTIONPR(T::GetRGBAFloat16Format, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7757. // static unsigned Graphics::GetRGBAFloat32Format()
  7758. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetRGBAFloat32Format()", AS_FUNCTIONPR(T::GetRGBAFloat32Format, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7759. // static unsigned Graphics::GetRG16Format()
  7760. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetRG16Format()", AS_FUNCTIONPR(T::GetRG16Format, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7761. // static unsigned Graphics::GetRGFloat16Format()
  7762. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetRGFloat16Format()", AS_FUNCTIONPR(T::GetRGFloat16Format, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7763. // static unsigned Graphics::GetRGFloat32Format()
  7764. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetRGFloat32Format()", AS_FUNCTIONPR(T::GetRGFloat32Format, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7765. // static unsigned Graphics::GetFloat16Format()
  7766. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetFloat16Format()", AS_FUNCTIONPR(T::GetFloat16Format, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7767. // static unsigned Graphics::GetFloat32Format()
  7768. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetFloat32Format()", AS_FUNCTIONPR(T::GetFloat32Format, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7769. // static unsigned Graphics::GetLinearDepthFormat()
  7770. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetLinearDepthFormat()", AS_FUNCTIONPR(T::GetLinearDepthFormat, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7771. // static unsigned Graphics::GetDepthStencilFormat()
  7772. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetDepthStencilFormat()", AS_FUNCTIONPR(T::GetDepthStencilFormat, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7773. // static unsigned Graphics::GetReadableDepthFormat()
  7774. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetReadableDepthFormat()", AS_FUNCTIONPR(T::GetReadableDepthFormat, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7775. // static unsigned Graphics::GetFormat(const String& formatName)
  7776. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetFormat(const String&in)", AS_FUNCTIONPR(T::GetFormat, (const String&), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7777. // static const Vector2& Graphics::GetPixelUVOffset()
  7778. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("const Vector2& GetPixelUVOffset()", AS_FUNCTIONPR(T::GetPixelUVOffset, (), const Vector2&), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7779. // static unsigned Graphics::GetMaxBones()
  7780. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetMaxBones()", AS_FUNCTIONPR(T::GetMaxBones, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7781. // static bool Graphics::GetGL3Support()
  7782. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("bool GetGL3Support()", AS_FUNCTIONPR(T::GetGL3Support, (), bool), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  7783. #ifdef REGISTER_MEMBERS_MANUAL_PART_Graphics
  7784. REGISTER_MEMBERS_MANUAL_PART_Graphics();
  7785. #endif
  7786. }
  7787. // class IndexBuffer | File: ../Graphics/IndexBuffer.h
  7788. template <class T> void RegisterMembers_IndexBuffer(asIScriptEngine* engine, const char* className)
  7789. {
  7790. RegisterMembers_Object<T>(engine, className);
  7791. RegisterMembers_GPUObject<T>(engine, className);
  7792. // unsigned char* IndexBuffer::GetShadowData() const
  7793. // Error: type "unsigned char*" can not automatically bind
  7794. // SharedArrayPtr<unsigned char> IndexBuffer::GetShadowDataShared() const
  7795. // Error: type "SharedArrayPtr<unsigned char>" can not automatically bind
  7796. // void* IndexBuffer::Lock(unsigned start, unsigned count, bool discard = false)
  7797. // Error: type "void*" can not automatically bind
  7798. // bool IndexBuffer::SetData(const void* data)
  7799. // Error: type "const void*" can not automatically bind
  7800. // bool IndexBuffer::SetDataRange(const void* data, unsigned start, unsigned count, bool discard = false)
  7801. // Error: type "const void*" can not automatically bind
  7802. // unsigned IndexBuffer::GetIndexCount() const
  7803. engine->RegisterObjectMethod(className, "uint GetIndexCount() const", AS_METHODPR(T, GetIndexCount, () const, unsigned), AS_CALL_THISCALL);
  7804. engine->RegisterObjectMethod(className, "uint get_indexCount() const", AS_METHODPR(T, GetIndexCount, () const, unsigned), AS_CALL_THISCALL);
  7805. // unsigned IndexBuffer::GetIndexSize() const
  7806. engine->RegisterObjectMethod(className, "uint GetIndexSize() const", AS_METHODPR(T, GetIndexSize, () const, unsigned), AS_CALL_THISCALL);
  7807. engine->RegisterObjectMethod(className, "uint get_indexSize() const", AS_METHODPR(T, GetIndexSize, () const, unsigned), AS_CALL_THISCALL);
  7808. // bool IndexBuffer::GetUsedVertexRange(unsigned start, unsigned count, unsigned& minVertex, unsigned& vertexCount)
  7809. engine->RegisterObjectMethod(className, "bool GetUsedVertexRange(uint, uint, uint&, uint&)", AS_METHODPR(T, GetUsedVertexRange, (unsigned, unsigned, unsigned&, unsigned&), bool), AS_CALL_THISCALL);
  7810. // bool IndexBuffer::IsDynamic() const
  7811. engine->RegisterObjectMethod(className, "bool IsDynamic() const", AS_METHODPR(T, IsDynamic, () const, bool), AS_CALL_THISCALL);
  7812. engine->RegisterObjectMethod(className, "bool get_dynamic() const", AS_METHODPR(T, IsDynamic, () const, bool), AS_CALL_THISCALL);
  7813. // bool IndexBuffer::IsLocked() const
  7814. engine->RegisterObjectMethod(className, "bool IsLocked() const", AS_METHODPR(T, IsLocked, () const, bool), AS_CALL_THISCALL);
  7815. // bool IndexBuffer::IsShadowed() const
  7816. engine->RegisterObjectMethod(className, "bool IsShadowed() const", AS_METHODPR(T, IsShadowed, () const, bool), AS_CALL_THISCALL);
  7817. engine->RegisterObjectMethod(className, "bool get_shadowed() const", AS_METHODPR(T, IsShadowed, () const, bool), AS_CALL_THISCALL);
  7818. // void IndexBuffer::SetShadowed(bool enable)
  7819. engine->RegisterObjectMethod(className, "void SetShadowed(bool)", AS_METHODPR(T, SetShadowed, (bool), void), AS_CALL_THISCALL);
  7820. engine->RegisterObjectMethod(className, "void set_shadowed(bool)", AS_METHODPR(T, SetShadowed, (bool), void), AS_CALL_THISCALL);
  7821. // bool IndexBuffer::SetSize(unsigned indexCount, bool largeIndices, bool dynamic = false)
  7822. engine->RegisterObjectMethod(className, "bool SetSize(uint, bool, bool = false)", AS_METHODPR(T, SetSize, (unsigned, bool, bool), bool), AS_CALL_THISCALL);
  7823. // void IndexBuffer::Unlock()
  7824. engine->RegisterObjectMethod(className, "void Unlock()", AS_METHODPR(T, Unlock, (), void), AS_CALL_THISCALL);
  7825. #ifdef REGISTER_MEMBERS_MANUAL_PART_IndexBuffer
  7826. REGISTER_MEMBERS_MANUAL_PART_IndexBuffer();
  7827. #endif
  7828. }
  7829. // class Input | File: ../Input/Input.h
  7830. template <class T> void RegisterMembers_Input(asIScriptEngine* engine, const char* className)
  7831. {
  7832. RegisterMembers_Object<T>(engine, className);
  7833. // SDL_JoystickID Input::AddScreenJoystick(XMLFile* layoutFile = nullptr, XMLFile* styleFile = nullptr)
  7834. engine->RegisterObjectMethod(className, "SDL_JoystickID AddScreenJoystick(XMLFile@+ = null, XMLFile@+ = null)", AS_METHODPR(T, AddScreenJoystick, (XMLFile*, XMLFile*), SDL_JoystickID), AS_CALL_THISCALL);
  7835. // void Input::CenterMousePosition()
  7836. engine->RegisterObjectMethod(className, "void CenterMousePosition()", AS_METHODPR(T, CenterMousePosition, (), void), AS_CALL_THISCALL);
  7837. // Vector2 Input::GetInputScale() const
  7838. engine->RegisterObjectMethod(className, "Vector2 GetInputScale() const", AS_METHODPR(T, GetInputScale, () const, Vector2), AS_CALL_THISCALL);
  7839. engine->RegisterObjectMethod(className, "Vector2 get_inputScale() const", AS_METHODPR(T, GetInputScale, () const, Vector2), AS_CALL_THISCALL);
  7840. // JoystickState* Input::GetJoystick(SDL_JoystickID id)
  7841. engine->RegisterObjectMethod(className, "JoystickState@ GetJoystick(SDL_JoystickID)", AS_METHODPR(T, GetJoystick, (SDL_JoystickID), JoystickState*), AS_CALL_THISCALL);
  7842. engine->RegisterObjectMethod(className, "JoystickState@ get_joysticks(SDL_JoystickID)", AS_METHODPR(T, GetJoystick, (SDL_JoystickID), JoystickState*), AS_CALL_THISCALL);
  7843. // JoystickState* Input::GetJoystickByIndex(unsigned index)
  7844. engine->RegisterObjectMethod(className, "JoystickState@ GetJoystickByIndex(uint)", AS_METHODPR(T, GetJoystickByIndex, (unsigned), JoystickState*), AS_CALL_THISCALL);
  7845. engine->RegisterObjectMethod(className, "JoystickState@ get_joysticksByIndex(uint)", AS_METHODPR(T, GetJoystickByIndex, (unsigned), JoystickState*), AS_CALL_THISCALL);
  7846. // JoystickState* Input::GetJoystickByName(const String& name)
  7847. engine->RegisterObjectMethod(className, "JoystickState@ GetJoystickByName(const String&in)", AS_METHODPR(T, GetJoystickByName, (const String&), JoystickState*), AS_CALL_THISCALL);
  7848. engine->RegisterObjectMethod(className, "JoystickState@ get_joysticksByName(const String&in)", AS_METHODPR(T, GetJoystickByName, (const String&), JoystickState*), AS_CALL_THISCALL);
  7849. // bool Input::GetKeyDown(Key key) const
  7850. engine->RegisterObjectMethod(className, "bool GetKeyDown(Key) const", AS_METHODPR(T, GetKeyDown, (Key) const, bool), AS_CALL_THISCALL);
  7851. engine->RegisterObjectMethod(className, "bool get_keyDown(Key) const", AS_METHODPR(T, GetKeyDown, (Key) const, bool), AS_CALL_THISCALL);
  7852. // Key Input::GetKeyFromName(const String& name) const
  7853. engine->RegisterObjectMethod(className, "Key GetKeyFromName(const String&in) const", AS_METHODPR(T, GetKeyFromName, (const String&) const, Key), AS_CALL_THISCALL);
  7854. // Key Input::GetKeyFromScancode(Scancode scancode) const
  7855. engine->RegisterObjectMethod(className, "Key GetKeyFromScancode(Scancode) const", AS_METHODPR(T, GetKeyFromScancode, (Scancode) const, Key), AS_CALL_THISCALL);
  7856. // String Input::GetKeyName(Key key) const
  7857. engine->RegisterObjectMethod(className, "String GetKeyName(Key) const", AS_METHODPR(T, GetKeyName, (Key) const, String), AS_CALL_THISCALL);
  7858. // bool Input::GetKeyPress(Key key) const
  7859. engine->RegisterObjectMethod(className, "bool GetKeyPress(Key) const", AS_METHODPR(T, GetKeyPress, (Key) const, bool), AS_CALL_THISCALL);
  7860. engine->RegisterObjectMethod(className, "bool get_keyPress(Key) const", AS_METHODPR(T, GetKeyPress, (Key) const, bool), AS_CALL_THISCALL);
  7861. // bool Input::GetMouseButtonDown(MouseButtonFlags button) const
  7862. engine->RegisterObjectMethod(className, "bool GetMouseButtonDown(MouseButtonFlags) const", AS_METHODPR(T, GetMouseButtonDown, (MouseButtonFlags) const, bool), AS_CALL_THISCALL);
  7863. engine->RegisterObjectMethod(className, "bool get_mouseButtonDown(MouseButtonFlags) const", AS_METHODPR(T, GetMouseButtonDown, (MouseButtonFlags) const, bool), AS_CALL_THISCALL);
  7864. // bool Input::GetMouseButtonPress(MouseButtonFlags button) const
  7865. engine->RegisterObjectMethod(className, "bool GetMouseButtonPress(MouseButtonFlags) const", AS_METHODPR(T, GetMouseButtonPress, (MouseButtonFlags) const, bool), AS_CALL_THISCALL);
  7866. engine->RegisterObjectMethod(className, "bool get_mouseButtonPress(MouseButtonFlags) const", AS_METHODPR(T, GetMouseButtonPress, (MouseButtonFlags) const, bool), AS_CALL_THISCALL);
  7867. // MouseMode Input::GetMouseMode() const
  7868. engine->RegisterObjectMethod(className, "MouseMode GetMouseMode() const", AS_METHODPR(T, GetMouseMode, () const, MouseMode), AS_CALL_THISCALL);
  7869. engine->RegisterObjectMethod(className, "MouseMode get_mouseMode() const", AS_METHODPR(T, GetMouseMode, () const, MouseMode), AS_CALL_THISCALL);
  7870. // IntVector2 Input::GetMouseMove() const
  7871. engine->RegisterObjectMethod(className, "IntVector2 GetMouseMove() const", AS_METHODPR(T, GetMouseMove, () const, IntVector2), AS_CALL_THISCALL);
  7872. engine->RegisterObjectMethod(className, "IntVector2 get_mouseMove() const", AS_METHODPR(T, GetMouseMove, () const, IntVector2), AS_CALL_THISCALL);
  7873. // int Input::GetMouseMoveWheel() const
  7874. engine->RegisterObjectMethod(className, "int GetMouseMoveWheel() const", AS_METHODPR(T, GetMouseMoveWheel, () const, int), AS_CALL_THISCALL);
  7875. engine->RegisterObjectMethod(className, "int get_mouseMoveWheel() const", AS_METHODPR(T, GetMouseMoveWheel, () const, int), AS_CALL_THISCALL);
  7876. // int Input::GetMouseMoveX() const
  7877. engine->RegisterObjectMethod(className, "int GetMouseMoveX() const", AS_METHODPR(T, GetMouseMoveX, () const, int), AS_CALL_THISCALL);
  7878. engine->RegisterObjectMethod(className, "int get_mouseMoveX() const", AS_METHODPR(T, GetMouseMoveX, () const, int), AS_CALL_THISCALL);
  7879. // int Input::GetMouseMoveY() const
  7880. engine->RegisterObjectMethod(className, "int GetMouseMoveY() const", AS_METHODPR(T, GetMouseMoveY, () const, int), AS_CALL_THISCALL);
  7881. engine->RegisterObjectMethod(className, "int get_mouseMoveY() const", AS_METHODPR(T, GetMouseMoveY, () const, int), AS_CALL_THISCALL);
  7882. // IntVector2 Input::GetMousePosition() const
  7883. engine->RegisterObjectMethod(className, "IntVector2 GetMousePosition() const", AS_METHODPR(T, GetMousePosition, () const, IntVector2), AS_CALL_THISCALL);
  7884. engine->RegisterObjectMethod(className, "IntVector2 get_mousePosition() const", AS_METHODPR(T, GetMousePosition, () const, IntVector2), AS_CALL_THISCALL);
  7885. // unsigned Input::GetNumJoysticks() const
  7886. engine->RegisterObjectMethod(className, "uint GetNumJoysticks() const", AS_METHODPR(T, GetNumJoysticks, () const, unsigned), AS_CALL_THISCALL);
  7887. engine->RegisterObjectMethod(className, "uint get_numJoysticks() const", AS_METHODPR(T, GetNumJoysticks, () const, unsigned), AS_CALL_THISCALL);
  7888. // unsigned Input::GetNumTouches() const
  7889. engine->RegisterObjectMethod(className, "uint GetNumTouches() const", AS_METHODPR(T, GetNumTouches, () const, unsigned), AS_CALL_THISCALL);
  7890. engine->RegisterObjectMethod(className, "uint get_numTouches() const", AS_METHODPR(T, GetNumTouches, () const, unsigned), AS_CALL_THISCALL);
  7891. // bool Input::GetQualifierDown(Qualifier qualifier) const
  7892. engine->RegisterObjectMethod(className, "bool GetQualifierDown(Qualifier) const", AS_METHODPR(T, GetQualifierDown, (Qualifier) const, bool), AS_CALL_THISCALL);
  7893. engine->RegisterObjectMethod(className, "bool get_qualifierDown(Qualifier) const", AS_METHODPR(T, GetQualifierDown, (Qualifier) const, bool), AS_CALL_THISCALL);
  7894. // bool Input::GetQualifierPress(Qualifier qualifier) const
  7895. engine->RegisterObjectMethod(className, "bool GetQualifierPress(Qualifier) const", AS_METHODPR(T, GetQualifierPress, (Qualifier) const, bool), AS_CALL_THISCALL);
  7896. engine->RegisterObjectMethod(className, "bool get_qualifierPress(Qualifier) const", AS_METHODPR(T, GetQualifierPress, (Qualifier) const, bool), AS_CALL_THISCALL);
  7897. // QualifierFlags Input::GetQualifiers() const
  7898. engine->RegisterObjectMethod(className, "QualifierFlags GetQualifiers() const", AS_METHODPR(T, GetQualifiers, () const, QualifierFlags), AS_CALL_THISCALL);
  7899. engine->RegisterObjectMethod(className, "QualifierFlags get_qualifiers() const", AS_METHODPR(T, GetQualifiers, () const, QualifierFlags), AS_CALL_THISCALL);
  7900. // bool Input::GetScancodeDown(Scancode scancode) const
  7901. engine->RegisterObjectMethod(className, "bool GetScancodeDown(Scancode) const", AS_METHODPR(T, GetScancodeDown, (Scancode) const, bool), AS_CALL_THISCALL);
  7902. engine->RegisterObjectMethod(className, "bool get_scancodeDown(Scancode) const", AS_METHODPR(T, GetScancodeDown, (Scancode) const, bool), AS_CALL_THISCALL);
  7903. // Scancode Input::GetScancodeFromKey(Key key) const
  7904. engine->RegisterObjectMethod(className, "Scancode GetScancodeFromKey(Key) const", AS_METHODPR(T, GetScancodeFromKey, (Key) const, Scancode), AS_CALL_THISCALL);
  7905. // Scancode Input::GetScancodeFromName(const String& name) const
  7906. engine->RegisterObjectMethod(className, "Scancode GetScancodeFromName(const String&in) const", AS_METHODPR(T, GetScancodeFromName, (const String&) const, Scancode), AS_CALL_THISCALL);
  7907. // String Input::GetScancodeName(Scancode scancode) const
  7908. engine->RegisterObjectMethod(className, "String GetScancodeName(Scancode) const", AS_METHODPR(T, GetScancodeName, (Scancode) const, String), AS_CALL_THISCALL);
  7909. // bool Input::GetScancodePress(Scancode scancode) const
  7910. engine->RegisterObjectMethod(className, "bool GetScancodePress(Scancode) const", AS_METHODPR(T, GetScancodePress, (Scancode) const, bool), AS_CALL_THISCALL);
  7911. engine->RegisterObjectMethod(className, "bool get_scancodePress(Scancode) const", AS_METHODPR(T, GetScancodePress, (Scancode) const, bool), AS_CALL_THISCALL);
  7912. // bool Input::GetScreenKeyboardSupport() const
  7913. engine->RegisterObjectMethod(className, "bool GetScreenKeyboardSupport() const", AS_METHODPR(T, GetScreenKeyboardSupport, () const, bool), AS_CALL_THISCALL);
  7914. engine->RegisterObjectMethod(className, "bool get_screenKeyboardSupport() const", AS_METHODPR(T, GetScreenKeyboardSupport, () const, bool), AS_CALL_THISCALL);
  7915. // bool Input::GetToggleFullscreen() const
  7916. engine->RegisterObjectMethod(className, "bool GetToggleFullscreen() const", AS_METHODPR(T, GetToggleFullscreen, () const, bool), AS_CALL_THISCALL);
  7917. engine->RegisterObjectMethod(className, "bool get_toggleFullscreen() const", AS_METHODPR(T, GetToggleFullscreen, () const, bool), AS_CALL_THISCALL);
  7918. // TouchState* Input::GetTouch(unsigned index) const
  7919. engine->RegisterObjectMethod(className, "TouchState@ GetTouch(uint) const", AS_METHODPR(T, GetTouch, (unsigned) const, TouchState*), AS_CALL_THISCALL);
  7920. engine->RegisterObjectMethod(className, "TouchState@ get_touches(uint) const", AS_METHODPR(T, GetTouch, (unsigned) const, TouchState*), AS_CALL_THISCALL);
  7921. // bool Input::GetTouchEmulation() const
  7922. engine->RegisterObjectMethod(className, "bool GetTouchEmulation() const", AS_METHODPR(T, GetTouchEmulation, () const, bool), AS_CALL_THISCALL);
  7923. engine->RegisterObjectMethod(className, "bool get_touchEmulation() const", AS_METHODPR(T, GetTouchEmulation, () const, bool), AS_CALL_THISCALL);
  7924. // bool Input::HasFocus()
  7925. engine->RegisterObjectMethod(className, "bool HasFocus()", AS_METHODPR(T, HasFocus, (), bool), AS_CALL_THISCALL);
  7926. engine->RegisterObjectMethod(className, "bool get_focus()", AS_METHODPR(T, HasFocus, (), bool), AS_CALL_THISCALL);
  7927. // bool Input::IsMinimized() const
  7928. engine->RegisterObjectMethod(className, "bool IsMinimized() const", AS_METHODPR(T, IsMinimized, () const, bool), AS_CALL_THISCALL);
  7929. engine->RegisterObjectMethod(className, "bool get_minimized() const", AS_METHODPR(T, IsMinimized, () const, bool), AS_CALL_THISCALL);
  7930. // bool Input::IsMouseGrabbed() const
  7931. engine->RegisterObjectMethod(className, "bool IsMouseGrabbed() const", AS_METHODPR(T, IsMouseGrabbed, () const, bool), AS_CALL_THISCALL);
  7932. engine->RegisterObjectMethod(className, "bool get_mouseGrabbed() const", AS_METHODPR(T, IsMouseGrabbed, () const, bool), AS_CALL_THISCALL);
  7933. // bool Input::IsMouseLocked() const
  7934. engine->RegisterObjectMethod(className, "bool IsMouseLocked() const", AS_METHODPR(T, IsMouseLocked, () const, bool), AS_CALL_THISCALL);
  7935. engine->RegisterObjectMethod(className, "bool get_mouseLocked() const", AS_METHODPR(T, IsMouseLocked, () const, bool), AS_CALL_THISCALL);
  7936. // bool Input::IsMouseVisible() const
  7937. engine->RegisterObjectMethod(className, "bool IsMouseVisible() const", AS_METHODPR(T, IsMouseVisible, () const, bool), AS_CALL_THISCALL);
  7938. engine->RegisterObjectMethod(className, "bool get_mouseVisible() const", AS_METHODPR(T, IsMouseVisible, () const, bool), AS_CALL_THISCALL);
  7939. // bool Input::IsScreenJoystickVisible(SDL_JoystickID id) const
  7940. engine->RegisterObjectMethod(className, "bool IsScreenJoystickVisible(SDL_JoystickID) const", AS_METHODPR(T, IsScreenJoystickVisible, (SDL_JoystickID) const, bool), AS_CALL_THISCALL);
  7941. engine->RegisterObjectMethod(className, "bool get_screenJoystickVisible(SDL_JoystickID) const", AS_METHODPR(T, IsScreenJoystickVisible, (SDL_JoystickID) const, bool), AS_CALL_THISCALL);
  7942. // bool Input::IsScreenKeyboardVisible() const
  7943. engine->RegisterObjectMethod(className, "bool IsScreenKeyboardVisible() const", AS_METHODPR(T, IsScreenKeyboardVisible, () const, bool), AS_CALL_THISCALL);
  7944. engine->RegisterObjectMethod(className, "bool get_screenKeyboardVisible() const", AS_METHODPR(T, IsScreenKeyboardVisible, () const, bool), AS_CALL_THISCALL);
  7945. // unsigned Input::LoadGestures(Deserializer& source)
  7946. engine->RegisterObjectMethod(className, "uint LoadGestures(Deserializer&)", AS_METHODPR(T, LoadGestures, (Deserializer&), unsigned), AS_CALL_THISCALL);
  7947. // bool Input::RecordGesture()
  7948. engine->RegisterObjectMethod(className, "bool RecordGesture()", AS_METHODPR(T, RecordGesture, (), bool), AS_CALL_THISCALL);
  7949. // void Input::RemoveAllGestures()
  7950. engine->RegisterObjectMethod(className, "void RemoveAllGestures()", AS_METHODPR(T, RemoveAllGestures, (), void), AS_CALL_THISCALL);
  7951. // bool Input::RemoveGesture(unsigned gestureID)
  7952. engine->RegisterObjectMethod(className, "bool RemoveGesture(uint)", AS_METHODPR(T, RemoveGesture, (unsigned), bool), AS_CALL_THISCALL);
  7953. // bool Input::RemoveScreenJoystick(SDL_JoystickID id)
  7954. engine->RegisterObjectMethod(className, "bool RemoveScreenJoystick(SDL_JoystickID)", AS_METHODPR(T, RemoveScreenJoystick, (SDL_JoystickID), bool), AS_CALL_THISCALL);
  7955. // void Input::ResetMouseGrabbed()
  7956. engine->RegisterObjectMethod(className, "void ResetMouseGrabbed()", AS_METHODPR(T, ResetMouseGrabbed, (), void), AS_CALL_THISCALL);
  7957. // void Input::ResetMouseMode()
  7958. engine->RegisterObjectMethod(className, "void ResetMouseMode()", AS_METHODPR(T, ResetMouseMode, (), void), AS_CALL_THISCALL);
  7959. // void Input::ResetMouseVisible()
  7960. engine->RegisterObjectMethod(className, "void ResetMouseVisible()", AS_METHODPR(T, ResetMouseVisible, (), void), AS_CALL_THISCALL);
  7961. // bool Input::SaveGesture(Serializer& dest, unsigned gestureID)
  7962. engine->RegisterObjectMethod(className, "bool SaveGesture(Serializer&, uint)", AS_METHODPR(T, SaveGesture, (Serializer&, unsigned), bool), AS_CALL_THISCALL);
  7963. // bool Input::SaveGestures(Serializer& dest)
  7964. engine->RegisterObjectMethod(className, "bool SaveGestures(Serializer&)", AS_METHODPR(T, SaveGestures, (Serializer&), bool), AS_CALL_THISCALL);
  7965. // void Input::SetMouseGrabbed(bool grab, bool suppressEvent = false)
  7966. engine->RegisterObjectMethod(className, "void SetMouseGrabbed(bool, bool = false)", AS_METHODPR(T, SetMouseGrabbed, (bool, bool), void), AS_CALL_THISCALL);
  7967. // void Input::SetMouseMode(MouseMode mode, bool suppressEvent = false)
  7968. engine->RegisterObjectMethod(className, "void SetMouseMode(MouseMode, bool = false)", AS_METHODPR(T, SetMouseMode, (MouseMode, bool), void), AS_CALL_THISCALL);
  7969. // void Input::SetMousePosition(const IntVector2& position)
  7970. engine->RegisterObjectMethod(className, "void SetMousePosition(const IntVector2&in)", AS_METHODPR(T, SetMousePosition, (const IntVector2&), void), AS_CALL_THISCALL);
  7971. engine->RegisterObjectMethod(className, "void set_mousePosition(const IntVector2&in)", AS_METHODPR(T, SetMousePosition, (const IntVector2&), void), AS_CALL_THISCALL);
  7972. // void Input::SetMouseVisible(bool enable, bool suppressEvent = false)
  7973. engine->RegisterObjectMethod(className, "void SetMouseVisible(bool, bool = false)", AS_METHODPR(T, SetMouseVisible, (bool, bool), void), AS_CALL_THISCALL);
  7974. // void Input::SetScreenJoystickVisible(SDL_JoystickID id, bool enable)
  7975. engine->RegisterObjectMethod(className, "void SetScreenJoystickVisible(SDL_JoystickID, bool)", AS_METHODPR(T, SetScreenJoystickVisible, (SDL_JoystickID, bool), void), AS_CALL_THISCALL);
  7976. engine->RegisterObjectMethod(className, "void set_screenJoystickVisible(SDL_JoystickID, bool)", AS_METHODPR(T, SetScreenJoystickVisible, (SDL_JoystickID, bool), void), AS_CALL_THISCALL);
  7977. // void Input::SetScreenKeyboardVisible(bool enable)
  7978. engine->RegisterObjectMethod(className, "void SetScreenKeyboardVisible(bool)", AS_METHODPR(T, SetScreenKeyboardVisible, (bool), void), AS_CALL_THISCALL);
  7979. engine->RegisterObjectMethod(className, "void set_screenKeyboardVisible(bool)", AS_METHODPR(T, SetScreenKeyboardVisible, (bool), void), AS_CALL_THISCALL);
  7980. // void Input::SetToggleFullscreen(bool enable)
  7981. engine->RegisterObjectMethod(className, "void SetToggleFullscreen(bool)", AS_METHODPR(T, SetToggleFullscreen, (bool), void), AS_CALL_THISCALL);
  7982. engine->RegisterObjectMethod(className, "void set_toggleFullscreen(bool)", AS_METHODPR(T, SetToggleFullscreen, (bool), void), AS_CALL_THISCALL);
  7983. // void Input::SetTouchEmulation(bool enable)
  7984. engine->RegisterObjectMethod(className, "void SetTouchEmulation(bool)", AS_METHODPR(T, SetTouchEmulation, (bool), void), AS_CALL_THISCALL);
  7985. engine->RegisterObjectMethod(className, "void set_touchEmulation(bool)", AS_METHODPR(T, SetTouchEmulation, (bool), void), AS_CALL_THISCALL);
  7986. // void Input::Update()
  7987. engine->RegisterObjectMethod(className, "void Update()", AS_METHODPR(T, Update, (), void), AS_CALL_THISCALL);
  7988. #ifdef REGISTER_MEMBERS_MANUAL_PART_Input
  7989. REGISTER_MEMBERS_MANUAL_PART_Input();
  7990. #endif
  7991. }
  7992. // class Localization | File: ../Resource/Localization.h
  7993. template <class T> void RegisterMembers_Localization(asIScriptEngine* engine, const char* className)
  7994. {
  7995. RegisterMembers_Object<T>(engine, className);
  7996. // String Localization::Get(const String& id)
  7997. engine->RegisterObjectMethod(className, "String Get(const String&in)", AS_METHODPR(T, Get, (const String&), String), AS_CALL_THISCALL);
  7998. // String Localization::GetLanguage()
  7999. engine->RegisterObjectMethod(className, "String GetLanguage()", AS_METHODPR(T, GetLanguage, (), String), AS_CALL_THISCALL);
  8000. engine->RegisterObjectMethod(className, "String get_language()", AS_METHODPR(T, GetLanguage, (), String), AS_CALL_THISCALL);
  8001. // String Localization::GetLanguage(int index)
  8002. engine->RegisterObjectMethod(className, "String GetLanguage(int)", AS_METHODPR(T, GetLanguage, (int), String), AS_CALL_THISCALL);
  8003. // int Localization::GetLanguageIndex() const
  8004. engine->RegisterObjectMethod(className, "int GetLanguageIndex() const", AS_METHODPR(T, GetLanguageIndex, () const, int), AS_CALL_THISCALL);
  8005. engine->RegisterObjectMethod(className, "int get_languageIndex() const", AS_METHODPR(T, GetLanguageIndex, () const, int), AS_CALL_THISCALL);
  8006. // int Localization::GetLanguageIndex(const String& language)
  8007. engine->RegisterObjectMethod(className, "int GetLanguageIndex(const String&in)", AS_METHODPR(T, GetLanguageIndex, (const String&), int), AS_CALL_THISCALL);
  8008. // int Localization::GetNumLanguages() const
  8009. engine->RegisterObjectMethod(className, "int GetNumLanguages() const", AS_METHODPR(T, GetNumLanguages, () const, int), AS_CALL_THISCALL);
  8010. engine->RegisterObjectMethod(className, "int get_numLanguages() const", AS_METHODPR(T, GetNumLanguages, () const, int), AS_CALL_THISCALL);
  8011. // void Localization::LoadJSONFile(const String& name, const String& language = String::EMPTY)
  8012. engine->RegisterObjectMethod(className, "void LoadJSONFile(const String&in, const String&in = String::EMPTY)", AS_METHODPR(T, LoadJSONFile, (const String&, const String&), void), AS_CALL_THISCALL);
  8013. // void Localization::LoadMultipleLanguageJSON(const JSONValue& source)
  8014. engine->RegisterObjectMethod(className, "void LoadMultipleLanguageJSON(const JSONValue&in)", AS_METHODPR(T, LoadMultipleLanguageJSON, (const JSONValue&), void), AS_CALL_THISCALL);
  8015. // void Localization::LoadSingleLanguageJSON(const JSONValue& source, const String& language = String::EMPTY)
  8016. engine->RegisterObjectMethod(className, "void LoadSingleLanguageJSON(const JSONValue&in, const String&in = String::EMPTY)", AS_METHODPR(T, LoadSingleLanguageJSON, (const JSONValue&, const String&), void), AS_CALL_THISCALL);
  8017. // void Localization::Reset()
  8018. engine->RegisterObjectMethod(className, "void Reset()", AS_METHODPR(T, Reset, (), void), AS_CALL_THISCALL);
  8019. // void Localization::SetLanguage(int index)
  8020. engine->RegisterObjectMethod(className, "void SetLanguage(int)", AS_METHODPR(T, SetLanguage, (int), void), AS_CALL_THISCALL);
  8021. // void Localization::SetLanguage(const String& language)
  8022. engine->RegisterObjectMethod(className, "void SetLanguage(const String&in)", AS_METHODPR(T, SetLanguage, (const String&), void), AS_CALL_THISCALL);
  8023. #ifdef REGISTER_MEMBERS_MANUAL_PART_Localization
  8024. REGISTER_MEMBERS_MANUAL_PART_Localization();
  8025. #endif
  8026. }
  8027. // class Log | File: ../IO/Log.h
  8028. template <class T> void RegisterMembers_Log(asIScriptEngine* engine, const char* className)
  8029. {
  8030. RegisterMembers_Object<T>(engine, className);
  8031. // void Log::Close()
  8032. engine->RegisterObjectMethod(className, "void Close()", AS_METHODPR(T, Close, (), void), AS_CALL_THISCALL);
  8033. // String Log::GetLastMessage() const
  8034. engine->RegisterObjectMethod(className, "String GetLastMessage() const", AS_METHODPR(T, GetLastMessage, () const, String), AS_CALL_THISCALL);
  8035. engine->RegisterObjectMethod(className, "String get_lastMessage() const", AS_METHODPR(T, GetLastMessage, () const, String), AS_CALL_THISCALL);
  8036. // int Log::GetLevel() const
  8037. engine->RegisterObjectMethod(className, "int GetLevel() const", AS_METHODPR(T, GetLevel, () const, int), AS_CALL_THISCALL);
  8038. engine->RegisterObjectMethod(className, "int get_level() const", AS_METHODPR(T, GetLevel, () const, int), AS_CALL_THISCALL);
  8039. // bool Log::GetTimeStamp() const
  8040. engine->RegisterObjectMethod(className, "bool GetTimeStamp() const", AS_METHODPR(T, GetTimeStamp, () const, bool), AS_CALL_THISCALL);
  8041. engine->RegisterObjectMethod(className, "bool get_timeStamp() const", AS_METHODPR(T, GetTimeStamp, () const, bool), AS_CALL_THISCALL);
  8042. // bool Log::IsQuiet() const
  8043. engine->RegisterObjectMethod(className, "bool IsQuiet() const", AS_METHODPR(T, IsQuiet, () const, bool), AS_CALL_THISCALL);
  8044. engine->RegisterObjectMethod(className, "bool get_quiet() const", AS_METHODPR(T, IsQuiet, () const, bool), AS_CALL_THISCALL);
  8045. // void Log::Open(const String& fileName)
  8046. engine->RegisterObjectMethod(className, "void Open(const String&in)", AS_METHODPR(T, Open, (const String&), void), AS_CALL_THISCALL);
  8047. // void Log::SetLevel(int level)
  8048. engine->RegisterObjectMethod(className, "void SetLevel(int)", AS_METHODPR(T, SetLevel, (int), void), AS_CALL_THISCALL);
  8049. engine->RegisterObjectMethod(className, "void set_level(int)", AS_METHODPR(T, SetLevel, (int), void), AS_CALL_THISCALL);
  8050. // void Log::SetQuiet(bool quiet)
  8051. engine->RegisterObjectMethod(className, "void SetQuiet(bool)", AS_METHODPR(T, SetQuiet, (bool), void), AS_CALL_THISCALL);
  8052. engine->RegisterObjectMethod(className, "void set_quiet(bool)", AS_METHODPR(T, SetQuiet, (bool), void), AS_CALL_THISCALL);
  8053. // void Log::SetTimeStamp(bool enable)
  8054. engine->RegisterObjectMethod(className, "void SetTimeStamp(bool)", AS_METHODPR(T, SetTimeStamp, (bool), void), AS_CALL_THISCALL);
  8055. engine->RegisterObjectMethod(className, "void set_timeStamp(bool)", AS_METHODPR(T, SetTimeStamp, (bool), void), AS_CALL_THISCALL);
  8056. // static void Log::Write(int level, const String& message)
  8057. // Not registered because have @nobind mark
  8058. // static void Log::WriteFormat(int level, const char* format,...)
  8059. // Error: type "const char*" can not automatically bind
  8060. // static void Log::WriteRaw(const String& message, bool error = false)
  8061. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("void WriteRaw(const String&in, bool = false)", AS_FUNCTIONPR(T::WriteRaw, (const String&, bool), void), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  8062. #ifdef REGISTER_MEMBERS_MANUAL_PART_Log
  8063. REGISTER_MEMBERS_MANUAL_PART_Log();
  8064. #endif
  8065. }
  8066. // class MemoryBuffer | File: ../IO/MemoryBuffer.h
  8067. template <class T> void RegisterMembers_MemoryBuffer(asIScriptEngine* engine, const char* className)
  8068. {
  8069. RegisterMembers_AbstractFile<T>(engine, className);
  8070. // unsigned char* MemoryBuffer::GetData()
  8071. // Error: type "unsigned char*" can not automatically bind
  8072. // bool MemoryBuffer::IsReadOnly()
  8073. engine->RegisterObjectMethod(className, "bool IsReadOnly()", AS_METHODPR(T, IsReadOnly, (), bool), AS_CALL_THISCALL);
  8074. #ifdef REGISTER_MEMBERS_MANUAL_PART_MemoryBuffer
  8075. REGISTER_MEMBERS_MANUAL_PART_MemoryBuffer();
  8076. #endif
  8077. }
  8078. // class MessageBox | File: ../UI/MessageBox.h
  8079. template <class T> void RegisterMembers_MessageBox(asIScriptEngine* engine, const char* className)
  8080. {
  8081. RegisterMembers_Object<T>(engine, className);
  8082. // const String& MessageBox::GetMessage() const
  8083. engine->RegisterObjectMethod(className, "const String& GetMessage() const", AS_METHODPR(T, GetMessage, () const, const String&), AS_CALL_THISCALL);
  8084. engine->RegisterObjectMethod(className, "const String& get_message() const", AS_METHODPR(T, GetMessage, () const, const String&), AS_CALL_THISCALL);
  8085. // const String& MessageBox::GetTitle() const
  8086. engine->RegisterObjectMethod(className, "const String& GetTitle() const", AS_METHODPR(T, GetTitle, () const, const String&), AS_CALL_THISCALL);
  8087. engine->RegisterObjectMethod(className, "const String& get_title() const", AS_METHODPR(T, GetTitle, () const, const String&), AS_CALL_THISCALL);
  8088. // UIElement* MessageBox::GetWindow() const
  8089. engine->RegisterObjectMethod(className, "UIElement@+ GetWindow() const", AS_METHODPR(T, GetWindow, () const, UIElement*), AS_CALL_THISCALL);
  8090. engine->RegisterObjectMethod(className, "UIElement@+ get_window() const", AS_METHODPR(T, GetWindow, () const, UIElement*), AS_CALL_THISCALL);
  8091. // void MessageBox::SetMessage(const String& text)
  8092. engine->RegisterObjectMethod(className, "void SetMessage(const String&in)", AS_METHODPR(T, SetMessage, (const String&), void), AS_CALL_THISCALL);
  8093. engine->RegisterObjectMethod(className, "void set_message(const String&in)", AS_METHODPR(T, SetMessage, (const String&), void), AS_CALL_THISCALL);
  8094. // void MessageBox::SetTitle(const String& text)
  8095. engine->RegisterObjectMethod(className, "void SetTitle(const String&in)", AS_METHODPR(T, SetTitle, (const String&), void), AS_CALL_THISCALL);
  8096. engine->RegisterObjectMethod(className, "void set_title(const String&in)", AS_METHODPR(T, SetTitle, (const String&), void), AS_CALL_THISCALL);
  8097. // static void MessageBox::RegisterObject(Context* context)
  8098. // Not registered because have @nobind mark
  8099. #ifdef REGISTER_MEMBERS_MANUAL_PART_MessageBox
  8100. REGISTER_MEMBERS_MANUAL_PART_MessageBox();
  8101. #endif
  8102. }
  8103. // class NamedPipe | File: ../IO/NamedPipe.h
  8104. template <class T> void RegisterMembers_NamedPipe(asIScriptEngine* engine, const char* className)
  8105. {
  8106. RegisterMembers_Object<T>(engine, className);
  8107. RegisterMembers_AbstractFile<T>(engine, className);
  8108. // void NamedPipe::Close()
  8109. engine->RegisterObjectMethod(className, "void Close()", AS_METHODPR(T, Close, (), void), AS_CALL_THISCALL);
  8110. // bool NamedPipe::IsOpen() const
  8111. engine->RegisterObjectMethod(className, "bool IsOpen() const", AS_METHODPR(T, IsOpen, () const, bool), AS_CALL_THISCALL);
  8112. engine->RegisterObjectMethod(className, "bool get_open() const", AS_METHODPR(T, IsOpen, () const, bool), AS_CALL_THISCALL);
  8113. // bool NamedPipe::IsServer() const
  8114. engine->RegisterObjectMethod(className, "bool IsServer() const", AS_METHODPR(T, IsServer, () const, bool), AS_CALL_THISCALL);
  8115. engine->RegisterObjectMethod(className, "bool get_server() const", AS_METHODPR(T, IsServer, () const, bool), AS_CALL_THISCALL);
  8116. // bool NamedPipe::Open(const String& name, bool isServer)
  8117. engine->RegisterObjectMethod(className, "bool Open(const String&in, bool)", AS_METHODPR(T, Open, (const String&, bool), bool), AS_CALL_THISCALL);
  8118. #ifdef REGISTER_MEMBERS_MANUAL_PART_NamedPipe
  8119. REGISTER_MEMBERS_MANUAL_PART_NamedPipe();
  8120. #endif
  8121. }
  8122. // class OcclusionBuffer | File: ../Graphics/OcclusionBuffer.h
  8123. template <class T> void RegisterMembers_OcclusionBuffer(asIScriptEngine* engine, const char* className)
  8124. {
  8125. RegisterMembers_Object<T>(engine, className);
  8126. // bool OcclusionBuffer::AddTriangles(const Matrix3x4& model, const void* vertexData, unsigned vertexSize, unsigned vertexStart, unsigned vertexCount)
  8127. // Error: type "const void*" can not automatically bind
  8128. // bool OcclusionBuffer::AddTriangles(const Matrix3x4& model, const void* vertexData, unsigned vertexSize, const void* indexData, unsigned indexSize, unsigned indexStart, unsigned indexCount)
  8129. // Error: type "const void*" can not automatically bind
  8130. // int* OcclusionBuffer::GetBuffer() const
  8131. // Error: type "int*" can not automatically bind
  8132. // void OcclusionBuffer::BuildDepthHierarchy()
  8133. engine->RegisterObjectMethod(className, "void BuildDepthHierarchy()", AS_METHODPR(T, BuildDepthHierarchy, (), void), AS_CALL_THISCALL);
  8134. // void OcclusionBuffer::Clear()
  8135. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  8136. // void OcclusionBuffer::DrawBatch(const OcclusionBatch& batch, unsigned threadIndex)
  8137. engine->RegisterObjectMethod(className, "void DrawBatch(const OcclusionBatch&in, uint)", AS_METHODPR(T, DrawBatch, (const OcclusionBatch&, unsigned), void), AS_CALL_THISCALL);
  8138. // void OcclusionBuffer::DrawTriangles()
  8139. engine->RegisterObjectMethod(className, "void DrawTriangles()", AS_METHODPR(T, DrawTriangles, (), void), AS_CALL_THISCALL);
  8140. // CullMode OcclusionBuffer::GetCullMode() const
  8141. engine->RegisterObjectMethod(className, "CullMode GetCullMode() const", AS_METHODPR(T, GetCullMode, () const, CullMode), AS_CALL_THISCALL);
  8142. // int OcclusionBuffer::GetHeight() const
  8143. engine->RegisterObjectMethod(className, "int GetHeight() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  8144. // unsigned OcclusionBuffer::GetMaxTriangles() const
  8145. engine->RegisterObjectMethod(className, "uint GetMaxTriangles() const", AS_METHODPR(T, GetMaxTriangles, () const, unsigned), AS_CALL_THISCALL);
  8146. // unsigned OcclusionBuffer::GetNumTriangles() const
  8147. engine->RegisterObjectMethod(className, "uint GetNumTriangles() const", AS_METHODPR(T, GetNumTriangles, () const, unsigned), AS_CALL_THISCALL);
  8148. // const Matrix4& OcclusionBuffer::GetProjection() const
  8149. engine->RegisterObjectMethod(className, "const Matrix4& GetProjection() const", AS_METHODPR(T, GetProjection, () const, const Matrix4&), AS_CALL_THISCALL);
  8150. // unsigned OcclusionBuffer::GetUseTimer()
  8151. engine->RegisterObjectMethod(className, "uint GetUseTimer()", AS_METHODPR(T, GetUseTimer, (), unsigned), AS_CALL_THISCALL);
  8152. // const Matrix3x4& OcclusionBuffer::GetView() const
  8153. engine->RegisterObjectMethod(className, "const Matrix3x4& GetView() const", AS_METHODPR(T, GetView, () const, const Matrix3x4&), AS_CALL_THISCALL);
  8154. // int OcclusionBuffer::GetWidth() const
  8155. engine->RegisterObjectMethod(className, "int GetWidth() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  8156. // bool OcclusionBuffer::IsThreaded() const
  8157. engine->RegisterObjectMethod(className, "bool IsThreaded() const", AS_METHODPR(T, IsThreaded, () const, bool), AS_CALL_THISCALL);
  8158. // bool OcclusionBuffer::IsVisible(const BoundingBox& worldSpaceBox) const
  8159. engine->RegisterObjectMethod(className, "bool IsVisible(const BoundingBox&in) const", AS_METHODPR(T, IsVisible, (const BoundingBox&) const, bool), AS_CALL_THISCALL);
  8160. // void OcclusionBuffer::Reset()
  8161. engine->RegisterObjectMethod(className, "void Reset()", AS_METHODPR(T, Reset, (), void), AS_CALL_THISCALL);
  8162. // void OcclusionBuffer::ResetUseTimer()
  8163. engine->RegisterObjectMethod(className, "void ResetUseTimer()", AS_METHODPR(T, ResetUseTimer, (), void), AS_CALL_THISCALL);
  8164. // void OcclusionBuffer::SetCullMode(CullMode mode)
  8165. engine->RegisterObjectMethod(className, "void SetCullMode(CullMode)", AS_METHODPR(T, SetCullMode, (CullMode), void), AS_CALL_THISCALL);
  8166. // void OcclusionBuffer::SetMaxTriangles(unsigned triangles)
  8167. engine->RegisterObjectMethod(className, "void SetMaxTriangles(uint)", AS_METHODPR(T, SetMaxTriangles, (unsigned), void), AS_CALL_THISCALL);
  8168. // bool OcclusionBuffer::SetSize(int width, int height, bool threaded)
  8169. engine->RegisterObjectMethod(className, "bool SetSize(int, int, bool)", AS_METHODPR(T, SetSize, (int, int, bool), bool), AS_CALL_THISCALL);
  8170. // void OcclusionBuffer::SetView(Camera* camera)
  8171. engine->RegisterObjectMethod(className, "void SetView(Camera@+)", AS_METHODPR(T, SetView, (Camera*), void), AS_CALL_THISCALL);
  8172. #ifdef REGISTER_MEMBERS_MANUAL_PART_OcclusionBuffer
  8173. REGISTER_MEMBERS_MANUAL_PART_OcclusionBuffer();
  8174. #endif
  8175. }
  8176. // class OggVorbisSoundStream | File: ../Audio/OggVorbisSoundStream.h
  8177. template <class T> void RegisterMembers_OggVorbisSoundStream(asIScriptEngine* engine, const char* className)
  8178. {
  8179. RegisterMembers_SoundStream<T>(engine, className);
  8180. #ifdef REGISTER_MEMBERS_MANUAL_PART_OggVorbisSoundStream
  8181. REGISTER_MEMBERS_MANUAL_PART_OggVorbisSoundStream();
  8182. #endif
  8183. }
  8184. // const Vector<String> PackageFile::GetEntryNames() const
  8185. template <class T> CScriptArray* PackageFile_constspVectorlesStringgre_GetEntryNames_void_template(T* _ptr)
  8186. {
  8187. const Vector<String> result = _ptr->GetEntryNames();
  8188. return VectorToArray<String>(result, "Array<String>");
  8189. }
  8190. // class PackageFile | File: ../IO/PackageFile.h
  8191. template <class T> void RegisterMembers_PackageFile(asIScriptEngine* engine, const char* className)
  8192. {
  8193. RegisterMembers_Object<T>(engine, className);
  8194. // const HashMap<String, PackageEntry>& PackageFile::GetEntries() const
  8195. // Error: type "const HashMap<String, PackageEntry>&" can not automatically bind
  8196. // const PackageEntry* PackageFile::GetEntry(const String& fileName) const
  8197. // Error: type "const PackageEntry*" can not automatically bind
  8198. // bool PackageFile::Exists(const String& fileName) const
  8199. engine->RegisterObjectMethod(className, "bool Exists(const String&in) const", AS_METHODPR(T, Exists, (const String&) const, bool), AS_CALL_THISCALL);
  8200. // unsigned PackageFile::GetChecksum() const
  8201. engine->RegisterObjectMethod(className, "uint GetChecksum() const", AS_METHODPR(T, GetChecksum, () const, unsigned), AS_CALL_THISCALL);
  8202. engine->RegisterObjectMethod(className, "uint get_checksum() const", AS_METHODPR(T, GetChecksum, () const, unsigned), AS_CALL_THISCALL);
  8203. // const Vector<String> PackageFile::GetEntryNames() const
  8204. engine->RegisterObjectMethod(className, "Array<String>@ GetEntryNames() const", AS_FUNCTION_OBJFIRST(PackageFile_constspVectorlesStringgre_GetEntryNames_void_template<PackageFile>), AS_CALL_CDECL_OBJFIRST);
  8205. // const String& PackageFile::GetName() const
  8206. engine->RegisterObjectMethod(className, "const String& GetName() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  8207. engine->RegisterObjectMethod(className, "const String& get_name() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  8208. // StringHash PackageFile::GetNameHash() const
  8209. engine->RegisterObjectMethod(className, "StringHash GetNameHash() const", AS_METHODPR(T, GetNameHash, () const, StringHash), AS_CALL_THISCALL);
  8210. // unsigned PackageFile::GetNumFiles() const
  8211. engine->RegisterObjectMethod(className, "uint GetNumFiles() const", AS_METHODPR(T, GetNumFiles, () const, unsigned), AS_CALL_THISCALL);
  8212. engine->RegisterObjectMethod(className, "uint get_numFiles() const", AS_METHODPR(T, GetNumFiles, () const, unsigned), AS_CALL_THISCALL);
  8213. // unsigned PackageFile::GetTotalDataSize() const
  8214. engine->RegisterObjectMethod(className, "uint GetTotalDataSize() const", AS_METHODPR(T, GetTotalDataSize, () const, unsigned), AS_CALL_THISCALL);
  8215. engine->RegisterObjectMethod(className, "uint get_totalDataSize() const", AS_METHODPR(T, GetTotalDataSize, () const, unsigned), AS_CALL_THISCALL);
  8216. // unsigned PackageFile::GetTotalSize() const
  8217. engine->RegisterObjectMethod(className, "uint GetTotalSize() const", AS_METHODPR(T, GetTotalSize, () const, unsigned), AS_CALL_THISCALL);
  8218. engine->RegisterObjectMethod(className, "uint get_totalSize() const", AS_METHODPR(T, GetTotalSize, () const, unsigned), AS_CALL_THISCALL);
  8219. // bool PackageFile::IsCompressed() const
  8220. engine->RegisterObjectMethod(className, "bool IsCompressed() const", AS_METHODPR(T, IsCompressed, () const, bool), AS_CALL_THISCALL);
  8221. engine->RegisterObjectMethod(className, "bool get_compressed() const", AS_METHODPR(T, IsCompressed, () const, bool), AS_CALL_THISCALL);
  8222. // bool PackageFile::Open(const String& fileName, unsigned startOffset = 0)
  8223. engine->RegisterObjectMethod(className, "bool Open(const String&in, uint = 0)", AS_METHODPR(T, Open, (const String&, unsigned), bool), AS_CALL_THISCALL);
  8224. #ifdef REGISTER_MEMBERS_MANUAL_PART_PackageFile
  8225. REGISTER_MEMBERS_MANUAL_PART_PackageFile();
  8226. #endif
  8227. }
  8228. // class Profiler | File: ../Core/Profiler.h
  8229. template <class T> void RegisterMembers_Profiler(asIScriptEngine* engine, const char* className)
  8230. {
  8231. RegisterMembers_Object<T>(engine, className);
  8232. // void Profiler::BeginBlock(const char* name)
  8233. // Can not be registered here bacause hidden in derived classes: EventProfiler
  8234. // const ProfilerBlock* Profiler::GetCurrentBlock()
  8235. // Error: type "ProfilerBlock" can not automatically bind bacause have @nobind mark
  8236. // const ProfilerBlock* Profiler::GetRootBlock()
  8237. // Error: type "ProfilerBlock" can not automatically bind bacause have @nobind mark
  8238. // void Profiler::BeginFrame()
  8239. engine->RegisterObjectMethod(className, "void BeginFrame()", AS_METHODPR(T, BeginFrame, (), void), AS_CALL_THISCALL);
  8240. // void Profiler::BeginInterval()
  8241. engine->RegisterObjectMethod(className, "void BeginInterval()", AS_METHODPR(T, BeginInterval, (), void), AS_CALL_THISCALL);
  8242. // void Profiler::EndBlock()
  8243. engine->RegisterObjectMethod(className, "void EndBlock()", AS_METHODPR(T, EndBlock, (), void), AS_CALL_THISCALL);
  8244. // void Profiler::EndFrame()
  8245. engine->RegisterObjectMethod(className, "void EndFrame()", AS_METHODPR(T, EndFrame, (), void), AS_CALL_THISCALL);
  8246. // const String& Profiler::PrintData(bool showUnused = false, bool showTotal = false, unsigned maxDepth = M_MAX_UNSIGNED) const
  8247. engine->RegisterObjectMethod(className, "const String& PrintData(bool = false, bool = false, uint = M_MAX_UNSIGNED) const", AS_METHODPR(T, PrintData, (bool, bool, unsigned) const, const String&), AS_CALL_THISCALL);
  8248. #ifdef REGISTER_MEMBERS_MANUAL_PART_Profiler
  8249. REGISTER_MEMBERS_MANUAL_PART_Profiler();
  8250. #endif
  8251. }
  8252. // class Renderer | File: ../Graphics/Renderer.h
  8253. template <class T> void RegisterMembers_Renderer(asIScriptEngine* engine, const char* className)
  8254. {
  8255. RegisterMembers_Object<T>(engine, className);
  8256. // void Renderer::SetShadowMapFilter(Object* instance, ShadowMapFilter functionPtr)
  8257. // Not registered because have @nobind mark
  8258. // void Renderer::ApplyShadowMapFilter(View* view, Texture2D* shadowMap, float blurScale)
  8259. engine->RegisterObjectMethod(className, "void ApplyShadowMapFilter(View@+, Texture2D@+, float)", AS_METHODPR(T, ApplyShadowMapFilter, (View*, Texture2D*, float), void), AS_CALL_THISCALL);
  8260. // void Renderer::DrawDebugGeometry(bool depthTest)
  8261. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(bool)", AS_METHODPR(T, DrawDebugGeometry, (bool), void), AS_CALL_THISCALL);
  8262. // Texture2D* Renderer::GetDefaultLightRamp() const
  8263. engine->RegisterObjectMethod(className, "Texture2D@+ GetDefaultLightRamp() const", AS_METHODPR(T, GetDefaultLightRamp, () const, Texture2D*), AS_CALL_THISCALL);
  8264. engine->RegisterObjectMethod(className, "Texture2D@+ get_defaultLightRamp() const", AS_METHODPR(T, GetDefaultLightRamp, () const, Texture2D*), AS_CALL_THISCALL);
  8265. // Texture2D* Renderer::GetDefaultLightSpot() const
  8266. engine->RegisterObjectMethod(className, "Texture2D@+ GetDefaultLightSpot() const", AS_METHODPR(T, GetDefaultLightSpot, () const, Texture2D*), AS_CALL_THISCALL);
  8267. engine->RegisterObjectMethod(className, "Texture2D@+ get_defaultLightSpot() const", AS_METHODPR(T, GetDefaultLightSpot, () const, Texture2D*), AS_CALL_THISCALL);
  8268. // Material* Renderer::GetDefaultMaterial() const
  8269. engine->RegisterObjectMethod(className, "Material@+ GetDefaultMaterial() const", AS_METHODPR(T, GetDefaultMaterial, () const, Material*), AS_CALL_THISCALL);
  8270. engine->RegisterObjectMethod(className, "Material@+ get_defaultMaterial() const", AS_METHODPR(T, GetDefaultMaterial, () const, Material*), AS_CALL_THISCALL);
  8271. // RenderPath* Renderer::GetDefaultRenderPath() const
  8272. engine->RegisterObjectMethod(className, "RenderPath@+ GetDefaultRenderPath() const", AS_METHODPR(T, GetDefaultRenderPath, () const, RenderPath*), AS_CALL_THISCALL);
  8273. engine->RegisterObjectMethod(className, "RenderPath@+ get_defaultRenderPath() const", AS_METHODPR(T, GetDefaultRenderPath, () const, RenderPath*), AS_CALL_THISCALL);
  8274. // Technique* Renderer::GetDefaultTechnique() const
  8275. engine->RegisterObjectMethod(className, "Technique@+ GetDefaultTechnique() const", AS_METHODPR(T, GetDefaultTechnique, () const, Technique*), AS_CALL_THISCALL);
  8276. engine->RegisterObjectMethod(className, "Technique@+ get_defaultTechnique() const", AS_METHODPR(T, GetDefaultTechnique, () const, Technique*), AS_CALL_THISCALL);
  8277. // Zone* Renderer::GetDefaultZone() const
  8278. engine->RegisterObjectMethod(className, "Zone@+ GetDefaultZone() const", AS_METHODPR(T, GetDefaultZone, () const, Zone*), AS_CALL_THISCALL);
  8279. engine->RegisterObjectMethod(className, "Zone@+ get_defaultZone() const", AS_METHODPR(T, GetDefaultZone, () const, Zone*), AS_CALL_THISCALL);
  8280. // RenderSurface* Renderer::GetDepthStencil(int width, int height, int multiSample, bool autoResolve)
  8281. engine->RegisterObjectMethod(className, "RenderSurface@+ GetDepthStencil(int, int, int, bool)", AS_METHODPR(T, GetDepthStencil, (int, int, int, bool), RenderSurface*), AS_CALL_THISCALL);
  8282. // bool Renderer::GetDrawShadows() const
  8283. engine->RegisterObjectMethod(className, "bool GetDrawShadows() const", AS_METHODPR(T, GetDrawShadows, () const, bool), AS_CALL_THISCALL);
  8284. engine->RegisterObjectMethod(className, "bool get_drawShadows() const", AS_METHODPR(T, GetDrawShadows, () const, bool), AS_CALL_THISCALL);
  8285. // bool Renderer::GetDynamicInstancing() const
  8286. engine->RegisterObjectMethod(className, "bool GetDynamicInstancing() const", AS_METHODPR(T, GetDynamicInstancing, () const, bool), AS_CALL_THISCALL);
  8287. engine->RegisterObjectMethod(className, "bool get_dynamicInstancing() const", AS_METHODPR(T, GetDynamicInstancing, () const, bool), AS_CALL_THISCALL);
  8288. // TextureCube* Renderer::GetFaceSelectCubeMap() const
  8289. engine->RegisterObjectMethod(className, "TextureCube@+ GetFaceSelectCubeMap() const", AS_METHODPR(T, GetFaceSelectCubeMap, () const, TextureCube*), AS_CALL_THISCALL);
  8290. // const FrameInfo& Renderer::GetFrameInfo() const
  8291. engine->RegisterObjectMethod(className, "const FrameInfo& GetFrameInfo() const", AS_METHODPR(T, GetFrameInfo, () const, const FrameInfo&), AS_CALL_THISCALL);
  8292. // bool Renderer::GetHDRRendering() const
  8293. engine->RegisterObjectMethod(className, "bool GetHDRRendering() const", AS_METHODPR(T, GetHDRRendering, () const, bool), AS_CALL_THISCALL);
  8294. engine->RegisterObjectMethod(className, "bool get_hdrRendering() const", AS_METHODPR(T, GetHDRRendering, () const, bool), AS_CALL_THISCALL);
  8295. // TextureCube* Renderer::GetIndirectionCubeMap() const
  8296. engine->RegisterObjectMethod(className, "TextureCube@+ GetIndirectionCubeMap() const", AS_METHODPR(T, GetIndirectionCubeMap, () const, TextureCube*), AS_CALL_THISCALL);
  8297. // VertexBuffer* Renderer::GetInstancingBuffer() const
  8298. engine->RegisterObjectMethod(className, "VertexBuffer@+ GetInstancingBuffer() const", AS_METHODPR(T, GetInstancingBuffer, () const, VertexBuffer*), AS_CALL_THISCALL);
  8299. // Geometry* Renderer::GetLightGeometry(Light* light)
  8300. engine->RegisterObjectMethod(className, "Geometry@+ GetLightGeometry(Light@+)", AS_METHODPR(T, GetLightGeometry, (Light*), Geometry*), AS_CALL_THISCALL);
  8301. // const Rect& Renderer::GetLightScissor(Light* light, Camera* camera)
  8302. engine->RegisterObjectMethod(className, "const Rect& GetLightScissor(Light@+, Camera@+)", AS_METHODPR(T, GetLightScissor, (Light*, Camera*), const Rect&), AS_CALL_THISCALL);
  8303. // MaterialQuality Renderer::GetMaterialQuality() const
  8304. engine->RegisterObjectMethod(className, "MaterialQuality GetMaterialQuality() const", AS_METHODPR(T, GetMaterialQuality, () const, MaterialQuality), AS_CALL_THISCALL);
  8305. engine->RegisterObjectMethod(className, "MaterialQuality get_materialQuality() const", AS_METHODPR(T, GetMaterialQuality, () const, MaterialQuality), AS_CALL_THISCALL);
  8306. // int Renderer::GetMaxOccluderTriangles() const
  8307. engine->RegisterObjectMethod(className, "int GetMaxOccluderTriangles() const", AS_METHODPR(T, GetMaxOccluderTriangles, () const, int), AS_CALL_THISCALL);
  8308. engine->RegisterObjectMethod(className, "int get_maxOccluderTriangles() const", AS_METHODPR(T, GetMaxOccluderTriangles, () const, int), AS_CALL_THISCALL);
  8309. // int Renderer::GetMaxShadowMaps() const
  8310. engine->RegisterObjectMethod(className, "int GetMaxShadowMaps() const", AS_METHODPR(T, GetMaxShadowMaps, () const, int), AS_CALL_THISCALL);
  8311. engine->RegisterObjectMethod(className, "int get_maxShadowMaps() const", AS_METHODPR(T, GetMaxShadowMaps, () const, int), AS_CALL_THISCALL);
  8312. // int Renderer::GetMaxSortedInstances() const
  8313. engine->RegisterObjectMethod(className, "int GetMaxSortedInstances() const", AS_METHODPR(T, GetMaxSortedInstances, () const, int), AS_CALL_THISCALL);
  8314. engine->RegisterObjectMethod(className, "int get_maxSortedInstances() const", AS_METHODPR(T, GetMaxSortedInstances, () const, int), AS_CALL_THISCALL);
  8315. // int Renderer::GetMinInstances() const
  8316. engine->RegisterObjectMethod(className, "int GetMinInstances() const", AS_METHODPR(T, GetMinInstances, () const, int), AS_CALL_THISCALL);
  8317. engine->RegisterObjectMethod(className, "int get_minInstances() const", AS_METHODPR(T, GetMinInstances, () const, int), AS_CALL_THISCALL);
  8318. // float Renderer::GetMobileNormalOffsetMul() const
  8319. engine->RegisterObjectMethod(className, "float GetMobileNormalOffsetMul() const", AS_METHODPR(T, GetMobileNormalOffsetMul, () const, float), AS_CALL_THISCALL);
  8320. engine->RegisterObjectMethod(className, "float get_mobileNormalOffsetMul() const", AS_METHODPR(T, GetMobileNormalOffsetMul, () const, float), AS_CALL_THISCALL);
  8321. // float Renderer::GetMobileShadowBiasAdd() const
  8322. engine->RegisterObjectMethod(className, "float GetMobileShadowBiasAdd() const", AS_METHODPR(T, GetMobileShadowBiasAdd, () const, float), AS_CALL_THISCALL);
  8323. engine->RegisterObjectMethod(className, "float get_mobileShadowBiasAdd() const", AS_METHODPR(T, GetMobileShadowBiasAdd, () const, float), AS_CALL_THISCALL);
  8324. // float Renderer::GetMobileShadowBiasMul() const
  8325. engine->RegisterObjectMethod(className, "float GetMobileShadowBiasMul() const", AS_METHODPR(T, GetMobileShadowBiasMul, () const, float), AS_CALL_THISCALL);
  8326. engine->RegisterObjectMethod(className, "float get_mobileShadowBiasMul() const", AS_METHODPR(T, GetMobileShadowBiasMul, () const, float), AS_CALL_THISCALL);
  8327. // unsigned Renderer::GetNumBatches() const
  8328. engine->RegisterObjectMethod(className, "uint GetNumBatches() const", AS_METHODPR(T, GetNumBatches, () const, unsigned), AS_CALL_THISCALL);
  8329. engine->RegisterObjectMethod(className, "uint get_numBatches() const", AS_METHODPR(T, GetNumBatches, () const, unsigned), AS_CALL_THISCALL);
  8330. // int Renderer::GetNumExtraInstancingBufferElements() const
  8331. engine->RegisterObjectMethod(className, "int GetNumExtraInstancingBufferElements() const", AS_METHODPR(T, GetNumExtraInstancingBufferElements, () const, int), AS_CALL_THISCALL);
  8332. engine->RegisterObjectMethod(className, "int get_numExtraInstancingBufferElements() const", AS_METHODPR(T, GetNumExtraInstancingBufferElements, () const, int), AS_CALL_THISCALL);
  8333. // unsigned Renderer::GetNumGeometries(bool allViews = false) const
  8334. engine->RegisterObjectMethod(className, "uint GetNumGeometries(bool = false) const", AS_METHODPR(T, GetNumGeometries, (bool) const, unsigned), AS_CALL_THISCALL);
  8335. engine->RegisterObjectMethod(className, "uint get_numGeometries(bool = false) const", AS_METHODPR(T, GetNumGeometries, (bool) const, unsigned), AS_CALL_THISCALL);
  8336. // unsigned Renderer::GetNumLights(bool allViews = false) const
  8337. engine->RegisterObjectMethod(className, "uint GetNumLights(bool = false) const", AS_METHODPR(T, GetNumLights, (bool) const, unsigned), AS_CALL_THISCALL);
  8338. engine->RegisterObjectMethod(className, "uint get_numLights(bool = false) const", AS_METHODPR(T, GetNumLights, (bool) const, unsigned), AS_CALL_THISCALL);
  8339. // unsigned Renderer::GetNumOccluders(bool allViews = false) const
  8340. engine->RegisterObjectMethod(className, "uint GetNumOccluders(bool = false) const", AS_METHODPR(T, GetNumOccluders, (bool) const, unsigned), AS_CALL_THISCALL);
  8341. engine->RegisterObjectMethod(className, "uint get_numOccluders(bool = false) const", AS_METHODPR(T, GetNumOccluders, (bool) const, unsigned), AS_CALL_THISCALL);
  8342. // unsigned Renderer::GetNumPrimitives() const
  8343. engine->RegisterObjectMethod(className, "uint GetNumPrimitives() const", AS_METHODPR(T, GetNumPrimitives, () const, unsigned), AS_CALL_THISCALL);
  8344. engine->RegisterObjectMethod(className, "uint get_numPrimitives() const", AS_METHODPR(T, GetNumPrimitives, () const, unsigned), AS_CALL_THISCALL);
  8345. // unsigned Renderer::GetNumShadowMaps(bool allViews = false) const
  8346. engine->RegisterObjectMethod(className, "uint GetNumShadowMaps(bool = false) const", AS_METHODPR(T, GetNumShadowMaps, (bool) const, unsigned), AS_CALL_THISCALL);
  8347. engine->RegisterObjectMethod(className, "uint get_numShadowMaps(bool = false) const", AS_METHODPR(T, GetNumShadowMaps, (bool) const, unsigned), AS_CALL_THISCALL);
  8348. // unsigned Renderer::GetNumViewports() const
  8349. engine->RegisterObjectMethod(className, "uint GetNumViewports() const", AS_METHODPR(T, GetNumViewports, () const, unsigned), AS_CALL_THISCALL);
  8350. engine->RegisterObjectMethod(className, "uint get_numViewports() const", AS_METHODPR(T, GetNumViewports, () const, unsigned), AS_CALL_THISCALL);
  8351. // unsigned Renderer::GetNumViews() const
  8352. engine->RegisterObjectMethod(className, "uint GetNumViews() const", AS_METHODPR(T, GetNumViews, () const, unsigned), AS_CALL_THISCALL);
  8353. engine->RegisterObjectMethod(className, "uint get_numViews() const", AS_METHODPR(T, GetNumViews, () const, unsigned), AS_CALL_THISCALL);
  8354. // float Renderer::GetOccluderSizeThreshold() const
  8355. engine->RegisterObjectMethod(className, "float GetOccluderSizeThreshold() const", AS_METHODPR(T, GetOccluderSizeThreshold, () const, float), AS_CALL_THISCALL);
  8356. engine->RegisterObjectMethod(className, "float get_occluderSizeThreshold() const", AS_METHODPR(T, GetOccluderSizeThreshold, () const, float), AS_CALL_THISCALL);
  8357. // OcclusionBuffer* Renderer::GetOcclusionBuffer(Camera* camera)
  8358. engine->RegisterObjectMethod(className, "OcclusionBuffer@+ GetOcclusionBuffer(Camera@+)", AS_METHODPR(T, GetOcclusionBuffer, (Camera*), OcclusionBuffer*), AS_CALL_THISCALL);
  8359. // int Renderer::GetOcclusionBufferSize() const
  8360. engine->RegisterObjectMethod(className, "int GetOcclusionBufferSize() const", AS_METHODPR(T, GetOcclusionBufferSize, () const, int), AS_CALL_THISCALL);
  8361. engine->RegisterObjectMethod(className, "int get_occlusionBufferSize() const", AS_METHODPR(T, GetOcclusionBufferSize, () const, int), AS_CALL_THISCALL);
  8362. // View* Renderer::GetPreparedView(Camera* camera)
  8363. engine->RegisterObjectMethod(className, "View@+ GetPreparedView(Camera@+)", AS_METHODPR(T, GetPreparedView, (Camera*), View*), AS_CALL_THISCALL);
  8364. // Geometry* Renderer::GetQuadGeometry()
  8365. engine->RegisterObjectMethod(className, "Geometry@+ GetQuadGeometry()", AS_METHODPR(T, GetQuadGeometry, (), Geometry*), AS_CALL_THISCALL);
  8366. // bool Renderer::GetReuseShadowMaps() const
  8367. engine->RegisterObjectMethod(className, "bool GetReuseShadowMaps() const", AS_METHODPR(T, GetReuseShadowMaps, () const, bool), AS_CALL_THISCALL);
  8368. engine->RegisterObjectMethod(className, "bool get_reuseShadowMaps() const", AS_METHODPR(T, GetReuseShadowMaps, () const, bool), AS_CALL_THISCALL);
  8369. // Texture* Renderer::GetScreenBuffer(int width, int height, unsigned format, int multiSample, bool autoResolve, bool cubemap, bool filtered, bool srgb, unsigned persistentKey = 0)
  8370. engine->RegisterObjectMethod(className, "Texture@+ GetScreenBuffer(int, int, uint, int, bool, bool, bool, bool, uint = 0)", AS_METHODPR(T, GetScreenBuffer, (int, int, unsigned, int, bool, bool, bool, bool, unsigned), Texture*), AS_CALL_THISCALL);
  8371. // Camera* Renderer::GetShadowCamera()
  8372. engine->RegisterObjectMethod(className, "Camera@+ GetShadowCamera()", AS_METHODPR(T, GetShadowCamera, (), Camera*), AS_CALL_THISCALL);
  8373. // Texture2D* Renderer::GetShadowMap(Light* light, Camera* camera, unsigned viewWidth, unsigned viewHeight)
  8374. engine->RegisterObjectMethod(className, "Texture2D@+ GetShadowMap(Light@+, Camera@+, uint, uint)", AS_METHODPR(T, GetShadowMap, (Light*, Camera*, unsigned, unsigned), Texture2D*), AS_CALL_THISCALL);
  8375. // int Renderer::GetShadowMapSize() const
  8376. engine->RegisterObjectMethod(className, "int GetShadowMapSize() const", AS_METHODPR(T, GetShadowMapSize, () const, int), AS_CALL_THISCALL);
  8377. engine->RegisterObjectMethod(className, "int get_shadowMapSize() const", AS_METHODPR(T, GetShadowMapSize, () const, int), AS_CALL_THISCALL);
  8378. // ShadowQuality Renderer::GetShadowQuality() const
  8379. engine->RegisterObjectMethod(className, "ShadowQuality GetShadowQuality() const", AS_METHODPR(T, GetShadowQuality, () const, ShadowQuality), AS_CALL_THISCALL);
  8380. engine->RegisterObjectMethod(className, "ShadowQuality get_shadowQuality() const", AS_METHODPR(T, GetShadowQuality, () const, ShadowQuality), AS_CALL_THISCALL);
  8381. // float Renderer::GetShadowSoftness() const
  8382. engine->RegisterObjectMethod(className, "float GetShadowSoftness() const", AS_METHODPR(T, GetShadowSoftness, () const, float), AS_CALL_THISCALL);
  8383. engine->RegisterObjectMethod(className, "float get_shadowSoftness() const", AS_METHODPR(T, GetShadowSoftness, () const, float), AS_CALL_THISCALL);
  8384. // bool Renderer::GetSpecularLighting() const
  8385. engine->RegisterObjectMethod(className, "bool GetSpecularLighting() const", AS_METHODPR(T, GetSpecularLighting, () const, bool), AS_CALL_THISCALL);
  8386. engine->RegisterObjectMethod(className, "bool get_specularLighting() const", AS_METHODPR(T, GetSpecularLighting, () const, bool), AS_CALL_THISCALL);
  8387. // int Renderer::GetTextureAnisotropy() const
  8388. engine->RegisterObjectMethod(className, "int GetTextureAnisotropy() const", AS_METHODPR(T, GetTextureAnisotropy, () const, int), AS_CALL_THISCALL);
  8389. engine->RegisterObjectMethod(className, "int get_textureAnisotropy() const", AS_METHODPR(T, GetTextureAnisotropy, () const, int), AS_CALL_THISCALL);
  8390. // TextureFilterMode Renderer::GetTextureFilterMode() const
  8391. engine->RegisterObjectMethod(className, "TextureFilterMode GetTextureFilterMode() const", AS_METHODPR(T, GetTextureFilterMode, () const, TextureFilterMode), AS_CALL_THISCALL);
  8392. engine->RegisterObjectMethod(className, "TextureFilterMode get_textureFilterMode() const", AS_METHODPR(T, GetTextureFilterMode, () const, TextureFilterMode), AS_CALL_THISCALL);
  8393. // MaterialQuality Renderer::GetTextureQuality() const
  8394. engine->RegisterObjectMethod(className, "MaterialQuality GetTextureQuality() const", AS_METHODPR(T, GetTextureQuality, () const, MaterialQuality), AS_CALL_THISCALL);
  8395. engine->RegisterObjectMethod(className, "MaterialQuality get_textureQuality() const", AS_METHODPR(T, GetTextureQuality, () const, MaterialQuality), AS_CALL_THISCALL);
  8396. // bool Renderer::GetThreadedOcclusion() const
  8397. engine->RegisterObjectMethod(className, "bool GetThreadedOcclusion() const", AS_METHODPR(T, GetThreadedOcclusion, () const, bool), AS_CALL_THISCALL);
  8398. engine->RegisterObjectMethod(className, "bool get_threadedOcclusion() const", AS_METHODPR(T, GetThreadedOcclusion, () const, bool), AS_CALL_THISCALL);
  8399. // Viewport* Renderer::GetViewport(unsigned index) const
  8400. engine->RegisterObjectMethod(className, "Viewport@+ GetViewport(uint) const", AS_METHODPR(T, GetViewport, (unsigned) const, Viewport*), AS_CALL_THISCALL);
  8401. engine->RegisterObjectMethod(className, "Viewport@+ get_viewports(uint) const", AS_METHODPR(T, GetViewport, (unsigned) const, Viewport*), AS_CALL_THISCALL);
  8402. // Viewport* Renderer::GetViewportForScene(Scene* scene, unsigned index) const
  8403. engine->RegisterObjectMethod(className, "Viewport@+ GetViewportForScene(Scene@+, uint) const", AS_METHODPR(T, GetViewportForScene, (Scene*, unsigned) const, Viewport*), AS_CALL_THISCALL);
  8404. // int Renderer::GetVSMMultiSample() const
  8405. engine->RegisterObjectMethod(className, "int GetVSMMultiSample() const", AS_METHODPR(T, GetVSMMultiSample, () const, int), AS_CALL_THISCALL);
  8406. engine->RegisterObjectMethod(className, "int get_vsmMultiSample() const", AS_METHODPR(T, GetVSMMultiSample, () const, int), AS_CALL_THISCALL);
  8407. // Vector2 Renderer::GetVSMShadowParameters() const
  8408. engine->RegisterObjectMethod(className, "Vector2 GetVSMShadowParameters() const", AS_METHODPR(T, GetVSMShadowParameters, () const, Vector2), AS_CALL_THISCALL);
  8409. engine->RegisterObjectMethod(className, "Vector2 get_vsmShadowParameters() const", AS_METHODPR(T, GetVSMShadowParameters, () const, Vector2), AS_CALL_THISCALL);
  8410. // void Renderer::OptimizeLightByScissor(Light* light, Camera* camera)
  8411. engine->RegisterObjectMethod(className, "void OptimizeLightByScissor(Light@+, Camera@+)", AS_METHODPR(T, OptimizeLightByScissor, (Light*, Camera*), void), AS_CALL_THISCALL);
  8412. // void Renderer::OptimizeLightByStencil(Light* light, Camera* camera)
  8413. engine->RegisterObjectMethod(className, "void OptimizeLightByStencil(Light@+, Camera@+)", AS_METHODPR(T, OptimizeLightByStencil, (Light*, Camera*), void), AS_CALL_THISCALL);
  8414. // void Renderer::QueueRenderSurface(RenderSurface* renderTarget)
  8415. engine->RegisterObjectMethod(className, "void QueueRenderSurface(RenderSurface@+)", AS_METHODPR(T, QueueRenderSurface, (RenderSurface*), void), AS_CALL_THISCALL);
  8416. // void Renderer::QueueViewport(RenderSurface* renderTarget, Viewport* viewport)
  8417. engine->RegisterObjectMethod(className, "void QueueViewport(RenderSurface@+, Viewport@+)", AS_METHODPR(T, QueueViewport, (RenderSurface*, Viewport*), void), AS_CALL_THISCALL);
  8418. // void Renderer::ReloadShaders()
  8419. engine->RegisterObjectMethod(className, "void ReloadShaders()", AS_METHODPR(T, ReloadShaders, (), void), AS_CALL_THISCALL);
  8420. // void Renderer::Render()
  8421. engine->RegisterObjectMethod(className, "void Render()", AS_METHODPR(T, Render, (), void), AS_CALL_THISCALL);
  8422. // bool Renderer::ResizeInstancingBuffer(unsigned numInstances)
  8423. engine->RegisterObjectMethod(className, "bool ResizeInstancingBuffer(uint)", AS_METHODPR(T, ResizeInstancingBuffer, (unsigned), bool), AS_CALL_THISCALL);
  8424. // void Renderer::SetBatchShaders(Batch& batch, Technique* tech, bool allowShadows, const BatchQueue& queue)
  8425. engine->RegisterObjectMethod(className, "void SetBatchShaders(Batch&, Technique@+, bool, const BatchQueue&in)", AS_METHODPR(T, SetBatchShaders, (Batch&, Technique*, bool, const BatchQueue&), void), AS_CALL_THISCALL);
  8426. // void Renderer::SetCullMode(CullMode mode, Camera* camera)
  8427. engine->RegisterObjectMethod(className, "void SetCullMode(CullMode, Camera@+)", AS_METHODPR(T, SetCullMode, (CullMode, Camera*), void), AS_CALL_THISCALL);
  8428. // void Renderer::SetDefaultRenderPath(RenderPath* renderPath)
  8429. engine->RegisterObjectMethod(className, "void SetDefaultRenderPath(RenderPath@+)", AS_METHODPR(T, SetDefaultRenderPath, (RenderPath*), void), AS_CALL_THISCALL);
  8430. engine->RegisterObjectMethod(className, "void set_defaultRenderPath(RenderPath@+)", AS_METHODPR(T, SetDefaultRenderPath, (RenderPath*), void), AS_CALL_THISCALL);
  8431. // void Renderer::SetDefaultRenderPath(XMLFile* xmlFile)
  8432. engine->RegisterObjectMethod(className, "void SetDefaultRenderPath(XMLFile@+)", AS_METHODPR(T, SetDefaultRenderPath, (XMLFile*), void), AS_CALL_THISCALL);
  8433. // void Renderer::SetDefaultTechnique(Technique* technique)
  8434. engine->RegisterObjectMethod(className, "void SetDefaultTechnique(Technique@+)", AS_METHODPR(T, SetDefaultTechnique, (Technique*), void), AS_CALL_THISCALL);
  8435. engine->RegisterObjectMethod(className, "void set_defaultTechnique(Technique@+)", AS_METHODPR(T, SetDefaultTechnique, (Technique*), void), AS_CALL_THISCALL);
  8436. // void Renderer::SetDrawShadows(bool enable)
  8437. engine->RegisterObjectMethod(className, "void SetDrawShadows(bool)", AS_METHODPR(T, SetDrawShadows, (bool), void), AS_CALL_THISCALL);
  8438. engine->RegisterObjectMethod(className, "void set_drawShadows(bool)", AS_METHODPR(T, SetDrawShadows, (bool), void), AS_CALL_THISCALL);
  8439. // void Renderer::SetDynamicInstancing(bool enable)
  8440. engine->RegisterObjectMethod(className, "void SetDynamicInstancing(bool)", AS_METHODPR(T, SetDynamicInstancing, (bool), void), AS_CALL_THISCALL);
  8441. engine->RegisterObjectMethod(className, "void set_dynamicInstancing(bool)", AS_METHODPR(T, SetDynamicInstancing, (bool), void), AS_CALL_THISCALL);
  8442. // void Renderer::SetHDRRendering(bool enable)
  8443. engine->RegisterObjectMethod(className, "void SetHDRRendering(bool)", AS_METHODPR(T, SetHDRRendering, (bool), void), AS_CALL_THISCALL);
  8444. engine->RegisterObjectMethod(className, "void set_hdrRendering(bool)", AS_METHODPR(T, SetHDRRendering, (bool), void), AS_CALL_THISCALL);
  8445. // void Renderer::SetLightVolumeBatchShaders(Batch& batch, Camera* camera, const String& vsName, const String& psName, const String& vsDefines, const String& psDefines)
  8446. engine->RegisterObjectMethod(className, "void SetLightVolumeBatchShaders(Batch&, Camera@+, const String&in, const String&in, const String&in, const String&in)", AS_METHODPR(T, SetLightVolumeBatchShaders, (Batch&, Camera*, const String&, const String&, const String&, const String&), void), AS_CALL_THISCALL);
  8447. // void Renderer::SetMaterialQuality(MaterialQuality quality)
  8448. engine->RegisterObjectMethod(className, "void SetMaterialQuality(MaterialQuality)", AS_METHODPR(T, SetMaterialQuality, (MaterialQuality), void), AS_CALL_THISCALL);
  8449. engine->RegisterObjectMethod(className, "void set_materialQuality(MaterialQuality)", AS_METHODPR(T, SetMaterialQuality, (MaterialQuality), void), AS_CALL_THISCALL);
  8450. // void Renderer::SetMaxOccluderTriangles(int triangles)
  8451. engine->RegisterObjectMethod(className, "void SetMaxOccluderTriangles(int)", AS_METHODPR(T, SetMaxOccluderTriangles, (int), void), AS_CALL_THISCALL);
  8452. engine->RegisterObjectMethod(className, "void set_maxOccluderTriangles(int)", AS_METHODPR(T, SetMaxOccluderTriangles, (int), void), AS_CALL_THISCALL);
  8453. // void Renderer::SetMaxShadowMaps(int shadowMaps)
  8454. engine->RegisterObjectMethod(className, "void SetMaxShadowMaps(int)", AS_METHODPR(T, SetMaxShadowMaps, (int), void), AS_CALL_THISCALL);
  8455. engine->RegisterObjectMethod(className, "void set_maxShadowMaps(int)", AS_METHODPR(T, SetMaxShadowMaps, (int), void), AS_CALL_THISCALL);
  8456. // void Renderer::SetMaxSortedInstances(int instances)
  8457. engine->RegisterObjectMethod(className, "void SetMaxSortedInstances(int)", AS_METHODPR(T, SetMaxSortedInstances, (int), void), AS_CALL_THISCALL);
  8458. engine->RegisterObjectMethod(className, "void set_maxSortedInstances(int)", AS_METHODPR(T, SetMaxSortedInstances, (int), void), AS_CALL_THISCALL);
  8459. // void Renderer::SetMinInstances(int instances)
  8460. engine->RegisterObjectMethod(className, "void SetMinInstances(int)", AS_METHODPR(T, SetMinInstances, (int), void), AS_CALL_THISCALL);
  8461. engine->RegisterObjectMethod(className, "void set_minInstances(int)", AS_METHODPR(T, SetMinInstances, (int), void), AS_CALL_THISCALL);
  8462. // void Renderer::SetMobileNormalOffsetMul(float mul)
  8463. engine->RegisterObjectMethod(className, "void SetMobileNormalOffsetMul(float)", AS_METHODPR(T, SetMobileNormalOffsetMul, (float), void), AS_CALL_THISCALL);
  8464. engine->RegisterObjectMethod(className, "void set_mobileNormalOffsetMul(float)", AS_METHODPR(T, SetMobileNormalOffsetMul, (float), void), AS_CALL_THISCALL);
  8465. // void Renderer::SetMobileShadowBiasAdd(float add)
  8466. engine->RegisterObjectMethod(className, "void SetMobileShadowBiasAdd(float)", AS_METHODPR(T, SetMobileShadowBiasAdd, (float), void), AS_CALL_THISCALL);
  8467. engine->RegisterObjectMethod(className, "void set_mobileShadowBiasAdd(float)", AS_METHODPR(T, SetMobileShadowBiasAdd, (float), void), AS_CALL_THISCALL);
  8468. // void Renderer::SetMobileShadowBiasMul(float mul)
  8469. engine->RegisterObjectMethod(className, "void SetMobileShadowBiasMul(float)", AS_METHODPR(T, SetMobileShadowBiasMul, (float), void), AS_CALL_THISCALL);
  8470. engine->RegisterObjectMethod(className, "void set_mobileShadowBiasMul(float)", AS_METHODPR(T, SetMobileShadowBiasMul, (float), void), AS_CALL_THISCALL);
  8471. // void Renderer::SetNumExtraInstancingBufferElements(int elements)
  8472. engine->RegisterObjectMethod(className, "void SetNumExtraInstancingBufferElements(int)", AS_METHODPR(T, SetNumExtraInstancingBufferElements, (int), void), AS_CALL_THISCALL);
  8473. engine->RegisterObjectMethod(className, "void set_numExtraInstancingBufferElements(int)", AS_METHODPR(T, SetNumExtraInstancingBufferElements, (int), void), AS_CALL_THISCALL);
  8474. // void Renderer::SetNumViewports(unsigned num)
  8475. engine->RegisterObjectMethod(className, "void SetNumViewports(uint)", AS_METHODPR(T, SetNumViewports, (unsigned), void), AS_CALL_THISCALL);
  8476. engine->RegisterObjectMethod(className, "void set_numViewports(uint)", AS_METHODPR(T, SetNumViewports, (unsigned), void), AS_CALL_THISCALL);
  8477. // void Renderer::SetOccluderSizeThreshold(float screenSize)
  8478. engine->RegisterObjectMethod(className, "void SetOccluderSizeThreshold(float)", AS_METHODPR(T, SetOccluderSizeThreshold, (float), void), AS_CALL_THISCALL);
  8479. engine->RegisterObjectMethod(className, "void set_occluderSizeThreshold(float)", AS_METHODPR(T, SetOccluderSizeThreshold, (float), void), AS_CALL_THISCALL);
  8480. // void Renderer::SetOcclusionBufferSize(int size)
  8481. engine->RegisterObjectMethod(className, "void SetOcclusionBufferSize(int)", AS_METHODPR(T, SetOcclusionBufferSize, (int), void), AS_CALL_THISCALL);
  8482. engine->RegisterObjectMethod(className, "void set_occlusionBufferSize(int)", AS_METHODPR(T, SetOcclusionBufferSize, (int), void), AS_CALL_THISCALL);
  8483. // void Renderer::SetReuseShadowMaps(bool enable)
  8484. engine->RegisterObjectMethod(className, "void SetReuseShadowMaps(bool)", AS_METHODPR(T, SetReuseShadowMaps, (bool), void), AS_CALL_THISCALL);
  8485. engine->RegisterObjectMethod(className, "void set_reuseShadowMaps(bool)", AS_METHODPR(T, SetReuseShadowMaps, (bool), void), AS_CALL_THISCALL);
  8486. // void Renderer::SetShadowMapSize(int size)
  8487. engine->RegisterObjectMethod(className, "void SetShadowMapSize(int)", AS_METHODPR(T, SetShadowMapSize, (int), void), AS_CALL_THISCALL);
  8488. engine->RegisterObjectMethod(className, "void set_shadowMapSize(int)", AS_METHODPR(T, SetShadowMapSize, (int), void), AS_CALL_THISCALL);
  8489. // void Renderer::SetShadowQuality(ShadowQuality quality)
  8490. engine->RegisterObjectMethod(className, "void SetShadowQuality(ShadowQuality)", AS_METHODPR(T, SetShadowQuality, (ShadowQuality), void), AS_CALL_THISCALL);
  8491. engine->RegisterObjectMethod(className, "void set_shadowQuality(ShadowQuality)", AS_METHODPR(T, SetShadowQuality, (ShadowQuality), void), AS_CALL_THISCALL);
  8492. // void Renderer::SetShadowSoftness(float shadowSoftness)
  8493. engine->RegisterObjectMethod(className, "void SetShadowSoftness(float)", AS_METHODPR(T, SetShadowSoftness, (float), void), AS_CALL_THISCALL);
  8494. engine->RegisterObjectMethod(className, "void set_shadowSoftness(float)", AS_METHODPR(T, SetShadowSoftness, (float), void), AS_CALL_THISCALL);
  8495. // void Renderer::SetSpecularLighting(bool enable)
  8496. engine->RegisterObjectMethod(className, "void SetSpecularLighting(bool)", AS_METHODPR(T, SetSpecularLighting, (bool), void), AS_CALL_THISCALL);
  8497. engine->RegisterObjectMethod(className, "void set_specularLighting(bool)", AS_METHODPR(T, SetSpecularLighting, (bool), void), AS_CALL_THISCALL);
  8498. // void Renderer::SetTextureAnisotropy(int level)
  8499. engine->RegisterObjectMethod(className, "void SetTextureAnisotropy(int)", AS_METHODPR(T, SetTextureAnisotropy, (int), void), AS_CALL_THISCALL);
  8500. engine->RegisterObjectMethod(className, "void set_textureAnisotropy(int)", AS_METHODPR(T, SetTextureAnisotropy, (int), void), AS_CALL_THISCALL);
  8501. // void Renderer::SetTextureFilterMode(TextureFilterMode mode)
  8502. engine->RegisterObjectMethod(className, "void SetTextureFilterMode(TextureFilterMode)", AS_METHODPR(T, SetTextureFilterMode, (TextureFilterMode), void), AS_CALL_THISCALL);
  8503. engine->RegisterObjectMethod(className, "void set_textureFilterMode(TextureFilterMode)", AS_METHODPR(T, SetTextureFilterMode, (TextureFilterMode), void), AS_CALL_THISCALL);
  8504. // void Renderer::SetTextureQuality(MaterialQuality quality)
  8505. engine->RegisterObjectMethod(className, "void SetTextureQuality(MaterialQuality)", AS_METHODPR(T, SetTextureQuality, (MaterialQuality), void), AS_CALL_THISCALL);
  8506. engine->RegisterObjectMethod(className, "void set_textureQuality(MaterialQuality)", AS_METHODPR(T, SetTextureQuality, (MaterialQuality), void), AS_CALL_THISCALL);
  8507. // void Renderer::SetThreadedOcclusion(bool enable)
  8508. engine->RegisterObjectMethod(className, "void SetThreadedOcclusion(bool)", AS_METHODPR(T, SetThreadedOcclusion, (bool), void), AS_CALL_THISCALL);
  8509. engine->RegisterObjectMethod(className, "void set_threadedOcclusion(bool)", AS_METHODPR(T, SetThreadedOcclusion, (bool), void), AS_CALL_THISCALL);
  8510. // void Renderer::SetViewport(unsigned index, Viewport* viewport)
  8511. engine->RegisterObjectMethod(className, "void SetViewport(uint, Viewport@+)", AS_METHODPR(T, SetViewport, (unsigned, Viewport*), void), AS_CALL_THISCALL);
  8512. engine->RegisterObjectMethod(className, "void set_viewports(uint, Viewport@+)", AS_METHODPR(T, SetViewport, (unsigned, Viewport*), void), AS_CALL_THISCALL);
  8513. // void Renderer::SetVSMMultiSample(int multiSample)
  8514. engine->RegisterObjectMethod(className, "void SetVSMMultiSample(int)", AS_METHODPR(T, SetVSMMultiSample, (int), void), AS_CALL_THISCALL);
  8515. engine->RegisterObjectMethod(className, "void set_vsmMultiSample(int)", AS_METHODPR(T, SetVSMMultiSample, (int), void), AS_CALL_THISCALL);
  8516. // void Renderer::SetVSMShadowParameters(float minVariance, float lightBleedingReduction)
  8517. engine->RegisterObjectMethod(className, "void SetVSMShadowParameters(float, float)", AS_METHODPR(T, SetVSMShadowParameters, (float, float), void), AS_CALL_THISCALL);
  8518. // void Renderer::StorePreparedView(View* view, Camera* camera)
  8519. engine->RegisterObjectMethod(className, "void StorePreparedView(View@+, Camera@+)", AS_METHODPR(T, StorePreparedView, (View*, Camera*), void), AS_CALL_THISCALL);
  8520. // void Renderer::Update(float timeStep)
  8521. engine->RegisterObjectMethod(className, "void Update(float)", AS_METHODPR(T, Update, (float), void), AS_CALL_THISCALL);
  8522. // static View* Renderer::GetActualView(View* view)
  8523. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("View@+ GetActualView(View@+)", AS_FUNCTIONPR(T::GetActualView, (View*), View*), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  8524. #ifdef REGISTER_MEMBERS_MANUAL_PART_Renderer
  8525. REGISTER_MEMBERS_MANUAL_PART_Renderer();
  8526. #endif
  8527. }
  8528. // class Resource | File: ../Resource/Resource.h
  8529. template <class T> void RegisterMembers_Resource(asIScriptEngine* engine, const char* className)
  8530. {
  8531. RegisterMembers_Object<T>(engine, className);
  8532. // virtual bool Resource::BeginLoad(Deserializer& source)
  8533. engine->RegisterObjectMethod(className, "bool BeginLoad(Deserializer&)", AS_METHODPR(T, BeginLoad, (Deserializer&), bool), AS_CALL_THISCALL);
  8534. // virtual bool Resource::EndLoad()
  8535. engine->RegisterObjectMethod(className, "bool EndLoad()", AS_METHODPR(T, EndLoad, (), bool), AS_CALL_THISCALL);
  8536. // AsyncLoadState Resource::GetAsyncLoadState() const
  8537. engine->RegisterObjectMethod(className, "AsyncLoadState GetAsyncLoadState() const", AS_METHODPR(T, GetAsyncLoadState, () const, AsyncLoadState), AS_CALL_THISCALL);
  8538. // unsigned Resource::GetMemoryUse() const
  8539. engine->RegisterObjectMethod(className, "uint GetMemoryUse() const", AS_METHODPR(T, GetMemoryUse, () const, unsigned), AS_CALL_THISCALL);
  8540. engine->RegisterObjectMethod(className, "uint get_memoryUse() const", AS_METHODPR(T, GetMemoryUse, () const, unsigned), AS_CALL_THISCALL);
  8541. // const String& Resource::GetName() const
  8542. engine->RegisterObjectMethod(className, "const String& GetName() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  8543. engine->RegisterObjectMethod(className, "const String& get_name() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  8544. // StringHash Resource::GetNameHash() const
  8545. engine->RegisterObjectMethod(className, "StringHash GetNameHash() const", AS_METHODPR(T, GetNameHash, () const, StringHash), AS_CALL_THISCALL);
  8546. // unsigned Resource::GetUseTimer()
  8547. engine->RegisterObjectMethod(className, "uint GetUseTimer()", AS_METHODPR(T, GetUseTimer, (), unsigned), AS_CALL_THISCALL);
  8548. engine->RegisterObjectMethod(className, "uint get_useTimer()", AS_METHODPR(T, GetUseTimer, (), unsigned), AS_CALL_THISCALL);
  8549. // bool Resource::Load(Deserializer& source)
  8550. engine->RegisterObjectMethod(className, "bool Load(Deserializer&)", AS_METHODPR(T, Load, (Deserializer&), bool), AS_CALL_THISCALL);
  8551. // bool Resource::LoadFile(const String& fileName)
  8552. engine->RegisterObjectMethod(className, "bool LoadFile(const String&in)", AS_METHODPR(T, LoadFile, (const String&), bool), AS_CALL_THISCALL);
  8553. engine->RegisterObjectMethod(className, "bool Load(const String&in)", AS_METHODPR(T, LoadFile, (const String&), bool), AS_CALL_THISCALL);
  8554. // void Resource::ResetUseTimer()
  8555. engine->RegisterObjectMethod(className, "void ResetUseTimer()", AS_METHODPR(T, ResetUseTimer, (), void), AS_CALL_THISCALL);
  8556. // virtual bool Resource::Save(Serializer& dest) const
  8557. engine->RegisterObjectMethod(className, "bool Save(Serializer&) const", AS_METHODPR(T, Save, (Serializer&) const, bool), AS_CALL_THISCALL);
  8558. // virtual bool Resource::SaveFile(const String& fileName) const
  8559. engine->RegisterObjectMethod(className, "bool SaveFile(const String&in) const", AS_METHODPR(T, SaveFile, (const String&) const, bool), AS_CALL_THISCALL);
  8560. engine->RegisterObjectMethod(className, "bool Save(const String&in) const", AS_METHODPR(T, SaveFile, (const String&) const, bool), AS_CALL_THISCALL);
  8561. // void Resource::SetAsyncLoadState(AsyncLoadState newState)
  8562. engine->RegisterObjectMethod(className, "void SetAsyncLoadState(AsyncLoadState)", AS_METHODPR(T, SetAsyncLoadState, (AsyncLoadState), void), AS_CALL_THISCALL);
  8563. // void Resource::SetMemoryUse(unsigned size)
  8564. engine->RegisterObjectMethod(className, "void SetMemoryUse(uint)", AS_METHODPR(T, SetMemoryUse, (unsigned), void), AS_CALL_THISCALL);
  8565. // void Resource::SetName(const String& name)
  8566. engine->RegisterObjectMethod(className, "void SetName(const String&in)", AS_METHODPR(T, SetName, (const String&), void), AS_CALL_THISCALL);
  8567. engine->RegisterObjectMethod(className, "void set_name(const String&in)", AS_METHODPR(T, SetName, (const String&), void), AS_CALL_THISCALL);
  8568. #ifdef REGISTER_MEMBERS_MANUAL_PART_Resource
  8569. REGISTER_MEMBERS_MANUAL_PART_Resource();
  8570. #endif
  8571. }
  8572. // SharedPtr<File> ResourceCache::GetFile(const String& name, bool sendEventOnFailure = true)
  8573. template <class T> File* ResourceCache_SharedPtrlesFilegre_GetFile_constspStringamp_bool_template(T* _ptr, const String& name, bool sendEventOnFailure)
  8574. {
  8575. SharedPtr<File> result = _ptr->GetFile(name, sendEventOnFailure);
  8576. return result.Detach();
  8577. }
  8578. // const Vector<SharedPtr<PackageFile>>& ResourceCache::GetPackageFiles() const
  8579. template <class T> CScriptArray* ResourceCache_constspVectorlesSharedPtrlesPackageFilegregreamp_GetPackageFiles_void_template(T* _ptr)
  8580. {
  8581. const Vector<SharedPtr<PackageFile>>& result = _ptr->GetPackageFiles();
  8582. return VectorToHandleArray(result, "Array<PackageFile@>");
  8583. }
  8584. // const Vector<String>& ResourceCache::GetResourceDirs() const
  8585. template <class T> CScriptArray* ResourceCache_constspVectorlesStringgreamp_GetResourceDirs_void_template(T* _ptr)
  8586. {
  8587. const Vector<String>& result = _ptr->GetResourceDirs();
  8588. return VectorToArray<String>(result, "Array<String>");
  8589. }
  8590. // SharedPtr<Resource> ResourceCache::GetTempResource(StringHash type, const String& name, bool sendEventOnFailure = true)
  8591. template <class T> Resource* ResourceCache_SharedPtrlesResourcegre_GetTempResource_StringHash_constspStringamp_bool_template(T* _ptr, StringHash type, const String& name, bool sendEventOnFailure)
  8592. {
  8593. SharedPtr<Resource> result = _ptr->GetTempResource(type, name, sendEventOnFailure);
  8594. return result.Detach();
  8595. }
  8596. // class ResourceCache | File: ../Resource/ResourceCache.h
  8597. template <class T> void RegisterMembers_ResourceCache(asIScriptEngine* engine, const char* className)
  8598. {
  8599. RegisterMembers_Object<T>(engine, className);
  8600. // void ResourceCache::AddResourceRouter(ResourceRouter* router, bool addAsFirst = false)
  8601. // Error: type "ResourceRouter" can not automatically bind bacause have @nobind mark
  8602. // const HashMap<StringHash, ResourceGroup>& ResourceCache::GetAllResources() const
  8603. // Error: type "const HashMap<StringHash, ResourceGroup>&" can not automatically bind
  8604. // ResourceRouter* ResourceCache::GetResourceRouter(unsigned index) const
  8605. // Error: type "ResourceRouter" can not automatically bind bacause have @nobind mark
  8606. // void ResourceCache::GetResources(PODVector<Resource*>& result, StringHash type) const
  8607. // Error: type "PODVector<Resource*>&" can not automatically bind
  8608. // void ResourceCache::RemoveResourceRouter(ResourceRouter* router)
  8609. // Error: type "ResourceRouter" can not automatically bind bacause have @nobind mark
  8610. // bool ResourceCache::AddManualResource(Resource* resource)
  8611. engine->RegisterObjectMethod(className, "bool AddManualResource(Resource@+)", AS_METHODPR(T, AddManualResource, (Resource*), bool), AS_CALL_THISCALL);
  8612. // bool ResourceCache::AddPackageFile(PackageFile* package, unsigned priority = PRIORITY_LAST)
  8613. engine->RegisterObjectMethod(className, "bool AddPackageFile(PackageFile@+, uint = PRIORITY_LAST)", AS_METHODPR(T, AddPackageFile, (PackageFile*, unsigned), bool), AS_CALL_THISCALL);
  8614. // bool ResourceCache::AddPackageFile(const String& fileName, unsigned priority = PRIORITY_LAST)
  8615. engine->RegisterObjectMethod(className, "bool AddPackageFile(const String&in, uint = PRIORITY_LAST)", AS_METHODPR(T, AddPackageFile, (const String&, unsigned), bool), AS_CALL_THISCALL);
  8616. // bool ResourceCache::AddResourceDir(const String& pathName, unsigned priority = PRIORITY_LAST)
  8617. engine->RegisterObjectMethod(className, "bool AddResourceDir(const String&in, uint = PRIORITY_LAST)", AS_METHODPR(T, AddResourceDir, (const String&, unsigned), bool), AS_CALL_THISCALL);
  8618. // bool ResourceCache::BackgroundLoadResource(StringHash type, const String& name, bool sendEventOnFailure = true, Resource* caller = nullptr)
  8619. engine->RegisterObjectMethod(className, "bool BackgroundLoadResource(StringHash, const String&in, bool = true, Resource@+ = null)", AS_METHODPR(T, BackgroundLoadResource, (StringHash, const String&, bool, Resource*), bool), AS_CALL_THISCALL);
  8620. // bool ResourceCache::Exists(const String& name) const
  8621. engine->RegisterObjectMethod(className, "bool Exists(const String&in) const", AS_METHODPR(T, Exists, (const String&) const, bool), AS_CALL_THISCALL);
  8622. // bool ResourceCache::GetAutoReloadResources() const
  8623. engine->RegisterObjectMethod(className, "bool GetAutoReloadResources() const", AS_METHODPR(T, GetAutoReloadResources, () const, bool), AS_CALL_THISCALL);
  8624. engine->RegisterObjectMethod(className, "bool get_autoReloadResources() const", AS_METHODPR(T, GetAutoReloadResources, () const, bool), AS_CALL_THISCALL);
  8625. // Resource* ResourceCache::GetExistingResource(StringHash type, const String& name)
  8626. engine->RegisterObjectMethod(className, "Resource@+ GetExistingResource(StringHash, const String&in)", AS_METHODPR(T, GetExistingResource, (StringHash, const String&), Resource*), AS_CALL_THISCALL);
  8627. // SharedPtr<File> ResourceCache::GetFile(const String& name, bool sendEventOnFailure = true)
  8628. engine->RegisterObjectMethod(className, "File@+ GetFile(const String&in, bool = true)", AS_FUNCTION_OBJFIRST(ResourceCache_SharedPtrlesFilegre_GetFile_constspStringamp_bool_template<ResourceCache>), AS_CALL_CDECL_OBJFIRST);
  8629. // int ResourceCache::GetFinishBackgroundResourcesMs() const
  8630. engine->RegisterObjectMethod(className, "int GetFinishBackgroundResourcesMs() const", AS_METHODPR(T, GetFinishBackgroundResourcesMs, () const, int), AS_CALL_THISCALL);
  8631. engine->RegisterObjectMethod(className, "int get_finishBackgroundResourcesMs() const", AS_METHODPR(T, GetFinishBackgroundResourcesMs, () const, int), AS_CALL_THISCALL);
  8632. // unsigned long long ResourceCache::GetMemoryBudget(StringHash type) const
  8633. engine->RegisterObjectMethod(className, "uint64 GetMemoryBudget(StringHash) const", AS_METHODPR(T, GetMemoryBudget, (StringHash) const, unsigned long long), AS_CALL_THISCALL);
  8634. engine->RegisterObjectMethod(className, "uint64 get_memoryBudget(StringHash) const", AS_METHODPR(T, GetMemoryBudget, (StringHash) const, unsigned long long), AS_CALL_THISCALL);
  8635. // unsigned long long ResourceCache::GetMemoryUse(StringHash type) const
  8636. engine->RegisterObjectMethod(className, "uint64 GetMemoryUse(StringHash) const", AS_METHODPR(T, GetMemoryUse, (StringHash) const, unsigned long long), AS_CALL_THISCALL);
  8637. engine->RegisterObjectMethod(className, "uint64 get_memoryUse(StringHash) const", AS_METHODPR(T, GetMemoryUse, (StringHash) const, unsigned long long), AS_CALL_THISCALL);
  8638. // unsigned ResourceCache::GetNumBackgroundLoadResources() const
  8639. engine->RegisterObjectMethod(className, "uint GetNumBackgroundLoadResources() const", AS_METHODPR(T, GetNumBackgroundLoadResources, () const, unsigned), AS_CALL_THISCALL);
  8640. engine->RegisterObjectMethod(className, "uint get_numBackgroundLoadResources() const", AS_METHODPR(T, GetNumBackgroundLoadResources, () const, unsigned), AS_CALL_THISCALL);
  8641. // const Vector<SharedPtr<PackageFile>>& ResourceCache::GetPackageFiles() const
  8642. engine->RegisterObjectMethod(className, "Array<PackageFile@>@ GetPackageFiles() const", AS_FUNCTION_OBJFIRST(ResourceCache_constspVectorlesSharedPtrlesPackageFilegregreamp_GetPackageFiles_void_template<ResourceCache>), AS_CALL_CDECL_OBJFIRST);
  8643. engine->RegisterObjectMethod(className, "Array<PackageFile@>@ get_packageFiles() const", AS_FUNCTION_OBJFIRST(ResourceCache_constspVectorlesSharedPtrlesPackageFilegregreamp_GetPackageFiles_void_template<ResourceCache>), AS_CALL_CDECL_OBJFIRST);
  8644. // String ResourceCache::GetPreferredResourceDir(const String& path) const
  8645. engine->RegisterObjectMethod(className, "String GetPreferredResourceDir(const String&in) const", AS_METHODPR(T, GetPreferredResourceDir, (const String&) const, String), AS_CALL_THISCALL);
  8646. // Resource* ResourceCache::GetResource(StringHash type, const String& name, bool sendEventOnFailure = true)
  8647. engine->RegisterObjectMethod(className, "Resource@+ GetResource(StringHash, const String&in, bool = true)", AS_METHODPR(T, GetResource, (StringHash, const String&, bool), Resource*), AS_CALL_THISCALL);
  8648. // const Vector<String>& ResourceCache::GetResourceDirs() const
  8649. engine->RegisterObjectMethod(className, "Array<String>@ GetResourceDirs() const", AS_FUNCTION_OBJFIRST(ResourceCache_constspVectorlesStringgreamp_GetResourceDirs_void_template<ResourceCache>), AS_CALL_CDECL_OBJFIRST);
  8650. engine->RegisterObjectMethod(className, "Array<String>@ get_resourceDirs() const", AS_FUNCTION_OBJFIRST(ResourceCache_constspVectorlesStringgreamp_GetResourceDirs_void_template<ResourceCache>), AS_CALL_CDECL_OBJFIRST);
  8651. // String ResourceCache::GetResourceFileName(const String& name) const
  8652. engine->RegisterObjectMethod(className, "String GetResourceFileName(const String&in) const", AS_METHODPR(T, GetResourceFileName, (const String&) const, String), AS_CALL_THISCALL);
  8653. // bool ResourceCache::GetReturnFailedResources() const
  8654. engine->RegisterObjectMethod(className, "bool GetReturnFailedResources() const", AS_METHODPR(T, GetReturnFailedResources, () const, bool), AS_CALL_THISCALL);
  8655. engine->RegisterObjectMethod(className, "bool get_returnFailedResources() const", AS_METHODPR(T, GetReturnFailedResources, () const, bool), AS_CALL_THISCALL);
  8656. // bool ResourceCache::GetSearchPackagesFirst() const
  8657. engine->RegisterObjectMethod(className, "bool GetSearchPackagesFirst() const", AS_METHODPR(T, GetSearchPackagesFirst, () const, bool), AS_CALL_THISCALL);
  8658. engine->RegisterObjectMethod(className, "bool get_searchPackagesFirst() const", AS_METHODPR(T, GetSearchPackagesFirst, () const, bool), AS_CALL_THISCALL);
  8659. // SharedPtr<Resource> ResourceCache::GetTempResource(StringHash type, const String& name, bool sendEventOnFailure = true)
  8660. engine->RegisterObjectMethod(className, "Resource@+ GetTempResource(StringHash, const String&in, bool = true)", AS_FUNCTION_OBJFIRST(ResourceCache_SharedPtrlesResourcegre_GetTempResource_StringHash_constspStringamp_bool_template<ResourceCache>), AS_CALL_CDECL_OBJFIRST);
  8661. // unsigned long long ResourceCache::GetTotalMemoryUse() const
  8662. engine->RegisterObjectMethod(className, "uint64 GetTotalMemoryUse() const", AS_METHODPR(T, GetTotalMemoryUse, () const, unsigned long long), AS_CALL_THISCALL);
  8663. engine->RegisterObjectMethod(className, "uint64 get_totalMemoryUse() const", AS_METHODPR(T, GetTotalMemoryUse, () const, unsigned long long), AS_CALL_THISCALL);
  8664. // String ResourceCache::PrintMemoryUsage() const
  8665. engine->RegisterObjectMethod(className, "String PrintMemoryUsage() const", AS_METHODPR(T, PrintMemoryUsage, () const, String), AS_CALL_THISCALL);
  8666. // void ResourceCache::ReleaseAllResources(bool force = false)
  8667. engine->RegisterObjectMethod(className, "void ReleaseAllResources(bool = false)", AS_METHODPR(T, ReleaseAllResources, (bool), void), AS_CALL_THISCALL);
  8668. // void ResourceCache::ReleaseResource(StringHash type, const String& name, bool force = false)
  8669. engine->RegisterObjectMethod(className, "void ReleaseResource(StringHash, const String&in, bool = false)", AS_METHODPR(T, ReleaseResource, (StringHash, const String&, bool), void), AS_CALL_THISCALL);
  8670. // void ResourceCache::ReleaseResources(StringHash type, bool force = false)
  8671. engine->RegisterObjectMethod(className, "void ReleaseResources(StringHash, bool = false)", AS_METHODPR(T, ReleaseResources, (StringHash, bool), void), AS_CALL_THISCALL);
  8672. // void ResourceCache::ReleaseResources(StringHash type, const String& partialName, bool force = false)
  8673. engine->RegisterObjectMethod(className, "void ReleaseResources(StringHash, const String&in, bool = false)", AS_METHODPR(T, ReleaseResources, (StringHash, const String&, bool), void), AS_CALL_THISCALL);
  8674. // void ResourceCache::ReleaseResources(const String& partialName, bool force = false)
  8675. engine->RegisterObjectMethod(className, "void ReleaseResources(const String&in, bool = false)", AS_METHODPR(T, ReleaseResources, (const String&, bool), void), AS_CALL_THISCALL);
  8676. // bool ResourceCache::ReloadResource(Resource* resource)
  8677. engine->RegisterObjectMethod(className, "bool ReloadResource(Resource@+)", AS_METHODPR(T, ReloadResource, (Resource*), bool), AS_CALL_THISCALL);
  8678. // void ResourceCache::ReloadResourceWithDependencies(const String& fileName)
  8679. engine->RegisterObjectMethod(className, "void ReloadResourceWithDependencies(const String&in)", AS_METHODPR(T, ReloadResourceWithDependencies, (const String&), void), AS_CALL_THISCALL);
  8680. // void ResourceCache::RemovePackageFile(PackageFile* package, bool releaseResources = true, bool forceRelease = false)
  8681. engine->RegisterObjectMethod(className, "void RemovePackageFile(PackageFile@+, bool = true, bool = false)", AS_METHODPR(T, RemovePackageFile, (PackageFile*, bool, bool), void), AS_CALL_THISCALL);
  8682. // void ResourceCache::RemovePackageFile(const String& fileName, bool releaseResources = true, bool forceRelease = false)
  8683. engine->RegisterObjectMethod(className, "void RemovePackageFile(const String&in, bool = true, bool = false)", AS_METHODPR(T, RemovePackageFile, (const String&, bool, bool), void), AS_CALL_THISCALL);
  8684. // void ResourceCache::RemoveResourceDir(const String& pathName)
  8685. engine->RegisterObjectMethod(className, "void RemoveResourceDir(const String&in)", AS_METHODPR(T, RemoveResourceDir, (const String&), void), AS_CALL_THISCALL);
  8686. // void ResourceCache::ResetDependencies(Resource* resource)
  8687. engine->RegisterObjectMethod(className, "void ResetDependencies(Resource@+)", AS_METHODPR(T, ResetDependencies, (Resource*), void), AS_CALL_THISCALL);
  8688. // String ResourceCache::SanitateResourceDirName(const String& name) const
  8689. engine->RegisterObjectMethod(className, "String SanitateResourceDirName(const String&in) const", AS_METHODPR(T, SanitateResourceDirName, (const String&) const, String), AS_CALL_THISCALL);
  8690. // String ResourceCache::SanitateResourceName(const String& name) const
  8691. engine->RegisterObjectMethod(className, "String SanitateResourceName(const String&in) const", AS_METHODPR(T, SanitateResourceName, (const String&) const, String), AS_CALL_THISCALL);
  8692. // void ResourceCache::SetAutoReloadResources(bool enable)
  8693. engine->RegisterObjectMethod(className, "void SetAutoReloadResources(bool)", AS_METHODPR(T, SetAutoReloadResources, (bool), void), AS_CALL_THISCALL);
  8694. engine->RegisterObjectMethod(className, "void set_autoReloadResources(bool)", AS_METHODPR(T, SetAutoReloadResources, (bool), void), AS_CALL_THISCALL);
  8695. // void ResourceCache::SetFinishBackgroundResourcesMs(int ms)
  8696. engine->RegisterObjectMethod(className, "void SetFinishBackgroundResourcesMs(int)", AS_METHODPR(T, SetFinishBackgroundResourcesMs, (int), void), AS_CALL_THISCALL);
  8697. engine->RegisterObjectMethod(className, "void set_finishBackgroundResourcesMs(int)", AS_METHODPR(T, SetFinishBackgroundResourcesMs, (int), void), AS_CALL_THISCALL);
  8698. // void ResourceCache::SetMemoryBudget(StringHash type, unsigned long long budget)
  8699. engine->RegisterObjectMethod(className, "void SetMemoryBudget(StringHash, uint64)", AS_METHODPR(T, SetMemoryBudget, (StringHash, unsigned long long), void), AS_CALL_THISCALL);
  8700. engine->RegisterObjectMethod(className, "void set_memoryBudget(StringHash, uint64)", AS_METHODPR(T, SetMemoryBudget, (StringHash, unsigned long long), void), AS_CALL_THISCALL);
  8701. // void ResourceCache::SetReturnFailedResources(bool enable)
  8702. engine->RegisterObjectMethod(className, "void SetReturnFailedResources(bool)", AS_METHODPR(T, SetReturnFailedResources, (bool), void), AS_CALL_THISCALL);
  8703. engine->RegisterObjectMethod(className, "void set_returnFailedResources(bool)", AS_METHODPR(T, SetReturnFailedResources, (bool), void), AS_CALL_THISCALL);
  8704. // void ResourceCache::SetSearchPackagesFirst(bool value)
  8705. engine->RegisterObjectMethod(className, "void SetSearchPackagesFirst(bool)", AS_METHODPR(T, SetSearchPackagesFirst, (bool), void), AS_CALL_THISCALL);
  8706. engine->RegisterObjectMethod(className, "void set_searchPackagesFirst(bool)", AS_METHODPR(T, SetSearchPackagesFirst, (bool), void), AS_CALL_THISCALL);
  8707. // void ResourceCache::StoreResourceDependency(Resource* resource, const String& dependency)
  8708. engine->RegisterObjectMethod(className, "void StoreResourceDependency(Resource@+, const String&in)", AS_METHODPR(T, StoreResourceDependency, (Resource*, const String&), void), AS_CALL_THISCALL);
  8709. // template <class T> bool ResourceCache::BackgroundLoadResource(const String& name, bool sendEventOnFailure = true, Resource* caller = nullptr)
  8710. // Not registered because template
  8711. // template <class T> T* ResourceCache::GetExistingResource(const String& name)
  8712. // Not registered because template
  8713. // template <class T> T* ResourceCache::GetResource(const String& name, bool sendEventOnFailure = true)
  8714. // Not registered because template
  8715. // template <class T> void ResourceCache::GetResources(PODVector<T*>& result) const
  8716. // Not registered because template
  8717. // template <class T> SharedPtr<T> ResourceCache::GetTempResource(const String& name, bool sendEventOnFailure = true)
  8718. // Not registered because template
  8719. // template <class T> void ResourceCache::ReleaseResource(const String& name, bool force = false)
  8720. // Not registered because template
  8721. #ifdef REGISTER_MEMBERS_MANUAL_PART_ResourceCache
  8722. REGISTER_MEMBERS_MANUAL_PART_ResourceCache();
  8723. #endif
  8724. }
  8725. // class ResourceRouter | File: ../Resource/ResourceCache.h
  8726. template <class T> void RegisterMembers_ResourceRouter(asIScriptEngine* engine, const char* className)
  8727. {
  8728. RegisterMembers_Object<T>(engine, className);
  8729. // virtual void ResourceRouter::Route(String& name, ResourceRequest requestType) = 0
  8730. engine->RegisterObjectMethod(className, "void Route(String&, ResourceRequest)", AS_METHODPR(T, Route, (String&, ResourceRequest), void), AS_CALL_THISCALL);
  8731. #ifdef REGISTER_MEMBERS_MANUAL_PART_ResourceRouter
  8732. REGISTER_MEMBERS_MANUAL_PART_ResourceRouter();
  8733. #endif
  8734. }
  8735. // class Serializable | File: ../Scene/Serializable.h
  8736. template <class T> void RegisterMembers_Serializable(asIScriptEngine* engine, const char* className)
  8737. {
  8738. RegisterMembers_Object<T>(engine, className);
  8739. // virtual const Vector<AttributeInfo>* Serializable::GetAttributes() const
  8740. // Error: type "const Vector<AttributeInfo>*" can not automatically bind
  8741. // virtual const Vector<AttributeInfo>* Serializable::GetNetworkAttributes() const
  8742. // Error: type "const Vector<AttributeInfo>*" can not automatically bind
  8743. // NetworkState* Serializable::GetNetworkState() const
  8744. // Error: type "NetworkState*" can not automatically bind
  8745. // void Serializable::AllocateNetworkState()
  8746. engine->RegisterObjectMethod(className, "void AllocateNetworkState()", AS_METHODPR(T, AllocateNetworkState, (), void), AS_CALL_THISCALL);
  8747. // virtual void Serializable::ApplyAttributes()
  8748. engine->RegisterObjectMethod(className, "void ApplyAttributes()", AS_METHODPR(T, ApplyAttributes, (), void), AS_CALL_THISCALL);
  8749. // Variant Serializable::GetAttribute(unsigned index) const
  8750. engine->RegisterObjectMethod(className, "Variant GetAttribute(uint) const", AS_METHODPR(T, GetAttribute, (unsigned) const, Variant), AS_CALL_THISCALL);
  8751. engine->RegisterObjectMethod(className, "Variant get_attributes(uint) const", AS_METHODPR(T, GetAttribute, (unsigned) const, Variant), AS_CALL_THISCALL);
  8752. // Variant Serializable::GetAttribute(const String& name) const
  8753. engine->RegisterObjectMethod(className, "Variant GetAttribute(const String&in) const", AS_METHODPR(T, GetAttribute, (const String&) const, Variant), AS_CALL_THISCALL);
  8754. // Variant Serializable::GetAttributeDefault(unsigned index) const
  8755. engine->RegisterObjectMethod(className, "Variant GetAttributeDefault(uint) const", AS_METHODPR(T, GetAttributeDefault, (unsigned) const, Variant), AS_CALL_THISCALL);
  8756. engine->RegisterObjectMethod(className, "Variant get_attributeDefaults(uint) const", AS_METHODPR(T, GetAttributeDefault, (unsigned) const, Variant), AS_CALL_THISCALL);
  8757. // Variant Serializable::GetAttributeDefault(const String& name) const
  8758. engine->RegisterObjectMethod(className, "Variant GetAttributeDefault(const String&in) const", AS_METHODPR(T, GetAttributeDefault, (const String&) const, Variant), AS_CALL_THISCALL);
  8759. // bool Serializable::GetInterceptNetworkUpdate(const String& attributeName) const
  8760. engine->RegisterObjectMethod(className, "bool GetInterceptNetworkUpdate(const String&in) const", AS_METHODPR(T, GetInterceptNetworkUpdate, (const String&) const, bool), AS_CALL_THISCALL);
  8761. // unsigned Serializable::GetNumAttributes() const
  8762. engine->RegisterObjectMethod(className, "uint GetNumAttributes() const", AS_METHODPR(T, GetNumAttributes, () const, unsigned), AS_CALL_THISCALL);
  8763. engine->RegisterObjectMethod(className, "uint get_numAttributes() const", AS_METHODPR(T, GetNumAttributes, () const, unsigned), AS_CALL_THISCALL);
  8764. // unsigned Serializable::GetNumNetworkAttributes() const
  8765. engine->RegisterObjectMethod(className, "uint GetNumNetworkAttributes() const", AS_METHODPR(T, GetNumNetworkAttributes, () const, unsigned), AS_CALL_THISCALL);
  8766. // bool Serializable::IsTemporary() const
  8767. engine->RegisterObjectMethod(className, "bool IsTemporary() const", AS_METHODPR(T, IsTemporary, () const, bool), AS_CALL_THISCALL);
  8768. engine->RegisterObjectMethod(className, "bool get_temporary() const", AS_METHODPR(T, IsTemporary, () const, bool), AS_CALL_THISCALL);
  8769. // virtual bool Serializable::Load(Deserializer& source)
  8770. engine->RegisterObjectMethod(className, "bool Load(Deserializer&)", AS_METHODPR(T, Load, (Deserializer&), bool), AS_CALL_THISCALL);
  8771. // virtual bool Serializable::LoadJSON(const JSONValue& source)
  8772. engine->RegisterObjectMethod(className, "bool LoadJSON(const JSONValue&in)", AS_METHODPR(T, LoadJSON, (const JSONValue&), bool), AS_CALL_THISCALL);
  8773. // virtual bool Serializable::LoadXML(const XMLElement& source)
  8774. engine->RegisterObjectMethod(className, "bool LoadXML(const XMLElement&in)", AS_METHODPR(T, LoadXML, (const XMLElement&), bool), AS_CALL_THISCALL);
  8775. // virtual void Serializable::MarkNetworkUpdate()
  8776. engine->RegisterObjectMethod(className, "void MarkNetworkUpdate()", AS_METHODPR(T, MarkNetworkUpdate, (), void), AS_CALL_THISCALL);
  8777. // virtual void Serializable::OnGetAttribute(const AttributeInfo& attr, Variant& dest) const
  8778. engine->RegisterObjectMethod(className, "void OnGetAttribute(const AttributeInfo&in, Variant&) const", AS_METHODPR(T, OnGetAttribute, (const AttributeInfo&, Variant&) const, void), AS_CALL_THISCALL);
  8779. // virtual void Serializable::OnSetAttribute(const AttributeInfo& attr, const Variant& src)
  8780. engine->RegisterObjectMethod(className, "void OnSetAttribute(const AttributeInfo&in, const Variant&in)", AS_METHODPR(T, OnSetAttribute, (const AttributeInfo&, const Variant&), void), AS_CALL_THISCALL);
  8781. // bool Serializable::ReadDeltaUpdate(Deserializer& source)
  8782. engine->RegisterObjectMethod(className, "bool ReadDeltaUpdate(Deserializer&)", AS_METHODPR(T, ReadDeltaUpdate, (Deserializer&), bool), AS_CALL_THISCALL);
  8783. // bool Serializable::ReadLatestDataUpdate(Deserializer& source)
  8784. engine->RegisterObjectMethod(className, "bool ReadLatestDataUpdate(Deserializer&)", AS_METHODPR(T, ReadLatestDataUpdate, (Deserializer&), bool), AS_CALL_THISCALL);
  8785. // void Serializable::RemoveInstanceDefault()
  8786. engine->RegisterObjectMethod(className, "void RemoveInstanceDefault()", AS_METHODPR(T, RemoveInstanceDefault, (), void), AS_CALL_THISCALL);
  8787. // void Serializable::ResetToDefault()
  8788. engine->RegisterObjectMethod(className, "void ResetToDefault()", AS_METHODPR(T, ResetToDefault, (), void), AS_CALL_THISCALL);
  8789. // virtual bool Serializable::Save(Serializer& dest) const
  8790. engine->RegisterObjectMethod(className, "bool Save(Serializer&) const", AS_METHODPR(T, Save, (Serializer&) const, bool), AS_CALL_THISCALL);
  8791. // virtual bool Serializable::SaveDefaultAttributes() const
  8792. engine->RegisterObjectMethod(className, "bool SaveDefaultAttributes() const", AS_METHODPR(T, SaveDefaultAttributes, () const, bool), AS_CALL_THISCALL);
  8793. // virtual bool Serializable::SaveJSON(JSONValue& dest) const
  8794. engine->RegisterObjectMethod(className, "bool SaveJSON(JSONValue&) const", AS_METHODPR(T, SaveJSON, (JSONValue&) const, bool), AS_CALL_THISCALL);
  8795. // virtual bool Serializable::SaveXML(XMLElement& dest) const
  8796. engine->RegisterObjectMethod(className, "bool SaveXML(XMLElement&) const", AS_METHODPR(T, SaveXML, (XMLElement&) const, bool), AS_CALL_THISCALL);
  8797. // bool Serializable::SetAttribute(unsigned index, const Variant& value)
  8798. engine->RegisterObjectMethod(className, "bool SetAttribute(uint, const Variant&in)", AS_METHODPR(T, SetAttribute, (unsigned, const Variant&), bool), AS_CALL_THISCALL);
  8799. engine->RegisterObjectMethod(className, "bool set_attributes(uint, const Variant&in)", AS_METHODPR(T, SetAttribute, (unsigned, const Variant&), bool), AS_CALL_THISCALL);
  8800. // bool Serializable::SetAttribute(const String& name, const Variant& value)
  8801. engine->RegisterObjectMethod(className, "bool SetAttribute(const String&in, const Variant&in)", AS_METHODPR(T, SetAttribute, (const String&, const Variant&), bool), AS_CALL_THISCALL);
  8802. // void Serializable::SetInstanceDefault(bool enable)
  8803. engine->RegisterObjectMethod(className, "void SetInstanceDefault(bool)", AS_METHODPR(T, SetInstanceDefault, (bool), void), AS_CALL_THISCALL);
  8804. // void Serializable::SetInterceptNetworkUpdate(const String& attributeName, bool enable)
  8805. engine->RegisterObjectMethod(className, "void SetInterceptNetworkUpdate(const String&in, bool)", AS_METHODPR(T, SetInterceptNetworkUpdate, (const String&, bool), void), AS_CALL_THISCALL);
  8806. // void Serializable::SetTemporary(bool enable)
  8807. engine->RegisterObjectMethod(className, "void SetTemporary(bool)", AS_METHODPR(T, SetTemporary, (bool), void), AS_CALL_THISCALL);
  8808. engine->RegisterObjectMethod(className, "void set_temporary(bool)", AS_METHODPR(T, SetTemporary, (bool), void), AS_CALL_THISCALL);
  8809. // void Serializable::WriteDeltaUpdate(Serializer& dest, const DirtyBits& attributeBits, unsigned char timeStamp)
  8810. engine->RegisterObjectMethod(className, "void WriteDeltaUpdate(Serializer&, const DirtyBits&in, uint8)", AS_METHODPR(T, WriteDeltaUpdate, (Serializer&, const DirtyBits&, unsigned char), void), AS_CALL_THISCALL);
  8811. // void Serializable::WriteInitialDeltaUpdate(Serializer& dest, unsigned char timeStamp)
  8812. engine->RegisterObjectMethod(className, "void WriteInitialDeltaUpdate(Serializer&, uint8)", AS_METHODPR(T, WriteInitialDeltaUpdate, (Serializer&, unsigned char), void), AS_CALL_THISCALL);
  8813. // void Serializable::WriteLatestDataUpdate(Serializer& dest, unsigned char timeStamp)
  8814. engine->RegisterObjectMethod(className, "void WriteLatestDataUpdate(Serializer&, uint8)", AS_METHODPR(T, WriteLatestDataUpdate, (Serializer&, unsigned char), void), AS_CALL_THISCALL);
  8815. #ifdef REGISTER_MEMBERS_MANUAL_PART_Serializable
  8816. REGISTER_MEMBERS_MANUAL_PART_Serializable();
  8817. #endif
  8818. }
  8819. // class ShaderParameterAnimationInfo | File: ../Graphics/Material.h
  8820. template <class T> void RegisterMembers_ShaderParameterAnimationInfo(asIScriptEngine* engine, const char* className)
  8821. {
  8822. RegisterMembers_ValueAnimationInfo<T>(engine, className);
  8823. // const String& ShaderParameterAnimationInfo::GetName() const
  8824. engine->RegisterObjectMethod(className, "const String& GetName() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  8825. #ifdef REGISTER_MEMBERS_MANUAL_PART_ShaderParameterAnimationInfo
  8826. REGISTER_MEMBERS_MANUAL_PART_ShaderParameterAnimationInfo();
  8827. #endif
  8828. }
  8829. // class ShaderPrecache | File: ../Graphics/ShaderPrecache.h
  8830. template <class T> void RegisterMembers_ShaderPrecache(asIScriptEngine* engine, const char* className)
  8831. {
  8832. RegisterMembers_Object<T>(engine, className);
  8833. // void ShaderPrecache::StoreShaders(ShaderVariation* vs, ShaderVariation* ps)
  8834. engine->RegisterObjectMethod(className, "void StoreShaders(ShaderVariation@+, ShaderVariation@+)", AS_METHODPR(T, StoreShaders, (ShaderVariation*, ShaderVariation*), void), AS_CALL_THISCALL);
  8835. // static void ShaderPrecache::LoadShaders(Graphics* graphics, Deserializer& source)
  8836. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("void LoadShaders(Graphics@+, Deserializer&)", AS_FUNCTIONPR(T::LoadShaders, (Graphics*, Deserializer&), void), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  8837. #ifdef REGISTER_MEMBERS_MANUAL_PART_ShaderPrecache
  8838. REGISTER_MEMBERS_MANUAL_PART_ShaderPrecache();
  8839. #endif
  8840. }
  8841. // class Time | File: ../Core/Timer.h
  8842. template <class T> void RegisterMembers_Time(asIScriptEngine* engine, const char* className)
  8843. {
  8844. RegisterMembers_Object<T>(engine, className);
  8845. // void Time::BeginFrame(float timeStep)
  8846. engine->RegisterObjectMethod(className, "void BeginFrame(float)", AS_METHODPR(T, BeginFrame, (float), void), AS_CALL_THISCALL);
  8847. // void Time::EndFrame()
  8848. engine->RegisterObjectMethod(className, "void EndFrame()", AS_METHODPR(T, EndFrame, (), void), AS_CALL_THISCALL);
  8849. // float Time::GetElapsedTime()
  8850. engine->RegisterObjectMethod(className, "float GetElapsedTime()", AS_METHODPR(T, GetElapsedTime, (), float), AS_CALL_THISCALL);
  8851. engine->RegisterObjectMethod(className, "float get_elapsedTime()", AS_METHODPR(T, GetElapsedTime, (), float), AS_CALL_THISCALL);
  8852. // unsigned Time::GetFrameNumber() const
  8853. engine->RegisterObjectMethod(className, "uint GetFrameNumber() const", AS_METHODPR(T, GetFrameNumber, () const, unsigned), AS_CALL_THISCALL);
  8854. engine->RegisterObjectMethod(className, "uint get_frameNumber() const", AS_METHODPR(T, GetFrameNumber, () const, unsigned), AS_CALL_THISCALL);
  8855. // float Time::GetFramesPerSecond() const
  8856. engine->RegisterObjectMethod(className, "float GetFramesPerSecond() const", AS_METHODPR(T, GetFramesPerSecond, () const, float), AS_CALL_THISCALL);
  8857. engine->RegisterObjectMethod(className, "float get_framesPerSecond() const", AS_METHODPR(T, GetFramesPerSecond, () const, float), AS_CALL_THISCALL);
  8858. // unsigned Time::GetTimerPeriod() const
  8859. engine->RegisterObjectMethod(className, "uint GetTimerPeriod() const", AS_METHODPR(T, GetTimerPeriod, () const, unsigned), AS_CALL_THISCALL);
  8860. // float Time::GetTimeStep() const
  8861. engine->RegisterObjectMethod(className, "float GetTimeStep() const", AS_METHODPR(T, GetTimeStep, () const, float), AS_CALL_THISCALL);
  8862. engine->RegisterObjectMethod(className, "float get_timeStep() const", AS_METHODPR(T, GetTimeStep, () const, float), AS_CALL_THISCALL);
  8863. // void Time::SetTimerPeriod(unsigned mSec)
  8864. engine->RegisterObjectMethod(className, "void SetTimerPeriod(uint)", AS_METHODPR(T, SetTimerPeriod, (unsigned), void), AS_CALL_THISCALL);
  8865. // static unsigned Time::GetSystemTime()
  8866. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetSystemTime()", AS_FUNCTIONPR(T::GetSystemTime, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  8867. // static unsigned Time::GetTimeSinceEpoch()
  8868. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetTimeSinceEpoch()", AS_FUNCTIONPR(T::GetTimeSinceEpoch, (), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  8869. // static String Time::GetTimeStamp()
  8870. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("String GetTimeStamp()", AS_FUNCTIONPR(T::GetTimeStamp, (), String), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  8871. // static void Time::Sleep(unsigned mSec)
  8872. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("void Sleep(uint)", AS_FUNCTIONPR(T::Sleep, (unsigned), void), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  8873. #ifdef REGISTER_MEMBERS_MANUAL_PART_Time
  8874. REGISTER_MEMBERS_MANUAL_PART_Time();
  8875. #endif
  8876. }
  8877. // SharedPtr<UIElement> UI::LoadLayout(Deserializer& source, XMLFile* styleFile = nullptr)
  8878. template <class T> UIElement* UI_SharedPtrlesUIElementgre_LoadLayout_Deserializeramp_XMLFilestar_template(T* _ptr, Deserializer& source, XMLFile* styleFile)
  8879. {
  8880. SharedPtr<UIElement> result = _ptr->LoadLayout(source, styleFile);
  8881. return result.Detach();
  8882. }
  8883. // SharedPtr<UIElement> UI::LoadLayout(XMLFile* file, XMLFile* styleFile = nullptr)
  8884. template <class T> UIElement* UI_SharedPtrlesUIElementgre_LoadLayout_XMLFilestar_XMLFilestar_template(T* _ptr, XMLFile* file, XMLFile* styleFile)
  8885. {
  8886. SharedPtr<UIElement> result = _ptr->LoadLayout(file, styleFile);
  8887. return result.Detach();
  8888. }
  8889. // class UI | File: ../UI/UI.h
  8890. template <class T> void RegisterMembers_UI(asIScriptEngine* engine, const char* className)
  8891. {
  8892. RegisterMembers_Object<T>(engine, className);
  8893. // const Vector<UIElement*> UI::GetDragElements()
  8894. // Error: type "const Vector<UIElement*>" can not automatically bind
  8895. // void UI::Clear()
  8896. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  8897. // IntVector2 UI::ConvertSystemToUI(const IntVector2& systemPos) const
  8898. engine->RegisterObjectMethod(className, "IntVector2 ConvertSystemToUI(const IntVector2&in) const", AS_METHODPR(T, ConvertSystemToUI, (const IntVector2&) const, IntVector2), AS_CALL_THISCALL);
  8899. // IntVector2 UI::ConvertUIToSystem(const IntVector2& uiPos) const
  8900. engine->RegisterObjectMethod(className, "IntVector2 ConvertUIToSystem(const IntVector2&in) const", AS_METHODPR(T, ConvertUIToSystem, (const IntVector2&) const, IntVector2), AS_CALL_THISCALL);
  8901. // void UI::DebugDraw(UIElement* element)
  8902. engine->RegisterObjectMethod(className, "void DebugDraw(UIElement@+)", AS_METHODPR(T, DebugDraw, (UIElement*), void), AS_CALL_THISCALL);
  8903. // const String& UI::GetClipboardText() const
  8904. engine->RegisterObjectMethod(className, "const String& GetClipboardText() const", AS_METHODPR(T, GetClipboardText, () const, const String&), AS_CALL_THISCALL);
  8905. engine->RegisterObjectMethod(className, "const String& get_clipboardText() const", AS_METHODPR(T, GetClipboardText, () const, const String&), AS_CALL_THISCALL);
  8906. // Cursor* UI::GetCursor() const
  8907. engine->RegisterObjectMethod(className, "Cursor@+ GetCursor() const", AS_METHODPR(T, GetCursor, () const, Cursor*), AS_CALL_THISCALL);
  8908. engine->RegisterObjectMethod(className, "Cursor@+ get_cursor() const", AS_METHODPR(T, GetCursor, () const, Cursor*), AS_CALL_THISCALL);
  8909. // IntVector2 UI::GetCursorPosition() const
  8910. engine->RegisterObjectMethod(className, "IntVector2 GetCursorPosition() const", AS_METHODPR(T, GetCursorPosition, () const, IntVector2), AS_CALL_THISCALL);
  8911. engine->RegisterObjectMethod(className, "IntVector2 get_cursorPosition() const", AS_METHODPR(T, GetCursorPosition, () const, IntVector2), AS_CALL_THISCALL);
  8912. // const IntVector2& UI::GetCustomSize() const
  8913. engine->RegisterObjectMethod(className, "const IntVector2& GetCustomSize() const", AS_METHODPR(T, GetCustomSize, () const, const IntVector2&), AS_CALL_THISCALL);
  8914. engine->RegisterObjectMethod(className, "const IntVector2& get_customSize() const", AS_METHODPR(T, GetCustomSize, () const, const IntVector2&), AS_CALL_THISCALL);
  8915. // float UI::GetDefaultToolTipDelay() const
  8916. engine->RegisterObjectMethod(className, "float GetDefaultToolTipDelay() const", AS_METHODPR(T, GetDefaultToolTipDelay, () const, float), AS_CALL_THISCALL);
  8917. engine->RegisterObjectMethod(className, "float get_defaultToolTipDelay() const", AS_METHODPR(T, GetDefaultToolTipDelay, () const, float), AS_CALL_THISCALL);
  8918. // float UI::GetDoubleClickInterval() const
  8919. engine->RegisterObjectMethod(className, "float GetDoubleClickInterval() const", AS_METHODPR(T, GetDoubleClickInterval, () const, float), AS_CALL_THISCALL);
  8920. engine->RegisterObjectMethod(className, "float get_doubleClickInterval() const", AS_METHODPR(T, GetDoubleClickInterval, () const, float), AS_CALL_THISCALL);
  8921. // int UI::GetDragBeginDistance() const
  8922. engine->RegisterObjectMethod(className, "int GetDragBeginDistance() const", AS_METHODPR(T, GetDragBeginDistance, () const, int), AS_CALL_THISCALL);
  8923. engine->RegisterObjectMethod(className, "int get_dragBeginDistance() const", AS_METHODPR(T, GetDragBeginDistance, () const, int), AS_CALL_THISCALL);
  8924. // float UI::GetDragBeginInterval() const
  8925. engine->RegisterObjectMethod(className, "float GetDragBeginInterval() const", AS_METHODPR(T, GetDragBeginInterval, () const, float), AS_CALL_THISCALL);
  8926. engine->RegisterObjectMethod(className, "float get_dragBeginInterval() const", AS_METHODPR(T, GetDragBeginInterval, () const, float), AS_CALL_THISCALL);
  8927. // UIElement* UI::GetDragElement(unsigned index)
  8928. engine->RegisterObjectMethod(className, "UIElement@+ GetDragElement(uint)", AS_METHODPR(T, GetDragElement, (unsigned), UIElement*), AS_CALL_THISCALL);
  8929. // UIElement* UI::GetElementAt(const IntVector2& position, bool enabledOnly = true)
  8930. engine->RegisterObjectMethod(className, "UIElement@+ GetElementAt(const IntVector2&in, bool = true)", AS_METHODPR(T, GetElementAt, (const IntVector2&, bool), UIElement*), AS_CALL_THISCALL);
  8931. // UIElement* UI::GetElementAt(int x, int y, bool enabledOnly = true)
  8932. engine->RegisterObjectMethod(className, "UIElement@+ GetElementAt(int, int, bool = true)", AS_METHODPR(T, GetElementAt, (int, int, bool), UIElement*), AS_CALL_THISCALL);
  8933. // UIElement* UI::GetElementAt(UIElement* root, const IntVector2& position, bool enabledOnly = true)
  8934. engine->RegisterObjectMethod(className, "UIElement@+ GetElementAt(UIElement@+, const IntVector2&in, bool = true)", AS_METHODPR(T, GetElementAt, (UIElement*, const IntVector2&, bool), UIElement*), AS_CALL_THISCALL);
  8935. // UIElement* UI::GetFocusElement() const
  8936. engine->RegisterObjectMethod(className, "UIElement@+ GetFocusElement() const", AS_METHODPR(T, GetFocusElement, () const, UIElement*), AS_CALL_THISCALL);
  8937. engine->RegisterObjectMethod(className, "UIElement@+ get_focusElement() const", AS_METHODPR(T, GetFocusElement, () const, UIElement*), AS_CALL_THISCALL);
  8938. // FontHintLevel UI::GetFontHintLevel() const
  8939. engine->RegisterObjectMethod(className, "FontHintLevel GetFontHintLevel() const", AS_METHODPR(T, GetFontHintLevel, () const, FontHintLevel), AS_CALL_THISCALL);
  8940. engine->RegisterObjectMethod(className, "FontHintLevel get_fontHintLevel() const", AS_METHODPR(T, GetFontHintLevel, () const, FontHintLevel), AS_CALL_THISCALL);
  8941. // int UI::GetFontOversampling() const
  8942. engine->RegisterObjectMethod(className, "int GetFontOversampling() const", AS_METHODPR(T, GetFontOversampling, () const, int), AS_CALL_THISCALL);
  8943. engine->RegisterObjectMethod(className, "int get_fontOversampling() const", AS_METHODPR(T, GetFontOversampling, () const, int), AS_CALL_THISCALL);
  8944. // float UI::GetFontSubpixelThreshold() const
  8945. engine->RegisterObjectMethod(className, "float GetFontSubpixelThreshold() const", AS_METHODPR(T, GetFontSubpixelThreshold, () const, float), AS_CALL_THISCALL);
  8946. engine->RegisterObjectMethod(className, "float get_fontSubpixelThreshold() const", AS_METHODPR(T, GetFontSubpixelThreshold, () const, float), AS_CALL_THISCALL);
  8947. // bool UI::GetForceAutoHint() const
  8948. engine->RegisterObjectMethod(className, "bool GetForceAutoHint() const", AS_METHODPR(T, GetForceAutoHint, () const, bool), AS_CALL_THISCALL);
  8949. engine->RegisterObjectMethod(className, "bool get_forceAutoHint() const", AS_METHODPR(T, GetForceAutoHint, () const, bool), AS_CALL_THISCALL);
  8950. // UIElement* UI::GetFrontElement() const
  8951. engine->RegisterObjectMethod(className, "UIElement@+ GetFrontElement() const", AS_METHODPR(T, GetFrontElement, () const, UIElement*), AS_CALL_THISCALL);
  8952. engine->RegisterObjectMethod(className, "UIElement@+ get_frontElement() const", AS_METHODPR(T, GetFrontElement, () const, UIElement*), AS_CALL_THISCALL);
  8953. // float UI::GetMaxDoubleClickDistance() const
  8954. engine->RegisterObjectMethod(className, "float GetMaxDoubleClickDistance() const", AS_METHODPR(T, GetMaxDoubleClickDistance, () const, float), AS_CALL_THISCALL);
  8955. engine->RegisterObjectMethod(className, "float get_maxDoubleClickDistance() const", AS_METHODPR(T, GetMaxDoubleClickDistance, () const, float), AS_CALL_THISCALL);
  8956. // int UI::GetMaxFontTextureSize() const
  8957. engine->RegisterObjectMethod(className, "int GetMaxFontTextureSize() const", AS_METHODPR(T, GetMaxFontTextureSize, () const, int), AS_CALL_THISCALL);
  8958. engine->RegisterObjectMethod(className, "int get_maxFontTextureSize() const", AS_METHODPR(T, GetMaxFontTextureSize, () const, int), AS_CALL_THISCALL);
  8959. // unsigned UI::GetNumDragElements() const
  8960. engine->RegisterObjectMethod(className, "uint GetNumDragElements() const", AS_METHODPR(T, GetNumDragElements, () const, unsigned), AS_CALL_THISCALL);
  8961. // UIElement* UI::GetRoot() const
  8962. engine->RegisterObjectMethod(className, "UIElement@+ GetRoot() const", AS_METHODPR(T, GetRoot, () const, UIElement*), AS_CALL_THISCALL);
  8963. engine->RegisterObjectMethod(className, "UIElement@+ get_root() const", AS_METHODPR(T, GetRoot, () const, UIElement*), AS_CALL_THISCALL);
  8964. // UIElement* UI::GetRootModalElement() const
  8965. engine->RegisterObjectMethod(className, "UIElement@+ GetRootModalElement() const", AS_METHODPR(T, GetRootModalElement, () const, UIElement*), AS_CALL_THISCALL);
  8966. engine->RegisterObjectMethod(className, "UIElement@+ get_modalRoot() const", AS_METHODPR(T, GetRootModalElement, () const, UIElement*), AS_CALL_THISCALL);
  8967. // float UI::GetScale() const
  8968. engine->RegisterObjectMethod(className, "float GetScale() const", AS_METHODPR(T, GetScale, () const, float), AS_CALL_THISCALL);
  8969. engine->RegisterObjectMethod(className, "float get_scale() const", AS_METHODPR(T, GetScale, () const, float), AS_CALL_THISCALL);
  8970. // bool UI::GetUseMutableGlyphs() const
  8971. engine->RegisterObjectMethod(className, "bool GetUseMutableGlyphs() const", AS_METHODPR(T, GetUseMutableGlyphs, () const, bool), AS_CALL_THISCALL);
  8972. engine->RegisterObjectMethod(className, "bool get_useMutableGlyphs() const", AS_METHODPR(T, GetUseMutableGlyphs, () const, bool), AS_CALL_THISCALL);
  8973. // bool UI::GetUseScreenKeyboard() const
  8974. engine->RegisterObjectMethod(className, "bool GetUseScreenKeyboard() const", AS_METHODPR(T, GetUseScreenKeyboard, () const, bool), AS_CALL_THISCALL);
  8975. engine->RegisterObjectMethod(className, "bool get_useScreenKeyboard() const", AS_METHODPR(T, GetUseScreenKeyboard, () const, bool), AS_CALL_THISCALL);
  8976. // bool UI::GetUseSystemClipboard() const
  8977. engine->RegisterObjectMethod(className, "bool GetUseSystemClipboard() const", AS_METHODPR(T, GetUseSystemClipboard, () const, bool), AS_CALL_THISCALL);
  8978. engine->RegisterObjectMethod(className, "bool get_useSystemClipboard() const", AS_METHODPR(T, GetUseSystemClipboard, () const, bool), AS_CALL_THISCALL);
  8979. // bool UI::HasModalElement() const
  8980. engine->RegisterObjectMethod(className, "bool HasModalElement() const", AS_METHODPR(T, HasModalElement, () const, bool), AS_CALL_THISCALL);
  8981. // bool UI::IsDragging() const
  8982. engine->RegisterObjectMethod(className, "bool IsDragging() const", AS_METHODPR(T, IsDragging, () const, bool), AS_CALL_THISCALL);
  8983. // bool UI::IsNonFocusedMouseWheel() const
  8984. engine->RegisterObjectMethod(className, "bool IsNonFocusedMouseWheel() const", AS_METHODPR(T, IsNonFocusedMouseWheel, () const, bool), AS_CALL_THISCALL);
  8985. engine->RegisterObjectMethod(className, "bool get_nonFocusedMouseWheel() const", AS_METHODPR(T, IsNonFocusedMouseWheel, () const, bool), AS_CALL_THISCALL);
  8986. // SharedPtr<UIElement> UI::LoadLayout(Deserializer& source, XMLFile* styleFile = nullptr)
  8987. engine->RegisterObjectMethod(className, "UIElement@+ LoadLayout(Deserializer&, XMLFile@+ = null)", AS_FUNCTION_OBJFIRST(UI_SharedPtrlesUIElementgre_LoadLayout_Deserializeramp_XMLFilestar_template<UI>), AS_CALL_CDECL_OBJFIRST);
  8988. // SharedPtr<UIElement> UI::LoadLayout(XMLFile* file, XMLFile* styleFile = nullptr)
  8989. engine->RegisterObjectMethod(className, "UIElement@+ LoadLayout(XMLFile@+, XMLFile@+ = null)", AS_FUNCTION_OBJFIRST(UI_SharedPtrlesUIElementgre_LoadLayout_XMLFilestar_XMLFilestar_template<UI>), AS_CALL_CDECL_OBJFIRST);
  8990. // void UI::Render(bool renderUICommand = false)
  8991. engine->RegisterObjectMethod(className, "void Render(bool = false)", AS_METHODPR(T, Render, (bool), void), AS_CALL_THISCALL);
  8992. // void UI::RenderUpdate()
  8993. engine->RegisterObjectMethod(className, "void RenderUpdate()", AS_METHODPR(T, RenderUpdate, (), void), AS_CALL_THISCALL);
  8994. // bool UI::SaveLayout(Serializer& dest, UIElement* element)
  8995. engine->RegisterObjectMethod(className, "bool SaveLayout(Serializer&, UIElement@+)", AS_METHODPR(T, SaveLayout, (Serializer&, UIElement*), bool), AS_CALL_THISCALL);
  8996. // void UI::SetClipboardText(const String& text)
  8997. engine->RegisterObjectMethod(className, "void SetClipboardText(const String&in)", AS_METHODPR(T, SetClipboardText, (const String&), void), AS_CALL_THISCALL);
  8998. engine->RegisterObjectMethod(className, "void set_clipboardText(const String&in)", AS_METHODPR(T, SetClipboardText, (const String&), void), AS_CALL_THISCALL);
  8999. // void UI::SetCursor(Cursor* cursor)
  9000. engine->RegisterObjectMethod(className, "void SetCursor(Cursor@+)", AS_METHODPR(T, SetCursor, (Cursor*), void), AS_CALL_THISCALL);
  9001. engine->RegisterObjectMethod(className, "void set_cursor(Cursor@+)", AS_METHODPR(T, SetCursor, (Cursor*), void), AS_CALL_THISCALL);
  9002. // void UI::SetCustomSize(const IntVector2& size)
  9003. engine->RegisterObjectMethod(className, "void SetCustomSize(const IntVector2&in)", AS_METHODPR(T, SetCustomSize, (const IntVector2&), void), AS_CALL_THISCALL);
  9004. engine->RegisterObjectMethod(className, "void set_customSize(const IntVector2&in)", AS_METHODPR(T, SetCustomSize, (const IntVector2&), void), AS_CALL_THISCALL);
  9005. // void UI::SetCustomSize(int width, int height)
  9006. engine->RegisterObjectMethod(className, "void SetCustomSize(int, int)", AS_METHODPR(T, SetCustomSize, (int, int), void), AS_CALL_THISCALL);
  9007. // void UI::SetDefaultToolTipDelay(float delay)
  9008. engine->RegisterObjectMethod(className, "void SetDefaultToolTipDelay(float)", AS_METHODPR(T, SetDefaultToolTipDelay, (float), void), AS_CALL_THISCALL);
  9009. engine->RegisterObjectMethod(className, "void set_defaultToolTipDelay(float)", AS_METHODPR(T, SetDefaultToolTipDelay, (float), void), AS_CALL_THISCALL);
  9010. // void UI::SetDoubleClickInterval(float interval)
  9011. engine->RegisterObjectMethod(className, "void SetDoubleClickInterval(float)", AS_METHODPR(T, SetDoubleClickInterval, (float), void), AS_CALL_THISCALL);
  9012. engine->RegisterObjectMethod(className, "void set_doubleClickInterval(float)", AS_METHODPR(T, SetDoubleClickInterval, (float), void), AS_CALL_THISCALL);
  9013. // void UI::SetDragBeginDistance(int pixels)
  9014. engine->RegisterObjectMethod(className, "void SetDragBeginDistance(int)", AS_METHODPR(T, SetDragBeginDistance, (int), void), AS_CALL_THISCALL);
  9015. engine->RegisterObjectMethod(className, "void set_dragBeginDistance(int)", AS_METHODPR(T, SetDragBeginDistance, (int), void), AS_CALL_THISCALL);
  9016. // void UI::SetDragBeginInterval(float interval)
  9017. engine->RegisterObjectMethod(className, "void SetDragBeginInterval(float)", AS_METHODPR(T, SetDragBeginInterval, (float), void), AS_CALL_THISCALL);
  9018. engine->RegisterObjectMethod(className, "void set_dragBeginInterval(float)", AS_METHODPR(T, SetDragBeginInterval, (float), void), AS_CALL_THISCALL);
  9019. // void UI::SetElementRenderTexture(UIElement* element, Texture2D* texture)
  9020. engine->RegisterObjectMethod(className, "void SetElementRenderTexture(UIElement@+, Texture2D@+)", AS_METHODPR(T, SetElementRenderTexture, (UIElement*, Texture2D*), void), AS_CALL_THISCALL);
  9021. // void UI::SetFocusElement(UIElement* element, bool byKey = false)
  9022. engine->RegisterObjectMethod(className, "void SetFocusElement(UIElement@+, bool = false)", AS_METHODPR(T, SetFocusElement, (UIElement*, bool), void), AS_CALL_THISCALL);
  9023. // void UI::SetFontHintLevel(FontHintLevel level)
  9024. engine->RegisterObjectMethod(className, "void SetFontHintLevel(FontHintLevel)", AS_METHODPR(T, SetFontHintLevel, (FontHintLevel), void), AS_CALL_THISCALL);
  9025. engine->RegisterObjectMethod(className, "void set_fontHintLevel(FontHintLevel)", AS_METHODPR(T, SetFontHintLevel, (FontHintLevel), void), AS_CALL_THISCALL);
  9026. // void UI::SetFontOversampling(int oversampling)
  9027. engine->RegisterObjectMethod(className, "void SetFontOversampling(int)", AS_METHODPR(T, SetFontOversampling, (int), void), AS_CALL_THISCALL);
  9028. engine->RegisterObjectMethod(className, "void set_fontOversampling(int)", AS_METHODPR(T, SetFontOversampling, (int), void), AS_CALL_THISCALL);
  9029. // void UI::SetFontSubpixelThreshold(float threshold)
  9030. engine->RegisterObjectMethod(className, "void SetFontSubpixelThreshold(float)", AS_METHODPR(T, SetFontSubpixelThreshold, (float), void), AS_CALL_THISCALL);
  9031. engine->RegisterObjectMethod(className, "void set_fontSubpixelThreshold(float)", AS_METHODPR(T, SetFontSubpixelThreshold, (float), void), AS_CALL_THISCALL);
  9032. // void UI::SetForceAutoHint(bool enable)
  9033. engine->RegisterObjectMethod(className, "void SetForceAutoHint(bool)", AS_METHODPR(T, SetForceAutoHint, (bool), void), AS_CALL_THISCALL);
  9034. engine->RegisterObjectMethod(className, "void set_forceAutoHint(bool)", AS_METHODPR(T, SetForceAutoHint, (bool), void), AS_CALL_THISCALL);
  9035. // void UI::SetHeight(float height)
  9036. engine->RegisterObjectMethod(className, "void SetHeight(float)", AS_METHODPR(T, SetHeight, (float), void), AS_CALL_THISCALL);
  9037. // void UI::SetMaxDoubleClickDistance(float distPixels)
  9038. engine->RegisterObjectMethod(className, "void SetMaxDoubleClickDistance(float)", AS_METHODPR(T, SetMaxDoubleClickDistance, (float), void), AS_CALL_THISCALL);
  9039. engine->RegisterObjectMethod(className, "void set_maxDoubleClickDistance(float)", AS_METHODPR(T, SetMaxDoubleClickDistance, (float), void), AS_CALL_THISCALL);
  9040. // void UI::SetMaxFontTextureSize(int size)
  9041. engine->RegisterObjectMethod(className, "void SetMaxFontTextureSize(int)", AS_METHODPR(T, SetMaxFontTextureSize, (int), void), AS_CALL_THISCALL);
  9042. engine->RegisterObjectMethod(className, "void set_maxFontTextureSize(int)", AS_METHODPR(T, SetMaxFontTextureSize, (int), void), AS_CALL_THISCALL);
  9043. // bool UI::SetModalElement(UIElement* modalElement, bool enable)
  9044. engine->RegisterObjectMethod(className, "bool SetModalElement(UIElement@+, bool)", AS_METHODPR(T, SetModalElement, (UIElement*, bool), bool), AS_CALL_THISCALL);
  9045. // void UI::SetNonFocusedMouseWheel(bool nonFocusedMouseWheel)
  9046. engine->RegisterObjectMethod(className, "void SetNonFocusedMouseWheel(bool)", AS_METHODPR(T, SetNonFocusedMouseWheel, (bool), void), AS_CALL_THISCALL);
  9047. engine->RegisterObjectMethod(className, "void set_nonFocusedMouseWheel(bool)", AS_METHODPR(T, SetNonFocusedMouseWheel, (bool), void), AS_CALL_THISCALL);
  9048. // void UI::SetScale(float scale)
  9049. engine->RegisterObjectMethod(className, "void SetScale(float)", AS_METHODPR(T, SetScale, (float), void), AS_CALL_THISCALL);
  9050. engine->RegisterObjectMethod(className, "void set_scale(float)", AS_METHODPR(T, SetScale, (float), void), AS_CALL_THISCALL);
  9051. // void UI::SetUseMutableGlyphs(bool enable)
  9052. engine->RegisterObjectMethod(className, "void SetUseMutableGlyphs(bool)", AS_METHODPR(T, SetUseMutableGlyphs, (bool), void), AS_CALL_THISCALL);
  9053. engine->RegisterObjectMethod(className, "void set_useMutableGlyphs(bool)", AS_METHODPR(T, SetUseMutableGlyphs, (bool), void), AS_CALL_THISCALL);
  9054. // void UI::SetUseScreenKeyboard(bool enable)
  9055. engine->RegisterObjectMethod(className, "void SetUseScreenKeyboard(bool)", AS_METHODPR(T, SetUseScreenKeyboard, (bool), void), AS_CALL_THISCALL);
  9056. engine->RegisterObjectMethod(className, "void set_useScreenKeyboard(bool)", AS_METHODPR(T, SetUseScreenKeyboard, (bool), void), AS_CALL_THISCALL);
  9057. // void UI::SetUseSystemClipboard(bool enable)
  9058. engine->RegisterObjectMethod(className, "void SetUseSystemClipboard(bool)", AS_METHODPR(T, SetUseSystemClipboard, (bool), void), AS_CALL_THISCALL);
  9059. engine->RegisterObjectMethod(className, "void set_useSystemClipboard(bool)", AS_METHODPR(T, SetUseSystemClipboard, (bool), void), AS_CALL_THISCALL);
  9060. // void UI::SetWidth(float width)
  9061. engine->RegisterObjectMethod(className, "void SetWidth(float)", AS_METHODPR(T, SetWidth, (float), void), AS_CALL_THISCALL);
  9062. // void UI::Update(float timeStep)
  9063. engine->RegisterObjectMethod(className, "void Update(float)", AS_METHODPR(T, Update, (float), void), AS_CALL_THISCALL);
  9064. #ifdef REGISTER_MEMBERS_MANUAL_PART_UI
  9065. REGISTER_MEMBERS_MANUAL_PART_UI();
  9066. #endif
  9067. }
  9068. // class VectorBuffer | File: ../IO/VectorBuffer.h
  9069. template <class T> void RegisterMembers_VectorBuffer(asIScriptEngine* engine, const char* className)
  9070. {
  9071. RegisterMembers_AbstractFile<T>(engine, className);
  9072. // const PODVector<unsigned char>& VectorBuffer::GetBuffer() const
  9073. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  9074. // const unsigned char* VectorBuffer::GetData() const
  9075. // Error: type "const unsigned char*" can not automatically bind
  9076. // unsigned char* VectorBuffer::GetModifiableData()
  9077. // Error: type "unsigned char*" can not automatically bind
  9078. // void VectorBuffer::SetData(const PODVector<unsigned char>& data)
  9079. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  9080. // void VectorBuffer::SetData(const void* data, unsigned size)
  9081. // Error: type "const void*" can not automatically bind
  9082. // void VectorBuffer::Clear()
  9083. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  9084. // void VectorBuffer::Resize(unsigned size)
  9085. engine->RegisterObjectMethod(className, "void Resize(uint)", AS_METHODPR(T, Resize, (unsigned), void), AS_CALL_THISCALL);
  9086. // void VectorBuffer::SetData(Deserializer& source, unsigned size)
  9087. engine->RegisterObjectMethod(className, "void SetData(Deserializer&, uint)", AS_METHODPR(T, SetData, (Deserializer&, unsigned), void), AS_CALL_THISCALL);
  9088. #ifdef REGISTER_MEMBERS_MANUAL_PART_VectorBuffer
  9089. REGISTER_MEMBERS_MANUAL_PART_VectorBuffer();
  9090. #endif
  9091. }
  9092. // const PODVector<VertexElement>& VertexBuffer::GetElements() const
  9093. template <class T> CScriptArray* VertexBuffer_constspPODVectorlesVertexElementgreamp_GetElements_void_template(T* _ptr)
  9094. {
  9095. const PODVector<VertexElement>& result = _ptr->GetElements();
  9096. return VectorToArray(result, "Array<VertexElement>");
  9097. }
  9098. // bool VertexBuffer::SetSize(unsigned vertexCount, const PODVector<VertexElement>& elements, bool dynamic = false)
  9099. template <class T> bool VertexBuffer_bool_SetSize_unsigned_constspPODVectorlesVertexElementgreamp_bool_template(T* _ptr, unsigned vertexCount, CScriptArray* elements_conv, bool dynamic)
  9100. {
  9101. PODVector<VertexElement> elements = ArrayToPODVector<VertexElement>(elements_conv);
  9102. bool result = _ptr->SetSize(vertexCount, elements, dynamic);
  9103. return result;
  9104. }
  9105. // static bool VertexBuffer::HasElement(const PODVector<VertexElement>& elements, VertexElementType type, VertexElementSemantic semantic, unsigned char index = 0)
  9106. template <class T> bool VertexBuffer_bool_HasElement_constspPODVectorlesVertexElementgreamp_VertexElementType_VertexElementSemantic_unsignedspchar(CScriptArray* elements_conv, VertexElementType type, VertexElementSemantic semantic, unsigned char index)
  9107. {
  9108. PODVector<VertexElement> elements = ArrayToPODVector<VertexElement>(elements_conv);
  9109. bool result = T::HasElement(elements, type, semantic, index);
  9110. return result;
  9111. }
  9112. // static unsigned VertexBuffer::GetElementOffset(const PODVector<VertexElement>& elements, VertexElementType type, VertexElementSemantic semantic, unsigned char index = 0)
  9113. template <class T> unsigned VertexBuffer_unsigned_GetElementOffset_constspPODVectorlesVertexElementgreamp_VertexElementType_VertexElementSemantic_unsignedspchar(CScriptArray* elements_conv, VertexElementType type, VertexElementSemantic semantic, unsigned char index)
  9114. {
  9115. PODVector<VertexElement> elements = ArrayToPODVector<VertexElement>(elements_conv);
  9116. unsigned result = T::GetElementOffset(elements, type, semantic, index);
  9117. return result;
  9118. }
  9119. // static PODVector<VertexElement> VertexBuffer::GetElements(unsigned elementMask)
  9120. template <class T> CScriptArray* VertexBuffer_PODVectorlesVertexElementgre_GetElements_unsigned(unsigned elementMask)
  9121. {
  9122. PODVector<VertexElement> result = T::GetElements(elementMask);
  9123. return VectorToArray(result, "Array<VertexElement>");
  9124. }
  9125. // static unsigned VertexBuffer::GetVertexSize(const PODVector<VertexElement>& elements)
  9126. template <class T> unsigned VertexBuffer_unsigned_GetVertexSize_constspPODVectorlesVertexElementgreamp(CScriptArray* elements_conv)
  9127. {
  9128. PODVector<VertexElement> elements = ArrayToPODVector<VertexElement>(elements_conv);
  9129. unsigned result = T::GetVertexSize(elements);
  9130. return result;
  9131. }
  9132. // class VertexBuffer | File: ../Graphics/VertexBuffer.h
  9133. template <class T> void RegisterMembers_VertexBuffer(asIScriptEngine* engine, const char* className)
  9134. {
  9135. RegisterMembers_Object<T>(engine, className);
  9136. RegisterMembers_GPUObject<T>(engine, className);
  9137. // const VertexElement* VertexBuffer::GetElement(VertexElementSemantic semantic, unsigned char index = 0) const
  9138. // Error: type "const VertexElement*" can not automatically bind
  9139. // const VertexElement* VertexBuffer::GetElement(VertexElementType type, VertexElementSemantic semantic, unsigned char index = 0) const
  9140. // Error: type "const VertexElement*" can not automatically bind
  9141. // unsigned char* VertexBuffer::GetShadowData() const
  9142. // Error: type "unsigned char*" can not automatically bind
  9143. // SharedArrayPtr<unsigned char> VertexBuffer::GetShadowDataShared() const
  9144. // Error: type "SharedArrayPtr<unsigned char>" can not automatically bind
  9145. // void* VertexBuffer::Lock(unsigned start, unsigned count, bool discard = false)
  9146. // Error: type "void*" can not automatically bind
  9147. // bool VertexBuffer::SetData(const void* data)
  9148. // Error: type "const void*" can not automatically bind
  9149. // bool VertexBuffer::SetDataRange(const void* data, unsigned start, unsigned count, bool discard = false)
  9150. // Error: type "const void*" can not automatically bind
  9151. // unsigned long long VertexBuffer::GetBufferHash(unsigned streamIndex)
  9152. engine->RegisterObjectMethod(className, "uint64 GetBufferHash(uint)", AS_METHODPR(T, GetBufferHash, (unsigned), unsigned long long), AS_CALL_THISCALL);
  9153. // VertexMaskFlags VertexBuffer::GetElementMask() const
  9154. engine->RegisterObjectMethod(className, "VertexMaskFlags GetElementMask() const", AS_METHODPR(T, GetElementMask, () const, VertexMaskFlags), AS_CALL_THISCALL);
  9155. engine->RegisterObjectMethod(className, "VertexMaskFlags get_elementMask() const", AS_METHODPR(T, GetElementMask, () const, VertexMaskFlags), AS_CALL_THISCALL);
  9156. // unsigned VertexBuffer::GetElementOffset(VertexElementSemantic semantic, unsigned char index = 0) const
  9157. engine->RegisterObjectMethod(className, "uint GetElementOffset(VertexElementSemantic, uint8 = 0) const", AS_METHODPR(T, GetElementOffset, (VertexElementSemantic, unsigned char) const, unsigned), AS_CALL_THISCALL);
  9158. // unsigned VertexBuffer::GetElementOffset(VertexElementType type, VertexElementSemantic semantic, unsigned char index = 0) const
  9159. engine->RegisterObjectMethod(className, "uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const", AS_METHODPR(T, GetElementOffset, (VertexElementType, VertexElementSemantic, unsigned char) const, unsigned), AS_CALL_THISCALL);
  9160. // const PODVector<VertexElement>& VertexBuffer::GetElements() const
  9161. engine->RegisterObjectMethod(className, "Array<VertexElement>@ GetElements() const", AS_FUNCTION_OBJFIRST(VertexBuffer_constspPODVectorlesVertexElementgreamp_GetElements_void_template<VertexBuffer>), AS_CALL_CDECL_OBJFIRST);
  9162. engine->RegisterObjectMethod(className, "Array<VertexElement>@ get_elements() const", AS_FUNCTION_OBJFIRST(VertexBuffer_constspPODVectorlesVertexElementgreamp_GetElements_void_template<VertexBuffer>), AS_CALL_CDECL_OBJFIRST);
  9163. // unsigned VertexBuffer::GetVertexCount() const
  9164. engine->RegisterObjectMethod(className, "uint GetVertexCount() const", AS_METHODPR(T, GetVertexCount, () const, unsigned), AS_CALL_THISCALL);
  9165. engine->RegisterObjectMethod(className, "uint get_vertexCount() const", AS_METHODPR(T, GetVertexCount, () const, unsigned), AS_CALL_THISCALL);
  9166. // unsigned VertexBuffer::GetVertexSize() const
  9167. engine->RegisterObjectMethod(className, "uint GetVertexSize() const", AS_METHODPR(T, GetVertexSize, () const, unsigned), AS_CALL_THISCALL);
  9168. engine->RegisterObjectMethod(className, "uint get_vertexSize() const", AS_METHODPR(T, GetVertexSize, () const, unsigned), AS_CALL_THISCALL);
  9169. // bool VertexBuffer::HasElement(VertexElementSemantic semantic, unsigned char index = 0) const
  9170. engine->RegisterObjectMethod(className, "bool HasElement(VertexElementSemantic, uint8 = 0) const", AS_METHODPR(T, HasElement, (VertexElementSemantic, unsigned char) const, bool), AS_CALL_THISCALL);
  9171. // bool VertexBuffer::HasElement(VertexElementType type, VertexElementSemantic semantic, unsigned char index = 0) const
  9172. engine->RegisterObjectMethod(className, "bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const", AS_METHODPR(T, HasElement, (VertexElementType, VertexElementSemantic, unsigned char) const, bool), AS_CALL_THISCALL);
  9173. // bool VertexBuffer::IsDynamic() const
  9174. engine->RegisterObjectMethod(className, "bool IsDynamic() const", AS_METHODPR(T, IsDynamic, () const, bool), AS_CALL_THISCALL);
  9175. engine->RegisterObjectMethod(className, "bool get_dynamic() const", AS_METHODPR(T, IsDynamic, () const, bool), AS_CALL_THISCALL);
  9176. // bool VertexBuffer::IsLocked() const
  9177. engine->RegisterObjectMethod(className, "bool IsLocked() const", AS_METHODPR(T, IsLocked, () const, bool), AS_CALL_THISCALL);
  9178. // bool VertexBuffer::IsShadowed() const
  9179. engine->RegisterObjectMethod(className, "bool IsShadowed() const", AS_METHODPR(T, IsShadowed, () const, bool), AS_CALL_THISCALL);
  9180. engine->RegisterObjectMethod(className, "bool get_shadowed() const", AS_METHODPR(T, IsShadowed, () const, bool), AS_CALL_THISCALL);
  9181. // void VertexBuffer::SetShadowed(bool enable)
  9182. engine->RegisterObjectMethod(className, "void SetShadowed(bool)", AS_METHODPR(T, SetShadowed, (bool), void), AS_CALL_THISCALL);
  9183. engine->RegisterObjectMethod(className, "void set_shadowed(bool)", AS_METHODPR(T, SetShadowed, (bool), void), AS_CALL_THISCALL);
  9184. // bool VertexBuffer::SetSize(unsigned vertexCount, const PODVector<VertexElement>& elements, bool dynamic = false)
  9185. engine->RegisterObjectMethod(className, "bool SetSize(uint, Array<VertexElement>@+, bool = false)", AS_FUNCTION_OBJFIRST(VertexBuffer_bool_SetSize_unsigned_constspPODVectorlesVertexElementgreamp_bool_template<VertexBuffer>), AS_CALL_CDECL_OBJFIRST);
  9186. // bool VertexBuffer::SetSize(unsigned vertexCount, unsigned elementMask, bool dynamic = false)
  9187. engine->RegisterObjectMethod(className, "bool SetSize(uint, uint, bool = false)", AS_METHODPR(T, SetSize, (unsigned, unsigned, bool), bool), AS_CALL_THISCALL);
  9188. // void VertexBuffer::Unlock()
  9189. engine->RegisterObjectMethod(className, "void Unlock()", AS_METHODPR(T, Unlock, (), void), AS_CALL_THISCALL);
  9190. // static const VertexElement* VertexBuffer::GetElement(const PODVector<VertexElement>& elements, VertexElementType type, VertexElementSemantic semantic, unsigned char index = 0)
  9191. // Error: type "const VertexElement*" can not automatically bind
  9192. // static void VertexBuffer::UpdateOffsets(PODVector<VertexElement>& elements)
  9193. // Error: type "PODVector<VertexElement>&" can not automatically bind
  9194. // static bool VertexBuffer::HasElement(const PODVector<VertexElement>& elements, VertexElementType type, VertexElementSemantic semantic, unsigned char index = 0)
  9195. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("bool HasElement(Array<VertexElement>@+, VertexElementType, VertexElementSemantic, uint8 = 0)", AS_FUNCTION(VertexBuffer_bool_HasElement_constspPODVectorlesVertexElementgreamp_VertexElementType_VertexElementSemantic_unsignedspchar<VertexBuffer>), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  9196. // static unsigned VertexBuffer::GetElementOffset(const PODVector<VertexElement>& elements, VertexElementType type, VertexElementSemantic semantic, unsigned char index = 0)
  9197. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetElementOffset(Array<VertexElement>@+, VertexElementType, VertexElementSemantic, uint8 = 0)", AS_FUNCTION(VertexBuffer_unsigned_GetElementOffset_constspPODVectorlesVertexElementgreamp_VertexElementType_VertexElementSemantic_unsignedspchar<VertexBuffer>), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  9198. // static PODVector<VertexElement> VertexBuffer::GetElements(unsigned elementMask)
  9199. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("Array<VertexElement>@ GetElements(uint)", AS_FUNCTION(VertexBuffer_PODVectorlesVertexElementgre_GetElements_unsigned<VertexBuffer>), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  9200. // static unsigned VertexBuffer::GetVertexSize(const PODVector<VertexElement>& elements)
  9201. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetVertexSize(Array<VertexElement>@+)", AS_FUNCTION(VertexBuffer_unsigned_GetVertexSize_constspPODVectorlesVertexElementgreamp<VertexBuffer>), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  9202. // static unsigned VertexBuffer::GetVertexSize(unsigned elementMask)
  9203. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetVertexSize(uint)", AS_FUNCTIONPR(T::GetVertexSize, (unsigned), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  9204. #ifdef REGISTER_MEMBERS_MANUAL_PART_VertexBuffer
  9205. REGISTER_MEMBERS_MANUAL_PART_VertexBuffer();
  9206. #endif
  9207. }
  9208. // const PODVector<Drawable*>& View::GetGeometries() const
  9209. template <class T> CScriptArray* View_constspPODVectorlesDrawablestargreamp_GetGeometries_void_template(T* _ptr)
  9210. {
  9211. const PODVector<Drawable*>& result = _ptr->GetGeometries();
  9212. return VectorToHandleArray(result, "Array<Drawable@>");
  9213. }
  9214. // const PODVector<Light*>& View::GetLights() const
  9215. template <class T> CScriptArray* View_constspPODVectorlesLightstargreamp_GetLights_void_template(T* _ptr)
  9216. {
  9217. const PODVector<Light*>& result = _ptr->GetLights();
  9218. return VectorToHandleArray(result, "Array<Light@>");
  9219. }
  9220. // const PODVector<Drawable*>& View::GetOccluders() const
  9221. template <class T> CScriptArray* View_constspPODVectorlesDrawablestargreamp_GetOccluders_void_template(T* _ptr)
  9222. {
  9223. const PODVector<Drawable*>& result = _ptr->GetOccluders();
  9224. return VectorToHandleArray(result, "Array<Drawable@>");
  9225. }
  9226. // class View | File: ../Graphics/View.h
  9227. template <class T> void RegisterMembers_View(asIScriptEngine* engine, const char* className)
  9228. {
  9229. RegisterMembers_Object<T>(engine, className);
  9230. // const Vector<LightBatchQueue>& View::GetLightQueues() const
  9231. // Error: type "const Vector<LightBatchQueue>&" can not automatically bind
  9232. // bool View::Define(RenderSurface* renderTarget, Viewport* viewport)
  9233. engine->RegisterObjectMethod(className, "bool Define(RenderSurface@+, Viewport@+)", AS_METHODPR(T, Define, (RenderSurface*, Viewport*), bool), AS_CALL_THISCALL);
  9234. // void View::DrawFullscreenQuad(bool setIdentityProjection = false)
  9235. engine->RegisterObjectMethod(className, "void DrawFullscreenQuad(bool = false)", AS_METHODPR(T, DrawFullscreenQuad, (bool), void), AS_CALL_THISCALL);
  9236. // Texture* View::FindNamedTexture(const String& name, bool isRenderTarget, bool isVolumeMap = false)
  9237. engine->RegisterObjectMethod(className, "Texture@+ FindNamedTexture(const String&in, bool, bool = false)", AS_METHODPR(T, FindNamedTexture, (const String&, bool, bool), Texture*), AS_CALL_THISCALL);
  9238. // Camera* View::GetCamera() const
  9239. engine->RegisterObjectMethod(className, "Camera@+ GetCamera() const", AS_METHODPR(T, GetCamera, () const, Camera*), AS_CALL_THISCALL);
  9240. // Camera* View::GetCullCamera() const
  9241. engine->RegisterObjectMethod(className, "Camera@+ GetCullCamera() const", AS_METHODPR(T, GetCullCamera, () const, Camera*), AS_CALL_THISCALL);
  9242. // bool View::GetDrawDebug() const
  9243. engine->RegisterObjectMethod(className, "bool GetDrawDebug() const", AS_METHODPR(T, GetDrawDebug, () const, bool), AS_CALL_THISCALL);
  9244. // const FrameInfo& View::GetFrameInfo() const
  9245. engine->RegisterObjectMethod(className, "const FrameInfo& GetFrameInfo() const", AS_METHODPR(T, GetFrameInfo, () const, const FrameInfo&), AS_CALL_THISCALL);
  9246. // const PODVector<Drawable*>& View::GetGeometries() const
  9247. engine->RegisterObjectMethod(className, "Array<Drawable@>@ GetGeometries() const", AS_FUNCTION_OBJFIRST(View_constspPODVectorlesDrawablestargreamp_GetGeometries_void_template<View>), AS_CALL_CDECL_OBJFIRST);
  9248. // Graphics* View::GetGraphics() const
  9249. engine->RegisterObjectMethod(className, "Graphics@+ GetGraphics() const", AS_METHODPR(T, GetGraphics, () const, Graphics*), AS_CALL_THISCALL);
  9250. // const PODVector<Light*>& View::GetLights() const
  9251. engine->RegisterObjectMethod(className, "Array<Light@>@ GetLights() const", AS_FUNCTION_OBJFIRST(View_constspPODVectorlesLightstargreamp_GetLights_void_template<View>), AS_CALL_CDECL_OBJFIRST);
  9252. // unsigned View::GetNumActiveOccluders() const
  9253. engine->RegisterObjectMethod(className, "uint GetNumActiveOccluders() const", AS_METHODPR(T, GetNumActiveOccluders, () const, unsigned), AS_CALL_THISCALL);
  9254. // const PODVector<Drawable*>& View::GetOccluders() const
  9255. engine->RegisterObjectMethod(className, "Array<Drawable@>@ GetOccluders() const", AS_FUNCTION_OBJFIRST(View_constspPODVectorlesDrawablestargreamp_GetOccluders_void_template<View>), AS_CALL_CDECL_OBJFIRST);
  9256. // OcclusionBuffer* View::GetOcclusionBuffer() const
  9257. engine->RegisterObjectMethod(className, "OcclusionBuffer@+ GetOcclusionBuffer() const", AS_METHODPR(T, GetOcclusionBuffer, () const, OcclusionBuffer*), AS_CALL_THISCALL);
  9258. // Octree* View::GetOctree() const
  9259. engine->RegisterObjectMethod(className, "Octree@+ GetOctree() const", AS_METHODPR(T, GetOctree, () const, Octree*), AS_CALL_THISCALL);
  9260. // Renderer* View::GetRenderer() const
  9261. engine->RegisterObjectMethod(className, "Renderer@+ GetRenderer() const", AS_METHODPR(T, GetRenderer, () const, Renderer*), AS_CALL_THISCALL);
  9262. // RenderSurface* View::GetRenderTarget() const
  9263. engine->RegisterObjectMethod(className, "RenderSurface@+ GetRenderTarget() const", AS_METHODPR(T, GetRenderTarget, () const, RenderSurface*), AS_CALL_THISCALL);
  9264. // Scene* View::GetScene() const
  9265. engine->RegisterObjectMethod(className, "Scene@+ GetScene() const", AS_METHODPR(T, GetScene, () const, Scene*), AS_CALL_THISCALL);
  9266. // View* View::GetSourceView() const
  9267. engine->RegisterObjectMethod(className, "View@+ GetSourceView() const", AS_METHODPR(T, GetSourceView, () const, View*), AS_CALL_THISCALL);
  9268. // const IntRect& View::GetViewRect() const
  9269. engine->RegisterObjectMethod(className, "const IntRect& GetViewRect() const", AS_METHODPR(T, GetViewRect, () const, const IntRect&), AS_CALL_THISCALL);
  9270. // const IntVector2& View::GetViewSize() const
  9271. engine->RegisterObjectMethod(className, "const IntVector2& GetViewSize() const", AS_METHODPR(T, GetViewSize, () const, const IntVector2&), AS_CALL_THISCALL);
  9272. // void View::Render()
  9273. engine->RegisterObjectMethod(className, "void Render()", AS_METHODPR(T, Render, (), void), AS_CALL_THISCALL);
  9274. // void View::SetCameraShaderParameters(Camera* camera)
  9275. engine->RegisterObjectMethod(className, "void SetCameraShaderParameters(Camera@+)", AS_METHODPR(T, SetCameraShaderParameters, (Camera*), void), AS_CALL_THISCALL);
  9276. // void View::SetCommandShaderParameters(const RenderPathCommand& command)
  9277. engine->RegisterObjectMethod(className, "void SetCommandShaderParameters(const RenderPathCommand&in)", AS_METHODPR(T, SetCommandShaderParameters, (const RenderPathCommand&), void), AS_CALL_THISCALL);
  9278. // void View::SetGBufferShaderParameters(const IntVector2& texSize, const IntRect& viewRect)
  9279. engine->RegisterObjectMethod(className, "void SetGBufferShaderParameters(const IntVector2&in, const IntRect&in)", AS_METHODPR(T, SetGBufferShaderParameters, (const IntVector2&, const IntRect&), void), AS_CALL_THISCALL);
  9280. // void View::SetGlobalShaderParameters()
  9281. engine->RegisterObjectMethod(className, "void SetGlobalShaderParameters()", AS_METHODPR(T, SetGlobalShaderParameters, (), void), AS_CALL_THISCALL);
  9282. // void View::Update(const FrameInfo& frame)
  9283. engine->RegisterObjectMethod(className, "void Update(const FrameInfo&in)", AS_METHODPR(T, Update, (const FrameInfo&), void), AS_CALL_THISCALL);
  9284. #ifdef REGISTER_MEMBERS_MANUAL_PART_View
  9285. REGISTER_MEMBERS_MANUAL_PART_View();
  9286. #endif
  9287. }
  9288. // class Viewport | File: ../Graphics/Viewport.h
  9289. template <class T> void RegisterMembers_Viewport(asIScriptEngine* engine, const char* className)
  9290. {
  9291. RegisterMembers_Object<T>(engine, className);
  9292. // void Viewport::AllocateView()
  9293. engine->RegisterObjectMethod(className, "void AllocateView()", AS_METHODPR(T, AllocateView, (), void), AS_CALL_THISCALL);
  9294. // Camera* Viewport::GetCamera() const
  9295. engine->RegisterObjectMethod(className, "Camera@+ GetCamera() const", AS_METHODPR(T, GetCamera, () const, Camera*), AS_CALL_THISCALL);
  9296. engine->RegisterObjectMethod(className, "Camera@+ get_camera() const", AS_METHODPR(T, GetCamera, () const, Camera*), AS_CALL_THISCALL);
  9297. // Camera* Viewport::GetCullCamera() const
  9298. engine->RegisterObjectMethod(className, "Camera@+ GetCullCamera() const", AS_METHODPR(T, GetCullCamera, () const, Camera*), AS_CALL_THISCALL);
  9299. engine->RegisterObjectMethod(className, "Camera@+ get_cullCamera() const", AS_METHODPR(T, GetCullCamera, () const, Camera*), AS_CALL_THISCALL);
  9300. // bool Viewport::GetDrawDebug() const
  9301. engine->RegisterObjectMethod(className, "bool GetDrawDebug() const", AS_METHODPR(T, GetDrawDebug, () const, bool), AS_CALL_THISCALL);
  9302. engine->RegisterObjectMethod(className, "bool get_drawDebug() const", AS_METHODPR(T, GetDrawDebug, () const, bool), AS_CALL_THISCALL);
  9303. // const IntRect& Viewport::GetRect() const
  9304. engine->RegisterObjectMethod(className, "const IntRect& GetRect() const", AS_METHODPR(T, GetRect, () const, const IntRect&), AS_CALL_THISCALL);
  9305. engine->RegisterObjectMethod(className, "const IntRect& get_rect() const", AS_METHODPR(T, GetRect, () const, const IntRect&), AS_CALL_THISCALL);
  9306. // RenderPath* Viewport::GetRenderPath() const
  9307. engine->RegisterObjectMethod(className, "RenderPath@+ GetRenderPath() const", AS_METHODPR(T, GetRenderPath, () const, RenderPath*), AS_CALL_THISCALL);
  9308. engine->RegisterObjectMethod(className, "RenderPath@+ get_renderPath() const", AS_METHODPR(T, GetRenderPath, () const, RenderPath*), AS_CALL_THISCALL);
  9309. // Scene* Viewport::GetScene() const
  9310. engine->RegisterObjectMethod(className, "Scene@+ GetScene() const", AS_METHODPR(T, GetScene, () const, Scene*), AS_CALL_THISCALL);
  9311. engine->RegisterObjectMethod(className, "Scene@+ get_scene() const", AS_METHODPR(T, GetScene, () const, Scene*), AS_CALL_THISCALL);
  9312. // Ray Viewport::GetScreenRay(int x, int y) const
  9313. engine->RegisterObjectMethod(className, "Ray GetScreenRay(int, int) const", AS_METHODPR(T, GetScreenRay, (int, int) const, Ray), AS_CALL_THISCALL);
  9314. // View* Viewport::GetView() const
  9315. engine->RegisterObjectMethod(className, "View@+ GetView() const", AS_METHODPR(T, GetView, () const, View*), AS_CALL_THISCALL);
  9316. // Vector3 Viewport::ScreenToWorldPoint(int x, int y, float depth) const
  9317. engine->RegisterObjectMethod(className, "Vector3 ScreenToWorldPoint(int, int, float) const", AS_METHODPR(T, ScreenToWorldPoint, (int, int, float) const, Vector3), AS_CALL_THISCALL);
  9318. // void Viewport::SetCamera(Camera* camera)
  9319. engine->RegisterObjectMethod(className, "void SetCamera(Camera@+)", AS_METHODPR(T, SetCamera, (Camera*), void), AS_CALL_THISCALL);
  9320. engine->RegisterObjectMethod(className, "void set_camera(Camera@+)", AS_METHODPR(T, SetCamera, (Camera*), void), AS_CALL_THISCALL);
  9321. // void Viewport::SetCullCamera(Camera* camera)
  9322. engine->RegisterObjectMethod(className, "void SetCullCamera(Camera@+)", AS_METHODPR(T, SetCullCamera, (Camera*), void), AS_CALL_THISCALL);
  9323. engine->RegisterObjectMethod(className, "void set_cullCamera(Camera@+)", AS_METHODPR(T, SetCullCamera, (Camera*), void), AS_CALL_THISCALL);
  9324. // void Viewport::SetDrawDebug(bool enable)
  9325. engine->RegisterObjectMethod(className, "void SetDrawDebug(bool)", AS_METHODPR(T, SetDrawDebug, (bool), void), AS_CALL_THISCALL);
  9326. engine->RegisterObjectMethod(className, "void set_drawDebug(bool)", AS_METHODPR(T, SetDrawDebug, (bool), void), AS_CALL_THISCALL);
  9327. // void Viewport::SetRect(const IntRect& rect)
  9328. engine->RegisterObjectMethod(className, "void SetRect(const IntRect&in)", AS_METHODPR(T, SetRect, (const IntRect&), void), AS_CALL_THISCALL);
  9329. engine->RegisterObjectMethod(className, "void set_rect(const IntRect&in)", AS_METHODPR(T, SetRect, (const IntRect&), void), AS_CALL_THISCALL);
  9330. // void Viewport::SetRenderPath(RenderPath* renderPath)
  9331. engine->RegisterObjectMethod(className, "void SetRenderPath(RenderPath@+)", AS_METHODPR(T, SetRenderPath, (RenderPath*), void), AS_CALL_THISCALL);
  9332. engine->RegisterObjectMethod(className, "void set_renderPath(RenderPath@+)", AS_METHODPR(T, SetRenderPath, (RenderPath*), void), AS_CALL_THISCALL);
  9333. // bool Viewport::SetRenderPath(XMLFile* file)
  9334. engine->RegisterObjectMethod(className, "bool SetRenderPath(XMLFile@+)", AS_METHODPR(T, SetRenderPath, (XMLFile*), bool), AS_CALL_THISCALL);
  9335. // void Viewport::SetScene(Scene* scene)
  9336. engine->RegisterObjectMethod(className, "void SetScene(Scene@+)", AS_METHODPR(T, SetScene, (Scene*), void), AS_CALL_THISCALL);
  9337. engine->RegisterObjectMethod(className, "void set_scene(Scene@+)", AS_METHODPR(T, SetScene, (Scene*), void), AS_CALL_THISCALL);
  9338. // IntVector2 Viewport::WorldToScreenPoint(const Vector3& worldPos) const
  9339. engine->RegisterObjectMethod(className, "IntVector2 WorldToScreenPoint(const Vector3&in) const", AS_METHODPR(T, WorldToScreenPoint, (const Vector3&) const, IntVector2), AS_CALL_THISCALL);
  9340. #ifdef REGISTER_MEMBERS_MANUAL_PART_Viewport
  9341. REGISTER_MEMBERS_MANUAL_PART_Viewport();
  9342. #endif
  9343. }
  9344. // class WorkQueue | File: ../Core/WorkQueue.h
  9345. template <class T> void RegisterMembers_WorkQueue(asIScriptEngine* engine, const char* className)
  9346. {
  9347. RegisterMembers_Object<T>(engine, className);
  9348. // void WorkQueue::AddWorkItem(const SharedPtr<WorkItem>& item)
  9349. // Error: type "const SharedPtr<WorkItem>&" can not automatically bind
  9350. // SharedPtr<WorkItem> WorkQueue::GetFreeItem()
  9351. // Error: type "SharedPtr<WorkItem>" can not automatically bind
  9352. // bool WorkQueue::RemoveWorkItem(SharedPtr<WorkItem> item)
  9353. // Error: type "SharedPtr<WorkItem>" can not automatically bind
  9354. // unsigned WorkQueue::RemoveWorkItems(const Vector<SharedPtr<WorkItem>>& items)
  9355. // Error: type "const Vector<SharedPtr<WorkItem>>&" can not automatically bind
  9356. // void WorkQueue::Complete(unsigned priority)
  9357. engine->RegisterObjectMethod(className, "void Complete(uint)", AS_METHODPR(T, Complete, (unsigned), void), AS_CALL_THISCALL);
  9358. // void WorkQueue::CreateThreads(unsigned numThreads)
  9359. engine->RegisterObjectMethod(className, "void CreateThreads(uint)", AS_METHODPR(T, CreateThreads, (unsigned), void), AS_CALL_THISCALL);
  9360. // int WorkQueue::GetNonThreadedWorkMs() const
  9361. engine->RegisterObjectMethod(className, "int GetNonThreadedWorkMs() const", AS_METHODPR(T, GetNonThreadedWorkMs, () const, int), AS_CALL_THISCALL);
  9362. // unsigned WorkQueue::GetNumThreads() const
  9363. engine->RegisterObjectMethod(className, "uint GetNumThreads() const", AS_METHODPR(T, GetNumThreads, () const, unsigned), AS_CALL_THISCALL);
  9364. // int WorkQueue::GetTolerance() const
  9365. engine->RegisterObjectMethod(className, "int GetTolerance() const", AS_METHODPR(T, GetTolerance, () const, int), AS_CALL_THISCALL);
  9366. // bool WorkQueue::IsCompleted(unsigned priority) const
  9367. engine->RegisterObjectMethod(className, "bool IsCompleted(uint) const", AS_METHODPR(T, IsCompleted, (unsigned) const, bool), AS_CALL_THISCALL);
  9368. // bool WorkQueue::IsCompleting() const
  9369. engine->RegisterObjectMethod(className, "bool IsCompleting() const", AS_METHODPR(T, IsCompleting, () const, bool), AS_CALL_THISCALL);
  9370. // void WorkQueue::Pause()
  9371. engine->RegisterObjectMethod(className, "void Pause()", AS_METHODPR(T, Pause, (), void), AS_CALL_THISCALL);
  9372. // void WorkQueue::Resume()
  9373. engine->RegisterObjectMethod(className, "void Resume()", AS_METHODPR(T, Resume, (), void), AS_CALL_THISCALL);
  9374. // void WorkQueue::SetNonThreadedWorkMs(int ms)
  9375. engine->RegisterObjectMethod(className, "void SetNonThreadedWorkMs(int)", AS_METHODPR(T, SetNonThreadedWorkMs, (int), void), AS_CALL_THISCALL);
  9376. // void WorkQueue::SetTolerance(int tolerance)
  9377. engine->RegisterObjectMethod(className, "void SetTolerance(int)", AS_METHODPR(T, SetTolerance, (int), void), AS_CALL_THISCALL);
  9378. #ifdef REGISTER_MEMBERS_MANUAL_PART_WorkQueue
  9379. REGISTER_MEMBERS_MANUAL_PART_WorkQueue();
  9380. #endif
  9381. }
  9382. #ifdef URHO3D_DATABASE
  9383. // class Database | File: ../Database/Database.h
  9384. template <class T> void RegisterMembers_Database(asIScriptEngine* engine, const char* className)
  9385. {
  9386. RegisterMembers_Object<T>(engine, className);
  9387. // DbConnection* Database::Connect(const String& connectionString)
  9388. engine->RegisterObjectMethod(className, "DbConnection@+ Connect(const String&in)", AS_METHODPR(T, Connect, (const String&), DbConnection*), AS_CALL_THISCALL);
  9389. // void Database::Disconnect(DbConnection* connection)
  9390. engine->RegisterObjectMethod(className, "void Disconnect(DbConnection@+)", AS_METHODPR(T, Disconnect, (DbConnection*), void), AS_CALL_THISCALL);
  9391. // unsigned Database::GetPoolSize() const
  9392. engine->RegisterObjectMethod(className, "uint GetPoolSize() const", AS_METHODPR(T, GetPoolSize, () const, unsigned), AS_CALL_THISCALL);
  9393. engine->RegisterObjectMethod(className, "uint get_poolSize() const", AS_METHODPR(T, GetPoolSize, () const, unsigned), AS_CALL_THISCALL);
  9394. // bool Database::IsPooling() const
  9395. engine->RegisterObjectMethod(className, "bool IsPooling() const", AS_METHODPR(T, IsPooling, () const, bool), AS_CALL_THISCALL);
  9396. engine->RegisterObjectMethod(className, "bool get_pooling() const", AS_METHODPR(T, IsPooling, () const, bool), AS_CALL_THISCALL);
  9397. // void Database::SetPoolSize(unsigned poolSize)
  9398. engine->RegisterObjectMethod(className, "void SetPoolSize(uint)", AS_METHODPR(T, SetPoolSize, (unsigned), void), AS_CALL_THISCALL);
  9399. engine->RegisterObjectMethod(className, "void set_poolSize(uint)", AS_METHODPR(T, SetPoolSize, (unsigned), void), AS_CALL_THISCALL);
  9400. // static DBAPI Database::GetAPI()
  9401. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("DBAPI GetAPI()", AS_FUNCTIONPR(T::GetAPI, (), DBAPI), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  9402. #ifdef REGISTER_MEMBERS_MANUAL_PART_Database
  9403. REGISTER_MEMBERS_MANUAL_PART_Database();
  9404. #endif
  9405. }
  9406. #endif // def URHO3D_DATABASE
  9407. #ifdef URHO3D_NETWORK
  9408. // class Connection | File: ../Network/Connection.h
  9409. template <class T> void RegisterMembers_Connection(asIScriptEngine* engine, const char* className)
  9410. {
  9411. RegisterMembers_Object<T>(engine, className);
  9412. // const SLNet::AddressOrGUID& Connection::GetAddressOrGUID() const
  9413. // Error: type "const SLNet::AddressOrGUID&" can not automatically bind
  9414. // bool Connection::ProcessMessage(int msgID, MemoryBuffer& buffer)
  9415. // Error: type "MemoryBuffer" can not automatically bind bacause have @nobind mark
  9416. // void Connection::SendMessage(int msgID, bool reliable, bool inOrder, const unsigned char* data, unsigned numBytes, unsigned contentID = 0)
  9417. // Error: type "const unsigned char*" can not automatically bind
  9418. // void Connection::SetAddressOrGUID(const SLNet::AddressOrGUID& addr)
  9419. // Error: type "const SLNet::AddressOrGUID&" can not automatically bind
  9420. // void Connection::Ban()
  9421. engine->RegisterObjectMethod(className, "void Ban()", AS_METHODPR(T, Ban, (), void), AS_CALL_THISCALL);
  9422. // void Connection::ConfigureNetworkSimulator(int latencyMs, float packetLoss)
  9423. engine->RegisterObjectMethod(className, "void ConfigureNetworkSimulator(int, float)", AS_METHODPR(T, ConfigureNetworkSimulator, (int, float), void), AS_CALL_THISCALL);
  9424. // void Connection::Disconnect(int waitMSec = 0)
  9425. engine->RegisterObjectMethod(className, "void Disconnect(int = 0)", AS_METHODPR(T, Disconnect, (int), void), AS_CALL_THISCALL);
  9426. // String Connection::GetAddress() const
  9427. engine->RegisterObjectMethod(className, "String GetAddress() const", AS_METHODPR(T, GetAddress, () const, String), AS_CALL_THISCALL);
  9428. engine->RegisterObjectMethod(className, "String get_address() const", AS_METHODPR(T, GetAddress, () const, String), AS_CALL_THISCALL);
  9429. // float Connection::GetBytesInPerSec() const
  9430. engine->RegisterObjectMethod(className, "float GetBytesInPerSec() const", AS_METHODPR(T, GetBytesInPerSec, () const, float), AS_CALL_THISCALL);
  9431. engine->RegisterObjectMethod(className, "float get_bytesInPerSec() const", AS_METHODPR(T, GetBytesInPerSec, () const, float), AS_CALL_THISCALL);
  9432. // float Connection::GetBytesOutPerSec() const
  9433. engine->RegisterObjectMethod(className, "float GetBytesOutPerSec() const", AS_METHODPR(T, GetBytesOutPerSec, () const, float), AS_CALL_THISCALL);
  9434. engine->RegisterObjectMethod(className, "float get_bytesOutPerSec() const", AS_METHODPR(T, GetBytesOutPerSec, () const, float), AS_CALL_THISCALL);
  9435. // const Controls& Connection::GetControls() const
  9436. engine->RegisterObjectMethod(className, "const Controls& GetControls() const", AS_METHODPR(T, GetControls, () const, const Controls&), AS_CALL_THISCALL);
  9437. // const String& Connection::GetDownloadName() const
  9438. engine->RegisterObjectMethod(className, "const String& GetDownloadName() const", AS_METHODPR(T, GetDownloadName, () const, const String&), AS_CALL_THISCALL);
  9439. engine->RegisterObjectMethod(className, "const String& get_downloadName() const", AS_METHODPR(T, GetDownloadName, () const, const String&), AS_CALL_THISCALL);
  9440. // float Connection::GetDownloadProgress() const
  9441. engine->RegisterObjectMethod(className, "float GetDownloadProgress() const", AS_METHODPR(T, GetDownloadProgress, () const, float), AS_CALL_THISCALL);
  9442. engine->RegisterObjectMethod(className, "float get_downloadProgress() const", AS_METHODPR(T, GetDownloadProgress, () const, float), AS_CALL_THISCALL);
  9443. // VariantMap& Connection::GetIdentity()
  9444. engine->RegisterObjectMethod(className, "VariantMap& GetIdentity()", AS_METHODPR(T, GetIdentity, (), VariantMap&), AS_CALL_THISCALL);
  9445. // unsigned Connection::GetLastHeardTime() const
  9446. engine->RegisterObjectMethod(className, "uint GetLastHeardTime() const", AS_METHODPR(T, GetLastHeardTime, () const, unsigned), AS_CALL_THISCALL);
  9447. engine->RegisterObjectMethod(className, "uint get_lastHeardTime() const", AS_METHODPR(T, GetLastHeardTime, () const, unsigned), AS_CALL_THISCALL);
  9448. // bool Connection::GetLogStatistics() const
  9449. engine->RegisterObjectMethod(className, "bool GetLogStatistics() const", AS_METHODPR(T, GetLogStatistics, () const, bool), AS_CALL_THISCALL);
  9450. engine->RegisterObjectMethod(className, "bool get_logStatistics() const", AS_METHODPR(T, GetLogStatistics, () const, bool), AS_CALL_THISCALL);
  9451. // unsigned Connection::GetNumDownloads() const
  9452. engine->RegisterObjectMethod(className, "uint GetNumDownloads() const", AS_METHODPR(T, GetNumDownloads, () const, unsigned), AS_CALL_THISCALL);
  9453. engine->RegisterObjectMethod(className, "uint get_numDownloads() const", AS_METHODPR(T, GetNumDownloads, () const, unsigned), AS_CALL_THISCALL);
  9454. // int Connection::GetPacketsInPerSec() const
  9455. engine->RegisterObjectMethod(className, "int GetPacketsInPerSec() const", AS_METHODPR(T, GetPacketsInPerSec, () const, int), AS_CALL_THISCALL);
  9456. engine->RegisterObjectMethod(className, "int get_packetsInPerSec() const", AS_METHODPR(T, GetPacketsInPerSec, () const, int), AS_CALL_THISCALL);
  9457. // int Connection::GetPacketsOutPerSec() const
  9458. engine->RegisterObjectMethod(className, "int GetPacketsOutPerSec() const", AS_METHODPR(T, GetPacketsOutPerSec, () const, int), AS_CALL_THISCALL);
  9459. engine->RegisterObjectMethod(className, "int get_packetsOutPerSec() const", AS_METHODPR(T, GetPacketsOutPerSec, () const, int), AS_CALL_THISCALL);
  9460. // PacketType Connection::GetPacketType(bool reliable, bool inOrder)
  9461. engine->RegisterObjectMethod(className, "PacketType GetPacketType(bool, bool)", AS_METHODPR(T, GetPacketType, (bool, bool), PacketType), AS_CALL_THISCALL);
  9462. // unsigned short Connection::GetPort() const
  9463. engine->RegisterObjectMethod(className, "uint16 GetPort() const", AS_METHODPR(T, GetPort, () const, unsigned short), AS_CALL_THISCALL);
  9464. engine->RegisterObjectMethod(className, "uint16 get_port() const", AS_METHODPR(T, GetPort, () const, unsigned short), AS_CALL_THISCALL);
  9465. // const Vector3& Connection::GetPosition() const
  9466. engine->RegisterObjectMethod(className, "const Vector3& GetPosition() const", AS_METHODPR(T, GetPosition, () const, const Vector3&), AS_CALL_THISCALL);
  9467. engine->RegisterObjectMethod(className, "const Vector3& get_position() const", AS_METHODPR(T, GetPosition, () const, const Vector3&), AS_CALL_THISCALL);
  9468. // const Quaternion& Connection::GetRotation() const
  9469. engine->RegisterObjectMethod(className, "const Quaternion& GetRotation() const", AS_METHODPR(T, GetRotation, () const, const Quaternion&), AS_CALL_THISCALL);
  9470. engine->RegisterObjectMethod(className, "const Quaternion& get_rotation() const", AS_METHODPR(T, GetRotation, () const, const Quaternion&), AS_CALL_THISCALL);
  9471. // float Connection::GetRoundTripTime() const
  9472. engine->RegisterObjectMethod(className, "float GetRoundTripTime() const", AS_METHODPR(T, GetRoundTripTime, () const, float), AS_CALL_THISCALL);
  9473. engine->RegisterObjectMethod(className, "float get_roundTripTime() const", AS_METHODPR(T, GetRoundTripTime, () const, float), AS_CALL_THISCALL);
  9474. // Scene* Connection::GetScene() const
  9475. engine->RegisterObjectMethod(className, "Scene@+ GetScene() const", AS_METHODPR(T, GetScene, () const, Scene*), AS_CALL_THISCALL);
  9476. engine->RegisterObjectMethod(className, "Scene@+ get_scene() const", AS_METHODPR(T, GetScene, () const, Scene*), AS_CALL_THISCALL);
  9477. // unsigned char Connection::GetTimeStamp() const
  9478. engine->RegisterObjectMethod(className, "uint8 GetTimeStamp() const", AS_METHODPR(T, GetTimeStamp, () const, unsigned char), AS_CALL_THISCALL);
  9479. // bool Connection::IsClient() const
  9480. engine->RegisterObjectMethod(className, "bool IsClient() const", AS_METHODPR(T, IsClient, () const, bool), AS_CALL_THISCALL);
  9481. engine->RegisterObjectMethod(className, "bool get_client() const", AS_METHODPR(T, IsClient, () const, bool), AS_CALL_THISCALL);
  9482. // bool Connection::IsConnected() const
  9483. engine->RegisterObjectMethod(className, "bool IsConnected() const", AS_METHODPR(T, IsConnected, () const, bool), AS_CALL_THISCALL);
  9484. engine->RegisterObjectMethod(className, "bool get_connected() const", AS_METHODPR(T, IsConnected, () const, bool), AS_CALL_THISCALL);
  9485. // bool Connection::IsConnectPending() const
  9486. engine->RegisterObjectMethod(className, "bool IsConnectPending() const", AS_METHODPR(T, IsConnectPending, () const, bool), AS_CALL_THISCALL);
  9487. engine->RegisterObjectMethod(className, "bool get_connectPending() const", AS_METHODPR(T, IsConnectPending, () const, bool), AS_CALL_THISCALL);
  9488. // bool Connection::IsSceneLoaded() const
  9489. engine->RegisterObjectMethod(className, "bool IsSceneLoaded() const", AS_METHODPR(T, IsSceneLoaded, () const, bool), AS_CALL_THISCALL);
  9490. engine->RegisterObjectMethod(className, "bool get_sceneLoaded() const", AS_METHODPR(T, IsSceneLoaded, () const, bool), AS_CALL_THISCALL);
  9491. // void Connection::ProcessPendingLatestData()
  9492. engine->RegisterObjectMethod(className, "void ProcessPendingLatestData()", AS_METHODPR(T, ProcessPendingLatestData, (), void), AS_CALL_THISCALL);
  9493. // void Connection::SendAllBuffers()
  9494. engine->RegisterObjectMethod(className, "void SendAllBuffers()", AS_METHODPR(T, SendAllBuffers, (), void), AS_CALL_THISCALL);
  9495. // void Connection::SendBuffer(PacketType type)
  9496. engine->RegisterObjectMethod(className, "void SendBuffer(PacketType)", AS_METHODPR(T, SendBuffer, (PacketType), void), AS_CALL_THISCALL);
  9497. // void Connection::SendClientUpdate()
  9498. engine->RegisterObjectMethod(className, "void SendClientUpdate()", AS_METHODPR(T, SendClientUpdate, (), void), AS_CALL_THISCALL);
  9499. // void Connection::SendMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer& msg, unsigned contentID = 0)
  9500. engine->RegisterObjectMethod(className, "void SendMessage(int, bool, bool, const VectorBuffer&in, uint = 0)", AS_METHODPR(T, SendMessage, (int, bool, bool, const VectorBuffer&, unsigned), void), AS_CALL_THISCALL);
  9501. // void Connection::SendPackages()
  9502. engine->RegisterObjectMethod(className, "void SendPackages()", AS_METHODPR(T, SendPackages, (), void), AS_CALL_THISCALL);
  9503. // void Connection::SendPackageToClient(PackageFile* package)
  9504. engine->RegisterObjectMethod(className, "void SendPackageToClient(PackageFile@+)", AS_METHODPR(T, SendPackageToClient, (PackageFile*), void), AS_CALL_THISCALL);
  9505. // void Connection::SendRemoteEvent(StringHash eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  9506. engine->RegisterObjectMethod(className, "void SendRemoteEvent(StringHash, bool, const VariantMap&in = VariantMap())", AS_METHODPR(T, SendRemoteEvent, (StringHash, bool, const VariantMap&), void), AS_CALL_THISCALL);
  9507. // void Connection::SendRemoteEvent(Node* node, StringHash eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  9508. engine->RegisterObjectMethod(className, "void SendRemoteEvent(Node@+, StringHash, bool, const VariantMap&in = VariantMap())", AS_METHODPR(T, SendRemoteEvent, (Node*, StringHash, bool, const VariantMap&), void), AS_CALL_THISCALL);
  9509. // void Connection::SendRemoteEvents()
  9510. engine->RegisterObjectMethod(className, "void SendRemoteEvents()", AS_METHODPR(T, SendRemoteEvents, (), void), AS_CALL_THISCALL);
  9511. // void Connection::SendServerUpdate()
  9512. engine->RegisterObjectMethod(className, "void SendServerUpdate()", AS_METHODPR(T, SendServerUpdate, (), void), AS_CALL_THISCALL);
  9513. // void Connection::SetConnectPending(bool connectPending)
  9514. engine->RegisterObjectMethod(className, "void SetConnectPending(bool)", AS_METHODPR(T, SetConnectPending, (bool), void), AS_CALL_THISCALL);
  9515. // void Connection::SetControls(const Controls& newControls)
  9516. engine->RegisterObjectMethod(className, "void SetControls(const Controls&in)", AS_METHODPR(T, SetControls, (const Controls&), void), AS_CALL_THISCALL);
  9517. // void Connection::SetIdentity(const VariantMap& identity)
  9518. engine->RegisterObjectMethod(className, "void SetIdentity(const VariantMap&in)", AS_METHODPR(T, SetIdentity, (const VariantMap&), void), AS_CALL_THISCALL);
  9519. // void Connection::SetLogStatistics(bool enable)
  9520. engine->RegisterObjectMethod(className, "void SetLogStatistics(bool)", AS_METHODPR(T, SetLogStatistics, (bool), void), AS_CALL_THISCALL);
  9521. engine->RegisterObjectMethod(className, "void set_logStatistics(bool)", AS_METHODPR(T, SetLogStatistics, (bool), void), AS_CALL_THISCALL);
  9522. // void Connection::SetPacketSizeLimit(int limit)
  9523. engine->RegisterObjectMethod(className, "void SetPacketSizeLimit(int)", AS_METHODPR(T, SetPacketSizeLimit, (int), void), AS_CALL_THISCALL);
  9524. // void Connection::SetPosition(const Vector3& position)
  9525. engine->RegisterObjectMethod(className, "void SetPosition(const Vector3&in)", AS_METHODPR(T, SetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  9526. engine->RegisterObjectMethod(className, "void set_position(const Vector3&in)", AS_METHODPR(T, SetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  9527. // void Connection::SetRotation(const Quaternion& rotation)
  9528. engine->RegisterObjectMethod(className, "void SetRotation(const Quaternion&in)", AS_METHODPR(T, SetRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  9529. engine->RegisterObjectMethod(className, "void set_rotation(const Quaternion&in)", AS_METHODPR(T, SetRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  9530. // void Connection::SetScene(Scene* newScene)
  9531. engine->RegisterObjectMethod(className, "void SetScene(Scene@+)", AS_METHODPR(T, SetScene, (Scene*), void), AS_CALL_THISCALL);
  9532. engine->RegisterObjectMethod(className, "void set_scene(Scene@+)", AS_METHODPR(T, SetScene, (Scene*), void), AS_CALL_THISCALL);
  9533. // String Connection::ToString() const
  9534. engine->RegisterObjectMethod(className, "String ToString() const", AS_METHODPR(T, ToString, () const, String), AS_CALL_THISCALL);
  9535. // Controls Connection::controls_
  9536. engine->RegisterObjectProperty(className, "Controls controls", offsetof(T, controls_));
  9537. // unsigned char Connection::timeStamp_
  9538. engine->RegisterObjectProperty(className, "uint8 timeStamp", offsetof(T, timeStamp_));
  9539. // VariantMap Connection::identity_
  9540. engine->RegisterObjectProperty(className, "VariantMap identity", offsetof(T, identity_));
  9541. #ifdef REGISTER_MEMBERS_MANUAL_PART_Connection
  9542. REGISTER_MEMBERS_MANUAL_PART_Connection();
  9543. #endif
  9544. }
  9545. // Vector<SharedPtr<Connection>> Network::GetClientConnections() const
  9546. template <class T> CScriptArray* Network_VectorlesSharedPtrlesConnectiongregre_GetClientConnections_void_template(T* _ptr)
  9547. {
  9548. Vector<SharedPtr<Connection>> result = _ptr->GetClientConnections();
  9549. return VectorToHandleArray(result, "Array<Connection@>");
  9550. }
  9551. // SharedPtr<HttpRequest> Network::MakeHttpRequest(const String& url, const String& verb = String::EMPTY, const Vector<String>& headers = Vector<String>(), const String& postData = String::EMPTY)
  9552. template <class T> HttpRequest* Network_SharedPtrlesHttpRequestgre_MakeHttpRequest_constspStringamp_constspStringamp_constspVectorlesStringgreamp_constspStringamp_template(T* _ptr, const String& url, const String& verb, CScriptArray* headers_conv, const String& postData)
  9553. {
  9554. Vector<String> headers = ArrayToVector<String>(headers_conv);
  9555. SharedPtr<HttpRequest> result = _ptr->MakeHttpRequest(url, verb, headers, postData);
  9556. return result.Detach();
  9557. }
  9558. // class Network | File: ../Network/Network.h
  9559. template <class T> void RegisterMembers_Network(asIScriptEngine* engine, const char* className)
  9560. {
  9561. RegisterMembers_Object<T>(engine, className);
  9562. // void Network::BroadcastMessage(int msgID, bool reliable, bool inOrder, const unsigned char* data, unsigned numBytes, unsigned contentID = 0)
  9563. // Error: type "const unsigned char*" can not automatically bind
  9564. // void Network::ClientDisconnected(const SLNet::AddressOrGUID& connection)
  9565. // Error: type "const SLNet::AddressOrGUID&" can not automatically bind
  9566. // Connection* Network::GetConnection(const SLNet::AddressOrGUID& connection) const
  9567. // Error: type "const SLNet::AddressOrGUID&" can not automatically bind
  9568. // void Network::HandleMessage(const SLNet::AddressOrGUID& source, int packetID, int msgID, const char* data, size_t numBytes)
  9569. // Error: type "const SLNet::AddressOrGUID&" can not automatically bind
  9570. // void Network::NewConnectionEstablished(const SLNet::AddressOrGUID& connection)
  9571. // Error: type "const SLNet::AddressOrGUID&" can not automatically bind
  9572. // void Network::AttemptNATPunchtrough(const String& guid, Scene* scene, const VariantMap& identity = Variant::emptyVariantMap)
  9573. engine->RegisterObjectMethod(className, "void AttemptNATPunchtrough(const String&in, Scene@+, const VariantMap&in = VariantMap())", AS_METHODPR(T, AttemptNATPunchtrough, (const String&, Scene*, const VariantMap&), void), AS_CALL_THISCALL);
  9574. // void Network::BanAddress(const String& address)
  9575. engine->RegisterObjectMethod(className, "void BanAddress(const String&in)", AS_METHODPR(T, BanAddress, (const String&), void), AS_CALL_THISCALL);
  9576. // void Network::BroadcastMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer& msg, unsigned contentID = 0)
  9577. engine->RegisterObjectMethod(className, "void BroadcastMessage(int, bool, bool, const VectorBuffer&in, uint = 0)", AS_METHODPR(T, BroadcastMessage, (int, bool, bool, const VectorBuffer&, unsigned), void), AS_CALL_THISCALL);
  9578. // void Network::BroadcastRemoteEvent(StringHash eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  9579. engine->RegisterObjectMethod(className, "void BroadcastRemoteEvent(StringHash, bool, const VariantMap&in = VariantMap())", AS_METHODPR(T, BroadcastRemoteEvent, (StringHash, bool, const VariantMap&), void), AS_CALL_THISCALL);
  9580. // void Network::BroadcastRemoteEvent(Scene* scene, StringHash eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  9581. engine->RegisterObjectMethod(className, "void BroadcastRemoteEvent(Scene@+, StringHash, bool, const VariantMap&in = VariantMap())", AS_METHODPR(T, BroadcastRemoteEvent, (Scene*, StringHash, bool, const VariantMap&), void), AS_CALL_THISCALL);
  9582. // void Network::BroadcastRemoteEvent(Node* node, StringHash eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  9583. engine->RegisterObjectMethod(className, "void BroadcastRemoteEvent(Node@+, StringHash, bool, const VariantMap&in = VariantMap())", AS_METHODPR(T, BroadcastRemoteEvent, (Node*, StringHash, bool, const VariantMap&), void), AS_CALL_THISCALL);
  9584. // bool Network::CheckRemoteEvent(StringHash eventType) const
  9585. engine->RegisterObjectMethod(className, "bool CheckRemoteEvent(StringHash) const", AS_METHODPR(T, CheckRemoteEvent, (StringHash) const, bool), AS_CALL_THISCALL);
  9586. // bool Network::Connect(const String& address, unsigned short port, Scene* scene, const VariantMap& identity = Variant::emptyVariantMap)
  9587. engine->RegisterObjectMethod(className, "bool Connect(const String&in, uint16, Scene@+, const VariantMap&in = VariantMap())", AS_METHODPR(T, Connect, (const String&, unsigned short, Scene*, const VariantMap&), bool), AS_CALL_THISCALL);
  9588. // void Network::Disconnect(int waitMSec = 0)
  9589. engine->RegisterObjectMethod(className, "void Disconnect(int = 0)", AS_METHODPR(T, Disconnect, (int), void), AS_CALL_THISCALL);
  9590. // void Network::DiscoverHosts(unsigned port)
  9591. engine->RegisterObjectMethod(className, "void DiscoverHosts(uint)", AS_METHODPR(T, DiscoverHosts, (unsigned), void), AS_CALL_THISCALL);
  9592. // Vector<SharedPtr<Connection>> Network::GetClientConnections() const
  9593. engine->RegisterObjectMethod(className, "Array<Connection@>@ GetClientConnections() const", AS_FUNCTION_OBJFIRST(Network_VectorlesSharedPtrlesConnectiongregre_GetClientConnections_void_template<Network>), AS_CALL_CDECL_OBJFIRST);
  9594. engine->RegisterObjectMethod(className, "Array<Connection@>@ get_clientConnections() const", AS_FUNCTION_OBJFIRST(Network_VectorlesSharedPtrlesConnectiongregre_GetClientConnections_void_template<Network>), AS_CALL_CDECL_OBJFIRST);
  9595. // const String& Network::GetGUID() const
  9596. engine->RegisterObjectMethod(className, "const String& GetGUID() const", AS_METHODPR(T, GetGUID, () const, const String&), AS_CALL_THISCALL);
  9597. engine->RegisterObjectMethod(className, "const String& get_guid() const", AS_METHODPR(T, GetGUID, () const, const String&), AS_CALL_THISCALL);
  9598. // const String& Network::GetPackageCacheDir() const
  9599. engine->RegisterObjectMethod(className, "const String& GetPackageCacheDir() const", AS_METHODPR(T, GetPackageCacheDir, () const, const String&), AS_CALL_THISCALL);
  9600. engine->RegisterObjectMethod(className, "const String& get_packageCacheDir() const", AS_METHODPR(T, GetPackageCacheDir, () const, const String&), AS_CALL_THISCALL);
  9601. // Connection* Network::GetServerConnection() const
  9602. engine->RegisterObjectMethod(className, "Connection@+ GetServerConnection() const", AS_METHODPR(T, GetServerConnection, () const, Connection*), AS_CALL_THISCALL);
  9603. engine->RegisterObjectMethod(className, "Connection@+ get_serverConnection() const", AS_METHODPR(T, GetServerConnection, () const, Connection*), AS_CALL_THISCALL);
  9604. // int Network::GetSimulatedLatency() const
  9605. engine->RegisterObjectMethod(className, "int GetSimulatedLatency() const", AS_METHODPR(T, GetSimulatedLatency, () const, int), AS_CALL_THISCALL);
  9606. engine->RegisterObjectMethod(className, "int get_simulatedLatency() const", AS_METHODPR(T, GetSimulatedLatency, () const, int), AS_CALL_THISCALL);
  9607. // float Network::GetSimulatedPacketLoss() const
  9608. engine->RegisterObjectMethod(className, "float GetSimulatedPacketLoss() const", AS_METHODPR(T, GetSimulatedPacketLoss, () const, float), AS_CALL_THISCALL);
  9609. engine->RegisterObjectMethod(className, "float get_simulatedPacketLoss() const", AS_METHODPR(T, GetSimulatedPacketLoss, () const, float), AS_CALL_THISCALL);
  9610. // int Network::GetUpdateFps() const
  9611. engine->RegisterObjectMethod(className, "int GetUpdateFps() const", AS_METHODPR(T, GetUpdateFps, () const, int), AS_CALL_THISCALL);
  9612. engine->RegisterObjectMethod(className, "int get_updateFps() const", AS_METHODPR(T, GetUpdateFps, () const, int), AS_CALL_THISCALL);
  9613. // bool Network::IsServerRunning() const
  9614. engine->RegisterObjectMethod(className, "bool IsServerRunning() const", AS_METHODPR(T, IsServerRunning, () const, bool), AS_CALL_THISCALL);
  9615. engine->RegisterObjectMethod(className, "bool get_serverRunning() const", AS_METHODPR(T, IsServerRunning, () const, bool), AS_CALL_THISCALL);
  9616. // SharedPtr<HttpRequest> Network::MakeHttpRequest(const String& url, const String& verb = String::EMPTY, const Vector<String>& headers = Vector<String>(), const String& postData = String::EMPTY)
  9617. engine->RegisterObjectMethod(className, "HttpRequest@+ MakeHttpRequest(const String&in, const String&in = String::EMPTY, Array<String>@+ = null, const String&in = String::EMPTY)", AS_FUNCTION_OBJFIRST(Network_SharedPtrlesHttpRequestgre_MakeHttpRequest_constspStringamp_constspStringamp_constspVectorlesStringgreamp_constspStringamp_template<Network>), AS_CALL_CDECL_OBJFIRST);
  9618. // void Network::PostUpdate(float timeStep)
  9619. engine->RegisterObjectMethod(className, "void PostUpdate(float)", AS_METHODPR(T, PostUpdate, (float), void), AS_CALL_THISCALL);
  9620. // void Network::RegisterRemoteEvent(StringHash eventType)
  9621. engine->RegisterObjectMethod(className, "void RegisterRemoteEvent(StringHash)", AS_METHODPR(T, RegisterRemoteEvent, (StringHash), void), AS_CALL_THISCALL);
  9622. // void Network::SendPackageToClients(Scene* scene, PackageFile* package)
  9623. engine->RegisterObjectMethod(className, "void SendPackageToClients(Scene@+, PackageFile@+)", AS_METHODPR(T, SendPackageToClients, (Scene*, PackageFile*), void), AS_CALL_THISCALL);
  9624. // void Network::SetDiscoveryBeacon(const VariantMap& data)
  9625. engine->RegisterObjectMethod(className, "void SetDiscoveryBeacon(const VariantMap&in)", AS_METHODPR(T, SetDiscoveryBeacon, (const VariantMap&), void), AS_CALL_THISCALL);
  9626. // void Network::SetNATServerInfo(const String& address, unsigned short port)
  9627. engine->RegisterObjectMethod(className, "void SetNATServerInfo(const String&in, uint16)", AS_METHODPR(T, SetNATServerInfo, (const String&, unsigned short), void), AS_CALL_THISCALL);
  9628. // void Network::SetPackageCacheDir(const String& path)
  9629. engine->RegisterObjectMethod(className, "void SetPackageCacheDir(const String&in)", AS_METHODPR(T, SetPackageCacheDir, (const String&), void), AS_CALL_THISCALL);
  9630. engine->RegisterObjectMethod(className, "void set_packageCacheDir(const String&in)", AS_METHODPR(T, SetPackageCacheDir, (const String&), void), AS_CALL_THISCALL);
  9631. // void Network::SetPassword(const String& password)
  9632. engine->RegisterObjectMethod(className, "void SetPassword(const String&in)", AS_METHODPR(T, SetPassword, (const String&), void), AS_CALL_THISCALL);
  9633. // void Network::SetSimulatedLatency(int ms)
  9634. engine->RegisterObjectMethod(className, "void SetSimulatedLatency(int)", AS_METHODPR(T, SetSimulatedLatency, (int), void), AS_CALL_THISCALL);
  9635. engine->RegisterObjectMethod(className, "void set_simulatedLatency(int)", AS_METHODPR(T, SetSimulatedLatency, (int), void), AS_CALL_THISCALL);
  9636. // void Network::SetSimulatedPacketLoss(float probability)
  9637. engine->RegisterObjectMethod(className, "void SetSimulatedPacketLoss(float)", AS_METHODPR(T, SetSimulatedPacketLoss, (float), void), AS_CALL_THISCALL);
  9638. engine->RegisterObjectMethod(className, "void set_simulatedPacketLoss(float)", AS_METHODPR(T, SetSimulatedPacketLoss, (float), void), AS_CALL_THISCALL);
  9639. // void Network::SetUpdateFps(int fps)
  9640. engine->RegisterObjectMethod(className, "void SetUpdateFps(int)", AS_METHODPR(T, SetUpdateFps, (int), void), AS_CALL_THISCALL);
  9641. engine->RegisterObjectMethod(className, "void set_updateFps(int)", AS_METHODPR(T, SetUpdateFps, (int), void), AS_CALL_THISCALL);
  9642. // void Network::StartNATClient()
  9643. engine->RegisterObjectMethod(className, "void StartNATClient()", AS_METHODPR(T, StartNATClient, (), void), AS_CALL_THISCALL);
  9644. // bool Network::StartServer(unsigned short port, unsigned int maxConnections = 128)
  9645. engine->RegisterObjectMethod(className, "bool StartServer(uint16, uint = 128)", AS_METHODPR(T, StartServer, (unsigned short, unsigned int), bool), AS_CALL_THISCALL);
  9646. // void Network::StopServer()
  9647. engine->RegisterObjectMethod(className, "void StopServer()", AS_METHODPR(T, StopServer, (), void), AS_CALL_THISCALL);
  9648. // void Network::UnregisterAllRemoteEvents()
  9649. engine->RegisterObjectMethod(className, "void UnregisterAllRemoteEvents()", AS_METHODPR(T, UnregisterAllRemoteEvents, (), void), AS_CALL_THISCALL);
  9650. // void Network::UnregisterRemoteEvent(StringHash eventType)
  9651. engine->RegisterObjectMethod(className, "void UnregisterRemoteEvent(StringHash)", AS_METHODPR(T, UnregisterRemoteEvent, (StringHash), void), AS_CALL_THISCALL);
  9652. // void Network::Update(float timeStep)
  9653. engine->RegisterObjectMethod(className, "void Update(float)", AS_METHODPR(T, Update, (float), void), AS_CALL_THISCALL);
  9654. #ifdef REGISTER_MEMBERS_MANUAL_PART_Network
  9655. REGISTER_MEMBERS_MANUAL_PART_Network();
  9656. #endif
  9657. }
  9658. #endif // def URHO3D_NETWORK
  9659. #ifdef URHO3D_PHYSICS
  9660. // void ConvexData::BuildHull(const PODVector<Vector3>& vertices)
  9661. template <class T> void ConvexData_void_BuildHull_constspPODVectorlesVector3greamp_template(T* _ptr, CScriptArray* vertices_conv)
  9662. {
  9663. PODVector<Vector3> vertices = ArrayToPODVector<Vector3>(vertices_conv);
  9664. _ptr->BuildHull(vertices);
  9665. }
  9666. // struct ConvexData | File: ../Physics/CollisionShape.h
  9667. template <class T> void RegisterMembers_ConvexData(asIScriptEngine* engine, const char* className)
  9668. {
  9669. RegisterMembers_CollisionGeometryData<T>(engine, className);
  9670. // void ConvexData::BuildHull(const PODVector<Vector3>& vertices)
  9671. engine->RegisterObjectMethod(className, "void BuildHull(Array<Vector3>@+)", AS_FUNCTION_OBJFIRST(ConvexData_void_BuildHull_constspPODVectorlesVector3greamp_template<ConvexData>), AS_CALL_CDECL_OBJFIRST);
  9672. // SharedArrayPtr<Vector3> ConvexData::vertexData_
  9673. // Error: type "SharedArrayPtr<Vector3>" can not automatically bind
  9674. // SharedArrayPtr<unsigned> ConvexData::indexData_
  9675. // Error: type "SharedArrayPtr<unsigned>" can not automatically bind
  9676. // unsigned ConvexData::vertexCount_
  9677. engine->RegisterObjectProperty(className, "uint vertexCount", offsetof(T, vertexCount_));
  9678. // unsigned ConvexData::indexCount_
  9679. engine->RegisterObjectProperty(className, "uint indexCount", offsetof(T, indexCount_));
  9680. #ifdef REGISTER_MEMBERS_MANUAL_PART_ConvexData
  9681. REGISTER_MEMBERS_MANUAL_PART_ConvexData();
  9682. #endif
  9683. }
  9684. // struct GImpactMeshData | File: ../Physics/CollisionShape.h
  9685. template <class T> void RegisterMembers_GImpactMeshData(asIScriptEngine* engine, const char* className)
  9686. {
  9687. RegisterMembers_CollisionGeometryData<T>(engine, className);
  9688. // UniquePtr<TriangleMeshInterface> GImpactMeshData::meshInterface_
  9689. // Error: type "UniquePtr<TriangleMeshInterface>" can not automatically bind
  9690. #ifdef REGISTER_MEMBERS_MANUAL_PART_GImpactMeshData
  9691. REGISTER_MEMBERS_MANUAL_PART_GImpactMeshData();
  9692. #endif
  9693. }
  9694. // struct HeightfieldData | File: ../Physics/CollisionShape.h
  9695. template <class T> void RegisterMembers_HeightfieldData(asIScriptEngine* engine, const char* className)
  9696. {
  9697. RegisterMembers_CollisionGeometryData<T>(engine, className);
  9698. // SharedArrayPtr<float> HeightfieldData::heightData_
  9699. // Error: type "SharedArrayPtr<float>" can not automatically bind
  9700. // Vector3 HeightfieldData::spacing_
  9701. engine->RegisterObjectProperty(className, "Vector3 spacing", offsetof(T, spacing_));
  9702. // IntVector2 HeightfieldData::size_
  9703. engine->RegisterObjectProperty(className, "IntVector2 size", offsetof(T, size_));
  9704. // float HeightfieldData::minHeight_
  9705. engine->RegisterObjectProperty(className, "float minHeight", offsetof(T, minHeight_));
  9706. // float HeightfieldData::maxHeight_
  9707. engine->RegisterObjectProperty(className, "float maxHeight", offsetof(T, maxHeight_));
  9708. #ifdef REGISTER_MEMBERS_MANUAL_PART_HeightfieldData
  9709. REGISTER_MEMBERS_MANUAL_PART_HeightfieldData();
  9710. #endif
  9711. }
  9712. // struct TriangleMeshData | File: ../Physics/CollisionShape.h
  9713. template <class T> void RegisterMembers_TriangleMeshData(asIScriptEngine* engine, const char* className)
  9714. {
  9715. RegisterMembers_CollisionGeometryData<T>(engine, className);
  9716. // UniquePtr<TriangleMeshInterface> TriangleMeshData::meshInterface_
  9717. // Error: type "UniquePtr<TriangleMeshInterface>" can not automatically bind
  9718. // UniquePtr<btBvhTriangleMeshShape> TriangleMeshData::shape_
  9719. // Error: type "UniquePtr<btBvhTriangleMeshShape>" can not automatically bind
  9720. // UniquePtr<btTriangleInfoMap> TriangleMeshData::infoMap_
  9721. // Error: type "UniquePtr<btTriangleInfoMap>" can not automatically bind
  9722. #ifdef REGISTER_MEMBERS_MANUAL_PART_TriangleMeshData
  9723. REGISTER_MEMBERS_MANUAL_PART_TriangleMeshData();
  9724. #endif
  9725. }
  9726. #endif // def URHO3D_PHYSICS
  9727. #ifdef URHO3D_URHO2D
  9728. // class TmxImageLayer2D | File: ../Urho2D/TmxFile2D.h
  9729. template <class T> void RegisterMembers_TmxImageLayer2D(asIScriptEngine* engine, const char* className)
  9730. {
  9731. RegisterMembers_TmxLayer2D<T>(engine, className);
  9732. // const Vector2& TmxImageLayer2D::GetPosition() const
  9733. engine->RegisterObjectMethod(className, "const Vector2& GetPosition() const", AS_METHODPR(T, GetPosition, () const, const Vector2&), AS_CALL_THISCALL);
  9734. // const String& TmxImageLayer2D::GetSource() const
  9735. engine->RegisterObjectMethod(className, "const String& GetSource() const", AS_METHODPR(T, GetSource, () const, const String&), AS_CALL_THISCALL);
  9736. // Sprite2D* TmxImageLayer2D::GetSprite() const
  9737. engine->RegisterObjectMethod(className, "Sprite2D@+ GetSprite() const", AS_METHODPR(T, GetSprite, () const, Sprite2D*), AS_CALL_THISCALL);
  9738. // bool TmxImageLayer2D::Load(const XMLElement& element, const TileMapInfo2D& info)
  9739. engine->RegisterObjectMethod(className, "bool Load(const XMLElement&in, const TileMapInfo2D&in)", AS_METHODPR(T, Load, (const XMLElement&, const TileMapInfo2D&), bool), AS_CALL_THISCALL);
  9740. #ifdef REGISTER_MEMBERS_MANUAL_PART_TmxImageLayer2D
  9741. REGISTER_MEMBERS_MANUAL_PART_TmxImageLayer2D();
  9742. #endif
  9743. }
  9744. // class TmxObjectGroup2D | File: ../Urho2D/TmxFile2D.h
  9745. template <class T> void RegisterMembers_TmxObjectGroup2D(asIScriptEngine* engine, const char* className)
  9746. {
  9747. RegisterMembers_TmxLayer2D<T>(engine, className);
  9748. // void TmxObjectGroup2D::StoreObject(const XMLElement& objectElem, const SharedPtr<TileMapObject2D>& object, const TileMapInfo2D& info, bool isTile = false)
  9749. // Error: type "const SharedPtr<TileMapObject2D>&" can not automatically bind
  9750. // unsigned TmxObjectGroup2D::GetNumObjects() const
  9751. engine->RegisterObjectMethod(className, "uint GetNumObjects() const", AS_METHODPR(T, GetNumObjects, () const, unsigned), AS_CALL_THISCALL);
  9752. // TileMapObject2D* TmxObjectGroup2D::GetObject(unsigned index) const
  9753. engine->RegisterObjectMethod(className, "TileMapObject2D@+ GetObject(uint) const", AS_METHODPR(T, GetObject, (unsigned) const, TileMapObject2D*), AS_CALL_THISCALL);
  9754. // bool TmxObjectGroup2D::Load(const XMLElement& element, const TileMapInfo2D& info)
  9755. engine->RegisterObjectMethod(className, "bool Load(const XMLElement&in, const TileMapInfo2D&in)", AS_METHODPR(T, Load, (const XMLElement&, const TileMapInfo2D&), bool), AS_CALL_THISCALL);
  9756. #ifdef REGISTER_MEMBERS_MANUAL_PART_TmxObjectGroup2D
  9757. REGISTER_MEMBERS_MANUAL_PART_TmxObjectGroup2D();
  9758. #endif
  9759. }
  9760. // class TmxTileLayer2D | File: ../Urho2D/TmxFile2D.h
  9761. template <class T> void RegisterMembers_TmxTileLayer2D(asIScriptEngine* engine, const char* className)
  9762. {
  9763. RegisterMembers_TmxLayer2D<T>(engine, className);
  9764. // Tile2D* TmxTileLayer2D::GetTile(int x, int y) const
  9765. engine->RegisterObjectMethod(className, "Tile2D@+ GetTile(int, int) const", AS_METHODPR(T, GetTile, (int, int) const, Tile2D*), AS_CALL_THISCALL);
  9766. // bool TmxTileLayer2D::Load(const XMLElement& element, const TileMapInfo2D& info)
  9767. engine->RegisterObjectMethod(className, "bool Load(const XMLElement&in, const TileMapInfo2D&in)", AS_METHODPR(T, Load, (const XMLElement&, const TileMapInfo2D&), bool), AS_CALL_THISCALL);
  9768. #ifdef REGISTER_MEMBERS_MANUAL_PART_TmxTileLayer2D
  9769. REGISTER_MEMBERS_MANUAL_PART_TmxTileLayer2D();
  9770. #endif
  9771. }
  9772. #endif // def URHO3D_URHO2D
  9773. // class Animatable | File: ../Scene/Animatable.h
  9774. template <class T> void RegisterMembers_Animatable(asIScriptEngine* engine, const char* className)
  9775. {
  9776. RegisterMembers_Serializable<T>(engine, className);
  9777. // bool Animatable::GetAnimationEnabled() const
  9778. engine->RegisterObjectMethod(className, "bool GetAnimationEnabled() const", AS_METHODPR(T, GetAnimationEnabled, () const, bool), AS_CALL_THISCALL);
  9779. engine->RegisterObjectMethod(className, "bool get_animationEnabled() const", AS_METHODPR(T, GetAnimationEnabled, () const, bool), AS_CALL_THISCALL);
  9780. // ValueAnimation* Animatable::GetAttributeAnimation(const String& name) const
  9781. engine->RegisterObjectMethod(className, "ValueAnimation@+ GetAttributeAnimation(const String&in) const", AS_METHODPR(T, GetAttributeAnimation, (const String&) const, ValueAnimation*), AS_CALL_THISCALL);
  9782. // float Animatable::GetAttributeAnimationSpeed(const String& name) const
  9783. engine->RegisterObjectMethod(className, "float GetAttributeAnimationSpeed(const String&in) const", AS_METHODPR(T, GetAttributeAnimationSpeed, (const String&) const, float), AS_CALL_THISCALL);
  9784. // float Animatable::GetAttributeAnimationTime(const String& name) const
  9785. engine->RegisterObjectMethod(className, "float GetAttributeAnimationTime(const String&in) const", AS_METHODPR(T, GetAttributeAnimationTime, (const String&) const, float), AS_CALL_THISCALL);
  9786. // WrapMode Animatable::GetAttributeAnimationWrapMode(const String& name) const
  9787. engine->RegisterObjectMethod(className, "WrapMode GetAttributeAnimationWrapMode(const String&in) const", AS_METHODPR(T, GetAttributeAnimationWrapMode, (const String&) const, WrapMode), AS_CALL_THISCALL);
  9788. // ObjectAnimation* Animatable::GetObjectAnimation() const
  9789. engine->RegisterObjectMethod(className, "ObjectAnimation@+ GetObjectAnimation() const", AS_METHODPR(T, GetObjectAnimation, () const, ObjectAnimation*), AS_CALL_THISCALL);
  9790. engine->RegisterObjectMethod(className, "ObjectAnimation@+ get_objectAnimation() const", AS_METHODPR(T, GetObjectAnimation, () const, ObjectAnimation*), AS_CALL_THISCALL);
  9791. // ResourceRef Animatable::GetObjectAnimationAttr() const
  9792. engine->RegisterObjectMethod(className, "ResourceRef GetObjectAnimationAttr() const", AS_METHODPR(T, GetObjectAnimationAttr, () const, ResourceRef), AS_CALL_THISCALL);
  9793. // void Animatable::RemoveAttributeAnimation(const String& name)
  9794. engine->RegisterObjectMethod(className, "void RemoveAttributeAnimation(const String&in)", AS_METHODPR(T, RemoveAttributeAnimation, (const String&), void), AS_CALL_THISCALL);
  9795. // void Animatable::RemoveObjectAnimation()
  9796. engine->RegisterObjectMethod(className, "void RemoveObjectAnimation()", AS_METHODPR(T, RemoveObjectAnimation, (), void), AS_CALL_THISCALL);
  9797. // void Animatable::SetAnimationEnabled(bool enable)
  9798. engine->RegisterObjectMethod(className, "void SetAnimationEnabled(bool)", AS_METHODPR(T, SetAnimationEnabled, (bool), void), AS_CALL_THISCALL);
  9799. engine->RegisterObjectMethod(className, "void set_animationEnabled(bool)", AS_METHODPR(T, SetAnimationEnabled, (bool), void), AS_CALL_THISCALL);
  9800. // void Animatable::SetAnimationTime(float time)
  9801. engine->RegisterObjectMethod(className, "void SetAnimationTime(float)", AS_METHODPR(T, SetAnimationTime, (float), void), AS_CALL_THISCALL);
  9802. // void Animatable::SetAttributeAnimation(const String& name, ValueAnimation* attributeAnimation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f)
  9803. engine->RegisterObjectMethod(className, "void SetAttributeAnimation(const String&in, ValueAnimation@+, WrapMode = WM_LOOP, float = 1.0f)", AS_METHODPR(T, SetAttributeAnimation, (const String&, ValueAnimation*, WrapMode, float), void), AS_CALL_THISCALL);
  9804. // void Animatable::SetAttributeAnimationSpeed(const String& name, float speed)
  9805. engine->RegisterObjectMethod(className, "void SetAttributeAnimationSpeed(const String&in, float)", AS_METHODPR(T, SetAttributeAnimationSpeed, (const String&, float), void), AS_CALL_THISCALL);
  9806. // void Animatable::SetAttributeAnimationTime(const String& name, float time)
  9807. engine->RegisterObjectMethod(className, "void SetAttributeAnimationTime(const String&in, float)", AS_METHODPR(T, SetAttributeAnimationTime, (const String&, float), void), AS_CALL_THISCALL);
  9808. // void Animatable::SetAttributeAnimationWrapMode(const String& name, WrapMode wrapMode)
  9809. engine->RegisterObjectMethod(className, "void SetAttributeAnimationWrapMode(const String&in, WrapMode)", AS_METHODPR(T, SetAttributeAnimationWrapMode, (const String&, WrapMode), void), AS_CALL_THISCALL);
  9810. // void Animatable::SetObjectAnimation(ObjectAnimation* objectAnimation)
  9811. engine->RegisterObjectMethod(className, "void SetObjectAnimation(ObjectAnimation@+)", AS_METHODPR(T, SetObjectAnimation, (ObjectAnimation*), void), AS_CALL_THISCALL);
  9812. engine->RegisterObjectMethod(className, "void set_objectAnimation(ObjectAnimation@+)", AS_METHODPR(T, SetObjectAnimation, (ObjectAnimation*), void), AS_CALL_THISCALL);
  9813. // void Animatable::SetObjectAnimationAttr(const ResourceRef& value)
  9814. engine->RegisterObjectMethod(className, "void SetObjectAnimationAttr(const ResourceRef&in)", AS_METHODPR(T, SetObjectAnimationAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  9815. // static void Animatable::RegisterObject(Context* context)
  9816. // Not registered because have @nobind mark
  9817. #ifdef REGISTER_MEMBERS_MANUAL_PART_Animatable
  9818. REGISTER_MEMBERS_MANUAL_PART_Animatable();
  9819. #endif
  9820. }
  9821. // class EventProfiler | File: ../Core/EventProfiler.h
  9822. template <class T> void RegisterMembers_EventProfiler(asIScriptEngine* engine, const char* className)
  9823. {
  9824. RegisterMembers_Profiler<T>(engine, className);
  9825. // void EventProfiler::BeginBlock(StringHash eventID)
  9826. engine->RegisterObjectMethod(className, "void BeginBlock(StringHash)", AS_METHODPR(T, BeginBlock, (StringHash), void), AS_CALL_THISCALL);
  9827. // static void EventProfiler::SetActive(bool newActive)
  9828. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("void SetActive(bool)", AS_FUNCTIONPR(T::SetActive, (bool), void), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  9829. // static bool EventProfiler::IsActive()
  9830. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("bool IsActive()", AS_FUNCTIONPR(T::IsActive, (), bool), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  9831. #ifdef REGISTER_MEMBERS_MANUAL_PART_EventProfiler
  9832. REGISTER_MEMBERS_MANUAL_PART_EventProfiler();
  9833. #endif
  9834. }
  9835. // class Font | File: ../UI/Font.h
  9836. template <class T> void RegisterMembers_Font(asIScriptEngine* engine, const char* className)
  9837. {
  9838. RegisterMembers_Resource<T>(engine, className);
  9839. // const IntVector2& Font::GetAbsoluteGlyphOffset() const
  9840. engine->RegisterObjectMethod(className, "const IntVector2& GetAbsoluteGlyphOffset() const", AS_METHODPR(T, GetAbsoluteGlyphOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  9841. engine->RegisterObjectMethod(className, "const IntVector2& get_absoluteGlyphOffset() const", AS_METHODPR(T, GetAbsoluteGlyphOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  9842. // FontFace* Font::GetFace(float pointSize)
  9843. engine->RegisterObjectMethod(className, "FontFace@+ GetFace(float)", AS_METHODPR(T, GetFace, (float), FontFace*), AS_CALL_THISCALL);
  9844. // FontType Font::GetFontType() const
  9845. engine->RegisterObjectMethod(className, "FontType GetFontType() const", AS_METHODPR(T, GetFontType, () const, FontType), AS_CALL_THISCALL);
  9846. engine->RegisterObjectMethod(className, "FontType get_fontType() const", AS_METHODPR(T, GetFontType, () const, FontType), AS_CALL_THISCALL);
  9847. // const Vector2& Font::GetScaledGlyphOffset() const
  9848. engine->RegisterObjectMethod(className, "const Vector2& GetScaledGlyphOffset() const", AS_METHODPR(T, GetScaledGlyphOffset, () const, const Vector2&), AS_CALL_THISCALL);
  9849. engine->RegisterObjectMethod(className, "const Vector2& get_scaledGlyphOffset() const", AS_METHODPR(T, GetScaledGlyphOffset, () const, const Vector2&), AS_CALL_THISCALL);
  9850. // IntVector2 Font::GetTotalGlyphOffset(float pointSize) const
  9851. engine->RegisterObjectMethod(className, "IntVector2 GetTotalGlyphOffset(float) const", AS_METHODPR(T, GetTotalGlyphOffset, (float) const, IntVector2), AS_CALL_THISCALL);
  9852. // bool Font::IsSDFFont() const
  9853. engine->RegisterObjectMethod(className, "bool IsSDFFont() const", AS_METHODPR(T, IsSDFFont, () const, bool), AS_CALL_THISCALL);
  9854. // void Font::ReleaseFaces()
  9855. engine->RegisterObjectMethod(className, "void ReleaseFaces()", AS_METHODPR(T, ReleaseFaces, (), void), AS_CALL_THISCALL);
  9856. // bool Font::SaveXML(Serializer& dest, int pointSize, bool usedGlyphs = false, const String& indentation = "\t")
  9857. engine->RegisterObjectMethod(className, "bool SaveXML(Serializer&, int, bool = false, const String&in = \"\t\")", AS_METHODPR(T, SaveXML, (Serializer&, int, bool, const String&), bool), AS_CALL_THISCALL);
  9858. // void Font::SetAbsoluteGlyphOffset(const IntVector2& offset)
  9859. engine->RegisterObjectMethod(className, "void SetAbsoluteGlyphOffset(const IntVector2&in)", AS_METHODPR(T, SetAbsoluteGlyphOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  9860. engine->RegisterObjectMethod(className, "void set_absoluteGlyphOffset(const IntVector2&in)", AS_METHODPR(T, SetAbsoluteGlyphOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  9861. // void Font::SetScaledGlyphOffset(const Vector2& offset)
  9862. engine->RegisterObjectMethod(className, "void SetScaledGlyphOffset(const Vector2&in)", AS_METHODPR(T, SetScaledGlyphOffset, (const Vector2&), void), AS_CALL_THISCALL);
  9863. engine->RegisterObjectMethod(className, "void set_scaledGlyphOffset(const Vector2&in)", AS_METHODPR(T, SetScaledGlyphOffset, (const Vector2&), void), AS_CALL_THISCALL);
  9864. // static void Font::RegisterObject(Context* context)
  9865. // Not registered because have @nobind mark
  9866. #ifdef REGISTER_MEMBERS_MANUAL_PART_Font
  9867. REGISTER_MEMBERS_MANUAL_PART_Font();
  9868. #endif
  9869. }
  9870. // SharedPtr<Image> Image::ConvertToRGBA() const
  9871. template <class T> Image* Image_SharedPtrlesImagegre_ConvertToRGBA_void_template(T* _ptr)
  9872. {
  9873. SharedPtr<Image> result = _ptr->ConvertToRGBA();
  9874. return result.Detach();
  9875. }
  9876. // SharedPtr<Image> Image::GetDecompressedImage() const
  9877. template <class T> Image* Image_SharedPtrlesImagegre_GetDecompressedImage_void_template(T* _ptr)
  9878. {
  9879. SharedPtr<Image> result = _ptr->GetDecompressedImage();
  9880. return result.Detach();
  9881. }
  9882. // SharedPtr<Image> Image::GetNextLevel() const
  9883. template <class T> Image* Image_SharedPtrlesImagegre_GetNextLevel_void_template(T* _ptr)
  9884. {
  9885. SharedPtr<Image> result = _ptr->GetNextLevel();
  9886. return result.Detach();
  9887. }
  9888. // SharedPtr<Image> Image::GetNextSibling() const
  9889. template <class T> Image* Image_SharedPtrlesImagegre_GetNextSibling_void_template(T* _ptr)
  9890. {
  9891. SharedPtr<Image> result = _ptr->GetNextSibling();
  9892. return result.Detach();
  9893. }
  9894. // class Image | File: ../Resource/Image.h
  9895. template <class T> void RegisterMembers_Image(asIScriptEngine* engine, const char* className)
  9896. {
  9897. RegisterMembers_Resource<T>(engine, className);
  9898. // unsigned char* Image::GetData() const
  9899. // Error: type "unsigned char*" can not automatically bind
  9900. // void Image::GetLevels(PODVector<Image*>& levels)
  9901. // Error: type "PODVector<Image*>&" can not automatically bind
  9902. // void Image::GetLevels(PODVector<const Image*>& levels) const
  9903. // Error: type "PODVector<const Image*>&" can not automatically bind
  9904. // SDL_Surface* Image::GetSDLSurface(const IntRect& rect = IntRect::ZERO) const
  9905. // Error: type "SDL_Surface*" can not automatically bind
  9906. // void Image::SetData(const unsigned char* pixelData)
  9907. // Error: type "const unsigned char*" can not automatically bind
  9908. // void Image::CleanupLevels()
  9909. engine->RegisterObjectMethod(className, "void CleanupLevels()", AS_METHODPR(T, CleanupLevels, (), void), AS_CALL_THISCALL);
  9910. // void Image::Clear(const Color& color)
  9911. engine->RegisterObjectMethod(className, "void Clear(const Color&in)", AS_METHODPR(T, Clear, (const Color&), void), AS_CALL_THISCALL);
  9912. // void Image::ClearInt(unsigned uintColor)
  9913. engine->RegisterObjectMethod(className, "void ClearInt(uint)", AS_METHODPR(T, ClearInt, (unsigned), void), AS_CALL_THISCALL);
  9914. // SharedPtr<Image> Image::ConvertToRGBA() const
  9915. engine->RegisterObjectMethod(className, "Image@+ ConvertToRGBA() const", AS_FUNCTION_OBJFIRST(Image_SharedPtrlesImagegre_ConvertToRGBA_void_template<Image>), AS_CALL_CDECL_OBJFIRST);
  9916. // bool Image::FlipHorizontal()
  9917. engine->RegisterObjectMethod(className, "bool FlipHorizontal()", AS_METHODPR(T, FlipHorizontal, (), bool), AS_CALL_THISCALL);
  9918. // bool Image::FlipVertical()
  9919. engine->RegisterObjectMethod(className, "bool FlipVertical()", AS_METHODPR(T, FlipVertical, (), bool), AS_CALL_THISCALL);
  9920. // unsigned Image::GetComponents() const
  9921. engine->RegisterObjectMethod(className, "uint GetComponents() const", AS_METHODPR(T, GetComponents, () const, unsigned), AS_CALL_THISCALL);
  9922. engine->RegisterObjectMethod(className, "uint get_components() const", AS_METHODPR(T, GetComponents, () const, unsigned), AS_CALL_THISCALL);
  9923. // CompressedFormat Image::GetCompressedFormat() const
  9924. engine->RegisterObjectMethod(className, "CompressedFormat GetCompressedFormat() const", AS_METHODPR(T, GetCompressedFormat, () const, CompressedFormat), AS_CALL_THISCALL);
  9925. engine->RegisterObjectMethod(className, "CompressedFormat get_compressedFormat() const", AS_METHODPR(T, GetCompressedFormat, () const, CompressedFormat), AS_CALL_THISCALL);
  9926. // CompressedLevel Image::GetCompressedLevel(unsigned index) const
  9927. engine->RegisterObjectMethod(className, "CompressedLevel GetCompressedLevel(uint) const", AS_METHODPR(T, GetCompressedLevel, (unsigned) const, CompressedLevel), AS_CALL_THISCALL);
  9928. // SharedPtr<Image> Image::GetDecompressedImage() const
  9929. engine->RegisterObjectMethod(className, "Image@+ GetDecompressedImage() const", AS_FUNCTION_OBJFIRST(Image_SharedPtrlesImagegre_GetDecompressedImage_void_template<Image>), AS_CALL_CDECL_OBJFIRST);
  9930. // int Image::GetDepth() const
  9931. engine->RegisterObjectMethod(className, "int GetDepth() const", AS_METHODPR(T, GetDepth, () const, int), AS_CALL_THISCALL);
  9932. engine->RegisterObjectMethod(className, "int get_depth() const", AS_METHODPR(T, GetDepth, () const, int), AS_CALL_THISCALL);
  9933. // int Image::GetHeight() const
  9934. engine->RegisterObjectMethod(className, "int GetHeight() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  9935. engine->RegisterObjectMethod(className, "int get_height() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  9936. // SharedPtr<Image> Image::GetNextLevel() const
  9937. engine->RegisterObjectMethod(className, "Image@+ GetNextLevel() const", AS_FUNCTION_OBJFIRST(Image_SharedPtrlesImagegre_GetNextLevel_void_template<Image>), AS_CALL_CDECL_OBJFIRST);
  9938. // SharedPtr<Image> Image::GetNextSibling() const
  9939. engine->RegisterObjectMethod(className, "Image@+ GetNextSibling() const", AS_FUNCTION_OBJFIRST(Image_SharedPtrlesImagegre_GetNextSibling_void_template<Image>), AS_CALL_CDECL_OBJFIRST);
  9940. // unsigned Image::GetNumCompressedLevels() const
  9941. engine->RegisterObjectMethod(className, "uint GetNumCompressedLevels() const", AS_METHODPR(T, GetNumCompressedLevels, () const, unsigned), AS_CALL_THISCALL);
  9942. engine->RegisterObjectMethod(className, "uint get_numCompressedLevels() const", AS_METHODPR(T, GetNumCompressedLevels, () const, unsigned), AS_CALL_THISCALL);
  9943. // Color Image::GetPixel(int x, int y) const
  9944. engine->RegisterObjectMethod(className, "Color GetPixel(int, int) const", AS_METHODPR(T, GetPixel, (int, int) const, Color), AS_CALL_THISCALL);
  9945. // Color Image::GetPixel(int x, int y, int z) const
  9946. engine->RegisterObjectMethod(className, "Color GetPixel(int, int, int) const", AS_METHODPR(T, GetPixel, (int, int, int) const, Color), AS_CALL_THISCALL);
  9947. // Color Image::GetPixelBilinear(float x, float y) const
  9948. engine->RegisterObjectMethod(className, "Color GetPixelBilinear(float, float) const", AS_METHODPR(T, GetPixelBilinear, (float, float) const, Color), AS_CALL_THISCALL);
  9949. // unsigned Image::GetPixelInt(int x, int y) const
  9950. engine->RegisterObjectMethod(className, "uint GetPixelInt(int, int) const", AS_METHODPR(T, GetPixelInt, (int, int) const, unsigned), AS_CALL_THISCALL);
  9951. // unsigned Image::GetPixelInt(int x, int y, int z) const
  9952. engine->RegisterObjectMethod(className, "uint GetPixelInt(int, int, int) const", AS_METHODPR(T, GetPixelInt, (int, int, int) const, unsigned), AS_CALL_THISCALL);
  9953. // Color Image::GetPixelTrilinear(float x, float y, float z) const
  9954. engine->RegisterObjectMethod(className, "Color GetPixelTrilinear(float, float, float) const", AS_METHODPR(T, GetPixelTrilinear, (float, float, float) const, Color), AS_CALL_THISCALL);
  9955. // Image* Image::GetSubimage(const IntRect& rect) const
  9956. engine->RegisterObjectMethod(className, "Image@+ GetSubimage(const IntRect&in) const", AS_METHODPR(T, GetSubimage, (const IntRect&) const, Image*), AS_CALL_THISCALL);
  9957. // int Image::GetWidth() const
  9958. engine->RegisterObjectMethod(className, "int GetWidth() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  9959. engine->RegisterObjectMethod(className, "int get_width() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  9960. // bool Image::HasAlphaChannel() const
  9961. engine->RegisterObjectMethod(className, "bool HasAlphaChannel() const", AS_METHODPR(T, HasAlphaChannel, () const, bool), AS_CALL_THISCALL);
  9962. engine->RegisterObjectMethod(className, "bool get_hasAlphaChannel() const", AS_METHODPR(T, HasAlphaChannel, () const, bool), AS_CALL_THISCALL);
  9963. // bool Image::IsArray() const
  9964. engine->RegisterObjectMethod(className, "bool IsArray() const", AS_METHODPR(T, IsArray, () const, bool), AS_CALL_THISCALL);
  9965. engine->RegisterObjectMethod(className, "bool get_array() const", AS_METHODPR(T, IsArray, () const, bool), AS_CALL_THISCALL);
  9966. // bool Image::IsCompressed() const
  9967. engine->RegisterObjectMethod(className, "bool IsCompressed() const", AS_METHODPR(T, IsCompressed, () const, bool), AS_CALL_THISCALL);
  9968. engine->RegisterObjectMethod(className, "bool get_compressed() const", AS_METHODPR(T, IsCompressed, () const, bool), AS_CALL_THISCALL);
  9969. // bool Image::IsCubemap() const
  9970. engine->RegisterObjectMethod(className, "bool IsCubemap() const", AS_METHODPR(T, IsCubemap, () const, bool), AS_CALL_THISCALL);
  9971. engine->RegisterObjectMethod(className, "bool get_cubemap() const", AS_METHODPR(T, IsCubemap, () const, bool), AS_CALL_THISCALL);
  9972. // bool Image::IsSRGB() const
  9973. engine->RegisterObjectMethod(className, "bool IsSRGB() const", AS_METHODPR(T, IsSRGB, () const, bool), AS_CALL_THISCALL);
  9974. engine->RegisterObjectMethod(className, "bool get_sRGB() const", AS_METHODPR(T, IsSRGB, () const, bool), AS_CALL_THISCALL);
  9975. // bool Image::LoadColorLUT(Deserializer& source)
  9976. engine->RegisterObjectMethod(className, "bool LoadColorLUT(Deserializer&)", AS_METHODPR(T, LoadColorLUT, (Deserializer&), bool), AS_CALL_THISCALL);
  9977. // void Image::PrecalculateLevels()
  9978. engine->RegisterObjectMethod(className, "void PrecalculateLevels()", AS_METHODPR(T, PrecalculateLevels, (), void), AS_CALL_THISCALL);
  9979. // bool Image::Resize(int width, int height)
  9980. engine->RegisterObjectMethod(className, "bool Resize(int, int)", AS_METHODPR(T, Resize, (int, int), bool), AS_CALL_THISCALL);
  9981. // bool Image::SaveBMP(const String& fileName) const
  9982. engine->RegisterObjectMethod(className, "bool SaveBMP(const String&in) const", AS_METHODPR(T, SaveBMP, (const String&) const, bool), AS_CALL_THISCALL);
  9983. // bool Image::SaveDDS(const String& fileName) const
  9984. engine->RegisterObjectMethod(className, "bool SaveDDS(const String&in) const", AS_METHODPR(T, SaveDDS, (const String&) const, bool), AS_CALL_THISCALL);
  9985. // bool Image::SaveJPG(const String& fileName, int quality) const
  9986. engine->RegisterObjectMethod(className, "bool SaveJPG(const String&in, int) const", AS_METHODPR(T, SaveJPG, (const String&, int) const, bool), AS_CALL_THISCALL);
  9987. // bool Image::SavePNG(const String& fileName) const
  9988. engine->RegisterObjectMethod(className, "bool SavePNG(const String&in) const", AS_METHODPR(T, SavePNG, (const String&) const, bool), AS_CALL_THISCALL);
  9989. // bool Image::SaveTGA(const String& fileName) const
  9990. engine->RegisterObjectMethod(className, "bool SaveTGA(const String&in) const", AS_METHODPR(T, SaveTGA, (const String&) const, bool), AS_CALL_THISCALL);
  9991. // bool Image::SaveWEBP(const String& fileName, float compression = 0.0f) const
  9992. engine->RegisterObjectMethod(className, "bool SaveWEBP(const String&in, float = 0.0f) const", AS_METHODPR(T, SaveWEBP, (const String&, float) const, bool), AS_CALL_THISCALL);
  9993. // void Image::SetPixel(int x, int y, const Color& color)
  9994. engine->RegisterObjectMethod(className, "void SetPixel(int, int, const Color&in)", AS_METHODPR(T, SetPixel, (int, int, const Color&), void), AS_CALL_THISCALL);
  9995. // void Image::SetPixel(int x, int y, int z, const Color& color)
  9996. engine->RegisterObjectMethod(className, "void SetPixel(int, int, int, const Color&in)", AS_METHODPR(T, SetPixel, (int, int, int, const Color&), void), AS_CALL_THISCALL);
  9997. // void Image::SetPixelInt(int x, int y, unsigned uintColor)
  9998. engine->RegisterObjectMethod(className, "void SetPixelInt(int, int, uint)", AS_METHODPR(T, SetPixelInt, (int, int, unsigned), void), AS_CALL_THISCALL);
  9999. // void Image::SetPixelInt(int x, int y, int z, unsigned uintColor)
  10000. engine->RegisterObjectMethod(className, "void SetPixelInt(int, int, int, uint)", AS_METHODPR(T, SetPixelInt, (int, int, int, unsigned), void), AS_CALL_THISCALL);
  10001. // bool Image::SetSize(int width, int height, unsigned components)
  10002. engine->RegisterObjectMethod(className, "bool SetSize(int, int, uint)", AS_METHODPR(T, SetSize, (int, int, unsigned), bool), AS_CALL_THISCALL);
  10003. // bool Image::SetSize(int width, int height, int depth, unsigned components)
  10004. engine->RegisterObjectMethod(className, "bool SetSize(int, int, int, uint)", AS_METHODPR(T, SetSize, (int, int, int, unsigned), bool), AS_CALL_THISCALL);
  10005. // bool Image::SetSubimage(const Image* image, const IntRect& rect)
  10006. engine->RegisterObjectMethod(className, "bool SetSubimage(Image@+, const IntRect&in)", AS_METHODPR(T, SetSubimage, (const Image*, const IntRect&), bool), AS_CALL_THISCALL);
  10007. // static void Image::RegisterObject(Context* context)
  10008. // Not registered because have @nobind mark
  10009. #ifdef REGISTER_MEMBERS_MANUAL_PART_Image
  10010. REGISTER_MEMBERS_MANUAL_PART_Image();
  10011. #endif
  10012. }
  10013. // class JSONFile | File: ../Resource/JSONFile.h
  10014. template <class T> void RegisterMembers_JSONFile(asIScriptEngine* engine, const char* className)
  10015. {
  10016. RegisterMembers_Resource<T>(engine, className);
  10017. // bool JSONFile::FromString(const String& source)
  10018. engine->RegisterObjectMethod(className, "bool FromString(const String&in)", AS_METHODPR(T, FromString, (const String&), bool), AS_CALL_THISCALL);
  10019. // JSONValue& JSONFile::GetRoot()
  10020. engine->RegisterObjectMethod(className, "JSONValue& GetRoot()", AS_METHODPR(T, GetRoot, (), JSONValue&), AS_CALL_THISCALL);
  10021. engine->RegisterObjectMethod(className, "JSONValue& get_root()", AS_METHODPR(T, GetRoot, (), JSONValue&), AS_CALL_THISCALL);
  10022. // const JSONValue& JSONFile::GetRoot() const
  10023. engine->RegisterObjectMethod(className, "const JSONValue& GetRoot() const", AS_METHODPR(T, GetRoot, () const, const JSONValue&), AS_CALL_THISCALL);
  10024. // bool JSONFile::Save(Serializer& dest, const String& indendation) const
  10025. engine->RegisterObjectMethod(className, "bool Save(Serializer&, const String&in) const", AS_METHODPR(T, Save, (Serializer&, const String&) const, bool), AS_CALL_THISCALL);
  10026. // String JSONFile::ToString(const String& indendation = "\t") const
  10027. engine->RegisterObjectMethod(className, "String ToString(const String&in = \"\t\") const", AS_METHODPR(T, ToString, (const String&) const, String), AS_CALL_THISCALL);
  10028. // static void JSONFile::RegisterObject(Context* context)
  10029. // Not registered because have @nobind mark
  10030. #ifdef REGISTER_MEMBERS_MANUAL_PART_JSONFile
  10031. REGISTER_MEMBERS_MANUAL_PART_JSONFile();
  10032. #endif
  10033. }
  10034. // SharedPtr<Material> Material::Clone(const String& cloneName = String::EMPTY) const
  10035. template <class T> Material* Material_SharedPtrlesMaterialgre_Clone_constspStringamp_template(T* _ptr, const String& cloneName)
  10036. {
  10037. SharedPtr<Material> result = _ptr->Clone(cloneName);
  10038. return result.Detach();
  10039. }
  10040. // class Material | File: ../Graphics/Material.h
  10041. template <class T> void RegisterMembers_Material(asIScriptEngine* engine, const char* className)
  10042. {
  10043. RegisterMembers_Resource<T>(engine, className);
  10044. // const HashMap<StringHash, MaterialShaderParameter>& Material::GetShaderParameters() const
  10045. // Error: type "const HashMap<StringHash, MaterialShaderParameter>&" can not automatically bind
  10046. // const Vector<TechniqueEntry>& Material::GetTechniques() const
  10047. // Error: type "const Vector<TechniqueEntry>&" can not automatically bind
  10048. // const HashMap<TextureUnit, SharedPtr<Texture>>& Material::GetTextures() const
  10049. // Error: type "const HashMap<TextureUnit, SharedPtr<Texture>>&" can not automatically bind
  10050. // SharedPtr<Material> Material::Clone(const String& cloneName = String::EMPTY) const
  10051. engine->RegisterObjectMethod(className, "Material@+ Clone(const String&in = String::EMPTY) const", AS_FUNCTION_OBJFIRST(Material_SharedPtrlesMaterialgre_Clone_constspStringamp_template<Material>), AS_CALL_CDECL_OBJFIRST);
  10052. // bool Material::GetAlphaToCoverage() const
  10053. engine->RegisterObjectMethod(className, "bool GetAlphaToCoverage() const", AS_METHODPR(T, GetAlphaToCoverage, () const, bool), AS_CALL_THISCALL);
  10054. engine->RegisterObjectMethod(className, "bool get_alphaToCoverage() const", AS_METHODPR(T, GetAlphaToCoverage, () const, bool), AS_CALL_THISCALL);
  10055. // unsigned Material::GetAuxViewFrameNumber() const
  10056. engine->RegisterObjectMethod(className, "uint GetAuxViewFrameNumber() const", AS_METHODPR(T, GetAuxViewFrameNumber, () const, unsigned), AS_CALL_THISCALL);
  10057. // CullMode Material::GetCullMode() const
  10058. engine->RegisterObjectMethod(className, "CullMode GetCullMode() const", AS_METHODPR(T, GetCullMode, () const, CullMode), AS_CALL_THISCALL);
  10059. engine->RegisterObjectMethod(className, "CullMode get_cullMode() const", AS_METHODPR(T, GetCullMode, () const, CullMode), AS_CALL_THISCALL);
  10060. // const BiasParameters& Material::GetDepthBias() const
  10061. engine->RegisterObjectMethod(className, "const BiasParameters& GetDepthBias() const", AS_METHODPR(T, GetDepthBias, () const, const BiasParameters&), AS_CALL_THISCALL);
  10062. engine->RegisterObjectMethod(className, "const BiasParameters& get_depthBias() const", AS_METHODPR(T, GetDepthBias, () const, const BiasParameters&), AS_CALL_THISCALL);
  10063. // FillMode Material::GetFillMode() const
  10064. engine->RegisterObjectMethod(className, "FillMode GetFillMode() const", AS_METHODPR(T, GetFillMode, () const, FillMode), AS_CALL_THISCALL);
  10065. engine->RegisterObjectMethod(className, "FillMode get_fillMode() const", AS_METHODPR(T, GetFillMode, () const, FillMode), AS_CALL_THISCALL);
  10066. // bool Material::GetLineAntiAlias() const
  10067. engine->RegisterObjectMethod(className, "bool GetLineAntiAlias() const", AS_METHODPR(T, GetLineAntiAlias, () const, bool), AS_CALL_THISCALL);
  10068. engine->RegisterObjectMethod(className, "bool get_lineAntiAlias() const", AS_METHODPR(T, GetLineAntiAlias, () const, bool), AS_CALL_THISCALL);
  10069. // unsigned Material::GetNumTechniques() const
  10070. engine->RegisterObjectMethod(className, "uint GetNumTechniques() const", AS_METHODPR(T, GetNumTechniques, () const, unsigned), AS_CALL_THISCALL);
  10071. engine->RegisterObjectMethod(className, "uint get_numTechniques() const", AS_METHODPR(T, GetNumTechniques, () const, unsigned), AS_CALL_THISCALL);
  10072. // bool Material::GetOcclusion() const
  10073. engine->RegisterObjectMethod(className, "bool GetOcclusion() const", AS_METHODPR(T, GetOcclusion, () const, bool), AS_CALL_THISCALL);
  10074. engine->RegisterObjectMethod(className, "bool get_occlusion() const", AS_METHODPR(T, GetOcclusion, () const, bool), AS_CALL_THISCALL);
  10075. // Pass* Material::GetPass(unsigned index, const String& passName) const
  10076. engine->RegisterObjectMethod(className, "Pass@+ GetPass(uint, const String&in) const", AS_METHODPR(T, GetPass, (unsigned, const String&) const, Pass*), AS_CALL_THISCALL);
  10077. // const String& Material::GetPixelShaderDefines() const
  10078. engine->RegisterObjectMethod(className, "const String& GetPixelShaderDefines() const", AS_METHODPR(T, GetPixelShaderDefines, () const, const String&), AS_CALL_THISCALL);
  10079. engine->RegisterObjectMethod(className, "const String& get_pixelShaderDefines() const", AS_METHODPR(T, GetPixelShaderDefines, () const, const String&), AS_CALL_THISCALL);
  10080. // unsigned char Material::GetRenderOrder() const
  10081. engine->RegisterObjectMethod(className, "uint8 GetRenderOrder() const", AS_METHODPR(T, GetRenderOrder, () const, unsigned char), AS_CALL_THISCALL);
  10082. engine->RegisterObjectMethod(className, "uint8 get_renderOrder() const", AS_METHODPR(T, GetRenderOrder, () const, unsigned char), AS_CALL_THISCALL);
  10083. // Scene* Material::GetScene() const
  10084. engine->RegisterObjectMethod(className, "Scene@+ GetScene() const", AS_METHODPR(T, GetScene, () const, Scene*), AS_CALL_THISCALL);
  10085. engine->RegisterObjectMethod(className, "Scene@+ get_scene() const", AS_METHODPR(T, GetScene, () const, Scene*), AS_CALL_THISCALL);
  10086. // const Variant& Material::GetShaderParameter(const String& name) const
  10087. engine->RegisterObjectMethod(className, "const Variant& GetShaderParameter(const String&in) const", AS_METHODPR(T, GetShaderParameter, (const String&) const, const Variant&), AS_CALL_THISCALL);
  10088. engine->RegisterObjectMethod(className, "const Variant& get_shaderParameters(const String&in) const", AS_METHODPR(T, GetShaderParameter, (const String&) const, const Variant&), AS_CALL_THISCALL);
  10089. // ValueAnimation* Material::GetShaderParameterAnimation(const String& name) const
  10090. engine->RegisterObjectMethod(className, "ValueAnimation@+ GetShaderParameterAnimation(const String&in) const", AS_METHODPR(T, GetShaderParameterAnimation, (const String&) const, ValueAnimation*), AS_CALL_THISCALL);
  10091. // float Material::GetShaderParameterAnimationSpeed(const String& name) const
  10092. engine->RegisterObjectMethod(className, "float GetShaderParameterAnimationSpeed(const String&in) const", AS_METHODPR(T, GetShaderParameterAnimationSpeed, (const String&) const, float), AS_CALL_THISCALL);
  10093. // WrapMode Material::GetShaderParameterAnimationWrapMode(const String& name) const
  10094. engine->RegisterObjectMethod(className, "WrapMode GetShaderParameterAnimationWrapMode(const String&in) const", AS_METHODPR(T, GetShaderParameterAnimationWrapMode, (const String&) const, WrapMode), AS_CALL_THISCALL);
  10095. // unsigned Material::GetShaderParameterHash() const
  10096. engine->RegisterObjectMethod(className, "uint GetShaderParameterHash() const", AS_METHODPR(T, GetShaderParameterHash, () const, unsigned), AS_CALL_THISCALL);
  10097. // CullMode Material::GetShadowCullMode() const
  10098. engine->RegisterObjectMethod(className, "CullMode GetShadowCullMode() const", AS_METHODPR(T, GetShadowCullMode, () const, CullMode), AS_CALL_THISCALL);
  10099. engine->RegisterObjectMethod(className, "CullMode get_shadowCullMode() const", AS_METHODPR(T, GetShadowCullMode, () const, CullMode), AS_CALL_THISCALL);
  10100. // bool Material::GetSpecular() const
  10101. engine->RegisterObjectMethod(className, "bool GetSpecular() const", AS_METHODPR(T, GetSpecular, () const, bool), AS_CALL_THISCALL);
  10102. // Technique* Material::GetTechnique(unsigned index) const
  10103. engine->RegisterObjectMethod(className, "Technique@+ GetTechnique(uint) const", AS_METHODPR(T, GetTechnique, (unsigned) const, Technique*), AS_CALL_THISCALL);
  10104. engine->RegisterObjectMethod(className, "Technique@+ get_techniques(uint) const", AS_METHODPR(T, GetTechnique, (unsigned) const, Technique*), AS_CALL_THISCALL);
  10105. // const TechniqueEntry& Material::GetTechniqueEntry(unsigned index) const
  10106. engine->RegisterObjectMethod(className, "const TechniqueEntry& GetTechniqueEntry(uint) const", AS_METHODPR(T, GetTechniqueEntry, (unsigned) const, const TechniqueEntry&), AS_CALL_THISCALL);
  10107. // Texture* Material::GetTexture(TextureUnit unit) const
  10108. engine->RegisterObjectMethod(className, "Texture@+ GetTexture(TextureUnit) const", AS_METHODPR(T, GetTexture, (TextureUnit) const, Texture*), AS_CALL_THISCALL);
  10109. engine->RegisterObjectMethod(className, "Texture@+ get_textures(TextureUnit) const", AS_METHODPR(T, GetTexture, (TextureUnit) const, Texture*), AS_CALL_THISCALL);
  10110. // const String& Material::GetVertexShaderDefines() const
  10111. engine->RegisterObjectMethod(className, "const String& GetVertexShaderDefines() const", AS_METHODPR(T, GetVertexShaderDefines, () const, const String&), AS_CALL_THISCALL);
  10112. engine->RegisterObjectMethod(className, "const String& get_vertexShaderDefines() const", AS_METHODPR(T, GetVertexShaderDefines, () const, const String&), AS_CALL_THISCALL);
  10113. // bool Material::Load(const XMLElement& source)
  10114. engine->RegisterObjectMethod(className, "bool Load(const XMLElement&in)", AS_METHODPR(T, Load, (const XMLElement&), bool), AS_CALL_THISCALL);
  10115. // bool Material::Load(const JSONValue& source)
  10116. engine->RegisterObjectMethod(className, "bool Load(const JSONValue&in)", AS_METHODPR(T, Load, (const JSONValue&), bool), AS_CALL_THISCALL);
  10117. // void Material::MarkForAuxView(unsigned frameNumber)
  10118. engine->RegisterObjectMethod(className, "void MarkForAuxView(uint)", AS_METHODPR(T, MarkForAuxView, (unsigned), void), AS_CALL_THISCALL);
  10119. // void Material::ReleaseShaders()
  10120. engine->RegisterObjectMethod(className, "void ReleaseShaders()", AS_METHODPR(T, ReleaseShaders, (), void), AS_CALL_THISCALL);
  10121. // void Material::RemoveShaderParameter(const String& name)
  10122. engine->RegisterObjectMethod(className, "void RemoveShaderParameter(const String&in)", AS_METHODPR(T, RemoveShaderParameter, (const String&), void), AS_CALL_THISCALL);
  10123. // bool Material::Save(XMLElement& dest) const
  10124. engine->RegisterObjectMethod(className, "bool Save(XMLElement&) const", AS_METHODPR(T, Save, (XMLElement&) const, bool), AS_CALL_THISCALL);
  10125. // bool Material::Save(JSONValue& dest) const
  10126. engine->RegisterObjectMethod(className, "bool Save(JSONValue&) const", AS_METHODPR(T, Save, (JSONValue&) const, bool), AS_CALL_THISCALL);
  10127. // void Material::SetAlphaToCoverage(bool enable)
  10128. engine->RegisterObjectMethod(className, "void SetAlphaToCoverage(bool)", AS_METHODPR(T, SetAlphaToCoverage, (bool), void), AS_CALL_THISCALL);
  10129. engine->RegisterObjectMethod(className, "void set_alphaToCoverage(bool)", AS_METHODPR(T, SetAlphaToCoverage, (bool), void), AS_CALL_THISCALL);
  10130. // void Material::SetCullMode(CullMode mode)
  10131. engine->RegisterObjectMethod(className, "void SetCullMode(CullMode)", AS_METHODPR(T, SetCullMode, (CullMode), void), AS_CALL_THISCALL);
  10132. engine->RegisterObjectMethod(className, "void set_cullMode(CullMode)", AS_METHODPR(T, SetCullMode, (CullMode), void), AS_CALL_THISCALL);
  10133. // void Material::SetDepthBias(const BiasParameters& parameters)
  10134. engine->RegisterObjectMethod(className, "void SetDepthBias(const BiasParameters&in)", AS_METHODPR(T, SetDepthBias, (const BiasParameters&), void), AS_CALL_THISCALL);
  10135. engine->RegisterObjectMethod(className, "void set_depthBias(const BiasParameters&in)", AS_METHODPR(T, SetDepthBias, (const BiasParameters&), void), AS_CALL_THISCALL);
  10136. // void Material::SetFillMode(FillMode mode)
  10137. engine->RegisterObjectMethod(className, "void SetFillMode(FillMode)", AS_METHODPR(T, SetFillMode, (FillMode), void), AS_CALL_THISCALL);
  10138. engine->RegisterObjectMethod(className, "void set_fillMode(FillMode)", AS_METHODPR(T, SetFillMode, (FillMode), void), AS_CALL_THISCALL);
  10139. // void Material::SetLineAntiAlias(bool enable)
  10140. engine->RegisterObjectMethod(className, "void SetLineAntiAlias(bool)", AS_METHODPR(T, SetLineAntiAlias, (bool), void), AS_CALL_THISCALL);
  10141. engine->RegisterObjectMethod(className, "void set_lineAntiAlias(bool)", AS_METHODPR(T, SetLineAntiAlias, (bool), void), AS_CALL_THISCALL);
  10142. // void Material::SetNumTechniques(unsigned num)
  10143. engine->RegisterObjectMethod(className, "void SetNumTechniques(uint)", AS_METHODPR(T, SetNumTechniques, (unsigned), void), AS_CALL_THISCALL);
  10144. engine->RegisterObjectMethod(className, "void set_numTechniques(uint)", AS_METHODPR(T, SetNumTechniques, (unsigned), void), AS_CALL_THISCALL);
  10145. // void Material::SetOcclusion(bool enable)
  10146. engine->RegisterObjectMethod(className, "void SetOcclusion(bool)", AS_METHODPR(T, SetOcclusion, (bool), void), AS_CALL_THISCALL);
  10147. engine->RegisterObjectMethod(className, "void set_occlusion(bool)", AS_METHODPR(T, SetOcclusion, (bool), void), AS_CALL_THISCALL);
  10148. // void Material::SetPixelShaderDefines(const String& defines)
  10149. engine->RegisterObjectMethod(className, "void SetPixelShaderDefines(const String&in)", AS_METHODPR(T, SetPixelShaderDefines, (const String&), void), AS_CALL_THISCALL);
  10150. engine->RegisterObjectMethod(className, "void set_pixelShaderDefines(const String&in)", AS_METHODPR(T, SetPixelShaderDefines, (const String&), void), AS_CALL_THISCALL);
  10151. // void Material::SetRenderOrder(unsigned char order)
  10152. engine->RegisterObjectMethod(className, "void SetRenderOrder(uint8)", AS_METHODPR(T, SetRenderOrder, (unsigned char), void), AS_CALL_THISCALL);
  10153. engine->RegisterObjectMethod(className, "void set_renderOrder(uint8)", AS_METHODPR(T, SetRenderOrder, (unsigned char), void), AS_CALL_THISCALL);
  10154. // void Material::SetScene(Scene* scene)
  10155. engine->RegisterObjectMethod(className, "void SetScene(Scene@+)", AS_METHODPR(T, SetScene, (Scene*), void), AS_CALL_THISCALL);
  10156. engine->RegisterObjectMethod(className, "void set_scene(Scene@+)", AS_METHODPR(T, SetScene, (Scene*), void), AS_CALL_THISCALL);
  10157. // void Material::SetShaderParameter(const String& name, const Variant& value)
  10158. engine->RegisterObjectMethod(className, "void SetShaderParameter(const String&in, const Variant&in)", AS_METHODPR(T, SetShaderParameter, (const String&, const Variant&), void), AS_CALL_THISCALL);
  10159. engine->RegisterObjectMethod(className, "void set_shaderParameters(const String&in, const Variant&in)", AS_METHODPR(T, SetShaderParameter, (const String&, const Variant&), void), AS_CALL_THISCALL);
  10160. // void Material::SetShaderParameterAnimation(const String& name, ValueAnimation* animation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f)
  10161. engine->RegisterObjectMethod(className, "void SetShaderParameterAnimation(const String&in, ValueAnimation@+, WrapMode = WM_LOOP, float = 1.0f)", AS_METHODPR(T, SetShaderParameterAnimation, (const String&, ValueAnimation*, WrapMode, float), void), AS_CALL_THISCALL);
  10162. // void Material::SetShaderParameterAnimationSpeed(const String& name, float speed)
  10163. engine->RegisterObjectMethod(className, "void SetShaderParameterAnimationSpeed(const String&in, float)", AS_METHODPR(T, SetShaderParameterAnimationSpeed, (const String&, float), void), AS_CALL_THISCALL);
  10164. // void Material::SetShaderParameterAnimationWrapMode(const String& name, WrapMode wrapMode)
  10165. engine->RegisterObjectMethod(className, "void SetShaderParameterAnimationWrapMode(const String&in, WrapMode)", AS_METHODPR(T, SetShaderParameterAnimationWrapMode, (const String&, WrapMode), void), AS_CALL_THISCALL);
  10166. // void Material::SetShadowCullMode(CullMode mode)
  10167. engine->RegisterObjectMethod(className, "void SetShadowCullMode(CullMode)", AS_METHODPR(T, SetShadowCullMode, (CullMode), void), AS_CALL_THISCALL);
  10168. engine->RegisterObjectMethod(className, "void set_shadowCullMode(CullMode)", AS_METHODPR(T, SetShadowCullMode, (CullMode), void), AS_CALL_THISCALL);
  10169. // void Material::SetTechnique(unsigned index, Technique* tech, MaterialQuality qualityLevel = QUALITY_LOW, float lodDistance = 0.0f)
  10170. engine->RegisterObjectMethod(className, "void SetTechnique(uint, Technique@+, MaterialQuality = QUALITY_LOW, float = 0.0f)", AS_METHODPR(T, SetTechnique, (unsigned, Technique*, MaterialQuality, float), void), AS_CALL_THISCALL);
  10171. // void Material::SetTexture(TextureUnit unit, Texture* texture)
  10172. engine->RegisterObjectMethod(className, "void SetTexture(TextureUnit, Texture@+)", AS_METHODPR(T, SetTexture, (TextureUnit, Texture*), void), AS_CALL_THISCALL);
  10173. engine->RegisterObjectMethod(className, "void set_textures(TextureUnit, Texture@+)", AS_METHODPR(T, SetTexture, (TextureUnit, Texture*), void), AS_CALL_THISCALL);
  10174. // void Material::SetUVTransform(const Vector2& offset, float rotation, const Vector2& repeat)
  10175. engine->RegisterObjectMethod(className, "void SetUVTransform(const Vector2&in, float, const Vector2&in)", AS_METHODPR(T, SetUVTransform, (const Vector2&, float, const Vector2&), void), AS_CALL_THISCALL);
  10176. // void Material::SetUVTransform(const Vector2& offset, float rotation, float repeat)
  10177. engine->RegisterObjectMethod(className, "void SetUVTransform(const Vector2&in, float, float)", AS_METHODPR(T, SetUVTransform, (const Vector2&, float, float), void), AS_CALL_THISCALL);
  10178. // void Material::SetVertexShaderDefines(const String& defines)
  10179. engine->RegisterObjectMethod(className, "void SetVertexShaderDefines(const String&in)", AS_METHODPR(T, SetVertexShaderDefines, (const String&), void), AS_CALL_THISCALL);
  10180. engine->RegisterObjectMethod(className, "void set_vertexShaderDefines(const String&in)", AS_METHODPR(T, SetVertexShaderDefines, (const String&), void), AS_CALL_THISCALL);
  10181. // void Material::SortTechniques()
  10182. engine->RegisterObjectMethod(className, "void SortTechniques()", AS_METHODPR(T, SortTechniques, (), void), AS_CALL_THISCALL);
  10183. // static void Material::RegisterObject(Context* context)
  10184. // Not registered because have @nobind mark
  10185. // static String Material::GetTextureUnitName(TextureUnit unit)
  10186. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("String GetTextureUnitName(TextureUnit)", AS_FUNCTIONPR(T::GetTextureUnitName, (TextureUnit), String), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  10187. // static Variant Material::ParseShaderParameterValue(const String& value)
  10188. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("Variant ParseShaderParameterValue(const String&in)", AS_FUNCTIONPR(T::ParseShaderParameterValue, (const String&), Variant), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  10189. #ifdef REGISTER_MEMBERS_MANUAL_PART_Material
  10190. REGISTER_MEMBERS_MANUAL_PART_Material();
  10191. #endif
  10192. }
  10193. // class ObjectAnimation | File: ../Scene/ObjectAnimation.h
  10194. template <class T> void RegisterMembers_ObjectAnimation(asIScriptEngine* engine, const char* className)
  10195. {
  10196. RegisterMembers_Resource<T>(engine, className);
  10197. // const HashMap<String, SharedPtr<ValueAnimationInfo>>& ObjectAnimation::GetAttributeAnimationInfos() const
  10198. // Error: type "const HashMap<String, SharedPtr<ValueAnimationInfo>>&" can not automatically bind
  10199. // void ObjectAnimation::AddAttributeAnimation(const String& name, ValueAnimation* attributeAnimation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f)
  10200. engine->RegisterObjectMethod(className, "void AddAttributeAnimation(const String&in, ValueAnimation@+, WrapMode = WM_LOOP, float = 1.0f)", AS_METHODPR(T, AddAttributeAnimation, (const String&, ValueAnimation*, WrapMode, float), void), AS_CALL_THISCALL);
  10201. // ValueAnimation* ObjectAnimation::GetAttributeAnimation(const String& name) const
  10202. engine->RegisterObjectMethod(className, "ValueAnimation@+ GetAttributeAnimation(const String&in) const", AS_METHODPR(T, GetAttributeAnimation, (const String&) const, ValueAnimation*), AS_CALL_THISCALL);
  10203. engine->RegisterObjectMethod(className, "ValueAnimation@+ get_attributeAnimations(const String&in) const", AS_METHODPR(T, GetAttributeAnimation, (const String&) const, ValueAnimation*), AS_CALL_THISCALL);
  10204. // ValueAnimationInfo* ObjectAnimation::GetAttributeAnimationInfo(const String& name) const
  10205. engine->RegisterObjectMethod(className, "ValueAnimationInfo@+ GetAttributeAnimationInfo(const String&in) const", AS_METHODPR(T, GetAttributeAnimationInfo, (const String&) const, ValueAnimationInfo*), AS_CALL_THISCALL);
  10206. // float ObjectAnimation::GetAttributeAnimationSpeed(const String& name) const
  10207. engine->RegisterObjectMethod(className, "float GetAttributeAnimationSpeed(const String&in) const", AS_METHODPR(T, GetAttributeAnimationSpeed, (const String&) const, float), AS_CALL_THISCALL);
  10208. engine->RegisterObjectMethod(className, "float get_speeds(const String&in) const", AS_METHODPR(T, GetAttributeAnimationSpeed, (const String&) const, float), AS_CALL_THISCALL);
  10209. // WrapMode ObjectAnimation::GetAttributeAnimationWrapMode(const String& name) const
  10210. engine->RegisterObjectMethod(className, "WrapMode GetAttributeAnimationWrapMode(const String&in) const", AS_METHODPR(T, GetAttributeAnimationWrapMode, (const String&) const, WrapMode), AS_CALL_THISCALL);
  10211. engine->RegisterObjectMethod(className, "WrapMode get_wrapModes(const String&in) const", AS_METHODPR(T, GetAttributeAnimationWrapMode, (const String&) const, WrapMode), AS_CALL_THISCALL);
  10212. // bool ObjectAnimation::LoadJSON(const JSONValue& source)
  10213. engine->RegisterObjectMethod(className, "bool LoadJSON(const JSONValue&in)", AS_METHODPR(T, LoadJSON, (const JSONValue&), bool), AS_CALL_THISCALL);
  10214. // bool ObjectAnimation::LoadXML(const XMLElement& source)
  10215. engine->RegisterObjectMethod(className, "bool LoadXML(const XMLElement&in)", AS_METHODPR(T, LoadXML, (const XMLElement&), bool), AS_CALL_THISCALL);
  10216. // void ObjectAnimation::RemoveAttributeAnimation(const String& name)
  10217. engine->RegisterObjectMethod(className, "void RemoveAttributeAnimation(const String&in)", AS_METHODPR(T, RemoveAttributeAnimation, (const String&), void), AS_CALL_THISCALL);
  10218. // void ObjectAnimation::RemoveAttributeAnimation(ValueAnimation* attributeAnimation)
  10219. engine->RegisterObjectMethod(className, "void RemoveAttributeAnimation(ValueAnimation@+)", AS_METHODPR(T, RemoveAttributeAnimation, (ValueAnimation*), void), AS_CALL_THISCALL);
  10220. // bool ObjectAnimation::SaveJSON(JSONValue& dest) const
  10221. engine->RegisterObjectMethod(className, "bool SaveJSON(JSONValue&) const", AS_METHODPR(T, SaveJSON, (JSONValue&) const, bool), AS_CALL_THISCALL);
  10222. // bool ObjectAnimation::SaveXML(XMLElement& dest) const
  10223. engine->RegisterObjectMethod(className, "bool SaveXML(XMLElement&) const", AS_METHODPR(T, SaveXML, (XMLElement&) const, bool), AS_CALL_THISCALL);
  10224. // static void ObjectAnimation::RegisterObject(Context* context)
  10225. // Not registered because have @nobind mark
  10226. #ifdef REGISTER_MEMBERS_MANUAL_PART_ObjectAnimation
  10227. REGISTER_MEMBERS_MANUAL_PART_ObjectAnimation();
  10228. #endif
  10229. }
  10230. // SharedPtr<ParticleEffect> ParticleEffect::Clone(const String& cloneName = String::EMPTY) const
  10231. template <class T> ParticleEffect* ParticleEffect_SharedPtrlesParticleEffectgre_Clone_constspStringamp_template(T* _ptr, const String& cloneName)
  10232. {
  10233. SharedPtr<ParticleEffect> result = _ptr->Clone(cloneName);
  10234. return result.Detach();
  10235. }
  10236. // class ParticleEffect | File: ../Graphics/ParticleEffect.h
  10237. template <class T> void RegisterMembers_ParticleEffect(asIScriptEngine* engine, const char* className)
  10238. {
  10239. RegisterMembers_Resource<T>(engine, className);
  10240. // const Vector<ColorFrame>& ParticleEffect::GetColorFrames() const
  10241. // Error: type "const Vector<ColorFrame>&" can not automatically bind
  10242. // const Vector<TextureFrame>& ParticleEffect::GetTextureFrames() const
  10243. // Error: type "const Vector<TextureFrame>&" can not automatically bind
  10244. // void ParticleEffect::SetColorFrames(const Vector<ColorFrame>& colorFrames)
  10245. // Error: type "const Vector<ColorFrame>&" can not automatically bind
  10246. // void ParticleEffect::SetTextureFrames(const Vector<TextureFrame>& textureFrames)
  10247. // Error: type "const Vector<TextureFrame>&" can not automatically bind
  10248. // void ParticleEffect::AddColorFrame(const ColorFrame& colorFrame)
  10249. engine->RegisterObjectMethod(className, "void AddColorFrame(const ColorFrame&in)", AS_METHODPR(T, AddColorFrame, (const ColorFrame&), void), AS_CALL_THISCALL);
  10250. // void ParticleEffect::AddColorTime(const Color& color, float time)
  10251. engine->RegisterObjectMethod(className, "void AddColorTime(const Color&in, float)", AS_METHODPR(T, AddColorTime, (const Color&, float), void), AS_CALL_THISCALL);
  10252. // void ParticleEffect::AddTextureFrame(const TextureFrame& textureFrame)
  10253. engine->RegisterObjectMethod(className, "void AddTextureFrame(const TextureFrame&in)", AS_METHODPR(T, AddTextureFrame, (const TextureFrame&), void), AS_CALL_THISCALL);
  10254. // void ParticleEffect::AddTextureTime(const Rect& uv, float time)
  10255. engine->RegisterObjectMethod(className, "void AddTextureTime(const Rect&in, float)", AS_METHODPR(T, AddTextureTime, (const Rect&, float), void), AS_CALL_THISCALL);
  10256. // SharedPtr<ParticleEffect> ParticleEffect::Clone(const String& cloneName = String::EMPTY) const
  10257. engine->RegisterObjectMethod(className, "ParticleEffect@+ Clone(const String&in = String::EMPTY) const", AS_FUNCTION_OBJFIRST(ParticleEffect_SharedPtrlesParticleEffectgre_Clone_constspStringamp_template<ParticleEffect>), AS_CALL_CDECL_OBJFIRST);
  10258. // float ParticleEffect::GetActiveTime() const
  10259. engine->RegisterObjectMethod(className, "float GetActiveTime() const", AS_METHODPR(T, GetActiveTime, () const, float), AS_CALL_THISCALL);
  10260. engine->RegisterObjectMethod(className, "float get_activeTime() const", AS_METHODPR(T, GetActiveTime, () const, float), AS_CALL_THISCALL);
  10261. // float ParticleEffect::GetAnimationLodBias() const
  10262. engine->RegisterObjectMethod(className, "float GetAnimationLodBias() const", AS_METHODPR(T, GetAnimationLodBias, () const, float), AS_CALL_THISCALL);
  10263. engine->RegisterObjectMethod(className, "float get_animationLodBias() const", AS_METHODPR(T, GetAnimationLodBias, () const, float), AS_CALL_THISCALL);
  10264. // const ColorFrame* ParticleEffect::GetColorFrame(unsigned index) const
  10265. engine->RegisterObjectMethod(className, "ColorFrame@ GetColorFrame(uint) const", AS_METHODPR(T, GetColorFrame, (unsigned) const, const ColorFrame*), AS_CALL_THISCALL);
  10266. // const Vector3& ParticleEffect::GetConstantForce() const
  10267. engine->RegisterObjectMethod(className, "const Vector3& GetConstantForce() const", AS_METHODPR(T, GetConstantForce, () const, const Vector3&), AS_CALL_THISCALL);
  10268. engine->RegisterObjectMethod(className, "const Vector3& get_constantForce() const", AS_METHODPR(T, GetConstantForce, () const, const Vector3&), AS_CALL_THISCALL);
  10269. // float ParticleEffect::GetDampingForce() const
  10270. engine->RegisterObjectMethod(className, "float GetDampingForce() const", AS_METHODPR(T, GetDampingForce, () const, float), AS_CALL_THISCALL);
  10271. engine->RegisterObjectMethod(className, "float get_dampingForce() const", AS_METHODPR(T, GetDampingForce, () const, float), AS_CALL_THISCALL);
  10272. // const Vector3& ParticleEffect::GetEmitterSize() const
  10273. engine->RegisterObjectMethod(className, "const Vector3& GetEmitterSize() const", AS_METHODPR(T, GetEmitterSize, () const, const Vector3&), AS_CALL_THISCALL);
  10274. engine->RegisterObjectMethod(className, "const Vector3& get_emitterSize() const", AS_METHODPR(T, GetEmitterSize, () const, const Vector3&), AS_CALL_THISCALL);
  10275. // EmitterType ParticleEffect::GetEmitterType() const
  10276. engine->RegisterObjectMethod(className, "EmitterType GetEmitterType() const", AS_METHODPR(T, GetEmitterType, () const, EmitterType), AS_CALL_THISCALL);
  10277. engine->RegisterObjectMethod(className, "EmitterType get_emitterType() const", AS_METHODPR(T, GetEmitterType, () const, EmitterType), AS_CALL_THISCALL);
  10278. // FaceCameraMode ParticleEffect::GetFaceCameraMode() const
  10279. engine->RegisterObjectMethod(className, "FaceCameraMode GetFaceCameraMode() const", AS_METHODPR(T, GetFaceCameraMode, () const, FaceCameraMode), AS_CALL_THISCALL);
  10280. engine->RegisterObjectMethod(className, "FaceCameraMode get_faceCameraMode() const", AS_METHODPR(T, GetFaceCameraMode, () const, FaceCameraMode), AS_CALL_THISCALL);
  10281. // float ParticleEffect::GetInactiveTime() const
  10282. engine->RegisterObjectMethod(className, "float GetInactiveTime() const", AS_METHODPR(T, GetInactiveTime, () const, float), AS_CALL_THISCALL);
  10283. engine->RegisterObjectMethod(className, "float get_inactiveTime() const", AS_METHODPR(T, GetInactiveTime, () const, float), AS_CALL_THISCALL);
  10284. // Material* ParticleEffect::GetMaterial() const
  10285. engine->RegisterObjectMethod(className, "Material@+ GetMaterial() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  10286. engine->RegisterObjectMethod(className, "Material@+ get_material() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  10287. // const Vector3& ParticleEffect::GetMaxDirection() const
  10288. engine->RegisterObjectMethod(className, "const Vector3& GetMaxDirection() const", AS_METHODPR(T, GetMaxDirection, () const, const Vector3&), AS_CALL_THISCALL);
  10289. engine->RegisterObjectMethod(className, "const Vector3& get_maxDirection() const", AS_METHODPR(T, GetMaxDirection, () const, const Vector3&), AS_CALL_THISCALL);
  10290. // float ParticleEffect::GetMaxEmissionRate() const
  10291. engine->RegisterObjectMethod(className, "float GetMaxEmissionRate() const", AS_METHODPR(T, GetMaxEmissionRate, () const, float), AS_CALL_THISCALL);
  10292. engine->RegisterObjectMethod(className, "float get_maxEmissionRate() const", AS_METHODPR(T, GetMaxEmissionRate, () const, float), AS_CALL_THISCALL);
  10293. // const Vector2& ParticleEffect::GetMaxParticleSize() const
  10294. engine->RegisterObjectMethod(className, "const Vector2& GetMaxParticleSize() const", AS_METHODPR(T, GetMaxParticleSize, () const, const Vector2&), AS_CALL_THISCALL);
  10295. engine->RegisterObjectMethod(className, "const Vector2& get_maxParticleSize() const", AS_METHODPR(T, GetMaxParticleSize, () const, const Vector2&), AS_CALL_THISCALL);
  10296. // float ParticleEffect::GetMaxRotation() const
  10297. engine->RegisterObjectMethod(className, "float GetMaxRotation() const", AS_METHODPR(T, GetMaxRotation, () const, float), AS_CALL_THISCALL);
  10298. engine->RegisterObjectMethod(className, "float get_maxRotation() const", AS_METHODPR(T, GetMaxRotation, () const, float), AS_CALL_THISCALL);
  10299. // float ParticleEffect::GetMaxRotationSpeed() const
  10300. engine->RegisterObjectMethod(className, "float GetMaxRotationSpeed() const", AS_METHODPR(T, GetMaxRotationSpeed, () const, float), AS_CALL_THISCALL);
  10301. engine->RegisterObjectMethod(className, "float get_maxRotationSpeed() const", AS_METHODPR(T, GetMaxRotationSpeed, () const, float), AS_CALL_THISCALL);
  10302. // float ParticleEffect::GetMaxTimeToLive() const
  10303. engine->RegisterObjectMethod(className, "float GetMaxTimeToLive() const", AS_METHODPR(T, GetMaxTimeToLive, () const, float), AS_CALL_THISCALL);
  10304. engine->RegisterObjectMethod(className, "float get_maxTimeToLive() const", AS_METHODPR(T, GetMaxTimeToLive, () const, float), AS_CALL_THISCALL);
  10305. // float ParticleEffect::GetMaxVelocity() const
  10306. engine->RegisterObjectMethod(className, "float GetMaxVelocity() const", AS_METHODPR(T, GetMaxVelocity, () const, float), AS_CALL_THISCALL);
  10307. engine->RegisterObjectMethod(className, "float get_maxVelocity() const", AS_METHODPR(T, GetMaxVelocity, () const, float), AS_CALL_THISCALL);
  10308. // const Vector3& ParticleEffect::GetMinDirection() const
  10309. engine->RegisterObjectMethod(className, "const Vector3& GetMinDirection() const", AS_METHODPR(T, GetMinDirection, () const, const Vector3&), AS_CALL_THISCALL);
  10310. engine->RegisterObjectMethod(className, "const Vector3& get_minDirection() const", AS_METHODPR(T, GetMinDirection, () const, const Vector3&), AS_CALL_THISCALL);
  10311. // float ParticleEffect::GetMinEmissionRate() const
  10312. engine->RegisterObjectMethod(className, "float GetMinEmissionRate() const", AS_METHODPR(T, GetMinEmissionRate, () const, float), AS_CALL_THISCALL);
  10313. engine->RegisterObjectMethod(className, "float get_minEmissionRate() const", AS_METHODPR(T, GetMinEmissionRate, () const, float), AS_CALL_THISCALL);
  10314. // const Vector2& ParticleEffect::GetMinParticleSize() const
  10315. engine->RegisterObjectMethod(className, "const Vector2& GetMinParticleSize() const", AS_METHODPR(T, GetMinParticleSize, () const, const Vector2&), AS_CALL_THISCALL);
  10316. engine->RegisterObjectMethod(className, "const Vector2& get_minParticleSize() const", AS_METHODPR(T, GetMinParticleSize, () const, const Vector2&), AS_CALL_THISCALL);
  10317. // float ParticleEffect::GetMinRotation() const
  10318. engine->RegisterObjectMethod(className, "float GetMinRotation() const", AS_METHODPR(T, GetMinRotation, () const, float), AS_CALL_THISCALL);
  10319. engine->RegisterObjectMethod(className, "float get_minRotation() const", AS_METHODPR(T, GetMinRotation, () const, float), AS_CALL_THISCALL);
  10320. // float ParticleEffect::GetMinRotationSpeed() const
  10321. engine->RegisterObjectMethod(className, "float GetMinRotationSpeed() const", AS_METHODPR(T, GetMinRotationSpeed, () const, float), AS_CALL_THISCALL);
  10322. engine->RegisterObjectMethod(className, "float get_minRotationSpeed() const", AS_METHODPR(T, GetMinRotationSpeed, () const, float), AS_CALL_THISCALL);
  10323. // float ParticleEffect::GetMinTimeToLive() const
  10324. engine->RegisterObjectMethod(className, "float GetMinTimeToLive() const", AS_METHODPR(T, GetMinTimeToLive, () const, float), AS_CALL_THISCALL);
  10325. engine->RegisterObjectMethod(className, "float get_minTimeToLive() const", AS_METHODPR(T, GetMinTimeToLive, () const, float), AS_CALL_THISCALL);
  10326. // float ParticleEffect::GetMinVelocity() const
  10327. engine->RegisterObjectMethod(className, "float GetMinVelocity() const", AS_METHODPR(T, GetMinVelocity, () const, float), AS_CALL_THISCALL);
  10328. engine->RegisterObjectMethod(className, "float get_minVelocity() const", AS_METHODPR(T, GetMinVelocity, () const, float), AS_CALL_THISCALL);
  10329. // unsigned ParticleEffect::GetNumColorFrames() const
  10330. engine->RegisterObjectMethod(className, "uint GetNumColorFrames() const", AS_METHODPR(T, GetNumColorFrames, () const, unsigned), AS_CALL_THISCALL);
  10331. engine->RegisterObjectMethod(className, "uint get_numColorFrames() const", AS_METHODPR(T, GetNumColorFrames, () const, unsigned), AS_CALL_THISCALL);
  10332. // unsigned ParticleEffect::GetNumParticles() const
  10333. engine->RegisterObjectMethod(className, "uint GetNumParticles() const", AS_METHODPR(T, GetNumParticles, () const, unsigned), AS_CALL_THISCALL);
  10334. engine->RegisterObjectMethod(className, "uint get_numParticles() const", AS_METHODPR(T, GetNumParticles, () const, unsigned), AS_CALL_THISCALL);
  10335. // unsigned ParticleEffect::GetNumTextureFrames() const
  10336. engine->RegisterObjectMethod(className, "uint GetNumTextureFrames() const", AS_METHODPR(T, GetNumTextureFrames, () const, unsigned), AS_CALL_THISCALL);
  10337. engine->RegisterObjectMethod(className, "uint get_numTextureFrames() const", AS_METHODPR(T, GetNumTextureFrames, () const, unsigned), AS_CALL_THISCALL);
  10338. // Vector3 ParticleEffect::GetRandomDirection() const
  10339. engine->RegisterObjectMethod(className, "Vector3 GetRandomDirection() const", AS_METHODPR(T, GetRandomDirection, () const, Vector3), AS_CALL_THISCALL);
  10340. // float ParticleEffect::GetRandomRotation() const
  10341. engine->RegisterObjectMethod(className, "float GetRandomRotation() const", AS_METHODPR(T, GetRandomRotation, () const, float), AS_CALL_THISCALL);
  10342. // float ParticleEffect::GetRandomRotationSpeed() const
  10343. engine->RegisterObjectMethod(className, "float GetRandomRotationSpeed() const", AS_METHODPR(T, GetRandomRotationSpeed, () const, float), AS_CALL_THISCALL);
  10344. // Vector2 ParticleEffect::GetRandomSize() const
  10345. engine->RegisterObjectMethod(className, "Vector2 GetRandomSize() const", AS_METHODPR(T, GetRandomSize, () const, Vector2), AS_CALL_THISCALL);
  10346. // float ParticleEffect::GetRandomTimeToLive() const
  10347. engine->RegisterObjectMethod(className, "float GetRandomTimeToLive() const", AS_METHODPR(T, GetRandomTimeToLive, () const, float), AS_CALL_THISCALL);
  10348. // float ParticleEffect::GetRandomVelocity() const
  10349. engine->RegisterObjectMethod(className, "float GetRandomVelocity() const", AS_METHODPR(T, GetRandomVelocity, () const, float), AS_CALL_THISCALL);
  10350. // float ParticleEffect::GetSizeAdd() const
  10351. engine->RegisterObjectMethod(className, "float GetSizeAdd() const", AS_METHODPR(T, GetSizeAdd, () const, float), AS_CALL_THISCALL);
  10352. engine->RegisterObjectMethod(className, "float get_sizeAdd() const", AS_METHODPR(T, GetSizeAdd, () const, float), AS_CALL_THISCALL);
  10353. // float ParticleEffect::GetSizeMul() const
  10354. engine->RegisterObjectMethod(className, "float GetSizeMul() const", AS_METHODPR(T, GetSizeMul, () const, float), AS_CALL_THISCALL);
  10355. engine->RegisterObjectMethod(className, "float get_sizeMul() const", AS_METHODPR(T, GetSizeMul, () const, float), AS_CALL_THISCALL);
  10356. // const TextureFrame* ParticleEffect::GetTextureFrame(unsigned index) const
  10357. engine->RegisterObjectMethod(className, "TextureFrame@ GetTextureFrame(uint) const", AS_METHODPR(T, GetTextureFrame, (unsigned) const, const TextureFrame*), AS_CALL_THISCALL);
  10358. // bool ParticleEffect::GetUpdateInvisible() const
  10359. engine->RegisterObjectMethod(className, "bool GetUpdateInvisible() const", AS_METHODPR(T, GetUpdateInvisible, () const, bool), AS_CALL_THISCALL);
  10360. engine->RegisterObjectMethod(className, "bool get_updateInvisible() const", AS_METHODPR(T, GetUpdateInvisible, () const, bool), AS_CALL_THISCALL);
  10361. // bool ParticleEffect::IsFixedScreenSize() const
  10362. engine->RegisterObjectMethod(className, "bool IsFixedScreenSize() const", AS_METHODPR(T, IsFixedScreenSize, () const, bool), AS_CALL_THISCALL);
  10363. engine->RegisterObjectMethod(className, "bool get_fixedScreenSize() const", AS_METHODPR(T, IsFixedScreenSize, () const, bool), AS_CALL_THISCALL);
  10364. // bool ParticleEffect::IsRelative() const
  10365. engine->RegisterObjectMethod(className, "bool IsRelative() const", AS_METHODPR(T, IsRelative, () const, bool), AS_CALL_THISCALL);
  10366. engine->RegisterObjectMethod(className, "bool get_relative() const", AS_METHODPR(T, IsRelative, () const, bool), AS_CALL_THISCALL);
  10367. // bool ParticleEffect::IsScaled() const
  10368. engine->RegisterObjectMethod(className, "bool IsScaled() const", AS_METHODPR(T, IsScaled, () const, bool), AS_CALL_THISCALL);
  10369. engine->RegisterObjectMethod(className, "bool get_scaled() const", AS_METHODPR(T, IsScaled, () const, bool), AS_CALL_THISCALL);
  10370. // bool ParticleEffect::IsSorted() const
  10371. engine->RegisterObjectMethod(className, "bool IsSorted() const", AS_METHODPR(T, IsSorted, () const, bool), AS_CALL_THISCALL);
  10372. engine->RegisterObjectMethod(className, "bool get_sorted() const", AS_METHODPR(T, IsSorted, () const, bool), AS_CALL_THISCALL);
  10373. // bool ParticleEffect::Load(const XMLElement& source)
  10374. engine->RegisterObjectMethod(className, "bool Load(const XMLElement&in)", AS_METHODPR(T, Load, (const XMLElement&), bool), AS_CALL_THISCALL);
  10375. // void ParticleEffect::RemoveColorFrame(unsigned index)
  10376. engine->RegisterObjectMethod(className, "void RemoveColorFrame(uint)", AS_METHODPR(T, RemoveColorFrame, (unsigned), void), AS_CALL_THISCALL);
  10377. // void ParticleEffect::RemoveTextureFrame(unsigned index)
  10378. engine->RegisterObjectMethod(className, "void RemoveTextureFrame(uint)", AS_METHODPR(T, RemoveTextureFrame, (unsigned), void), AS_CALL_THISCALL);
  10379. // bool ParticleEffect::Save(XMLElement& dest) const
  10380. engine->RegisterObjectMethod(className, "bool Save(XMLElement&) const", AS_METHODPR(T, Save, (XMLElement&) const, bool), AS_CALL_THISCALL);
  10381. // void ParticleEffect::SetActiveTime(float time)
  10382. engine->RegisterObjectMethod(className, "void SetActiveTime(float)", AS_METHODPR(T, SetActiveTime, (float), void), AS_CALL_THISCALL);
  10383. engine->RegisterObjectMethod(className, "void set_activeTime(float)", AS_METHODPR(T, SetActiveTime, (float), void), AS_CALL_THISCALL);
  10384. // void ParticleEffect::SetAnimationLodBias(float lodBias)
  10385. engine->RegisterObjectMethod(className, "void SetAnimationLodBias(float)", AS_METHODPR(T, SetAnimationLodBias, (float), void), AS_CALL_THISCALL);
  10386. engine->RegisterObjectMethod(className, "void set_animationLodBias(float)", AS_METHODPR(T, SetAnimationLodBias, (float), void), AS_CALL_THISCALL);
  10387. // void ParticleEffect::SetColorFrame(unsigned index, const ColorFrame& colorFrame)
  10388. engine->RegisterObjectMethod(className, "void SetColorFrame(uint, const ColorFrame&in)", AS_METHODPR(T, SetColorFrame, (unsigned, const ColorFrame&), void), AS_CALL_THISCALL);
  10389. // void ParticleEffect::SetConstantForce(const Vector3& force)
  10390. engine->RegisterObjectMethod(className, "void SetConstantForce(const Vector3&in)", AS_METHODPR(T, SetConstantForce, (const Vector3&), void), AS_CALL_THISCALL);
  10391. engine->RegisterObjectMethod(className, "void set_constantForce(const Vector3&in)", AS_METHODPR(T, SetConstantForce, (const Vector3&), void), AS_CALL_THISCALL);
  10392. // void ParticleEffect::SetDampingForce(float force)
  10393. engine->RegisterObjectMethod(className, "void SetDampingForce(float)", AS_METHODPR(T, SetDampingForce, (float), void), AS_CALL_THISCALL);
  10394. engine->RegisterObjectMethod(className, "void set_dampingForce(float)", AS_METHODPR(T, SetDampingForce, (float), void), AS_CALL_THISCALL);
  10395. // void ParticleEffect::SetEmitterSize(const Vector3& size)
  10396. engine->RegisterObjectMethod(className, "void SetEmitterSize(const Vector3&in)", AS_METHODPR(T, SetEmitterSize, (const Vector3&), void), AS_CALL_THISCALL);
  10397. engine->RegisterObjectMethod(className, "void set_emitterSize(const Vector3&in)", AS_METHODPR(T, SetEmitterSize, (const Vector3&), void), AS_CALL_THISCALL);
  10398. // void ParticleEffect::SetEmitterType(EmitterType type)
  10399. engine->RegisterObjectMethod(className, "void SetEmitterType(EmitterType)", AS_METHODPR(T, SetEmitterType, (EmitterType), void), AS_CALL_THISCALL);
  10400. engine->RegisterObjectMethod(className, "void set_emitterType(EmitterType)", AS_METHODPR(T, SetEmitterType, (EmitterType), void), AS_CALL_THISCALL);
  10401. // void ParticleEffect::SetFaceCameraMode(FaceCameraMode mode)
  10402. engine->RegisterObjectMethod(className, "void SetFaceCameraMode(FaceCameraMode)", AS_METHODPR(T, SetFaceCameraMode, (FaceCameraMode), void), AS_CALL_THISCALL);
  10403. engine->RegisterObjectMethod(className, "void set_faceCameraMode(FaceCameraMode)", AS_METHODPR(T, SetFaceCameraMode, (FaceCameraMode), void), AS_CALL_THISCALL);
  10404. // void ParticleEffect::SetFixedScreenSize(bool enable)
  10405. engine->RegisterObjectMethod(className, "void SetFixedScreenSize(bool)", AS_METHODPR(T, SetFixedScreenSize, (bool), void), AS_CALL_THISCALL);
  10406. engine->RegisterObjectMethod(className, "void set_fixedScreenSize(bool)", AS_METHODPR(T, SetFixedScreenSize, (bool), void), AS_CALL_THISCALL);
  10407. // void ParticleEffect::SetInactiveTime(float time)
  10408. engine->RegisterObjectMethod(className, "void SetInactiveTime(float)", AS_METHODPR(T, SetInactiveTime, (float), void), AS_CALL_THISCALL);
  10409. engine->RegisterObjectMethod(className, "void set_inactiveTime(float)", AS_METHODPR(T, SetInactiveTime, (float), void), AS_CALL_THISCALL);
  10410. // void ParticleEffect::SetMaterial(Material* material)
  10411. engine->RegisterObjectMethod(className, "void SetMaterial(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  10412. engine->RegisterObjectMethod(className, "void set_material(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  10413. // void ParticleEffect::SetMaxDirection(const Vector3& direction)
  10414. engine->RegisterObjectMethod(className, "void SetMaxDirection(const Vector3&in)", AS_METHODPR(T, SetMaxDirection, (const Vector3&), void), AS_CALL_THISCALL);
  10415. engine->RegisterObjectMethod(className, "void set_maxDirection(const Vector3&in)", AS_METHODPR(T, SetMaxDirection, (const Vector3&), void), AS_CALL_THISCALL);
  10416. // void ParticleEffect::SetMaxEmissionRate(float rate)
  10417. engine->RegisterObjectMethod(className, "void SetMaxEmissionRate(float)", AS_METHODPR(T, SetMaxEmissionRate, (float), void), AS_CALL_THISCALL);
  10418. engine->RegisterObjectMethod(className, "void set_maxEmissionRate(float)", AS_METHODPR(T, SetMaxEmissionRate, (float), void), AS_CALL_THISCALL);
  10419. // void ParticleEffect::SetMaxParticleSize(const Vector2& size)
  10420. engine->RegisterObjectMethod(className, "void SetMaxParticleSize(const Vector2&in)", AS_METHODPR(T, SetMaxParticleSize, (const Vector2&), void), AS_CALL_THISCALL);
  10421. engine->RegisterObjectMethod(className, "void set_maxParticleSize(const Vector2&in)", AS_METHODPR(T, SetMaxParticleSize, (const Vector2&), void), AS_CALL_THISCALL);
  10422. // void ParticleEffect::SetMaxRotation(float rotation)
  10423. engine->RegisterObjectMethod(className, "void SetMaxRotation(float)", AS_METHODPR(T, SetMaxRotation, (float), void), AS_CALL_THISCALL);
  10424. engine->RegisterObjectMethod(className, "void set_maxRotation(float)", AS_METHODPR(T, SetMaxRotation, (float), void), AS_CALL_THISCALL);
  10425. // void ParticleEffect::SetMaxRotationSpeed(float speed)
  10426. engine->RegisterObjectMethod(className, "void SetMaxRotationSpeed(float)", AS_METHODPR(T, SetMaxRotationSpeed, (float), void), AS_CALL_THISCALL);
  10427. engine->RegisterObjectMethod(className, "void set_maxRotationSpeed(float)", AS_METHODPR(T, SetMaxRotationSpeed, (float), void), AS_CALL_THISCALL);
  10428. // void ParticleEffect::SetMaxTimeToLive(float time)
  10429. engine->RegisterObjectMethod(className, "void SetMaxTimeToLive(float)", AS_METHODPR(T, SetMaxTimeToLive, (float), void), AS_CALL_THISCALL);
  10430. engine->RegisterObjectMethod(className, "void set_maxTimeToLive(float)", AS_METHODPR(T, SetMaxTimeToLive, (float), void), AS_CALL_THISCALL);
  10431. // void ParticleEffect::SetMaxVelocity(float velocity)
  10432. engine->RegisterObjectMethod(className, "void SetMaxVelocity(float)", AS_METHODPR(T, SetMaxVelocity, (float), void), AS_CALL_THISCALL);
  10433. engine->RegisterObjectMethod(className, "void set_maxVelocity(float)", AS_METHODPR(T, SetMaxVelocity, (float), void), AS_CALL_THISCALL);
  10434. // void ParticleEffect::SetMinDirection(const Vector3& direction)
  10435. engine->RegisterObjectMethod(className, "void SetMinDirection(const Vector3&in)", AS_METHODPR(T, SetMinDirection, (const Vector3&), void), AS_CALL_THISCALL);
  10436. engine->RegisterObjectMethod(className, "void set_minDirection(const Vector3&in)", AS_METHODPR(T, SetMinDirection, (const Vector3&), void), AS_CALL_THISCALL);
  10437. // void ParticleEffect::SetMinEmissionRate(float rate)
  10438. engine->RegisterObjectMethod(className, "void SetMinEmissionRate(float)", AS_METHODPR(T, SetMinEmissionRate, (float), void), AS_CALL_THISCALL);
  10439. engine->RegisterObjectMethod(className, "void set_minEmissionRate(float)", AS_METHODPR(T, SetMinEmissionRate, (float), void), AS_CALL_THISCALL);
  10440. // void ParticleEffect::SetMinParticleSize(const Vector2& size)
  10441. engine->RegisterObjectMethod(className, "void SetMinParticleSize(const Vector2&in)", AS_METHODPR(T, SetMinParticleSize, (const Vector2&), void), AS_CALL_THISCALL);
  10442. engine->RegisterObjectMethod(className, "void set_minParticleSize(const Vector2&in)", AS_METHODPR(T, SetMinParticleSize, (const Vector2&), void), AS_CALL_THISCALL);
  10443. // void ParticleEffect::SetMinRotation(float rotation)
  10444. engine->RegisterObjectMethod(className, "void SetMinRotation(float)", AS_METHODPR(T, SetMinRotation, (float), void), AS_CALL_THISCALL);
  10445. engine->RegisterObjectMethod(className, "void set_minRotation(float)", AS_METHODPR(T, SetMinRotation, (float), void), AS_CALL_THISCALL);
  10446. // void ParticleEffect::SetMinRotationSpeed(float speed)
  10447. engine->RegisterObjectMethod(className, "void SetMinRotationSpeed(float)", AS_METHODPR(T, SetMinRotationSpeed, (float), void), AS_CALL_THISCALL);
  10448. engine->RegisterObjectMethod(className, "void set_minRotationSpeed(float)", AS_METHODPR(T, SetMinRotationSpeed, (float), void), AS_CALL_THISCALL);
  10449. // void ParticleEffect::SetMinTimeToLive(float time)
  10450. engine->RegisterObjectMethod(className, "void SetMinTimeToLive(float)", AS_METHODPR(T, SetMinTimeToLive, (float), void), AS_CALL_THISCALL);
  10451. engine->RegisterObjectMethod(className, "void set_minTimeToLive(float)", AS_METHODPR(T, SetMinTimeToLive, (float), void), AS_CALL_THISCALL);
  10452. // void ParticleEffect::SetMinVelocity(float velocity)
  10453. engine->RegisterObjectMethod(className, "void SetMinVelocity(float)", AS_METHODPR(T, SetMinVelocity, (float), void), AS_CALL_THISCALL);
  10454. engine->RegisterObjectMethod(className, "void set_minVelocity(float)", AS_METHODPR(T, SetMinVelocity, (float), void), AS_CALL_THISCALL);
  10455. // void ParticleEffect::SetNumColorFrames(unsigned number)
  10456. engine->RegisterObjectMethod(className, "void SetNumColorFrames(uint)", AS_METHODPR(T, SetNumColorFrames, (unsigned), void), AS_CALL_THISCALL);
  10457. engine->RegisterObjectMethod(className, "void set_numColorFrames(uint)", AS_METHODPR(T, SetNumColorFrames, (unsigned), void), AS_CALL_THISCALL);
  10458. // void ParticleEffect::SetNumParticles(unsigned num)
  10459. engine->RegisterObjectMethod(className, "void SetNumParticles(uint)", AS_METHODPR(T, SetNumParticles, (unsigned), void), AS_CALL_THISCALL);
  10460. engine->RegisterObjectMethod(className, "void set_numParticles(uint)", AS_METHODPR(T, SetNumParticles, (unsigned), void), AS_CALL_THISCALL);
  10461. // void ParticleEffect::SetNumTextureFrames(unsigned number)
  10462. engine->RegisterObjectMethod(className, "void SetNumTextureFrames(uint)", AS_METHODPR(T, SetNumTextureFrames, (unsigned), void), AS_CALL_THISCALL);
  10463. engine->RegisterObjectMethod(className, "void set_numTextureFrames(uint)", AS_METHODPR(T, SetNumTextureFrames, (unsigned), void), AS_CALL_THISCALL);
  10464. // void ParticleEffect::SetRelative(bool enable)
  10465. engine->RegisterObjectMethod(className, "void SetRelative(bool)", AS_METHODPR(T, SetRelative, (bool), void), AS_CALL_THISCALL);
  10466. engine->RegisterObjectMethod(className, "void set_relative(bool)", AS_METHODPR(T, SetRelative, (bool), void), AS_CALL_THISCALL);
  10467. // void ParticleEffect::SetScaled(bool enable)
  10468. engine->RegisterObjectMethod(className, "void SetScaled(bool)", AS_METHODPR(T, SetScaled, (bool), void), AS_CALL_THISCALL);
  10469. engine->RegisterObjectMethod(className, "void set_scaled(bool)", AS_METHODPR(T, SetScaled, (bool), void), AS_CALL_THISCALL);
  10470. // void ParticleEffect::SetSizeAdd(float sizeAdd)
  10471. engine->RegisterObjectMethod(className, "void SetSizeAdd(float)", AS_METHODPR(T, SetSizeAdd, (float), void), AS_CALL_THISCALL);
  10472. engine->RegisterObjectMethod(className, "void set_sizeAdd(float)", AS_METHODPR(T, SetSizeAdd, (float), void), AS_CALL_THISCALL);
  10473. // void ParticleEffect::SetSizeMul(float sizeMul)
  10474. engine->RegisterObjectMethod(className, "void SetSizeMul(float)", AS_METHODPR(T, SetSizeMul, (float), void), AS_CALL_THISCALL);
  10475. engine->RegisterObjectMethod(className, "void set_sizeMul(float)", AS_METHODPR(T, SetSizeMul, (float), void), AS_CALL_THISCALL);
  10476. // void ParticleEffect::SetSorted(bool enable)
  10477. engine->RegisterObjectMethod(className, "void SetSorted(bool)", AS_METHODPR(T, SetSorted, (bool), void), AS_CALL_THISCALL);
  10478. engine->RegisterObjectMethod(className, "void set_sorted(bool)", AS_METHODPR(T, SetSorted, (bool), void), AS_CALL_THISCALL);
  10479. // void ParticleEffect::SetTextureFrame(unsigned index, const TextureFrame& textureFrame)
  10480. engine->RegisterObjectMethod(className, "void SetTextureFrame(uint, const TextureFrame&in)", AS_METHODPR(T, SetTextureFrame, (unsigned, const TextureFrame&), void), AS_CALL_THISCALL);
  10481. // void ParticleEffect::SetUpdateInvisible(bool enable)
  10482. engine->RegisterObjectMethod(className, "void SetUpdateInvisible(bool)", AS_METHODPR(T, SetUpdateInvisible, (bool), void), AS_CALL_THISCALL);
  10483. engine->RegisterObjectMethod(className, "void set_updateInvisible(bool)", AS_METHODPR(T, SetUpdateInvisible, (bool), void), AS_CALL_THISCALL);
  10484. // void ParticleEffect::SortColorFrames()
  10485. engine->RegisterObjectMethod(className, "void SortColorFrames()", AS_METHODPR(T, SortColorFrames, (), void), AS_CALL_THISCALL);
  10486. // void ParticleEffect::SortTextureFrames()
  10487. engine->RegisterObjectMethod(className, "void SortTextureFrames()", AS_METHODPR(T, SortTextureFrames, (), void), AS_CALL_THISCALL);
  10488. // static void ParticleEffect::RegisterObject(Context* context)
  10489. // Not registered because have @nobind mark
  10490. #ifdef REGISTER_MEMBERS_MANUAL_PART_ParticleEffect
  10491. REGISTER_MEMBERS_MANUAL_PART_ParticleEffect();
  10492. #endif
  10493. }
  10494. // class ResourceWithMetadata | File: ../Resource/Resource.h
  10495. template <class T> void RegisterMembers_ResourceWithMetadata(asIScriptEngine* engine, const char* className)
  10496. {
  10497. RegisterMembers_Resource<T>(engine, className);
  10498. // void ResourceWithMetadata::AddMetadata(const String& name, const Variant& value)
  10499. engine->RegisterObjectMethod(className, "void AddMetadata(const String&in, const Variant&in)", AS_METHODPR(T, AddMetadata, (const String&, const Variant&), void), AS_CALL_THISCALL);
  10500. engine->RegisterObjectMethod(className, "void set_metadata(const String&in, const Variant&in)", AS_METHODPR(T, AddMetadata, (const String&, const Variant&), void), AS_CALL_THISCALL);
  10501. // const Variant& ResourceWithMetadata::GetMetadata(const String& name) const
  10502. engine->RegisterObjectMethod(className, "const Variant& GetMetadata(const String&in) const", AS_METHODPR(T, GetMetadata, (const String&) const, const Variant&), AS_CALL_THISCALL);
  10503. engine->RegisterObjectMethod(className, "const Variant& get_metadata(const String&in) const", AS_METHODPR(T, GetMetadata, (const String&) const, const Variant&), AS_CALL_THISCALL);
  10504. // bool ResourceWithMetadata::HasMetadata() const
  10505. engine->RegisterObjectMethod(className, "bool HasMetadata() const", AS_METHODPR(T, HasMetadata, () const, bool), AS_CALL_THISCALL);
  10506. engine->RegisterObjectMethod(className, "bool get_hasMetadata() const", AS_METHODPR(T, HasMetadata, () const, bool), AS_CALL_THISCALL);
  10507. // void ResourceWithMetadata::RemoveAllMetadata()
  10508. engine->RegisterObjectMethod(className, "void RemoveAllMetadata()", AS_METHODPR(T, RemoveAllMetadata, (), void), AS_CALL_THISCALL);
  10509. // void ResourceWithMetadata::RemoveMetadata(const String& name)
  10510. engine->RegisterObjectMethod(className, "void RemoveMetadata(const String&in)", AS_METHODPR(T, RemoveMetadata, (const String&), void), AS_CALL_THISCALL);
  10511. #ifdef REGISTER_MEMBERS_MANUAL_PART_ResourceWithMetadata
  10512. REGISTER_MEMBERS_MANUAL_PART_ResourceWithMetadata();
  10513. #endif
  10514. }
  10515. // class Shader | File: ../Graphics/Shader.h
  10516. template <class T> void RegisterMembers_Shader(asIScriptEngine* engine, const char* className)
  10517. {
  10518. RegisterMembers_Resource<T>(engine, className);
  10519. // ShaderVariation* Shader::GetVariation(ShaderType type, const char* defines)
  10520. // Error: type "const char*" can not automatically bind
  10521. // const String& Shader::GetSourceCode(ShaderType type) const
  10522. engine->RegisterObjectMethod(className, "const String& GetSourceCode(ShaderType) const", AS_METHODPR(T, GetSourceCode, (ShaderType) const, const String&), AS_CALL_THISCALL);
  10523. // unsigned Shader::GetTimeStamp() const
  10524. engine->RegisterObjectMethod(className, "uint GetTimeStamp() const", AS_METHODPR(T, GetTimeStamp, () const, unsigned), AS_CALL_THISCALL);
  10525. // ShaderVariation* Shader::GetVariation(ShaderType type, const String& defines)
  10526. engine->RegisterObjectMethod(className, "ShaderVariation@+ GetVariation(ShaderType, const String&in)", AS_METHODPR(T, GetVariation, (ShaderType, const String&), ShaderVariation*), AS_CALL_THISCALL);
  10527. // static void Shader::RegisterObject(Context* context)
  10528. // Not registered because have @nobind mark
  10529. #ifdef REGISTER_MEMBERS_MANUAL_PART_Shader
  10530. REGISTER_MEMBERS_MANUAL_PART_Shader();
  10531. #endif
  10532. }
  10533. // SharedPtr<Technique> Technique::Clone(const String& cloneName = String::EMPTY) const
  10534. template <class T> Technique* Technique_SharedPtrlesTechniquegre_Clone_constspStringamp_template(T* _ptr, const String& cloneName)
  10535. {
  10536. SharedPtr<Technique> result = _ptr->Clone(cloneName);
  10537. return result.Detach();
  10538. }
  10539. // SharedPtr<Technique> Technique::CloneWithDefines(const String& vsDefines, const String& psDefines)
  10540. template <class T> Technique* Technique_SharedPtrlesTechniquegre_CloneWithDefines_constspStringamp_constspStringamp_template(T* _ptr, const String& vsDefines, const String& psDefines)
  10541. {
  10542. SharedPtr<Technique> result = _ptr->CloneWithDefines(vsDefines, psDefines);
  10543. return result.Detach();
  10544. }
  10545. // PODVector<Pass*> Technique::GetPasses() const
  10546. template <class T> CScriptArray* Technique_PODVectorlesPassstargre_GetPasses_void_template(T* _ptr)
  10547. {
  10548. PODVector<Pass*> result = _ptr->GetPasses();
  10549. return VectorToHandleArray(result, "Array<Pass@>");
  10550. }
  10551. // Vector<String> Technique::GetPassNames() const
  10552. template <class T> CScriptArray* Technique_VectorlesStringgre_GetPassNames_void_template(T* _ptr)
  10553. {
  10554. Vector<String> result = _ptr->GetPassNames();
  10555. return VectorToArray<String>(result, "Array<String>");
  10556. }
  10557. // class Technique | File: ../Graphics/Technique.h
  10558. template <class T> void RegisterMembers_Technique(asIScriptEngine* engine, const char* className)
  10559. {
  10560. RegisterMembers_Resource<T>(engine, className);
  10561. // SharedPtr<Technique> Technique::Clone(const String& cloneName = String::EMPTY) const
  10562. engine->RegisterObjectMethod(className, "Technique@+ Clone(const String&in = String::EMPTY) const", AS_FUNCTION_OBJFIRST(Technique_SharedPtrlesTechniquegre_Clone_constspStringamp_template<Technique>), AS_CALL_CDECL_OBJFIRST);
  10563. // SharedPtr<Technique> Technique::CloneWithDefines(const String& vsDefines, const String& psDefines)
  10564. engine->RegisterObjectMethod(className, "Technique@+ CloneWithDefines(const String&in, const String&in)", AS_FUNCTION_OBJFIRST(Technique_SharedPtrlesTechniquegre_CloneWithDefines_constspStringamp_constspStringamp_template<Technique>), AS_CALL_CDECL_OBJFIRST);
  10565. // Pass* Technique::CreatePass(const String& name)
  10566. engine->RegisterObjectMethod(className, "Pass@+ CreatePass(const String&in)", AS_METHODPR(T, CreatePass, (const String&), Pass*), AS_CALL_THISCALL);
  10567. // unsigned Technique::GetNumPasses() const
  10568. engine->RegisterObjectMethod(className, "uint GetNumPasses() const", AS_METHODPR(T, GetNumPasses, () const, unsigned), AS_CALL_THISCALL);
  10569. engine->RegisterObjectMethod(className, "uint get_numPasses() const", AS_METHODPR(T, GetNumPasses, () const, unsigned), AS_CALL_THISCALL);
  10570. // Pass* Technique::GetPass(unsigned passIndex) const
  10571. engine->RegisterObjectMethod(className, "Pass@+ GetPass(uint) const", AS_METHODPR(T, GetPass, (unsigned) const, Pass*), AS_CALL_THISCALL);
  10572. // Pass* Technique::GetPass(const String& name) const
  10573. engine->RegisterObjectMethod(className, "Pass@+ GetPass(const String&in) const", AS_METHODPR(T, GetPass, (const String&) const, Pass*), AS_CALL_THISCALL);
  10574. // PODVector<Pass*> Technique::GetPasses() const
  10575. engine->RegisterObjectMethod(className, "Array<Pass@>@ GetPasses() const", AS_FUNCTION_OBJFIRST(Technique_PODVectorlesPassstargre_GetPasses_void_template<Technique>), AS_CALL_CDECL_OBJFIRST);
  10576. engine->RegisterObjectMethod(className, "Array<Pass@>@ get_passes() const", AS_FUNCTION_OBJFIRST(Technique_PODVectorlesPassstargre_GetPasses_void_template<Technique>), AS_CALL_CDECL_OBJFIRST);
  10577. // Vector<String> Technique::GetPassNames() const
  10578. engine->RegisterObjectMethod(className, "Array<String>@ GetPassNames() const", AS_FUNCTION_OBJFIRST(Technique_VectorlesStringgre_GetPassNames_void_template<Technique>), AS_CALL_CDECL_OBJFIRST);
  10579. engine->RegisterObjectMethod(className, "Array<String>@ get_passNames() const", AS_FUNCTION_OBJFIRST(Technique_VectorlesStringgre_GetPassNames_void_template<Technique>), AS_CALL_CDECL_OBJFIRST);
  10580. // Pass* Technique::GetSupportedPass(unsigned passIndex) const
  10581. engine->RegisterObjectMethod(className, "Pass@+ GetSupportedPass(uint) const", AS_METHODPR(T, GetSupportedPass, (unsigned) const, Pass*), AS_CALL_THISCALL);
  10582. // Pass* Technique::GetSupportedPass(const String& name) const
  10583. engine->RegisterObjectMethod(className, "Pass@+ GetSupportedPass(const String&in) const", AS_METHODPR(T, GetSupportedPass, (const String&) const, Pass*), AS_CALL_THISCALL);
  10584. // bool Technique::HasPass(unsigned passIndex) const
  10585. engine->RegisterObjectMethod(className, "bool HasPass(uint) const", AS_METHODPR(T, HasPass, (unsigned) const, bool), AS_CALL_THISCALL);
  10586. // bool Technique::HasPass(const String& name) const
  10587. engine->RegisterObjectMethod(className, "bool HasPass(const String&in) const", AS_METHODPR(T, HasPass, (const String&) const, bool), AS_CALL_THISCALL);
  10588. // bool Technique::IsDesktop() const
  10589. engine->RegisterObjectMethod(className, "bool IsDesktop() const", AS_METHODPR(T, IsDesktop, () const, bool), AS_CALL_THISCALL);
  10590. engine->RegisterObjectMethod(className, "bool get_desktop() const", AS_METHODPR(T, IsDesktop, () const, bool), AS_CALL_THISCALL);
  10591. // bool Technique::IsSupported() const
  10592. engine->RegisterObjectMethod(className, "bool IsSupported() const", AS_METHODPR(T, IsSupported, () const, bool), AS_CALL_THISCALL);
  10593. engine->RegisterObjectMethod(className, "bool get_supported() const", AS_METHODPR(T, IsSupported, () const, bool), AS_CALL_THISCALL);
  10594. // void Technique::ReleaseShaders()
  10595. engine->RegisterObjectMethod(className, "void ReleaseShaders()", AS_METHODPR(T, ReleaseShaders, (), void), AS_CALL_THISCALL);
  10596. // void Technique::RemovePass(const String& name)
  10597. engine->RegisterObjectMethod(className, "void RemovePass(const String&in)", AS_METHODPR(T, RemovePass, (const String&), void), AS_CALL_THISCALL);
  10598. // void Technique::SetIsDesktop(bool enable)
  10599. engine->RegisterObjectMethod(className, "void SetIsDesktop(bool)", AS_METHODPR(T, SetIsDesktop, (bool), void), AS_CALL_THISCALL);
  10600. engine->RegisterObjectMethod(className, "void set_desktop(bool)", AS_METHODPR(T, SetIsDesktop, (bool), void), AS_CALL_THISCALL);
  10601. // static void Technique::RegisterObject(Context* context)
  10602. // Not registered because have @nobind mark
  10603. // static unsigned Technique::GetPassIndex(const String& passName)
  10604. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint GetPassIndex(const String&in)", AS_FUNCTIONPR(T::GetPassIndex, (const String&), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  10605. // static unsigned Technique::basePassIndex
  10606. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("uint basePassIndex", (void*)&T::basePassIndex);engine->SetDefaultNamespace("");
  10607. // static unsigned Technique::alphaPassIndex
  10608. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("uint alphaPassIndex", (void*)&T::alphaPassIndex);engine->SetDefaultNamespace("");
  10609. // static unsigned Technique::materialPassIndex
  10610. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("uint materialPassIndex", (void*)&T::materialPassIndex);engine->SetDefaultNamespace("");
  10611. // static unsigned Technique::deferredPassIndex
  10612. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("uint deferredPassIndex", (void*)&T::deferredPassIndex);engine->SetDefaultNamespace("");
  10613. // static unsigned Technique::lightPassIndex
  10614. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("uint lightPassIndex", (void*)&T::lightPassIndex);engine->SetDefaultNamespace("");
  10615. // static unsigned Technique::litBasePassIndex
  10616. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("uint litBasePassIndex", (void*)&T::litBasePassIndex);engine->SetDefaultNamespace("");
  10617. // static unsigned Technique::litAlphaPassIndex
  10618. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("uint litAlphaPassIndex", (void*)&T::litAlphaPassIndex);engine->SetDefaultNamespace("");
  10619. // static unsigned Technique::shadowPassIndex
  10620. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("uint shadowPassIndex", (void*)&T::shadowPassIndex);engine->SetDefaultNamespace("");
  10621. #ifdef REGISTER_MEMBERS_MANUAL_PART_Technique
  10622. REGISTER_MEMBERS_MANUAL_PART_Technique();
  10623. #endif
  10624. }
  10625. // class ValueAnimation | File: ../Scene/ValueAnimation.h
  10626. template <class T> void RegisterMembers_ValueAnimation(asIScriptEngine* engine, const char* className)
  10627. {
  10628. RegisterMembers_Resource<T>(engine, className);
  10629. // void ValueAnimation::GetEventFrames(float beginTime, float endTime, PODVector<const VAnimEventFrame*>& eventFrames) const
  10630. // Error: type "PODVector<const VAnimEventFrame*>&" can not automatically bind
  10631. // const Vector<VAnimKeyFrame>& ValueAnimation::GetKeyFrames() const
  10632. // Error: type "const Vector<VAnimKeyFrame>&" can not automatically bind
  10633. // void* ValueAnimation::GetOwner() const
  10634. // Error: type "void*" can not automatically bind
  10635. // void ValueAnimation::SetOwner(void* owner)
  10636. // Error: type "void*" can not automatically bind
  10637. // Variant ValueAnimation::GetAnimationValue(float scaledTime) const
  10638. engine->RegisterObjectMethod(className, "Variant GetAnimationValue(float) const", AS_METHODPR(T, GetAnimationValue, (float) const, Variant), AS_CALL_THISCALL);
  10639. // float ValueAnimation::GetBeginTime() const
  10640. engine->RegisterObjectMethod(className, "float GetBeginTime() const", AS_METHODPR(T, GetBeginTime, () const, float), AS_CALL_THISCALL);
  10641. // float ValueAnimation::GetEndTime() const
  10642. engine->RegisterObjectMethod(className, "float GetEndTime() const", AS_METHODPR(T, GetEndTime, () const, float), AS_CALL_THISCALL);
  10643. // InterpMethod ValueAnimation::GetInterpolationMethod() const
  10644. engine->RegisterObjectMethod(className, "InterpMethod GetInterpolationMethod() const", AS_METHODPR(T, GetInterpolationMethod, () const, InterpMethod), AS_CALL_THISCALL);
  10645. engine->RegisterObjectMethod(className, "InterpMethod get_interpolationMethod() const", AS_METHODPR(T, GetInterpolationMethod, () const, InterpMethod), AS_CALL_THISCALL);
  10646. // float ValueAnimation::GetSplineTension() const
  10647. engine->RegisterObjectMethod(className, "float GetSplineTension() const", AS_METHODPR(T, GetSplineTension, () const, float), AS_CALL_THISCALL);
  10648. engine->RegisterObjectMethod(className, "float get_splineTension() const", AS_METHODPR(T, GetSplineTension, () const, float), AS_CALL_THISCALL);
  10649. // VariantType ValueAnimation::GetValueType() const
  10650. engine->RegisterObjectMethod(className, "VariantType GetValueType() const", AS_METHODPR(T, GetValueType, () const, VariantType), AS_CALL_THISCALL);
  10651. engine->RegisterObjectMethod(className, "VariantType get_valueType() const", AS_METHODPR(T, GetValueType, () const, VariantType), AS_CALL_THISCALL);
  10652. // bool ValueAnimation::HasEventFrames() const
  10653. engine->RegisterObjectMethod(className, "bool HasEventFrames() const", AS_METHODPR(T, HasEventFrames, () const, bool), AS_CALL_THISCALL);
  10654. // bool ValueAnimation::IsValid() const
  10655. engine->RegisterObjectMethod(className, "bool IsValid() const", AS_METHODPR(T, IsValid, () const, bool), AS_CALL_THISCALL);
  10656. // bool ValueAnimation::LoadJSON(const JSONValue& source)
  10657. engine->RegisterObjectMethod(className, "bool LoadJSON(const JSONValue&in)", AS_METHODPR(T, LoadJSON, (const JSONValue&), bool), AS_CALL_THISCALL);
  10658. // bool ValueAnimation::LoadXML(const XMLElement& source)
  10659. engine->RegisterObjectMethod(className, "bool LoadXML(const XMLElement&in)", AS_METHODPR(T, LoadXML, (const XMLElement&), bool), AS_CALL_THISCALL);
  10660. // bool ValueAnimation::SaveJSON(JSONValue& dest) const
  10661. engine->RegisterObjectMethod(className, "bool SaveJSON(JSONValue&) const", AS_METHODPR(T, SaveJSON, (JSONValue&) const, bool), AS_CALL_THISCALL);
  10662. // bool ValueAnimation::SaveXML(XMLElement& dest) const
  10663. engine->RegisterObjectMethod(className, "bool SaveXML(XMLElement&) const", AS_METHODPR(T, SaveXML, (XMLElement&) const, bool), AS_CALL_THISCALL);
  10664. // void ValueAnimation::SetEventFrame(float time, const StringHash& eventType, const VariantMap& eventData = VariantMap())
  10665. engine->RegisterObjectMethod(className, "void SetEventFrame(float, const StringHash&in, const VariantMap&in = VariantMap())", AS_METHODPR(T, SetEventFrame, (float, const StringHash&, const VariantMap&), void), AS_CALL_THISCALL);
  10666. // void ValueAnimation::SetInterpolationMethod(InterpMethod method)
  10667. engine->RegisterObjectMethod(className, "void SetInterpolationMethod(InterpMethod)", AS_METHODPR(T, SetInterpolationMethod, (InterpMethod), void), AS_CALL_THISCALL);
  10668. engine->RegisterObjectMethod(className, "void set_interpolationMethod(InterpMethod)", AS_METHODPR(T, SetInterpolationMethod, (InterpMethod), void), AS_CALL_THISCALL);
  10669. // bool ValueAnimation::SetKeyFrame(float time, const Variant& value)
  10670. engine->RegisterObjectMethod(className, "bool SetKeyFrame(float, const Variant&in)", AS_METHODPR(T, SetKeyFrame, (float, const Variant&), bool), AS_CALL_THISCALL);
  10671. // void ValueAnimation::SetSplineTension(float tension)
  10672. engine->RegisterObjectMethod(className, "void SetSplineTension(float)", AS_METHODPR(T, SetSplineTension, (float), void), AS_CALL_THISCALL);
  10673. engine->RegisterObjectMethod(className, "void set_splineTension(float)", AS_METHODPR(T, SetSplineTension, (float), void), AS_CALL_THISCALL);
  10674. // void ValueAnimation::SetValueType(VariantType valueType)
  10675. engine->RegisterObjectMethod(className, "void SetValueType(VariantType)", AS_METHODPR(T, SetValueType, (VariantType), void), AS_CALL_THISCALL);
  10676. engine->RegisterObjectMethod(className, "void set_valueType(VariantType)", AS_METHODPR(T, SetValueType, (VariantType), void), AS_CALL_THISCALL);
  10677. // static void ValueAnimation::RegisterObject(Context* context)
  10678. // Not registered because have @nobind mark
  10679. #ifdef REGISTER_MEMBERS_MANUAL_PART_ValueAnimation
  10680. REGISTER_MEMBERS_MANUAL_PART_ValueAnimation();
  10681. #endif
  10682. }
  10683. // class XMLFile | File: ../Resource/XMLFile.h
  10684. template <class T> void RegisterMembers_XMLFile(asIScriptEngine* engine, const char* className)
  10685. {
  10686. RegisterMembers_Resource<T>(engine, className);
  10687. // pugi::xml_document* XMLFile::GetDocument() const
  10688. // Error: type "pugi::xml_document*" can not automatically bind
  10689. // XMLElement XMLFile::CreateRoot(const String& name)
  10690. engine->RegisterObjectMethod(className, "XMLElement CreateRoot(const String&in)", AS_METHODPR(T, CreateRoot, (const String&), XMLElement), AS_CALL_THISCALL);
  10691. // bool XMLFile::FromString(const String& source)
  10692. engine->RegisterObjectMethod(className, "bool FromString(const String&in)", AS_METHODPR(T, FromString, (const String&), bool), AS_CALL_THISCALL);
  10693. // XMLElement XMLFile::GetOrCreateRoot(const String& name)
  10694. engine->RegisterObjectMethod(className, "XMLElement GetOrCreateRoot(const String&in)", AS_METHODPR(T, GetOrCreateRoot, (const String&), XMLElement), AS_CALL_THISCALL);
  10695. // XMLElement XMLFile::GetRoot(const String& name = String::EMPTY)
  10696. engine->RegisterObjectMethod(className, "XMLElement GetRoot(const String&in = String::EMPTY)", AS_METHODPR(T, GetRoot, (const String&), XMLElement), AS_CALL_THISCALL);
  10697. // void XMLFile::Patch(XMLFile* patchFile)
  10698. engine->RegisterObjectMethod(className, "void Patch(XMLFile@+)", AS_METHODPR(T, Patch, (XMLFile*), void), AS_CALL_THISCALL);
  10699. // void XMLFile::Patch(const XMLElement& patchElement)
  10700. engine->RegisterObjectMethod(className, "void Patch(const XMLElement&in)", AS_METHODPR(T, Patch, (const XMLElement&), void), AS_CALL_THISCALL);
  10701. // bool XMLFile::Save(Serializer& dest, const String& indentation) const
  10702. engine->RegisterObjectMethod(className, "bool Save(Serializer&, const String&in) const", AS_METHODPR(T, Save, (Serializer&, const String&) const, bool), AS_CALL_THISCALL);
  10703. // String XMLFile::ToString(const String& indentation = "\t") const
  10704. engine->RegisterObjectMethod(className, "String ToString(const String&in = \"\t\") const", AS_METHODPR(T, ToString, (const String&) const, String), AS_CALL_THISCALL);
  10705. // static void XMLFile::RegisterObject(Context* context)
  10706. // Not registered because have @nobind mark
  10707. #ifdef REGISTER_MEMBERS_MANUAL_PART_XMLFile
  10708. REGISTER_MEMBERS_MANUAL_PART_XMLFile();
  10709. #endif
  10710. }
  10711. #ifdef URHO3D_URHO2D
  10712. // class AnimationSet2D | File: ../Urho2D/AnimationSet2D.h
  10713. template <class T> void RegisterMembers_AnimationSet2D(asIScriptEngine* engine, const char* className)
  10714. {
  10715. RegisterMembers_Resource<T>(engine, className);
  10716. // Spriter::SpriterData* AnimationSet2D::GetSpriterData() const
  10717. // Error: type "Spriter::SpriterData*" can not automatically bind
  10718. // String AnimationSet2D::GetAnimation(unsigned index) const
  10719. engine->RegisterObjectMethod(className, "String GetAnimation(uint) const", AS_METHODPR(T, GetAnimation, (unsigned) const, String), AS_CALL_THISCALL);
  10720. // unsigned AnimationSet2D::GetNumAnimations() const
  10721. engine->RegisterObjectMethod(className, "uint GetNumAnimations() const", AS_METHODPR(T, GetNumAnimations, () const, unsigned), AS_CALL_THISCALL);
  10722. engine->RegisterObjectMethod(className, "uint get_numAnimations() const", AS_METHODPR(T, GetNumAnimations, () const, unsigned), AS_CALL_THISCALL);
  10723. // Sprite2D* AnimationSet2D::GetSprite() const
  10724. engine->RegisterObjectMethod(className, "Sprite2D@+ GetSprite() const", AS_METHODPR(T, GetSprite, () const, Sprite2D*), AS_CALL_THISCALL);
  10725. // Sprite2D* AnimationSet2D::GetSpriterFileSprite(int folderId, int fileId) const
  10726. engine->RegisterObjectMethod(className, "Sprite2D@+ GetSpriterFileSprite(int, int) const", AS_METHODPR(T, GetSpriterFileSprite, (int, int) const, Sprite2D*), AS_CALL_THISCALL);
  10727. // bool AnimationSet2D::HasAnimation(const String& animationName) const
  10728. engine->RegisterObjectMethod(className, "bool HasAnimation(const String&in) const", AS_METHODPR(T, HasAnimation, (const String&) const, bool), AS_CALL_THISCALL);
  10729. // static void AnimationSet2D::RegisterObject(Context* context)
  10730. // Not registered because have @nobind mark
  10731. #ifdef REGISTER_MEMBERS_MANUAL_PART_AnimationSet2D
  10732. REGISTER_MEMBERS_MANUAL_PART_AnimationSet2D();
  10733. #endif
  10734. }
  10735. // SharedPtr<ParticleEffect2D> ParticleEffect2D::Clone(const String& cloneName = String::EMPTY) const
  10736. template <class T> ParticleEffect2D* ParticleEffect2D_SharedPtrlesParticleEffect2Dgre_Clone_constspStringamp_template(T* _ptr, const String& cloneName)
  10737. {
  10738. SharedPtr<ParticleEffect2D> result = _ptr->Clone(cloneName);
  10739. return result.Detach();
  10740. }
  10741. // class ParticleEffect2D | File: ../Urho2D/ParticleEffect2D.h
  10742. template <class T> void RegisterMembers_ParticleEffect2D(asIScriptEngine* engine, const char* className)
  10743. {
  10744. RegisterMembers_Resource<T>(engine, className);
  10745. // SharedPtr<ParticleEffect2D> ParticleEffect2D::Clone(const String& cloneName = String::EMPTY) const
  10746. engine->RegisterObjectMethod(className, "ParticleEffect2D@+ Clone(const String&in = String::EMPTY) const", AS_FUNCTION_OBJFIRST(ParticleEffect2D_SharedPtrlesParticleEffect2Dgre_Clone_constspStringamp_template<ParticleEffect2D>), AS_CALL_CDECL_OBJFIRST);
  10747. // float ParticleEffect2D::GetAngle() const
  10748. engine->RegisterObjectMethod(className, "float GetAngle() const", AS_METHODPR(T, GetAngle, () const, float), AS_CALL_THISCALL);
  10749. // float ParticleEffect2D::GetAngleVariance() const
  10750. engine->RegisterObjectMethod(className, "float GetAngleVariance() const", AS_METHODPR(T, GetAngleVariance, () const, float), AS_CALL_THISCALL);
  10751. // BlendMode ParticleEffect2D::GetBlendMode() const
  10752. engine->RegisterObjectMethod(className, "BlendMode GetBlendMode() const", AS_METHODPR(T, GetBlendMode, () const, BlendMode), AS_CALL_THISCALL);
  10753. // float ParticleEffect2D::GetDuration() const
  10754. engine->RegisterObjectMethod(className, "float GetDuration() const", AS_METHODPR(T, GetDuration, () const, float), AS_CALL_THISCALL);
  10755. // EmitterType2D ParticleEffect2D::GetEmitterType() const
  10756. engine->RegisterObjectMethod(className, "EmitterType2D GetEmitterType() const", AS_METHODPR(T, GetEmitterType, () const, EmitterType2D), AS_CALL_THISCALL);
  10757. // const Color& ParticleEffect2D::GetFinishColor() const
  10758. engine->RegisterObjectMethod(className, "const Color& GetFinishColor() const", AS_METHODPR(T, GetFinishColor, () const, const Color&), AS_CALL_THISCALL);
  10759. // const Color& ParticleEffect2D::GetFinishColorVariance() const
  10760. engine->RegisterObjectMethod(className, "const Color& GetFinishColorVariance() const", AS_METHODPR(T, GetFinishColorVariance, () const, const Color&), AS_CALL_THISCALL);
  10761. // float ParticleEffect2D::GetFinishParticleSize() const
  10762. engine->RegisterObjectMethod(className, "float GetFinishParticleSize() const", AS_METHODPR(T, GetFinishParticleSize, () const, float), AS_CALL_THISCALL);
  10763. // float ParticleEffect2D::GetFinishParticleSizeVariance() const
  10764. engine->RegisterObjectMethod(className, "float GetFinishParticleSizeVariance() const", AS_METHODPR(T, GetFinishParticleSizeVariance, () const, float), AS_CALL_THISCALL);
  10765. // const Vector2& ParticleEffect2D::GetGravity() const
  10766. engine->RegisterObjectMethod(className, "const Vector2& GetGravity() const", AS_METHODPR(T, GetGravity, () const, const Vector2&), AS_CALL_THISCALL);
  10767. // int ParticleEffect2D::GetMaxParticles() const
  10768. engine->RegisterObjectMethod(className, "int GetMaxParticles() const", AS_METHODPR(T, GetMaxParticles, () const, int), AS_CALL_THISCALL);
  10769. // float ParticleEffect2D::GetMaxRadius() const
  10770. engine->RegisterObjectMethod(className, "float GetMaxRadius() const", AS_METHODPR(T, GetMaxRadius, () const, float), AS_CALL_THISCALL);
  10771. // float ParticleEffect2D::GetMaxRadiusVariance() const
  10772. engine->RegisterObjectMethod(className, "float GetMaxRadiusVariance() const", AS_METHODPR(T, GetMaxRadiusVariance, () const, float), AS_CALL_THISCALL);
  10773. // float ParticleEffect2D::GetMinRadius() const
  10774. engine->RegisterObjectMethod(className, "float GetMinRadius() const", AS_METHODPR(T, GetMinRadius, () const, float), AS_CALL_THISCALL);
  10775. // float ParticleEffect2D::GetMinRadiusVariance() const
  10776. engine->RegisterObjectMethod(className, "float GetMinRadiusVariance() const", AS_METHODPR(T, GetMinRadiusVariance, () const, float), AS_CALL_THISCALL);
  10777. // float ParticleEffect2D::GetParticleLifeSpan() const
  10778. engine->RegisterObjectMethod(className, "float GetParticleLifeSpan() const", AS_METHODPR(T, GetParticleLifeSpan, () const, float), AS_CALL_THISCALL);
  10779. // float ParticleEffect2D::GetParticleLifespanVariance() const
  10780. engine->RegisterObjectMethod(className, "float GetParticleLifespanVariance() const", AS_METHODPR(T, GetParticleLifespanVariance, () const, float), AS_CALL_THISCALL);
  10781. // float ParticleEffect2D::GetRadialAcceleration() const
  10782. engine->RegisterObjectMethod(className, "float GetRadialAcceleration() const", AS_METHODPR(T, GetRadialAcceleration, () const, float), AS_CALL_THISCALL);
  10783. // float ParticleEffect2D::GetRadialAccelVariance() const
  10784. engine->RegisterObjectMethod(className, "float GetRadialAccelVariance() const", AS_METHODPR(T, GetRadialAccelVariance, () const, float), AS_CALL_THISCALL);
  10785. // float ParticleEffect2D::GetRotatePerSecond() const
  10786. engine->RegisterObjectMethod(className, "float GetRotatePerSecond() const", AS_METHODPR(T, GetRotatePerSecond, () const, float), AS_CALL_THISCALL);
  10787. // float ParticleEffect2D::GetRotatePerSecondVariance() const
  10788. engine->RegisterObjectMethod(className, "float GetRotatePerSecondVariance() const", AS_METHODPR(T, GetRotatePerSecondVariance, () const, float), AS_CALL_THISCALL);
  10789. // float ParticleEffect2D::GetRotationEnd() const
  10790. engine->RegisterObjectMethod(className, "float GetRotationEnd() const", AS_METHODPR(T, GetRotationEnd, () const, float), AS_CALL_THISCALL);
  10791. // float ParticleEffect2D::GetRotationEndVariance() const
  10792. engine->RegisterObjectMethod(className, "float GetRotationEndVariance() const", AS_METHODPR(T, GetRotationEndVariance, () const, float), AS_CALL_THISCALL);
  10793. // float ParticleEffect2D::GetRotationStart() const
  10794. engine->RegisterObjectMethod(className, "float GetRotationStart() const", AS_METHODPR(T, GetRotationStart, () const, float), AS_CALL_THISCALL);
  10795. // float ParticleEffect2D::GetRotationStartVariance() const
  10796. engine->RegisterObjectMethod(className, "float GetRotationStartVariance() const", AS_METHODPR(T, GetRotationStartVariance, () const, float), AS_CALL_THISCALL);
  10797. // const Vector2& ParticleEffect2D::GetSourcePositionVariance() const
  10798. engine->RegisterObjectMethod(className, "const Vector2& GetSourcePositionVariance() const", AS_METHODPR(T, GetSourcePositionVariance, () const, const Vector2&), AS_CALL_THISCALL);
  10799. // float ParticleEffect2D::GetSpeed() const
  10800. engine->RegisterObjectMethod(className, "float GetSpeed() const", AS_METHODPR(T, GetSpeed, () const, float), AS_CALL_THISCALL);
  10801. // float ParticleEffect2D::GetSpeedVariance() const
  10802. engine->RegisterObjectMethod(className, "float GetSpeedVariance() const", AS_METHODPR(T, GetSpeedVariance, () const, float), AS_CALL_THISCALL);
  10803. // Sprite2D* ParticleEffect2D::GetSprite() const
  10804. engine->RegisterObjectMethod(className, "Sprite2D@+ GetSprite() const", AS_METHODPR(T, GetSprite, () const, Sprite2D*), AS_CALL_THISCALL);
  10805. // const Color& ParticleEffect2D::GetStartColor() const
  10806. engine->RegisterObjectMethod(className, "const Color& GetStartColor() const", AS_METHODPR(T, GetStartColor, () const, const Color&), AS_CALL_THISCALL);
  10807. // const Color& ParticleEffect2D::GetStartColorVariance() const
  10808. engine->RegisterObjectMethod(className, "const Color& GetStartColorVariance() const", AS_METHODPR(T, GetStartColorVariance, () const, const Color&), AS_CALL_THISCALL);
  10809. // float ParticleEffect2D::GetStartParticleSize() const
  10810. engine->RegisterObjectMethod(className, "float GetStartParticleSize() const", AS_METHODPR(T, GetStartParticleSize, () const, float), AS_CALL_THISCALL);
  10811. // float ParticleEffect2D::GetStartParticleSizeVariance() const
  10812. engine->RegisterObjectMethod(className, "float GetStartParticleSizeVariance() const", AS_METHODPR(T, GetStartParticleSizeVariance, () const, float), AS_CALL_THISCALL);
  10813. // float ParticleEffect2D::GetTangentialAcceleration() const
  10814. engine->RegisterObjectMethod(className, "float GetTangentialAcceleration() const", AS_METHODPR(T, GetTangentialAcceleration, () const, float), AS_CALL_THISCALL);
  10815. // float ParticleEffect2D::GetTangentialAccelVariance() const
  10816. engine->RegisterObjectMethod(className, "float GetTangentialAccelVariance() const", AS_METHODPR(T, GetTangentialAccelVariance, () const, float), AS_CALL_THISCALL);
  10817. // void ParticleEffect2D::SetAngle(float angle)
  10818. engine->RegisterObjectMethod(className, "void SetAngle(float)", AS_METHODPR(T, SetAngle, (float), void), AS_CALL_THISCALL);
  10819. // void ParticleEffect2D::SetAngleVariance(float angleVariance)
  10820. engine->RegisterObjectMethod(className, "void SetAngleVariance(float)", AS_METHODPR(T, SetAngleVariance, (float), void), AS_CALL_THISCALL);
  10821. // void ParticleEffect2D::SetBlendMode(BlendMode blendMode)
  10822. engine->RegisterObjectMethod(className, "void SetBlendMode(BlendMode)", AS_METHODPR(T, SetBlendMode, (BlendMode), void), AS_CALL_THISCALL);
  10823. // void ParticleEffect2D::SetDuration(float duration)
  10824. engine->RegisterObjectMethod(className, "void SetDuration(float)", AS_METHODPR(T, SetDuration, (float), void), AS_CALL_THISCALL);
  10825. // void ParticleEffect2D::SetEmitterType(EmitterType2D emitterType)
  10826. engine->RegisterObjectMethod(className, "void SetEmitterType(EmitterType2D)", AS_METHODPR(T, SetEmitterType, (EmitterType2D), void), AS_CALL_THISCALL);
  10827. // void ParticleEffect2D::SetFinishColor(const Color& finishColor)
  10828. engine->RegisterObjectMethod(className, "void SetFinishColor(const Color&in)", AS_METHODPR(T, SetFinishColor, (const Color&), void), AS_CALL_THISCALL);
  10829. // void ParticleEffect2D::SetFinishColorVariance(const Color& finishColorVariance)
  10830. engine->RegisterObjectMethod(className, "void SetFinishColorVariance(const Color&in)", AS_METHODPR(T, SetFinishColorVariance, (const Color&), void), AS_CALL_THISCALL);
  10831. // void ParticleEffect2D::SetFinishParticleSize(float finishParticleSize)
  10832. engine->RegisterObjectMethod(className, "void SetFinishParticleSize(float)", AS_METHODPR(T, SetFinishParticleSize, (float), void), AS_CALL_THISCALL);
  10833. // void ParticleEffect2D::SetFinishParticleSizeVariance(float finishParticleSizeVariance)
  10834. engine->RegisterObjectMethod(className, "void SetFinishParticleSizeVariance(float)", AS_METHODPR(T, SetFinishParticleSizeVariance, (float), void), AS_CALL_THISCALL);
  10835. // void ParticleEffect2D::SetGravity(const Vector2& gravity)
  10836. engine->RegisterObjectMethod(className, "void SetGravity(const Vector2&in)", AS_METHODPR(T, SetGravity, (const Vector2&), void), AS_CALL_THISCALL);
  10837. // void ParticleEffect2D::SetMaxParticles(int maxParticles)
  10838. engine->RegisterObjectMethod(className, "void SetMaxParticles(int)", AS_METHODPR(T, SetMaxParticles, (int), void), AS_CALL_THISCALL);
  10839. // void ParticleEffect2D::SetMaxRadius(float maxRadius)
  10840. engine->RegisterObjectMethod(className, "void SetMaxRadius(float)", AS_METHODPR(T, SetMaxRadius, (float), void), AS_CALL_THISCALL);
  10841. // void ParticleEffect2D::SetMaxRadiusVariance(float maxRadiusVariance)
  10842. engine->RegisterObjectMethod(className, "void SetMaxRadiusVariance(float)", AS_METHODPR(T, SetMaxRadiusVariance, (float), void), AS_CALL_THISCALL);
  10843. // void ParticleEffect2D::SetMinRadius(float minRadius)
  10844. engine->RegisterObjectMethod(className, "void SetMinRadius(float)", AS_METHODPR(T, SetMinRadius, (float), void), AS_CALL_THISCALL);
  10845. // void ParticleEffect2D::SetMinRadiusVariance(float minRadiusVariance)
  10846. engine->RegisterObjectMethod(className, "void SetMinRadiusVariance(float)", AS_METHODPR(T, SetMinRadiusVariance, (float), void), AS_CALL_THISCALL);
  10847. // void ParticleEffect2D::SetParticleLifeSpan(float particleLifeSpan)
  10848. engine->RegisterObjectMethod(className, "void SetParticleLifeSpan(float)", AS_METHODPR(T, SetParticleLifeSpan, (float), void), AS_CALL_THISCALL);
  10849. // void ParticleEffect2D::SetParticleLifespanVariance(float particleLifespanVariance)
  10850. engine->RegisterObjectMethod(className, "void SetParticleLifespanVariance(float)", AS_METHODPR(T, SetParticleLifespanVariance, (float), void), AS_CALL_THISCALL);
  10851. // void ParticleEffect2D::SetRadialAcceleration(float radialAcceleration)
  10852. engine->RegisterObjectMethod(className, "void SetRadialAcceleration(float)", AS_METHODPR(T, SetRadialAcceleration, (float), void), AS_CALL_THISCALL);
  10853. // void ParticleEffect2D::SetRadialAccelVariance(float radialAccelVariance)
  10854. engine->RegisterObjectMethod(className, "void SetRadialAccelVariance(float)", AS_METHODPR(T, SetRadialAccelVariance, (float), void), AS_CALL_THISCALL);
  10855. // void ParticleEffect2D::SetRotatePerSecond(float rotatePerSecond)
  10856. engine->RegisterObjectMethod(className, "void SetRotatePerSecond(float)", AS_METHODPR(T, SetRotatePerSecond, (float), void), AS_CALL_THISCALL);
  10857. // void ParticleEffect2D::SetRotatePerSecondVariance(float rotatePerSecondVariance)
  10858. engine->RegisterObjectMethod(className, "void SetRotatePerSecondVariance(float)", AS_METHODPR(T, SetRotatePerSecondVariance, (float), void), AS_CALL_THISCALL);
  10859. // void ParticleEffect2D::SetRotationEnd(float rotationEnd)
  10860. engine->RegisterObjectMethod(className, "void SetRotationEnd(float)", AS_METHODPR(T, SetRotationEnd, (float), void), AS_CALL_THISCALL);
  10861. // void ParticleEffect2D::SetRotationEndVariance(float rotationEndVariance)
  10862. engine->RegisterObjectMethod(className, "void SetRotationEndVariance(float)", AS_METHODPR(T, SetRotationEndVariance, (float), void), AS_CALL_THISCALL);
  10863. // void ParticleEffect2D::SetRotationStart(float rotationStart)
  10864. engine->RegisterObjectMethod(className, "void SetRotationStart(float)", AS_METHODPR(T, SetRotationStart, (float), void), AS_CALL_THISCALL);
  10865. // void ParticleEffect2D::SetRotationStartVariance(float rotationStartVariance)
  10866. engine->RegisterObjectMethod(className, "void SetRotationStartVariance(float)", AS_METHODPR(T, SetRotationStartVariance, (float), void), AS_CALL_THISCALL);
  10867. // void ParticleEffect2D::SetSourcePositionVariance(const Vector2& sourcePositionVariance)
  10868. engine->RegisterObjectMethod(className, "void SetSourcePositionVariance(const Vector2&in)", AS_METHODPR(T, SetSourcePositionVariance, (const Vector2&), void), AS_CALL_THISCALL);
  10869. // void ParticleEffect2D::SetSpeed(float speed)
  10870. engine->RegisterObjectMethod(className, "void SetSpeed(float)", AS_METHODPR(T, SetSpeed, (float), void), AS_CALL_THISCALL);
  10871. // void ParticleEffect2D::SetSpeedVariance(float speedVariance)
  10872. engine->RegisterObjectMethod(className, "void SetSpeedVariance(float)", AS_METHODPR(T, SetSpeedVariance, (float), void), AS_CALL_THISCALL);
  10873. // void ParticleEffect2D::SetSprite(Sprite2D* sprite)
  10874. engine->RegisterObjectMethod(className, "void SetSprite(Sprite2D@+)", AS_METHODPR(T, SetSprite, (Sprite2D*), void), AS_CALL_THISCALL);
  10875. // void ParticleEffect2D::SetStartColor(const Color& startColor)
  10876. engine->RegisterObjectMethod(className, "void SetStartColor(const Color&in)", AS_METHODPR(T, SetStartColor, (const Color&), void), AS_CALL_THISCALL);
  10877. // void ParticleEffect2D::SetStartColorVariance(const Color& startColorVariance)
  10878. engine->RegisterObjectMethod(className, "void SetStartColorVariance(const Color&in)", AS_METHODPR(T, SetStartColorVariance, (const Color&), void), AS_CALL_THISCALL);
  10879. // void ParticleEffect2D::SetStartParticleSize(float startParticleSize)
  10880. engine->RegisterObjectMethod(className, "void SetStartParticleSize(float)", AS_METHODPR(T, SetStartParticleSize, (float), void), AS_CALL_THISCALL);
  10881. // void ParticleEffect2D::SetStartParticleSizeVariance(float startParticleSizeVariance)
  10882. engine->RegisterObjectMethod(className, "void SetStartParticleSizeVariance(float)", AS_METHODPR(T, SetStartParticleSizeVariance, (float), void), AS_CALL_THISCALL);
  10883. // void ParticleEffect2D::SetTangentialAcceleration(float tangentialAcceleration)
  10884. engine->RegisterObjectMethod(className, "void SetTangentialAcceleration(float)", AS_METHODPR(T, SetTangentialAcceleration, (float), void), AS_CALL_THISCALL);
  10885. // void ParticleEffect2D::SetTangentialAccelVariance(float tangentialAccelVariance)
  10886. engine->RegisterObjectMethod(className, "void SetTangentialAccelVariance(float)", AS_METHODPR(T, SetTangentialAccelVariance, (float), void), AS_CALL_THISCALL);
  10887. // static void ParticleEffect2D::RegisterObject(Context* context)
  10888. // Not registered because have @nobind mark
  10889. #ifdef REGISTER_MEMBERS_MANUAL_PART_ParticleEffect2D
  10890. REGISTER_MEMBERS_MANUAL_PART_ParticleEffect2D();
  10891. #endif
  10892. }
  10893. // class Sprite2D | File: ../Urho2D/Sprite2D.h
  10894. template <class T> void RegisterMembers_Sprite2D(asIScriptEngine* engine, const char* className)
  10895. {
  10896. RegisterMembers_Resource<T>(engine, className);
  10897. // bool Sprite2D::GetDrawRectangle(Rect& rect, bool flipX = false, bool flipY = false) const
  10898. engine->RegisterObjectMethod(className, "bool GetDrawRectangle(Rect&, bool = false, bool = false) const", AS_METHODPR(T, GetDrawRectangle, (Rect&, bool, bool) const, bool), AS_CALL_THISCALL);
  10899. // bool Sprite2D::GetDrawRectangle(Rect& rect, const Vector2& hotSpot, bool flipX = false, bool flipY = false) const
  10900. engine->RegisterObjectMethod(className, "bool GetDrawRectangle(Rect&, const Vector2&in, bool = false, bool = false) const", AS_METHODPR(T, GetDrawRectangle, (Rect&, const Vector2&, bool, bool) const, bool), AS_CALL_THISCALL);
  10901. // const Vector2& Sprite2D::GetHotSpot() const
  10902. engine->RegisterObjectMethod(className, "const Vector2& GetHotSpot() const", AS_METHODPR(T, GetHotSpot, () const, const Vector2&), AS_CALL_THISCALL);
  10903. engine->RegisterObjectMethod(className, "const Vector2& get_hotSpot() const", AS_METHODPR(T, GetHotSpot, () const, const Vector2&), AS_CALL_THISCALL);
  10904. // const IntVector2& Sprite2D::GetOffset() const
  10905. engine->RegisterObjectMethod(className, "const IntVector2& GetOffset() const", AS_METHODPR(T, GetOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  10906. engine->RegisterObjectMethod(className, "const IntVector2& get_offset() const", AS_METHODPR(T, GetOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  10907. // const IntRect& Sprite2D::GetRectangle() const
  10908. engine->RegisterObjectMethod(className, "const IntRect& GetRectangle() const", AS_METHODPR(T, GetRectangle, () const, const IntRect&), AS_CALL_THISCALL);
  10909. engine->RegisterObjectMethod(className, "const IntRect& get_rectangle() const", AS_METHODPR(T, GetRectangle, () const, const IntRect&), AS_CALL_THISCALL);
  10910. // SpriteSheet2D* Sprite2D::GetSpriteSheet() const
  10911. engine->RegisterObjectMethod(className, "SpriteSheet2D@+ GetSpriteSheet() const", AS_METHODPR(T, GetSpriteSheet, () const, SpriteSheet2D*), AS_CALL_THISCALL);
  10912. // Texture2D* Sprite2D::GetTexture() const
  10913. engine->RegisterObjectMethod(className, "Texture2D@+ GetTexture() const", AS_METHODPR(T, GetTexture, () const, Texture2D*), AS_CALL_THISCALL);
  10914. engine->RegisterObjectMethod(className, "Texture2D@+ get_texture() const", AS_METHODPR(T, GetTexture, () const, Texture2D*), AS_CALL_THISCALL);
  10915. // float Sprite2D::GetTextureEdgeOffset() const
  10916. engine->RegisterObjectMethod(className, "float GetTextureEdgeOffset() const", AS_METHODPR(T, GetTextureEdgeOffset, () const, float), AS_CALL_THISCALL);
  10917. engine->RegisterObjectMethod(className, "float get_textureEdgeOffset() const", AS_METHODPR(T, GetTextureEdgeOffset, () const, float), AS_CALL_THISCALL);
  10918. // bool Sprite2D::GetTextureRectangle(Rect& rect, bool flipX = false, bool flipY = false) const
  10919. engine->RegisterObjectMethod(className, "bool GetTextureRectangle(Rect&, bool = false, bool = false) const", AS_METHODPR(T, GetTextureRectangle, (Rect&, bool, bool) const, bool), AS_CALL_THISCALL);
  10920. // void Sprite2D::SetHotSpot(const Vector2& hotSpot)
  10921. engine->RegisterObjectMethod(className, "void SetHotSpot(const Vector2&in)", AS_METHODPR(T, SetHotSpot, (const Vector2&), void), AS_CALL_THISCALL);
  10922. engine->RegisterObjectMethod(className, "void set_hotSpot(const Vector2&in)", AS_METHODPR(T, SetHotSpot, (const Vector2&), void), AS_CALL_THISCALL);
  10923. // void Sprite2D::SetOffset(const IntVector2& offset)
  10924. engine->RegisterObjectMethod(className, "void SetOffset(const IntVector2&in)", AS_METHODPR(T, SetOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  10925. engine->RegisterObjectMethod(className, "void set_offset(const IntVector2&in)", AS_METHODPR(T, SetOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  10926. // void Sprite2D::SetRectangle(const IntRect& rectangle)
  10927. engine->RegisterObjectMethod(className, "void SetRectangle(const IntRect&in)", AS_METHODPR(T, SetRectangle, (const IntRect&), void), AS_CALL_THISCALL);
  10928. engine->RegisterObjectMethod(className, "void set_rectangle(const IntRect&in)", AS_METHODPR(T, SetRectangle, (const IntRect&), void), AS_CALL_THISCALL);
  10929. // void Sprite2D::SetSpriteSheet(SpriteSheet2D* spriteSheet)
  10930. engine->RegisterObjectMethod(className, "void SetSpriteSheet(SpriteSheet2D@+)", AS_METHODPR(T, SetSpriteSheet, (SpriteSheet2D*), void), AS_CALL_THISCALL);
  10931. // void Sprite2D::SetTexture(Texture2D* texture)
  10932. engine->RegisterObjectMethod(className, "void SetTexture(Texture2D@+)", AS_METHODPR(T, SetTexture, (Texture2D*), void), AS_CALL_THISCALL);
  10933. engine->RegisterObjectMethod(className, "void set_texture(Texture2D@+)", AS_METHODPR(T, SetTexture, (Texture2D*), void), AS_CALL_THISCALL);
  10934. // void Sprite2D::SetTextureEdgeOffset(float offset)
  10935. engine->RegisterObjectMethod(className, "void SetTextureEdgeOffset(float)", AS_METHODPR(T, SetTextureEdgeOffset, (float), void), AS_CALL_THISCALL);
  10936. engine->RegisterObjectMethod(className, "void set_textureEdgeOffset(float)", AS_METHODPR(T, SetTextureEdgeOffset, (float), void), AS_CALL_THISCALL);
  10937. // static void Sprite2D::RegisterObject(Context* context)
  10938. // Not registered because have @nobind mark
  10939. // static ResourceRef Sprite2D::SaveToResourceRef(Sprite2D* sprite)
  10940. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("ResourceRef SaveToResourceRef(Sprite2D@+)", AS_FUNCTIONPR(T::SaveToResourceRef, (Sprite2D*), ResourceRef), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  10941. // static Sprite2D* Sprite2D::LoadFromResourceRef(Object* object, const ResourceRef& value)
  10942. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("Sprite2D@+ LoadFromResourceRef(Object@+, const ResourceRef&in)", AS_FUNCTIONPR(T::LoadFromResourceRef, (Object*, const ResourceRef&), Sprite2D*), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  10943. #ifdef REGISTER_MEMBERS_MANUAL_PART_Sprite2D
  10944. REGISTER_MEMBERS_MANUAL_PART_Sprite2D();
  10945. #endif
  10946. }
  10947. // class SpriteSheet2D | File: ../Urho2D/SpriteSheet2D.h
  10948. template <class T> void RegisterMembers_SpriteSheet2D(asIScriptEngine* engine, const char* className)
  10949. {
  10950. RegisterMembers_Resource<T>(engine, className);
  10951. // const HashMap<String, SharedPtr<Sprite2D>>& SpriteSheet2D::GetSpriteMapping() const
  10952. // Error: type "const HashMap<String, SharedPtr<Sprite2D>>&" can not automatically bind
  10953. // void SpriteSheet2D::DefineSprite(const String& name, const IntRect& rectangle, const Vector2& hotSpot = Vector2(0.5f, 0.5f), const IntVector2& offset = IntVector2::ZERO)
  10954. engine->RegisterObjectMethod(className, "void DefineSprite(const String&in, const IntRect&in, const Vector2&in = Vector2(0.5f, 0.5f), const IntVector2&in = IntVector2::ZERO)", AS_METHODPR(T, DefineSprite, (const String&, const IntRect&, const Vector2&, const IntVector2&), void), AS_CALL_THISCALL);
  10955. // Sprite2D* SpriteSheet2D::GetSprite(const String& name) const
  10956. engine->RegisterObjectMethod(className, "Sprite2D@+ GetSprite(const String&in) const", AS_METHODPR(T, GetSprite, (const String&) const, Sprite2D*), AS_CALL_THISCALL);
  10957. // Texture2D* SpriteSheet2D::GetTexture() const
  10958. engine->RegisterObjectMethod(className, "Texture2D@+ GetTexture() const", AS_METHODPR(T, GetTexture, () const, Texture2D*), AS_CALL_THISCALL);
  10959. engine->RegisterObjectMethod(className, "Texture2D@+ get_texture() const", AS_METHODPR(T, GetTexture, () const, Texture2D*), AS_CALL_THISCALL);
  10960. // void SpriteSheet2D::SetTexture(Texture2D* texture)
  10961. engine->RegisterObjectMethod(className, "void SetTexture(Texture2D@+)", AS_METHODPR(T, SetTexture, (Texture2D*), void), AS_CALL_THISCALL);
  10962. engine->RegisterObjectMethod(className, "void set_texture(Texture2D@+)", AS_METHODPR(T, SetTexture, (Texture2D*), void), AS_CALL_THISCALL);
  10963. // static void SpriteSheet2D::RegisterObject(Context* context)
  10964. // Not registered because have @nobind mark
  10965. #ifdef REGISTER_MEMBERS_MANUAL_PART_SpriteSheet2D
  10966. REGISTER_MEMBERS_MANUAL_PART_SpriteSheet2D();
  10967. #endif
  10968. }
  10969. // Vector<SharedPtr<TileMapObject2D>> TmxFile2D::GetTileCollisionShapes(unsigned gid) const
  10970. template <class T> CScriptArray* TmxFile2D_VectorlesSharedPtrlesTileMapObject2Dgregre_GetTileCollisionShapes_unsigned_template(T* _ptr, unsigned gid)
  10971. {
  10972. Vector<SharedPtr<TileMapObject2D>> result = _ptr->GetTileCollisionShapes(gid);
  10973. return VectorToHandleArray(result, "Array<TileMapObject2D@>");
  10974. }
  10975. // class TmxFile2D | File: ../Urho2D/TmxFile2D.h
  10976. template <class T> void RegisterMembers_TmxFile2D(asIScriptEngine* engine, const char* className)
  10977. {
  10978. RegisterMembers_Resource<T>(engine, className);
  10979. // void TmxFile2D::AddLayer(Urho3D::TmxLayer2D* layer)
  10980. // Error: type "Urho3D::TmxLayer2D*" can not automatically bind
  10981. // void TmxFile2D::AddLayer(unsigned index, TmxLayer2D* layer)
  10982. engine->RegisterObjectMethod(className, "void AddLayer(uint, TmxLayer2D@+)", AS_METHODPR(T, AddLayer, (unsigned, TmxLayer2D*), void), AS_CALL_THISCALL);
  10983. // const TileMapInfo2D& TmxFile2D::GetInfo() const
  10984. engine->RegisterObjectMethod(className, "const TileMapInfo2D& GetInfo() const", AS_METHODPR(T, GetInfo, () const, const TileMapInfo2D&), AS_CALL_THISCALL);
  10985. // const TmxLayer2D* TmxFile2D::GetLayer(unsigned index) const
  10986. engine->RegisterObjectMethod(className, "TmxLayer2D@+ GetLayer(uint) const", AS_METHODPR(T, GetLayer, (unsigned) const, const TmxLayer2D*), AS_CALL_THISCALL);
  10987. // unsigned TmxFile2D::GetNumLayers() const
  10988. engine->RegisterObjectMethod(className, "uint GetNumLayers() const", AS_METHODPR(T, GetNumLayers, () const, unsigned), AS_CALL_THISCALL);
  10989. // float TmxFile2D::GetSpriteTextureEdgeOffset() const
  10990. engine->RegisterObjectMethod(className, "float GetSpriteTextureEdgeOffset() const", AS_METHODPR(T, GetSpriteTextureEdgeOffset, () const, float), AS_CALL_THISCALL);
  10991. engine->RegisterObjectMethod(className, "float get_edgeOffset() const", AS_METHODPR(T, GetSpriteTextureEdgeOffset, () const, float), AS_CALL_THISCALL);
  10992. // Vector<SharedPtr<TileMapObject2D>> TmxFile2D::GetTileCollisionShapes(unsigned gid) const
  10993. engine->RegisterObjectMethod(className, "Array<TileMapObject2D@>@ GetTileCollisionShapes(uint) const", AS_FUNCTION_OBJFIRST(TmxFile2D_VectorlesSharedPtrlesTileMapObject2Dgregre_GetTileCollisionShapes_unsigned_template<TmxFile2D>), AS_CALL_CDECL_OBJFIRST);
  10994. // PropertySet2D* TmxFile2D::GetTilePropertySet(unsigned gid) const
  10995. engine->RegisterObjectMethod(className, "PropertySet2D@+ GetTilePropertySet(uint) const", AS_METHODPR(T, GetTilePropertySet, (unsigned) const, PropertySet2D*), AS_CALL_THISCALL);
  10996. // Sprite2D* TmxFile2D::GetTileSprite(unsigned gid) const
  10997. engine->RegisterObjectMethod(className, "Sprite2D@+ GetTileSprite(uint) const", AS_METHODPR(T, GetTileSprite, (unsigned) const, Sprite2D*), AS_CALL_THISCALL);
  10998. // bool TmxFile2D::SetInfo(Orientation2D orientation, int width, int height, float tileWidth, float tileHeight)
  10999. engine->RegisterObjectMethod(className, "bool SetInfo(Orientation2D, int, int, float, float)", AS_METHODPR(T, SetInfo, (Orientation2D, int, int, float, float), bool), AS_CALL_THISCALL);
  11000. // void TmxFile2D::SetSpriteTextureEdgeOffset(float offset)
  11001. engine->RegisterObjectMethod(className, "void SetSpriteTextureEdgeOffset(float)", AS_METHODPR(T, SetSpriteTextureEdgeOffset, (float), void), AS_CALL_THISCALL);
  11002. engine->RegisterObjectMethod(className, "void set_edgeOffset(float)", AS_METHODPR(T, SetSpriteTextureEdgeOffset, (float), void), AS_CALL_THISCALL);
  11003. // static void TmxFile2D::RegisterObject(Context* context)
  11004. // Not registered because have @nobind mark
  11005. #ifdef REGISTER_MEMBERS_MANUAL_PART_TmxFile2D
  11006. REGISTER_MEMBERS_MANUAL_PART_TmxFile2D();
  11007. #endif
  11008. }
  11009. #endif // def URHO3D_URHO2D
  11010. // SharedPtr<Animation> Animation::Clone(const String& cloneName = String::EMPTY) const
  11011. template <class T> Animation* Animation_SharedPtrlesAnimationgre_Clone_constspStringamp_template(T* _ptr, const String& cloneName)
  11012. {
  11013. SharedPtr<Animation> result = _ptr->Clone(cloneName);
  11014. return result.Detach();
  11015. }
  11016. // class Animation | File: ../Graphics/Animation.h
  11017. template <class T> void RegisterMembers_Animation(asIScriptEngine* engine, const char* className)
  11018. {
  11019. RegisterMembers_ResourceWithMetadata<T>(engine, className);
  11020. // const HashMap<StringHash, AnimationTrack>& Animation::GetTracks() const
  11021. // Error: type "const HashMap<StringHash, AnimationTrack>&" can not automatically bind
  11022. // AnimationTriggerPoint* Animation::GetTrigger(unsigned index)
  11023. // Error: type "AnimationTriggerPoint*" can not automatically bind
  11024. // const Vector<AnimationTriggerPoint>& Animation::GetTriggers() const
  11025. // Error: type "const Vector<AnimationTriggerPoint>&" can not automatically bind
  11026. // void Animation::AddTrigger(const AnimationTriggerPoint& trigger)
  11027. engine->RegisterObjectMethod(className, "void AddTrigger(const AnimationTriggerPoint&in)", AS_METHODPR(T, AddTrigger, (const AnimationTriggerPoint&), void), AS_CALL_THISCALL);
  11028. // void Animation::AddTrigger(float time, bool timeIsNormalized, const Variant& data)
  11029. engine->RegisterObjectMethod(className, "void AddTrigger(float, bool, const Variant&in)", AS_METHODPR(T, AddTrigger, (float, bool, const Variant&), void), AS_CALL_THISCALL);
  11030. // SharedPtr<Animation> Animation::Clone(const String& cloneName = String::EMPTY) const
  11031. engine->RegisterObjectMethod(className, "Animation@+ Clone(const String&in = String::EMPTY) const", AS_FUNCTION_OBJFIRST(Animation_SharedPtrlesAnimationgre_Clone_constspStringamp_template<Animation>), AS_CALL_CDECL_OBJFIRST);
  11032. // AnimationTrack* Animation::CreateTrack(const String& name)
  11033. engine->RegisterObjectMethod(className, "AnimationTrack@ CreateTrack(const String&in)", AS_METHODPR(T, CreateTrack, (const String&), AnimationTrack*), AS_CALL_THISCALL);
  11034. // const String& Animation::GetAnimationName() const
  11035. engine->RegisterObjectMethod(className, "const String& GetAnimationName() const", AS_METHODPR(T, GetAnimationName, () const, const String&), AS_CALL_THISCALL);
  11036. engine->RegisterObjectMethod(className, "const String& get_animationName() const", AS_METHODPR(T, GetAnimationName, () const, const String&), AS_CALL_THISCALL);
  11037. // StringHash Animation::GetAnimationNameHash() const
  11038. engine->RegisterObjectMethod(className, "StringHash GetAnimationNameHash() const", AS_METHODPR(T, GetAnimationNameHash, () const, StringHash), AS_CALL_THISCALL);
  11039. // float Animation::GetLength() const
  11040. engine->RegisterObjectMethod(className, "float GetLength() const", AS_METHODPR(T, GetLength, () const, float), AS_CALL_THISCALL);
  11041. engine->RegisterObjectMethod(className, "float get_length() const", AS_METHODPR(T, GetLength, () const, float), AS_CALL_THISCALL);
  11042. // unsigned Animation::GetNumTracks() const
  11043. engine->RegisterObjectMethod(className, "uint GetNumTracks() const", AS_METHODPR(T, GetNumTracks, () const, unsigned), AS_CALL_THISCALL);
  11044. engine->RegisterObjectMethod(className, "uint get_numTracks() const", AS_METHODPR(T, GetNumTracks, () const, unsigned), AS_CALL_THISCALL);
  11045. // unsigned Animation::GetNumTriggers() const
  11046. engine->RegisterObjectMethod(className, "uint GetNumTriggers() const", AS_METHODPR(T, GetNumTriggers, () const, unsigned), AS_CALL_THISCALL);
  11047. engine->RegisterObjectMethod(className, "uint get_numTriggers() const", AS_METHODPR(T, GetNumTriggers, () const, unsigned), AS_CALL_THISCALL);
  11048. // AnimationTrack* Animation::GetTrack(unsigned index)
  11049. engine->RegisterObjectMethod(className, "AnimationTrack@ GetTrack(uint)", AS_METHODPR(T, GetTrack, (unsigned), AnimationTrack*), AS_CALL_THISCALL);
  11050. // AnimationTrack* Animation::GetTrack(const String& name)
  11051. engine->RegisterObjectMethod(className, "AnimationTrack@ GetTrack(const String&in)", AS_METHODPR(T, GetTrack, (const String&), AnimationTrack*), AS_CALL_THISCALL);
  11052. engine->RegisterObjectMethod(className, "AnimationTrack@ get_tracks(const String&in)", AS_METHODPR(T, GetTrack, (const String&), AnimationTrack*), AS_CALL_THISCALL);
  11053. // AnimationTrack* Animation::GetTrack(StringHash nameHash)
  11054. engine->RegisterObjectMethod(className, "AnimationTrack@ GetTrack(StringHash)", AS_METHODPR(T, GetTrack, (StringHash), AnimationTrack*), AS_CALL_THISCALL);
  11055. // void Animation::RemoveAllTracks()
  11056. engine->RegisterObjectMethod(className, "void RemoveAllTracks()", AS_METHODPR(T, RemoveAllTracks, (), void), AS_CALL_THISCALL);
  11057. // void Animation::RemoveAllTriggers()
  11058. engine->RegisterObjectMethod(className, "void RemoveAllTriggers()", AS_METHODPR(T, RemoveAllTriggers, (), void), AS_CALL_THISCALL);
  11059. // bool Animation::RemoveTrack(const String& name)
  11060. engine->RegisterObjectMethod(className, "bool RemoveTrack(const String&in)", AS_METHODPR(T, RemoveTrack, (const String&), bool), AS_CALL_THISCALL);
  11061. // void Animation::RemoveTrigger(unsigned index)
  11062. engine->RegisterObjectMethod(className, "void RemoveTrigger(uint)", AS_METHODPR(T, RemoveTrigger, (unsigned), void), AS_CALL_THISCALL);
  11063. // void Animation::SetAnimationName(const String& name)
  11064. engine->RegisterObjectMethod(className, "void SetAnimationName(const String&in)", AS_METHODPR(T, SetAnimationName, (const String&), void), AS_CALL_THISCALL);
  11065. engine->RegisterObjectMethod(className, "void set_animationName(const String&in)", AS_METHODPR(T, SetAnimationName, (const String&), void), AS_CALL_THISCALL);
  11066. // void Animation::SetLength(float length)
  11067. engine->RegisterObjectMethod(className, "void SetLength(float)", AS_METHODPR(T, SetLength, (float), void), AS_CALL_THISCALL);
  11068. engine->RegisterObjectMethod(className, "void set_length(float)", AS_METHODPR(T, SetLength, (float), void), AS_CALL_THISCALL);
  11069. // void Animation::SetNumTriggers(unsigned num)
  11070. engine->RegisterObjectMethod(className, "void SetNumTriggers(uint)", AS_METHODPR(T, SetNumTriggers, (unsigned), void), AS_CALL_THISCALL);
  11071. engine->RegisterObjectMethod(className, "void set_numTriggers(uint)", AS_METHODPR(T, SetNumTriggers, (unsigned), void), AS_CALL_THISCALL);
  11072. // void Animation::SetTrigger(unsigned index, const AnimationTriggerPoint& trigger)
  11073. engine->RegisterObjectMethod(className, "void SetTrigger(uint, const AnimationTriggerPoint&in)", AS_METHODPR(T, SetTrigger, (unsigned, const AnimationTriggerPoint&), void), AS_CALL_THISCALL);
  11074. engine->RegisterObjectMethod(className, "void set_triggers(uint, const AnimationTriggerPoint&in)", AS_METHODPR(T, SetTrigger, (unsigned, const AnimationTriggerPoint&), void), AS_CALL_THISCALL);
  11075. // static void Animation::RegisterObject(Context* context)
  11076. // Not registered because have @nobind mark
  11077. #ifdef REGISTER_MEMBERS_MANUAL_PART_Animation
  11078. REGISTER_MEMBERS_MANUAL_PART_Animation();
  11079. #endif
  11080. }
  11081. // class Component | File: ../Scene/Component.h
  11082. template <class T> void RegisterMembers_Component(asIScriptEngine* engine, const char* className)
  11083. {
  11084. RegisterMembers_Animatable<T>(engine, className);
  11085. // void Component::AddReplicationState(ComponentReplicationState* state)
  11086. // Error: type "ComponentReplicationState*" can not automatically bind
  11087. // void Component::CleanupConnection(Connection* connection)
  11088. // Not registered because have @manualbind mark
  11089. // void Component::GetComponents(PODVector<Component*>& dest, StringHash type) const
  11090. // Error: type "PODVector<Component*>&" can not automatically bind
  11091. // virtual void Component::GetDependencyNodes(PODVector<Node*>& dest)
  11092. // Error: type "PODVector<Node*>&" can not automatically bind
  11093. // virtual void Component::OnSetEnabled()
  11094. // Can not be registered here bacause hidden in derived classes: LogicComponent
  11095. // Component* Component::GetComponent(StringHash type) const
  11096. engine->RegisterObjectMethod(className, "Component@+ GetComponent(StringHash) const", AS_METHODPR(T, GetComponent, (StringHash) const, Component*), AS_CALL_THISCALL);
  11097. // unsigned Component::GetID() const
  11098. engine->RegisterObjectMethod(className, "uint GetID() const", AS_METHODPR(T, GetID, () const, unsigned), AS_CALL_THISCALL);
  11099. engine->RegisterObjectMethod(className, "uint get_id() const", AS_METHODPR(T, GetID, () const, unsigned), AS_CALL_THISCALL);
  11100. // Node* Component::GetNode() const
  11101. engine->RegisterObjectMethod(className, "Node@+ GetNode() const", AS_METHODPR(T, GetNode, () const, Node*), AS_CALL_THISCALL);
  11102. engine->RegisterObjectMethod(className, "Node@+ get_node() const", AS_METHODPR(T, GetNode, () const, Node*), AS_CALL_THISCALL);
  11103. // Scene* Component::GetScene() const
  11104. engine->RegisterObjectMethod(className, "Scene@+ GetScene() const", AS_METHODPR(T, GetScene, () const, Scene*), AS_CALL_THISCALL);
  11105. // bool Component::IsEnabled() const
  11106. engine->RegisterObjectMethod(className, "bool IsEnabled() const", AS_METHODPR(T, IsEnabled, () const, bool), AS_CALL_THISCALL);
  11107. engine->RegisterObjectMethod(className, "bool get_enabled() const", AS_METHODPR(T, IsEnabled, () const, bool), AS_CALL_THISCALL);
  11108. // bool Component::IsEnabledEffective() const
  11109. engine->RegisterObjectMethod(className, "bool IsEnabledEffective() const", AS_METHODPR(T, IsEnabledEffective, () const, bool), AS_CALL_THISCALL);
  11110. engine->RegisterObjectMethod(className, "bool get_enabledEffective() const", AS_METHODPR(T, IsEnabledEffective, () const, bool), AS_CALL_THISCALL);
  11111. // bool Component::IsReplicated() const
  11112. engine->RegisterObjectMethod(className, "bool IsReplicated() const", AS_METHODPR(T, IsReplicated, () const, bool), AS_CALL_THISCALL);
  11113. engine->RegisterObjectMethod(className, "bool get_replicated() const", AS_METHODPR(T, IsReplicated, () const, bool), AS_CALL_THISCALL);
  11114. // void Component::PrepareNetworkUpdate()
  11115. engine->RegisterObjectMethod(className, "void PrepareNetworkUpdate()", AS_METHODPR(T, PrepareNetworkUpdate, (), void), AS_CALL_THISCALL);
  11116. // void Component::Remove()
  11117. engine->RegisterObjectMethod(className, "void Remove()", AS_METHODPR(T, Remove, (), void), AS_CALL_THISCALL);
  11118. // void Component::SetEnabled(bool enable)
  11119. engine->RegisterObjectMethod(className, "void SetEnabled(bool)", AS_METHODPR(T, SetEnabled, (bool), void), AS_CALL_THISCALL);
  11120. engine->RegisterObjectMethod(className, "void set_enabled(bool)", AS_METHODPR(T, SetEnabled, (bool), void), AS_CALL_THISCALL);
  11121. // template <class T> T* Component::GetComponent() const
  11122. // Not registered because template
  11123. // template <class T> void Component::GetComponents(PODVector<T*>& dest) const
  11124. // Not registered because template
  11125. #ifdef REGISTER_MEMBERS_MANUAL_PART_Component
  11126. REGISTER_MEMBERS_MANUAL_PART_Component();
  11127. #endif
  11128. }
  11129. // SharedPtr<Model> Model::Clone(const String& cloneName = String::EMPTY) const
  11130. template <class T> Model* Model_SharedPtrlesModelgre_Clone_constspStringamp_template(T* _ptr, const String& cloneName)
  11131. {
  11132. SharedPtr<Model> result = _ptr->Clone(cloneName);
  11133. return result.Detach();
  11134. }
  11135. // const PODVector<Vector3>& Model::GetGeometryCenters() const
  11136. template <class T> CScriptArray* Model_constspPODVectorlesVector3greamp_GetGeometryCenters_void_template(T* _ptr)
  11137. {
  11138. const PODVector<Vector3>& result = _ptr->GetGeometryCenters();
  11139. return VectorToArray(result, "Array<Vector3>");
  11140. }
  11141. // const Vector<SharedPtr<IndexBuffer>>& Model::GetIndexBuffers() const
  11142. template <class T> CScriptArray* Model_constspVectorlesSharedPtrlesIndexBuffergregreamp_GetIndexBuffers_void_template(T* _ptr)
  11143. {
  11144. const Vector<SharedPtr<IndexBuffer>>& result = _ptr->GetIndexBuffers();
  11145. return VectorToHandleArray(result, "Array<IndexBuffer@>");
  11146. }
  11147. // const Vector<SharedPtr<VertexBuffer>>& Model::GetVertexBuffers() const
  11148. template <class T> CScriptArray* Model_constspVectorlesSharedPtrlesVertexBuffergregreamp_GetVertexBuffers_void_template(T* _ptr)
  11149. {
  11150. const Vector<SharedPtr<VertexBuffer>>& result = _ptr->GetVertexBuffers();
  11151. return VectorToHandleArray(result, "Array<VertexBuffer@>");
  11152. }
  11153. // bool Model::SetIndexBuffers(const Vector<SharedPtr<IndexBuffer>>& buffers)
  11154. template <class T> bool Model_bool_SetIndexBuffers_constspVectorlesSharedPtrlesIndexBuffergregreamp_template(T* _ptr, CScriptArray* buffers_conv)
  11155. {
  11156. Vector<SharedPtr<IndexBuffer>> buffers = HandleArrayToVector<IndexBuffer>(buffers_conv);
  11157. bool result = _ptr->SetIndexBuffers(buffers);
  11158. return result;
  11159. }
  11160. // bool Model::SetVertexBuffers(const Vector<SharedPtr<VertexBuffer>>& buffers, const PODVector<unsigned>& morphRangeStarts, const PODVector<unsigned>& morphRangeCounts)
  11161. template <class T> bool Model_bool_SetVertexBuffers_constspVectorlesSharedPtrlesVertexBuffergregreamp_constspPODVectorlesunsignedgreamp_constspPODVectorlesunsignedgreamp_template(T* _ptr, CScriptArray* buffers_conv, CScriptArray* morphRangeStarts_conv, CScriptArray* morphRangeCounts_conv)
  11162. {
  11163. Vector<SharedPtr<VertexBuffer>> buffers = HandleArrayToVector<VertexBuffer>(buffers_conv);
  11164. PODVector<unsigned> morphRangeStarts = ArrayToPODVector<unsigned>(morphRangeStarts_conv);
  11165. PODVector<unsigned> morphRangeCounts = ArrayToPODVector<unsigned>(morphRangeCounts_conv);
  11166. bool result = _ptr->SetVertexBuffers(buffers, morphRangeStarts, morphRangeCounts);
  11167. return result;
  11168. }
  11169. // class Model | File: ../Graphics/Model.h
  11170. template <class T> void RegisterMembers_Model(asIScriptEngine* engine, const char* className)
  11171. {
  11172. RegisterMembers_ResourceWithMetadata<T>(engine, className);
  11173. // const Vector<Vector<SharedPtr<Geometry>>>& Model::GetGeometries() const
  11174. // Error: type "const Vector<Vector<SharedPtr<Geometry>>>&" can not automatically bind
  11175. // const Vector<PODVector<unsigned>>& Model::GetGeometryBoneMappings() const
  11176. // Error: type "const Vector<PODVector<unsigned>>&" can not automatically bind
  11177. // const ModelMorph* Model::GetMorph(unsigned index) const
  11178. // Error: type "const ModelMorph*" can not automatically bind
  11179. // const ModelMorph* Model::GetMorph(const String& name) const
  11180. // Error: type "const ModelMorph*" can not automatically bind
  11181. // const ModelMorph* Model::GetMorph(StringHash nameHash) const
  11182. // Error: type "const ModelMorph*" can not automatically bind
  11183. // const Vector<ModelMorph>& Model::GetMorphs() const
  11184. // Error: type "const Vector<ModelMorph>&" can not automatically bind
  11185. // void Model::SetGeometryBoneMappings(const Vector<PODVector<unsigned>>& geometryBoneMappings)
  11186. // Error: type "const Vector<PODVector<unsigned>>&" can not automatically bind
  11187. // void Model::SetMorphs(const Vector<ModelMorph>& morphs)
  11188. // Error: type "const Vector<ModelMorph>&" can not automatically bind
  11189. // SharedPtr<Model> Model::Clone(const String& cloneName = String::EMPTY) const
  11190. engine->RegisterObjectMethod(className, "Model@+ Clone(const String&in = String::EMPTY) const", AS_FUNCTION_OBJFIRST(Model_SharedPtrlesModelgre_Clone_constspStringamp_template<Model>), AS_CALL_CDECL_OBJFIRST);
  11191. // const BoundingBox& Model::GetBoundingBox() const
  11192. engine->RegisterObjectMethod(className, "const BoundingBox& GetBoundingBox() const", AS_METHODPR(T, GetBoundingBox, () const, const BoundingBox&), AS_CALL_THISCALL);
  11193. engine->RegisterObjectMethod(className, "const BoundingBox& get_boundingBox() const", AS_METHODPR(T, GetBoundingBox, () const, const BoundingBox&), AS_CALL_THISCALL);
  11194. // Geometry* Model::GetGeometry(unsigned index, unsigned lodLevel) const
  11195. engine->RegisterObjectMethod(className, "Geometry@+ GetGeometry(uint, uint) const", AS_METHODPR(T, GetGeometry, (unsigned, unsigned) const, Geometry*), AS_CALL_THISCALL);
  11196. // const Vector3& Model::GetGeometryCenter(unsigned index) const
  11197. engine->RegisterObjectMethod(className, "const Vector3& GetGeometryCenter(uint) const", AS_METHODPR(T, GetGeometryCenter, (unsigned) const, const Vector3&), AS_CALL_THISCALL);
  11198. engine->RegisterObjectMethod(className, "const Vector3& get_geometryCenters(uint) const", AS_METHODPR(T, GetGeometryCenter, (unsigned) const, const Vector3&), AS_CALL_THISCALL);
  11199. // const PODVector<Vector3>& Model::GetGeometryCenters() const
  11200. engine->RegisterObjectMethod(className, "Array<Vector3>@ GetGeometryCenters() const", AS_FUNCTION_OBJFIRST(Model_constspPODVectorlesVector3greamp_GetGeometryCenters_void_template<Model>), AS_CALL_CDECL_OBJFIRST);
  11201. // const Vector<SharedPtr<IndexBuffer>>& Model::GetIndexBuffers() const
  11202. engine->RegisterObjectMethod(className, "Array<IndexBuffer@>@ GetIndexBuffers() const", AS_FUNCTION_OBJFIRST(Model_constspVectorlesSharedPtrlesIndexBuffergregreamp_GetIndexBuffers_void_template<Model>), AS_CALL_CDECL_OBJFIRST);
  11203. // unsigned Model::GetMorphRangeCount(unsigned bufferIndex) const
  11204. engine->RegisterObjectMethod(className, "uint GetMorphRangeCount(uint) const", AS_METHODPR(T, GetMorphRangeCount, (unsigned) const, unsigned), AS_CALL_THISCALL);
  11205. // unsigned Model::GetMorphRangeStart(unsigned bufferIndex) const
  11206. engine->RegisterObjectMethod(className, "uint GetMorphRangeStart(uint) const", AS_METHODPR(T, GetMorphRangeStart, (unsigned) const, unsigned), AS_CALL_THISCALL);
  11207. // unsigned Model::GetNumGeometries() const
  11208. engine->RegisterObjectMethod(className, "uint GetNumGeometries() const", AS_METHODPR(T, GetNumGeometries, () const, unsigned), AS_CALL_THISCALL);
  11209. engine->RegisterObjectMethod(className, "uint get_numGeometries() const", AS_METHODPR(T, GetNumGeometries, () const, unsigned), AS_CALL_THISCALL);
  11210. // unsigned Model::GetNumGeometryLodLevels(unsigned index) const
  11211. engine->RegisterObjectMethod(className, "uint GetNumGeometryLodLevels(uint) const", AS_METHODPR(T, GetNumGeometryLodLevels, (unsigned) const, unsigned), AS_CALL_THISCALL);
  11212. engine->RegisterObjectMethod(className, "uint get_numGeometryLodLevels(uint) const", AS_METHODPR(T, GetNumGeometryLodLevels, (unsigned) const, unsigned), AS_CALL_THISCALL);
  11213. // unsigned Model::GetNumMorphs() const
  11214. engine->RegisterObjectMethod(className, "uint GetNumMorphs() const", AS_METHODPR(T, GetNumMorphs, () const, unsigned), AS_CALL_THISCALL);
  11215. engine->RegisterObjectMethod(className, "uint get_numMorphs() const", AS_METHODPR(T, GetNumMorphs, () const, unsigned), AS_CALL_THISCALL);
  11216. // Skeleton& Model::GetSkeleton()
  11217. engine->RegisterObjectMethod(className, "Skeleton& GetSkeleton()", AS_METHODPR(T, GetSkeleton, (), Skeleton&), AS_CALL_THISCALL);
  11218. engine->RegisterObjectMethod(className, "Skeleton& get_skeleton()", AS_METHODPR(T, GetSkeleton, (), Skeleton&), AS_CALL_THISCALL);
  11219. // const Vector<SharedPtr<VertexBuffer>>& Model::GetVertexBuffers() const
  11220. engine->RegisterObjectMethod(className, "Array<VertexBuffer@>@ GetVertexBuffers() const", AS_FUNCTION_OBJFIRST(Model_constspVectorlesSharedPtrlesVertexBuffergregreamp_GetVertexBuffers_void_template<Model>), AS_CALL_CDECL_OBJFIRST);
  11221. // void Model::SetBoundingBox(const BoundingBox& box)
  11222. engine->RegisterObjectMethod(className, "void SetBoundingBox(const BoundingBox&in)", AS_METHODPR(T, SetBoundingBox, (const BoundingBox&), void), AS_CALL_THISCALL);
  11223. engine->RegisterObjectMethod(className, "void set_boundingBox(const BoundingBox&in)", AS_METHODPR(T, SetBoundingBox, (const BoundingBox&), void), AS_CALL_THISCALL);
  11224. // bool Model::SetGeometry(unsigned index, unsigned lodLevel, Geometry* geometry)
  11225. engine->RegisterObjectMethod(className, "bool SetGeometry(uint, uint, Geometry@+)", AS_METHODPR(T, SetGeometry, (unsigned, unsigned, Geometry*), bool), AS_CALL_THISCALL);
  11226. // bool Model::SetGeometryCenter(unsigned index, const Vector3& center)
  11227. engine->RegisterObjectMethod(className, "bool SetGeometryCenter(uint, const Vector3&in)", AS_METHODPR(T, SetGeometryCenter, (unsigned, const Vector3&), bool), AS_CALL_THISCALL);
  11228. engine->RegisterObjectMethod(className, "bool set_geometryCenters(uint, const Vector3&in)", AS_METHODPR(T, SetGeometryCenter, (unsigned, const Vector3&), bool), AS_CALL_THISCALL);
  11229. // bool Model::SetIndexBuffers(const Vector<SharedPtr<IndexBuffer>>& buffers)
  11230. engine->RegisterObjectMethod(className, "bool SetIndexBuffers(Array<IndexBuffer@>@+)", AS_FUNCTION_OBJFIRST(Model_bool_SetIndexBuffers_constspVectorlesSharedPtrlesIndexBuffergregreamp_template<Model>), AS_CALL_CDECL_OBJFIRST);
  11231. // void Model::SetNumGeometries(unsigned num)
  11232. engine->RegisterObjectMethod(className, "void SetNumGeometries(uint)", AS_METHODPR(T, SetNumGeometries, (unsigned), void), AS_CALL_THISCALL);
  11233. engine->RegisterObjectMethod(className, "void set_numGeometries(uint)", AS_METHODPR(T, SetNumGeometries, (unsigned), void), AS_CALL_THISCALL);
  11234. // bool Model::SetNumGeometryLodLevels(unsigned index, unsigned num)
  11235. engine->RegisterObjectMethod(className, "bool SetNumGeometryLodLevels(uint, uint)", AS_METHODPR(T, SetNumGeometryLodLevels, (unsigned, unsigned), bool), AS_CALL_THISCALL);
  11236. engine->RegisterObjectMethod(className, "bool set_numGeometryLodLevels(uint, uint)", AS_METHODPR(T, SetNumGeometryLodLevels, (unsigned, unsigned), bool), AS_CALL_THISCALL);
  11237. // void Model::SetSkeleton(const Skeleton& skeleton)
  11238. engine->RegisterObjectMethod(className, "void SetSkeleton(const Skeleton&in)", AS_METHODPR(T, SetSkeleton, (const Skeleton&), void), AS_CALL_THISCALL);
  11239. // bool Model::SetVertexBuffers(const Vector<SharedPtr<VertexBuffer>>& buffers, const PODVector<unsigned>& morphRangeStarts, const PODVector<unsigned>& morphRangeCounts)
  11240. engine->RegisterObjectMethod(className, "bool SetVertexBuffers(Array<VertexBuffer@>@+, Array<uint>@+, Array<uint>@+)", AS_FUNCTION_OBJFIRST(Model_bool_SetVertexBuffers_constspVectorlesSharedPtrlesVertexBuffergregreamp_constspPODVectorlesunsignedgreamp_constspPODVectorlesunsignedgreamp_template<Model>), AS_CALL_CDECL_OBJFIRST);
  11241. // static void Model::RegisterObject(Context* context)
  11242. // Not registered because have @nobind mark
  11243. #ifdef REGISTER_MEMBERS_MANUAL_PART_Model
  11244. REGISTER_MEMBERS_MANUAL_PART_Model();
  11245. #endif
  11246. }
  11247. // void Node::AddTags(const StringVector& tags)
  11248. template <class T> void Node_void_AddTags_constspStringVectoramp_template(T* _ptr, CScriptArray* tags_conv)
  11249. {
  11250. StringVector tags = ArrayToVector<String>(tags_conv);
  11251. _ptr->AddTags(tags);
  11252. }
  11253. // const Vector<SharedPtr<Node>>& Node::GetChildren() const
  11254. template <class T> CScriptArray* Node_constspVectorlesSharedPtrlesNodegregreamp_GetChildren_void_template(T* _ptr)
  11255. {
  11256. const Vector<SharedPtr<Node>>& result = _ptr->GetChildren();
  11257. return VectorToHandleArray(result, "Array<Node@>");
  11258. }
  11259. // PODVector<Node*> Node::GetChildren(bool recursive) const
  11260. template <class T> CScriptArray* Node_PODVectorlesNodestargre_GetChildren_bool_template(T* _ptr, bool recursive)
  11261. {
  11262. PODVector<Node*> result = _ptr->GetChildren(recursive);
  11263. return VectorToHandleArray(result, "Array<Node@>");
  11264. }
  11265. // PODVector<Node*> Node::GetChildrenWithComponent(StringHash type, bool recursive = false) const
  11266. template <class T> CScriptArray* Node_PODVectorlesNodestargre_GetChildrenWithComponent_StringHash_bool_template(T* _ptr, StringHash type, bool recursive)
  11267. {
  11268. PODVector<Node*> result = _ptr->GetChildrenWithComponent(type, recursive);
  11269. return VectorToHandleArray(result, "Array<Node@>");
  11270. }
  11271. // PODVector<Node*> Node::GetChildrenWithTag(const String& tag, bool recursive = false) const
  11272. template <class T> CScriptArray* Node_PODVectorlesNodestargre_GetChildrenWithTag_constspStringamp_bool_template(T* _ptr, const String& tag, bool recursive)
  11273. {
  11274. PODVector<Node*> result = _ptr->GetChildrenWithTag(tag, recursive);
  11275. return VectorToHandleArray(result, "Array<Node@>");
  11276. }
  11277. // const Vector<SharedPtr<Component>>& Node::GetComponents() const
  11278. template <class T> CScriptArray* Node_constspVectorlesSharedPtrlesComponentgregreamp_GetComponents_void_template(T* _ptr)
  11279. {
  11280. const Vector<SharedPtr<Component>>& result = _ptr->GetComponents();
  11281. return VectorToHandleArray(result, "Array<Component@>");
  11282. }
  11283. // const PODVector<Node*>& Node::GetDependencyNodes() const
  11284. template <class T> CScriptArray* Node_constspPODVectorlesNodestargreamp_GetDependencyNodes_void_template(T* _ptr)
  11285. {
  11286. const PODVector<Node*>& result = _ptr->GetDependencyNodes();
  11287. return VectorToHandleArray(result, "Array<Node@>");
  11288. }
  11289. // const StringVector& Node::GetTags() const
  11290. template <class T> CScriptArray* Node_constspStringVectoramp_GetTags_void_template(T* _ptr)
  11291. {
  11292. const StringVector& result = _ptr->GetTags();
  11293. return VectorToArray<String>(result, "Array<String>");
  11294. }
  11295. // void Node::SetTags(const StringVector& tags)
  11296. template <class T> void Node_void_SetTags_constspStringVectoramp_template(T* _ptr, CScriptArray* tags_conv)
  11297. {
  11298. StringVector tags = ArrayToVector<String>(tags_conv);
  11299. _ptr->SetTags(tags);
  11300. }
  11301. // class Node | File: ../Scene/Node.h
  11302. template <class T> void RegisterMembers_Node(asIScriptEngine* engine, const char* className)
  11303. {
  11304. RegisterMembers_Animatable<T>(engine, className);
  11305. // virtual void Node::AddReplicationState(NodeReplicationState* state)
  11306. // Error: type "NodeReplicationState*" can not automatically bind
  11307. // void Node::CleanupConnection(Connection* connection)
  11308. // Not registered because have @manualbind mark
  11309. // Node* Node::GetChild(const char* name, bool recursive = false) const
  11310. // Error: type "const char*" can not automatically bind
  11311. // void Node::GetChildren(PODVector<Node*>& dest, bool recursive = false) const
  11312. // Error: type "PODVector<Node*>&" can not automatically bind
  11313. // void Node::GetChildrenWithComponent(PODVector<Node*>& dest, StringHash type, bool recursive = false) const
  11314. // Error: type "PODVector<Node*>&" can not automatically bind
  11315. // void Node::GetChildrenWithTag(PODVector<Node*>& dest, const String& tag, bool recursive = false) const
  11316. // Error: type "PODVector<Node*>&" can not automatically bind
  11317. // void Node::GetComponents(PODVector<Component*>& dest, StringHash type, bool recursive = false) const
  11318. // Error: type "PODVector<Component*>&" can not automatically bind
  11319. // const Vector<WeakPtr<Component>> Node::GetListeners() const
  11320. // Error: type "const Vector<WeakPtr<Component>>" can not automatically bind
  11321. // const PODVector<unsigned char>& Node::GetNetParentAttr() const
  11322. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  11323. // const PODVector<unsigned char>& Node::GetNetRotationAttr() const
  11324. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  11325. // Connection* Node::GetOwner() const
  11326. // Not registered because have @manualbind mark
  11327. // bool Node::Load(Deserializer& source, SceneResolver& resolver, bool loadChildren = true, bool rewriteIDs = false, CreateMode mode = REPLICATED)
  11328. // Can not be registered here bacause hidden in derived classes: Scene
  11329. // bool Node::LoadJSON(const JSONValue& source, SceneResolver& resolver, bool loadChildren = true, bool rewriteIDs = false, CreateMode mode = REPLICATED)
  11330. // Can not be registered here bacause hidden in derived classes: Scene
  11331. // bool Node::LoadXML(const XMLElement& source, SceneResolver& resolver, bool loadChildren = true, bool rewriteIDs = false, CreateMode mode = REPLICATED)
  11332. // Can not be registered here bacause hidden in derived classes: Scene
  11333. // void Node::MarkReplicationDirty()
  11334. // Can not be registered here bacause hidden in derived classes: Scene
  11335. // void Node::SetNetParentAttr(const PODVector<unsigned char>& value)
  11336. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  11337. // void Node::SetNetRotationAttr(const PODVector<unsigned char>& value)
  11338. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  11339. // void Node::SetOwner(Connection* owner)
  11340. // Not registered because have @manualbind mark
  11341. // void Node::AddChild(Node* node, unsigned index = M_MAX_UNSIGNED)
  11342. engine->RegisterObjectMethod(className, "void AddChild(Node@+, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, AddChild, (Node*, unsigned), void), AS_CALL_THISCALL);
  11343. // void Node::AddComponent(Component* component, unsigned id, CreateMode mode)
  11344. engine->RegisterObjectMethod(className, "void AddComponent(Component@+, uint, CreateMode)", AS_METHODPR(T, AddComponent, (Component*, unsigned, CreateMode), void), AS_CALL_THISCALL);
  11345. // void Node::AddListener(Component* component)
  11346. engine->RegisterObjectMethod(className, "void AddListener(Component@+)", AS_METHODPR(T, AddListener, (Component*), void), AS_CALL_THISCALL);
  11347. // void Node::AddTag(const String& tag)
  11348. engine->RegisterObjectMethod(className, "void AddTag(const String&in)", AS_METHODPR(T, AddTag, (const String&), void), AS_CALL_THISCALL);
  11349. // void Node::AddTags(const String& tags, char separator = ';')
  11350. engine->RegisterObjectMethod(className, "void AddTags(const String&in, int8 = ';')", AS_METHODPR(T, AddTags, (const String&, char), void), AS_CALL_THISCALL);
  11351. // void Node::AddTags(const StringVector& tags)
  11352. engine->RegisterObjectMethod(className, "void AddTags(Array<String>@+)", AS_FUNCTION_OBJFIRST(Node_void_AddTags_constspStringVectoramp_template<Node>), AS_CALL_CDECL_OBJFIRST);
  11353. // Node* Node::Clone(CreateMode mode = REPLICATED)
  11354. engine->RegisterObjectMethod(className, "Node@+ Clone(CreateMode = REPLICATED)", AS_METHODPR(T, Clone, (CreateMode), Node*), AS_CALL_THISCALL);
  11355. // Component* Node::CloneComponent(Component* component, unsigned id = 0)
  11356. engine->RegisterObjectMethod(className, "Component@+ CloneComponent(Component@+, uint = 0)", AS_METHODPR(T, CloneComponent, (Component*, unsigned), Component*), AS_CALL_THISCALL);
  11357. // Component* Node::CloneComponent(Component* component, CreateMode mode, unsigned id = 0)
  11358. engine->RegisterObjectMethod(className, "Component@+ CloneComponent(Component@+, CreateMode, uint = 0)", AS_METHODPR(T, CloneComponent, (Component*, CreateMode, unsigned), Component*), AS_CALL_THISCALL);
  11359. // Node* Node::CreateChild(const String& name = String::EMPTY, CreateMode mode = REPLICATED, unsigned id = 0, bool temporary = false)
  11360. engine->RegisterObjectMethod(className, "Node@+ CreateChild(const String&in = String::EMPTY, CreateMode = REPLICATED, uint = 0, bool = false)", AS_METHODPR(T, CreateChild, (const String&, CreateMode, unsigned, bool), Node*), AS_CALL_THISCALL);
  11361. // Node* Node::CreateChild(unsigned id, CreateMode mode, bool temporary = false)
  11362. engine->RegisterObjectMethod(className, "Node@+ CreateChild(uint, CreateMode, bool = false)", AS_METHODPR(T, CreateChild, (unsigned, CreateMode, bool), Node*), AS_CALL_THISCALL);
  11363. // Component* Node::CreateComponent(StringHash type, CreateMode mode = REPLICATED, unsigned id = 0)
  11364. engine->RegisterObjectMethod(className, "Component@+ CreateComponent(StringHash, CreateMode = REPLICATED, uint = 0)", AS_METHODPR(T, CreateComponent, (StringHash, CreateMode, unsigned), Component*), AS_CALL_THISCALL);
  11365. // Node* Node::CreateTemporaryChild(const String& name = String::EMPTY, CreateMode mode = REPLICATED, unsigned id = 0)
  11366. engine->RegisterObjectMethod(className, "Node@+ CreateTemporaryChild(const String&in = String::EMPTY, CreateMode = REPLICATED, uint = 0)", AS_METHODPR(T, CreateTemporaryChild, (const String&, CreateMode, unsigned), Node*), AS_CALL_THISCALL);
  11367. // Node* Node::GetChild(unsigned index) const
  11368. engine->RegisterObjectMethod(className, "Node@+ GetChild(uint) const", AS_METHODPR(T, GetChild, (unsigned) const, Node*), AS_CALL_THISCALL);
  11369. // Node* Node::GetChild(const String& name, bool recursive = false) const
  11370. engine->RegisterObjectMethod(className, "Node@+ GetChild(const String&in, bool = false) const", AS_METHODPR(T, GetChild, (const String&, bool) const, Node*), AS_CALL_THISCALL);
  11371. // Node* Node::GetChild(StringHash nameHash, bool recursive = false) const
  11372. engine->RegisterObjectMethod(className, "Node@+ GetChild(StringHash, bool = false) const", AS_METHODPR(T, GetChild, (StringHash, bool) const, Node*), AS_CALL_THISCALL);
  11373. // const Vector<SharedPtr<Node>>& Node::GetChildren() const
  11374. engine->RegisterObjectMethod(className, "Array<Node@>@ GetChildren() const", AS_FUNCTION_OBJFIRST(Node_constspVectorlesSharedPtrlesNodegregreamp_GetChildren_void_template<Node>), AS_CALL_CDECL_OBJFIRST);
  11375. // PODVector<Node*> Node::GetChildren(bool recursive) const
  11376. engine->RegisterObjectMethod(className, "Array<Node@>@ GetChildren(bool) const", AS_FUNCTION_OBJFIRST(Node_PODVectorlesNodestargre_GetChildren_bool_template<Node>), AS_CALL_CDECL_OBJFIRST);
  11377. // PODVector<Node*> Node::GetChildrenWithComponent(StringHash type, bool recursive = false) const
  11378. engine->RegisterObjectMethod(className, "Array<Node@>@ GetChildrenWithComponent(StringHash, bool = false) const", AS_FUNCTION_OBJFIRST(Node_PODVectorlesNodestargre_GetChildrenWithComponent_StringHash_bool_template<Node>), AS_CALL_CDECL_OBJFIRST);
  11379. // PODVector<Node*> Node::GetChildrenWithTag(const String& tag, bool recursive = false) const
  11380. engine->RegisterObjectMethod(className, "Array<Node@>@ GetChildrenWithTag(const String&in, bool = false) const", AS_FUNCTION_OBJFIRST(Node_PODVectorlesNodestargre_GetChildrenWithTag_constspStringamp_bool_template<Node>), AS_CALL_CDECL_OBJFIRST);
  11381. // Component* Node::GetComponent(StringHash type, bool recursive = false) const
  11382. engine->RegisterObjectMethod(className, "Component@+ GetComponent(StringHash, bool = false) const", AS_METHODPR(T, GetComponent, (StringHash, bool) const, Component*), AS_CALL_THISCALL);
  11383. // const Vector<SharedPtr<Component>>& Node::GetComponents() const
  11384. engine->RegisterObjectMethod(className, "Array<Component@>@ GetComponents() const", AS_FUNCTION_OBJFIRST(Node_constspVectorlesSharedPtrlesComponentgregreamp_GetComponents_void_template<Node>), AS_CALL_CDECL_OBJFIRST);
  11385. // const PODVector<Node*>& Node::GetDependencyNodes() const
  11386. engine->RegisterObjectMethod(className, "Array<Node@>@ GetDependencyNodes() const", AS_FUNCTION_OBJFIRST(Node_constspPODVectorlesNodestargreamp_GetDependencyNodes_void_template<Node>), AS_CALL_CDECL_OBJFIRST);
  11387. // Vector3 Node::GetDirection() const
  11388. engine->RegisterObjectMethod(className, "Vector3 GetDirection() const", AS_METHODPR(T, GetDirection, () const, Vector3), AS_CALL_THISCALL);
  11389. engine->RegisterObjectMethod(className, "Vector3 get_direction() const", AS_METHODPR(T, GetDirection, () const, Vector3), AS_CALL_THISCALL);
  11390. // unsigned Node::GetID() const
  11391. engine->RegisterObjectMethod(className, "uint GetID() const", AS_METHODPR(T, GetID, () const, unsigned), AS_CALL_THISCALL);
  11392. engine->RegisterObjectMethod(className, "uint get_id() const", AS_METHODPR(T, GetID, () const, unsigned), AS_CALL_THISCALL);
  11393. // const String& Node::GetName() const
  11394. engine->RegisterObjectMethod(className, "const String& GetName() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  11395. engine->RegisterObjectMethod(className, "const String& get_name() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  11396. // StringHash Node::GetNameHash() const
  11397. engine->RegisterObjectMethod(className, "StringHash GetNameHash() const", AS_METHODPR(T, GetNameHash, () const, StringHash), AS_CALL_THISCALL);
  11398. // const Vector3& Node::GetNetPositionAttr() const
  11399. engine->RegisterObjectMethod(className, "const Vector3& GetNetPositionAttr() const", AS_METHODPR(T, GetNetPositionAttr, () const, const Vector3&), AS_CALL_THISCALL);
  11400. // unsigned Node::GetNumChildren(bool recursive = false) const
  11401. engine->RegisterObjectMethod(className, "uint GetNumChildren(bool = false) const", AS_METHODPR(T, GetNumChildren, (bool) const, unsigned), AS_CALL_THISCALL);
  11402. // unsigned Node::GetNumComponents() const
  11403. engine->RegisterObjectMethod(className, "uint GetNumComponents() const", AS_METHODPR(T, GetNumComponents, () const, unsigned), AS_CALL_THISCALL);
  11404. engine->RegisterObjectMethod(className, "uint get_numComponents() const", AS_METHODPR(T, GetNumComponents, () const, unsigned), AS_CALL_THISCALL);
  11405. // unsigned Node::GetNumNetworkComponents() const
  11406. engine->RegisterObjectMethod(className, "uint GetNumNetworkComponents() const", AS_METHODPR(T, GetNumNetworkComponents, () const, unsigned), AS_CALL_THISCALL);
  11407. // unsigned Node::GetNumPersistentChildren() const
  11408. engine->RegisterObjectMethod(className, "uint GetNumPersistentChildren() const", AS_METHODPR(T, GetNumPersistentChildren, () const, unsigned), AS_CALL_THISCALL);
  11409. // unsigned Node::GetNumPersistentComponents() const
  11410. engine->RegisterObjectMethod(className, "uint GetNumPersistentComponents() const", AS_METHODPR(T, GetNumPersistentComponents, () const, unsigned), AS_CALL_THISCALL);
  11411. // Component* Node::GetOrCreateComponent(StringHash type, CreateMode mode = REPLICATED, unsigned id = 0)
  11412. engine->RegisterObjectMethod(className, "Component@+ GetOrCreateComponent(StringHash, CreateMode = REPLICATED, uint = 0)", AS_METHODPR(T, GetOrCreateComponent, (StringHash, CreateMode, unsigned), Component*), AS_CALL_THISCALL);
  11413. // Node* Node::GetParent() const
  11414. engine->RegisterObjectMethod(className, "Node@+ GetParent() const", AS_METHODPR(T, GetParent, () const, Node*), AS_CALL_THISCALL);
  11415. engine->RegisterObjectMethod(className, "Node@+ get_parent() const", AS_METHODPR(T, GetParent, () const, Node*), AS_CALL_THISCALL);
  11416. // Component* Node::GetParentComponent(StringHash type, bool fullTraversal = false) const
  11417. engine->RegisterObjectMethod(className, "Component@+ GetParentComponent(StringHash, bool = false) const", AS_METHODPR(T, GetParentComponent, (StringHash, bool) const, Component*), AS_CALL_THISCALL);
  11418. // const Vector3& Node::GetPosition() const
  11419. engine->RegisterObjectMethod(className, "const Vector3& GetPosition() const", AS_METHODPR(T, GetPosition, () const, const Vector3&), AS_CALL_THISCALL);
  11420. engine->RegisterObjectMethod(className, "const Vector3& get_position() const", AS_METHODPR(T, GetPosition, () const, const Vector3&), AS_CALL_THISCALL);
  11421. // Vector2 Node::GetPosition2D() const
  11422. engine->RegisterObjectMethod(className, "Vector2 GetPosition2D() const", AS_METHODPR(T, GetPosition2D, () const, Vector2), AS_CALL_THISCALL);
  11423. engine->RegisterObjectMethod(className, "Vector2 get_position2D() const", AS_METHODPR(T, GetPosition2D, () const, Vector2), AS_CALL_THISCALL);
  11424. // Vector3 Node::GetRight() const
  11425. engine->RegisterObjectMethod(className, "Vector3 GetRight() const", AS_METHODPR(T, GetRight, () const, Vector3), AS_CALL_THISCALL);
  11426. engine->RegisterObjectMethod(className, "Vector3 get_right() const", AS_METHODPR(T, GetRight, () const, Vector3), AS_CALL_THISCALL);
  11427. // const Quaternion& Node::GetRotation() const
  11428. engine->RegisterObjectMethod(className, "const Quaternion& GetRotation() const", AS_METHODPR(T, GetRotation, () const, const Quaternion&), AS_CALL_THISCALL);
  11429. engine->RegisterObjectMethod(className, "const Quaternion& get_rotation() const", AS_METHODPR(T, GetRotation, () const, const Quaternion&), AS_CALL_THISCALL);
  11430. // float Node::GetRotation2D() const
  11431. engine->RegisterObjectMethod(className, "float GetRotation2D() const", AS_METHODPR(T, GetRotation2D, () const, float), AS_CALL_THISCALL);
  11432. engine->RegisterObjectMethod(className, "float get_rotation2D() const", AS_METHODPR(T, GetRotation2D, () const, float), AS_CALL_THISCALL);
  11433. // const Vector3& Node::GetScale() const
  11434. engine->RegisterObjectMethod(className, "const Vector3& GetScale() const", AS_METHODPR(T, GetScale, () const, const Vector3&), AS_CALL_THISCALL);
  11435. engine->RegisterObjectMethod(className, "const Vector3& get_scale() const", AS_METHODPR(T, GetScale, () const, const Vector3&), AS_CALL_THISCALL);
  11436. // Vector2 Node::GetScale2D() const
  11437. engine->RegisterObjectMethod(className, "Vector2 GetScale2D() const", AS_METHODPR(T, GetScale2D, () const, Vector2), AS_CALL_THISCALL);
  11438. engine->RegisterObjectMethod(className, "Vector2 get_scale2D() const", AS_METHODPR(T, GetScale2D, () const, Vector2), AS_CALL_THISCALL);
  11439. // Scene* Node::GetScene() const
  11440. engine->RegisterObjectMethod(className, "Scene@+ GetScene() const", AS_METHODPR(T, GetScene, () const, Scene*), AS_CALL_THISCALL);
  11441. engine->RegisterObjectMethod(className, "Scene@+ get_scene() const", AS_METHODPR(T, GetScene, () const, Scene*), AS_CALL_THISCALL);
  11442. // Vector3 Node::GetSignedWorldScale() const
  11443. engine->RegisterObjectMethod(className, "Vector3 GetSignedWorldScale() const", AS_METHODPR(T, GetSignedWorldScale, () const, Vector3), AS_CALL_THISCALL);
  11444. engine->RegisterObjectMethod(className, "Vector3 get_signedWorldScale() const", AS_METHODPR(T, GetSignedWorldScale, () const, Vector3), AS_CALL_THISCALL);
  11445. // const StringVector& Node::GetTags() const
  11446. engine->RegisterObjectMethod(className, "Array<String>@ GetTags() const", AS_FUNCTION_OBJFIRST(Node_constspStringVectoramp_GetTags_void_template<Node>), AS_CALL_CDECL_OBJFIRST);
  11447. engine->RegisterObjectMethod(className, "Array<String>@ get_tags() const", AS_FUNCTION_OBJFIRST(Node_constspStringVectoramp_GetTags_void_template<Node>), AS_CALL_CDECL_OBJFIRST);
  11448. // Matrix3x4 Node::GetTransform() const
  11449. engine->RegisterObjectMethod(className, "Matrix3x4 GetTransform() const", AS_METHODPR(T, GetTransform, () const, Matrix3x4), AS_CALL_THISCALL);
  11450. engine->RegisterObjectMethod(className, "Matrix3x4 get_transform() const", AS_METHODPR(T, GetTransform, () const, Matrix3x4), AS_CALL_THISCALL);
  11451. // Vector3 Node::GetUp() const
  11452. engine->RegisterObjectMethod(className, "Vector3 GetUp() const", AS_METHODPR(T, GetUp, () const, Vector3), AS_CALL_THISCALL);
  11453. engine->RegisterObjectMethod(className, "Vector3 get_up() const", AS_METHODPR(T, GetUp, () const, Vector3), AS_CALL_THISCALL);
  11454. // const Variant& Node::GetVar(StringHash key) const
  11455. engine->RegisterObjectMethod(className, "const Variant& GetVar(StringHash) const", AS_METHODPR(T, GetVar, (StringHash) const, const Variant&), AS_CALL_THISCALL);
  11456. // const VariantMap& Node::GetVars() const
  11457. engine->RegisterObjectMethod(className, "const VariantMap& GetVars() const", AS_METHODPR(T, GetVars, () const, const VariantMap&), AS_CALL_THISCALL);
  11458. // Vector3 Node::GetWorldDirection() const
  11459. engine->RegisterObjectMethod(className, "Vector3 GetWorldDirection() const", AS_METHODPR(T, GetWorldDirection, () const, Vector3), AS_CALL_THISCALL);
  11460. engine->RegisterObjectMethod(className, "Vector3 get_worldDirection() const", AS_METHODPR(T, GetWorldDirection, () const, Vector3), AS_CALL_THISCALL);
  11461. // Vector3 Node::GetWorldPosition() const
  11462. engine->RegisterObjectMethod(className, "Vector3 GetWorldPosition() const", AS_METHODPR(T, GetWorldPosition, () const, Vector3), AS_CALL_THISCALL);
  11463. engine->RegisterObjectMethod(className, "Vector3 get_worldPosition() const", AS_METHODPR(T, GetWorldPosition, () const, Vector3), AS_CALL_THISCALL);
  11464. // Vector2 Node::GetWorldPosition2D() const
  11465. engine->RegisterObjectMethod(className, "Vector2 GetWorldPosition2D() const", AS_METHODPR(T, GetWorldPosition2D, () const, Vector2), AS_CALL_THISCALL);
  11466. engine->RegisterObjectMethod(className, "Vector2 get_worldPosition2D() const", AS_METHODPR(T, GetWorldPosition2D, () const, Vector2), AS_CALL_THISCALL);
  11467. // Vector3 Node::GetWorldRight() const
  11468. engine->RegisterObjectMethod(className, "Vector3 GetWorldRight() const", AS_METHODPR(T, GetWorldRight, () const, Vector3), AS_CALL_THISCALL);
  11469. engine->RegisterObjectMethod(className, "Vector3 get_worldRight() const", AS_METHODPR(T, GetWorldRight, () const, Vector3), AS_CALL_THISCALL);
  11470. // Quaternion Node::GetWorldRotation() const
  11471. engine->RegisterObjectMethod(className, "Quaternion GetWorldRotation() const", AS_METHODPR(T, GetWorldRotation, () const, Quaternion), AS_CALL_THISCALL);
  11472. engine->RegisterObjectMethod(className, "Quaternion get_worldRotation() const", AS_METHODPR(T, GetWorldRotation, () const, Quaternion), AS_CALL_THISCALL);
  11473. // float Node::GetWorldRotation2D() const
  11474. engine->RegisterObjectMethod(className, "float GetWorldRotation2D() const", AS_METHODPR(T, GetWorldRotation2D, () const, float), AS_CALL_THISCALL);
  11475. engine->RegisterObjectMethod(className, "float get_worldRotation2D() const", AS_METHODPR(T, GetWorldRotation2D, () const, float), AS_CALL_THISCALL);
  11476. // Vector3 Node::GetWorldScale() const
  11477. engine->RegisterObjectMethod(className, "Vector3 GetWorldScale() const", AS_METHODPR(T, GetWorldScale, () const, Vector3), AS_CALL_THISCALL);
  11478. engine->RegisterObjectMethod(className, "Vector3 get_worldScale() const", AS_METHODPR(T, GetWorldScale, () const, Vector3), AS_CALL_THISCALL);
  11479. // Vector2 Node::GetWorldScale2D() const
  11480. engine->RegisterObjectMethod(className, "Vector2 GetWorldScale2D() const", AS_METHODPR(T, GetWorldScale2D, () const, Vector2), AS_CALL_THISCALL);
  11481. engine->RegisterObjectMethod(className, "Vector2 get_worldScale2D() const", AS_METHODPR(T, GetWorldScale2D, () const, Vector2), AS_CALL_THISCALL);
  11482. // const Matrix3x4& Node::GetWorldTransform() const
  11483. engine->RegisterObjectMethod(className, "const Matrix3x4& GetWorldTransform() const", AS_METHODPR(T, GetWorldTransform, () const, const Matrix3x4&), AS_CALL_THISCALL);
  11484. engine->RegisterObjectMethod(className, "const Matrix3x4& get_worldTransform() const", AS_METHODPR(T, GetWorldTransform, () const, const Matrix3x4&), AS_CALL_THISCALL);
  11485. // Vector3 Node::GetWorldUp() const
  11486. engine->RegisterObjectMethod(className, "Vector3 GetWorldUp() const", AS_METHODPR(T, GetWorldUp, () const, Vector3), AS_CALL_THISCALL);
  11487. engine->RegisterObjectMethod(className, "Vector3 get_worldUp() const", AS_METHODPR(T, GetWorldUp, () const, Vector3), AS_CALL_THISCALL);
  11488. // bool Node::HasComponent(StringHash type) const
  11489. engine->RegisterObjectMethod(className, "bool HasComponent(StringHash) const", AS_METHODPR(T, HasComponent, (StringHash) const, bool), AS_CALL_THISCALL);
  11490. // bool Node::HasTag(const String& tag) const
  11491. engine->RegisterObjectMethod(className, "bool HasTag(const String&in) const", AS_METHODPR(T, HasTag, (const String&) const, bool), AS_CALL_THISCALL);
  11492. // bool Node::IsChildOf(Node* node) const
  11493. engine->RegisterObjectMethod(className, "bool IsChildOf(Node@+) const", AS_METHODPR(T, IsChildOf, (Node*) const, bool), AS_CALL_THISCALL);
  11494. // bool Node::IsDirty() const
  11495. engine->RegisterObjectMethod(className, "bool IsDirty() const", AS_METHODPR(T, IsDirty, () const, bool), AS_CALL_THISCALL);
  11496. // bool Node::IsEnabled() const
  11497. engine->RegisterObjectMethod(className, "bool IsEnabled() const", AS_METHODPR(T, IsEnabled, () const, bool), AS_CALL_THISCALL);
  11498. engine->RegisterObjectMethod(className, "bool get_enabled() const", AS_METHODPR(T, IsEnabled, () const, bool), AS_CALL_THISCALL);
  11499. // bool Node::IsEnabledSelf() const
  11500. engine->RegisterObjectMethod(className, "bool IsEnabledSelf() const", AS_METHODPR(T, IsEnabledSelf, () const, bool), AS_CALL_THISCALL);
  11501. engine->RegisterObjectMethod(className, "bool get_enabledSelf() const", AS_METHODPR(T, IsEnabledSelf, () const, bool), AS_CALL_THISCALL);
  11502. // bool Node::IsReplicated() const
  11503. engine->RegisterObjectMethod(className, "bool IsReplicated() const", AS_METHODPR(T, IsReplicated, () const, bool), AS_CALL_THISCALL);
  11504. engine->RegisterObjectMethod(className, "bool get_replicated() const", AS_METHODPR(T, IsReplicated, () const, bool), AS_CALL_THISCALL);
  11505. // Vector3 Node::LocalToWorld(const Vector3& position) const
  11506. engine->RegisterObjectMethod(className, "Vector3 LocalToWorld(const Vector3&in) const", AS_METHODPR(T, LocalToWorld, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  11507. // Vector3 Node::LocalToWorld(const Vector4& vector) const
  11508. engine->RegisterObjectMethod(className, "Vector3 LocalToWorld(const Vector4&in) const", AS_METHODPR(T, LocalToWorld, (const Vector4&) const, Vector3), AS_CALL_THISCALL);
  11509. // Vector2 Node::LocalToWorld2D(const Vector2& vector) const
  11510. engine->RegisterObjectMethod(className, "Vector2 LocalToWorld2D(const Vector2&in) const", AS_METHODPR(T, LocalToWorld2D, (const Vector2&) const, Vector2), AS_CALL_THISCALL);
  11511. // bool Node::LookAt(const Vector3& target, const Vector3& up = Vector3::UP, TransformSpace space = TS_WORLD)
  11512. engine->RegisterObjectMethod(className, "bool LookAt(const Vector3&in, const Vector3&in = Vector3::UP, TransformSpace = TS_WORLD)", AS_METHODPR(T, LookAt, (const Vector3&, const Vector3&, TransformSpace), bool), AS_CALL_THISCALL);
  11513. // void Node::MarkDirty()
  11514. engine->RegisterObjectMethod(className, "void MarkDirty()", AS_METHODPR(T, MarkDirty, (), void), AS_CALL_THISCALL);
  11515. // void Node::Pitch(float angle, TransformSpace space = TS_LOCAL)
  11516. engine->RegisterObjectMethod(className, "void Pitch(float, TransformSpace = TS_LOCAL)", AS_METHODPR(T, Pitch, (float, TransformSpace), void), AS_CALL_THISCALL);
  11517. // void Node::PrepareNetworkUpdate()
  11518. engine->RegisterObjectMethod(className, "void PrepareNetworkUpdate()", AS_METHODPR(T, PrepareNetworkUpdate, (), void), AS_CALL_THISCALL);
  11519. // void Node::Remove()
  11520. engine->RegisterObjectMethod(className, "void Remove()", AS_METHODPR(T, Remove, (), void), AS_CALL_THISCALL);
  11521. // void Node::RemoveAllChildren()
  11522. engine->RegisterObjectMethod(className, "void RemoveAllChildren()", AS_METHODPR(T, RemoveAllChildren, (), void), AS_CALL_THISCALL);
  11523. // void Node::RemoveAllComponents()
  11524. engine->RegisterObjectMethod(className, "void RemoveAllComponents()", AS_METHODPR(T, RemoveAllComponents, (), void), AS_CALL_THISCALL);
  11525. // void Node::RemoveAllTags()
  11526. engine->RegisterObjectMethod(className, "void RemoveAllTags()", AS_METHODPR(T, RemoveAllTags, (), void), AS_CALL_THISCALL);
  11527. // void Node::RemoveChild(Node* node)
  11528. engine->RegisterObjectMethod(className, "void RemoveChild(Node@+)", AS_METHODPR(T, RemoveChild, (Node*), void), AS_CALL_THISCALL);
  11529. // void Node::RemoveChildren(bool removeReplicated, bool removeLocal, bool recursive)
  11530. engine->RegisterObjectMethod(className, "void RemoveChildren(bool, bool, bool)", AS_METHODPR(T, RemoveChildren, (bool, bool, bool), void), AS_CALL_THISCALL);
  11531. // void Node::RemoveComponent(Component* component)
  11532. engine->RegisterObjectMethod(className, "void RemoveComponent(Component@+)", AS_METHODPR(T, RemoveComponent, (Component*), void), AS_CALL_THISCALL);
  11533. // void Node::RemoveComponent(StringHash type)
  11534. engine->RegisterObjectMethod(className, "void RemoveComponent(StringHash)", AS_METHODPR(T, RemoveComponent, (StringHash), void), AS_CALL_THISCALL);
  11535. // void Node::RemoveComponents(bool removeReplicated, bool removeLocal)
  11536. engine->RegisterObjectMethod(className, "void RemoveComponents(bool, bool)", AS_METHODPR(T, RemoveComponents, (bool, bool), void), AS_CALL_THISCALL);
  11537. // void Node::RemoveComponents(StringHash type)
  11538. engine->RegisterObjectMethod(className, "void RemoveComponents(StringHash)", AS_METHODPR(T, RemoveComponents, (StringHash), void), AS_CALL_THISCALL);
  11539. // void Node::RemoveListener(Component* component)
  11540. engine->RegisterObjectMethod(className, "void RemoveListener(Component@+)", AS_METHODPR(T, RemoveListener, (Component*), void), AS_CALL_THISCALL);
  11541. // bool Node::RemoveTag(const String& tag)
  11542. engine->RegisterObjectMethod(className, "bool RemoveTag(const String&in)", AS_METHODPR(T, RemoveTag, (const String&), bool), AS_CALL_THISCALL);
  11543. // void Node::ReorderComponent(Component* component, unsigned index)
  11544. engine->RegisterObjectMethod(className, "void ReorderComponent(Component@+, uint)", AS_METHODPR(T, ReorderComponent, (Component*, unsigned), void), AS_CALL_THISCALL);
  11545. // void Node::ResetDeepEnabled()
  11546. engine->RegisterObjectMethod(className, "void ResetDeepEnabled()", AS_METHODPR(T, ResetDeepEnabled, (), void), AS_CALL_THISCALL);
  11547. // void Node::ResetScene()
  11548. engine->RegisterObjectMethod(className, "void ResetScene()", AS_METHODPR(T, ResetScene, (), void), AS_CALL_THISCALL);
  11549. // void Node::Roll(float angle, TransformSpace space = TS_LOCAL)
  11550. engine->RegisterObjectMethod(className, "void Roll(float, TransformSpace = TS_LOCAL)", AS_METHODPR(T, Roll, (float, TransformSpace), void), AS_CALL_THISCALL);
  11551. // void Node::Rotate(const Quaternion& delta, TransformSpace space = TS_LOCAL)
  11552. engine->RegisterObjectMethod(className, "void Rotate(const Quaternion&in, TransformSpace = TS_LOCAL)", AS_METHODPR(T, Rotate, (const Quaternion&, TransformSpace), void), AS_CALL_THISCALL);
  11553. // void Node::Rotate2D(float delta, TransformSpace space = TS_LOCAL)
  11554. engine->RegisterObjectMethod(className, "void Rotate2D(float, TransformSpace = TS_LOCAL)", AS_METHODPR(T, Rotate2D, (float, TransformSpace), void), AS_CALL_THISCALL);
  11555. // void Node::RotateAround(const Vector3& point, const Quaternion& delta, TransformSpace space = TS_LOCAL)
  11556. engine->RegisterObjectMethod(className, "void RotateAround(const Vector3&in, const Quaternion&in, TransformSpace = TS_LOCAL)", AS_METHODPR(T, RotateAround, (const Vector3&, const Quaternion&, TransformSpace), void), AS_CALL_THISCALL);
  11557. // void Node::RotateAround2D(const Vector2& point, float delta, TransformSpace space = TS_LOCAL)
  11558. engine->RegisterObjectMethod(className, "void RotateAround2D(const Vector2&in, float, TransformSpace = TS_LOCAL)", AS_METHODPR(T, RotateAround2D, (const Vector2&, float, TransformSpace), void), AS_CALL_THISCALL);
  11559. // bool Node::SaveJSON(Serializer& dest, const String& indentation = "\t") const
  11560. engine->RegisterObjectMethod(className, "bool SaveJSON(Serializer&, const String&in = \"\t\") const", AS_METHODPR(T, SaveJSON, (Serializer&, const String&) const, bool), AS_CALL_THISCALL);
  11561. // bool Node::SaveXML(Serializer& dest, const String& indentation = "\t") const
  11562. engine->RegisterObjectMethod(className, "bool SaveXML(Serializer&, const String&in = \"\t\") const", AS_METHODPR(T, SaveXML, (Serializer&, const String&) const, bool), AS_CALL_THISCALL);
  11563. // void Node::Scale(float scale)
  11564. engine->RegisterObjectMethod(className, "void Scale(float)", AS_METHODPR(T, Scale, (float), void), AS_CALL_THISCALL);
  11565. // void Node::Scale(const Vector3& scale)
  11566. engine->RegisterObjectMethod(className, "void Scale(const Vector3&in)", AS_METHODPR(T, Scale, (const Vector3&), void), AS_CALL_THISCALL);
  11567. // void Node::Scale2D(const Vector2& scale)
  11568. engine->RegisterObjectMethod(className, "void Scale2D(const Vector2&in)", AS_METHODPR(T, Scale2D, (const Vector2&), void), AS_CALL_THISCALL);
  11569. // void Node::SetDeepEnabled(bool enable)
  11570. engine->RegisterObjectMethod(className, "void SetDeepEnabled(bool)", AS_METHODPR(T, SetDeepEnabled, (bool), void), AS_CALL_THISCALL);
  11571. // void Node::SetDirection(const Vector3& direction)
  11572. engine->RegisterObjectMethod(className, "void SetDirection(const Vector3&in)", AS_METHODPR(T, SetDirection, (const Vector3&), void), AS_CALL_THISCALL);
  11573. engine->RegisterObjectMethod(className, "void set_direction(const Vector3&in)", AS_METHODPR(T, SetDirection, (const Vector3&), void), AS_CALL_THISCALL);
  11574. // void Node::SetEnabled(bool enable)
  11575. engine->RegisterObjectMethod(className, "void SetEnabled(bool)", AS_METHODPR(T, SetEnabled, (bool), void), AS_CALL_THISCALL);
  11576. engine->RegisterObjectMethod(className, "void set_enabled(bool)", AS_METHODPR(T, SetEnabled, (bool), void), AS_CALL_THISCALL);
  11577. // void Node::SetEnabledRecursive(bool enable)
  11578. engine->RegisterObjectMethod(className, "void SetEnabledRecursive(bool)", AS_METHODPR(T, SetEnabledRecursive, (bool), void), AS_CALL_THISCALL);
  11579. // void Node::SetID(unsigned id)
  11580. engine->RegisterObjectMethod(className, "void SetID(uint)", AS_METHODPR(T, SetID, (unsigned), void), AS_CALL_THISCALL);
  11581. engine->RegisterObjectMethod(className, "void set_id(uint)", AS_METHODPR(T, SetID, (unsigned), void), AS_CALL_THISCALL);
  11582. // void Node::SetName(const String& name)
  11583. engine->RegisterObjectMethod(className, "void SetName(const String&in)", AS_METHODPR(T, SetName, (const String&), void), AS_CALL_THISCALL);
  11584. engine->RegisterObjectMethod(className, "void set_name(const String&in)", AS_METHODPR(T, SetName, (const String&), void), AS_CALL_THISCALL);
  11585. // void Node::SetNetPositionAttr(const Vector3& value)
  11586. engine->RegisterObjectMethod(className, "void SetNetPositionAttr(const Vector3&in)", AS_METHODPR(T, SetNetPositionAttr, (const Vector3&), void), AS_CALL_THISCALL);
  11587. // void Node::SetParent(Node* parent)
  11588. engine->RegisterObjectMethod(className, "void SetParent(Node@+)", AS_METHODPR(T, SetParent, (Node*), void), AS_CALL_THISCALL);
  11589. engine->RegisterObjectMethod(className, "void set_parent(Node@+)", AS_METHODPR(T, SetParent, (Node*), void), AS_CALL_THISCALL);
  11590. // void Node::SetPosition(const Vector3& position)
  11591. engine->RegisterObjectMethod(className, "void SetPosition(const Vector3&in)", AS_METHODPR(T, SetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  11592. engine->RegisterObjectMethod(className, "void set_position(const Vector3&in)", AS_METHODPR(T, SetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  11593. // void Node::SetPosition2D(const Vector2& position)
  11594. engine->RegisterObjectMethod(className, "void SetPosition2D(const Vector2&in)", AS_METHODPR(T, SetPosition2D, (const Vector2&), void), AS_CALL_THISCALL);
  11595. engine->RegisterObjectMethod(className, "void set_position2D(const Vector2&in)", AS_METHODPR(T, SetPosition2D, (const Vector2&), void), AS_CALL_THISCALL);
  11596. // void Node::SetPosition2D(float x, float y)
  11597. engine->RegisterObjectMethod(className, "void SetPosition2D(float, float)", AS_METHODPR(T, SetPosition2D, (float, float), void), AS_CALL_THISCALL);
  11598. // void Node::SetPositionSilent(const Vector3& position)
  11599. engine->RegisterObjectMethod(className, "void SetPositionSilent(const Vector3&in)", AS_METHODPR(T, SetPositionSilent, (const Vector3&), void), AS_CALL_THISCALL);
  11600. // void Node::SetRotation(const Quaternion& rotation)
  11601. engine->RegisterObjectMethod(className, "void SetRotation(const Quaternion&in)", AS_METHODPR(T, SetRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  11602. engine->RegisterObjectMethod(className, "void set_rotation(const Quaternion&in)", AS_METHODPR(T, SetRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  11603. // void Node::SetRotation2D(float rotation)
  11604. engine->RegisterObjectMethod(className, "void SetRotation2D(float)", AS_METHODPR(T, SetRotation2D, (float), void), AS_CALL_THISCALL);
  11605. engine->RegisterObjectMethod(className, "void set_rotation2D(float)", AS_METHODPR(T, SetRotation2D, (float), void), AS_CALL_THISCALL);
  11606. // void Node::SetRotationSilent(const Quaternion& rotation)
  11607. engine->RegisterObjectMethod(className, "void SetRotationSilent(const Quaternion&in)", AS_METHODPR(T, SetRotationSilent, (const Quaternion&), void), AS_CALL_THISCALL);
  11608. // void Node::SetScale(float scale)
  11609. engine->RegisterObjectMethod(className, "void SetScale(float)", AS_METHODPR(T, SetScale, (float), void), AS_CALL_THISCALL);
  11610. // void Node::SetScale(const Vector3& scale)
  11611. engine->RegisterObjectMethod(className, "void SetScale(const Vector3&in)", AS_METHODPR(T, SetScale, (const Vector3&), void), AS_CALL_THISCALL);
  11612. engine->RegisterObjectMethod(className, "void set_scale(const Vector3&in)", AS_METHODPR(T, SetScale, (const Vector3&), void), AS_CALL_THISCALL);
  11613. // void Node::SetScale2D(const Vector2& scale)
  11614. engine->RegisterObjectMethod(className, "void SetScale2D(const Vector2&in)", AS_METHODPR(T, SetScale2D, (const Vector2&), void), AS_CALL_THISCALL);
  11615. engine->RegisterObjectMethod(className, "void set_scale2D(const Vector2&in)", AS_METHODPR(T, SetScale2D, (const Vector2&), void), AS_CALL_THISCALL);
  11616. // void Node::SetScale2D(float x, float y)
  11617. engine->RegisterObjectMethod(className, "void SetScale2D(float, float)", AS_METHODPR(T, SetScale2D, (float, float), void), AS_CALL_THISCALL);
  11618. // void Node::SetScaleSilent(const Vector3& scale)
  11619. engine->RegisterObjectMethod(className, "void SetScaleSilent(const Vector3&in)", AS_METHODPR(T, SetScaleSilent, (const Vector3&), void), AS_CALL_THISCALL);
  11620. // void Node::SetScene(Scene* scene)
  11621. engine->RegisterObjectMethod(className, "void SetScene(Scene@+)", AS_METHODPR(T, SetScene, (Scene*), void), AS_CALL_THISCALL);
  11622. // void Node::SetTags(const StringVector& tags)
  11623. engine->RegisterObjectMethod(className, "void SetTags(Array<String>@+)", AS_FUNCTION_OBJFIRST(Node_void_SetTags_constspStringVectoramp_template<Node>), AS_CALL_CDECL_OBJFIRST);
  11624. // void Node::SetTransform(const Vector3& position, const Quaternion& rotation)
  11625. engine->RegisterObjectMethod(className, "void SetTransform(const Vector3&in, const Quaternion&in)", AS_METHODPR(T, SetTransform, (const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  11626. // void Node::SetTransform(const Vector3& position, const Quaternion& rotation, float scale)
  11627. engine->RegisterObjectMethod(className, "void SetTransform(const Vector3&in, const Quaternion&in, float)", AS_METHODPR(T, SetTransform, (const Vector3&, const Quaternion&, float), void), AS_CALL_THISCALL);
  11628. // void Node::SetTransform(const Vector3& position, const Quaternion& rotation, const Vector3& scale)
  11629. engine->RegisterObjectMethod(className, "void SetTransform(const Vector3&in, const Quaternion&in, const Vector3&in)", AS_METHODPR(T, SetTransform, (const Vector3&, const Quaternion&, const Vector3&), void), AS_CALL_THISCALL);
  11630. // void Node::SetTransform(const Matrix3x4& matrix)
  11631. engine->RegisterObjectMethod(className, "void SetTransform(const Matrix3x4&in)", AS_METHODPR(T, SetTransform, (const Matrix3x4&), void), AS_CALL_THISCALL);
  11632. // void Node::SetTransform2D(const Vector2& position, float rotation)
  11633. engine->RegisterObjectMethod(className, "void SetTransform2D(const Vector2&in, float)", AS_METHODPR(T, SetTransform2D, (const Vector2&, float), void), AS_CALL_THISCALL);
  11634. // void Node::SetTransform2D(const Vector2& position, float rotation, float scale)
  11635. engine->RegisterObjectMethod(className, "void SetTransform2D(const Vector2&in, float, float)", AS_METHODPR(T, SetTransform2D, (const Vector2&, float, float), void), AS_CALL_THISCALL);
  11636. // void Node::SetTransform2D(const Vector2& position, float rotation, const Vector2& scale)
  11637. engine->RegisterObjectMethod(className, "void SetTransform2D(const Vector2&in, float, const Vector2&in)", AS_METHODPR(T, SetTransform2D, (const Vector2&, float, const Vector2&), void), AS_CALL_THISCALL);
  11638. // void Node::SetTransformSilent(const Vector3& position, const Quaternion& rotation, const Vector3& scale)
  11639. engine->RegisterObjectMethod(className, "void SetTransformSilent(const Vector3&in, const Quaternion&in, const Vector3&in)", AS_METHODPR(T, SetTransformSilent, (const Vector3&, const Quaternion&, const Vector3&), void), AS_CALL_THISCALL);
  11640. // void Node::SetVar(StringHash key, const Variant& value)
  11641. engine->RegisterObjectMethod(className, "void SetVar(StringHash, const Variant&in)", AS_METHODPR(T, SetVar, (StringHash, const Variant&), void), AS_CALL_THISCALL);
  11642. // void Node::SetWorldDirection(const Vector3& direction)
  11643. engine->RegisterObjectMethod(className, "void SetWorldDirection(const Vector3&in)", AS_METHODPR(T, SetWorldDirection, (const Vector3&), void), AS_CALL_THISCALL);
  11644. engine->RegisterObjectMethod(className, "void set_worldDirection(const Vector3&in)", AS_METHODPR(T, SetWorldDirection, (const Vector3&), void), AS_CALL_THISCALL);
  11645. // void Node::SetWorldPosition(const Vector3& position)
  11646. engine->RegisterObjectMethod(className, "void SetWorldPosition(const Vector3&in)", AS_METHODPR(T, SetWorldPosition, (const Vector3&), void), AS_CALL_THISCALL);
  11647. engine->RegisterObjectMethod(className, "void set_worldPosition(const Vector3&in)", AS_METHODPR(T, SetWorldPosition, (const Vector3&), void), AS_CALL_THISCALL);
  11648. // void Node::SetWorldPosition2D(const Vector2& position)
  11649. engine->RegisterObjectMethod(className, "void SetWorldPosition2D(const Vector2&in)", AS_METHODPR(T, SetWorldPosition2D, (const Vector2&), void), AS_CALL_THISCALL);
  11650. engine->RegisterObjectMethod(className, "void set_worldPosition2D(const Vector2&in)", AS_METHODPR(T, SetWorldPosition2D, (const Vector2&), void), AS_CALL_THISCALL);
  11651. // void Node::SetWorldPosition2D(float x, float y)
  11652. engine->RegisterObjectMethod(className, "void SetWorldPosition2D(float, float)", AS_METHODPR(T, SetWorldPosition2D, (float, float), void), AS_CALL_THISCALL);
  11653. // void Node::SetWorldRotation(const Quaternion& rotation)
  11654. engine->RegisterObjectMethod(className, "void SetWorldRotation(const Quaternion&in)", AS_METHODPR(T, SetWorldRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  11655. engine->RegisterObjectMethod(className, "void set_worldRotation(const Quaternion&in)", AS_METHODPR(T, SetWorldRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  11656. // void Node::SetWorldRotation2D(float rotation)
  11657. engine->RegisterObjectMethod(className, "void SetWorldRotation2D(float)", AS_METHODPR(T, SetWorldRotation2D, (float), void), AS_CALL_THISCALL);
  11658. engine->RegisterObjectMethod(className, "void set_worldRotation2D(float)", AS_METHODPR(T, SetWorldRotation2D, (float), void), AS_CALL_THISCALL);
  11659. // void Node::SetWorldScale(float scale)
  11660. engine->RegisterObjectMethod(className, "void SetWorldScale(float)", AS_METHODPR(T, SetWorldScale, (float), void), AS_CALL_THISCALL);
  11661. // void Node::SetWorldScale(const Vector3& scale)
  11662. engine->RegisterObjectMethod(className, "void SetWorldScale(const Vector3&in)", AS_METHODPR(T, SetWorldScale, (const Vector3&), void), AS_CALL_THISCALL);
  11663. engine->RegisterObjectMethod(className, "void set_worldScale(const Vector3&in)", AS_METHODPR(T, SetWorldScale, (const Vector3&), void), AS_CALL_THISCALL);
  11664. // void Node::SetWorldScale2D(const Vector2& scale)
  11665. engine->RegisterObjectMethod(className, "void SetWorldScale2D(const Vector2&in)", AS_METHODPR(T, SetWorldScale2D, (const Vector2&), void), AS_CALL_THISCALL);
  11666. engine->RegisterObjectMethod(className, "void set_worldScale2D(const Vector2&in)", AS_METHODPR(T, SetWorldScale2D, (const Vector2&), void), AS_CALL_THISCALL);
  11667. // void Node::SetWorldScale2D(float x, float y)
  11668. engine->RegisterObjectMethod(className, "void SetWorldScale2D(float, float)", AS_METHODPR(T, SetWorldScale2D, (float, float), void), AS_CALL_THISCALL);
  11669. // void Node::SetWorldTransform(const Vector3& position, const Quaternion& rotation)
  11670. engine->RegisterObjectMethod(className, "void SetWorldTransform(const Vector3&in, const Quaternion&in)", AS_METHODPR(T, SetWorldTransform, (const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  11671. // void Node::SetWorldTransform(const Vector3& position, const Quaternion& rotation, float scale)
  11672. engine->RegisterObjectMethod(className, "void SetWorldTransform(const Vector3&in, const Quaternion&in, float)", AS_METHODPR(T, SetWorldTransform, (const Vector3&, const Quaternion&, float), void), AS_CALL_THISCALL);
  11673. // void Node::SetWorldTransform(const Vector3& position, const Quaternion& rotation, const Vector3& scale)
  11674. engine->RegisterObjectMethod(className, "void SetWorldTransform(const Vector3&in, const Quaternion&in, const Vector3&in)", AS_METHODPR(T, SetWorldTransform, (const Vector3&, const Quaternion&, const Vector3&), void), AS_CALL_THISCALL);
  11675. // void Node::SetWorldTransform(const Matrix3x4& worldTransform)
  11676. engine->RegisterObjectMethod(className, "void SetWorldTransform(const Matrix3x4&in)", AS_METHODPR(T, SetWorldTransform, (const Matrix3x4&), void), AS_CALL_THISCALL);
  11677. // void Node::SetWorldTransform2D(const Vector2& position, float rotation)
  11678. engine->RegisterObjectMethod(className, "void SetWorldTransform2D(const Vector2&in, float)", AS_METHODPR(T, SetWorldTransform2D, (const Vector2&, float), void), AS_CALL_THISCALL);
  11679. // void Node::SetWorldTransform2D(const Vector2& position, float rotation, float scale)
  11680. engine->RegisterObjectMethod(className, "void SetWorldTransform2D(const Vector2&in, float, float)", AS_METHODPR(T, SetWorldTransform2D, (const Vector2&, float, float), void), AS_CALL_THISCALL);
  11681. // void Node::SetWorldTransform2D(const Vector2& position, float rotation, const Vector2& scale)
  11682. engine->RegisterObjectMethod(className, "void SetWorldTransform2D(const Vector2&in, float, const Vector2&in)", AS_METHODPR(T, SetWorldTransform2D, (const Vector2&, float, const Vector2&), void), AS_CALL_THISCALL);
  11683. // void Node::Translate(const Vector3& delta, TransformSpace space = TS_LOCAL)
  11684. engine->RegisterObjectMethod(className, "void Translate(const Vector3&in, TransformSpace = TS_LOCAL)", AS_METHODPR(T, Translate, (const Vector3&, TransformSpace), void), AS_CALL_THISCALL);
  11685. // void Node::Translate2D(const Vector2& delta, TransformSpace space = TS_LOCAL)
  11686. engine->RegisterObjectMethod(className, "void Translate2D(const Vector2&in, TransformSpace = TS_LOCAL)", AS_METHODPR(T, Translate2D, (const Vector2&, TransformSpace), void), AS_CALL_THISCALL);
  11687. // Vector3 Node::WorldToLocal(const Vector3& position) const
  11688. engine->RegisterObjectMethod(className, "Vector3 WorldToLocal(const Vector3&in) const", AS_METHODPR(T, WorldToLocal, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  11689. // Vector3 Node::WorldToLocal(const Vector4& vector) const
  11690. engine->RegisterObjectMethod(className, "Vector3 WorldToLocal(const Vector4&in) const", AS_METHODPR(T, WorldToLocal, (const Vector4&) const, Vector3), AS_CALL_THISCALL);
  11691. // Vector2 Node::WorldToLocal2D(const Vector2& vector) const
  11692. engine->RegisterObjectMethod(className, "Vector2 WorldToLocal2D(const Vector2&in) const", AS_METHODPR(T, WorldToLocal2D, (const Vector2&) const, Vector2), AS_CALL_THISCALL);
  11693. // void Node::Yaw(float angle, TransformSpace space = TS_LOCAL)
  11694. engine->RegisterObjectMethod(className, "void Yaw(float, TransformSpace = TS_LOCAL)", AS_METHODPR(T, Yaw, (float, TransformSpace), void), AS_CALL_THISCALL);
  11695. // template <class T> T* Node::CreateComponent(CreateMode mode = REPLICATED, unsigned id = 0)
  11696. // Not registered because template
  11697. // template <class T> void Node::GetChildrenWithComponent(PODVector<Node*>& dest, bool recursive = false) const
  11698. // Not registered because template
  11699. // template <class T> T* Node::GetComponent(bool recursive = false) const
  11700. // Not registered because template
  11701. // template <class T> void Node::GetComponents(PODVector<T*>& dest, bool recursive = false) const
  11702. // Not registered because template
  11703. // template <class T> T* Node::GetDerivedComponent(bool recursive = false) const
  11704. // Not registered because template
  11705. // template <class T> void Node::GetDerivedComponents(PODVector<T*>& dest, bool recursive = false, bool clearVector = true) const
  11706. // Not registered because template
  11707. // template <class T> T* Node::GetOrCreateComponent(CreateMode mode = REPLICATED, unsigned id = 0)
  11708. // Not registered because template
  11709. // template <class T> T* Node::GetParentComponent(bool fullTraversal = false) const
  11710. // Not registered because template
  11711. // template <class T> T* Node::GetParentDerivedComponent(bool fullTraversal = false) const
  11712. // Not registered because template
  11713. // template <class T> bool Node::HasComponent() const
  11714. // Not registered because template
  11715. // template <class T> void Node::RemoveComponent()
  11716. // Not registered because template
  11717. // template <class T> void Node::RemoveComponents()
  11718. // Not registered because template
  11719. #ifdef REGISTER_MEMBERS_MANUAL_PART_Node
  11720. REGISTER_MEMBERS_MANUAL_PART_Node();
  11721. #endif
  11722. }
  11723. // SharedPtr<SoundStream> Sound::GetDecoderStream() const
  11724. template <class T> SoundStream* Sound_SharedPtrlesSoundStreamgre_GetDecoderStream_void_template(T* _ptr)
  11725. {
  11726. SharedPtr<SoundStream> result = _ptr->GetDecoderStream();
  11727. return result.Detach();
  11728. }
  11729. // class Sound | File: ../Audio/Sound.h
  11730. template <class T> void RegisterMembers_Sound(asIScriptEngine* engine, const char* className)
  11731. {
  11732. RegisterMembers_ResourceWithMetadata<T>(engine, className);
  11733. // SharedArrayPtr<signed char> Sound::GetData() const
  11734. // Error: type "SharedArrayPtr<signed char>" can not automatically bind
  11735. // signed char* Sound::GetEnd() const
  11736. // Error: type "signed char*" can not automatically bind
  11737. // signed char* Sound::GetRepeat() const
  11738. // Error: type "signed char*" can not automatically bind
  11739. // signed char* Sound::GetStart() const
  11740. // Error: type "signed char*" can not automatically bind
  11741. // void Sound::SetData(const void* data, unsigned dataSize)
  11742. // Error: type "const void*" can not automatically bind
  11743. // void Sound::FixInterpolation()
  11744. engine->RegisterObjectMethod(className, "void FixInterpolation()", AS_METHODPR(T, FixInterpolation, (), void), AS_CALL_THISCALL);
  11745. // unsigned Sound::GetDataSize() const
  11746. engine->RegisterObjectMethod(className, "uint GetDataSize() const", AS_METHODPR(T, GetDataSize, () const, unsigned), AS_CALL_THISCALL);
  11747. // SharedPtr<SoundStream> Sound::GetDecoderStream() const
  11748. engine->RegisterObjectMethod(className, "SoundStream@+ GetDecoderStream() const", AS_FUNCTION_OBJFIRST(Sound_SharedPtrlesSoundStreamgre_GetDecoderStream_void_template<Sound>), AS_CALL_CDECL_OBJFIRST);
  11749. // float Sound::GetFrequency() const
  11750. engine->RegisterObjectMethod(className, "float GetFrequency() const", AS_METHODPR(T, GetFrequency, () const, float), AS_CALL_THISCALL);
  11751. engine->RegisterObjectMethod(className, "float get_frequency() const", AS_METHODPR(T, GetFrequency, () const, float), AS_CALL_THISCALL);
  11752. // unsigned Sound::GetIntFrequency() const
  11753. engine->RegisterObjectMethod(className, "uint GetIntFrequency() const", AS_METHODPR(T, GetIntFrequency, () const, unsigned), AS_CALL_THISCALL);
  11754. // float Sound::GetLength() const
  11755. engine->RegisterObjectMethod(className, "float GetLength() const", AS_METHODPR(T, GetLength, () const, float), AS_CALL_THISCALL);
  11756. engine->RegisterObjectMethod(className, "float get_length() const", AS_METHODPR(T, GetLength, () const, float), AS_CALL_THISCALL);
  11757. // unsigned Sound::GetSampleSize() const
  11758. engine->RegisterObjectMethod(className, "uint GetSampleSize() const", AS_METHODPR(T, GetSampleSize, () const, unsigned), AS_CALL_THISCALL);
  11759. engine->RegisterObjectMethod(className, "uint get_sampleSize() const", AS_METHODPR(T, GetSampleSize, () const, unsigned), AS_CALL_THISCALL);
  11760. // bool Sound::IsCompressed() const
  11761. engine->RegisterObjectMethod(className, "bool IsCompressed() const", AS_METHODPR(T, IsCompressed, () const, bool), AS_CALL_THISCALL);
  11762. engine->RegisterObjectMethod(className, "bool get_compressed() const", AS_METHODPR(T, IsCompressed, () const, bool), AS_CALL_THISCALL);
  11763. // bool Sound::IsLooped() const
  11764. engine->RegisterObjectMethod(className, "bool IsLooped() const", AS_METHODPR(T, IsLooped, () const, bool), AS_CALL_THISCALL);
  11765. engine->RegisterObjectMethod(className, "bool get_looped() const", AS_METHODPR(T, IsLooped, () const, bool), AS_CALL_THISCALL);
  11766. // bool Sound::IsSixteenBit() const
  11767. engine->RegisterObjectMethod(className, "bool IsSixteenBit() const", AS_METHODPR(T, IsSixteenBit, () const, bool), AS_CALL_THISCALL);
  11768. engine->RegisterObjectMethod(className, "bool get_sixteenBit() const", AS_METHODPR(T, IsSixteenBit, () const, bool), AS_CALL_THISCALL);
  11769. // bool Sound::IsStereo() const
  11770. engine->RegisterObjectMethod(className, "bool IsStereo() const", AS_METHODPR(T, IsStereo, () const, bool), AS_CALL_THISCALL);
  11771. engine->RegisterObjectMethod(className, "bool get_stereo() const", AS_METHODPR(T, IsStereo, () const, bool), AS_CALL_THISCALL);
  11772. // bool Sound::LoadOggVorbis(Deserializer& source)
  11773. engine->RegisterObjectMethod(className, "bool LoadOggVorbis(Deserializer&)", AS_METHODPR(T, LoadOggVorbis, (Deserializer&), bool), AS_CALL_THISCALL);
  11774. // bool Sound::LoadRaw(Deserializer& source)
  11775. engine->RegisterObjectMethod(className, "bool LoadRaw(Deserializer&)", AS_METHODPR(T, LoadRaw, (Deserializer&), bool), AS_CALL_THISCALL);
  11776. // bool Sound::LoadWav(Deserializer& source)
  11777. engine->RegisterObjectMethod(className, "bool LoadWav(Deserializer&)", AS_METHODPR(T, LoadWav, (Deserializer&), bool), AS_CALL_THISCALL);
  11778. // void Sound::SetFormat(unsigned frequency, bool sixteenBit, bool stereo)
  11779. engine->RegisterObjectMethod(className, "void SetFormat(uint, bool, bool)", AS_METHODPR(T, SetFormat, (unsigned, bool, bool), void), AS_CALL_THISCALL);
  11780. // void Sound::SetLoop(unsigned repeatOffset, unsigned endOffset)
  11781. engine->RegisterObjectMethod(className, "void SetLoop(uint, uint)", AS_METHODPR(T, SetLoop, (unsigned, unsigned), void), AS_CALL_THISCALL);
  11782. // void Sound::SetLooped(bool enable)
  11783. engine->RegisterObjectMethod(className, "void SetLooped(bool)", AS_METHODPR(T, SetLooped, (bool), void), AS_CALL_THISCALL);
  11784. engine->RegisterObjectMethod(className, "void set_looped(bool)", AS_METHODPR(T, SetLooped, (bool), void), AS_CALL_THISCALL);
  11785. // void Sound::SetSize(unsigned dataSize)
  11786. engine->RegisterObjectMethod(className, "void SetSize(uint)", AS_METHODPR(T, SetSize, (unsigned), void), AS_CALL_THISCALL);
  11787. // static void Sound::RegisterObject(Context* context)
  11788. // Not registered because have @nobind mark
  11789. #ifdef REGISTER_MEMBERS_MANUAL_PART_Sound
  11790. REGISTER_MEMBERS_MANUAL_PART_Sound();
  11791. #endif
  11792. }
  11793. // class Texture | File: ../Graphics/Texture.h
  11794. template <class T> void RegisterMembers_Texture(asIScriptEngine* engine, const char* className)
  11795. {
  11796. RegisterMembers_ResourceWithMetadata<T>(engine, className);
  11797. RegisterMembers_GPUObject<T>(engine, className);
  11798. // void* Texture::GetResolveTexture() const
  11799. // Error: type "void*" can not automatically bind
  11800. // void* Texture::GetSampler() const
  11801. // Error: type "void*" can not automatically bind
  11802. // void* Texture::GetShaderResourceView() const
  11803. // Error: type "void*" can not automatically bind
  11804. // unsigned Texture::GetSRGBFormat(unsigned format)
  11805. // Not registered because have @nobind mark
  11806. // TextureAddressMode Texture::GetAddressMode(TextureCoordinate coord) const
  11807. engine->RegisterObjectMethod(className, "TextureAddressMode GetAddressMode(TextureCoordinate) const", AS_METHODPR(T, GetAddressMode, (TextureCoordinate) const, TextureAddressMode), AS_CALL_THISCALL);
  11808. engine->RegisterObjectMethod(className, "TextureAddressMode get_addressMode(TextureCoordinate) const", AS_METHODPR(T, GetAddressMode, (TextureCoordinate) const, TextureAddressMode), AS_CALL_THISCALL);
  11809. // unsigned Texture::GetAnisotropy() const
  11810. engine->RegisterObjectMethod(className, "uint GetAnisotropy() const", AS_METHODPR(T, GetAnisotropy, () const, unsigned), AS_CALL_THISCALL);
  11811. engine->RegisterObjectMethod(className, "uint get_anisotropy() const", AS_METHODPR(T, GetAnisotropy, () const, unsigned), AS_CALL_THISCALL);
  11812. // bool Texture::GetAutoResolve() const
  11813. engine->RegisterObjectMethod(className, "bool GetAutoResolve() const", AS_METHODPR(T, GetAutoResolve, () const, bool), AS_CALL_THISCALL);
  11814. engine->RegisterObjectMethod(className, "bool get_autoResolve() const", AS_METHODPR(T, GetAutoResolve, () const, bool), AS_CALL_THISCALL);
  11815. // Texture* Texture::GetBackupTexture() const
  11816. engine->RegisterObjectMethod(className, "Texture@+ GetBackupTexture() const", AS_METHODPR(T, GetBackupTexture, () const, Texture*), AS_CALL_THISCALL);
  11817. engine->RegisterObjectMethod(className, "Texture@+ get_backupTexture() const", AS_METHODPR(T, GetBackupTexture, () const, Texture*), AS_CALL_THISCALL);
  11818. // const Color& Texture::GetBorderColor() const
  11819. engine->RegisterObjectMethod(className, "const Color& GetBorderColor() const", AS_METHODPR(T, GetBorderColor, () const, const Color&), AS_CALL_THISCALL);
  11820. engine->RegisterObjectMethod(className, "const Color& get_borderColor() const", AS_METHODPR(T, GetBorderColor, () const, const Color&), AS_CALL_THISCALL);
  11821. // unsigned Texture::GetComponents() const
  11822. engine->RegisterObjectMethod(className, "uint GetComponents() const", AS_METHODPR(T, GetComponents, () const, unsigned), AS_CALL_THISCALL);
  11823. engine->RegisterObjectMethod(className, "uint get_components() const", AS_METHODPR(T, GetComponents, () const, unsigned), AS_CALL_THISCALL);
  11824. // unsigned Texture::GetDataSize(int width, int height) const
  11825. engine->RegisterObjectMethod(className, "uint GetDataSize(int, int) const", AS_METHODPR(T, GetDataSize, (int, int) const, unsigned), AS_CALL_THISCALL);
  11826. // unsigned Texture::GetDataSize(int width, int height, int depth) const
  11827. engine->RegisterObjectMethod(className, "uint GetDataSize(int, int, int) const", AS_METHODPR(T, GetDataSize, (int, int, int) const, unsigned), AS_CALL_THISCALL);
  11828. // int Texture::GetDepth() const
  11829. engine->RegisterObjectMethod(className, "int GetDepth() const", AS_METHODPR(T, GetDepth, () const, int), AS_CALL_THISCALL);
  11830. // TextureFilterMode Texture::GetFilterMode() const
  11831. engine->RegisterObjectMethod(className, "TextureFilterMode GetFilterMode() const", AS_METHODPR(T, GetFilterMode, () const, TextureFilterMode), AS_CALL_THISCALL);
  11832. engine->RegisterObjectMethod(className, "TextureFilterMode get_filterMode() const", AS_METHODPR(T, GetFilterMode, () const, TextureFilterMode), AS_CALL_THISCALL);
  11833. // unsigned Texture::GetFormat() const
  11834. engine->RegisterObjectMethod(className, "uint GetFormat() const", AS_METHODPR(T, GetFormat, () const, unsigned), AS_CALL_THISCALL);
  11835. engine->RegisterObjectMethod(className, "uint get_format() const", AS_METHODPR(T, GetFormat, () const, unsigned), AS_CALL_THISCALL);
  11836. // int Texture::GetHeight() const
  11837. engine->RegisterObjectMethod(className, "int GetHeight() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  11838. engine->RegisterObjectMethod(className, "int get_height() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  11839. // int Texture::GetLevelDepth(unsigned level) const
  11840. engine->RegisterObjectMethod(className, "int GetLevelDepth(uint) const", AS_METHODPR(T, GetLevelDepth, (unsigned) const, int), AS_CALL_THISCALL);
  11841. // int Texture::GetLevelHeight(unsigned level) const
  11842. engine->RegisterObjectMethod(className, "int GetLevelHeight(uint) const", AS_METHODPR(T, GetLevelHeight, (unsigned) const, int), AS_CALL_THISCALL);
  11843. engine->RegisterObjectMethod(className, "int get_levelHeight(uint) const", AS_METHODPR(T, GetLevelHeight, (unsigned) const, int), AS_CALL_THISCALL);
  11844. // unsigned Texture::GetLevels() const
  11845. engine->RegisterObjectMethod(className, "uint GetLevels() const", AS_METHODPR(T, GetLevels, () const, unsigned), AS_CALL_THISCALL);
  11846. engine->RegisterObjectMethod(className, "uint get_levels() const", AS_METHODPR(T, GetLevels, () const, unsigned), AS_CALL_THISCALL);
  11847. // bool Texture::GetLevelsDirty() const
  11848. engine->RegisterObjectMethod(className, "bool GetLevelsDirty() const", AS_METHODPR(T, GetLevelsDirty, () const, bool), AS_CALL_THISCALL);
  11849. engine->RegisterObjectMethod(className, "bool get_levelsDirty() const", AS_METHODPR(T, GetLevelsDirty, () const, bool), AS_CALL_THISCALL);
  11850. // int Texture::GetLevelWidth(unsigned level) const
  11851. engine->RegisterObjectMethod(className, "int GetLevelWidth(uint) const", AS_METHODPR(T, GetLevelWidth, (unsigned) const, int), AS_CALL_THISCALL);
  11852. engine->RegisterObjectMethod(className, "int get_levelWidth(uint) const", AS_METHODPR(T, GetLevelWidth, (unsigned) const, int), AS_CALL_THISCALL);
  11853. // int Texture::GetMipsToSkip(MaterialQuality quality) const
  11854. engine->RegisterObjectMethod(className, "int GetMipsToSkip(MaterialQuality) const", AS_METHODPR(T, GetMipsToSkip, (MaterialQuality) const, int), AS_CALL_THISCALL);
  11855. engine->RegisterObjectMethod(className, "int get_mipsToSkip(MaterialQuality) const", AS_METHODPR(T, GetMipsToSkip, (MaterialQuality) const, int), AS_CALL_THISCALL);
  11856. // int Texture::GetMultiSample() const
  11857. engine->RegisterObjectMethod(className, "int GetMultiSample() const", AS_METHODPR(T, GetMultiSample, () const, int), AS_CALL_THISCALL);
  11858. engine->RegisterObjectMethod(className, "int get_multiSample() const", AS_METHODPR(T, GetMultiSample, () const, int), AS_CALL_THISCALL);
  11859. // bool Texture::GetParametersDirty() const
  11860. engine->RegisterObjectMethod(className, "bool GetParametersDirty() const", AS_METHODPR(T, GetParametersDirty, () const, bool), AS_CALL_THISCALL);
  11861. // unsigned Texture::GetRowDataSize(int width) const
  11862. engine->RegisterObjectMethod(className, "uint GetRowDataSize(int) const", AS_METHODPR(T, GetRowDataSize, (int) const, unsigned), AS_CALL_THISCALL);
  11863. // bool Texture::GetShadowCompare() const
  11864. engine->RegisterObjectMethod(className, "bool GetShadowCompare() const", AS_METHODPR(T, GetShadowCompare, () const, bool), AS_CALL_THISCALL);
  11865. // bool Texture::GetSRGB() const
  11866. engine->RegisterObjectMethod(className, "bool GetSRGB() const", AS_METHODPR(T, GetSRGB, () const, bool), AS_CALL_THISCALL);
  11867. engine->RegisterObjectMethod(className, "bool get_sRGB() const", AS_METHODPR(T, GetSRGB, () const, bool), AS_CALL_THISCALL);
  11868. // unsigned Texture::GetTarget() const
  11869. engine->RegisterObjectMethod(className, "uint GetTarget() const", AS_METHODPR(T, GetTarget, () const, unsigned), AS_CALL_THISCALL);
  11870. // TextureUsage Texture::GetUsage() const
  11871. engine->RegisterObjectMethod(className, "TextureUsage GetUsage() const", AS_METHODPR(T, GetUsage, () const, TextureUsage), AS_CALL_THISCALL);
  11872. engine->RegisterObjectMethod(className, "TextureUsage get_usage() const", AS_METHODPR(T, GetUsage, () const, TextureUsage), AS_CALL_THISCALL);
  11873. // int Texture::GetWidth() const
  11874. engine->RegisterObjectMethod(className, "int GetWidth() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  11875. engine->RegisterObjectMethod(className, "int get_width() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  11876. // bool Texture::IsCompressed() const
  11877. engine->RegisterObjectMethod(className, "bool IsCompressed() const", AS_METHODPR(T, IsCompressed, () const, bool), AS_CALL_THISCALL);
  11878. engine->RegisterObjectMethod(className, "bool get_compressed() const", AS_METHODPR(T, IsCompressed, () const, bool), AS_CALL_THISCALL);
  11879. // bool Texture::IsResolveDirty() const
  11880. engine->RegisterObjectMethod(className, "bool IsResolveDirty() const", AS_METHODPR(T, IsResolveDirty, () const, bool), AS_CALL_THISCALL);
  11881. engine->RegisterObjectMethod(className, "bool get_resolveDirty() const", AS_METHODPR(T, IsResolveDirty, () const, bool), AS_CALL_THISCALL);
  11882. // void Texture::RegenerateLevels()
  11883. engine->RegisterObjectMethod(className, "void RegenerateLevels()", AS_METHODPR(T, RegenerateLevels, (), void), AS_CALL_THISCALL);
  11884. // void Texture::SetAddressMode(TextureCoordinate coord, TextureAddressMode mode)
  11885. engine->RegisterObjectMethod(className, "void SetAddressMode(TextureCoordinate, TextureAddressMode)", AS_METHODPR(T, SetAddressMode, (TextureCoordinate, TextureAddressMode), void), AS_CALL_THISCALL);
  11886. engine->RegisterObjectMethod(className, "void set_addressMode(TextureCoordinate, TextureAddressMode)", AS_METHODPR(T, SetAddressMode, (TextureCoordinate, TextureAddressMode), void), AS_CALL_THISCALL);
  11887. // void Texture::SetAnisotropy(unsigned level)
  11888. engine->RegisterObjectMethod(className, "void SetAnisotropy(uint)", AS_METHODPR(T, SetAnisotropy, (unsigned), void), AS_CALL_THISCALL);
  11889. engine->RegisterObjectMethod(className, "void set_anisotropy(uint)", AS_METHODPR(T, SetAnisotropy, (unsigned), void), AS_CALL_THISCALL);
  11890. // void Texture::SetBackupTexture(Texture* texture)
  11891. engine->RegisterObjectMethod(className, "void SetBackupTexture(Texture@+)", AS_METHODPR(T, SetBackupTexture, (Texture*), void), AS_CALL_THISCALL);
  11892. engine->RegisterObjectMethod(className, "void set_backupTexture(Texture@+)", AS_METHODPR(T, SetBackupTexture, (Texture*), void), AS_CALL_THISCALL);
  11893. // void Texture::SetBorderColor(const Color& color)
  11894. engine->RegisterObjectMethod(className, "void SetBorderColor(const Color&in)", AS_METHODPR(T, SetBorderColor, (const Color&), void), AS_CALL_THISCALL);
  11895. engine->RegisterObjectMethod(className, "void set_borderColor(const Color&in)", AS_METHODPR(T, SetBorderColor, (const Color&), void), AS_CALL_THISCALL);
  11896. // void Texture::SetFilterMode(TextureFilterMode mode)
  11897. engine->RegisterObjectMethod(className, "void SetFilterMode(TextureFilterMode)", AS_METHODPR(T, SetFilterMode, (TextureFilterMode), void), AS_CALL_THISCALL);
  11898. engine->RegisterObjectMethod(className, "void set_filterMode(TextureFilterMode)", AS_METHODPR(T, SetFilterMode, (TextureFilterMode), void), AS_CALL_THISCALL);
  11899. // void Texture::SetLevelsDirty()
  11900. engine->RegisterObjectMethod(className, "void SetLevelsDirty()", AS_METHODPR(T, SetLevelsDirty, (), void), AS_CALL_THISCALL);
  11901. // void Texture::SetMipsToSkip(MaterialQuality quality, int toSkip)
  11902. engine->RegisterObjectMethod(className, "void SetMipsToSkip(MaterialQuality, int)", AS_METHODPR(T, SetMipsToSkip, (MaterialQuality, int), void), AS_CALL_THISCALL);
  11903. engine->RegisterObjectMethod(className, "void set_mipsToSkip(MaterialQuality, int)", AS_METHODPR(T, SetMipsToSkip, (MaterialQuality, int), void), AS_CALL_THISCALL);
  11904. // void Texture::SetNumLevels(unsigned levels)
  11905. engine->RegisterObjectMethod(className, "void SetNumLevels(uint)", AS_METHODPR(T, SetNumLevels, (unsigned), void), AS_CALL_THISCALL);
  11906. // void Texture::SetParameters(XMLFile* file)
  11907. engine->RegisterObjectMethod(className, "void SetParameters(XMLFile@+)", AS_METHODPR(T, SetParameters, (XMLFile*), void), AS_CALL_THISCALL);
  11908. // void Texture::SetParameters(const XMLElement& element)
  11909. engine->RegisterObjectMethod(className, "void SetParameters(const XMLElement&in)", AS_METHODPR(T, SetParameters, (const XMLElement&), void), AS_CALL_THISCALL);
  11910. // void Texture::SetParametersDirty()
  11911. engine->RegisterObjectMethod(className, "void SetParametersDirty()", AS_METHODPR(T, SetParametersDirty, (), void), AS_CALL_THISCALL);
  11912. // void Texture::SetResolveDirty(bool enable)
  11913. engine->RegisterObjectMethod(className, "void SetResolveDirty(bool)", AS_METHODPR(T, SetResolveDirty, (bool), void), AS_CALL_THISCALL);
  11914. // void Texture::SetShadowCompare(bool enable)
  11915. engine->RegisterObjectMethod(className, "void SetShadowCompare(bool)", AS_METHODPR(T, SetShadowCompare, (bool), void), AS_CALL_THISCALL);
  11916. // void Texture::SetSRGB(bool enable)
  11917. engine->RegisterObjectMethod(className, "void SetSRGB(bool)", AS_METHODPR(T, SetSRGB, (bool), void), AS_CALL_THISCALL);
  11918. engine->RegisterObjectMethod(className, "void set_sRGB(bool)", AS_METHODPR(T, SetSRGB, (bool), void), AS_CALL_THISCALL);
  11919. // void Texture::UpdateParameters()
  11920. engine->RegisterObjectMethod(className, "void UpdateParameters()", AS_METHODPR(T, UpdateParameters, (), void), AS_CALL_THISCALL);
  11921. // static unsigned Texture::GetSRVFormat(unsigned format)
  11922. // Not registered because have @nobind mark
  11923. // static unsigned Texture::GetDSVFormat(unsigned format)
  11924. // Not registered because have @nobind mark
  11925. // static unsigned Texture::GetExternalFormat(unsigned format)
  11926. // Not registered because have @nobind mark
  11927. // static unsigned Texture::GetDataType(unsigned format)
  11928. // Not registered because have @nobind mark
  11929. // static unsigned Texture::CheckMaxLevels(int width, int height, unsigned requestedLevels)
  11930. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint CheckMaxLevels(int, int, uint)", AS_FUNCTIONPR(T::CheckMaxLevels, (int, int, unsigned), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  11931. // static unsigned Texture::CheckMaxLevels(int width, int height, int depth, unsigned requestedLevels)
  11932. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("uint CheckMaxLevels(int, int, int, uint)", AS_FUNCTIONPR(T::CheckMaxLevels, (int, int, int, unsigned), unsigned), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  11933. #ifdef REGISTER_MEMBERS_MANUAL_PART_Texture
  11934. REGISTER_MEMBERS_MANUAL_PART_Texture();
  11935. #endif
  11936. }
  11937. // void UIElement::AddTags(const StringVector& tags)
  11938. template <class T> void UIElement_void_AddTags_constspStringVectoramp_template(T* _ptr, CScriptArray* tags_conv)
  11939. {
  11940. StringVector tags = ArrayToVector<String>(tags_conv);
  11941. _ptr->AddTags(tags);
  11942. }
  11943. // const Vector<SharedPtr<UIElement>>& UIElement::GetChildren() const
  11944. template <class T> CScriptArray* UIElement_constspVectorlesSharedPtrlesUIElementgregreamp_GetChildren_void_template(T* _ptr)
  11945. {
  11946. const Vector<SharedPtr<UIElement>>& result = _ptr->GetChildren();
  11947. return VectorToHandleArray(result, "Array<UIElement@>");
  11948. }
  11949. // PODVector<UIElement*> UIElement::GetChildren(bool recursive) const
  11950. template <class T> CScriptArray* UIElement_PODVectorlesUIElementstargre_GetChildren_bool_template(T* _ptr, bool recursive)
  11951. {
  11952. PODVector<UIElement*> result = _ptr->GetChildren(recursive);
  11953. return VectorToHandleArray(result, "Array<UIElement@>");
  11954. }
  11955. // PODVector<UIElement*> UIElement::GetChildrenWithTag(const String& tag, bool recursive = false) const
  11956. template <class T> CScriptArray* UIElement_PODVectorlesUIElementstargre_GetChildrenWithTag_constspStringamp_bool_template(T* _ptr, const String& tag, bool recursive)
  11957. {
  11958. PODVector<UIElement*> result = _ptr->GetChildrenWithTag(tag, recursive);
  11959. return VectorToHandleArray(result, "Array<UIElement@>");
  11960. }
  11961. // const StringVector& UIElement::GetTags() const
  11962. template <class T> CScriptArray* UIElement_constspStringVectoramp_GetTags_void_template(T* _ptr)
  11963. {
  11964. const StringVector& result = _ptr->GetTags();
  11965. return VectorToArray<String>(result, "Array<String>");
  11966. }
  11967. // void UIElement::SetTags(const StringVector& tags)
  11968. template <class T> void UIElement_void_SetTags_constspStringVectoramp_template(T* _ptr, CScriptArray* tags_conv)
  11969. {
  11970. StringVector tags = ArrayToVector<String>(tags_conv);
  11971. _ptr->SetTags(tags);
  11972. }
  11973. // class UIElement | File: ../UI/UIElement.h
  11974. template <class T> void RegisterMembers_UIElement(asIScriptEngine* engine, const char* className)
  11975. {
  11976. RegisterMembers_Animatable<T>(engine, className);
  11977. // virtual void UIElement::GetBatches(PODVector<UIBatch>& batches, PODVector<float>& vertexData, const IntRect& currentScissor)
  11978. // Error: type "PODVector<UIBatch>&" can not automatically bind
  11979. // void UIElement::GetBatchesWithOffset(IntVector2& offset, PODVector<UIBatch>& batches, PODVector<float>& vertexData, IntRect currentScissor)
  11980. // Error: type "PODVector<UIBatch>&" can not automatically bind
  11981. // void UIElement::GetChildren(PODVector<UIElement*>& dest, bool recursive = false) const
  11982. // Error: type "PODVector<UIElement*>&" can not automatically bind
  11983. // void UIElement::GetChildrenWithTag(PODVector<UIElement*>& dest, const String& tag, bool recursive = false) const
  11984. // Error: type "PODVector<UIElement*>&" can not automatically bind
  11985. // virtual void UIElement::GetDebugDrawBatches(PODVector<UIBatch>& batches, PODVector<float>& vertexData, const IntRect& currentScissor)
  11986. // Error: type "PODVector<UIBatch>&" can not automatically bind
  11987. // const IntVector2& UIElement::GetPosition() const
  11988. // Can not be registered here bacause hidden in derived classes: Sprite
  11989. // bool UIElement::IsSelected() const
  11990. // Can not be registered here bacause hidden in derived classes: ListView
  11991. // void UIElement::SetPosition(const IntVector2& position)
  11992. // Can not be registered here bacause hidden in derived classes: Sprite
  11993. // void UIElement::SetPosition(int x, int y)
  11994. // Can not be registered here bacause hidden in derived classes: Sprite
  11995. // void UIElement::AddChild(UIElement* element)
  11996. engine->RegisterObjectMethod(className, "void AddChild(UIElement@+)", AS_METHODPR(T, AddChild, (UIElement*), void), AS_CALL_THISCALL);
  11997. // void UIElement::AddTag(const String& tag)
  11998. engine->RegisterObjectMethod(className, "void AddTag(const String&in)", AS_METHODPR(T, AddTag, (const String&), void), AS_CALL_THISCALL);
  11999. // void UIElement::AddTags(const String& tags, char separator = ';')
  12000. engine->RegisterObjectMethod(className, "void AddTags(const String&in, int8 = ';')", AS_METHODPR(T, AddTags, (const String&, char), void), AS_CALL_THISCALL);
  12001. // void UIElement::AddTags(const StringVector& tags)
  12002. engine->RegisterObjectMethod(className, "void AddTags(Array<String>@+)", AS_FUNCTION_OBJFIRST(UIElement_void_AddTags_constspStringVectoramp_template<UIElement>), AS_CALL_CDECL_OBJFIRST);
  12003. // void UIElement::AdjustScissor(IntRect& currentScissor)
  12004. engine->RegisterObjectMethod(className, "void AdjustScissor(IntRect&)", AS_METHODPR(T, AdjustScissor, (IntRect&), void), AS_CALL_THISCALL);
  12005. // void UIElement::BringToFront()
  12006. engine->RegisterObjectMethod(className, "void BringToFront()", AS_METHODPR(T, BringToFront, (), void), AS_CALL_THISCALL);
  12007. // UIElement* UIElement::CreateChild(StringHash type, const String& name = String::EMPTY, unsigned index = M_MAX_UNSIGNED)
  12008. engine->RegisterObjectMethod(className, "UIElement@+ CreateChild(StringHash, const String&in = String::EMPTY, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, CreateChild, (StringHash, const String&, unsigned), UIElement*), AS_CALL_THISCALL);
  12009. // void UIElement::DisableLayoutUpdate()
  12010. engine->RegisterObjectMethod(className, "void DisableLayoutUpdate()", AS_METHODPR(T, DisableLayoutUpdate, (), void), AS_CALL_THISCALL);
  12011. // virtual IntVector2 UIElement::ElementToScreen(const IntVector2& position)
  12012. engine->RegisterObjectMethod(className, "IntVector2 ElementToScreen(const IntVector2&in)", AS_METHODPR(T, ElementToScreen, (const IntVector2&), IntVector2), AS_CALL_THISCALL);
  12013. // void UIElement::EnableLayoutUpdate()
  12014. engine->RegisterObjectMethod(className, "void EnableLayoutUpdate()", AS_METHODPR(T, EnableLayoutUpdate, (), void), AS_CALL_THISCALL);
  12015. // bool UIElement::FilterAttributes(XMLElement& dest) const
  12016. engine->RegisterObjectMethod(className, "bool FilterAttributes(XMLElement&) const", AS_METHODPR(T, FilterAttributes, (XMLElement&) const, bool), AS_CALL_THISCALL);
  12017. // unsigned UIElement::FindChild(UIElement* element) const
  12018. engine->RegisterObjectMethod(className, "uint FindChild(UIElement@+) const", AS_METHODPR(T, FindChild, (UIElement*) const, unsigned), AS_CALL_THISCALL);
  12019. // const String& UIElement::GetAppliedStyle() const
  12020. engine->RegisterObjectMethod(className, "const String& GetAppliedStyle() const", AS_METHODPR(T, GetAppliedStyle, () const, const String&), AS_CALL_THISCALL);
  12021. engine->RegisterObjectMethod(className, "const String& get_style() const", AS_METHODPR(T, GetAppliedStyle, () const, const String&), AS_CALL_THISCALL);
  12022. // bool UIElement::GetBringToBack() const
  12023. engine->RegisterObjectMethod(className, "bool GetBringToBack() const", AS_METHODPR(T, GetBringToBack, () const, bool), AS_CALL_THISCALL);
  12024. engine->RegisterObjectMethod(className, "bool get_bringToBack() const", AS_METHODPR(T, GetBringToBack, () const, bool), AS_CALL_THISCALL);
  12025. // bool UIElement::GetBringToFront() const
  12026. engine->RegisterObjectMethod(className, "bool GetBringToFront() const", AS_METHODPR(T, GetBringToFront, () const, bool), AS_CALL_THISCALL);
  12027. engine->RegisterObjectMethod(className, "bool get_bringToFront() const", AS_METHODPR(T, GetBringToFront, () const, bool), AS_CALL_THISCALL);
  12028. // UIElement* UIElement::GetChild(unsigned index) const
  12029. engine->RegisterObjectMethod(className, "UIElement@+ GetChild(uint) const", AS_METHODPR(T, GetChild, (unsigned) const, UIElement*), AS_CALL_THISCALL);
  12030. engine->RegisterObjectMethod(className, "UIElement@+ get_children(uint) const", AS_METHODPR(T, GetChild, (unsigned) const, UIElement*), AS_CALL_THISCALL);
  12031. // UIElement* UIElement::GetChild(const String& name, bool recursive = false) const
  12032. engine->RegisterObjectMethod(className, "UIElement@+ GetChild(const String&in, bool = false) const", AS_METHODPR(T, GetChild, (const String&, bool) const, UIElement*), AS_CALL_THISCALL);
  12033. // UIElement* UIElement::GetChild(const StringHash& key, const Variant& value = Variant::EMPTY, bool recursive = false) const
  12034. engine->RegisterObjectMethod(className, "UIElement@+ GetChild(const StringHash&in, const Variant&in = Variant::EMPTY, bool = false) const", AS_METHODPR(T, GetChild, (const StringHash&, const Variant&, bool) const, UIElement*), AS_CALL_THISCALL);
  12035. // const IntVector2& UIElement::GetChildOffset() const
  12036. engine->RegisterObjectMethod(className, "const IntVector2& GetChildOffset() const", AS_METHODPR(T, GetChildOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  12037. engine->RegisterObjectMethod(className, "const IntVector2& get_childOffset() const", AS_METHODPR(T, GetChildOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  12038. // const Vector<SharedPtr<UIElement>>& UIElement::GetChildren() const
  12039. engine->RegisterObjectMethod(className, "Array<UIElement@>@ GetChildren() const", AS_FUNCTION_OBJFIRST(UIElement_constspVectorlesSharedPtrlesUIElementgregreamp_GetChildren_void_template<UIElement>), AS_CALL_CDECL_OBJFIRST);
  12040. // PODVector<UIElement*> UIElement::GetChildren(bool recursive) const
  12041. engine->RegisterObjectMethod(className, "Array<UIElement@>@ GetChildren(bool) const", AS_FUNCTION_OBJFIRST(UIElement_PODVectorlesUIElementstargre_GetChildren_bool_template<UIElement>), AS_CALL_CDECL_OBJFIRST);
  12042. // PODVector<UIElement*> UIElement::GetChildrenWithTag(const String& tag, bool recursive = false) const
  12043. engine->RegisterObjectMethod(className, "Array<UIElement@>@ GetChildrenWithTag(const String&in, bool = false) const", AS_FUNCTION_OBJFIRST(UIElement_PODVectorlesUIElementstargre_GetChildrenWithTag_constspStringamp_bool_template<UIElement>), AS_CALL_CDECL_OBJFIRST);
  12044. // const IntRect& UIElement::GetClipBorder() const
  12045. engine->RegisterObjectMethod(className, "const IntRect& GetClipBorder() const", AS_METHODPR(T, GetClipBorder, () const, const IntRect&), AS_CALL_THISCALL);
  12046. engine->RegisterObjectMethod(className, "const IntRect& get_clipBorder() const", AS_METHODPR(T, GetClipBorder, () const, const IntRect&), AS_CALL_THISCALL);
  12047. // bool UIElement::GetClipChildren() const
  12048. engine->RegisterObjectMethod(className, "bool GetClipChildren() const", AS_METHODPR(T, GetClipChildren, () const, bool), AS_CALL_THISCALL);
  12049. engine->RegisterObjectMethod(className, "bool get_clipChildren() const", AS_METHODPR(T, GetClipChildren, () const, bool), AS_CALL_THISCALL);
  12050. // const Color& UIElement::GetColor(Corner corner) const
  12051. engine->RegisterObjectMethod(className, "const Color& GetColor(Corner) const", AS_METHODPR(T, GetColor, (Corner) const, const Color&), AS_CALL_THISCALL);
  12052. engine->RegisterObjectMethod(className, "const Color& get_colors(Corner) const", AS_METHODPR(T, GetColor, (Corner) const, const Color&), AS_CALL_THISCALL);
  12053. // const Color& UIElement::GetColorAttr() const
  12054. engine->RegisterObjectMethod(className, "const Color& GetColorAttr() const", AS_METHODPR(T, GetColorAttr, () const, const Color&), AS_CALL_THISCALL);
  12055. // IntRect UIElement::GetCombinedScreenRect()
  12056. engine->RegisterObjectMethod(className, "IntRect GetCombinedScreenRect()", AS_METHODPR(T, GetCombinedScreenRect, (), IntRect), AS_CALL_THISCALL);
  12057. engine->RegisterObjectMethod(className, "IntRect get_combinedScreenRect()", AS_METHODPR(T, GetCombinedScreenRect, (), IntRect), AS_CALL_THISCALL);
  12058. // XMLFile* UIElement::GetDefaultStyle(bool recursiveUp = true) const
  12059. engine->RegisterObjectMethod(className, "XMLFile@+ GetDefaultStyle(bool = true) const", AS_METHODPR(T, GetDefaultStyle, (bool) const, XMLFile*), AS_CALL_THISCALL);
  12060. // const Color& UIElement::GetDerivedColor() const
  12061. engine->RegisterObjectMethod(className, "const Color& GetDerivedColor() const", AS_METHODPR(T, GetDerivedColor, () const, const Color&), AS_CALL_THISCALL);
  12062. // float UIElement::GetDerivedOpacity() const
  12063. engine->RegisterObjectMethod(className, "float GetDerivedOpacity() const", AS_METHODPR(T, GetDerivedOpacity, () const, float), AS_CALL_THISCALL);
  12064. engine->RegisterObjectMethod(className, "float get_derivedOpacity() const", AS_METHODPR(T, GetDerivedOpacity, () const, float), AS_CALL_THISCALL);
  12065. // MouseButtonFlags UIElement::GetDragButtonCombo() const
  12066. engine->RegisterObjectMethod(className, "MouseButtonFlags GetDragButtonCombo() const", AS_METHODPR(T, GetDragButtonCombo, () const, MouseButtonFlags), AS_CALL_THISCALL);
  12067. engine->RegisterObjectMethod(className, "MouseButtonFlags get_dragButtonCombo() const", AS_METHODPR(T, GetDragButtonCombo, () const, MouseButtonFlags), AS_CALL_THISCALL);
  12068. // unsigned UIElement::GetDragButtonCount() const
  12069. engine->RegisterObjectMethod(className, "uint GetDragButtonCount() const", AS_METHODPR(T, GetDragButtonCount, () const, unsigned), AS_CALL_THISCALL);
  12070. engine->RegisterObjectMethod(className, "uint get_dragButtonCount() const", AS_METHODPR(T, GetDragButtonCount, () const, unsigned), AS_CALL_THISCALL);
  12071. // DragAndDropModeFlags UIElement::GetDragDropMode() const
  12072. engine->RegisterObjectMethod(className, "DragAndDropModeFlags GetDragDropMode() const", AS_METHODPR(T, GetDragDropMode, () const, DragAndDropModeFlags), AS_CALL_THISCALL);
  12073. engine->RegisterObjectMethod(className, "DragAndDropModeFlags get_dragDropMode() const", AS_METHODPR(T, GetDragDropMode, () const, DragAndDropModeFlags), AS_CALL_THISCALL);
  12074. // IntVector2 UIElement::GetEffectiveMinSize() const
  12075. engine->RegisterObjectMethod(className, "IntVector2 GetEffectiveMinSize() const", AS_METHODPR(T, GetEffectiveMinSize, () const, IntVector2), AS_CALL_THISCALL);
  12076. // UIElement* UIElement::GetElementEventSender() const
  12077. engine->RegisterObjectMethod(className, "UIElement@+ GetElementEventSender() const", AS_METHODPR(T, GetElementEventSender, () const, UIElement*), AS_CALL_THISCALL);
  12078. // bool UIElement::GetEnableAnchor() const
  12079. engine->RegisterObjectMethod(className, "bool GetEnableAnchor() const", AS_METHODPR(T, GetEnableAnchor, () const, bool), AS_CALL_THISCALL);
  12080. engine->RegisterObjectMethod(className, "bool get_enableAnchor() const", AS_METHODPR(T, GetEnableAnchor, () const, bool), AS_CALL_THISCALL);
  12081. // FocusMode UIElement::GetFocusMode() const
  12082. engine->RegisterObjectMethod(className, "FocusMode GetFocusMode() const", AS_METHODPR(T, GetFocusMode, () const, FocusMode), AS_CALL_THISCALL);
  12083. engine->RegisterObjectMethod(className, "FocusMode get_focusMode() const", AS_METHODPR(T, GetFocusMode, () const, FocusMode), AS_CALL_THISCALL);
  12084. // int UIElement::GetHeight() const
  12085. engine->RegisterObjectMethod(className, "int GetHeight() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  12086. engine->RegisterObjectMethod(className, "int get_height() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  12087. // HorizontalAlignment UIElement::GetHorizontalAlignment() const
  12088. engine->RegisterObjectMethod(className, "HorizontalAlignment GetHorizontalAlignment() const", AS_METHODPR(T, GetHorizontalAlignment, () const, HorizontalAlignment), AS_CALL_THISCALL);
  12089. engine->RegisterObjectMethod(className, "HorizontalAlignment get_horizontalAlignment() const", AS_METHODPR(T, GetHorizontalAlignment, () const, HorizontalAlignment), AS_CALL_THISCALL);
  12090. // int UIElement::GetIndent() const
  12091. engine->RegisterObjectMethod(className, "int GetIndent() const", AS_METHODPR(T, GetIndent, () const, int), AS_CALL_THISCALL);
  12092. engine->RegisterObjectMethod(className, "int get_indent() const", AS_METHODPR(T, GetIndent, () const, int), AS_CALL_THISCALL);
  12093. // int UIElement::GetIndentSpacing() const
  12094. engine->RegisterObjectMethod(className, "int GetIndentSpacing() const", AS_METHODPR(T, GetIndentSpacing, () const, int), AS_CALL_THISCALL);
  12095. engine->RegisterObjectMethod(className, "int get_indentSpacing() const", AS_METHODPR(T, GetIndentSpacing, () const, int), AS_CALL_THISCALL);
  12096. // int UIElement::GetIndentWidth() const
  12097. engine->RegisterObjectMethod(className, "int GetIndentWidth() const", AS_METHODPR(T, GetIndentWidth, () const, int), AS_CALL_THISCALL);
  12098. engine->RegisterObjectMethod(className, "int get_indentWidth() const", AS_METHODPR(T, GetIndentWidth, () const, int), AS_CALL_THISCALL);
  12099. // const IntRect& UIElement::GetLayoutBorder() const
  12100. engine->RegisterObjectMethod(className, "const IntRect& GetLayoutBorder() const", AS_METHODPR(T, GetLayoutBorder, () const, const IntRect&), AS_CALL_THISCALL);
  12101. engine->RegisterObjectMethod(className, "const IntRect& get_layoutBorder() const", AS_METHODPR(T, GetLayoutBorder, () const, const IntRect&), AS_CALL_THISCALL);
  12102. // int UIElement::GetLayoutElementMaxSize() const
  12103. engine->RegisterObjectMethod(className, "int GetLayoutElementMaxSize() const", AS_METHODPR(T, GetLayoutElementMaxSize, () const, int), AS_CALL_THISCALL);
  12104. // const Vector2& UIElement::GetLayoutFlexScale() const
  12105. engine->RegisterObjectMethod(className, "const Vector2& GetLayoutFlexScale() const", AS_METHODPR(T, GetLayoutFlexScale, () const, const Vector2&), AS_CALL_THISCALL);
  12106. engine->RegisterObjectMethod(className, "const Vector2& get_layoutFlexScale() const", AS_METHODPR(T, GetLayoutFlexScale, () const, const Vector2&), AS_CALL_THISCALL);
  12107. // LayoutMode UIElement::GetLayoutMode() const
  12108. engine->RegisterObjectMethod(className, "LayoutMode GetLayoutMode() const", AS_METHODPR(T, GetLayoutMode, () const, LayoutMode), AS_CALL_THISCALL);
  12109. engine->RegisterObjectMethod(className, "LayoutMode get_layoutMode() const", AS_METHODPR(T, GetLayoutMode, () const, LayoutMode), AS_CALL_THISCALL);
  12110. // int UIElement::GetLayoutSpacing() const
  12111. engine->RegisterObjectMethod(className, "int GetLayoutSpacing() const", AS_METHODPR(T, GetLayoutSpacing, () const, int), AS_CALL_THISCALL);
  12112. engine->RegisterObjectMethod(className, "int get_layoutSpacing() const", AS_METHODPR(T, GetLayoutSpacing, () const, int), AS_CALL_THISCALL);
  12113. // const Vector2& UIElement::GetMaxAnchor() const
  12114. engine->RegisterObjectMethod(className, "const Vector2& GetMaxAnchor() const", AS_METHODPR(T, GetMaxAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  12115. engine->RegisterObjectMethod(className, "const Vector2& get_maxAnchor() const", AS_METHODPR(T, GetMaxAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  12116. // int UIElement::GetMaxHeight() const
  12117. engine->RegisterObjectMethod(className, "int GetMaxHeight() const", AS_METHODPR(T, GetMaxHeight, () const, int), AS_CALL_THISCALL);
  12118. engine->RegisterObjectMethod(className, "int get_maxHeight() const", AS_METHODPR(T, GetMaxHeight, () const, int), AS_CALL_THISCALL);
  12119. // const IntVector2& UIElement::GetMaxOffset() const
  12120. engine->RegisterObjectMethod(className, "const IntVector2& GetMaxOffset() const", AS_METHODPR(T, GetMaxOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  12121. engine->RegisterObjectMethod(className, "const IntVector2& get_maxOffset() const", AS_METHODPR(T, GetMaxOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  12122. // const IntVector2& UIElement::GetMaxSize() const
  12123. engine->RegisterObjectMethod(className, "const IntVector2& GetMaxSize() const", AS_METHODPR(T, GetMaxSize, () const, const IntVector2&), AS_CALL_THISCALL);
  12124. engine->RegisterObjectMethod(className, "const IntVector2& get_maxSize() const", AS_METHODPR(T, GetMaxSize, () const, const IntVector2&), AS_CALL_THISCALL);
  12125. // int UIElement::GetMaxWidth() const
  12126. engine->RegisterObjectMethod(className, "int GetMaxWidth() const", AS_METHODPR(T, GetMaxWidth, () const, int), AS_CALL_THISCALL);
  12127. engine->RegisterObjectMethod(className, "int get_maxWidth() const", AS_METHODPR(T, GetMaxWidth, () const, int), AS_CALL_THISCALL);
  12128. // const Vector2& UIElement::GetMinAnchor() const
  12129. engine->RegisterObjectMethod(className, "const Vector2& GetMinAnchor() const", AS_METHODPR(T, GetMinAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  12130. engine->RegisterObjectMethod(className, "const Vector2& get_minAnchor() const", AS_METHODPR(T, GetMinAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  12131. // int UIElement::GetMinHeight() const
  12132. engine->RegisterObjectMethod(className, "int GetMinHeight() const", AS_METHODPR(T, GetMinHeight, () const, int), AS_CALL_THISCALL);
  12133. engine->RegisterObjectMethod(className, "int get_minHeight() const", AS_METHODPR(T, GetMinHeight, () const, int), AS_CALL_THISCALL);
  12134. // const IntVector2& UIElement::GetMinOffset() const
  12135. engine->RegisterObjectMethod(className, "const IntVector2& GetMinOffset() const", AS_METHODPR(T, GetMinOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  12136. engine->RegisterObjectMethod(className, "const IntVector2& get_minOffset() const", AS_METHODPR(T, GetMinOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  12137. // const IntVector2& UIElement::GetMinSize() const
  12138. engine->RegisterObjectMethod(className, "const IntVector2& GetMinSize() const", AS_METHODPR(T, GetMinSize, () const, const IntVector2&), AS_CALL_THISCALL);
  12139. engine->RegisterObjectMethod(className, "const IntVector2& get_minSize() const", AS_METHODPR(T, GetMinSize, () const, const IntVector2&), AS_CALL_THISCALL);
  12140. // int UIElement::GetMinWidth() const
  12141. engine->RegisterObjectMethod(className, "int GetMinWidth() const", AS_METHODPR(T, GetMinWidth, () const, int), AS_CALL_THISCALL);
  12142. engine->RegisterObjectMethod(className, "int get_minWidth() const", AS_METHODPR(T, GetMinWidth, () const, int), AS_CALL_THISCALL);
  12143. // const String& UIElement::GetName() const
  12144. engine->RegisterObjectMethod(className, "const String& GetName() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  12145. engine->RegisterObjectMethod(className, "const String& get_name() const", AS_METHODPR(T, GetName, () const, const String&), AS_CALL_THISCALL);
  12146. // unsigned UIElement::GetNumChildren(bool recursive = false) const
  12147. engine->RegisterObjectMethod(className, "uint GetNumChildren(bool = false) const", AS_METHODPR(T, GetNumChildren, (bool) const, unsigned), AS_CALL_THISCALL);
  12148. // float UIElement::GetOpacity() const
  12149. engine->RegisterObjectMethod(className, "float GetOpacity() const", AS_METHODPR(T, GetOpacity, () const, float), AS_CALL_THISCALL);
  12150. engine->RegisterObjectMethod(className, "float get_opacity() const", AS_METHODPR(T, GetOpacity, () const, float), AS_CALL_THISCALL);
  12151. // UIElement* UIElement::GetParent() const
  12152. engine->RegisterObjectMethod(className, "UIElement@+ GetParent() const", AS_METHODPR(T, GetParent, () const, UIElement*), AS_CALL_THISCALL);
  12153. engine->RegisterObjectMethod(className, "UIElement@+ get_parent() const", AS_METHODPR(T, GetParent, () const, UIElement*), AS_CALL_THISCALL);
  12154. // const Vector2& UIElement::GetPivot() const
  12155. engine->RegisterObjectMethod(className, "const Vector2& GetPivot() const", AS_METHODPR(T, GetPivot, () const, const Vector2&), AS_CALL_THISCALL);
  12156. engine->RegisterObjectMethod(className, "const Vector2& get_pivot() const", AS_METHODPR(T, GetPivot, () const, const Vector2&), AS_CALL_THISCALL);
  12157. // int UIElement::GetPriority() const
  12158. engine->RegisterObjectMethod(className, "int GetPriority() const", AS_METHODPR(T, GetPriority, () const, int), AS_CALL_THISCALL);
  12159. engine->RegisterObjectMethod(className, "int get_priority() const", AS_METHODPR(T, GetPriority, () const, int), AS_CALL_THISCALL);
  12160. // UIElement* UIElement::GetRoot() const
  12161. engine->RegisterObjectMethod(className, "UIElement@+ GetRoot() const", AS_METHODPR(T, GetRoot, () const, UIElement*), AS_CALL_THISCALL);
  12162. engine->RegisterObjectMethod(className, "UIElement@+ get_root() const", AS_METHODPR(T, GetRoot, () const, UIElement*), AS_CALL_THISCALL);
  12163. // virtual const IntVector2& UIElement::GetScreenPosition() const
  12164. engine->RegisterObjectMethod(className, "const IntVector2& GetScreenPosition() const", AS_METHODPR(T, GetScreenPosition, () const, const IntVector2&), AS_CALL_THISCALL);
  12165. engine->RegisterObjectMethod(className, "const IntVector2& get_screenPosition() const", AS_METHODPR(T, GetScreenPosition, () const, const IntVector2&), AS_CALL_THISCALL);
  12166. // const IntVector2& UIElement::GetSize() const
  12167. engine->RegisterObjectMethod(className, "const IntVector2& GetSize() const", AS_METHODPR(T, GetSize, () const, const IntVector2&), AS_CALL_THISCALL);
  12168. engine->RegisterObjectMethod(className, "const IntVector2& get_size() const", AS_METHODPR(T, GetSize, () const, const IntVector2&), AS_CALL_THISCALL);
  12169. // bool UIElement::GetSortChildren() const
  12170. engine->RegisterObjectMethod(className, "bool GetSortChildren() const", AS_METHODPR(T, GetSortChildren, () const, bool), AS_CALL_THISCALL);
  12171. engine->RegisterObjectMethod(className, "bool get_sortChildren() const", AS_METHODPR(T, GetSortChildren, () const, bool), AS_CALL_THISCALL);
  12172. // const StringVector& UIElement::GetTags() const
  12173. engine->RegisterObjectMethod(className, "Array<String>@ GetTags() const", AS_FUNCTION_OBJFIRST(UIElement_constspStringVectoramp_GetTags_void_template<UIElement>), AS_CALL_CDECL_OBJFIRST);
  12174. engine->RegisterObjectMethod(className, "Array<String>@ get_tags() const", AS_FUNCTION_OBJFIRST(UIElement_constspStringVectoramp_GetTags_void_template<UIElement>), AS_CALL_CDECL_OBJFIRST);
  12175. // TraversalMode UIElement::GetTraversalMode() const
  12176. engine->RegisterObjectMethod(className, "TraversalMode GetTraversalMode() const", AS_METHODPR(T, GetTraversalMode, () const, TraversalMode), AS_CALL_THISCALL);
  12177. engine->RegisterObjectMethod(className, "TraversalMode get_traversalMode() const", AS_METHODPR(T, GetTraversalMode, () const, TraversalMode), AS_CALL_THISCALL);
  12178. // bool UIElement::GetUseDerivedOpacity() const
  12179. engine->RegisterObjectMethod(className, "bool GetUseDerivedOpacity() const", AS_METHODPR(T, GetUseDerivedOpacity, () const, bool), AS_CALL_THISCALL);
  12180. engine->RegisterObjectMethod(className, "bool get_useDerivedOpacity() const", AS_METHODPR(T, GetUseDerivedOpacity, () const, bool), AS_CALL_THISCALL);
  12181. // const Variant& UIElement::GetVar(const StringHash& key) const
  12182. engine->RegisterObjectMethod(className, "const Variant& GetVar(const StringHash&in) const", AS_METHODPR(T, GetVar, (const StringHash&) const, const Variant&), AS_CALL_THISCALL);
  12183. // const VariantMap& UIElement::GetVars() const
  12184. engine->RegisterObjectMethod(className, "const VariantMap& GetVars() const", AS_METHODPR(T, GetVars, () const, const VariantMap&), AS_CALL_THISCALL);
  12185. // VerticalAlignment UIElement::GetVerticalAlignment() const
  12186. engine->RegisterObjectMethod(className, "VerticalAlignment GetVerticalAlignment() const", AS_METHODPR(T, GetVerticalAlignment, () const, VerticalAlignment), AS_CALL_THISCALL);
  12187. engine->RegisterObjectMethod(className, "VerticalAlignment get_verticalAlignment() const", AS_METHODPR(T, GetVerticalAlignment, () const, VerticalAlignment), AS_CALL_THISCALL);
  12188. // int UIElement::GetWidth() const
  12189. engine->RegisterObjectMethod(className, "int GetWidth() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  12190. engine->RegisterObjectMethod(className, "int get_width() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  12191. // bool UIElement::HasColorGradient() const
  12192. engine->RegisterObjectMethod(className, "bool HasColorGradient() const", AS_METHODPR(T, HasColorGradient, () const, bool), AS_CALL_THISCALL);
  12193. engine->RegisterObjectMethod(className, "bool get_colorGradient() const", AS_METHODPR(T, HasColorGradient, () const, bool), AS_CALL_THISCALL);
  12194. // bool UIElement::HasFocus() const
  12195. engine->RegisterObjectMethod(className, "bool HasFocus() const", AS_METHODPR(T, HasFocus, () const, bool), AS_CALL_THISCALL);
  12196. engine->RegisterObjectMethod(className, "bool get_focus() const", AS_METHODPR(T, HasFocus, () const, bool), AS_CALL_THISCALL);
  12197. // bool UIElement::HasTag(const String& tag) const
  12198. engine->RegisterObjectMethod(className, "bool HasTag(const String&in) const", AS_METHODPR(T, HasTag, (const String&) const, bool), AS_CALL_THISCALL);
  12199. // void UIElement::InsertChild(unsigned index, UIElement* element)
  12200. engine->RegisterObjectMethod(className, "void InsertChild(uint, UIElement@+)", AS_METHODPR(T, InsertChild, (unsigned, UIElement*), void), AS_CALL_THISCALL);
  12201. // bool UIElement::IsChildOf(UIElement* element) const
  12202. engine->RegisterObjectMethod(className, "bool IsChildOf(UIElement@+) const", AS_METHODPR(T, IsChildOf, (UIElement*) const, bool), AS_CALL_THISCALL);
  12203. // bool UIElement::IsEditable() const
  12204. engine->RegisterObjectMethod(className, "bool IsEditable() const", AS_METHODPR(T, IsEditable, () const, bool), AS_CALL_THISCALL);
  12205. engine->RegisterObjectMethod(className, "bool get_editable() const", AS_METHODPR(T, IsEditable, () const, bool), AS_CALL_THISCALL);
  12206. // bool UIElement::IsElementEventSender() const
  12207. engine->RegisterObjectMethod(className, "bool IsElementEventSender() const", AS_METHODPR(T, IsElementEventSender, () const, bool), AS_CALL_THISCALL);
  12208. engine->RegisterObjectMethod(className, "bool get_elementEventSender() const", AS_METHODPR(T, IsElementEventSender, () const, bool), AS_CALL_THISCALL);
  12209. // bool UIElement::IsEnabled() const
  12210. engine->RegisterObjectMethod(className, "bool IsEnabled() const", AS_METHODPR(T, IsEnabled, () const, bool), AS_CALL_THISCALL);
  12211. engine->RegisterObjectMethod(className, "bool get_enabled() const", AS_METHODPR(T, IsEnabled, () const, bool), AS_CALL_THISCALL);
  12212. // bool UIElement::IsEnabledSelf() const
  12213. engine->RegisterObjectMethod(className, "bool IsEnabledSelf() const", AS_METHODPR(T, IsEnabledSelf, () const, bool), AS_CALL_THISCALL);
  12214. engine->RegisterObjectMethod(className, "bool get_enabledSelf() const", AS_METHODPR(T, IsEnabledSelf, () const, bool), AS_CALL_THISCALL);
  12215. // bool UIElement::IsFixedHeight() const
  12216. engine->RegisterObjectMethod(className, "bool IsFixedHeight() const", AS_METHODPR(T, IsFixedHeight, () const, bool), AS_CALL_THISCALL);
  12217. engine->RegisterObjectMethod(className, "bool get_fixedHeight() const", AS_METHODPR(T, IsFixedHeight, () const, bool), AS_CALL_THISCALL);
  12218. // bool UIElement::IsFixedSize() const
  12219. engine->RegisterObjectMethod(className, "bool IsFixedSize() const", AS_METHODPR(T, IsFixedSize, () const, bool), AS_CALL_THISCALL);
  12220. engine->RegisterObjectMethod(className, "bool get_fixedSize() const", AS_METHODPR(T, IsFixedSize, () const, bool), AS_CALL_THISCALL);
  12221. // bool UIElement::IsFixedWidth() const
  12222. engine->RegisterObjectMethod(className, "bool IsFixedWidth() const", AS_METHODPR(T, IsFixedWidth, () const, bool), AS_CALL_THISCALL);
  12223. engine->RegisterObjectMethod(className, "bool get_fixedWidth() const", AS_METHODPR(T, IsFixedWidth, () const, bool), AS_CALL_THISCALL);
  12224. // bool UIElement::IsHovering() const
  12225. engine->RegisterObjectMethod(className, "bool IsHovering() const", AS_METHODPR(T, IsHovering, () const, bool), AS_CALL_THISCALL);
  12226. engine->RegisterObjectMethod(className, "bool get_hovering() const", AS_METHODPR(T, IsHovering, () const, bool), AS_CALL_THISCALL);
  12227. // bool UIElement::IsInside(IntVector2 position, bool isScreen)
  12228. engine->RegisterObjectMethod(className, "bool IsInside(IntVector2, bool)", AS_METHODPR(T, IsInside, (IntVector2, bool), bool), AS_CALL_THISCALL);
  12229. // bool UIElement::IsInsideCombined(IntVector2 position, bool isScreen)
  12230. engine->RegisterObjectMethod(className, "bool IsInsideCombined(IntVector2, bool)", AS_METHODPR(T, IsInsideCombined, (IntVector2, bool), bool), AS_CALL_THISCALL);
  12231. // bool UIElement::IsInternal() const
  12232. engine->RegisterObjectMethod(className, "bool IsInternal() const", AS_METHODPR(T, IsInternal, () const, bool), AS_CALL_THISCALL);
  12233. engine->RegisterObjectMethod(className, "bool get_internal() const", AS_METHODPR(T, IsInternal, () const, bool), AS_CALL_THISCALL);
  12234. // bool UIElement::IsVisible() const
  12235. engine->RegisterObjectMethod(className, "bool IsVisible() const", AS_METHODPR(T, IsVisible, () const, bool), AS_CALL_THISCALL);
  12236. engine->RegisterObjectMethod(className, "bool get_visible() const", AS_METHODPR(T, IsVisible, () const, bool), AS_CALL_THISCALL);
  12237. // bool UIElement::IsVisibleEffective() const
  12238. engine->RegisterObjectMethod(className, "bool IsVisibleEffective() const", AS_METHODPR(T, IsVisibleEffective, () const, bool), AS_CALL_THISCALL);
  12239. engine->RegisterObjectMethod(className, "bool get_visibleEffective() const", AS_METHODPR(T, IsVisibleEffective, () const, bool), AS_CALL_THISCALL);
  12240. // virtual bool UIElement::IsWheelHandler() const
  12241. engine->RegisterObjectMethod(className, "bool IsWheelHandler() const", AS_METHODPR(T, IsWheelHandler, () const, bool), AS_CALL_THISCALL);
  12242. // virtual bool UIElement::IsWithinScissor(const IntRect& currentScissor)
  12243. engine->RegisterObjectMethod(className, "bool IsWithinScissor(const IntRect&in)", AS_METHODPR(T, IsWithinScissor, (const IntRect&), bool), AS_CALL_THISCALL);
  12244. // virtual UIElement* UIElement::LoadChildXML(const XMLElement& childElem, XMLFile* styleFile)
  12245. engine->RegisterObjectMethod(className, "UIElement@+ LoadChildXML(const XMLElement&in, XMLFile@+)", AS_METHODPR(T, LoadChildXML, (const XMLElement&, XMLFile*), UIElement*), AS_CALL_THISCALL);
  12246. // virtual bool UIElement::LoadXML(const XMLElement& source, XMLFile* styleFile)
  12247. engine->RegisterObjectMethod(className, "bool LoadXML(const XMLElement&in, XMLFile@+)", AS_METHODPR(T, LoadXML, (const XMLElement&, XMLFile*), bool), AS_CALL_THISCALL);
  12248. // bool UIElement::LoadXML(Deserializer& source)
  12249. engine->RegisterObjectMethod(className, "bool LoadXML(Deserializer&)", AS_METHODPR(T, LoadXML, (Deserializer&), bool), AS_CALL_THISCALL);
  12250. // virtual void UIElement::OnClickBegin(const IntVector2& position, const IntVector2& screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor* cursor)
  12251. engine->RegisterObjectMethod(className, "void OnClickBegin(const IntVector2&in, const IntVector2&in, MouseButton, MouseButtonFlags, QualifierFlags, Cursor@+)", AS_METHODPR(T, OnClickBegin, (const IntVector2&, const IntVector2&, MouseButton, MouseButtonFlags, QualifierFlags, Cursor*), void), AS_CALL_THISCALL);
  12252. // virtual void UIElement::OnClickEnd(const IntVector2& position, const IntVector2& screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor* cursor, UIElement* beginElement)
  12253. engine->RegisterObjectMethod(className, "void OnClickEnd(const IntVector2&in, const IntVector2&in, MouseButton, MouseButtonFlags, QualifierFlags, Cursor@+, UIElement@+)", AS_METHODPR(T, OnClickEnd, (const IntVector2&, const IntVector2&, MouseButton, MouseButtonFlags, QualifierFlags, Cursor*, UIElement*), void), AS_CALL_THISCALL);
  12254. // virtual void UIElement::OnDoubleClick(const IntVector2& position, const IntVector2& screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor* cursor)
  12255. engine->RegisterObjectMethod(className, "void OnDoubleClick(const IntVector2&in, const IntVector2&in, MouseButton, MouseButtonFlags, QualifierFlags, Cursor@+)", AS_METHODPR(T, OnDoubleClick, (const IntVector2&, const IntVector2&, MouseButton, MouseButtonFlags, QualifierFlags, Cursor*), void), AS_CALL_THISCALL);
  12256. // virtual void UIElement::OnDragBegin(const IntVector2& position, const IntVector2& screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor* cursor)
  12257. engine->RegisterObjectMethod(className, "void OnDragBegin(const IntVector2&in, const IntVector2&in, MouseButtonFlags, QualifierFlags, Cursor@+)", AS_METHODPR(T, OnDragBegin, (const IntVector2&, const IntVector2&, MouseButtonFlags, QualifierFlags, Cursor*), void), AS_CALL_THISCALL);
  12258. // virtual void UIElement::OnDragCancel(const IntVector2& position, const IntVector2& screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags cancelButtons, Cursor* cursor)
  12259. engine->RegisterObjectMethod(className, "void OnDragCancel(const IntVector2&in, const IntVector2&in, MouseButtonFlags, MouseButtonFlags, Cursor@+)", AS_METHODPR(T, OnDragCancel, (const IntVector2&, const IntVector2&, MouseButtonFlags, MouseButtonFlags, Cursor*), void), AS_CALL_THISCALL);
  12260. // virtual bool UIElement::OnDragDropFinish(UIElement* source)
  12261. engine->RegisterObjectMethod(className, "bool OnDragDropFinish(UIElement@+)", AS_METHODPR(T, OnDragDropFinish, (UIElement*), bool), AS_CALL_THISCALL);
  12262. // virtual bool UIElement::OnDragDropTest(UIElement* source)
  12263. engine->RegisterObjectMethod(className, "bool OnDragDropTest(UIElement@+)", AS_METHODPR(T, OnDragDropTest, (UIElement*), bool), AS_CALL_THISCALL);
  12264. // virtual void UIElement::OnDragEnd(const IntVector2& position, const IntVector2& screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags releaseButtons, Cursor* cursor)
  12265. engine->RegisterObjectMethod(className, "void OnDragEnd(const IntVector2&in, const IntVector2&in, MouseButtonFlags, MouseButtonFlags, Cursor@+)", AS_METHODPR(T, OnDragEnd, (const IntVector2&, const IntVector2&, MouseButtonFlags, MouseButtonFlags, Cursor*), void), AS_CALL_THISCALL);
  12266. // virtual void UIElement::OnDragMove(const IntVector2& position, const IntVector2& screenPosition, const IntVector2& deltaPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor* cursor)
  12267. engine->RegisterObjectMethod(className, "void OnDragMove(const IntVector2&in, const IntVector2&in, const IntVector2&in, MouseButtonFlags, QualifierFlags, Cursor@+)", AS_METHODPR(T, OnDragMove, (const IntVector2&, const IntVector2&, const IntVector2&, MouseButtonFlags, QualifierFlags, Cursor*), void), AS_CALL_THISCALL);
  12268. // virtual void UIElement::OnHover(const IntVector2& position, const IntVector2& screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor* cursor)
  12269. engine->RegisterObjectMethod(className, "void OnHover(const IntVector2&in, const IntVector2&in, MouseButtonFlags, QualifierFlags, Cursor@+)", AS_METHODPR(T, OnHover, (const IntVector2&, const IntVector2&, MouseButtonFlags, QualifierFlags, Cursor*), void), AS_CALL_THISCALL);
  12270. // virtual void UIElement::OnIndentSet()
  12271. engine->RegisterObjectMethod(className, "void OnIndentSet()", AS_METHODPR(T, OnIndentSet, (), void), AS_CALL_THISCALL);
  12272. // virtual void UIElement::OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers)
  12273. engine->RegisterObjectMethod(className, "void OnKey(Key, MouseButtonFlags, QualifierFlags)", AS_METHODPR(T, OnKey, (Key, MouseButtonFlags, QualifierFlags), void), AS_CALL_THISCALL);
  12274. // virtual void UIElement::OnPositionSet(const IntVector2& newPosition)
  12275. engine->RegisterObjectMethod(className, "void OnPositionSet(const IntVector2&in)", AS_METHODPR(T, OnPositionSet, (const IntVector2&), void), AS_CALL_THISCALL);
  12276. // virtual void UIElement::OnResize(const IntVector2& newSize, const IntVector2& delta)
  12277. engine->RegisterObjectMethod(className, "void OnResize(const IntVector2&in, const IntVector2&in)", AS_METHODPR(T, OnResize, (const IntVector2&, const IntVector2&), void), AS_CALL_THISCALL);
  12278. // virtual void UIElement::OnSetEditable()
  12279. engine->RegisterObjectMethod(className, "void OnSetEditable()", AS_METHODPR(T, OnSetEditable, (), void), AS_CALL_THISCALL);
  12280. // virtual void UIElement::OnTextInput(const String& text)
  12281. engine->RegisterObjectMethod(className, "void OnTextInput(const String&in)", AS_METHODPR(T, OnTextInput, (const String&), void), AS_CALL_THISCALL);
  12282. // virtual void UIElement::OnWheel(int delta, MouseButtonFlags buttons, QualifierFlags qualifiers)
  12283. engine->RegisterObjectMethod(className, "void OnWheel(int, MouseButtonFlags, QualifierFlags)", AS_METHODPR(T, OnWheel, (int, MouseButtonFlags, QualifierFlags), void), AS_CALL_THISCALL);
  12284. // void UIElement::Remove()
  12285. engine->RegisterObjectMethod(className, "void Remove()", AS_METHODPR(T, Remove, (), void), AS_CALL_THISCALL);
  12286. // void UIElement::RemoveAllChildren()
  12287. engine->RegisterObjectMethod(className, "void RemoveAllChildren()", AS_METHODPR(T, RemoveAllChildren, (), void), AS_CALL_THISCALL);
  12288. // void UIElement::RemoveAllTags()
  12289. engine->RegisterObjectMethod(className, "void RemoveAllTags()", AS_METHODPR(T, RemoveAllTags, (), void), AS_CALL_THISCALL);
  12290. // void UIElement::RemoveChild(UIElement* element, unsigned index = 0)
  12291. engine->RegisterObjectMethod(className, "void RemoveChild(UIElement@+, uint = 0)", AS_METHODPR(T, RemoveChild, (UIElement*, unsigned), void), AS_CALL_THISCALL);
  12292. // void UIElement::RemoveChildAtIndex(unsigned index)
  12293. engine->RegisterObjectMethod(className, "void RemoveChildAtIndex(uint)", AS_METHODPR(T, RemoveChildAtIndex, (unsigned), void), AS_CALL_THISCALL);
  12294. // bool UIElement::RemoveTag(const String& tag)
  12295. engine->RegisterObjectMethod(className, "bool RemoveTag(const String&in)", AS_METHODPR(T, RemoveTag, (const String&), bool), AS_CALL_THISCALL);
  12296. // void UIElement::ResetDeepEnabled()
  12297. engine->RegisterObjectMethod(className, "void ResetDeepEnabled()", AS_METHODPR(T, ResetDeepEnabled, (), void), AS_CALL_THISCALL);
  12298. // bool UIElement::SaveXML(Serializer& dest, const String& indentation = "\t") const
  12299. engine->RegisterObjectMethod(className, "bool SaveXML(Serializer&, const String&in = \"\t\") const", AS_METHODPR(T, SaveXML, (Serializer&, const String&) const, bool), AS_CALL_THISCALL);
  12300. // virtual IntVector2 UIElement::ScreenToElement(const IntVector2& screenPosition)
  12301. engine->RegisterObjectMethod(className, "IntVector2 ScreenToElement(const IntVector2&in)", AS_METHODPR(T, ScreenToElement, (const IntVector2&), IntVector2), AS_CALL_THISCALL);
  12302. // void UIElement::SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
  12303. engine->RegisterObjectMethod(className, "void SetAlignment(HorizontalAlignment, VerticalAlignment)", AS_METHODPR(T, SetAlignment, (HorizontalAlignment, VerticalAlignment), void), AS_CALL_THISCALL);
  12304. // void UIElement::SetBringToBack(bool enable)
  12305. engine->RegisterObjectMethod(className, "void SetBringToBack(bool)", AS_METHODPR(T, SetBringToBack, (bool), void), AS_CALL_THISCALL);
  12306. engine->RegisterObjectMethod(className, "void set_bringToBack(bool)", AS_METHODPR(T, SetBringToBack, (bool), void), AS_CALL_THISCALL);
  12307. // void UIElement::SetBringToFront(bool enable)
  12308. engine->RegisterObjectMethod(className, "void SetBringToFront(bool)", AS_METHODPR(T, SetBringToFront, (bool), void), AS_CALL_THISCALL);
  12309. engine->RegisterObjectMethod(className, "void set_bringToFront(bool)", AS_METHODPR(T, SetBringToFront, (bool), void), AS_CALL_THISCALL);
  12310. // void UIElement::SetChildOffset(const IntVector2& offset)
  12311. engine->RegisterObjectMethod(className, "void SetChildOffset(const IntVector2&in)", AS_METHODPR(T, SetChildOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  12312. // void UIElement::SetClipBorder(const IntRect& rect)
  12313. engine->RegisterObjectMethod(className, "void SetClipBorder(const IntRect&in)", AS_METHODPR(T, SetClipBorder, (const IntRect&), void), AS_CALL_THISCALL);
  12314. engine->RegisterObjectMethod(className, "void set_clipBorder(const IntRect&in)", AS_METHODPR(T, SetClipBorder, (const IntRect&), void), AS_CALL_THISCALL);
  12315. // void UIElement::SetClipChildren(bool enable)
  12316. engine->RegisterObjectMethod(className, "void SetClipChildren(bool)", AS_METHODPR(T, SetClipChildren, (bool), void), AS_CALL_THISCALL);
  12317. engine->RegisterObjectMethod(className, "void set_clipChildren(bool)", AS_METHODPR(T, SetClipChildren, (bool), void), AS_CALL_THISCALL);
  12318. // void UIElement::SetColor(const Color& color)
  12319. engine->RegisterObjectMethod(className, "void SetColor(const Color&in)", AS_METHODPR(T, SetColor, (const Color&), void), AS_CALL_THISCALL);
  12320. engine->RegisterObjectMethod(className, "void set_color(const Color&in)", AS_METHODPR(T, SetColor, (const Color&), void), AS_CALL_THISCALL);
  12321. // void UIElement::SetColor(Corner corner, const Color& color)
  12322. engine->RegisterObjectMethod(className, "void SetColor(Corner, const Color&in)", AS_METHODPR(T, SetColor, (Corner, const Color&), void), AS_CALL_THISCALL);
  12323. engine->RegisterObjectMethod(className, "void set_colors(Corner, const Color&in)", AS_METHODPR(T, SetColor, (Corner, const Color&), void), AS_CALL_THISCALL);
  12324. // void UIElement::SetDeepEnabled(bool enable)
  12325. engine->RegisterObjectMethod(className, "void SetDeepEnabled(bool)", AS_METHODPR(T, SetDeepEnabled, (bool), void), AS_CALL_THISCALL);
  12326. // void UIElement::SetDefaultStyle(XMLFile* style)
  12327. engine->RegisterObjectMethod(className, "void SetDefaultStyle(XMLFile@+)", AS_METHODPR(T, SetDefaultStyle, (XMLFile*), void), AS_CALL_THISCALL);
  12328. engine->RegisterObjectMethod(className, "void set_defaultStyle(XMLFile@+)", AS_METHODPR(T, SetDefaultStyle, (XMLFile*), void), AS_CALL_THISCALL);
  12329. // void UIElement::SetDragDropMode(DragAndDropModeFlags mode)
  12330. engine->RegisterObjectMethod(className, "void SetDragDropMode(DragAndDropModeFlags)", AS_METHODPR(T, SetDragDropMode, (DragAndDropModeFlags), void), AS_CALL_THISCALL);
  12331. engine->RegisterObjectMethod(className, "void set_dragDropMode(DragAndDropModeFlags)", AS_METHODPR(T, SetDragDropMode, (DragAndDropModeFlags), void), AS_CALL_THISCALL);
  12332. // void UIElement::SetEditable(bool enable)
  12333. engine->RegisterObjectMethod(className, "void SetEditable(bool)", AS_METHODPR(T, SetEditable, (bool), void), AS_CALL_THISCALL);
  12334. engine->RegisterObjectMethod(className, "void set_editable(bool)", AS_METHODPR(T, SetEditable, (bool), void), AS_CALL_THISCALL);
  12335. // void UIElement::SetElementEventSender(bool flag)
  12336. engine->RegisterObjectMethod(className, "void SetElementEventSender(bool)", AS_METHODPR(T, SetElementEventSender, (bool), void), AS_CALL_THISCALL);
  12337. engine->RegisterObjectMethod(className, "void set_elementEventSender(bool)", AS_METHODPR(T, SetElementEventSender, (bool), void), AS_CALL_THISCALL);
  12338. // void UIElement::SetEnableAnchor(bool enable)
  12339. engine->RegisterObjectMethod(className, "void SetEnableAnchor(bool)", AS_METHODPR(T, SetEnableAnchor, (bool), void), AS_CALL_THISCALL);
  12340. engine->RegisterObjectMethod(className, "void set_enableAnchor(bool)", AS_METHODPR(T, SetEnableAnchor, (bool), void), AS_CALL_THISCALL);
  12341. // void UIElement::SetEnabled(bool enable)
  12342. engine->RegisterObjectMethod(className, "void SetEnabled(bool)", AS_METHODPR(T, SetEnabled, (bool), void), AS_CALL_THISCALL);
  12343. engine->RegisterObjectMethod(className, "void set_enabled(bool)", AS_METHODPR(T, SetEnabled, (bool), void), AS_CALL_THISCALL);
  12344. // void UIElement::SetEnabledRecursive(bool enable)
  12345. engine->RegisterObjectMethod(className, "void SetEnabledRecursive(bool)", AS_METHODPR(T, SetEnabledRecursive, (bool), void), AS_CALL_THISCALL);
  12346. // void UIElement::SetFixedHeight(int height)
  12347. engine->RegisterObjectMethod(className, "void SetFixedHeight(int)", AS_METHODPR(T, SetFixedHeight, (int), void), AS_CALL_THISCALL);
  12348. // void UIElement::SetFixedSize(const IntVector2& size)
  12349. engine->RegisterObjectMethod(className, "void SetFixedSize(const IntVector2&in)", AS_METHODPR(T, SetFixedSize, (const IntVector2&), void), AS_CALL_THISCALL);
  12350. // void UIElement::SetFixedSize(int width, int height)
  12351. engine->RegisterObjectMethod(className, "void SetFixedSize(int, int)", AS_METHODPR(T, SetFixedSize, (int, int), void), AS_CALL_THISCALL);
  12352. // void UIElement::SetFixedWidth(int width)
  12353. engine->RegisterObjectMethod(className, "void SetFixedWidth(int)", AS_METHODPR(T, SetFixedWidth, (int), void), AS_CALL_THISCALL);
  12354. // void UIElement::SetFocus(bool enable)
  12355. engine->RegisterObjectMethod(className, "void SetFocus(bool)", AS_METHODPR(T, SetFocus, (bool), void), AS_CALL_THISCALL);
  12356. engine->RegisterObjectMethod(className, "void set_focus(bool)", AS_METHODPR(T, SetFocus, (bool), void), AS_CALL_THISCALL);
  12357. // void UIElement::SetFocusMode(FocusMode mode)
  12358. engine->RegisterObjectMethod(className, "void SetFocusMode(FocusMode)", AS_METHODPR(T, SetFocusMode, (FocusMode), void), AS_CALL_THISCALL);
  12359. engine->RegisterObjectMethod(className, "void set_focusMode(FocusMode)", AS_METHODPR(T, SetFocusMode, (FocusMode), void), AS_CALL_THISCALL);
  12360. // void UIElement::SetHeight(int height)
  12361. engine->RegisterObjectMethod(className, "void SetHeight(int)", AS_METHODPR(T, SetHeight, (int), void), AS_CALL_THISCALL);
  12362. engine->RegisterObjectMethod(className, "void set_height(int)", AS_METHODPR(T, SetHeight, (int), void), AS_CALL_THISCALL);
  12363. // void UIElement::SetHorizontalAlignment(HorizontalAlignment align)
  12364. engine->RegisterObjectMethod(className, "void SetHorizontalAlignment(HorizontalAlignment)", AS_METHODPR(T, SetHorizontalAlignment, (HorizontalAlignment), void), AS_CALL_THISCALL);
  12365. engine->RegisterObjectMethod(className, "void set_horizontalAlignment(HorizontalAlignment)", AS_METHODPR(T, SetHorizontalAlignment, (HorizontalAlignment), void), AS_CALL_THISCALL);
  12366. // void UIElement::SetHovering(bool enable)
  12367. engine->RegisterObjectMethod(className, "void SetHovering(bool)", AS_METHODPR(T, SetHovering, (bool), void), AS_CALL_THISCALL);
  12368. // void UIElement::SetIndent(int indent)
  12369. engine->RegisterObjectMethod(className, "void SetIndent(int)", AS_METHODPR(T, SetIndent, (int), void), AS_CALL_THISCALL);
  12370. engine->RegisterObjectMethod(className, "void set_indent(int)", AS_METHODPR(T, SetIndent, (int), void), AS_CALL_THISCALL);
  12371. // void UIElement::SetIndentSpacing(int indentSpacing)
  12372. engine->RegisterObjectMethod(className, "void SetIndentSpacing(int)", AS_METHODPR(T, SetIndentSpacing, (int), void), AS_CALL_THISCALL);
  12373. engine->RegisterObjectMethod(className, "void set_indentSpacing(int)", AS_METHODPR(T, SetIndentSpacing, (int), void), AS_CALL_THISCALL);
  12374. // void UIElement::SetInternal(bool enable)
  12375. engine->RegisterObjectMethod(className, "void SetInternal(bool)", AS_METHODPR(T, SetInternal, (bool), void), AS_CALL_THISCALL);
  12376. engine->RegisterObjectMethod(className, "void set_internal(bool)", AS_METHODPR(T, SetInternal, (bool), void), AS_CALL_THISCALL);
  12377. // void UIElement::SetLayout(LayoutMode mode, int spacing = 0, const IntRect& border = IntRect::ZERO)
  12378. engine->RegisterObjectMethod(className, "void SetLayout(LayoutMode, int = 0, const IntRect&in = IntRect::ZERO)", AS_METHODPR(T, SetLayout, (LayoutMode, int, const IntRect&), void), AS_CALL_THISCALL);
  12379. // void UIElement::SetLayoutBorder(const IntRect& border)
  12380. engine->RegisterObjectMethod(className, "void SetLayoutBorder(const IntRect&in)", AS_METHODPR(T, SetLayoutBorder, (const IntRect&), void), AS_CALL_THISCALL);
  12381. engine->RegisterObjectMethod(className, "void set_layoutBorder(const IntRect&in)", AS_METHODPR(T, SetLayoutBorder, (const IntRect&), void), AS_CALL_THISCALL);
  12382. // void UIElement::SetLayoutFlexScale(const Vector2& scale)
  12383. engine->RegisterObjectMethod(className, "void SetLayoutFlexScale(const Vector2&in)", AS_METHODPR(T, SetLayoutFlexScale, (const Vector2&), void), AS_CALL_THISCALL);
  12384. engine->RegisterObjectMethod(className, "void set_layoutFlexScale(const Vector2&in)", AS_METHODPR(T, SetLayoutFlexScale, (const Vector2&), void), AS_CALL_THISCALL);
  12385. // void UIElement::SetLayoutMode(LayoutMode mode)
  12386. engine->RegisterObjectMethod(className, "void SetLayoutMode(LayoutMode)", AS_METHODPR(T, SetLayoutMode, (LayoutMode), void), AS_CALL_THISCALL);
  12387. engine->RegisterObjectMethod(className, "void set_layoutMode(LayoutMode)", AS_METHODPR(T, SetLayoutMode, (LayoutMode), void), AS_CALL_THISCALL);
  12388. // void UIElement::SetLayoutSpacing(int spacing)
  12389. engine->RegisterObjectMethod(className, "void SetLayoutSpacing(int)", AS_METHODPR(T, SetLayoutSpacing, (int), void), AS_CALL_THISCALL);
  12390. engine->RegisterObjectMethod(className, "void set_layoutSpacing(int)", AS_METHODPR(T, SetLayoutSpacing, (int), void), AS_CALL_THISCALL);
  12391. // void UIElement::SetMaxAnchor(const Vector2& anchor)
  12392. engine->RegisterObjectMethod(className, "void SetMaxAnchor(const Vector2&in)", AS_METHODPR(T, SetMaxAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  12393. engine->RegisterObjectMethod(className, "void set_maxAnchor(const Vector2&in)", AS_METHODPR(T, SetMaxAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  12394. // void UIElement::SetMaxAnchor(float x, float y)
  12395. engine->RegisterObjectMethod(className, "void SetMaxAnchor(float, float)", AS_METHODPR(T, SetMaxAnchor, (float, float), void), AS_CALL_THISCALL);
  12396. // void UIElement::SetMaxHeight(int height)
  12397. engine->RegisterObjectMethod(className, "void SetMaxHeight(int)", AS_METHODPR(T, SetMaxHeight, (int), void), AS_CALL_THISCALL);
  12398. engine->RegisterObjectMethod(className, "void set_maxHeight(int)", AS_METHODPR(T, SetMaxHeight, (int), void), AS_CALL_THISCALL);
  12399. // void UIElement::SetMaxOffset(const IntVector2& offset)
  12400. engine->RegisterObjectMethod(className, "void SetMaxOffset(const IntVector2&in)", AS_METHODPR(T, SetMaxOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  12401. engine->RegisterObjectMethod(className, "void set_maxOffset(const IntVector2&in)", AS_METHODPR(T, SetMaxOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  12402. // void UIElement::SetMaxSize(const IntVector2& maxSize)
  12403. engine->RegisterObjectMethod(className, "void SetMaxSize(const IntVector2&in)", AS_METHODPR(T, SetMaxSize, (const IntVector2&), void), AS_CALL_THISCALL);
  12404. engine->RegisterObjectMethod(className, "void set_maxSize(const IntVector2&in)", AS_METHODPR(T, SetMaxSize, (const IntVector2&), void), AS_CALL_THISCALL);
  12405. // void UIElement::SetMaxSize(int width, int height)
  12406. engine->RegisterObjectMethod(className, "void SetMaxSize(int, int)", AS_METHODPR(T, SetMaxSize, (int, int), void), AS_CALL_THISCALL);
  12407. // void UIElement::SetMaxWidth(int width)
  12408. engine->RegisterObjectMethod(className, "void SetMaxWidth(int)", AS_METHODPR(T, SetMaxWidth, (int), void), AS_CALL_THISCALL);
  12409. engine->RegisterObjectMethod(className, "void set_maxWidth(int)", AS_METHODPR(T, SetMaxWidth, (int), void), AS_CALL_THISCALL);
  12410. // void UIElement::SetMinAnchor(const Vector2& anchor)
  12411. engine->RegisterObjectMethod(className, "void SetMinAnchor(const Vector2&in)", AS_METHODPR(T, SetMinAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  12412. engine->RegisterObjectMethod(className, "void set_minAnchor(const Vector2&in)", AS_METHODPR(T, SetMinAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  12413. // void UIElement::SetMinAnchor(float x, float y)
  12414. engine->RegisterObjectMethod(className, "void SetMinAnchor(float, float)", AS_METHODPR(T, SetMinAnchor, (float, float), void), AS_CALL_THISCALL);
  12415. // void UIElement::SetMinHeight(int height)
  12416. engine->RegisterObjectMethod(className, "void SetMinHeight(int)", AS_METHODPR(T, SetMinHeight, (int), void), AS_CALL_THISCALL);
  12417. engine->RegisterObjectMethod(className, "void set_minHeight(int)", AS_METHODPR(T, SetMinHeight, (int), void), AS_CALL_THISCALL);
  12418. // void UIElement::SetMinOffset(const IntVector2& offset)
  12419. engine->RegisterObjectMethod(className, "void SetMinOffset(const IntVector2&in)", AS_METHODPR(T, SetMinOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  12420. engine->RegisterObjectMethod(className, "void set_minOffset(const IntVector2&in)", AS_METHODPR(T, SetMinOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  12421. // void UIElement::SetMinSize(const IntVector2& minSize)
  12422. engine->RegisterObjectMethod(className, "void SetMinSize(const IntVector2&in)", AS_METHODPR(T, SetMinSize, (const IntVector2&), void), AS_CALL_THISCALL);
  12423. engine->RegisterObjectMethod(className, "void set_minSize(const IntVector2&in)", AS_METHODPR(T, SetMinSize, (const IntVector2&), void), AS_CALL_THISCALL);
  12424. // void UIElement::SetMinSize(int width, int height)
  12425. engine->RegisterObjectMethod(className, "void SetMinSize(int, int)", AS_METHODPR(T, SetMinSize, (int, int), void), AS_CALL_THISCALL);
  12426. // void UIElement::SetMinWidth(int width)
  12427. engine->RegisterObjectMethod(className, "void SetMinWidth(int)", AS_METHODPR(T, SetMinWidth, (int), void), AS_CALL_THISCALL);
  12428. engine->RegisterObjectMethod(className, "void set_minWidth(int)", AS_METHODPR(T, SetMinWidth, (int), void), AS_CALL_THISCALL);
  12429. // void UIElement::SetName(const String& name)
  12430. engine->RegisterObjectMethod(className, "void SetName(const String&in)", AS_METHODPR(T, SetName, (const String&), void), AS_CALL_THISCALL);
  12431. engine->RegisterObjectMethod(className, "void set_name(const String&in)", AS_METHODPR(T, SetName, (const String&), void), AS_CALL_THISCALL);
  12432. // void UIElement::SetOpacity(float opacity)
  12433. engine->RegisterObjectMethod(className, "void SetOpacity(float)", AS_METHODPR(T, SetOpacity, (float), void), AS_CALL_THISCALL);
  12434. engine->RegisterObjectMethod(className, "void set_opacity(float)", AS_METHODPR(T, SetOpacity, (float), void), AS_CALL_THISCALL);
  12435. // void UIElement::SetParent(UIElement* parent, unsigned index = M_MAX_UNSIGNED)
  12436. engine->RegisterObjectMethod(className, "void SetParent(UIElement@+, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, SetParent, (UIElement*, unsigned), void), AS_CALL_THISCALL);
  12437. // void UIElement::SetPivot(const Vector2& pivot)
  12438. engine->RegisterObjectMethod(className, "void SetPivot(const Vector2&in)", AS_METHODPR(T, SetPivot, (const Vector2&), void), AS_CALL_THISCALL);
  12439. engine->RegisterObjectMethod(className, "void set_pivot(const Vector2&in)", AS_METHODPR(T, SetPivot, (const Vector2&), void), AS_CALL_THISCALL);
  12440. // void UIElement::SetPivot(float x, float y)
  12441. engine->RegisterObjectMethod(className, "void SetPivot(float, float)", AS_METHODPR(T, SetPivot, (float, float), void), AS_CALL_THISCALL);
  12442. // void UIElement::SetPriority(int priority)
  12443. engine->RegisterObjectMethod(className, "void SetPriority(int)", AS_METHODPR(T, SetPriority, (int), void), AS_CALL_THISCALL);
  12444. engine->RegisterObjectMethod(className, "void set_priority(int)", AS_METHODPR(T, SetPriority, (int), void), AS_CALL_THISCALL);
  12445. // void UIElement::SetRenderTexture(Texture2D* texture)
  12446. engine->RegisterObjectMethod(className, "void SetRenderTexture(Texture2D@+)", AS_METHODPR(T, SetRenderTexture, (Texture2D*), void), AS_CALL_THISCALL);
  12447. // void UIElement::SetSelected(bool enable)
  12448. engine->RegisterObjectMethod(className, "void SetSelected(bool)", AS_METHODPR(T, SetSelected, (bool), void), AS_CALL_THISCALL);
  12449. engine->RegisterObjectMethod(className, "void set_selected(bool)", AS_METHODPR(T, SetSelected, (bool), void), AS_CALL_THISCALL);
  12450. // void UIElement::SetSize(const IntVector2& size)
  12451. engine->RegisterObjectMethod(className, "void SetSize(const IntVector2&in)", AS_METHODPR(T, SetSize, (const IntVector2&), void), AS_CALL_THISCALL);
  12452. engine->RegisterObjectMethod(className, "void set_size(const IntVector2&in)", AS_METHODPR(T, SetSize, (const IntVector2&), void), AS_CALL_THISCALL);
  12453. // void UIElement::SetSize(int width, int height)
  12454. engine->RegisterObjectMethod(className, "void SetSize(int, int)", AS_METHODPR(T, SetSize, (int, int), void), AS_CALL_THISCALL);
  12455. // void UIElement::SetSortChildren(bool enable)
  12456. engine->RegisterObjectMethod(className, "void SetSortChildren(bool)", AS_METHODPR(T, SetSortChildren, (bool), void), AS_CALL_THISCALL);
  12457. engine->RegisterObjectMethod(className, "void set_sortChildren(bool)", AS_METHODPR(T, SetSortChildren, (bool), void), AS_CALL_THISCALL);
  12458. // bool UIElement::SetStyle(const String& styleName, XMLFile* file = nullptr)
  12459. engine->RegisterObjectMethod(className, "bool SetStyle(const String&in, XMLFile@+ = null)", AS_METHODPR(T, SetStyle, (const String&, XMLFile*), bool), AS_CALL_THISCALL);
  12460. // bool UIElement::SetStyle(const XMLElement& element)
  12461. engine->RegisterObjectMethod(className, "bool SetStyle(const XMLElement&in)", AS_METHODPR(T, SetStyle, (const XMLElement&), bool), AS_CALL_THISCALL);
  12462. // bool UIElement::SetStyleAuto(XMLFile* file = nullptr)
  12463. engine->RegisterObjectMethod(className, "bool SetStyleAuto(XMLFile@+ = null)", AS_METHODPR(T, SetStyleAuto, (XMLFile*), bool), AS_CALL_THISCALL);
  12464. // void UIElement::SetTags(const StringVector& tags)
  12465. engine->RegisterObjectMethod(className, "void SetTags(Array<String>@+)", AS_FUNCTION_OBJFIRST(UIElement_void_SetTags_constspStringVectoramp_template<UIElement>), AS_CALL_CDECL_OBJFIRST);
  12466. // void UIElement::SetTraversalMode(TraversalMode traversalMode)
  12467. engine->RegisterObjectMethod(className, "void SetTraversalMode(TraversalMode)", AS_METHODPR(T, SetTraversalMode, (TraversalMode), void), AS_CALL_THISCALL);
  12468. engine->RegisterObjectMethod(className, "void set_traversalMode(TraversalMode)", AS_METHODPR(T, SetTraversalMode, (TraversalMode), void), AS_CALL_THISCALL);
  12469. // void UIElement::SetUseDerivedOpacity(bool enable)
  12470. engine->RegisterObjectMethod(className, "void SetUseDerivedOpacity(bool)", AS_METHODPR(T, SetUseDerivedOpacity, (bool), void), AS_CALL_THISCALL);
  12471. engine->RegisterObjectMethod(className, "void set_useDerivedOpacity(bool)", AS_METHODPR(T, SetUseDerivedOpacity, (bool), void), AS_CALL_THISCALL);
  12472. // void UIElement::SetVar(StringHash key, const Variant& value)
  12473. engine->RegisterObjectMethod(className, "void SetVar(StringHash, const Variant&in)", AS_METHODPR(T, SetVar, (StringHash, const Variant&), void), AS_CALL_THISCALL);
  12474. // void UIElement::SetVerticalAlignment(VerticalAlignment align)
  12475. engine->RegisterObjectMethod(className, "void SetVerticalAlignment(VerticalAlignment)", AS_METHODPR(T, SetVerticalAlignment, (VerticalAlignment), void), AS_CALL_THISCALL);
  12476. engine->RegisterObjectMethod(className, "void set_verticalAlignment(VerticalAlignment)", AS_METHODPR(T, SetVerticalAlignment, (VerticalAlignment), void), AS_CALL_THISCALL);
  12477. // void UIElement::SetVisible(bool enable)
  12478. engine->RegisterObjectMethod(className, "void SetVisible(bool)", AS_METHODPR(T, SetVisible, (bool), void), AS_CALL_THISCALL);
  12479. engine->RegisterObjectMethod(className, "void set_visible(bool)", AS_METHODPR(T, SetVisible, (bool), void), AS_CALL_THISCALL);
  12480. // void UIElement::SetWidth(int width)
  12481. engine->RegisterObjectMethod(className, "void SetWidth(int)", AS_METHODPR(T, SetWidth, (int), void), AS_CALL_THISCALL);
  12482. engine->RegisterObjectMethod(className, "void set_width(int)", AS_METHODPR(T, SetWidth, (int), void), AS_CALL_THISCALL);
  12483. // void UIElement::SortChildren()
  12484. engine->RegisterObjectMethod(className, "void SortChildren()", AS_METHODPR(T, SortChildren, (), void), AS_CALL_THISCALL);
  12485. // virtual void UIElement::Update(float timeStep)
  12486. engine->RegisterObjectMethod(className, "void Update(float)", AS_METHODPR(T, Update, (float), void), AS_CALL_THISCALL);
  12487. // void UIElement::UpdateLayout()
  12488. engine->RegisterObjectMethod(className, "void UpdateLayout()", AS_METHODPR(T, UpdateLayout, (), void), AS_CALL_THISCALL);
  12489. // template <class T> T* UIElement::CreateChild(const String& name = String::EMPTY, unsigned index = M_MAX_UNSIGNED)
  12490. // Not registered because template
  12491. // template <class T> T* UIElement::GetChildDynamicCast(unsigned index) const
  12492. // Not registered because template
  12493. // template <class T> T* UIElement::GetChildDynamicCast(const String& name, bool recursive = false) const
  12494. // Not registered because template
  12495. // template <class T> T* UIElement::GetChildDynamicCast(const StringHash& key, const Variant& value = Variant::EMPTY, bool recursive = false) const
  12496. // Not registered because template
  12497. // template <class T> T* UIElement::GetChildStaticCast(unsigned index) const
  12498. // Not registered because template
  12499. // template <class T> T* UIElement::GetChildStaticCast(const String& name, bool recursive = false) const
  12500. // Not registered because template
  12501. // template <class T> T* UIElement::GetChildStaticCast(const StringHash& key, const Variant& value = Variant::EMPTY, bool recursive = false) const
  12502. // Not registered because template
  12503. #ifdef REGISTER_MEMBERS_MANUAL_PART_UIElement
  12504. REGISTER_MEMBERS_MANUAL_PART_UIElement();
  12505. #endif
  12506. }
  12507. // class AnimationController | File: ../Graphics/AnimationController.h
  12508. template <class T> void RegisterMembers_AnimationController(asIScriptEngine* engine, const char* className)
  12509. {
  12510. RegisterMembers_Component<T>(engine, className);
  12511. // const Vector<AnimationControl>& AnimationController::GetAnimations() const
  12512. // Error: type "const Vector<AnimationControl>&" can not automatically bind
  12513. // VariantVector AnimationController::GetAnimationsAttr() const
  12514. // Error: type "VariantVector" can not automatically bind
  12515. // const PODVector<unsigned char>& AnimationController::GetNetAnimationsAttr() const
  12516. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  12517. // VariantVector AnimationController::GetNodeAnimationStatesAttr() const
  12518. // Error: type "VariantVector" can not automatically bind
  12519. // void AnimationController::SetAnimationsAttr(const VariantVector& value)
  12520. // Error: type "const VariantVector&" can not automatically bind
  12521. // void AnimationController::SetNetAnimationsAttr(const PODVector<unsigned char>& value)
  12522. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  12523. // void AnimationController::SetNodeAnimationStatesAttr(const VariantVector& value)
  12524. // Error: type "const VariantVector&" can not automatically bind
  12525. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  12526. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  12527. // bool AnimationController::Fade(const String& name, float targetWeight, float fadeTime)
  12528. engine->RegisterObjectMethod(className, "bool Fade(const String&in, float, float)", AS_METHODPR(T, Fade, (const String&, float, float), bool), AS_CALL_THISCALL);
  12529. // bool AnimationController::FadeOthers(const String& name, float targetWeight, float fadeTime)
  12530. engine->RegisterObjectMethod(className, "bool FadeOthers(const String&in, float, float)", AS_METHODPR(T, FadeOthers, (const String&, float, float), bool), AS_CALL_THISCALL);
  12531. // AnimationState* AnimationController::GetAnimationState(const String& name) const
  12532. engine->RegisterObjectMethod(className, "AnimationState@+ GetAnimationState(const String&in) const", AS_METHODPR(T, GetAnimationState, (const String&) const, AnimationState*), AS_CALL_THISCALL);
  12533. // AnimationState* AnimationController::GetAnimationState(StringHash nameHash) const
  12534. engine->RegisterObjectMethod(className, "AnimationState@+ GetAnimationState(StringHash) const", AS_METHODPR(T, GetAnimationState, (StringHash) const, AnimationState*), AS_CALL_THISCALL);
  12535. // float AnimationController::GetAutoFade(const String& name) const
  12536. engine->RegisterObjectMethod(className, "float GetAutoFade(const String&in) const", AS_METHODPR(T, GetAutoFade, (const String&) const, float), AS_CALL_THISCALL);
  12537. // AnimationBlendMode AnimationController::GetBlendMode(const String& name) const
  12538. engine->RegisterObjectMethod(className, "AnimationBlendMode GetBlendMode(const String&in) const", AS_METHODPR(T, GetBlendMode, (const String&) const, AnimationBlendMode), AS_CALL_THISCALL);
  12539. // float AnimationController::GetFadeTarget(const String& name) const
  12540. engine->RegisterObjectMethod(className, "float GetFadeTarget(const String&in) const", AS_METHODPR(T, GetFadeTarget, (const String&) const, float), AS_CALL_THISCALL);
  12541. // float AnimationController::GetFadeTime(const String& name) const
  12542. engine->RegisterObjectMethod(className, "float GetFadeTime(const String&in) const", AS_METHODPR(T, GetFadeTime, (const String&) const, float), AS_CALL_THISCALL);
  12543. // unsigned char AnimationController::GetLayer(const String& name) const
  12544. engine->RegisterObjectMethod(className, "uint8 GetLayer(const String&in) const", AS_METHODPR(T, GetLayer, (const String&) const, unsigned char), AS_CALL_THISCALL);
  12545. // float AnimationController::GetLength(const String& name) const
  12546. engine->RegisterObjectMethod(className, "float GetLength(const String&in) const", AS_METHODPR(T, GetLength, (const String&) const, float), AS_CALL_THISCALL);
  12547. // bool AnimationController::GetRemoveOnCompletion(const String& name) const
  12548. engine->RegisterObjectMethod(className, "bool GetRemoveOnCompletion(const String&in) const", AS_METHODPR(T, GetRemoveOnCompletion, (const String&) const, bool), AS_CALL_THISCALL);
  12549. // float AnimationController::GetSpeed(const String& name) const
  12550. engine->RegisterObjectMethod(className, "float GetSpeed(const String&in) const", AS_METHODPR(T, GetSpeed, (const String&) const, float), AS_CALL_THISCALL);
  12551. // Bone* AnimationController::GetStartBone(const String& name) const
  12552. engine->RegisterObjectMethod(className, "Bone@ GetStartBone(const String&in) const", AS_METHODPR(T, GetStartBone, (const String&) const, Bone*), AS_CALL_THISCALL);
  12553. // const String& AnimationController::GetStartBoneName(const String& name) const
  12554. engine->RegisterObjectMethod(className, "const String& GetStartBoneName(const String&in) const", AS_METHODPR(T, GetStartBoneName, (const String&) const, const String&), AS_CALL_THISCALL);
  12555. // float AnimationController::GetTime(const String& name) const
  12556. engine->RegisterObjectMethod(className, "float GetTime(const String&in) const", AS_METHODPR(T, GetTime, (const String&) const, float), AS_CALL_THISCALL);
  12557. // float AnimationController::GetWeight(const String& name) const
  12558. engine->RegisterObjectMethod(className, "float GetWeight(const String&in) const", AS_METHODPR(T, GetWeight, (const String&) const, float), AS_CALL_THISCALL);
  12559. // bool AnimationController::IsAtEnd(const String& name) const
  12560. engine->RegisterObjectMethod(className, "bool IsAtEnd(const String&in) const", AS_METHODPR(T, IsAtEnd, (const String&) const, bool), AS_CALL_THISCALL);
  12561. // bool AnimationController::IsFadingIn(const String& name) const
  12562. engine->RegisterObjectMethod(className, "bool IsFadingIn(const String&in) const", AS_METHODPR(T, IsFadingIn, (const String&) const, bool), AS_CALL_THISCALL);
  12563. // bool AnimationController::IsFadingOut(const String& name) const
  12564. engine->RegisterObjectMethod(className, "bool IsFadingOut(const String&in) const", AS_METHODPR(T, IsFadingOut, (const String&) const, bool), AS_CALL_THISCALL);
  12565. // bool AnimationController::IsLooped(const String& name) const
  12566. engine->RegisterObjectMethod(className, "bool IsLooped(const String&in) const", AS_METHODPR(T, IsLooped, (const String&) const, bool), AS_CALL_THISCALL);
  12567. // bool AnimationController::IsPlaying(const String& name) const
  12568. engine->RegisterObjectMethod(className, "bool IsPlaying(const String&in) const", AS_METHODPR(T, IsPlaying, (const String&) const, bool), AS_CALL_THISCALL);
  12569. // bool AnimationController::IsPlaying(unsigned char layer) const
  12570. engine->RegisterObjectMethod(className, "bool IsPlaying(uint8) const", AS_METHODPR(T, IsPlaying, (unsigned char) const, bool), AS_CALL_THISCALL);
  12571. // void AnimationController::OnSetEnabled() override
  12572. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  12573. // bool AnimationController::Play(const String& name, unsigned char layer, bool looped, float fadeInTime = 0.0f)
  12574. engine->RegisterObjectMethod(className, "bool Play(const String&in, uint8, bool, float = 0.0f)", AS_METHODPR(T, Play, (const String&, unsigned char, bool, float), bool), AS_CALL_THISCALL);
  12575. // bool AnimationController::PlayExclusive(const String& name, unsigned char layer, bool looped, float fadeTime = 0.0f)
  12576. engine->RegisterObjectMethod(className, "bool PlayExclusive(const String&in, uint8, bool, float = 0.0f)", AS_METHODPR(T, PlayExclusive, (const String&, unsigned char, bool, float), bool), AS_CALL_THISCALL);
  12577. // bool AnimationController::SetAutoFade(const String& name, float fadeOutTime)
  12578. engine->RegisterObjectMethod(className, "bool SetAutoFade(const String&in, float)", AS_METHODPR(T, SetAutoFade, (const String&, float), bool), AS_CALL_THISCALL);
  12579. // bool AnimationController::SetBlendMode(const String& name, AnimationBlendMode mode)
  12580. engine->RegisterObjectMethod(className, "bool SetBlendMode(const String&in, AnimationBlendMode)", AS_METHODPR(T, SetBlendMode, (const String&, AnimationBlendMode), bool), AS_CALL_THISCALL);
  12581. // bool AnimationController::SetLayer(const String& name, unsigned char layer)
  12582. engine->RegisterObjectMethod(className, "bool SetLayer(const String&in, uint8)", AS_METHODPR(T, SetLayer, (const String&, unsigned char), bool), AS_CALL_THISCALL);
  12583. // bool AnimationController::SetLooped(const String& name, bool enable)
  12584. engine->RegisterObjectMethod(className, "bool SetLooped(const String&in, bool)", AS_METHODPR(T, SetLooped, (const String&, bool), bool), AS_CALL_THISCALL);
  12585. // bool AnimationController::SetRemoveOnCompletion(const String& name, bool removeOnCompletion)
  12586. engine->RegisterObjectMethod(className, "bool SetRemoveOnCompletion(const String&in, bool)", AS_METHODPR(T, SetRemoveOnCompletion, (const String&, bool), bool), AS_CALL_THISCALL);
  12587. // bool AnimationController::SetSpeed(const String& name, float speed)
  12588. engine->RegisterObjectMethod(className, "bool SetSpeed(const String&in, float)", AS_METHODPR(T, SetSpeed, (const String&, float), bool), AS_CALL_THISCALL);
  12589. // bool AnimationController::SetStartBone(const String& name, const String& startBoneName)
  12590. engine->RegisterObjectMethod(className, "bool SetStartBone(const String&in, const String&in)", AS_METHODPR(T, SetStartBone, (const String&, const String&), bool), AS_CALL_THISCALL);
  12591. // bool AnimationController::SetTime(const String& name, float time)
  12592. engine->RegisterObjectMethod(className, "bool SetTime(const String&in, float)", AS_METHODPR(T, SetTime, (const String&, float), bool), AS_CALL_THISCALL);
  12593. // bool AnimationController::SetWeight(const String& name, float weight)
  12594. engine->RegisterObjectMethod(className, "bool SetWeight(const String&in, float)", AS_METHODPR(T, SetWeight, (const String&, float), bool), AS_CALL_THISCALL);
  12595. // bool AnimationController::Stop(const String& name, float fadeOutTime = 0.0f)
  12596. engine->RegisterObjectMethod(className, "bool Stop(const String&in, float = 0.0f)", AS_METHODPR(T, Stop, (const String&, float), bool), AS_CALL_THISCALL);
  12597. // void AnimationController::StopAll(float fadeOutTime = 0.0f)
  12598. engine->RegisterObjectMethod(className, "void StopAll(float = 0.0f)", AS_METHODPR(T, StopAll, (float), void), AS_CALL_THISCALL);
  12599. // void AnimationController::StopLayer(unsigned char layer, float fadeOutTime = 0.0f)
  12600. engine->RegisterObjectMethod(className, "void StopLayer(uint8, float = 0.0f)", AS_METHODPR(T, StopLayer, (unsigned char, float), void), AS_CALL_THISCALL);
  12601. // virtual void AnimationController::Update(float timeStep)
  12602. engine->RegisterObjectMethod(className, "void Update(float)", AS_METHODPR(T, Update, (float), void), AS_CALL_THISCALL);
  12603. #ifdef REGISTER_MEMBERS_MANUAL_PART_AnimationController
  12604. REGISTER_MEMBERS_MANUAL_PART_AnimationController();
  12605. #endif
  12606. }
  12607. // class BorderImage | File: ../UI/BorderImage.h
  12608. template <class T> void RegisterMembers_BorderImage(asIScriptEngine* engine, const char* className)
  12609. {
  12610. RegisterMembers_UIElement<T>(engine, className);
  12611. // BlendMode BorderImage::GetBlendMode() const
  12612. engine->RegisterObjectMethod(className, "BlendMode GetBlendMode() const", AS_METHODPR(T, GetBlendMode, () const, BlendMode), AS_CALL_THISCALL);
  12613. engine->RegisterObjectMethod(className, "BlendMode get_blendMode() const", AS_METHODPR(T, GetBlendMode, () const, BlendMode), AS_CALL_THISCALL);
  12614. // const IntRect& BorderImage::GetBorder() const
  12615. engine->RegisterObjectMethod(className, "const IntRect& GetBorder() const", AS_METHODPR(T, GetBorder, () const, const IntRect&), AS_CALL_THISCALL);
  12616. engine->RegisterObjectMethod(className, "const IntRect& get_border() const", AS_METHODPR(T, GetBorder, () const, const IntRect&), AS_CALL_THISCALL);
  12617. // const IntVector2& BorderImage::GetDisabledOffset() const
  12618. engine->RegisterObjectMethod(className, "const IntVector2& GetDisabledOffset() const", AS_METHODPR(T, GetDisabledOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  12619. engine->RegisterObjectMethod(className, "const IntVector2& get_disabledOffset() const", AS_METHODPR(T, GetDisabledOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  12620. // const IntVector2& BorderImage::GetHoverOffset() const
  12621. engine->RegisterObjectMethod(className, "const IntVector2& GetHoverOffset() const", AS_METHODPR(T, GetHoverOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  12622. engine->RegisterObjectMethod(className, "const IntVector2& get_hoverOffset() const", AS_METHODPR(T, GetHoverOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  12623. // const IntRect& BorderImage::GetImageBorder() const
  12624. engine->RegisterObjectMethod(className, "const IntRect& GetImageBorder() const", AS_METHODPR(T, GetImageBorder, () const, const IntRect&), AS_CALL_THISCALL);
  12625. engine->RegisterObjectMethod(className, "const IntRect& get_imageBorder() const", AS_METHODPR(T, GetImageBorder, () const, const IntRect&), AS_CALL_THISCALL);
  12626. // const IntRect& BorderImage::GetImageRect() const
  12627. engine->RegisterObjectMethod(className, "const IntRect& GetImageRect() const", AS_METHODPR(T, GetImageRect, () const, const IntRect&), AS_CALL_THISCALL);
  12628. engine->RegisterObjectMethod(className, "const IntRect& get_imageRect() const", AS_METHODPR(T, GetImageRect, () const, const IntRect&), AS_CALL_THISCALL);
  12629. // Material* BorderImage::GetMaterial() const
  12630. engine->RegisterObjectMethod(className, "Material@+ GetMaterial() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  12631. engine->RegisterObjectMethod(className, "Material@+ get_material() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  12632. // ResourceRef BorderImage::GetMaterialAttr() const
  12633. engine->RegisterObjectMethod(className, "ResourceRef GetMaterialAttr() const", AS_METHODPR(T, GetMaterialAttr, () const, ResourceRef), AS_CALL_THISCALL);
  12634. // const IntVector2& UIElement::GetPosition() const
  12635. engine->RegisterObjectMethod(className, "const IntVector2& GetPosition() const", AS_METHODPR(T, GetPosition, () const, const IntVector2&), AS_CALL_THISCALL);
  12636. engine->RegisterObjectMethod(className, "const IntVector2& get_position() const", AS_METHODPR(T, GetPosition, () const, const IntVector2&), AS_CALL_THISCALL);
  12637. // Texture* BorderImage::GetTexture() const
  12638. engine->RegisterObjectMethod(className, "Texture@+ GetTexture() const", AS_METHODPR(T, GetTexture, () const, Texture*), AS_CALL_THISCALL);
  12639. engine->RegisterObjectMethod(className, "Texture@+ get_texture() const", AS_METHODPR(T, GetTexture, () const, Texture*), AS_CALL_THISCALL);
  12640. // ResourceRef BorderImage::GetTextureAttr() const
  12641. engine->RegisterObjectMethod(className, "ResourceRef GetTextureAttr() const", AS_METHODPR(T, GetTextureAttr, () const, ResourceRef), AS_CALL_THISCALL);
  12642. // bool UIElement::IsSelected() const
  12643. engine->RegisterObjectMethod(className, "bool IsSelected() const", AS_METHODPR(T, IsSelected, () const, bool), AS_CALL_THISCALL);
  12644. engine->RegisterObjectMethod(className, "bool get_selected() const", AS_METHODPR(T, IsSelected, () const, bool), AS_CALL_THISCALL);
  12645. // bool BorderImage::IsTiled() const
  12646. engine->RegisterObjectMethod(className, "bool IsTiled() const", AS_METHODPR(T, IsTiled, () const, bool), AS_CALL_THISCALL);
  12647. engine->RegisterObjectMethod(className, "bool get_tiled() const", AS_METHODPR(T, IsTiled, () const, bool), AS_CALL_THISCALL);
  12648. // void BorderImage::SetBlendMode(BlendMode mode)
  12649. engine->RegisterObjectMethod(className, "void SetBlendMode(BlendMode)", AS_METHODPR(T, SetBlendMode, (BlendMode), void), AS_CALL_THISCALL);
  12650. engine->RegisterObjectMethod(className, "void set_blendMode(BlendMode)", AS_METHODPR(T, SetBlendMode, (BlendMode), void), AS_CALL_THISCALL);
  12651. // void BorderImage::SetBorder(const IntRect& rect)
  12652. engine->RegisterObjectMethod(className, "void SetBorder(const IntRect&in)", AS_METHODPR(T, SetBorder, (const IntRect&), void), AS_CALL_THISCALL);
  12653. engine->RegisterObjectMethod(className, "void set_border(const IntRect&in)", AS_METHODPR(T, SetBorder, (const IntRect&), void), AS_CALL_THISCALL);
  12654. // void BorderImage::SetDisabledOffset(const IntVector2& offset)
  12655. engine->RegisterObjectMethod(className, "void SetDisabledOffset(const IntVector2&in)", AS_METHODPR(T, SetDisabledOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  12656. engine->RegisterObjectMethod(className, "void set_disabledOffset(const IntVector2&in)", AS_METHODPR(T, SetDisabledOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  12657. // void BorderImage::SetDisabledOffset(int x, int y)
  12658. engine->RegisterObjectMethod(className, "void SetDisabledOffset(int, int)", AS_METHODPR(T, SetDisabledOffset, (int, int), void), AS_CALL_THISCALL);
  12659. // void BorderImage::SetFullImageRect()
  12660. engine->RegisterObjectMethod(className, "void SetFullImageRect()", AS_METHODPR(T, SetFullImageRect, (), void), AS_CALL_THISCALL);
  12661. // void BorderImage::SetHoverOffset(const IntVector2& offset)
  12662. engine->RegisterObjectMethod(className, "void SetHoverOffset(const IntVector2&in)", AS_METHODPR(T, SetHoverOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  12663. engine->RegisterObjectMethod(className, "void set_hoverOffset(const IntVector2&in)", AS_METHODPR(T, SetHoverOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  12664. // void BorderImage::SetHoverOffset(int x, int y)
  12665. engine->RegisterObjectMethod(className, "void SetHoverOffset(int, int)", AS_METHODPR(T, SetHoverOffset, (int, int), void), AS_CALL_THISCALL);
  12666. // void BorderImage::SetImageBorder(const IntRect& rect)
  12667. engine->RegisterObjectMethod(className, "void SetImageBorder(const IntRect&in)", AS_METHODPR(T, SetImageBorder, (const IntRect&), void), AS_CALL_THISCALL);
  12668. engine->RegisterObjectMethod(className, "void set_imageBorder(const IntRect&in)", AS_METHODPR(T, SetImageBorder, (const IntRect&), void), AS_CALL_THISCALL);
  12669. // void BorderImage::SetImageRect(const IntRect& rect)
  12670. engine->RegisterObjectMethod(className, "void SetImageRect(const IntRect&in)", AS_METHODPR(T, SetImageRect, (const IntRect&), void), AS_CALL_THISCALL);
  12671. engine->RegisterObjectMethod(className, "void set_imageRect(const IntRect&in)", AS_METHODPR(T, SetImageRect, (const IntRect&), void), AS_CALL_THISCALL);
  12672. // void BorderImage::SetMaterial(Material* material)
  12673. engine->RegisterObjectMethod(className, "void SetMaterial(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  12674. engine->RegisterObjectMethod(className, "void set_material(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  12675. // void BorderImage::SetMaterialAttr(const ResourceRef& value)
  12676. engine->RegisterObjectMethod(className, "void SetMaterialAttr(const ResourceRef&in)", AS_METHODPR(T, SetMaterialAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  12677. // void UIElement::SetPosition(const IntVector2& position)
  12678. engine->RegisterObjectMethod(className, "void SetPosition(const IntVector2&in)", AS_METHODPR(T, SetPosition, (const IntVector2&), void), AS_CALL_THISCALL);
  12679. engine->RegisterObjectMethod(className, "void set_position(const IntVector2&in)", AS_METHODPR(T, SetPosition, (const IntVector2&), void), AS_CALL_THISCALL);
  12680. // void UIElement::SetPosition(int x, int y)
  12681. engine->RegisterObjectMethod(className, "void SetPosition(int, int)", AS_METHODPR(T, SetPosition, (int, int), void), AS_CALL_THISCALL);
  12682. // void BorderImage::SetTexture(Texture* texture)
  12683. engine->RegisterObjectMethod(className, "void SetTexture(Texture@+)", AS_METHODPR(T, SetTexture, (Texture*), void), AS_CALL_THISCALL);
  12684. engine->RegisterObjectMethod(className, "void set_texture(Texture@+)", AS_METHODPR(T, SetTexture, (Texture*), void), AS_CALL_THISCALL);
  12685. // void BorderImage::SetTextureAttr(const ResourceRef& value)
  12686. engine->RegisterObjectMethod(className, "void SetTextureAttr(const ResourceRef&in)", AS_METHODPR(T, SetTextureAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  12687. // void BorderImage::SetTiled(bool enable)
  12688. engine->RegisterObjectMethod(className, "void SetTiled(bool)", AS_METHODPR(T, SetTiled, (bool), void), AS_CALL_THISCALL);
  12689. engine->RegisterObjectMethod(className, "void set_tiled(bool)", AS_METHODPR(T, SetTiled, (bool), void), AS_CALL_THISCALL);
  12690. #ifdef REGISTER_MEMBERS_MANUAL_PART_BorderImage
  12691. REGISTER_MEMBERS_MANUAL_PART_BorderImage();
  12692. #endif
  12693. }
  12694. // class Camera | File: ../Graphics/Camera.h
  12695. template <class T> void RegisterMembers_Camera(asIScriptEngine* engine, const char* className)
  12696. {
  12697. RegisterMembers_Component<T>(engine, className);
  12698. // void Camera::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  12699. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  12700. // float Camera::GetAspectRatio() const
  12701. engine->RegisterObjectMethod(className, "float GetAspectRatio() const", AS_METHODPR(T, GetAspectRatio, () const, float), AS_CALL_THISCALL);
  12702. engine->RegisterObjectMethod(className, "float get_aspectRatio() const", AS_METHODPR(T, GetAspectRatio, () const, float), AS_CALL_THISCALL);
  12703. // bool Camera::GetAutoAspectRatio() const
  12704. engine->RegisterObjectMethod(className, "bool GetAutoAspectRatio() const", AS_METHODPR(T, GetAutoAspectRatio, () const, bool), AS_CALL_THISCALL);
  12705. engine->RegisterObjectMethod(className, "bool get_autoAspectRatio() const", AS_METHODPR(T, GetAutoAspectRatio, () const, bool), AS_CALL_THISCALL);
  12706. // const Plane& Camera::GetClipPlane() const
  12707. engine->RegisterObjectMethod(className, "const Plane& GetClipPlane() const", AS_METHODPR(T, GetClipPlane, () const, const Plane&), AS_CALL_THISCALL);
  12708. engine->RegisterObjectMethod(className, "const Plane& get_clipPlane() const", AS_METHODPR(T, GetClipPlane, () const, const Plane&), AS_CALL_THISCALL);
  12709. // Vector4 Camera::GetClipPlaneAttr() const
  12710. engine->RegisterObjectMethod(className, "Vector4 GetClipPlaneAttr() const", AS_METHODPR(T, GetClipPlaneAttr, () const, Vector4), AS_CALL_THISCALL);
  12711. // float Camera::GetDistance(const Vector3& worldPos) const
  12712. engine->RegisterObjectMethod(className, "float GetDistance(const Vector3&in) const", AS_METHODPR(T, GetDistance, (const Vector3&) const, float), AS_CALL_THISCALL);
  12713. // float Camera::GetDistanceSquared(const Vector3& worldPos) const
  12714. engine->RegisterObjectMethod(className, "float GetDistanceSquared(const Vector3&in) const", AS_METHODPR(T, GetDistanceSquared, (const Vector3&) const, float), AS_CALL_THISCALL);
  12715. // Matrix3x4 Camera::GetEffectiveWorldTransform() const
  12716. engine->RegisterObjectMethod(className, "Matrix3x4 GetEffectiveWorldTransform() const", AS_METHODPR(T, GetEffectiveWorldTransform, () const, Matrix3x4), AS_CALL_THISCALL);
  12717. engine->RegisterObjectMethod(className, "Matrix3x4 get_effectiveWorldTransform() const", AS_METHODPR(T, GetEffectiveWorldTransform, () const, Matrix3x4), AS_CALL_THISCALL);
  12718. // Quaternion Camera::GetFaceCameraRotation(const Vector3& position, const Quaternion& rotation, FaceCameraMode mode, float minAngle = 0.0f)
  12719. engine->RegisterObjectMethod(className, "Quaternion GetFaceCameraRotation(const Vector3&in, const Quaternion&in, FaceCameraMode, float = 0.0f)", AS_METHODPR(T, GetFaceCameraRotation, (const Vector3&, const Quaternion&, FaceCameraMode, float), Quaternion), AS_CALL_THISCALL);
  12720. // float Camera::GetFarClip() const
  12721. engine->RegisterObjectMethod(className, "float GetFarClip() const", AS_METHODPR(T, GetFarClip, () const, float), AS_CALL_THISCALL);
  12722. engine->RegisterObjectMethod(className, "float get_farClip() const", AS_METHODPR(T, GetFarClip, () const, float), AS_CALL_THISCALL);
  12723. // FillMode Camera::GetFillMode() const
  12724. engine->RegisterObjectMethod(className, "FillMode GetFillMode() const", AS_METHODPR(T, GetFillMode, () const, FillMode), AS_CALL_THISCALL);
  12725. engine->RegisterObjectMethod(className, "FillMode get_fillMode() const", AS_METHODPR(T, GetFillMode, () const, FillMode), AS_CALL_THISCALL);
  12726. // bool Camera::GetFlipVertical() const
  12727. engine->RegisterObjectMethod(className, "bool GetFlipVertical() const", AS_METHODPR(T, GetFlipVertical, () const, bool), AS_CALL_THISCALL);
  12728. // float Camera::GetFov() const
  12729. engine->RegisterObjectMethod(className, "float GetFov() const", AS_METHODPR(T, GetFov, () const, float), AS_CALL_THISCALL);
  12730. engine->RegisterObjectMethod(className, "float get_fov() const", AS_METHODPR(T, GetFov, () const, float), AS_CALL_THISCALL);
  12731. // const Frustum& Camera::GetFrustum() const
  12732. engine->RegisterObjectMethod(className, "const Frustum& GetFrustum() const", AS_METHODPR(T, GetFrustum, () const, const Frustum&), AS_CALL_THISCALL);
  12733. engine->RegisterObjectMethod(className, "const Frustum& get_frustum() const", AS_METHODPR(T, GetFrustum, () const, const Frustum&), AS_CALL_THISCALL);
  12734. // void Camera::GetFrustumSize(Vector3& near, Vector3& far) const
  12735. engine->RegisterObjectMethod(className, "void GetFrustumSize(Vector3&, Vector3&) const", AS_METHODPR(T, GetFrustumSize, (Vector3&, Vector3&) const, void), AS_CALL_THISCALL);
  12736. // Matrix4 Camera::GetGPUProjection() const
  12737. engine->RegisterObjectMethod(className, "Matrix4 GetGPUProjection() const", AS_METHODPR(T, GetGPUProjection, () const, Matrix4), AS_CALL_THISCALL);
  12738. engine->RegisterObjectMethod(className, "Matrix4 get_gPUProjection() const", AS_METHODPR(T, GetGPUProjection, () const, Matrix4), AS_CALL_THISCALL);
  12739. // float Camera::GetHalfViewSize() const
  12740. engine->RegisterObjectMethod(className, "float GetHalfViewSize() const", AS_METHODPR(T, GetHalfViewSize, () const, float), AS_CALL_THISCALL);
  12741. engine->RegisterObjectMethod(className, "float get_halfViewSize() const", AS_METHODPR(T, GetHalfViewSize, () const, float), AS_CALL_THISCALL);
  12742. // float Camera::GetLodBias() const
  12743. engine->RegisterObjectMethod(className, "float GetLodBias() const", AS_METHODPR(T, GetLodBias, () const, float), AS_CALL_THISCALL);
  12744. engine->RegisterObjectMethod(className, "float get_lodBias() const", AS_METHODPR(T, GetLodBias, () const, float), AS_CALL_THISCALL);
  12745. // float Camera::GetLodDistance(float distance, float scale, float bias) const
  12746. engine->RegisterObjectMethod(className, "float GetLodDistance(float, float, float) const", AS_METHODPR(T, GetLodDistance, (float, float, float) const, float), AS_CALL_THISCALL);
  12747. // float Camera::GetNearClip() const
  12748. engine->RegisterObjectMethod(className, "float GetNearClip() const", AS_METHODPR(T, GetNearClip, () const, float), AS_CALL_THISCALL);
  12749. engine->RegisterObjectMethod(className, "float get_nearClip() const", AS_METHODPR(T, GetNearClip, () const, float), AS_CALL_THISCALL);
  12750. // float Camera::GetOrthoSize() const
  12751. engine->RegisterObjectMethod(className, "float GetOrthoSize() const", AS_METHODPR(T, GetOrthoSize, () const, float), AS_CALL_THISCALL);
  12752. engine->RegisterObjectMethod(className, "float get_orthoSize() const", AS_METHODPR(T, GetOrthoSize, () const, float), AS_CALL_THISCALL);
  12753. // Matrix4 Camera::GetProjection() const
  12754. engine->RegisterObjectMethod(className, "Matrix4 GetProjection() const", AS_METHODPR(T, GetProjection, () const, Matrix4), AS_CALL_THISCALL);
  12755. engine->RegisterObjectMethod(className, "Matrix4 get_projection() const", AS_METHODPR(T, GetProjection, () const, Matrix4), AS_CALL_THISCALL);
  12756. // const Vector2& Camera::GetProjectionOffset() const
  12757. engine->RegisterObjectMethod(className, "const Vector2& GetProjectionOffset() const", AS_METHODPR(T, GetProjectionOffset, () const, const Vector2&), AS_CALL_THISCALL);
  12758. engine->RegisterObjectMethod(className, "const Vector2& get_projectionOffset() const", AS_METHODPR(T, GetProjectionOffset, () const, const Vector2&), AS_CALL_THISCALL);
  12759. // const Plane& Camera::GetReflectionPlane() const
  12760. engine->RegisterObjectMethod(className, "const Plane& GetReflectionPlane() const", AS_METHODPR(T, GetReflectionPlane, () const, const Plane&), AS_CALL_THISCALL);
  12761. engine->RegisterObjectMethod(className, "const Plane& get_reflectionPlane() const", AS_METHODPR(T, GetReflectionPlane, () const, const Plane&), AS_CALL_THISCALL);
  12762. // Vector4 Camera::GetReflectionPlaneAttr() const
  12763. engine->RegisterObjectMethod(className, "Vector4 GetReflectionPlaneAttr() const", AS_METHODPR(T, GetReflectionPlaneAttr, () const, Vector4), AS_CALL_THISCALL);
  12764. // bool Camera::GetReverseCulling() const
  12765. engine->RegisterObjectMethod(className, "bool GetReverseCulling() const", AS_METHODPR(T, GetReverseCulling, () const, bool), AS_CALL_THISCALL);
  12766. // Ray Camera::GetScreenRay(float x, float y) const
  12767. engine->RegisterObjectMethod(className, "Ray GetScreenRay(float, float) const", AS_METHODPR(T, GetScreenRay, (float, float) const, Ray), AS_CALL_THISCALL);
  12768. // Frustum Camera::GetSplitFrustum(float nearClip, float farClip) const
  12769. engine->RegisterObjectMethod(className, "Frustum GetSplitFrustum(float, float) const", AS_METHODPR(T, GetSplitFrustum, (float, float) const, Frustum), AS_CALL_THISCALL);
  12770. // bool Camera::GetUseClipping() const
  12771. engine->RegisterObjectMethod(className, "bool GetUseClipping() const", AS_METHODPR(T, GetUseClipping, () const, bool), AS_CALL_THISCALL);
  12772. engine->RegisterObjectMethod(className, "bool get_useClipping() const", AS_METHODPR(T, GetUseClipping, () const, bool), AS_CALL_THISCALL);
  12773. // bool Camera::GetUseReflection() const
  12774. engine->RegisterObjectMethod(className, "bool GetUseReflection() const", AS_METHODPR(T, GetUseReflection, () const, bool), AS_CALL_THISCALL);
  12775. engine->RegisterObjectMethod(className, "bool get_useReflection() const", AS_METHODPR(T, GetUseReflection, () const, bool), AS_CALL_THISCALL);
  12776. // const Matrix3x4& Camera::GetView() const
  12777. engine->RegisterObjectMethod(className, "const Matrix3x4& GetView() const", AS_METHODPR(T, GetView, () const, const Matrix3x4&), AS_CALL_THISCALL);
  12778. engine->RegisterObjectMethod(className, "const Matrix3x4& get_view() const", AS_METHODPR(T, GetView, () const, const Matrix3x4&), AS_CALL_THISCALL);
  12779. // unsigned Camera::GetViewMask() const
  12780. engine->RegisterObjectMethod(className, "uint GetViewMask() const", AS_METHODPR(T, GetViewMask, () const, unsigned), AS_CALL_THISCALL);
  12781. engine->RegisterObjectMethod(className, "uint get_viewMask() const", AS_METHODPR(T, GetViewMask, () const, unsigned), AS_CALL_THISCALL);
  12782. // ViewOverrideFlags Camera::GetViewOverrideFlags() const
  12783. engine->RegisterObjectMethod(className, "ViewOverrideFlags GetViewOverrideFlags() const", AS_METHODPR(T, GetViewOverrideFlags, () const, ViewOverrideFlags), AS_CALL_THISCALL);
  12784. engine->RegisterObjectMethod(className, "ViewOverrideFlags get_viewOverrideFlags() const", AS_METHODPR(T, GetViewOverrideFlags, () const, ViewOverrideFlags), AS_CALL_THISCALL);
  12785. // Frustum Camera::GetViewSpaceFrustum() const
  12786. engine->RegisterObjectMethod(className, "Frustum GetViewSpaceFrustum() const", AS_METHODPR(T, GetViewSpaceFrustum, () const, Frustum), AS_CALL_THISCALL);
  12787. engine->RegisterObjectMethod(className, "Frustum get_viewSpaceFrustum() const", AS_METHODPR(T, GetViewSpaceFrustum, () const, Frustum), AS_CALL_THISCALL);
  12788. // Frustum Camera::GetViewSpaceSplitFrustum(float nearClip, float farClip) const
  12789. engine->RegisterObjectMethod(className, "Frustum GetViewSpaceSplitFrustum(float, float) const", AS_METHODPR(T, GetViewSpaceSplitFrustum, (float, float) const, Frustum), AS_CALL_THISCALL);
  12790. // float Camera::GetZoom() const
  12791. engine->RegisterObjectMethod(className, "float GetZoom() const", AS_METHODPR(T, GetZoom, () const, float), AS_CALL_THISCALL);
  12792. engine->RegisterObjectMethod(className, "float get_zoom() const", AS_METHODPR(T, GetZoom, () const, float), AS_CALL_THISCALL);
  12793. // bool Camera::IsOrthographic() const
  12794. engine->RegisterObjectMethod(className, "bool IsOrthographic() const", AS_METHODPR(T, IsOrthographic, () const, bool), AS_CALL_THISCALL);
  12795. engine->RegisterObjectMethod(className, "bool get_orthographic() const", AS_METHODPR(T, IsOrthographic, () const, bool), AS_CALL_THISCALL);
  12796. // bool Camera::IsProjectionValid() const
  12797. engine->RegisterObjectMethod(className, "bool IsProjectionValid() const", AS_METHODPR(T, IsProjectionValid, () const, bool), AS_CALL_THISCALL);
  12798. // virtual void Component::OnSetEnabled()
  12799. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  12800. // Vector3 Camera::ScreenToWorldPoint(const Vector3& screenPos) const
  12801. engine->RegisterObjectMethod(className, "Vector3 ScreenToWorldPoint(const Vector3&in) const", AS_METHODPR(T, ScreenToWorldPoint, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  12802. // void Camera::SetAspectRatio(float aspectRatio)
  12803. engine->RegisterObjectMethod(className, "void SetAspectRatio(float)", AS_METHODPR(T, SetAspectRatio, (float), void), AS_CALL_THISCALL);
  12804. engine->RegisterObjectMethod(className, "void set_aspectRatio(float)", AS_METHODPR(T, SetAspectRatio, (float), void), AS_CALL_THISCALL);
  12805. // void Camera::SetAspectRatioInternal(float aspectRatio)
  12806. engine->RegisterObjectMethod(className, "void SetAspectRatioInternal(float)", AS_METHODPR(T, SetAspectRatioInternal, (float), void), AS_CALL_THISCALL);
  12807. // void Camera::SetAutoAspectRatio(bool enable)
  12808. engine->RegisterObjectMethod(className, "void SetAutoAspectRatio(bool)", AS_METHODPR(T, SetAutoAspectRatio, (bool), void), AS_CALL_THISCALL);
  12809. engine->RegisterObjectMethod(className, "void set_autoAspectRatio(bool)", AS_METHODPR(T, SetAutoAspectRatio, (bool), void), AS_CALL_THISCALL);
  12810. // void Camera::SetClipPlane(const Plane& plane)
  12811. engine->RegisterObjectMethod(className, "void SetClipPlane(const Plane&in)", AS_METHODPR(T, SetClipPlane, (const Plane&), void), AS_CALL_THISCALL);
  12812. engine->RegisterObjectMethod(className, "void set_clipPlane(const Plane&in)", AS_METHODPR(T, SetClipPlane, (const Plane&), void), AS_CALL_THISCALL);
  12813. // void Camera::SetClipPlaneAttr(const Vector4& value)
  12814. engine->RegisterObjectMethod(className, "void SetClipPlaneAttr(const Vector4&in)", AS_METHODPR(T, SetClipPlaneAttr, (const Vector4&), void), AS_CALL_THISCALL);
  12815. // void Camera::SetFarClip(float farClip)
  12816. engine->RegisterObjectMethod(className, "void SetFarClip(float)", AS_METHODPR(T, SetFarClip, (float), void), AS_CALL_THISCALL);
  12817. engine->RegisterObjectMethod(className, "void set_farClip(float)", AS_METHODPR(T, SetFarClip, (float), void), AS_CALL_THISCALL);
  12818. // void Camera::SetFillMode(FillMode mode)
  12819. engine->RegisterObjectMethod(className, "void SetFillMode(FillMode)", AS_METHODPR(T, SetFillMode, (FillMode), void), AS_CALL_THISCALL);
  12820. engine->RegisterObjectMethod(className, "void set_fillMode(FillMode)", AS_METHODPR(T, SetFillMode, (FillMode), void), AS_CALL_THISCALL);
  12821. // void Camera::SetFlipVertical(bool enable)
  12822. engine->RegisterObjectMethod(className, "void SetFlipVertical(bool)", AS_METHODPR(T, SetFlipVertical, (bool), void), AS_CALL_THISCALL);
  12823. // void Camera::SetFov(float fov)
  12824. engine->RegisterObjectMethod(className, "void SetFov(float)", AS_METHODPR(T, SetFov, (float), void), AS_CALL_THISCALL);
  12825. engine->RegisterObjectMethod(className, "void set_fov(float)", AS_METHODPR(T, SetFov, (float), void), AS_CALL_THISCALL);
  12826. // void Camera::SetLodBias(float bias)
  12827. engine->RegisterObjectMethod(className, "void SetLodBias(float)", AS_METHODPR(T, SetLodBias, (float), void), AS_CALL_THISCALL);
  12828. engine->RegisterObjectMethod(className, "void set_lodBias(float)", AS_METHODPR(T, SetLodBias, (float), void), AS_CALL_THISCALL);
  12829. // void Camera::SetNearClip(float nearClip)
  12830. engine->RegisterObjectMethod(className, "void SetNearClip(float)", AS_METHODPR(T, SetNearClip, (float), void), AS_CALL_THISCALL);
  12831. engine->RegisterObjectMethod(className, "void set_nearClip(float)", AS_METHODPR(T, SetNearClip, (float), void), AS_CALL_THISCALL);
  12832. // void Camera::SetOrthographic(bool enable)
  12833. engine->RegisterObjectMethod(className, "void SetOrthographic(bool)", AS_METHODPR(T, SetOrthographic, (bool), void), AS_CALL_THISCALL);
  12834. engine->RegisterObjectMethod(className, "void set_orthographic(bool)", AS_METHODPR(T, SetOrthographic, (bool), void), AS_CALL_THISCALL);
  12835. // void Camera::SetOrthoSize(float orthoSize)
  12836. engine->RegisterObjectMethod(className, "void SetOrthoSize(float)", AS_METHODPR(T, SetOrthoSize, (float), void), AS_CALL_THISCALL);
  12837. engine->RegisterObjectMethod(className, "void set_orthoSize(float)", AS_METHODPR(T, SetOrthoSize, (float), void), AS_CALL_THISCALL);
  12838. // void Camera::SetOrthoSize(const Vector2& orthoSize)
  12839. engine->RegisterObjectMethod(className, "void SetOrthoSize(const Vector2&in)", AS_METHODPR(T, SetOrthoSize, (const Vector2&), void), AS_CALL_THISCALL);
  12840. // void Camera::SetOrthoSizeAttr(float orthoSize)
  12841. engine->RegisterObjectMethod(className, "void SetOrthoSizeAttr(float)", AS_METHODPR(T, SetOrthoSizeAttr, (float), void), AS_CALL_THISCALL);
  12842. // void Camera::SetProjection(const Matrix4& projection)
  12843. engine->RegisterObjectMethod(className, "void SetProjection(const Matrix4&in)", AS_METHODPR(T, SetProjection, (const Matrix4&), void), AS_CALL_THISCALL);
  12844. engine->RegisterObjectMethod(className, "void set_projection(const Matrix4&in)", AS_METHODPR(T, SetProjection, (const Matrix4&), void), AS_CALL_THISCALL);
  12845. // void Camera::SetProjectionOffset(const Vector2& offset)
  12846. engine->RegisterObjectMethod(className, "void SetProjectionOffset(const Vector2&in)", AS_METHODPR(T, SetProjectionOffset, (const Vector2&), void), AS_CALL_THISCALL);
  12847. engine->RegisterObjectMethod(className, "void set_projectionOffset(const Vector2&in)", AS_METHODPR(T, SetProjectionOffset, (const Vector2&), void), AS_CALL_THISCALL);
  12848. // void Camera::SetReflectionPlane(const Plane& plane)
  12849. engine->RegisterObjectMethod(className, "void SetReflectionPlane(const Plane&in)", AS_METHODPR(T, SetReflectionPlane, (const Plane&), void), AS_CALL_THISCALL);
  12850. engine->RegisterObjectMethod(className, "void set_reflectionPlane(const Plane&in)", AS_METHODPR(T, SetReflectionPlane, (const Plane&), void), AS_CALL_THISCALL);
  12851. // void Camera::SetReflectionPlaneAttr(const Vector4& value)
  12852. engine->RegisterObjectMethod(className, "void SetReflectionPlaneAttr(const Vector4&in)", AS_METHODPR(T, SetReflectionPlaneAttr, (const Vector4&), void), AS_CALL_THISCALL);
  12853. // void Camera::SetUseClipping(bool enable)
  12854. engine->RegisterObjectMethod(className, "void SetUseClipping(bool)", AS_METHODPR(T, SetUseClipping, (bool), void), AS_CALL_THISCALL);
  12855. engine->RegisterObjectMethod(className, "void set_useClipping(bool)", AS_METHODPR(T, SetUseClipping, (bool), void), AS_CALL_THISCALL);
  12856. // void Camera::SetUseReflection(bool enable)
  12857. engine->RegisterObjectMethod(className, "void SetUseReflection(bool)", AS_METHODPR(T, SetUseReflection, (bool), void), AS_CALL_THISCALL);
  12858. engine->RegisterObjectMethod(className, "void set_useReflection(bool)", AS_METHODPR(T, SetUseReflection, (bool), void), AS_CALL_THISCALL);
  12859. // void Camera::SetViewMask(unsigned mask)
  12860. engine->RegisterObjectMethod(className, "void SetViewMask(uint)", AS_METHODPR(T, SetViewMask, (unsigned), void), AS_CALL_THISCALL);
  12861. engine->RegisterObjectMethod(className, "void set_viewMask(uint)", AS_METHODPR(T, SetViewMask, (unsigned), void), AS_CALL_THISCALL);
  12862. // void Camera::SetViewOverrideFlags(ViewOverrideFlags flags)
  12863. engine->RegisterObjectMethod(className, "void SetViewOverrideFlags(ViewOverrideFlags)", AS_METHODPR(T, SetViewOverrideFlags, (ViewOverrideFlags), void), AS_CALL_THISCALL);
  12864. engine->RegisterObjectMethod(className, "void set_viewOverrideFlags(ViewOverrideFlags)", AS_METHODPR(T, SetViewOverrideFlags, (ViewOverrideFlags), void), AS_CALL_THISCALL);
  12865. // void Camera::SetZoom(float zoom)
  12866. engine->RegisterObjectMethod(className, "void SetZoom(float)", AS_METHODPR(T, SetZoom, (float), void), AS_CALL_THISCALL);
  12867. engine->RegisterObjectMethod(className, "void set_zoom(float)", AS_METHODPR(T, SetZoom, (float), void), AS_CALL_THISCALL);
  12868. // Vector2 Camera::WorldToScreenPoint(const Vector3& worldPos) const
  12869. engine->RegisterObjectMethod(className, "Vector2 WorldToScreenPoint(const Vector3&in) const", AS_METHODPR(T, WorldToScreenPoint, (const Vector3&) const, Vector2), AS_CALL_THISCALL);
  12870. #ifdef REGISTER_MEMBERS_MANUAL_PART_Camera
  12871. REGISTER_MEMBERS_MANUAL_PART_Camera();
  12872. #endif
  12873. }
  12874. // class DebugRenderer | File: ../Graphics/DebugRenderer.h
  12875. template <class T> void RegisterMembers_DebugRenderer(asIScriptEngine* engine, const char* className)
  12876. {
  12877. RegisterMembers_Component<T>(engine, className);
  12878. // void DebugRenderer::AddTriangleMesh(const void* vertexData, unsigned vertexSize, const void* indexData, unsigned indexSize, unsigned indexStart, unsigned indexCount, const Matrix3x4& transform, const Color& color, bool depthTest = true)
  12879. // Error: type "const void*" can not automatically bind
  12880. // void DebugRenderer::AddTriangleMesh(const void* vertexData, unsigned vertexSize, unsigned vertexStart, const void* indexData, unsigned indexSize, unsigned indexStart, unsigned indexCount, const Matrix3x4& transform, const Color& color, bool depthTest = true)
  12881. // Error: type "const void*" can not automatically bind
  12882. // void DebugRenderer::AddBoundingBox(const BoundingBox& box, const Color& color, bool depthTest = true, bool solid = false)
  12883. engine->RegisterObjectMethod(className, "void AddBoundingBox(const BoundingBox&in, const Color&in, bool = true, bool = false)", AS_METHODPR(T, AddBoundingBox, (const BoundingBox&, const Color&, bool, bool), void), AS_CALL_THISCALL);
  12884. // void DebugRenderer::AddBoundingBox(const BoundingBox& box, const Matrix3x4& transform, const Color& color, bool depthTest = true, bool solid = false)
  12885. engine->RegisterObjectMethod(className, "void AddBoundingBox(const BoundingBox&in, const Matrix3x4&in, const Color&in, bool = true, bool = false)", AS_METHODPR(T, AddBoundingBox, (const BoundingBox&, const Matrix3x4&, const Color&, bool, bool), void), AS_CALL_THISCALL);
  12886. // void DebugRenderer::AddCircle(const Vector3& center, const Vector3& normal, float radius, const Color& color, int steps = 64, bool depthTest = true)
  12887. engine->RegisterObjectMethod(className, "void AddCircle(const Vector3&in, const Vector3&in, float, const Color&in, int = 64, bool = true)", AS_METHODPR(T, AddCircle, (const Vector3&, const Vector3&, float, const Color&, int, bool), void), AS_CALL_THISCALL);
  12888. // void DebugRenderer::AddCross(const Vector3& center, float size, const Color& color, bool depthTest = true)
  12889. engine->RegisterObjectMethod(className, "void AddCross(const Vector3&in, float, const Color&in, bool = true)", AS_METHODPR(T, AddCross, (const Vector3&, float, const Color&, bool), void), AS_CALL_THISCALL);
  12890. // void DebugRenderer::AddCylinder(const Vector3& position, float radius, float height, const Color& color, bool depthTest = true)
  12891. engine->RegisterObjectMethod(className, "void AddCylinder(const Vector3&in, float, float, const Color&in, bool = true)", AS_METHODPR(T, AddCylinder, (const Vector3&, float, float, const Color&, bool), void), AS_CALL_THISCALL);
  12892. // void DebugRenderer::AddFrustum(const Frustum& frustum, const Color& color, bool depthTest = true)
  12893. engine->RegisterObjectMethod(className, "void AddFrustum(const Frustum&in, const Color&in, bool = true)", AS_METHODPR(T, AddFrustum, (const Frustum&, const Color&, bool), void), AS_CALL_THISCALL);
  12894. // void DebugRenderer::AddLine(const Vector3& start, const Vector3& end, const Color& color, bool depthTest = true)
  12895. engine->RegisterObjectMethod(className, "void AddLine(const Vector3&in, const Vector3&in, const Color&in, bool = true)", AS_METHODPR(T, AddLine, (const Vector3&, const Vector3&, const Color&, bool), void), AS_CALL_THISCALL);
  12896. // void DebugRenderer::AddLine(const Vector3& start, const Vector3& end, unsigned color, bool depthTest = true)
  12897. engine->RegisterObjectMethod(className, "void AddLine(const Vector3&in, const Vector3&in, uint, bool = true)", AS_METHODPR(T, AddLine, (const Vector3&, const Vector3&, unsigned, bool), void), AS_CALL_THISCALL);
  12898. // void DebugRenderer::AddNode(Node* node, float scale = 1.0f, bool depthTest = true)
  12899. engine->RegisterObjectMethod(className, "void AddNode(Node@+, float = 1.0f, bool = true)", AS_METHODPR(T, AddNode, (Node*, float, bool), void), AS_CALL_THISCALL);
  12900. // void DebugRenderer::AddPolygon(const Vector3& v1, const Vector3& v2, const Vector3& v3, const Vector3& v4, const Color& color, bool depthTest = true)
  12901. engine->RegisterObjectMethod(className, "void AddPolygon(const Vector3&in, const Vector3&in, const Vector3&in, const Vector3&in, const Color&in, bool = true)", AS_METHODPR(T, AddPolygon, (const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool), void), AS_CALL_THISCALL);
  12902. // void DebugRenderer::AddPolygon(const Vector3& v1, const Vector3& v2, const Vector3& v3, const Vector3& v4, unsigned color, bool depthTest = true)
  12903. engine->RegisterObjectMethod(className, "void AddPolygon(const Vector3&in, const Vector3&in, const Vector3&in, const Vector3&in, uint, bool = true)", AS_METHODPR(T, AddPolygon, (const Vector3&, const Vector3&, const Vector3&, const Vector3&, unsigned, bool), void), AS_CALL_THISCALL);
  12904. // void DebugRenderer::AddPolyhedron(const Polyhedron& poly, const Color& color, bool depthTest = true)
  12905. engine->RegisterObjectMethod(className, "void AddPolyhedron(const Polyhedron&in, const Color&in, bool = true)", AS_METHODPR(T, AddPolyhedron, (const Polyhedron&, const Color&, bool), void), AS_CALL_THISCALL);
  12906. // void DebugRenderer::AddQuad(const Vector3& center, float width, float height, const Color& color, bool depthTest = true)
  12907. engine->RegisterObjectMethod(className, "void AddQuad(const Vector3&in, float, float, const Color&in, bool = true)", AS_METHODPR(T, AddQuad, (const Vector3&, float, float, const Color&, bool), void), AS_CALL_THISCALL);
  12908. // void DebugRenderer::AddSkeleton(const Skeleton& skeleton, const Color& color, bool depthTest = true)
  12909. engine->RegisterObjectMethod(className, "void AddSkeleton(const Skeleton&in, const Color&in, bool = true)", AS_METHODPR(T, AddSkeleton, (const Skeleton&, const Color&, bool), void), AS_CALL_THISCALL);
  12910. // void DebugRenderer::AddSphere(const Sphere& sphere, const Color& color, bool depthTest = true)
  12911. engine->RegisterObjectMethod(className, "void AddSphere(const Sphere&in, const Color&in, bool = true)", AS_METHODPR(T, AddSphere, (const Sphere&, const Color&, bool), void), AS_CALL_THISCALL);
  12912. // void DebugRenderer::AddSphereSector(const Sphere& sphere, const Quaternion& rotation, float angle, bool drawLines, const Color& color, bool depthTest = true)
  12913. engine->RegisterObjectMethod(className, "void AddSphereSector(const Sphere&in, const Quaternion&in, float, bool, const Color&in, bool = true)", AS_METHODPR(T, AddSphereSector, (const Sphere&, const Quaternion&, float, bool, const Color&, bool), void), AS_CALL_THISCALL);
  12914. // void DebugRenderer::AddTriangle(const Vector3& v1, const Vector3& v2, const Vector3& v3, const Color& color, bool depthTest = true)
  12915. engine->RegisterObjectMethod(className, "void AddTriangle(const Vector3&in, const Vector3&in, const Vector3&in, const Color&in, bool = true)", AS_METHODPR(T, AddTriangle, (const Vector3&, const Vector3&, const Vector3&, const Color&, bool), void), AS_CALL_THISCALL);
  12916. // void DebugRenderer::AddTriangle(const Vector3& v1, const Vector3& v2, const Vector3& v3, unsigned color, bool depthTest = true)
  12917. engine->RegisterObjectMethod(className, "void AddTriangle(const Vector3&in, const Vector3&in, const Vector3&in, uint, bool = true)", AS_METHODPR(T, AddTriangle, (const Vector3&, const Vector3&, const Vector3&, unsigned, bool), void), AS_CALL_THISCALL);
  12918. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  12919. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  12920. // const Frustum& DebugRenderer::GetFrustum() const
  12921. engine->RegisterObjectMethod(className, "const Frustum& GetFrustum() const", AS_METHODPR(T, GetFrustum, () const, const Frustum&), AS_CALL_THISCALL);
  12922. // bool DebugRenderer::GetLineAntiAlias() const
  12923. engine->RegisterObjectMethod(className, "bool GetLineAntiAlias() const", AS_METHODPR(T, GetLineAntiAlias, () const, bool), AS_CALL_THISCALL);
  12924. engine->RegisterObjectMethod(className, "bool get_lineAntiAlias() const", AS_METHODPR(T, GetLineAntiAlias, () const, bool), AS_CALL_THISCALL);
  12925. // const Matrix4& DebugRenderer::GetProjection() const
  12926. engine->RegisterObjectMethod(className, "const Matrix4& GetProjection() const", AS_METHODPR(T, GetProjection, () const, const Matrix4&), AS_CALL_THISCALL);
  12927. // const Matrix3x4& DebugRenderer::GetView() const
  12928. engine->RegisterObjectMethod(className, "const Matrix3x4& GetView() const", AS_METHODPR(T, GetView, () const, const Matrix3x4&), AS_CALL_THISCALL);
  12929. // bool DebugRenderer::HasContent() const
  12930. engine->RegisterObjectMethod(className, "bool HasContent() const", AS_METHODPR(T, HasContent, () const, bool), AS_CALL_THISCALL);
  12931. // bool DebugRenderer::IsInside(const BoundingBox& box) const
  12932. engine->RegisterObjectMethod(className, "bool IsInside(const BoundingBox&in) const", AS_METHODPR(T, IsInside, (const BoundingBox&) const, bool), AS_CALL_THISCALL);
  12933. // virtual void Component::OnSetEnabled()
  12934. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  12935. // void DebugRenderer::Render()
  12936. engine->RegisterObjectMethod(className, "void Render()", AS_METHODPR(T, Render, (), void), AS_CALL_THISCALL);
  12937. // void DebugRenderer::SetLineAntiAlias(bool enable)
  12938. engine->RegisterObjectMethod(className, "void SetLineAntiAlias(bool)", AS_METHODPR(T, SetLineAntiAlias, (bool), void), AS_CALL_THISCALL);
  12939. engine->RegisterObjectMethod(className, "void set_lineAntiAlias(bool)", AS_METHODPR(T, SetLineAntiAlias, (bool), void), AS_CALL_THISCALL);
  12940. // void DebugRenderer::SetView(Camera* camera)
  12941. engine->RegisterObjectMethod(className, "void SetView(Camera@+)", AS_METHODPR(T, SetView, (Camera*), void), AS_CALL_THISCALL);
  12942. #ifdef REGISTER_MEMBERS_MANUAL_PART_DebugRenderer
  12943. REGISTER_MEMBERS_MANUAL_PART_DebugRenderer();
  12944. #endif
  12945. }
  12946. // const PODVector<Light*>& Drawable::GetLights() const
  12947. template <class T> CScriptArray* Drawable_constspPODVectorlesLightstargreamp_GetLights_void_template(T* _ptr)
  12948. {
  12949. const PODVector<Light*>& result = _ptr->GetLights();
  12950. return VectorToHandleArray(result, "Array<Light@>");
  12951. }
  12952. // const PODVector<Light*>& Drawable::GetVertexLights() const
  12953. template <class T> CScriptArray* Drawable_constspPODVectorlesLightstargreamp_GetVertexLights_void_template(T* _ptr)
  12954. {
  12955. const PODVector<Light*>& result = _ptr->GetVertexLights();
  12956. return VectorToHandleArray(result, "Array<Light@>");
  12957. }
  12958. // class Drawable | File: ../Graphics/Drawable.h
  12959. template <class T> void RegisterMembers_Drawable(asIScriptEngine* engine, const char* className)
  12960. {
  12961. RegisterMembers_Component<T>(engine, className);
  12962. // const Vector<SourceBatch>& Drawable::GetBatches() const
  12963. // Error: type "const Vector<SourceBatch>&" can not automatically bind
  12964. // Octant* Drawable::GetOctant() const
  12965. // Error: type "Octant" can not automatically bind bacause have @nobind mark
  12966. // virtual void Drawable::ProcessRayQuery(const RayOctreeQuery& query, PODVector<RayQueryResult>& results)
  12967. // Error: type "RayOctreeQuery" can not automatically bind bacause have @nobind mark
  12968. // virtual void Drawable::Update(const FrameInfo& frame)
  12969. // Can not be registered here bacause hidden in derived classes: ParticleEmitter2D
  12970. // void Drawable::AddLight(Light* light)
  12971. engine->RegisterObjectMethod(className, "void AddLight(Light@+)", AS_METHODPR(T, AddLight, (Light*), void), AS_CALL_THISCALL);
  12972. // void Drawable::AddVertexLight(Light* light)
  12973. engine->RegisterObjectMethod(className, "void AddVertexLight(Light@+)", AS_METHODPR(T, AddVertexLight, (Light*), void), AS_CALL_THISCALL);
  12974. // void Drawable::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  12975. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  12976. // virtual bool Drawable::DrawOcclusion(OcclusionBuffer* buffer)
  12977. engine->RegisterObjectMethod(className, "bool DrawOcclusion(OcclusionBuffer@+)", AS_METHODPR(T, DrawOcclusion, (OcclusionBuffer*), bool), AS_CALL_THISCALL);
  12978. // const BoundingBox& Drawable::GetBoundingBox() const
  12979. engine->RegisterObjectMethod(className, "const BoundingBox& GetBoundingBox() const", AS_METHODPR(T, GetBoundingBox, () const, const BoundingBox&), AS_CALL_THISCALL);
  12980. engine->RegisterObjectMethod(className, "const BoundingBox& get_boundingBox() const", AS_METHODPR(T, GetBoundingBox, () const, const BoundingBox&), AS_CALL_THISCALL);
  12981. // bool Drawable::GetCastShadows() const
  12982. engine->RegisterObjectMethod(className, "bool GetCastShadows() const", AS_METHODPR(T, GetCastShadows, () const, bool), AS_CALL_THISCALL);
  12983. engine->RegisterObjectMethod(className, "bool get_castShadows() const", AS_METHODPR(T, GetCastShadows, () const, bool), AS_CALL_THISCALL);
  12984. // float Drawable::GetDistance() const
  12985. engine->RegisterObjectMethod(className, "float GetDistance() const", AS_METHODPR(T, GetDistance, () const, float), AS_CALL_THISCALL);
  12986. // unsigned char Drawable::GetDrawableFlags() const
  12987. engine->RegisterObjectMethod(className, "uint8 GetDrawableFlags() const", AS_METHODPR(T, GetDrawableFlags, () const, unsigned char), AS_CALL_THISCALL);
  12988. // float Drawable::GetDrawDistance() const
  12989. engine->RegisterObjectMethod(className, "float GetDrawDistance() const", AS_METHODPR(T, GetDrawDistance, () const, float), AS_CALL_THISCALL);
  12990. engine->RegisterObjectMethod(className, "float get_drawDistance() const", AS_METHODPR(T, GetDrawDistance, () const, float), AS_CALL_THISCALL);
  12991. // Light* Drawable::GetFirstLight() const
  12992. engine->RegisterObjectMethod(className, "Light@+ GetFirstLight() const", AS_METHODPR(T, GetFirstLight, () const, Light*), AS_CALL_THISCALL);
  12993. // unsigned Drawable::GetLightMask() const
  12994. engine->RegisterObjectMethod(className, "uint GetLightMask() const", AS_METHODPR(T, GetLightMask, () const, unsigned), AS_CALL_THISCALL);
  12995. engine->RegisterObjectMethod(className, "uint get_lightMask() const", AS_METHODPR(T, GetLightMask, () const, unsigned), AS_CALL_THISCALL);
  12996. // const PODVector<Light*>& Drawable::GetLights() const
  12997. engine->RegisterObjectMethod(className, "Array<Light@>@ GetLights() const", AS_FUNCTION_OBJFIRST(Drawable_constspPODVectorlesLightstargreamp_GetLights_void_template<Drawable>), AS_CALL_CDECL_OBJFIRST);
  12998. // float Drawable::GetLodBias() const
  12999. engine->RegisterObjectMethod(className, "float GetLodBias() const", AS_METHODPR(T, GetLodBias, () const, float), AS_CALL_THISCALL);
  13000. engine->RegisterObjectMethod(className, "float get_lodBias() const", AS_METHODPR(T, GetLodBias, () const, float), AS_CALL_THISCALL);
  13001. // float Drawable::GetLodDistance() const
  13002. engine->RegisterObjectMethod(className, "float GetLodDistance() const", AS_METHODPR(T, GetLodDistance, () const, float), AS_CALL_THISCALL);
  13003. // virtual Geometry* Drawable::GetLodGeometry(unsigned batchIndex, unsigned level)
  13004. engine->RegisterObjectMethod(className, "Geometry@+ GetLodGeometry(uint, uint)", AS_METHODPR(T, GetLodGeometry, (unsigned, unsigned), Geometry*), AS_CALL_THISCALL);
  13005. // unsigned Drawable::GetMaxLights() const
  13006. engine->RegisterObjectMethod(className, "uint GetMaxLights() const", AS_METHODPR(T, GetMaxLights, () const, unsigned), AS_CALL_THISCALL);
  13007. engine->RegisterObjectMethod(className, "uint get_maxLights() const", AS_METHODPR(T, GetMaxLights, () const, unsigned), AS_CALL_THISCALL);
  13008. // float Drawable::GetMaxZ() const
  13009. engine->RegisterObjectMethod(className, "float GetMaxZ() const", AS_METHODPR(T, GetMaxZ, () const, float), AS_CALL_THISCALL);
  13010. // float Drawable::GetMinZ() const
  13011. engine->RegisterObjectMethod(className, "float GetMinZ() const", AS_METHODPR(T, GetMinZ, () const, float), AS_CALL_THISCALL);
  13012. // virtual unsigned Drawable::GetNumOccluderTriangles()
  13013. engine->RegisterObjectMethod(className, "uint GetNumOccluderTriangles()", AS_METHODPR(T, GetNumOccluderTriangles, (), unsigned), AS_CALL_THISCALL);
  13014. // float Drawable::GetShadowDistance() const
  13015. engine->RegisterObjectMethod(className, "float GetShadowDistance() const", AS_METHODPR(T, GetShadowDistance, () const, float), AS_CALL_THISCALL);
  13016. engine->RegisterObjectMethod(className, "float get_shadowDistance() const", AS_METHODPR(T, GetShadowDistance, () const, float), AS_CALL_THISCALL);
  13017. // unsigned Drawable::GetShadowMask() const
  13018. engine->RegisterObjectMethod(className, "uint GetShadowMask() const", AS_METHODPR(T, GetShadowMask, () const, unsigned), AS_CALL_THISCALL);
  13019. engine->RegisterObjectMethod(className, "uint get_shadowMask() const", AS_METHODPR(T, GetShadowMask, () const, unsigned), AS_CALL_THISCALL);
  13020. // float Drawable::GetSortValue() const
  13021. engine->RegisterObjectMethod(className, "float GetSortValue() const", AS_METHODPR(T, GetSortValue, () const, float), AS_CALL_THISCALL);
  13022. // virtual UpdateGeometryType Drawable::GetUpdateGeometryType()
  13023. engine->RegisterObjectMethod(className, "UpdateGeometryType GetUpdateGeometryType()", AS_METHODPR(T, GetUpdateGeometryType, (), UpdateGeometryType), AS_CALL_THISCALL);
  13024. // const PODVector<Light*>& Drawable::GetVertexLights() const
  13025. engine->RegisterObjectMethod(className, "Array<Light@>@ GetVertexLights() const", AS_FUNCTION_OBJFIRST(Drawable_constspPODVectorlesLightstargreamp_GetVertexLights_void_template<Drawable>), AS_CALL_CDECL_OBJFIRST);
  13026. // unsigned Drawable::GetViewMask() const
  13027. engine->RegisterObjectMethod(className, "uint GetViewMask() const", AS_METHODPR(T, GetViewMask, () const, unsigned), AS_CALL_THISCALL);
  13028. engine->RegisterObjectMethod(className, "uint get_viewMask() const", AS_METHODPR(T, GetViewMask, () const, unsigned), AS_CALL_THISCALL);
  13029. // const BoundingBox& Drawable::GetWorldBoundingBox()
  13030. engine->RegisterObjectMethod(className, "const BoundingBox& GetWorldBoundingBox()", AS_METHODPR(T, GetWorldBoundingBox, (), const BoundingBox&), AS_CALL_THISCALL);
  13031. engine->RegisterObjectMethod(className, "const BoundingBox& get_worldBoundingBox()", AS_METHODPR(T, GetWorldBoundingBox, (), const BoundingBox&), AS_CALL_THISCALL);
  13032. // Zone* Drawable::GetZone() const
  13033. engine->RegisterObjectMethod(className, "Zone@+ GetZone() const", AS_METHODPR(T, GetZone, () const, Zone*), AS_CALL_THISCALL);
  13034. engine->RegisterObjectMethod(className, "Zone@+ get_zone() const", AS_METHODPR(T, GetZone, () const, Zone*), AS_CALL_THISCALL);
  13035. // unsigned Drawable::GetZoneMask() const
  13036. engine->RegisterObjectMethod(className, "uint GetZoneMask() const", AS_METHODPR(T, GetZoneMask, () const, unsigned), AS_CALL_THISCALL);
  13037. engine->RegisterObjectMethod(className, "uint get_zoneMask() const", AS_METHODPR(T, GetZoneMask, () const, unsigned), AS_CALL_THISCALL);
  13038. // bool Drawable::HasBasePass(unsigned batchIndex) const
  13039. engine->RegisterObjectMethod(className, "bool HasBasePass(uint) const", AS_METHODPR(T, HasBasePass, (unsigned) const, bool), AS_CALL_THISCALL);
  13040. // bool Drawable::IsInView() const
  13041. engine->RegisterObjectMethod(className, "bool IsInView() const", AS_METHODPR(T, IsInView, () const, bool), AS_CALL_THISCALL);
  13042. engine->RegisterObjectMethod(className, "bool get_inView() const", AS_METHODPR(T, IsInView, () const, bool), AS_CALL_THISCALL);
  13043. // bool Drawable::IsInView(Camera* camera) const
  13044. engine->RegisterObjectMethod(className, "bool IsInView(Camera@+) const", AS_METHODPR(T, IsInView, (Camera*) const, bool), AS_CALL_THISCALL);
  13045. // bool Drawable::IsInView(const FrameInfo& frame, bool anyCamera = false) const
  13046. engine->RegisterObjectMethod(className, "bool IsInView(const FrameInfo&in, bool = false) const", AS_METHODPR(T, IsInView, (const FrameInfo&, bool) const, bool), AS_CALL_THISCALL);
  13047. // bool Drawable::IsOccludee() const
  13048. engine->RegisterObjectMethod(className, "bool IsOccludee() const", AS_METHODPR(T, IsOccludee, () const, bool), AS_CALL_THISCALL);
  13049. engine->RegisterObjectMethod(className, "bool get_occludee() const", AS_METHODPR(T, IsOccludee, () const, bool), AS_CALL_THISCALL);
  13050. // bool Drawable::IsOccluder() const
  13051. engine->RegisterObjectMethod(className, "bool IsOccluder() const", AS_METHODPR(T, IsOccluder, () const, bool), AS_CALL_THISCALL);
  13052. engine->RegisterObjectMethod(className, "bool get_occluder() const", AS_METHODPR(T, IsOccluder, () const, bool), AS_CALL_THISCALL);
  13053. // bool Drawable::IsZoneDirty() const
  13054. engine->RegisterObjectMethod(className, "bool IsZoneDirty() const", AS_METHODPR(T, IsZoneDirty, () const, bool), AS_CALL_THISCALL);
  13055. // void Drawable::LimitLights()
  13056. engine->RegisterObjectMethod(className, "void LimitLights()", AS_METHODPR(T, LimitLights, (), void), AS_CALL_THISCALL);
  13057. // void Drawable::LimitVertexLights(bool removeConvertedLights)
  13058. engine->RegisterObjectMethod(className, "void LimitVertexLights(bool)", AS_METHODPR(T, LimitVertexLights, (bool), void), AS_CALL_THISCALL);
  13059. // void Drawable::MarkForUpdate()
  13060. engine->RegisterObjectMethod(className, "void MarkForUpdate()", AS_METHODPR(T, MarkForUpdate, (), void), AS_CALL_THISCALL);
  13061. // void Drawable::MarkInView(const FrameInfo& frame)
  13062. engine->RegisterObjectMethod(className, "void MarkInView(const FrameInfo&in)", AS_METHODPR(T, MarkInView, (const FrameInfo&), void), AS_CALL_THISCALL);
  13063. // void Drawable::MarkInView(unsigned frameNumber)
  13064. engine->RegisterObjectMethod(className, "void MarkInView(uint)", AS_METHODPR(T, MarkInView, (unsigned), void), AS_CALL_THISCALL);
  13065. // void Drawable::OnSetEnabled() override
  13066. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  13067. // void Drawable::SetBasePass(unsigned batchIndex)
  13068. engine->RegisterObjectMethod(className, "void SetBasePass(uint)", AS_METHODPR(T, SetBasePass, (unsigned), void), AS_CALL_THISCALL);
  13069. // void Drawable::SetCastShadows(bool enable)
  13070. engine->RegisterObjectMethod(className, "void SetCastShadows(bool)", AS_METHODPR(T, SetCastShadows, (bool), void), AS_CALL_THISCALL);
  13071. engine->RegisterObjectMethod(className, "void set_castShadows(bool)", AS_METHODPR(T, SetCastShadows, (bool), void), AS_CALL_THISCALL);
  13072. // void Drawable::SetDrawDistance(float distance)
  13073. engine->RegisterObjectMethod(className, "void SetDrawDistance(float)", AS_METHODPR(T, SetDrawDistance, (float), void), AS_CALL_THISCALL);
  13074. engine->RegisterObjectMethod(className, "void set_drawDistance(float)", AS_METHODPR(T, SetDrawDistance, (float), void), AS_CALL_THISCALL);
  13075. // void Drawable::SetLightMask(unsigned mask)
  13076. engine->RegisterObjectMethod(className, "void SetLightMask(uint)", AS_METHODPR(T, SetLightMask, (unsigned), void), AS_CALL_THISCALL);
  13077. engine->RegisterObjectMethod(className, "void set_lightMask(uint)", AS_METHODPR(T, SetLightMask, (unsigned), void), AS_CALL_THISCALL);
  13078. // void Drawable::SetLodBias(float bias)
  13079. engine->RegisterObjectMethod(className, "void SetLodBias(float)", AS_METHODPR(T, SetLodBias, (float), void), AS_CALL_THISCALL);
  13080. engine->RegisterObjectMethod(className, "void set_lodBias(float)", AS_METHODPR(T, SetLodBias, (float), void), AS_CALL_THISCALL);
  13081. // void Drawable::SetMaxLights(unsigned num)
  13082. engine->RegisterObjectMethod(className, "void SetMaxLights(uint)", AS_METHODPR(T, SetMaxLights, (unsigned), void), AS_CALL_THISCALL);
  13083. engine->RegisterObjectMethod(className, "void set_maxLights(uint)", AS_METHODPR(T, SetMaxLights, (unsigned), void), AS_CALL_THISCALL);
  13084. // void Drawable::SetMinMaxZ(float minZ, float maxZ)
  13085. engine->RegisterObjectMethod(className, "void SetMinMaxZ(float, float)", AS_METHODPR(T, SetMinMaxZ, (float, float), void), AS_CALL_THISCALL);
  13086. // void Drawable::SetOccludee(bool enable)
  13087. engine->RegisterObjectMethod(className, "void SetOccludee(bool)", AS_METHODPR(T, SetOccludee, (bool), void), AS_CALL_THISCALL);
  13088. engine->RegisterObjectMethod(className, "void set_occludee(bool)", AS_METHODPR(T, SetOccludee, (bool), void), AS_CALL_THISCALL);
  13089. // void Drawable::SetOccluder(bool enable)
  13090. engine->RegisterObjectMethod(className, "void SetOccluder(bool)", AS_METHODPR(T, SetOccluder, (bool), void), AS_CALL_THISCALL);
  13091. engine->RegisterObjectMethod(className, "void set_occluder(bool)", AS_METHODPR(T, SetOccluder, (bool), void), AS_CALL_THISCALL);
  13092. // void Drawable::SetShadowDistance(float distance)
  13093. engine->RegisterObjectMethod(className, "void SetShadowDistance(float)", AS_METHODPR(T, SetShadowDistance, (float), void), AS_CALL_THISCALL);
  13094. engine->RegisterObjectMethod(className, "void set_shadowDistance(float)", AS_METHODPR(T, SetShadowDistance, (float), void), AS_CALL_THISCALL);
  13095. // void Drawable::SetShadowMask(unsigned mask)
  13096. engine->RegisterObjectMethod(className, "void SetShadowMask(uint)", AS_METHODPR(T, SetShadowMask, (unsigned), void), AS_CALL_THISCALL);
  13097. engine->RegisterObjectMethod(className, "void set_shadowMask(uint)", AS_METHODPR(T, SetShadowMask, (unsigned), void), AS_CALL_THISCALL);
  13098. // void Drawable::SetSortValue(float value)
  13099. engine->RegisterObjectMethod(className, "void SetSortValue(float)", AS_METHODPR(T, SetSortValue, (float), void), AS_CALL_THISCALL);
  13100. // void Drawable::SetViewMask(unsigned mask)
  13101. engine->RegisterObjectMethod(className, "void SetViewMask(uint)", AS_METHODPR(T, SetViewMask, (unsigned), void), AS_CALL_THISCALL);
  13102. engine->RegisterObjectMethod(className, "void set_viewMask(uint)", AS_METHODPR(T, SetViewMask, (unsigned), void), AS_CALL_THISCALL);
  13103. // void Drawable::SetZone(Zone* zone, bool temporary = false)
  13104. engine->RegisterObjectMethod(className, "void SetZone(Zone@+, bool = false)", AS_METHODPR(T, SetZone, (Zone*, bool), void), AS_CALL_THISCALL);
  13105. // void Drawable::SetZoneMask(unsigned mask)
  13106. engine->RegisterObjectMethod(className, "void SetZoneMask(uint)", AS_METHODPR(T, SetZoneMask, (unsigned), void), AS_CALL_THISCALL);
  13107. engine->RegisterObjectMethod(className, "void set_zoneMask(uint)", AS_METHODPR(T, SetZoneMask, (unsigned), void), AS_CALL_THISCALL);
  13108. // virtual void Drawable::UpdateBatches(const FrameInfo& frame)
  13109. engine->RegisterObjectMethod(className, "void UpdateBatches(const FrameInfo&in)", AS_METHODPR(T, UpdateBatches, (const FrameInfo&), void), AS_CALL_THISCALL);
  13110. // virtual void Drawable::UpdateGeometry(const FrameInfo& frame)
  13111. engine->RegisterObjectMethod(className, "void UpdateGeometry(const FrameInfo&in)", AS_METHODPR(T, UpdateGeometry, (const FrameInfo&), void), AS_CALL_THISCALL);
  13112. #ifdef REGISTER_MEMBERS_MANUAL_PART_Drawable
  13113. REGISTER_MEMBERS_MANUAL_PART_Drawable();
  13114. #endif
  13115. }
  13116. // class LogicComponent | File: ../Scene/LogicComponent.h
  13117. template <class T> void RegisterMembers_LogicComponent(asIScriptEngine* engine, const char* className)
  13118. {
  13119. RegisterMembers_Component<T>(engine, className);
  13120. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  13121. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  13122. #ifdef REGISTER_MEMBERS_MANUAL_PART_LogicComponent
  13123. REGISTER_MEMBERS_MANUAL_PART_LogicComponent();
  13124. #endif
  13125. }
  13126. // class Octree | File: ../Graphics/Octree.h
  13127. template <class T> void RegisterMembers_Octree(asIScriptEngine* engine, const char* className)
  13128. {
  13129. RegisterMembers_Component<T>(engine, className);
  13130. RegisterMembers_Octant<T>(engine, className);
  13131. // void Octree::GetDrawables(OctreeQuery& query) const
  13132. // Not registered because have @nobind mark
  13133. // void Octree::Raycast(RayOctreeQuery& query) const
  13134. // Error: type "RayOctreeQuery" can not automatically bind bacause have @nobind mark
  13135. // void Octree::RaycastSingle(RayOctreeQuery& query) const
  13136. // Error: type "RayOctreeQuery" can not automatically bind bacause have @nobind mark
  13137. // void Octree::AddManualDrawable(Drawable* drawable)
  13138. engine->RegisterObjectMethod(className, "void AddManualDrawable(Drawable@+)", AS_METHODPR(T, AddManualDrawable, (Drawable*), void), AS_CALL_THISCALL);
  13139. // void Octree::CancelUpdate(Drawable* drawable)
  13140. engine->RegisterObjectMethod(className, "void CancelUpdate(Drawable@+)", AS_METHODPR(T, CancelUpdate, (Drawable*), void), AS_CALL_THISCALL);
  13141. // void Octree::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  13142. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  13143. // void Octree::DrawDebugGeometry(bool depthTest)
  13144. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(bool)", AS_METHODPR(T, DrawDebugGeometry, (bool), void), AS_CALL_THISCALL);
  13145. // unsigned Octree::GetNumLevels() const
  13146. engine->RegisterObjectMethod(className, "uint GetNumLevels() const", AS_METHODPR(T, GetNumLevels, () const, unsigned), AS_CALL_THISCALL);
  13147. engine->RegisterObjectMethod(className, "uint get_numLevels() const", AS_METHODPR(T, GetNumLevels, () const, unsigned), AS_CALL_THISCALL);
  13148. // virtual void Component::OnSetEnabled()
  13149. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  13150. // void Octree::QueueUpdate(Drawable* drawable)
  13151. engine->RegisterObjectMethod(className, "void QueueUpdate(Drawable@+)", AS_METHODPR(T, QueueUpdate, (Drawable*), void), AS_CALL_THISCALL);
  13152. // void Octree::RemoveManualDrawable(Drawable* drawable)
  13153. engine->RegisterObjectMethod(className, "void RemoveManualDrawable(Drawable@+)", AS_METHODPR(T, RemoveManualDrawable, (Drawable*), void), AS_CALL_THISCALL);
  13154. // void Octree::SetSize(const BoundingBox& box, unsigned numLevels)
  13155. engine->RegisterObjectMethod(className, "void SetSize(const BoundingBox&in, uint)", AS_METHODPR(T, SetSize, (const BoundingBox&, unsigned), void), AS_CALL_THISCALL);
  13156. // void Octree::Update(const FrameInfo& frame)
  13157. engine->RegisterObjectMethod(className, "void Update(const FrameInfo&in)", AS_METHODPR(T, Update, (const FrameInfo&), void), AS_CALL_THISCALL);
  13158. #ifdef REGISTER_MEMBERS_MANUAL_PART_Octree
  13159. REGISTER_MEMBERS_MANUAL_PART_Octree();
  13160. #endif
  13161. }
  13162. // const Vector<SharedPtr<PackageFile>>& Scene::GetRequiredPackageFiles() const
  13163. template <class T> CScriptArray* Scene_constspVectorlesSharedPtrlesPackageFilegregreamp_GetRequiredPackageFiles_void_template(T* _ptr)
  13164. {
  13165. const Vector<SharedPtr<PackageFile>>& result = _ptr->GetRequiredPackageFiles();
  13166. return VectorToHandleArray(result, "Array<PackageFile@>");
  13167. }
  13168. // class Scene | File: ../Scene/Scene.h
  13169. template <class T> void RegisterMembers_Scene(asIScriptEngine* engine, const char* className)
  13170. {
  13171. RegisterMembers_Node<T>(engine, className);
  13172. // bool Scene::GetNodesWithTag(PODVector<Node*>& dest, const String& tag) const
  13173. // Error: type "PODVector<Node*>&" can not automatically bind
  13174. // void Scene::AddRequiredPackageFile(PackageFile* package)
  13175. engine->RegisterObjectMethod(className, "void AddRequiredPackageFile(PackageFile@+)", AS_METHODPR(T, AddRequiredPackageFile, (PackageFile*), void), AS_CALL_THISCALL);
  13176. // void Scene::BeginThreadedUpdate()
  13177. engine->RegisterObjectMethod(className, "void BeginThreadedUpdate()", AS_METHODPR(T, BeginThreadedUpdate, (), void), AS_CALL_THISCALL);
  13178. // void Scene::Clear(bool clearReplicated = true, bool clearLocal = true)
  13179. engine->RegisterObjectMethod(className, "void Clear(bool = true, bool = true)", AS_METHODPR(T, Clear, (bool, bool), void), AS_CALL_THISCALL);
  13180. // void Scene::ClearRequiredPackageFiles()
  13181. engine->RegisterObjectMethod(className, "void ClearRequiredPackageFiles()", AS_METHODPR(T, ClearRequiredPackageFiles, (), void), AS_CALL_THISCALL);
  13182. // void Scene::ComponentAdded(Component* component)
  13183. engine->RegisterObjectMethod(className, "void ComponentAdded(Component@+)", AS_METHODPR(T, ComponentAdded, (Component*), void), AS_CALL_THISCALL);
  13184. // void Scene::ComponentRemoved(Component* component)
  13185. engine->RegisterObjectMethod(className, "void ComponentRemoved(Component@+)", AS_METHODPR(T, ComponentRemoved, (Component*), void), AS_CALL_THISCALL);
  13186. // void Scene::DelayedMarkedDirty(Component* component)
  13187. engine->RegisterObjectMethod(className, "void DelayedMarkedDirty(Component@+)", AS_METHODPR(T, DelayedMarkedDirty, (Component*), void), AS_CALL_THISCALL);
  13188. // void Scene::EndThreadedUpdate()
  13189. engine->RegisterObjectMethod(className, "void EndThreadedUpdate()", AS_METHODPR(T, EndThreadedUpdate, (), void), AS_CALL_THISCALL);
  13190. // int Scene::GetAsyncLoadingMs() const
  13191. engine->RegisterObjectMethod(className, "int GetAsyncLoadingMs() const", AS_METHODPR(T, GetAsyncLoadingMs, () const, int), AS_CALL_THISCALL);
  13192. engine->RegisterObjectMethod(className, "int get_asyncLoadingMs() const", AS_METHODPR(T, GetAsyncLoadingMs, () const, int), AS_CALL_THISCALL);
  13193. // LoadMode Scene::GetAsyncLoadMode() const
  13194. engine->RegisterObjectMethod(className, "LoadMode GetAsyncLoadMode() const", AS_METHODPR(T, GetAsyncLoadMode, () const, LoadMode), AS_CALL_THISCALL);
  13195. engine->RegisterObjectMethod(className, "LoadMode get_asyncLoadMode() const", AS_METHODPR(T, GetAsyncLoadMode, () const, LoadMode), AS_CALL_THISCALL);
  13196. // float Scene::GetAsyncProgress() const
  13197. engine->RegisterObjectMethod(className, "float GetAsyncProgress() const", AS_METHODPR(T, GetAsyncProgress, () const, float), AS_CALL_THISCALL);
  13198. engine->RegisterObjectMethod(className, "float get_asyncProgress() const", AS_METHODPR(T, GetAsyncProgress, () const, float), AS_CALL_THISCALL);
  13199. // unsigned Scene::GetChecksum() const
  13200. engine->RegisterObjectMethod(className, "uint GetChecksum() const", AS_METHODPR(T, GetChecksum, () const, unsigned), AS_CALL_THISCALL);
  13201. engine->RegisterObjectMethod(className, "uint get_checksum() const", AS_METHODPR(T, GetChecksum, () const, unsigned), AS_CALL_THISCALL);
  13202. // Component* Scene::GetComponent(unsigned id) const
  13203. engine->RegisterObjectMethod(className, "Component@+ GetComponent(uint) const", AS_METHODPR(T, GetComponent, (unsigned) const, Component*), AS_CALL_THISCALL);
  13204. // float Scene::GetElapsedTime() const
  13205. engine->RegisterObjectMethod(className, "float GetElapsedTime() const", AS_METHODPR(T, GetElapsedTime, () const, float), AS_CALL_THISCALL);
  13206. engine->RegisterObjectMethod(className, "float get_elapsedTime() const", AS_METHODPR(T, GetElapsedTime, () const, float), AS_CALL_THISCALL);
  13207. // const String& Scene::GetFileName() const
  13208. engine->RegisterObjectMethod(className, "const String& GetFileName() const", AS_METHODPR(T, GetFileName, () const, const String&), AS_CALL_THISCALL);
  13209. engine->RegisterObjectMethod(className, "const String& get_fileName() const", AS_METHODPR(T, GetFileName, () const, const String&), AS_CALL_THISCALL);
  13210. // unsigned Scene::GetFreeComponentID(CreateMode mode)
  13211. engine->RegisterObjectMethod(className, "uint GetFreeComponentID(CreateMode)", AS_METHODPR(T, GetFreeComponentID, (CreateMode), unsigned), AS_CALL_THISCALL);
  13212. // unsigned Scene::GetFreeNodeID(CreateMode mode)
  13213. engine->RegisterObjectMethod(className, "uint GetFreeNodeID(CreateMode)", AS_METHODPR(T, GetFreeNodeID, (CreateMode), unsigned), AS_CALL_THISCALL);
  13214. // Node* Scene::GetNode(unsigned id) const
  13215. engine->RegisterObjectMethod(className, "Node@+ GetNode(uint) const", AS_METHODPR(T, GetNode, (unsigned) const, Node*), AS_CALL_THISCALL);
  13216. // const Vector<SharedPtr<PackageFile>>& Scene::GetRequiredPackageFiles() const
  13217. engine->RegisterObjectMethod(className, "Array<PackageFile@>@ GetRequiredPackageFiles() const", AS_FUNCTION_OBJFIRST(Scene_constspVectorlesSharedPtrlesPackageFilegregreamp_GetRequiredPackageFiles_void_template<Scene>), AS_CALL_CDECL_OBJFIRST);
  13218. engine->RegisterObjectMethod(className, "Array<PackageFile@>@ get_requiredPackageFiles() const", AS_FUNCTION_OBJFIRST(Scene_constspVectorlesSharedPtrlesPackageFilegregreamp_GetRequiredPackageFiles_void_template<Scene>), AS_CALL_CDECL_OBJFIRST);
  13219. // float Scene::GetSmoothingConstant() const
  13220. engine->RegisterObjectMethod(className, "float GetSmoothingConstant() const", AS_METHODPR(T, GetSmoothingConstant, () const, float), AS_CALL_THISCALL);
  13221. engine->RegisterObjectMethod(className, "float get_smoothingConstant() const", AS_METHODPR(T, GetSmoothingConstant, () const, float), AS_CALL_THISCALL);
  13222. // float Scene::GetSnapThreshold() const
  13223. engine->RegisterObjectMethod(className, "float GetSnapThreshold() const", AS_METHODPR(T, GetSnapThreshold, () const, float), AS_CALL_THISCALL);
  13224. engine->RegisterObjectMethod(className, "float get_snapThreshold() const", AS_METHODPR(T, GetSnapThreshold, () const, float), AS_CALL_THISCALL);
  13225. // float Scene::GetTimeScale() const
  13226. engine->RegisterObjectMethod(className, "float GetTimeScale() const", AS_METHODPR(T, GetTimeScale, () const, float), AS_CALL_THISCALL);
  13227. engine->RegisterObjectMethod(className, "float get_timeScale() const", AS_METHODPR(T, GetTimeScale, () const, float), AS_CALL_THISCALL);
  13228. // const String& Scene::GetVarName(StringHash hash) const
  13229. engine->RegisterObjectMethod(className, "const String& GetVarName(StringHash) const", AS_METHODPR(T, GetVarName, (StringHash) const, const String&), AS_CALL_THISCALL);
  13230. // String Scene::GetVarNamesAttr() const
  13231. engine->RegisterObjectMethod(className, "String GetVarNamesAttr() const", AS_METHODPR(T, GetVarNamesAttr, () const, String), AS_CALL_THISCALL);
  13232. // Node* Scene::Instantiate(Deserializer& source, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  13233. engine->RegisterObjectMethod(className, "Node@+ Instantiate(Deserializer&, const Vector3&in, const Quaternion&in, CreateMode = REPLICATED)", AS_METHODPR(T, Instantiate, (Deserializer&, const Vector3&, const Quaternion&, CreateMode), Node*), AS_CALL_THISCALL);
  13234. // Node* Scene::InstantiateJSON(const JSONValue& source, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  13235. engine->RegisterObjectMethod(className, "Node@+ InstantiateJSON(const JSONValue&in, const Vector3&in, const Quaternion&in, CreateMode = REPLICATED)", AS_METHODPR(T, InstantiateJSON, (const JSONValue&, const Vector3&, const Quaternion&, CreateMode), Node*), AS_CALL_THISCALL);
  13236. // Node* Scene::InstantiateJSON(Deserializer& source, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  13237. engine->RegisterObjectMethod(className, "Node@+ InstantiateJSON(Deserializer&, const Vector3&in, const Quaternion&in, CreateMode = REPLICATED)", AS_METHODPR(T, InstantiateJSON, (Deserializer&, const Vector3&, const Quaternion&, CreateMode), Node*), AS_CALL_THISCALL);
  13238. // Node* Scene::InstantiateXML(const XMLElement& source, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  13239. engine->RegisterObjectMethod(className, "Node@+ InstantiateXML(const XMLElement&in, const Vector3&in, const Quaternion&in, CreateMode = REPLICATED)", AS_METHODPR(T, InstantiateXML, (const XMLElement&, const Vector3&, const Quaternion&, CreateMode), Node*), AS_CALL_THISCALL);
  13240. // Node* Scene::InstantiateXML(Deserializer& source, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  13241. engine->RegisterObjectMethod(className, "Node@+ InstantiateXML(Deserializer&, const Vector3&in, const Quaternion&in, CreateMode = REPLICATED)", AS_METHODPR(T, InstantiateXML, (Deserializer&, const Vector3&, const Quaternion&, CreateMode), Node*), AS_CALL_THISCALL);
  13242. // bool Scene::IsAsyncLoading() const
  13243. engine->RegisterObjectMethod(className, "bool IsAsyncLoading() const", AS_METHODPR(T, IsAsyncLoading, () const, bool), AS_CALL_THISCALL);
  13244. engine->RegisterObjectMethod(className, "bool get_asyncLoading() const", AS_METHODPR(T, IsAsyncLoading, () const, bool), AS_CALL_THISCALL);
  13245. // bool Scene::IsThreadedUpdate() const
  13246. engine->RegisterObjectMethod(className, "bool IsThreadedUpdate() const", AS_METHODPR(T, IsThreadedUpdate, () const, bool), AS_CALL_THISCALL);
  13247. // bool Scene::IsUpdateEnabled() const
  13248. engine->RegisterObjectMethod(className, "bool IsUpdateEnabled() const", AS_METHODPR(T, IsUpdateEnabled, () const, bool), AS_CALL_THISCALL);
  13249. engine->RegisterObjectMethod(className, "bool get_updateEnabled() const", AS_METHODPR(T, IsUpdateEnabled, () const, bool), AS_CALL_THISCALL);
  13250. // bool Scene::LoadAsync(File* file, LoadMode mode = LOAD_SCENE_AND_RESOURCES)
  13251. engine->RegisterObjectMethod(className, "bool LoadAsync(File@+, LoadMode = LOAD_SCENE_AND_RESOURCES)", AS_METHODPR(T, LoadAsync, (File*, LoadMode), bool), AS_CALL_THISCALL);
  13252. // bool Scene::LoadAsyncJSON(File* file, LoadMode mode = LOAD_SCENE_AND_RESOURCES)
  13253. engine->RegisterObjectMethod(className, "bool LoadAsyncJSON(File@+, LoadMode = LOAD_SCENE_AND_RESOURCES)", AS_METHODPR(T, LoadAsyncJSON, (File*, LoadMode), bool), AS_CALL_THISCALL);
  13254. // bool Scene::LoadAsyncXML(File* file, LoadMode mode = LOAD_SCENE_AND_RESOURCES)
  13255. engine->RegisterObjectMethod(className, "bool LoadAsyncXML(File@+, LoadMode = LOAD_SCENE_AND_RESOURCES)", AS_METHODPR(T, LoadAsyncXML, (File*, LoadMode), bool), AS_CALL_THISCALL);
  13256. // bool Scene::LoadJSON(Deserializer& source)
  13257. engine->RegisterObjectMethod(className, "bool LoadJSON(Deserializer&)", AS_METHODPR(T, LoadJSON, (Deserializer&), bool), AS_CALL_THISCALL);
  13258. // bool Scene::LoadXML(Deserializer& source)
  13259. engine->RegisterObjectMethod(className, "bool LoadXML(Deserializer&)", AS_METHODPR(T, LoadXML, (Deserializer&), bool), AS_CALL_THISCALL);
  13260. // void Scene::MarkNetworkUpdate(Node* node)
  13261. engine->RegisterObjectMethod(className, "void MarkNetworkUpdate(Node@+)", AS_METHODPR(T, MarkNetworkUpdate, (Node*), void), AS_CALL_THISCALL);
  13262. // void Scene::MarkNetworkUpdate(Component* component)
  13263. engine->RegisterObjectMethod(className, "void MarkNetworkUpdate(Component@+)", AS_METHODPR(T, MarkNetworkUpdate, (Component*), void), AS_CALL_THISCALL);
  13264. // void Scene::MarkReplicationDirty(Node* node)
  13265. engine->RegisterObjectMethod(className, "void MarkReplicationDirty(Node@+)", AS_METHODPR(T, MarkReplicationDirty, (Node*), void), AS_CALL_THISCALL);
  13266. // void Scene::NodeAdded(Node* node)
  13267. engine->RegisterObjectMethod(className, "void NodeAdded(Node@+)", AS_METHODPR(T, NodeAdded, (Node*), void), AS_CALL_THISCALL);
  13268. // void Scene::NodeRemoved(Node* node)
  13269. engine->RegisterObjectMethod(className, "void NodeRemoved(Node@+)", AS_METHODPR(T, NodeRemoved, (Node*), void), AS_CALL_THISCALL);
  13270. // void Scene::NodeTagAdded(Node* node, const String& tag)
  13271. engine->RegisterObjectMethod(className, "void NodeTagAdded(Node@+, const String&in)", AS_METHODPR(T, NodeTagAdded, (Node*, const String&), void), AS_CALL_THISCALL);
  13272. // void Scene::NodeTagRemoved(Node* node, const String& tag)
  13273. engine->RegisterObjectMethod(className, "void NodeTagRemoved(Node@+, const String&in)", AS_METHODPR(T, NodeTagRemoved, (Node*, const String&), void), AS_CALL_THISCALL);
  13274. // void Scene::RegisterVar(const String& name)
  13275. engine->RegisterObjectMethod(className, "void RegisterVar(const String&in)", AS_METHODPR(T, RegisterVar, (const String&), void), AS_CALL_THISCALL);
  13276. // void Scene::SetAsyncLoadingMs(int ms)
  13277. engine->RegisterObjectMethod(className, "void SetAsyncLoadingMs(int)", AS_METHODPR(T, SetAsyncLoadingMs, (int), void), AS_CALL_THISCALL);
  13278. engine->RegisterObjectMethod(className, "void set_asyncLoadingMs(int)", AS_METHODPR(T, SetAsyncLoadingMs, (int), void), AS_CALL_THISCALL);
  13279. // void Scene::SetElapsedTime(float time)
  13280. engine->RegisterObjectMethod(className, "void SetElapsedTime(float)", AS_METHODPR(T, SetElapsedTime, (float), void), AS_CALL_THISCALL);
  13281. engine->RegisterObjectMethod(className, "void set_elapsedTime(float)", AS_METHODPR(T, SetElapsedTime, (float), void), AS_CALL_THISCALL);
  13282. // void Scene::SetSmoothingConstant(float constant)
  13283. engine->RegisterObjectMethod(className, "void SetSmoothingConstant(float)", AS_METHODPR(T, SetSmoothingConstant, (float), void), AS_CALL_THISCALL);
  13284. engine->RegisterObjectMethod(className, "void set_smoothingConstant(float)", AS_METHODPR(T, SetSmoothingConstant, (float), void), AS_CALL_THISCALL);
  13285. // void Scene::SetSnapThreshold(float threshold)
  13286. engine->RegisterObjectMethod(className, "void SetSnapThreshold(float)", AS_METHODPR(T, SetSnapThreshold, (float), void), AS_CALL_THISCALL);
  13287. engine->RegisterObjectMethod(className, "void set_snapThreshold(float)", AS_METHODPR(T, SetSnapThreshold, (float), void), AS_CALL_THISCALL);
  13288. // void Scene::SetTimeScale(float scale)
  13289. engine->RegisterObjectMethod(className, "void SetTimeScale(float)", AS_METHODPR(T, SetTimeScale, (float), void), AS_CALL_THISCALL);
  13290. engine->RegisterObjectMethod(className, "void set_timeScale(float)", AS_METHODPR(T, SetTimeScale, (float), void), AS_CALL_THISCALL);
  13291. // void Scene::SetUpdateEnabled(bool enable)
  13292. engine->RegisterObjectMethod(className, "void SetUpdateEnabled(bool)", AS_METHODPR(T, SetUpdateEnabled, (bool), void), AS_CALL_THISCALL);
  13293. engine->RegisterObjectMethod(className, "void set_updateEnabled(bool)", AS_METHODPR(T, SetUpdateEnabled, (bool), void), AS_CALL_THISCALL);
  13294. // void Scene::SetVarNamesAttr(const String& value)
  13295. engine->RegisterObjectMethod(className, "void SetVarNamesAttr(const String&in)", AS_METHODPR(T, SetVarNamesAttr, (const String&), void), AS_CALL_THISCALL);
  13296. // void Scene::StopAsyncLoading()
  13297. engine->RegisterObjectMethod(className, "void StopAsyncLoading()", AS_METHODPR(T, StopAsyncLoading, (), void), AS_CALL_THISCALL);
  13298. // void Scene::UnregisterAllVars()
  13299. engine->RegisterObjectMethod(className, "void UnregisterAllVars()", AS_METHODPR(T, UnregisterAllVars, (), void), AS_CALL_THISCALL);
  13300. // void Scene::UnregisterVar(const String& name)
  13301. engine->RegisterObjectMethod(className, "void UnregisterVar(const String&in)", AS_METHODPR(T, UnregisterVar, (const String&), void), AS_CALL_THISCALL);
  13302. // void Scene::Update(float timeStep)
  13303. engine->RegisterObjectMethod(className, "void Update(float)", AS_METHODPR(T, Update, (float), void), AS_CALL_THISCALL);
  13304. // static bool Scene::IsReplicatedID(unsigned id)
  13305. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("bool IsReplicatedID(uint)", AS_FUNCTIONPR(T::IsReplicatedID, (unsigned), bool), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  13306. #ifdef REGISTER_MEMBERS_MANUAL_PART_Scene
  13307. REGISTER_MEMBERS_MANUAL_PART_Scene();
  13308. #endif
  13309. }
  13310. // class ScrollView | File: ../UI/ScrollView.h
  13311. template <class T> void RegisterMembers_ScrollView(asIScriptEngine* engine, const char* className)
  13312. {
  13313. RegisterMembers_UIElement<T>(engine, className);
  13314. // bool ScrollView::GetAutoDisableChildren() const
  13315. engine->RegisterObjectMethod(className, "bool GetAutoDisableChildren() const", AS_METHODPR(T, GetAutoDisableChildren, () const, bool), AS_CALL_THISCALL);
  13316. engine->RegisterObjectMethod(className, "bool get_autoDisableChildren() const", AS_METHODPR(T, GetAutoDisableChildren, () const, bool), AS_CALL_THISCALL);
  13317. // float ScrollView::GetAutoDisableThreshold() const
  13318. engine->RegisterObjectMethod(className, "float GetAutoDisableThreshold() const", AS_METHODPR(T, GetAutoDisableThreshold, () const, float), AS_CALL_THISCALL);
  13319. engine->RegisterObjectMethod(className, "float get_autoDisableThreshold() const", AS_METHODPR(T, GetAutoDisableThreshold, () const, float), AS_CALL_THISCALL);
  13320. // UIElement* ScrollView::GetContentElement() const
  13321. engine->RegisterObjectMethod(className, "UIElement@+ GetContentElement() const", AS_METHODPR(T, GetContentElement, () const, UIElement*), AS_CALL_THISCALL);
  13322. engine->RegisterObjectMethod(className, "UIElement@+ get_contentElement() const", AS_METHODPR(T, GetContentElement, () const, UIElement*), AS_CALL_THISCALL);
  13323. // ScrollBar* ScrollView::GetHorizontalScrollBar() const
  13324. engine->RegisterObjectMethod(className, "ScrollBar@+ GetHorizontalScrollBar() const", AS_METHODPR(T, GetHorizontalScrollBar, () const, ScrollBar*), AS_CALL_THISCALL);
  13325. engine->RegisterObjectMethod(className, "ScrollBar@+ get_horizontalScrollBar() const", AS_METHODPR(T, GetHorizontalScrollBar, () const, ScrollBar*), AS_CALL_THISCALL);
  13326. // bool ScrollView::GetHorizontalScrollBarVisible() const
  13327. engine->RegisterObjectMethod(className, "bool GetHorizontalScrollBarVisible() const", AS_METHODPR(T, GetHorizontalScrollBarVisible, () const, bool), AS_CALL_THISCALL);
  13328. engine->RegisterObjectMethod(className, "bool get_horizontalScrollBarVisible() const", AS_METHODPR(T, GetHorizontalScrollBarVisible, () const, bool), AS_CALL_THISCALL);
  13329. // float ScrollView::GetPageStep() const
  13330. engine->RegisterObjectMethod(className, "float GetPageStep() const", AS_METHODPR(T, GetPageStep, () const, float), AS_CALL_THISCALL);
  13331. engine->RegisterObjectMethod(className, "float get_pageStep() const", AS_METHODPR(T, GetPageStep, () const, float), AS_CALL_THISCALL);
  13332. // const IntVector2& UIElement::GetPosition() const
  13333. engine->RegisterObjectMethod(className, "const IntVector2& GetPosition() const", AS_METHODPR(T, GetPosition, () const, const IntVector2&), AS_CALL_THISCALL);
  13334. engine->RegisterObjectMethod(className, "const IntVector2& get_position() const", AS_METHODPR(T, GetPosition, () const, const IntVector2&), AS_CALL_THISCALL);
  13335. // bool ScrollView::GetScrollBarsAutoVisible() const
  13336. engine->RegisterObjectMethod(className, "bool GetScrollBarsAutoVisible() const", AS_METHODPR(T, GetScrollBarsAutoVisible, () const, bool), AS_CALL_THISCALL);
  13337. engine->RegisterObjectMethod(className, "bool get_scrollBarsAutoVisible() const", AS_METHODPR(T, GetScrollBarsAutoVisible, () const, bool), AS_CALL_THISCALL);
  13338. // float ScrollView::GetScrollDeceleration() const
  13339. engine->RegisterObjectMethod(className, "float GetScrollDeceleration() const", AS_METHODPR(T, GetScrollDeceleration, () const, float), AS_CALL_THISCALL);
  13340. engine->RegisterObjectMethod(className, "float get_scrollDeceleration() const", AS_METHODPR(T, GetScrollDeceleration, () const, float), AS_CALL_THISCALL);
  13341. // BorderImage* ScrollView::GetScrollPanel() const
  13342. engine->RegisterObjectMethod(className, "BorderImage@+ GetScrollPanel() const", AS_METHODPR(T, GetScrollPanel, () const, BorderImage*), AS_CALL_THISCALL);
  13343. engine->RegisterObjectMethod(className, "BorderImage@+ get_scrollPanel() const", AS_METHODPR(T, GetScrollPanel, () const, BorderImage*), AS_CALL_THISCALL);
  13344. // float ScrollView::GetScrollSnapEpsilon() const
  13345. engine->RegisterObjectMethod(className, "float GetScrollSnapEpsilon() const", AS_METHODPR(T, GetScrollSnapEpsilon, () const, float), AS_CALL_THISCALL);
  13346. engine->RegisterObjectMethod(className, "float get_scrollSnapEpsilon() const", AS_METHODPR(T, GetScrollSnapEpsilon, () const, float), AS_CALL_THISCALL);
  13347. // float ScrollView::GetScrollStep() const
  13348. engine->RegisterObjectMethod(className, "float GetScrollStep() const", AS_METHODPR(T, GetScrollStep, () const, float), AS_CALL_THISCALL);
  13349. engine->RegisterObjectMethod(className, "float get_scrollStep() const", AS_METHODPR(T, GetScrollStep, () const, float), AS_CALL_THISCALL);
  13350. // ScrollBar* ScrollView::GetVerticalScrollBar() const
  13351. engine->RegisterObjectMethod(className, "ScrollBar@+ GetVerticalScrollBar() const", AS_METHODPR(T, GetVerticalScrollBar, () const, ScrollBar*), AS_CALL_THISCALL);
  13352. engine->RegisterObjectMethod(className, "ScrollBar@+ get_verticalScrollBar() const", AS_METHODPR(T, GetVerticalScrollBar, () const, ScrollBar*), AS_CALL_THISCALL);
  13353. // bool ScrollView::GetVerticalScrollBarVisible() const
  13354. engine->RegisterObjectMethod(className, "bool GetVerticalScrollBarVisible() const", AS_METHODPR(T, GetVerticalScrollBarVisible, () const, bool), AS_CALL_THISCALL);
  13355. engine->RegisterObjectMethod(className, "bool get_verticalScrollBarVisible() const", AS_METHODPR(T, GetVerticalScrollBarVisible, () const, bool), AS_CALL_THISCALL);
  13356. // const IntVector2& ScrollView::GetViewPosition() const
  13357. engine->RegisterObjectMethod(className, "const IntVector2& GetViewPosition() const", AS_METHODPR(T, GetViewPosition, () const, const IntVector2&), AS_CALL_THISCALL);
  13358. engine->RegisterObjectMethod(className, "const IntVector2& get_viewPosition() const", AS_METHODPR(T, GetViewPosition, () const, const IntVector2&), AS_CALL_THISCALL);
  13359. // void ScrollView::SetAutoDisableChildren(bool disable)
  13360. engine->RegisterObjectMethod(className, "void SetAutoDisableChildren(bool)", AS_METHODPR(T, SetAutoDisableChildren, (bool), void), AS_CALL_THISCALL);
  13361. engine->RegisterObjectMethod(className, "void set_autoDisableChildren(bool)", AS_METHODPR(T, SetAutoDisableChildren, (bool), void), AS_CALL_THISCALL);
  13362. // void ScrollView::SetAutoDisableThreshold(float amount)
  13363. engine->RegisterObjectMethod(className, "void SetAutoDisableThreshold(float)", AS_METHODPR(T, SetAutoDisableThreshold, (float), void), AS_CALL_THISCALL);
  13364. engine->RegisterObjectMethod(className, "void set_autoDisableThreshold(float)", AS_METHODPR(T, SetAutoDisableThreshold, (float), void), AS_CALL_THISCALL);
  13365. // void ScrollView::SetContentElement(UIElement* element)
  13366. engine->RegisterObjectMethod(className, "void SetContentElement(UIElement@+)", AS_METHODPR(T, SetContentElement, (UIElement*), void), AS_CALL_THISCALL);
  13367. engine->RegisterObjectMethod(className, "void set_contentElement(UIElement@+)", AS_METHODPR(T, SetContentElement, (UIElement*), void), AS_CALL_THISCALL);
  13368. // void ScrollView::SetHorizontalScrollBarVisible(bool visible)
  13369. engine->RegisterObjectMethod(className, "void SetHorizontalScrollBarVisible(bool)", AS_METHODPR(T, SetHorizontalScrollBarVisible, (bool), void), AS_CALL_THISCALL);
  13370. engine->RegisterObjectMethod(className, "void set_horizontalScrollBarVisible(bool)", AS_METHODPR(T, SetHorizontalScrollBarVisible, (bool), void), AS_CALL_THISCALL);
  13371. // void ScrollView::SetPageStep(float step)
  13372. engine->RegisterObjectMethod(className, "void SetPageStep(float)", AS_METHODPR(T, SetPageStep, (float), void), AS_CALL_THISCALL);
  13373. engine->RegisterObjectMethod(className, "void set_pageStep(float)", AS_METHODPR(T, SetPageStep, (float), void), AS_CALL_THISCALL);
  13374. // void UIElement::SetPosition(const IntVector2& position)
  13375. engine->RegisterObjectMethod(className, "void SetPosition(const IntVector2&in)", AS_METHODPR(T, SetPosition, (const IntVector2&), void), AS_CALL_THISCALL);
  13376. engine->RegisterObjectMethod(className, "void set_position(const IntVector2&in)", AS_METHODPR(T, SetPosition, (const IntVector2&), void), AS_CALL_THISCALL);
  13377. // void UIElement::SetPosition(int x, int y)
  13378. engine->RegisterObjectMethod(className, "void SetPosition(int, int)", AS_METHODPR(T, SetPosition, (int, int), void), AS_CALL_THISCALL);
  13379. // void ScrollView::SetScrollBarsAutoVisible(bool enable)
  13380. engine->RegisterObjectMethod(className, "void SetScrollBarsAutoVisible(bool)", AS_METHODPR(T, SetScrollBarsAutoVisible, (bool), void), AS_CALL_THISCALL);
  13381. engine->RegisterObjectMethod(className, "void set_scrollBarsAutoVisible(bool)", AS_METHODPR(T, SetScrollBarsAutoVisible, (bool), void), AS_CALL_THISCALL);
  13382. // void ScrollView::SetScrollBarsVisible(bool horizontal, bool vertical)
  13383. engine->RegisterObjectMethod(className, "void SetScrollBarsVisible(bool, bool)", AS_METHODPR(T, SetScrollBarsVisible, (bool, bool), void), AS_CALL_THISCALL);
  13384. // void ScrollView::SetScrollDeceleration(float deceleration)
  13385. engine->RegisterObjectMethod(className, "void SetScrollDeceleration(float)", AS_METHODPR(T, SetScrollDeceleration, (float), void), AS_CALL_THISCALL);
  13386. engine->RegisterObjectMethod(className, "void set_scrollDeceleration(float)", AS_METHODPR(T, SetScrollDeceleration, (float), void), AS_CALL_THISCALL);
  13387. // void ScrollView::SetScrollSnapEpsilon(float snap)
  13388. engine->RegisterObjectMethod(className, "void SetScrollSnapEpsilon(float)", AS_METHODPR(T, SetScrollSnapEpsilon, (float), void), AS_CALL_THISCALL);
  13389. engine->RegisterObjectMethod(className, "void set_scrollSnapEpsilon(float)", AS_METHODPR(T, SetScrollSnapEpsilon, (float), void), AS_CALL_THISCALL);
  13390. // void ScrollView::SetScrollStep(float step)
  13391. engine->RegisterObjectMethod(className, "void SetScrollStep(float)", AS_METHODPR(T, SetScrollStep, (float), void), AS_CALL_THISCALL);
  13392. engine->RegisterObjectMethod(className, "void set_scrollStep(float)", AS_METHODPR(T, SetScrollStep, (float), void), AS_CALL_THISCALL);
  13393. // void ScrollView::SetVerticalScrollBarVisible(bool visible)
  13394. engine->RegisterObjectMethod(className, "void SetVerticalScrollBarVisible(bool)", AS_METHODPR(T, SetVerticalScrollBarVisible, (bool), void), AS_CALL_THISCALL);
  13395. engine->RegisterObjectMethod(className, "void set_verticalScrollBarVisible(bool)", AS_METHODPR(T, SetVerticalScrollBarVisible, (bool), void), AS_CALL_THISCALL);
  13396. // void ScrollView::SetViewPosition(const IntVector2& position)
  13397. engine->RegisterObjectMethod(className, "void SetViewPosition(const IntVector2&in)", AS_METHODPR(T, SetViewPosition, (const IntVector2&), void), AS_CALL_THISCALL);
  13398. engine->RegisterObjectMethod(className, "void set_viewPosition(const IntVector2&in)", AS_METHODPR(T, SetViewPosition, (const IntVector2&), void), AS_CALL_THISCALL);
  13399. // void ScrollView::SetViewPosition(int x, int y)
  13400. engine->RegisterObjectMethod(className, "void SetViewPosition(int, int)", AS_METHODPR(T, SetViewPosition, (int, int), void), AS_CALL_THISCALL);
  13401. // void ScrollView::SetViewPositionAttr(const IntVector2& value)
  13402. engine->RegisterObjectMethod(className, "void SetViewPositionAttr(const IntVector2&in)", AS_METHODPR(T, SetViewPositionAttr, (const IntVector2&), void), AS_CALL_THISCALL);
  13403. #ifdef REGISTER_MEMBERS_MANUAL_PART_ScrollView
  13404. REGISTER_MEMBERS_MANUAL_PART_ScrollView();
  13405. #endif
  13406. }
  13407. // class SmoothedTransform | File: ../Scene/SmoothedTransform.h
  13408. template <class T> void RegisterMembers_SmoothedTransform(asIScriptEngine* engine, const char* className)
  13409. {
  13410. RegisterMembers_Component<T>(engine, className);
  13411. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  13412. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  13413. // const Vector3& SmoothedTransform::GetTargetPosition() const
  13414. engine->RegisterObjectMethod(className, "const Vector3& GetTargetPosition() const", AS_METHODPR(T, GetTargetPosition, () const, const Vector3&), AS_CALL_THISCALL);
  13415. engine->RegisterObjectMethod(className, "const Vector3& get_targetPosition() const", AS_METHODPR(T, GetTargetPosition, () const, const Vector3&), AS_CALL_THISCALL);
  13416. // const Quaternion& SmoothedTransform::GetTargetRotation() const
  13417. engine->RegisterObjectMethod(className, "const Quaternion& GetTargetRotation() const", AS_METHODPR(T, GetTargetRotation, () const, const Quaternion&), AS_CALL_THISCALL);
  13418. engine->RegisterObjectMethod(className, "const Quaternion& get_targetRotation() const", AS_METHODPR(T, GetTargetRotation, () const, const Quaternion&), AS_CALL_THISCALL);
  13419. // Vector3 SmoothedTransform::GetTargetWorldPosition() const
  13420. engine->RegisterObjectMethod(className, "Vector3 GetTargetWorldPosition() const", AS_METHODPR(T, GetTargetWorldPosition, () const, Vector3), AS_CALL_THISCALL);
  13421. engine->RegisterObjectMethod(className, "Vector3 get_targetWorldPosition() const", AS_METHODPR(T, GetTargetWorldPosition, () const, Vector3), AS_CALL_THISCALL);
  13422. // Quaternion SmoothedTransform::GetTargetWorldRotation() const
  13423. engine->RegisterObjectMethod(className, "Quaternion GetTargetWorldRotation() const", AS_METHODPR(T, GetTargetWorldRotation, () const, Quaternion), AS_CALL_THISCALL);
  13424. engine->RegisterObjectMethod(className, "Quaternion get_targetWorldRotation() const", AS_METHODPR(T, GetTargetWorldRotation, () const, Quaternion), AS_CALL_THISCALL);
  13425. // bool SmoothedTransform::IsInProgress() const
  13426. engine->RegisterObjectMethod(className, "bool IsInProgress() const", AS_METHODPR(T, IsInProgress, () const, bool), AS_CALL_THISCALL);
  13427. engine->RegisterObjectMethod(className, "bool get_inProgress() const", AS_METHODPR(T, IsInProgress, () const, bool), AS_CALL_THISCALL);
  13428. // virtual void Component::OnSetEnabled()
  13429. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  13430. // void SmoothedTransform::SetTargetPosition(const Vector3& position)
  13431. engine->RegisterObjectMethod(className, "void SetTargetPosition(const Vector3&in)", AS_METHODPR(T, SetTargetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  13432. engine->RegisterObjectMethod(className, "void set_targetPosition(const Vector3&in)", AS_METHODPR(T, SetTargetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  13433. // void SmoothedTransform::SetTargetRotation(const Quaternion& rotation)
  13434. engine->RegisterObjectMethod(className, "void SetTargetRotation(const Quaternion&in)", AS_METHODPR(T, SetTargetRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  13435. engine->RegisterObjectMethod(className, "void set_targetRotation(const Quaternion&in)", AS_METHODPR(T, SetTargetRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  13436. // void SmoothedTransform::SetTargetWorldPosition(const Vector3& position)
  13437. engine->RegisterObjectMethod(className, "void SetTargetWorldPosition(const Vector3&in)", AS_METHODPR(T, SetTargetWorldPosition, (const Vector3&), void), AS_CALL_THISCALL);
  13438. engine->RegisterObjectMethod(className, "void set_targetWorldPosition(const Vector3&in)", AS_METHODPR(T, SetTargetWorldPosition, (const Vector3&), void), AS_CALL_THISCALL);
  13439. // void SmoothedTransform::SetTargetWorldRotation(const Quaternion& rotation)
  13440. engine->RegisterObjectMethod(className, "void SetTargetWorldRotation(const Quaternion&in)", AS_METHODPR(T, SetTargetWorldRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  13441. engine->RegisterObjectMethod(className, "void set_targetWorldRotation(const Quaternion&in)", AS_METHODPR(T, SetTargetWorldRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  13442. // void SmoothedTransform::Update(float constant, float squaredSnapThreshold)
  13443. engine->RegisterObjectMethod(className, "void Update(float, float)", AS_METHODPR(T, Update, (float, float), void), AS_CALL_THISCALL);
  13444. #ifdef REGISTER_MEMBERS_MANUAL_PART_SmoothedTransform
  13445. REGISTER_MEMBERS_MANUAL_PART_SmoothedTransform();
  13446. #endif
  13447. }
  13448. // class SoundListener | File: ../Audio/SoundListener.h
  13449. template <class T> void RegisterMembers_SoundListener(asIScriptEngine* engine, const char* className)
  13450. {
  13451. RegisterMembers_Component<T>(engine, className);
  13452. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  13453. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  13454. // virtual void Component::OnSetEnabled()
  13455. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  13456. #ifdef REGISTER_MEMBERS_MANUAL_PART_SoundListener
  13457. REGISTER_MEMBERS_MANUAL_PART_SoundListener();
  13458. #endif
  13459. }
  13460. // class SoundSource | File: ../Audio/SoundSource.h
  13461. template <class T> void RegisterMembers_SoundSource(asIScriptEngine* engine, const char* className)
  13462. {
  13463. RegisterMembers_Component<T>(engine, className);
  13464. // volatile signed char* SoundSource::GetPlayPosition() const
  13465. // Error: type "signed char*" can not automatically bind
  13466. // void SoundSource::Mix(int* dest, unsigned samples, int mixRate, bool stereo, bool interpolation)
  13467. // Error: type "int*" can not automatically bind
  13468. // void SoundSource::SetPlayPosition(signed char* pos)
  13469. // Error: type "signed char*" can not automatically bind
  13470. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  13471. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  13472. // float SoundSource::GetAttenuation() const
  13473. engine->RegisterObjectMethod(className, "float GetAttenuation() const", AS_METHODPR(T, GetAttenuation, () const, float), AS_CALL_THISCALL);
  13474. engine->RegisterObjectMethod(className, "float get_attenuation() const", AS_METHODPR(T, GetAttenuation, () const, float), AS_CALL_THISCALL);
  13475. // AutoRemoveMode SoundSource::GetAutoRemoveMode() const
  13476. engine->RegisterObjectMethod(className, "AutoRemoveMode GetAutoRemoveMode() const", AS_METHODPR(T, GetAutoRemoveMode, () const, AutoRemoveMode), AS_CALL_THISCALL);
  13477. engine->RegisterObjectMethod(className, "AutoRemoveMode get_autoRemoveMode() const", AS_METHODPR(T, GetAutoRemoveMode, () const, AutoRemoveMode), AS_CALL_THISCALL);
  13478. // float SoundSource::GetFrequency() const
  13479. engine->RegisterObjectMethod(className, "float GetFrequency() const", AS_METHODPR(T, GetFrequency, () const, float), AS_CALL_THISCALL);
  13480. engine->RegisterObjectMethod(className, "float get_frequency() const", AS_METHODPR(T, GetFrequency, () const, float), AS_CALL_THISCALL);
  13481. // float SoundSource::GetGain() const
  13482. engine->RegisterObjectMethod(className, "float GetGain() const", AS_METHODPR(T, GetGain, () const, float), AS_CALL_THISCALL);
  13483. engine->RegisterObjectMethod(className, "float get_gain() const", AS_METHODPR(T, GetGain, () const, float), AS_CALL_THISCALL);
  13484. // float SoundSource::GetPanning() const
  13485. engine->RegisterObjectMethod(className, "float GetPanning() const", AS_METHODPR(T, GetPanning, () const, float), AS_CALL_THISCALL);
  13486. engine->RegisterObjectMethod(className, "float get_panning() const", AS_METHODPR(T, GetPanning, () const, float), AS_CALL_THISCALL);
  13487. // int SoundSource::GetPositionAttr() const
  13488. engine->RegisterObjectMethod(className, "int GetPositionAttr() const", AS_METHODPR(T, GetPositionAttr, () const, int), AS_CALL_THISCALL);
  13489. // Sound* SoundSource::GetSound() const
  13490. engine->RegisterObjectMethod(className, "Sound@+ GetSound() const", AS_METHODPR(T, GetSound, () const, Sound*), AS_CALL_THISCALL);
  13491. engine->RegisterObjectMethod(className, "Sound@+ get_sound() const", AS_METHODPR(T, GetSound, () const, Sound*), AS_CALL_THISCALL);
  13492. // ResourceRef SoundSource::GetSoundAttr() const
  13493. engine->RegisterObjectMethod(className, "ResourceRef GetSoundAttr() const", AS_METHODPR(T, GetSoundAttr, () const, ResourceRef), AS_CALL_THISCALL);
  13494. // String SoundSource::GetSoundType() const
  13495. engine->RegisterObjectMethod(className, "String GetSoundType() const", AS_METHODPR(T, GetSoundType, () const, String), AS_CALL_THISCALL);
  13496. engine->RegisterObjectMethod(className, "String get_soundType() const", AS_METHODPR(T, GetSoundType, () const, String), AS_CALL_THISCALL);
  13497. // float SoundSource::GetTimePosition() const
  13498. engine->RegisterObjectMethod(className, "float GetTimePosition() const", AS_METHODPR(T, GetTimePosition, () const, float), AS_CALL_THISCALL);
  13499. engine->RegisterObjectMethod(className, "float get_timePosition() const", AS_METHODPR(T, GetTimePosition, () const, float), AS_CALL_THISCALL);
  13500. // bool SoundSource::IsPlaying() const
  13501. engine->RegisterObjectMethod(className, "bool IsPlaying() const", AS_METHODPR(T, IsPlaying, () const, bool), AS_CALL_THISCALL);
  13502. engine->RegisterObjectMethod(className, "bool get_playing() const", AS_METHODPR(T, IsPlaying, () const, bool), AS_CALL_THISCALL);
  13503. // virtual void Component::OnSetEnabled()
  13504. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  13505. // void SoundSource::Play(Sound* sound)
  13506. engine->RegisterObjectMethod(className, "void Play(Sound@+)", AS_METHODPR(T, Play, (Sound*), void), AS_CALL_THISCALL);
  13507. // void SoundSource::Play(Sound* sound, float frequency)
  13508. engine->RegisterObjectMethod(className, "void Play(Sound@+, float)", AS_METHODPR(T, Play, (Sound*, float), void), AS_CALL_THISCALL);
  13509. // void SoundSource::Play(Sound* sound, float frequency, float gain)
  13510. engine->RegisterObjectMethod(className, "void Play(Sound@+, float, float)", AS_METHODPR(T, Play, (Sound*, float, float), void), AS_CALL_THISCALL);
  13511. // void SoundSource::Play(Sound* sound, float frequency, float gain, float panning)
  13512. engine->RegisterObjectMethod(className, "void Play(Sound@+, float, float, float)", AS_METHODPR(T, Play, (Sound*, float, float, float), void), AS_CALL_THISCALL);
  13513. // void SoundSource::Play(SoundStream* stream)
  13514. engine->RegisterObjectMethod(className, "void Play(SoundStream@+)", AS_METHODPR(T, Play, (SoundStream*), void), AS_CALL_THISCALL);
  13515. // void SoundSource::Seek(float seekTime)
  13516. engine->RegisterObjectMethod(className, "void Seek(float)", AS_METHODPR(T, Seek, (float), void), AS_CALL_THISCALL);
  13517. // void SoundSource::SetAttenuation(float attenuation)
  13518. engine->RegisterObjectMethod(className, "void SetAttenuation(float)", AS_METHODPR(T, SetAttenuation, (float), void), AS_CALL_THISCALL);
  13519. // void SoundSource::SetAutoRemoveMode(AutoRemoveMode mode)
  13520. engine->RegisterObjectMethod(className, "void SetAutoRemoveMode(AutoRemoveMode)", AS_METHODPR(T, SetAutoRemoveMode, (AutoRemoveMode), void), AS_CALL_THISCALL);
  13521. engine->RegisterObjectMethod(className, "void set_autoRemoveMode(AutoRemoveMode)", AS_METHODPR(T, SetAutoRemoveMode, (AutoRemoveMode), void), AS_CALL_THISCALL);
  13522. // void SoundSource::SetFrequency(float frequency)
  13523. engine->RegisterObjectMethod(className, "void SetFrequency(float)", AS_METHODPR(T, SetFrequency, (float), void), AS_CALL_THISCALL);
  13524. engine->RegisterObjectMethod(className, "void set_frequency(float)", AS_METHODPR(T, SetFrequency, (float), void), AS_CALL_THISCALL);
  13525. // void SoundSource::SetGain(float gain)
  13526. engine->RegisterObjectMethod(className, "void SetGain(float)", AS_METHODPR(T, SetGain, (float), void), AS_CALL_THISCALL);
  13527. engine->RegisterObjectMethod(className, "void set_gain(float)", AS_METHODPR(T, SetGain, (float), void), AS_CALL_THISCALL);
  13528. // void SoundSource::SetPanning(float panning)
  13529. engine->RegisterObjectMethod(className, "void SetPanning(float)", AS_METHODPR(T, SetPanning, (float), void), AS_CALL_THISCALL);
  13530. engine->RegisterObjectMethod(className, "void set_panning(float)", AS_METHODPR(T, SetPanning, (float), void), AS_CALL_THISCALL);
  13531. // void SoundSource::SetPlayingAttr(bool value)
  13532. engine->RegisterObjectMethod(className, "void SetPlayingAttr(bool)", AS_METHODPR(T, SetPlayingAttr, (bool), void), AS_CALL_THISCALL);
  13533. // void SoundSource::SetPositionAttr(int value)
  13534. engine->RegisterObjectMethod(className, "void SetPositionAttr(int)", AS_METHODPR(T, SetPositionAttr, (int), void), AS_CALL_THISCALL);
  13535. // void SoundSource::SetSoundAttr(const ResourceRef& value)
  13536. engine->RegisterObjectMethod(className, "void SetSoundAttr(const ResourceRef&in)", AS_METHODPR(T, SetSoundAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  13537. // void SoundSource::SetSoundType(const String& type)
  13538. engine->RegisterObjectMethod(className, "void SetSoundType(const String&in)", AS_METHODPR(T, SetSoundType, (const String&), void), AS_CALL_THISCALL);
  13539. engine->RegisterObjectMethod(className, "void set_soundType(const String&in)", AS_METHODPR(T, SetSoundType, (const String&), void), AS_CALL_THISCALL);
  13540. // void SoundSource::Stop()
  13541. engine->RegisterObjectMethod(className, "void Stop()", AS_METHODPR(T, Stop, (), void), AS_CALL_THISCALL);
  13542. // virtual void SoundSource::Update(float timeStep)
  13543. engine->RegisterObjectMethod(className, "void Update(float)", AS_METHODPR(T, Update, (float), void), AS_CALL_THISCALL);
  13544. // void SoundSource::UpdateMasterGain()
  13545. engine->RegisterObjectMethod(className, "void UpdateMasterGain()", AS_METHODPR(T, UpdateMasterGain, (), void), AS_CALL_THISCALL);
  13546. #ifdef REGISTER_MEMBERS_MANUAL_PART_SoundSource
  13547. REGISTER_MEMBERS_MANUAL_PART_SoundSource();
  13548. #endif
  13549. }
  13550. // class SplinePath | File: ../Scene/SplinePath.h
  13551. template <class T> void RegisterMembers_SplinePath(asIScriptEngine* engine, const char* className)
  13552. {
  13553. RegisterMembers_Component<T>(engine, className);
  13554. // const VariantVector& SplinePath::GetControlPointIdsAttr() const
  13555. // Error: type "const VariantVector&" can not automatically bind
  13556. // void SplinePath::SetControlPointIdsAttr(const VariantVector& value)
  13557. // Error: type "const VariantVector&" can not automatically bind
  13558. // void SplinePath::AddControlPoint(Node* point, unsigned index = M_MAX_UNSIGNED)
  13559. engine->RegisterObjectMethod(className, "void AddControlPoint(Node@+, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, AddControlPoint, (Node*, unsigned), void), AS_CALL_THISCALL);
  13560. // void SplinePath::ClearControlPoints()
  13561. engine->RegisterObjectMethod(className, "void ClearControlPoints()", AS_METHODPR(T, ClearControlPoints, (), void), AS_CALL_THISCALL);
  13562. // void SplinePath::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  13563. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  13564. // unsigned SplinePath::GetControlledIdAttr() const
  13565. engine->RegisterObjectMethod(className, "uint GetControlledIdAttr() const", AS_METHODPR(T, GetControlledIdAttr, () const, unsigned), AS_CALL_THISCALL);
  13566. // Node* SplinePath::GetControlledNode() const
  13567. engine->RegisterObjectMethod(className, "Node@+ GetControlledNode() const", AS_METHODPR(T, GetControlledNode, () const, Node*), AS_CALL_THISCALL);
  13568. engine->RegisterObjectMethod(className, "Node@+ get_controlledNode() const", AS_METHODPR(T, GetControlledNode, () const, Node*), AS_CALL_THISCALL);
  13569. // InterpolationMode SplinePath::GetInterpolationMode() const
  13570. engine->RegisterObjectMethod(className, "InterpolationMode GetInterpolationMode() const", AS_METHODPR(T, GetInterpolationMode, () const, InterpolationMode), AS_CALL_THISCALL);
  13571. engine->RegisterObjectMethod(className, "InterpolationMode get_interpolationMode() const", AS_METHODPR(T, GetInterpolationMode, () const, InterpolationMode), AS_CALL_THISCALL);
  13572. // float SplinePath::GetLength() const
  13573. engine->RegisterObjectMethod(className, "float GetLength() const", AS_METHODPR(T, GetLength, () const, float), AS_CALL_THISCALL);
  13574. engine->RegisterObjectMethod(className, "float get_length() const", AS_METHODPR(T, GetLength, () const, float), AS_CALL_THISCALL);
  13575. // Vector3 SplinePath::GetPoint(float factor) const
  13576. engine->RegisterObjectMethod(className, "Vector3 GetPoint(float) const", AS_METHODPR(T, GetPoint, (float) const, Vector3), AS_CALL_THISCALL);
  13577. // Vector3 SplinePath::GetPosition() const
  13578. engine->RegisterObjectMethod(className, "Vector3 GetPosition() const", AS_METHODPR(T, GetPosition, () const, Vector3), AS_CALL_THISCALL);
  13579. // float SplinePath::GetSpeed() const
  13580. engine->RegisterObjectMethod(className, "float GetSpeed() const", AS_METHODPR(T, GetSpeed, () const, float), AS_CALL_THISCALL);
  13581. engine->RegisterObjectMethod(className, "float get_speed() const", AS_METHODPR(T, GetSpeed, () const, float), AS_CALL_THISCALL);
  13582. // bool SplinePath::IsFinished() const
  13583. engine->RegisterObjectMethod(className, "bool IsFinished() const", AS_METHODPR(T, IsFinished, () const, bool), AS_CALL_THISCALL);
  13584. engine->RegisterObjectMethod(className, "bool get_isFinished() const", AS_METHODPR(T, IsFinished, () const, bool), AS_CALL_THISCALL);
  13585. // void SplinePath::Move(float timeStep)
  13586. engine->RegisterObjectMethod(className, "void Move(float)", AS_METHODPR(T, Move, (float), void), AS_CALL_THISCALL);
  13587. // virtual void Component::OnSetEnabled()
  13588. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  13589. // void SplinePath::RemoveControlPoint(Node* point)
  13590. engine->RegisterObjectMethod(className, "void RemoveControlPoint(Node@+)", AS_METHODPR(T, RemoveControlPoint, (Node*), void), AS_CALL_THISCALL);
  13591. // void SplinePath::Reset()
  13592. engine->RegisterObjectMethod(className, "void Reset()", AS_METHODPR(T, Reset, (), void), AS_CALL_THISCALL);
  13593. // void SplinePath::SetControlledIdAttr(unsigned value)
  13594. engine->RegisterObjectMethod(className, "void SetControlledIdAttr(uint)", AS_METHODPR(T, SetControlledIdAttr, (unsigned), void), AS_CALL_THISCALL);
  13595. // void SplinePath::SetControlledNode(Node* controlled)
  13596. engine->RegisterObjectMethod(className, "void SetControlledNode(Node@+)", AS_METHODPR(T, SetControlledNode, (Node*), void), AS_CALL_THISCALL);
  13597. engine->RegisterObjectMethod(className, "void set_controlledNode(Node@+)", AS_METHODPR(T, SetControlledNode, (Node*), void), AS_CALL_THISCALL);
  13598. // void SplinePath::SetInterpolationMode(InterpolationMode interpolationMode)
  13599. engine->RegisterObjectMethod(className, "void SetInterpolationMode(InterpolationMode)", AS_METHODPR(T, SetInterpolationMode, (InterpolationMode), void), AS_CALL_THISCALL);
  13600. engine->RegisterObjectMethod(className, "void set_interpolationMode(InterpolationMode)", AS_METHODPR(T, SetInterpolationMode, (InterpolationMode), void), AS_CALL_THISCALL);
  13601. // void SplinePath::SetPosition(float factor)
  13602. engine->RegisterObjectMethod(className, "void SetPosition(float)", AS_METHODPR(T, SetPosition, (float), void), AS_CALL_THISCALL);
  13603. // void SplinePath::SetSpeed(float speed)
  13604. engine->RegisterObjectMethod(className, "void SetSpeed(float)", AS_METHODPR(T, SetSpeed, (float), void), AS_CALL_THISCALL);
  13605. engine->RegisterObjectMethod(className, "void set_speed(float)", AS_METHODPR(T, SetSpeed, (float), void), AS_CALL_THISCALL);
  13606. #ifdef REGISTER_MEMBERS_MANUAL_PART_SplinePath
  13607. REGISTER_MEMBERS_MANUAL_PART_SplinePath();
  13608. #endif
  13609. }
  13610. // class Sprite | File: ../UI/Sprite.h
  13611. template <class T> void RegisterMembers_Sprite(asIScriptEngine* engine, const char* className)
  13612. {
  13613. RegisterMembers_UIElement<T>(engine, className);
  13614. // BlendMode Sprite::GetBlendMode() const
  13615. engine->RegisterObjectMethod(className, "BlendMode GetBlendMode() const", AS_METHODPR(T, GetBlendMode, () const, BlendMode), AS_CALL_THISCALL);
  13616. engine->RegisterObjectMethod(className, "BlendMode get_blendMode() const", AS_METHODPR(T, GetBlendMode, () const, BlendMode), AS_CALL_THISCALL);
  13617. // const IntVector2& Sprite::GetHotSpot() const
  13618. engine->RegisterObjectMethod(className, "const IntVector2& GetHotSpot() const", AS_METHODPR(T, GetHotSpot, () const, const IntVector2&), AS_CALL_THISCALL);
  13619. engine->RegisterObjectMethod(className, "const IntVector2& get_hotSpot() const", AS_METHODPR(T, GetHotSpot, () const, const IntVector2&), AS_CALL_THISCALL);
  13620. // const IntRect& Sprite::GetImageRect() const
  13621. engine->RegisterObjectMethod(className, "const IntRect& GetImageRect() const", AS_METHODPR(T, GetImageRect, () const, const IntRect&), AS_CALL_THISCALL);
  13622. engine->RegisterObjectMethod(className, "const IntRect& get_imageRect() const", AS_METHODPR(T, GetImageRect, () const, const IntRect&), AS_CALL_THISCALL);
  13623. // const Vector2& Sprite::GetPosition() const
  13624. engine->RegisterObjectMethod(className, "const Vector2& GetPosition() const", AS_METHODPR(T, GetPosition, () const, const Vector2&), AS_CALL_THISCALL);
  13625. engine->RegisterObjectMethod(className, "const Vector2& get_position() const", AS_METHODPR(T, GetPosition, () const, const Vector2&), AS_CALL_THISCALL);
  13626. // float Sprite::GetRotation() const
  13627. engine->RegisterObjectMethod(className, "float GetRotation() const", AS_METHODPR(T, GetRotation, () const, float), AS_CALL_THISCALL);
  13628. engine->RegisterObjectMethod(className, "float get_rotation() const", AS_METHODPR(T, GetRotation, () const, float), AS_CALL_THISCALL);
  13629. // const Vector2& Sprite::GetScale() const
  13630. engine->RegisterObjectMethod(className, "const Vector2& GetScale() const", AS_METHODPR(T, GetScale, () const, const Vector2&), AS_CALL_THISCALL);
  13631. engine->RegisterObjectMethod(className, "const Vector2& get_scale() const", AS_METHODPR(T, GetScale, () const, const Vector2&), AS_CALL_THISCALL);
  13632. // Texture* Sprite::GetTexture() const
  13633. engine->RegisterObjectMethod(className, "Texture@+ GetTexture() const", AS_METHODPR(T, GetTexture, () const, Texture*), AS_CALL_THISCALL);
  13634. engine->RegisterObjectMethod(className, "Texture@+ get_texture() const", AS_METHODPR(T, GetTexture, () const, Texture*), AS_CALL_THISCALL);
  13635. // ResourceRef Sprite::GetTextureAttr() const
  13636. engine->RegisterObjectMethod(className, "ResourceRef GetTextureAttr() const", AS_METHODPR(T, GetTextureAttr, () const, ResourceRef), AS_CALL_THISCALL);
  13637. // const Matrix3x4& Sprite::GetTransform() const
  13638. engine->RegisterObjectMethod(className, "const Matrix3x4& GetTransform() const", AS_METHODPR(T, GetTransform, () const, const Matrix3x4&), AS_CALL_THISCALL);
  13639. // bool UIElement::IsSelected() const
  13640. engine->RegisterObjectMethod(className, "bool IsSelected() const", AS_METHODPR(T, IsSelected, () const, bool), AS_CALL_THISCALL);
  13641. engine->RegisterObjectMethod(className, "bool get_selected() const", AS_METHODPR(T, IsSelected, () const, bool), AS_CALL_THISCALL);
  13642. // void Sprite::SetBlendMode(BlendMode mode)
  13643. engine->RegisterObjectMethod(className, "void SetBlendMode(BlendMode)", AS_METHODPR(T, SetBlendMode, (BlendMode), void), AS_CALL_THISCALL);
  13644. engine->RegisterObjectMethod(className, "void set_blendMode(BlendMode)", AS_METHODPR(T, SetBlendMode, (BlendMode), void), AS_CALL_THISCALL);
  13645. // void Sprite::SetFullImageRect()
  13646. engine->RegisterObjectMethod(className, "void SetFullImageRect()", AS_METHODPR(T, SetFullImageRect, (), void), AS_CALL_THISCALL);
  13647. // void Sprite::SetHotSpot(const IntVector2& hotSpot)
  13648. engine->RegisterObjectMethod(className, "void SetHotSpot(const IntVector2&in)", AS_METHODPR(T, SetHotSpot, (const IntVector2&), void), AS_CALL_THISCALL);
  13649. engine->RegisterObjectMethod(className, "void set_hotSpot(const IntVector2&in)", AS_METHODPR(T, SetHotSpot, (const IntVector2&), void), AS_CALL_THISCALL);
  13650. // void Sprite::SetHotSpot(int x, int y)
  13651. engine->RegisterObjectMethod(className, "void SetHotSpot(int, int)", AS_METHODPR(T, SetHotSpot, (int, int), void), AS_CALL_THISCALL);
  13652. // void Sprite::SetImageRect(const IntRect& rect)
  13653. engine->RegisterObjectMethod(className, "void SetImageRect(const IntRect&in)", AS_METHODPR(T, SetImageRect, (const IntRect&), void), AS_CALL_THISCALL);
  13654. engine->RegisterObjectMethod(className, "void set_imageRect(const IntRect&in)", AS_METHODPR(T, SetImageRect, (const IntRect&), void), AS_CALL_THISCALL);
  13655. // void Sprite::SetPosition(const Vector2& position)
  13656. engine->RegisterObjectMethod(className, "void SetPosition(const Vector2&in)", AS_METHODPR(T, SetPosition, (const Vector2&), void), AS_CALL_THISCALL);
  13657. engine->RegisterObjectMethod(className, "void set_position(const Vector2&in)", AS_METHODPR(T, SetPosition, (const Vector2&), void), AS_CALL_THISCALL);
  13658. // void Sprite::SetPosition(float x, float y)
  13659. engine->RegisterObjectMethod(className, "void SetPosition(float, float)", AS_METHODPR(T, SetPosition, (float, float), void), AS_CALL_THISCALL);
  13660. // void Sprite::SetRotation(float angle)
  13661. engine->RegisterObjectMethod(className, "void SetRotation(float)", AS_METHODPR(T, SetRotation, (float), void), AS_CALL_THISCALL);
  13662. engine->RegisterObjectMethod(className, "void set_rotation(float)", AS_METHODPR(T, SetRotation, (float), void), AS_CALL_THISCALL);
  13663. // void Sprite::SetScale(const Vector2& scale)
  13664. engine->RegisterObjectMethod(className, "void SetScale(const Vector2&in)", AS_METHODPR(T, SetScale, (const Vector2&), void), AS_CALL_THISCALL);
  13665. engine->RegisterObjectMethod(className, "void set_scale(const Vector2&in)", AS_METHODPR(T, SetScale, (const Vector2&), void), AS_CALL_THISCALL);
  13666. // void Sprite::SetScale(float x, float y)
  13667. engine->RegisterObjectMethod(className, "void SetScale(float, float)", AS_METHODPR(T, SetScale, (float, float), void), AS_CALL_THISCALL);
  13668. // void Sprite::SetScale(float scale)
  13669. engine->RegisterObjectMethod(className, "void SetScale(float)", AS_METHODPR(T, SetScale, (float), void), AS_CALL_THISCALL);
  13670. // void Sprite::SetTexture(Texture* texture)
  13671. engine->RegisterObjectMethod(className, "void SetTexture(Texture@+)", AS_METHODPR(T, SetTexture, (Texture*), void), AS_CALL_THISCALL);
  13672. engine->RegisterObjectMethod(className, "void set_texture(Texture@+)", AS_METHODPR(T, SetTexture, (Texture*), void), AS_CALL_THISCALL);
  13673. // void Sprite::SetTextureAttr(const ResourceRef& value)
  13674. engine->RegisterObjectMethod(className, "void SetTextureAttr(const ResourceRef&in)", AS_METHODPR(T, SetTextureAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  13675. #ifdef REGISTER_MEMBERS_MANUAL_PART_Sprite
  13676. REGISTER_MEMBERS_MANUAL_PART_Sprite();
  13677. #endif
  13678. }
  13679. // class Terrain | File: ../Graphics/Terrain.h
  13680. template <class T> void RegisterMembers_Terrain(asIScriptEngine* engine, const char* className)
  13681. {
  13682. RegisterMembers_Component<T>(engine, className);
  13683. // SharedArrayPtr<float> Terrain::GetHeightData() const
  13684. // Error: type "SharedArrayPtr<float>" can not automatically bind
  13685. // void Terrain::ApplyHeightMap()
  13686. engine->RegisterObjectMethod(className, "void ApplyHeightMap()", AS_METHODPR(T, ApplyHeightMap, (), void), AS_CALL_THISCALL);
  13687. // void Terrain::CreatePatchGeometry(TerrainPatch* patch)
  13688. engine->RegisterObjectMethod(className, "void CreatePatchGeometry(TerrainPatch@+)", AS_METHODPR(T, CreatePatchGeometry, (TerrainPatch*), void), AS_CALL_THISCALL);
  13689. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  13690. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  13691. // bool Terrain::GetCastShadows() const
  13692. engine->RegisterObjectMethod(className, "bool GetCastShadows() const", AS_METHODPR(T, GetCastShadows, () const, bool), AS_CALL_THISCALL);
  13693. engine->RegisterObjectMethod(className, "bool get_castShadows() const", AS_METHODPR(T, GetCastShadows, () const, bool), AS_CALL_THISCALL);
  13694. // float Terrain::GetDrawDistance() const
  13695. engine->RegisterObjectMethod(className, "float GetDrawDistance() const", AS_METHODPR(T, GetDrawDistance, () const, float), AS_CALL_THISCALL);
  13696. engine->RegisterObjectMethod(className, "float get_drawDistance() const", AS_METHODPR(T, GetDrawDistance, () const, float), AS_CALL_THISCALL);
  13697. // Terrain* Terrain::GetEastNeighbor() const
  13698. engine->RegisterObjectMethod(className, "Terrain@+ GetEastNeighbor() const", AS_METHODPR(T, GetEastNeighbor, () const, Terrain*), AS_CALL_THISCALL);
  13699. engine->RegisterObjectMethod(className, "Terrain@+ get_eastNeighbor() const", AS_METHODPR(T, GetEastNeighbor, () const, Terrain*), AS_CALL_THISCALL);
  13700. // float Terrain::GetHeight(const Vector3& worldPosition) const
  13701. engine->RegisterObjectMethod(className, "float GetHeight(const Vector3&in) const", AS_METHODPR(T, GetHeight, (const Vector3&) const, float), AS_CALL_THISCALL);
  13702. // Image* Terrain::GetHeightMap() const
  13703. engine->RegisterObjectMethod(className, "Image@+ GetHeightMap() const", AS_METHODPR(T, GetHeightMap, () const, Image*), AS_CALL_THISCALL);
  13704. engine->RegisterObjectMethod(className, "Image@+ get_heightMap() const", AS_METHODPR(T, GetHeightMap, () const, Image*), AS_CALL_THISCALL);
  13705. // ResourceRef Terrain::GetHeightMapAttr() const
  13706. engine->RegisterObjectMethod(className, "ResourceRef GetHeightMapAttr() const", AS_METHODPR(T, GetHeightMapAttr, () const, ResourceRef), AS_CALL_THISCALL);
  13707. // unsigned Terrain::GetLightMask() const
  13708. engine->RegisterObjectMethod(className, "uint GetLightMask() const", AS_METHODPR(T, GetLightMask, () const, unsigned), AS_CALL_THISCALL);
  13709. engine->RegisterObjectMethod(className, "uint get_lightMask() const", AS_METHODPR(T, GetLightMask, () const, unsigned), AS_CALL_THISCALL);
  13710. // float Terrain::GetLodBias() const
  13711. engine->RegisterObjectMethod(className, "float GetLodBias() const", AS_METHODPR(T, GetLodBias, () const, float), AS_CALL_THISCALL);
  13712. engine->RegisterObjectMethod(className, "float get_lodBias() const", AS_METHODPR(T, GetLodBias, () const, float), AS_CALL_THISCALL);
  13713. // Material* Terrain::GetMaterial() const
  13714. engine->RegisterObjectMethod(className, "Material@+ GetMaterial() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  13715. engine->RegisterObjectMethod(className, "Material@+ get_material() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  13716. // ResourceRef Terrain::GetMaterialAttr() const
  13717. engine->RegisterObjectMethod(className, "ResourceRef GetMaterialAttr() const", AS_METHODPR(T, GetMaterialAttr, () const, ResourceRef), AS_CALL_THISCALL);
  13718. // unsigned Terrain::GetMaxLights() const
  13719. engine->RegisterObjectMethod(className, "uint GetMaxLights() const", AS_METHODPR(T, GetMaxLights, () const, unsigned), AS_CALL_THISCALL);
  13720. engine->RegisterObjectMethod(className, "uint get_maxLights() const", AS_METHODPR(T, GetMaxLights, () const, unsigned), AS_CALL_THISCALL);
  13721. // unsigned Terrain::GetMaxLodLevels() const
  13722. engine->RegisterObjectMethod(className, "uint GetMaxLodLevels() const", AS_METHODPR(T, GetMaxLodLevels, () const, unsigned), AS_CALL_THISCALL);
  13723. engine->RegisterObjectMethod(className, "uint get_maxLodLevels() const", AS_METHODPR(T, GetMaxLodLevels, () const, unsigned), AS_CALL_THISCALL);
  13724. // TerrainPatch* Terrain::GetNeighborPatch(int x, int z) const
  13725. engine->RegisterObjectMethod(className, "TerrainPatch@+ GetNeighborPatch(int, int) const", AS_METHODPR(T, GetNeighborPatch, (int, int) const, TerrainPatch*), AS_CALL_THISCALL);
  13726. // Vector3 Terrain::GetNormal(const Vector3& worldPosition) const
  13727. engine->RegisterObjectMethod(className, "Vector3 GetNormal(const Vector3&in) const", AS_METHODPR(T, GetNormal, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  13728. // Terrain* Terrain::GetNorthNeighbor() const
  13729. engine->RegisterObjectMethod(className, "Terrain@+ GetNorthNeighbor() const", AS_METHODPR(T, GetNorthNeighbor, () const, Terrain*), AS_CALL_THISCALL);
  13730. engine->RegisterObjectMethod(className, "Terrain@+ get_northNeighbor() const", AS_METHODPR(T, GetNorthNeighbor, () const, Terrain*), AS_CALL_THISCALL);
  13731. // const IntVector2& Terrain::GetNumPatches() const
  13732. engine->RegisterObjectMethod(className, "const IntVector2& GetNumPatches() const", AS_METHODPR(T, GetNumPatches, () const, const IntVector2&), AS_CALL_THISCALL);
  13733. engine->RegisterObjectMethod(className, "const IntVector2& get_numPatches() const", AS_METHODPR(T, GetNumPatches, () const, const IntVector2&), AS_CALL_THISCALL);
  13734. // const IntVector2& Terrain::GetNumVertices() const
  13735. engine->RegisterObjectMethod(className, "const IntVector2& GetNumVertices() const", AS_METHODPR(T, GetNumVertices, () const, const IntVector2&), AS_CALL_THISCALL);
  13736. engine->RegisterObjectMethod(className, "const IntVector2& get_numVertices() const", AS_METHODPR(T, GetNumVertices, () const, const IntVector2&), AS_CALL_THISCALL);
  13737. // unsigned Terrain::GetOcclusionLodLevel() const
  13738. engine->RegisterObjectMethod(className, "uint GetOcclusionLodLevel() const", AS_METHODPR(T, GetOcclusionLodLevel, () const, unsigned), AS_CALL_THISCALL);
  13739. engine->RegisterObjectMethod(className, "uint get_occlusionLodLevel() const", AS_METHODPR(T, GetOcclusionLodLevel, () const, unsigned), AS_CALL_THISCALL);
  13740. // TerrainPatch* Terrain::GetPatch(unsigned index) const
  13741. engine->RegisterObjectMethod(className, "TerrainPatch@+ GetPatch(uint) const", AS_METHODPR(T, GetPatch, (unsigned) const, TerrainPatch*), AS_CALL_THISCALL);
  13742. engine->RegisterObjectMethod(className, "TerrainPatch@+ get_patches(uint) const", AS_METHODPR(T, GetPatch, (unsigned) const, TerrainPatch*), AS_CALL_THISCALL);
  13743. // TerrainPatch* Terrain::GetPatch(int x, int z) const
  13744. engine->RegisterObjectMethod(className, "TerrainPatch@+ GetPatch(int, int) const", AS_METHODPR(T, GetPatch, (int, int) const, TerrainPatch*), AS_CALL_THISCALL);
  13745. // int Terrain::GetPatchSize() const
  13746. engine->RegisterObjectMethod(className, "int GetPatchSize() const", AS_METHODPR(T, GetPatchSize, () const, int), AS_CALL_THISCALL);
  13747. engine->RegisterObjectMethod(className, "int get_patchSize() const", AS_METHODPR(T, GetPatchSize, () const, int), AS_CALL_THISCALL);
  13748. // float Terrain::GetShadowDistance() const
  13749. engine->RegisterObjectMethod(className, "float GetShadowDistance() const", AS_METHODPR(T, GetShadowDistance, () const, float), AS_CALL_THISCALL);
  13750. engine->RegisterObjectMethod(className, "float get_shadowDistance() const", AS_METHODPR(T, GetShadowDistance, () const, float), AS_CALL_THISCALL);
  13751. // unsigned Terrain::GetShadowMask() const
  13752. engine->RegisterObjectMethod(className, "uint GetShadowMask() const", AS_METHODPR(T, GetShadowMask, () const, unsigned), AS_CALL_THISCALL);
  13753. engine->RegisterObjectMethod(className, "uint get_shadowMask() const", AS_METHODPR(T, GetShadowMask, () const, unsigned), AS_CALL_THISCALL);
  13754. // bool Terrain::GetSmoothing() const
  13755. engine->RegisterObjectMethod(className, "bool GetSmoothing() const", AS_METHODPR(T, GetSmoothing, () const, bool), AS_CALL_THISCALL);
  13756. engine->RegisterObjectMethod(className, "bool get_smoothing() const", AS_METHODPR(T, GetSmoothing, () const, bool), AS_CALL_THISCALL);
  13757. // Terrain* Terrain::GetSouthNeighbor() const
  13758. engine->RegisterObjectMethod(className, "Terrain@+ GetSouthNeighbor() const", AS_METHODPR(T, GetSouthNeighbor, () const, Terrain*), AS_CALL_THISCALL);
  13759. engine->RegisterObjectMethod(className, "Terrain@+ get_southNeighbor() const", AS_METHODPR(T, GetSouthNeighbor, () const, Terrain*), AS_CALL_THISCALL);
  13760. // const Vector3& Terrain::GetSpacing() const
  13761. engine->RegisterObjectMethod(className, "const Vector3& GetSpacing() const", AS_METHODPR(T, GetSpacing, () const, const Vector3&), AS_CALL_THISCALL);
  13762. engine->RegisterObjectMethod(className, "const Vector3& get_spacing() const", AS_METHODPR(T, GetSpacing, () const, const Vector3&), AS_CALL_THISCALL);
  13763. // unsigned Terrain::GetViewMask() const
  13764. engine->RegisterObjectMethod(className, "uint GetViewMask() const", AS_METHODPR(T, GetViewMask, () const, unsigned), AS_CALL_THISCALL);
  13765. engine->RegisterObjectMethod(className, "uint get_viewMask() const", AS_METHODPR(T, GetViewMask, () const, unsigned), AS_CALL_THISCALL);
  13766. // Terrain* Terrain::GetWestNeighbor() const
  13767. engine->RegisterObjectMethod(className, "Terrain@+ GetWestNeighbor() const", AS_METHODPR(T, GetWestNeighbor, () const, Terrain*), AS_CALL_THISCALL);
  13768. engine->RegisterObjectMethod(className, "Terrain@+ get_westNeighbor() const", AS_METHODPR(T, GetWestNeighbor, () const, Terrain*), AS_CALL_THISCALL);
  13769. // unsigned Terrain::GetZoneMask() const
  13770. engine->RegisterObjectMethod(className, "uint GetZoneMask() const", AS_METHODPR(T, GetZoneMask, () const, unsigned), AS_CALL_THISCALL);
  13771. engine->RegisterObjectMethod(className, "uint get_zoneMask() const", AS_METHODPR(T, GetZoneMask, () const, unsigned), AS_CALL_THISCALL);
  13772. // Vector3 Terrain::HeightMapToWorld(const IntVector2& pixelPosition) const
  13773. engine->RegisterObjectMethod(className, "Vector3 HeightMapToWorld(const IntVector2&in) const", AS_METHODPR(T, HeightMapToWorld, (const IntVector2&) const, Vector3), AS_CALL_THISCALL);
  13774. // bool Terrain::IsOccludee() const
  13775. engine->RegisterObjectMethod(className, "bool IsOccludee() const", AS_METHODPR(T, IsOccludee, () const, bool), AS_CALL_THISCALL);
  13776. engine->RegisterObjectMethod(className, "bool get_occludee() const", AS_METHODPR(T, IsOccludee, () const, bool), AS_CALL_THISCALL);
  13777. // bool Terrain::IsOccluder() const
  13778. engine->RegisterObjectMethod(className, "bool IsOccluder() const", AS_METHODPR(T, IsOccluder, () const, bool), AS_CALL_THISCALL);
  13779. engine->RegisterObjectMethod(className, "bool get_occluder() const", AS_METHODPR(T, IsOccluder, () const, bool), AS_CALL_THISCALL);
  13780. // bool Terrain::IsVisible() const
  13781. engine->RegisterObjectMethod(className, "bool IsVisible() const", AS_METHODPR(T, IsVisible, () const, bool), AS_CALL_THISCALL);
  13782. // void Terrain::OnSetEnabled() override
  13783. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  13784. // void Terrain::SetCastShadows(bool enable)
  13785. engine->RegisterObjectMethod(className, "void SetCastShadows(bool)", AS_METHODPR(T, SetCastShadows, (bool), void), AS_CALL_THISCALL);
  13786. engine->RegisterObjectMethod(className, "void set_castShadows(bool)", AS_METHODPR(T, SetCastShadows, (bool), void), AS_CALL_THISCALL);
  13787. // void Terrain::SetDrawDistance(float distance)
  13788. engine->RegisterObjectMethod(className, "void SetDrawDistance(float)", AS_METHODPR(T, SetDrawDistance, (float), void), AS_CALL_THISCALL);
  13789. engine->RegisterObjectMethod(className, "void set_drawDistance(float)", AS_METHODPR(T, SetDrawDistance, (float), void), AS_CALL_THISCALL);
  13790. // void Terrain::SetEastNeighbor(Terrain* east)
  13791. engine->RegisterObjectMethod(className, "void SetEastNeighbor(Terrain@+)", AS_METHODPR(T, SetEastNeighbor, (Terrain*), void), AS_CALL_THISCALL);
  13792. engine->RegisterObjectMethod(className, "void set_eastNeighbor(Terrain@+)", AS_METHODPR(T, SetEastNeighbor, (Terrain*), void), AS_CALL_THISCALL);
  13793. // bool Terrain::SetHeightMap(Image* image)
  13794. engine->RegisterObjectMethod(className, "bool SetHeightMap(Image@+)", AS_METHODPR(T, SetHeightMap, (Image*), bool), AS_CALL_THISCALL);
  13795. engine->RegisterObjectMethod(className, "bool set_heightMap(Image@+)", AS_METHODPR(T, SetHeightMap, (Image*), bool), AS_CALL_THISCALL);
  13796. // void Terrain::SetHeightMapAttr(const ResourceRef& value)
  13797. engine->RegisterObjectMethod(className, "void SetHeightMapAttr(const ResourceRef&in)", AS_METHODPR(T, SetHeightMapAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  13798. // void Terrain::SetLightMask(unsigned mask)
  13799. engine->RegisterObjectMethod(className, "void SetLightMask(uint)", AS_METHODPR(T, SetLightMask, (unsigned), void), AS_CALL_THISCALL);
  13800. engine->RegisterObjectMethod(className, "void set_lightMask(uint)", AS_METHODPR(T, SetLightMask, (unsigned), void), AS_CALL_THISCALL);
  13801. // void Terrain::SetLodBias(float bias)
  13802. engine->RegisterObjectMethod(className, "void SetLodBias(float)", AS_METHODPR(T, SetLodBias, (float), void), AS_CALL_THISCALL);
  13803. engine->RegisterObjectMethod(className, "void set_lodBias(float)", AS_METHODPR(T, SetLodBias, (float), void), AS_CALL_THISCALL);
  13804. // void Terrain::SetMaterial(Material* material)
  13805. engine->RegisterObjectMethod(className, "void SetMaterial(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  13806. engine->RegisterObjectMethod(className, "void set_material(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  13807. // void Terrain::SetMaterialAttr(const ResourceRef& value)
  13808. engine->RegisterObjectMethod(className, "void SetMaterialAttr(const ResourceRef&in)", AS_METHODPR(T, SetMaterialAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  13809. // void Terrain::SetMaxLights(unsigned num)
  13810. engine->RegisterObjectMethod(className, "void SetMaxLights(uint)", AS_METHODPR(T, SetMaxLights, (unsigned), void), AS_CALL_THISCALL);
  13811. engine->RegisterObjectMethod(className, "void set_maxLights(uint)", AS_METHODPR(T, SetMaxLights, (unsigned), void), AS_CALL_THISCALL);
  13812. // void Terrain::SetMaxLodLevels(unsigned levels)
  13813. engine->RegisterObjectMethod(className, "void SetMaxLodLevels(uint)", AS_METHODPR(T, SetMaxLodLevels, (unsigned), void), AS_CALL_THISCALL);
  13814. engine->RegisterObjectMethod(className, "void set_maxLodLevels(uint)", AS_METHODPR(T, SetMaxLodLevels, (unsigned), void), AS_CALL_THISCALL);
  13815. // void Terrain::SetMaxLodLevelsAttr(unsigned value)
  13816. engine->RegisterObjectMethod(className, "void SetMaxLodLevelsAttr(uint)", AS_METHODPR(T, SetMaxLodLevelsAttr, (unsigned), void), AS_CALL_THISCALL);
  13817. // void Terrain::SetNeighbors(Terrain* north, Terrain* south, Terrain* west, Terrain* east)
  13818. engine->RegisterObjectMethod(className, "void SetNeighbors(Terrain@+, Terrain@+, Terrain@+, Terrain@+)", AS_METHODPR(T, SetNeighbors, (Terrain*, Terrain*, Terrain*, Terrain*), void), AS_CALL_THISCALL);
  13819. // void Terrain::SetNorthNeighbor(Terrain* north)
  13820. engine->RegisterObjectMethod(className, "void SetNorthNeighbor(Terrain@+)", AS_METHODPR(T, SetNorthNeighbor, (Terrain*), void), AS_CALL_THISCALL);
  13821. engine->RegisterObjectMethod(className, "void set_northNeighbor(Terrain@+)", AS_METHODPR(T, SetNorthNeighbor, (Terrain*), void), AS_CALL_THISCALL);
  13822. // void Terrain::SetOccludee(bool enable)
  13823. engine->RegisterObjectMethod(className, "void SetOccludee(bool)", AS_METHODPR(T, SetOccludee, (bool), void), AS_CALL_THISCALL);
  13824. engine->RegisterObjectMethod(className, "void set_occludee(bool)", AS_METHODPR(T, SetOccludee, (bool), void), AS_CALL_THISCALL);
  13825. // void Terrain::SetOccluder(bool enable)
  13826. engine->RegisterObjectMethod(className, "void SetOccluder(bool)", AS_METHODPR(T, SetOccluder, (bool), void), AS_CALL_THISCALL);
  13827. engine->RegisterObjectMethod(className, "void set_occluder(bool)", AS_METHODPR(T, SetOccluder, (bool), void), AS_CALL_THISCALL);
  13828. // void Terrain::SetOcclusionLodLevel(unsigned level)
  13829. engine->RegisterObjectMethod(className, "void SetOcclusionLodLevel(uint)", AS_METHODPR(T, SetOcclusionLodLevel, (unsigned), void), AS_CALL_THISCALL);
  13830. engine->RegisterObjectMethod(className, "void set_occlusionLodLevel(uint)", AS_METHODPR(T, SetOcclusionLodLevel, (unsigned), void), AS_CALL_THISCALL);
  13831. // void Terrain::SetOcclusionLodLevelAttr(unsigned value)
  13832. engine->RegisterObjectMethod(className, "void SetOcclusionLodLevelAttr(uint)", AS_METHODPR(T, SetOcclusionLodLevelAttr, (unsigned), void), AS_CALL_THISCALL);
  13833. // void Terrain::SetPatchSize(int size)
  13834. engine->RegisterObjectMethod(className, "void SetPatchSize(int)", AS_METHODPR(T, SetPatchSize, (int), void), AS_CALL_THISCALL);
  13835. engine->RegisterObjectMethod(className, "void set_patchSize(int)", AS_METHODPR(T, SetPatchSize, (int), void), AS_CALL_THISCALL);
  13836. // void Terrain::SetPatchSizeAttr(int value)
  13837. engine->RegisterObjectMethod(className, "void SetPatchSizeAttr(int)", AS_METHODPR(T, SetPatchSizeAttr, (int), void), AS_CALL_THISCALL);
  13838. // void Terrain::SetShadowDistance(float distance)
  13839. engine->RegisterObjectMethod(className, "void SetShadowDistance(float)", AS_METHODPR(T, SetShadowDistance, (float), void), AS_CALL_THISCALL);
  13840. engine->RegisterObjectMethod(className, "void set_shadowDistance(float)", AS_METHODPR(T, SetShadowDistance, (float), void), AS_CALL_THISCALL);
  13841. // void Terrain::SetShadowMask(unsigned mask)
  13842. engine->RegisterObjectMethod(className, "void SetShadowMask(uint)", AS_METHODPR(T, SetShadowMask, (unsigned), void), AS_CALL_THISCALL);
  13843. engine->RegisterObjectMethod(className, "void set_shadowMask(uint)", AS_METHODPR(T, SetShadowMask, (unsigned), void), AS_CALL_THISCALL);
  13844. // void Terrain::SetSmoothing(bool enable)
  13845. engine->RegisterObjectMethod(className, "void SetSmoothing(bool)", AS_METHODPR(T, SetSmoothing, (bool), void), AS_CALL_THISCALL);
  13846. engine->RegisterObjectMethod(className, "void set_smoothing(bool)", AS_METHODPR(T, SetSmoothing, (bool), void), AS_CALL_THISCALL);
  13847. // void Terrain::SetSouthNeighbor(Terrain* south)
  13848. engine->RegisterObjectMethod(className, "void SetSouthNeighbor(Terrain@+)", AS_METHODPR(T, SetSouthNeighbor, (Terrain*), void), AS_CALL_THISCALL);
  13849. engine->RegisterObjectMethod(className, "void set_southNeighbor(Terrain@+)", AS_METHODPR(T, SetSouthNeighbor, (Terrain*), void), AS_CALL_THISCALL);
  13850. // void Terrain::SetSpacing(const Vector3& spacing)
  13851. engine->RegisterObjectMethod(className, "void SetSpacing(const Vector3&in)", AS_METHODPR(T, SetSpacing, (const Vector3&), void), AS_CALL_THISCALL);
  13852. engine->RegisterObjectMethod(className, "void set_spacing(const Vector3&in)", AS_METHODPR(T, SetSpacing, (const Vector3&), void), AS_CALL_THISCALL);
  13853. // void Terrain::SetViewMask(unsigned mask)
  13854. engine->RegisterObjectMethod(className, "void SetViewMask(uint)", AS_METHODPR(T, SetViewMask, (unsigned), void), AS_CALL_THISCALL);
  13855. engine->RegisterObjectMethod(className, "void set_viewMask(uint)", AS_METHODPR(T, SetViewMask, (unsigned), void), AS_CALL_THISCALL);
  13856. // void Terrain::SetWestNeighbor(Terrain* west)
  13857. engine->RegisterObjectMethod(className, "void SetWestNeighbor(Terrain@+)", AS_METHODPR(T, SetWestNeighbor, (Terrain*), void), AS_CALL_THISCALL);
  13858. engine->RegisterObjectMethod(className, "void set_westNeighbor(Terrain@+)", AS_METHODPR(T, SetWestNeighbor, (Terrain*), void), AS_CALL_THISCALL);
  13859. // void Terrain::SetZoneMask(unsigned mask)
  13860. engine->RegisterObjectMethod(className, "void SetZoneMask(uint)", AS_METHODPR(T, SetZoneMask, (unsigned), void), AS_CALL_THISCALL);
  13861. engine->RegisterObjectMethod(className, "void set_zoneMask(uint)", AS_METHODPR(T, SetZoneMask, (unsigned), void), AS_CALL_THISCALL);
  13862. // void Terrain::UpdatePatchLod(TerrainPatch* patch)
  13863. engine->RegisterObjectMethod(className, "void UpdatePatchLod(TerrainPatch@+)", AS_METHODPR(T, UpdatePatchLod, (TerrainPatch*), void), AS_CALL_THISCALL);
  13864. // IntVector2 Terrain::WorldToHeightMap(const Vector3& worldPosition) const
  13865. engine->RegisterObjectMethod(className, "IntVector2 WorldToHeightMap(const Vector3&in) const", AS_METHODPR(T, WorldToHeightMap, (const Vector3&) const, IntVector2), AS_CALL_THISCALL);
  13866. #ifdef REGISTER_MEMBERS_MANUAL_PART_Terrain
  13867. REGISTER_MEMBERS_MANUAL_PART_Terrain();
  13868. #endif
  13869. }
  13870. // SharedPtr<Image> Texture2D::GetImage() const
  13871. template <class T> Image* Texture2D_SharedPtrlesImagegre_GetImage_void_template(T* _ptr)
  13872. {
  13873. SharedPtr<Image> result = _ptr->GetImage();
  13874. return result.Detach();
  13875. }
  13876. // class Texture2D | File: ../Graphics/Texture2D.h
  13877. template <class T> void RegisterMembers_Texture2D(asIScriptEngine* engine, const char* className)
  13878. {
  13879. RegisterMembers_Texture<T>(engine, className);
  13880. // bool Texture2D::GetData(unsigned level, void* dest) const
  13881. // Error: type "void*" can not automatically bind
  13882. // bool Texture2D::SetData(unsigned level, int x, int y, int width, int height, const void* data)
  13883. // Error: type "const void*" can not automatically bind
  13884. // bool Texture2D::GetImage(Image& image) const
  13885. engine->RegisterObjectMethod(className, "bool GetImage(Image&) const", AS_METHODPR(T, GetImage, (Image&) const, bool), AS_CALL_THISCALL);
  13886. // SharedPtr<Image> Texture2D::GetImage() const
  13887. engine->RegisterObjectMethod(className, "Image@+ GetImage() const", AS_FUNCTION_OBJFIRST(Texture2D_SharedPtrlesImagegre_GetImage_void_template<Texture2D>), AS_CALL_CDECL_OBJFIRST);
  13888. // RenderSurface* Texture2D::GetRenderSurface() const
  13889. engine->RegisterObjectMethod(className, "RenderSurface@+ GetRenderSurface() const", AS_METHODPR(T, GetRenderSurface, () const, RenderSurface*), AS_CALL_THISCALL);
  13890. engine->RegisterObjectMethod(className, "RenderSurface@+ get_renderSurface() const", AS_METHODPR(T, GetRenderSurface, () const, RenderSurface*), AS_CALL_THISCALL);
  13891. // bool Texture2D::SetData(Image* image, bool useAlpha = false)
  13892. engine->RegisterObjectMethod(className, "bool SetData(Image@+, bool = false)", AS_METHODPR(T, SetData, (Image*, bool), bool), AS_CALL_THISCALL);
  13893. // bool Texture2D::SetSize(int width, int height, unsigned format, TextureUsage usage = TEXTURE_STATIC, int multiSample = 1, bool autoResolve = true)
  13894. engine->RegisterObjectMethod(className, "bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true)", AS_METHODPR(T, SetSize, (int, int, unsigned, TextureUsage, int, bool), bool), AS_CALL_THISCALL);
  13895. // static void Texture2D::RegisterObject(Context* context)
  13896. // Not registered because have @nobind mark
  13897. #ifdef REGISTER_MEMBERS_MANUAL_PART_Texture2D
  13898. REGISTER_MEMBERS_MANUAL_PART_Texture2D();
  13899. #endif
  13900. }
  13901. // class Texture2DArray | File: ../Graphics/Texture2DArray.h
  13902. template <class T> void RegisterMembers_Texture2DArray(asIScriptEngine* engine, const char* className)
  13903. {
  13904. RegisterMembers_Texture<T>(engine, className);
  13905. // bool Texture2DArray::GetData(unsigned layer, unsigned level, void* dest) const
  13906. // Error: type "void*" can not automatically bind
  13907. // bool Texture2DArray::SetData(unsigned layer, unsigned level, int x, int y, int width, int height, const void* data)
  13908. // Error: type "const void*" can not automatically bind
  13909. // unsigned Texture2DArray::GetLayers() const
  13910. engine->RegisterObjectMethod(className, "uint GetLayers() const", AS_METHODPR(T, GetLayers, () const, unsigned), AS_CALL_THISCALL);
  13911. engine->RegisterObjectMethod(className, "uint get_layers() const", AS_METHODPR(T, GetLayers, () const, unsigned), AS_CALL_THISCALL);
  13912. // RenderSurface* Texture2DArray::GetRenderSurface() const
  13913. engine->RegisterObjectMethod(className, "RenderSurface@+ GetRenderSurface() const", AS_METHODPR(T, GetRenderSurface, () const, RenderSurface*), AS_CALL_THISCALL);
  13914. engine->RegisterObjectMethod(className, "RenderSurface@+ get_renderSurface() const", AS_METHODPR(T, GetRenderSurface, () const, RenderSurface*), AS_CALL_THISCALL);
  13915. // bool Texture2DArray::SetData(unsigned layer, Deserializer& source)
  13916. engine->RegisterObjectMethod(className, "bool SetData(uint, Deserializer&)", AS_METHODPR(T, SetData, (unsigned, Deserializer&), bool), AS_CALL_THISCALL);
  13917. // bool Texture2DArray::SetData(unsigned layer, Image* image, bool useAlpha = false)
  13918. engine->RegisterObjectMethod(className, "bool SetData(uint, Image@+, bool = false)", AS_METHODPR(T, SetData, (unsigned, Image*, bool), bool), AS_CALL_THISCALL);
  13919. // void Texture2DArray::SetLayers(unsigned layers)
  13920. engine->RegisterObjectMethod(className, "void SetLayers(uint)", AS_METHODPR(T, SetLayers, (unsigned), void), AS_CALL_THISCALL);
  13921. engine->RegisterObjectMethod(className, "void set_layers(uint)", AS_METHODPR(T, SetLayers, (unsigned), void), AS_CALL_THISCALL);
  13922. // bool Texture2DArray::SetSize(unsigned layers, int width, int height, unsigned format, TextureUsage usage = TEXTURE_STATIC)
  13923. engine->RegisterObjectMethod(className, "bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC)", AS_METHODPR(T, SetSize, (unsigned, int, int, unsigned, TextureUsage), bool), AS_CALL_THISCALL);
  13924. // static void Texture2DArray::RegisterObject(Context* context)
  13925. // Not registered because have @nobind mark
  13926. #ifdef REGISTER_MEMBERS_MANUAL_PART_Texture2DArray
  13927. REGISTER_MEMBERS_MANUAL_PART_Texture2DArray();
  13928. #endif
  13929. }
  13930. // class Texture3D | File: ../Graphics/Texture3D.h
  13931. template <class T> void RegisterMembers_Texture3D(asIScriptEngine* engine, const char* className)
  13932. {
  13933. RegisterMembers_Texture<T>(engine, className);
  13934. // bool Texture3D::GetData(unsigned level, void* dest) const
  13935. // Error: type "void*" can not automatically bind
  13936. // bool Texture3D::SetData(unsigned level, int x, int y, int z, int width, int height, int depth, const void* data)
  13937. // Error: type "const void*" can not automatically bind
  13938. // bool Texture3D::SetData(Image* image, bool useAlpha = false)
  13939. engine->RegisterObjectMethod(className, "bool SetData(Image@+, bool = false)", AS_METHODPR(T, SetData, (Image*, bool), bool), AS_CALL_THISCALL);
  13940. // bool Texture3D::SetSize(int width, int height, int depth, unsigned format, TextureUsage usage = TEXTURE_STATIC)
  13941. engine->RegisterObjectMethod(className, "bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC)", AS_METHODPR(T, SetSize, (int, int, int, unsigned, TextureUsage), bool), AS_CALL_THISCALL);
  13942. // static void Texture3D::RegisterObject(Context* context)
  13943. // Not registered because have @nobind mark
  13944. #ifdef REGISTER_MEMBERS_MANUAL_PART_Texture3D
  13945. REGISTER_MEMBERS_MANUAL_PART_Texture3D();
  13946. #endif
  13947. }
  13948. // SharedPtr<Image> TextureCube::GetImage(CubeMapFace face) const
  13949. template <class T> Image* TextureCube_SharedPtrlesImagegre_GetImage_CubeMapFace_template(T* _ptr, CubeMapFace face)
  13950. {
  13951. SharedPtr<Image> result = _ptr->GetImage(face);
  13952. return result.Detach();
  13953. }
  13954. // class TextureCube | File: ../Graphics/TextureCube.h
  13955. template <class T> void RegisterMembers_TextureCube(asIScriptEngine* engine, const char* className)
  13956. {
  13957. RegisterMembers_Texture<T>(engine, className);
  13958. // bool TextureCube::GetData(CubeMapFace face, unsigned level, void* dest) const
  13959. // Error: type "void*" can not automatically bind
  13960. // bool TextureCube::SetData(CubeMapFace face, unsigned level, int x, int y, int width, int height, const void* data)
  13961. // Error: type "const void*" can not automatically bind
  13962. // SharedPtr<Image> TextureCube::GetImage(CubeMapFace face) const
  13963. engine->RegisterObjectMethod(className, "Image@+ GetImage(CubeMapFace) const", AS_FUNCTION_OBJFIRST(TextureCube_SharedPtrlesImagegre_GetImage_CubeMapFace_template<TextureCube>), AS_CALL_CDECL_OBJFIRST);
  13964. // RenderSurface* TextureCube::GetRenderSurface(CubeMapFace face) const
  13965. engine->RegisterObjectMethod(className, "RenderSurface@+ GetRenderSurface(CubeMapFace) const", AS_METHODPR(T, GetRenderSurface, (CubeMapFace) const, RenderSurface*), AS_CALL_THISCALL);
  13966. engine->RegisterObjectMethod(className, "RenderSurface@+ get_renderSurfaces(CubeMapFace) const", AS_METHODPR(T, GetRenderSurface, (CubeMapFace) const, RenderSurface*), AS_CALL_THISCALL);
  13967. // bool TextureCube::SetData(CubeMapFace face, Deserializer& source)
  13968. engine->RegisterObjectMethod(className, "bool SetData(CubeMapFace, Deserializer&)", AS_METHODPR(T, SetData, (CubeMapFace, Deserializer&), bool), AS_CALL_THISCALL);
  13969. // bool TextureCube::SetData(CubeMapFace face, Image* image, bool useAlpha = false)
  13970. engine->RegisterObjectMethod(className, "bool SetData(CubeMapFace, Image@+, bool = false)", AS_METHODPR(T, SetData, (CubeMapFace, Image*, bool), bool), AS_CALL_THISCALL);
  13971. // bool TextureCube::SetSize(int size, unsigned format, TextureUsage usage = TEXTURE_STATIC, int multiSample = 1)
  13972. engine->RegisterObjectMethod(className, "bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1)", AS_METHODPR(T, SetSize, (int, unsigned, TextureUsage, int), bool), AS_CALL_THISCALL);
  13973. // static void TextureCube::RegisterObject(Context* context)
  13974. // Not registered because have @nobind mark
  13975. #ifdef REGISTER_MEMBERS_MANUAL_PART_TextureCube
  13976. REGISTER_MEMBERS_MANUAL_PART_TextureCube();
  13977. #endif
  13978. }
  13979. // class ToolTip | File: ../UI/ToolTip.h
  13980. template <class T> void RegisterMembers_ToolTip(asIScriptEngine* engine, const char* className)
  13981. {
  13982. RegisterMembers_UIElement<T>(engine, className);
  13983. // void ToolTip::AddAltTarget(UIElement* target)
  13984. engine->RegisterObjectMethod(className, "void AddAltTarget(UIElement@+)", AS_METHODPR(T, AddAltTarget, (UIElement*), void), AS_CALL_THISCALL);
  13985. // float ToolTip::GetDelay() const
  13986. engine->RegisterObjectMethod(className, "float GetDelay() const", AS_METHODPR(T, GetDelay, () const, float), AS_CALL_THISCALL);
  13987. engine->RegisterObjectMethod(className, "float get_delay() const", AS_METHODPR(T, GetDelay, () const, float), AS_CALL_THISCALL);
  13988. // const IntVector2& UIElement::GetPosition() const
  13989. engine->RegisterObjectMethod(className, "const IntVector2& GetPosition() const", AS_METHODPR(T, GetPosition, () const, const IntVector2&), AS_CALL_THISCALL);
  13990. engine->RegisterObjectMethod(className, "const IntVector2& get_position() const", AS_METHODPR(T, GetPosition, () const, const IntVector2&), AS_CALL_THISCALL);
  13991. // bool UIElement::IsSelected() const
  13992. engine->RegisterObjectMethod(className, "bool IsSelected() const", AS_METHODPR(T, IsSelected, () const, bool), AS_CALL_THISCALL);
  13993. engine->RegisterObjectMethod(className, "bool get_selected() const", AS_METHODPR(T, IsSelected, () const, bool), AS_CALL_THISCALL);
  13994. // void ToolTip::Reset()
  13995. engine->RegisterObjectMethod(className, "void Reset()", AS_METHODPR(T, Reset, (), void), AS_CALL_THISCALL);
  13996. // void ToolTip::SetDelay(float delay)
  13997. engine->RegisterObjectMethod(className, "void SetDelay(float)", AS_METHODPR(T, SetDelay, (float), void), AS_CALL_THISCALL);
  13998. engine->RegisterObjectMethod(className, "void set_delay(float)", AS_METHODPR(T, SetDelay, (float), void), AS_CALL_THISCALL);
  13999. // void UIElement::SetPosition(const IntVector2& position)
  14000. engine->RegisterObjectMethod(className, "void SetPosition(const IntVector2&in)", AS_METHODPR(T, SetPosition, (const IntVector2&), void), AS_CALL_THISCALL);
  14001. engine->RegisterObjectMethod(className, "void set_position(const IntVector2&in)", AS_METHODPR(T, SetPosition, (const IntVector2&), void), AS_CALL_THISCALL);
  14002. // void UIElement::SetPosition(int x, int y)
  14003. engine->RegisterObjectMethod(className, "void SetPosition(int, int)", AS_METHODPR(T, SetPosition, (int, int), void), AS_CALL_THISCALL);
  14004. #ifdef REGISTER_MEMBERS_MANUAL_PART_ToolTip
  14005. REGISTER_MEMBERS_MANUAL_PART_ToolTip();
  14006. #endif
  14007. }
  14008. // class UIComponent | File: ../UI/UIComponent.h
  14009. template <class T> void RegisterMembers_UIComponent(asIScriptEngine* engine, const char* className)
  14010. {
  14011. RegisterMembers_Component<T>(engine, className);
  14012. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  14013. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14014. // Material* UIComponent::GetMaterial() const
  14015. engine->RegisterObjectMethod(className, "Material@+ GetMaterial() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  14016. engine->RegisterObjectMethod(className, "Material@+ get_material() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  14017. // UIElement* UIComponent::GetRoot() const
  14018. engine->RegisterObjectMethod(className, "UIElement@+ GetRoot() const", AS_METHODPR(T, GetRoot, () const, UIElement*), AS_CALL_THISCALL);
  14019. engine->RegisterObjectMethod(className, "UIElement@+ get_root() const", AS_METHODPR(T, GetRoot, () const, UIElement*), AS_CALL_THISCALL);
  14020. // Texture2D* UIComponent::GetTexture() const
  14021. engine->RegisterObjectMethod(className, "Texture2D@+ GetTexture() const", AS_METHODPR(T, GetTexture, () const, Texture2D*), AS_CALL_THISCALL);
  14022. engine->RegisterObjectMethod(className, "Texture2D@+ get_texture() const", AS_METHODPR(T, GetTexture, () const, Texture2D*), AS_CALL_THISCALL);
  14023. // virtual void Component::OnSetEnabled()
  14024. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14025. // void UIComponent::SetViewportIndex(unsigned index)
  14026. engine->RegisterObjectMethod(className, "void SetViewportIndex(uint)", AS_METHODPR(T, SetViewportIndex, (unsigned), void), AS_CALL_THISCALL);
  14027. #ifdef REGISTER_MEMBERS_MANUAL_PART_UIComponent
  14028. REGISTER_MEMBERS_MANUAL_PART_UIComponent();
  14029. #endif
  14030. }
  14031. // class UISelectable | File: ../UI/UISelectable.h
  14032. template <class T> void RegisterMembers_UISelectable(asIScriptEngine* engine, const char* className)
  14033. {
  14034. RegisterMembers_UIElement<T>(engine, className);
  14035. // const Color& UISelectable::GetHoverColor() const
  14036. engine->RegisterObjectMethod(className, "const Color& GetHoverColor() const", AS_METHODPR(T, GetHoverColor, () const, const Color&), AS_CALL_THISCALL);
  14037. engine->RegisterObjectMethod(className, "const Color& get_hoverColor() const", AS_METHODPR(T, GetHoverColor, () const, const Color&), AS_CALL_THISCALL);
  14038. // const IntVector2& UIElement::GetPosition() const
  14039. engine->RegisterObjectMethod(className, "const IntVector2& GetPosition() const", AS_METHODPR(T, GetPosition, () const, const IntVector2&), AS_CALL_THISCALL);
  14040. engine->RegisterObjectMethod(className, "const IntVector2& get_position() const", AS_METHODPR(T, GetPosition, () const, const IntVector2&), AS_CALL_THISCALL);
  14041. // const Color& UISelectable::GetSelectionColor() const
  14042. engine->RegisterObjectMethod(className, "const Color& GetSelectionColor() const", AS_METHODPR(T, GetSelectionColor, () const, const Color&), AS_CALL_THISCALL);
  14043. engine->RegisterObjectMethod(className, "const Color& get_selectionColor() const", AS_METHODPR(T, GetSelectionColor, () const, const Color&), AS_CALL_THISCALL);
  14044. // bool UIElement::IsSelected() const
  14045. engine->RegisterObjectMethod(className, "bool IsSelected() const", AS_METHODPR(T, IsSelected, () const, bool), AS_CALL_THISCALL);
  14046. engine->RegisterObjectMethod(className, "bool get_selected() const", AS_METHODPR(T, IsSelected, () const, bool), AS_CALL_THISCALL);
  14047. // void UISelectable::SetHoverColor(const Color& color)
  14048. engine->RegisterObjectMethod(className, "void SetHoverColor(const Color&in)", AS_METHODPR(T, SetHoverColor, (const Color&), void), AS_CALL_THISCALL);
  14049. engine->RegisterObjectMethod(className, "void set_hoverColor(const Color&in)", AS_METHODPR(T, SetHoverColor, (const Color&), void), AS_CALL_THISCALL);
  14050. // void UIElement::SetPosition(const IntVector2& position)
  14051. engine->RegisterObjectMethod(className, "void SetPosition(const IntVector2&in)", AS_METHODPR(T, SetPosition, (const IntVector2&), void), AS_CALL_THISCALL);
  14052. engine->RegisterObjectMethod(className, "void set_position(const IntVector2&in)", AS_METHODPR(T, SetPosition, (const IntVector2&), void), AS_CALL_THISCALL);
  14053. // void UIElement::SetPosition(int x, int y)
  14054. engine->RegisterObjectMethod(className, "void SetPosition(int, int)", AS_METHODPR(T, SetPosition, (int, int), void), AS_CALL_THISCALL);
  14055. // void UISelectable::SetSelectionColor(const Color& color)
  14056. engine->RegisterObjectMethod(className, "void SetSelectionColor(const Color&in)", AS_METHODPR(T, SetSelectionColor, (const Color&), void), AS_CALL_THISCALL);
  14057. engine->RegisterObjectMethod(className, "void set_selectionColor(const Color&in)", AS_METHODPR(T, SetSelectionColor, (const Color&), void), AS_CALL_THISCALL);
  14058. #ifdef REGISTER_MEMBERS_MANUAL_PART_UISelectable
  14059. REGISTER_MEMBERS_MANUAL_PART_UISelectable();
  14060. #endif
  14061. }
  14062. // const Vector<String>& UnknownComponent::GetXMLAttributes() const
  14063. template <class T> CScriptArray* UnknownComponent_constspVectorlesStringgreamp_GetXMLAttributes_void_template(T* _ptr)
  14064. {
  14065. const Vector<String>& result = _ptr->GetXMLAttributes();
  14066. return VectorToArray<String>(result, "Array<String>");
  14067. }
  14068. // class UnknownComponent | File: ../Scene/UnknownComponent.h
  14069. template <class T> void RegisterMembers_UnknownComponent(asIScriptEngine* engine, const char* className)
  14070. {
  14071. RegisterMembers_Component<T>(engine, className);
  14072. // const PODVector<unsigned char>& UnknownComponent::GetBinaryAttributes() const
  14073. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  14074. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  14075. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14076. // bool UnknownComponent::GetUseXML() const
  14077. engine->RegisterObjectMethod(className, "bool GetUseXML() const", AS_METHODPR(T, GetUseXML, () const, bool), AS_CALL_THISCALL);
  14078. // const Vector<String>& UnknownComponent::GetXMLAttributes() const
  14079. engine->RegisterObjectMethod(className, "Array<String>@ GetXMLAttributes() const", AS_FUNCTION_OBJFIRST(UnknownComponent_constspVectorlesStringgreamp_GetXMLAttributes_void_template<UnknownComponent>), AS_CALL_CDECL_OBJFIRST);
  14080. // virtual void Component::OnSetEnabled()
  14081. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14082. // void UnknownComponent::SetType(StringHash typeHash)
  14083. engine->RegisterObjectMethod(className, "void SetType(StringHash)", AS_METHODPR(T, SetType, (StringHash), void), AS_CALL_THISCALL);
  14084. // void UnknownComponent::SetTypeName(const String& typeName)
  14085. engine->RegisterObjectMethod(className, "void SetTypeName(const String&in)", AS_METHODPR(T, SetTypeName, (const String&), void), AS_CALL_THISCALL);
  14086. // static Urho3D::StringHash UnknownComponent::GetTypeStatic()
  14087. // Error: type "Urho3D::StringHash" can not automatically bind
  14088. // static const Urho3D::String& UnknownComponent::GetTypeNameStatic()
  14089. // Error: type "const Urho3D::String&" can not automatically bind
  14090. #ifdef REGISTER_MEMBERS_MANUAL_PART_UnknownComponent
  14091. REGISTER_MEMBERS_MANUAL_PART_UnknownComponent();
  14092. #endif
  14093. }
  14094. #ifdef URHO3D_IK
  14095. // class IKConstraint | File: ../IK/IKConstraint.h
  14096. template <class T> void RegisterMembers_IKConstraint(asIScriptEngine* engine, const char* className)
  14097. {
  14098. RegisterMembers_Component<T>(engine, className);
  14099. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  14100. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14101. // const Vector2& IKConstraint::GetLengthConstraints() const
  14102. engine->RegisterObjectMethod(className, "const Vector2& GetLengthConstraints() const", AS_METHODPR(T, GetLengthConstraints, () const, const Vector2&), AS_CALL_THISCALL);
  14103. // float IKConstraint::GetStiffness() const
  14104. engine->RegisterObjectMethod(className, "float GetStiffness() const", AS_METHODPR(T, GetStiffness, () const, float), AS_CALL_THISCALL);
  14105. // float IKConstraint::GetStretchiness() const
  14106. engine->RegisterObjectMethod(className, "float GetStretchiness() const", AS_METHODPR(T, GetStretchiness, () const, float), AS_CALL_THISCALL);
  14107. // virtual void Component::OnSetEnabled()
  14108. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14109. // void IKConstraint::SetLengthConstraints(const Vector2& lengthConstraints)
  14110. engine->RegisterObjectMethod(className, "void SetLengthConstraints(const Vector2&in)", AS_METHODPR(T, SetLengthConstraints, (const Vector2&), void), AS_CALL_THISCALL);
  14111. // void IKConstraint::SetStiffness(float stiffness)
  14112. engine->RegisterObjectMethod(className, "void SetStiffness(float)", AS_METHODPR(T, SetStiffness, (float), void), AS_CALL_THISCALL);
  14113. // void IKConstraint::SetStretchiness(float stretchiness)
  14114. engine->RegisterObjectMethod(className, "void SetStretchiness(float)", AS_METHODPR(T, SetStretchiness, (float), void), AS_CALL_THISCALL);
  14115. #ifdef REGISTER_MEMBERS_MANUAL_PART_IKConstraint
  14116. REGISTER_MEMBERS_MANUAL_PART_IKConstraint();
  14117. #endif
  14118. }
  14119. // class IKEffector | File: ../IK/IKEffector.h
  14120. template <class T> void RegisterMembers_IKEffector(asIScriptEngine* engine, const char* className)
  14121. {
  14122. RegisterMembers_Component<T>(engine, className);
  14123. // bool IKEffector::GetFeature(Feature feature) const
  14124. // Not registered because have @nobind mark
  14125. // void IKEffector::SetFeature(Feature feature, bool enable)
  14126. // Not registered because have @nobind mark
  14127. // void IKEffector::DrawDebugGeometry(bool depthTest)
  14128. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(bool)", AS_METHODPR(T, DrawDebugGeometry, (bool), void), AS_CALL_THISCALL);
  14129. // void IKEffector::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  14130. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14131. // unsigned IKEffector::GetChainLength() const
  14132. engine->RegisterObjectMethod(className, "uint GetChainLength() const", AS_METHODPR(T, GetChainLength, () const, unsigned), AS_CALL_THISCALL);
  14133. engine->RegisterObjectMethod(className, "uint get_chainLength() const", AS_METHODPR(T, GetChainLength, () const, unsigned), AS_CALL_THISCALL);
  14134. // bool IKEffector::GetINHERIT_PARENT_ROTATION() const
  14135. engine->RegisterObjectMethod(className, "bool GetINHERIT_PARENT_ROTATION() const", AS_METHODPR(T, GetINHERIT_PARENT_ROTATION, () const, bool), AS_CALL_THISCALL);
  14136. // float IKEffector::GetRotationDecay() const
  14137. engine->RegisterObjectMethod(className, "float GetRotationDecay() const", AS_METHODPR(T, GetRotationDecay, () const, float), AS_CALL_THISCALL);
  14138. engine->RegisterObjectMethod(className, "float get_rotationDecay() const", AS_METHODPR(T, GetRotationDecay, () const, float), AS_CALL_THISCALL);
  14139. // float IKEffector::GetRotationWeight() const
  14140. engine->RegisterObjectMethod(className, "float GetRotationWeight() const", AS_METHODPR(T, GetRotationWeight, () const, float), AS_CALL_THISCALL);
  14141. engine->RegisterObjectMethod(className, "float get_rotationWeight() const", AS_METHODPR(T, GetRotationWeight, () const, float), AS_CALL_THISCALL);
  14142. // const String& IKEffector::GetTargetName() const
  14143. engine->RegisterObjectMethod(className, "const String& GetTargetName() const", AS_METHODPR(T, GetTargetName, () const, const String&), AS_CALL_THISCALL);
  14144. engine->RegisterObjectMethod(className, "const String& get_targetName() const", AS_METHODPR(T, GetTargetName, () const, const String&), AS_CALL_THISCALL);
  14145. // Node* IKEffector::GetTargetNode() const
  14146. engine->RegisterObjectMethod(className, "Node@+ GetTargetNode() const", AS_METHODPR(T, GetTargetNode, () const, Node*), AS_CALL_THISCALL);
  14147. engine->RegisterObjectMethod(className, "Node@+ get_targetNode() const", AS_METHODPR(T, GetTargetNode, () const, Node*), AS_CALL_THISCALL);
  14148. // const Vector3& IKEffector::GetTargetPosition() const
  14149. engine->RegisterObjectMethod(className, "const Vector3& GetTargetPosition() const", AS_METHODPR(T, GetTargetPosition, () const, const Vector3&), AS_CALL_THISCALL);
  14150. engine->RegisterObjectMethod(className, "const Vector3& get_targetPosition() const", AS_METHODPR(T, GetTargetPosition, () const, const Vector3&), AS_CALL_THISCALL);
  14151. // const Quaternion& IKEffector::GetTargetRotation() const
  14152. engine->RegisterObjectMethod(className, "const Quaternion& GetTargetRotation() const", AS_METHODPR(T, GetTargetRotation, () const, const Quaternion&), AS_CALL_THISCALL);
  14153. engine->RegisterObjectMethod(className, "const Quaternion& get_targetRotation() const", AS_METHODPR(T, GetTargetRotation, () const, const Quaternion&), AS_CALL_THISCALL);
  14154. // Vector3 IKEffector::GetTargetRotationEuler() const
  14155. engine->RegisterObjectMethod(className, "Vector3 GetTargetRotationEuler() const", AS_METHODPR(T, GetTargetRotationEuler, () const, Vector3), AS_CALL_THISCALL);
  14156. // float IKEffector::GetWeight() const
  14157. engine->RegisterObjectMethod(className, "float GetWeight() const", AS_METHODPR(T, GetWeight, () const, float), AS_CALL_THISCALL);
  14158. engine->RegisterObjectMethod(className, "float get_weight() const", AS_METHODPR(T, GetWeight, () const, float), AS_CALL_THISCALL);
  14159. // bool IKEffector::GetWEIGHT_NLERP() const
  14160. engine->RegisterObjectMethod(className, "bool GetWEIGHT_NLERP() const", AS_METHODPR(T, GetWEIGHT_NLERP, () const, bool), AS_CALL_THISCALL);
  14161. // virtual void Component::OnSetEnabled()
  14162. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14163. // void IKEffector::SetChainLength(unsigned chainLength)
  14164. engine->RegisterObjectMethod(className, "void SetChainLength(uint)", AS_METHODPR(T, SetChainLength, (unsigned), void), AS_CALL_THISCALL);
  14165. engine->RegisterObjectMethod(className, "void set_chainLength(uint)", AS_METHODPR(T, SetChainLength, (unsigned), void), AS_CALL_THISCALL);
  14166. // void IKEffector::SetINHERIT_PARENT_ROTATION(bool enable)
  14167. engine->RegisterObjectMethod(className, "void SetINHERIT_PARENT_ROTATION(bool)", AS_METHODPR(T, SetINHERIT_PARENT_ROTATION, (bool), void), AS_CALL_THISCALL);
  14168. // void IKEffector::SetRotationDecay(float decay)
  14169. engine->RegisterObjectMethod(className, "void SetRotationDecay(float)", AS_METHODPR(T, SetRotationDecay, (float), void), AS_CALL_THISCALL);
  14170. engine->RegisterObjectMethod(className, "void set_rotationDecay(float)", AS_METHODPR(T, SetRotationDecay, (float), void), AS_CALL_THISCALL);
  14171. // void IKEffector::SetRotationWeight(float weight)
  14172. engine->RegisterObjectMethod(className, "void SetRotationWeight(float)", AS_METHODPR(T, SetRotationWeight, (float), void), AS_CALL_THISCALL);
  14173. engine->RegisterObjectMethod(className, "void set_rotationWeight(float)", AS_METHODPR(T, SetRotationWeight, (float), void), AS_CALL_THISCALL);
  14174. // void IKEffector::SetTargetName(const String& nodeName)
  14175. engine->RegisterObjectMethod(className, "void SetTargetName(const String&in)", AS_METHODPR(T, SetTargetName, (const String&), void), AS_CALL_THISCALL);
  14176. engine->RegisterObjectMethod(className, "void set_targetName(const String&in)", AS_METHODPR(T, SetTargetName, (const String&), void), AS_CALL_THISCALL);
  14177. // void IKEffector::SetTargetNode(Node* targetNode)
  14178. engine->RegisterObjectMethod(className, "void SetTargetNode(Node@+)", AS_METHODPR(T, SetTargetNode, (Node*), void), AS_CALL_THISCALL);
  14179. engine->RegisterObjectMethod(className, "void set_targetNode(Node@+)", AS_METHODPR(T, SetTargetNode, (Node*), void), AS_CALL_THISCALL);
  14180. // void IKEffector::SetTargetPosition(const Vector3& targetPosition)
  14181. engine->RegisterObjectMethod(className, "void SetTargetPosition(const Vector3&in)", AS_METHODPR(T, SetTargetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  14182. engine->RegisterObjectMethod(className, "void set_targetPosition(const Vector3&in)", AS_METHODPR(T, SetTargetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  14183. // void IKEffector::SetTargetRotation(const Quaternion& targetRotation)
  14184. engine->RegisterObjectMethod(className, "void SetTargetRotation(const Quaternion&in)", AS_METHODPR(T, SetTargetRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  14185. engine->RegisterObjectMethod(className, "void set_targetRotation(const Quaternion&in)", AS_METHODPR(T, SetTargetRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  14186. // void IKEffector::SetTargetRotationEuler(const Vector3& targetRotation)
  14187. engine->RegisterObjectMethod(className, "void SetTargetRotationEuler(const Vector3&in)", AS_METHODPR(T, SetTargetRotationEuler, (const Vector3&), void), AS_CALL_THISCALL);
  14188. // void IKEffector::SetWeight(float weight)
  14189. engine->RegisterObjectMethod(className, "void SetWeight(float)", AS_METHODPR(T, SetWeight, (float), void), AS_CALL_THISCALL);
  14190. engine->RegisterObjectMethod(className, "void set_weight(float)", AS_METHODPR(T, SetWeight, (float), void), AS_CALL_THISCALL);
  14191. // void IKEffector::SetWEIGHT_NLERP(bool enable)
  14192. engine->RegisterObjectMethod(className, "void SetWEIGHT_NLERP(bool)", AS_METHODPR(T, SetWEIGHT_NLERP, (bool), void), AS_CALL_THISCALL);
  14193. #ifdef REGISTER_MEMBERS_MANUAL_PART_IKEffector
  14194. REGISTER_MEMBERS_MANUAL_PART_IKEffector();
  14195. #endif
  14196. }
  14197. // class IKSolver | File: ../IK/IKSolver.h
  14198. template <class T> void RegisterMembers_IKSolver(asIScriptEngine* engine, const char* className)
  14199. {
  14200. RegisterMembers_Component<T>(engine, className);
  14201. // Algorithm IKSolver::GetAlgorithm() const
  14202. // Not registered because have @manualbind mark
  14203. // bool IKSolver::GetFeature(Feature feature) const
  14204. // Not registered because have @nobind mark
  14205. // void IKSolver::SetAlgorithm(Algorithm algorithm)
  14206. // Not registered because have @manualbind mark
  14207. // void IKSolver::SetFeature(Feature feature, bool enable)
  14208. // Not registered because have @nobind mark
  14209. // void IKSolver::ApplyActivePoseToScene()
  14210. engine->RegisterObjectMethod(className, "void ApplyActivePoseToScene()", AS_METHODPR(T, ApplyActivePoseToScene, (), void), AS_CALL_THISCALL);
  14211. // void IKSolver::ApplyOriginalPoseToActivePose()
  14212. engine->RegisterObjectMethod(className, "void ApplyOriginalPoseToActivePose()", AS_METHODPR(T, ApplyOriginalPoseToActivePose, (), void), AS_CALL_THISCALL);
  14213. // void IKSolver::ApplyOriginalPoseToScene()
  14214. engine->RegisterObjectMethod(className, "void ApplyOriginalPoseToScene()", AS_METHODPR(T, ApplyOriginalPoseToScene, (), void), AS_CALL_THISCALL);
  14215. // void IKSolver::ApplySceneToActivePose()
  14216. engine->RegisterObjectMethod(className, "void ApplySceneToActivePose()", AS_METHODPR(T, ApplySceneToActivePose, (), void), AS_CALL_THISCALL);
  14217. // void IKSolver::ApplySceneToOriginalPose()
  14218. engine->RegisterObjectMethod(className, "void ApplySceneToOriginalPose()", AS_METHODPR(T, ApplySceneToOriginalPose, (), void), AS_CALL_THISCALL);
  14219. // void IKSolver::CalculateJointRotations()
  14220. engine->RegisterObjectMethod(className, "void CalculateJointRotations()", AS_METHODPR(T, CalculateJointRotations, (), void), AS_CALL_THISCALL);
  14221. // void IKSolver::DrawDebugGeometry(bool depthTest)
  14222. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(bool)", AS_METHODPR(T, DrawDebugGeometry, (bool), void), AS_CALL_THISCALL);
  14223. // void IKSolver::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  14224. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14225. // bool IKSolver::GetAUTO_SOLVE() const
  14226. engine->RegisterObjectMethod(className, "bool GetAUTO_SOLVE() const", AS_METHODPR(T, GetAUTO_SOLVE, () const, bool), AS_CALL_THISCALL);
  14227. engine->RegisterObjectMethod(className, "bool get_AUTO_SOLVE() const", AS_METHODPR(T, GetAUTO_SOLVE, () const, bool), AS_CALL_THISCALL);
  14228. // bool IKSolver::GetCONSTRAINTS() const
  14229. engine->RegisterObjectMethod(className, "bool GetCONSTRAINTS() const", AS_METHODPR(T, GetCONSTRAINTS, () const, bool), AS_CALL_THISCALL);
  14230. engine->RegisterObjectMethod(className, "bool get_CONSTRAINTS() const", AS_METHODPR(T, GetCONSTRAINTS, () const, bool), AS_CALL_THISCALL);
  14231. // bool IKSolver::GetJOINT_ROTATIONS() const
  14232. engine->RegisterObjectMethod(className, "bool GetJOINT_ROTATIONS() const", AS_METHODPR(T, GetJOINT_ROTATIONS, () const, bool), AS_CALL_THISCALL);
  14233. engine->RegisterObjectMethod(className, "bool get_JOINT_ROTATIONS() const", AS_METHODPR(T, GetJOINT_ROTATIONS, () const, bool), AS_CALL_THISCALL);
  14234. // unsigned IKSolver::GetMaximumIterations() const
  14235. engine->RegisterObjectMethod(className, "uint GetMaximumIterations() const", AS_METHODPR(T, GetMaximumIterations, () const, unsigned), AS_CALL_THISCALL);
  14236. engine->RegisterObjectMethod(className, "uint get_maximumIterations() const", AS_METHODPR(T, GetMaximumIterations, () const, unsigned), AS_CALL_THISCALL);
  14237. // bool IKSolver::GetTARGET_ROTATIONS() const
  14238. engine->RegisterObjectMethod(className, "bool GetTARGET_ROTATIONS() const", AS_METHODPR(T, GetTARGET_ROTATIONS, () const, bool), AS_CALL_THISCALL);
  14239. engine->RegisterObjectMethod(className, "bool get_TARGET_ROTATIONS() const", AS_METHODPR(T, GetTARGET_ROTATIONS, () const, bool), AS_CALL_THISCALL);
  14240. // float IKSolver::GetTolerance() const
  14241. engine->RegisterObjectMethod(className, "float GetTolerance() const", AS_METHODPR(T, GetTolerance, () const, float), AS_CALL_THISCALL);
  14242. engine->RegisterObjectMethod(className, "float get_tolerance() const", AS_METHODPR(T, GetTolerance, () const, float), AS_CALL_THISCALL);
  14243. // bool IKSolver::GetUPDATE_ACTIVE_POSE() const
  14244. engine->RegisterObjectMethod(className, "bool GetUPDATE_ACTIVE_POSE() const", AS_METHODPR(T, GetUPDATE_ACTIVE_POSE, () const, bool), AS_CALL_THISCALL);
  14245. engine->RegisterObjectMethod(className, "bool get_UPDATE_ACTIVE_POSE() const", AS_METHODPR(T, GetUPDATE_ACTIVE_POSE, () const, bool), AS_CALL_THISCALL);
  14246. // bool IKSolver::GetUPDATE_ORIGINAL_POSE() const
  14247. engine->RegisterObjectMethod(className, "bool GetUPDATE_ORIGINAL_POSE() const", AS_METHODPR(T, GetUPDATE_ORIGINAL_POSE, () const, bool), AS_CALL_THISCALL);
  14248. engine->RegisterObjectMethod(className, "bool get_UPDATE_ORIGINAL_POSE() const", AS_METHODPR(T, GetUPDATE_ORIGINAL_POSE, () const, bool), AS_CALL_THISCALL);
  14249. // bool IKSolver::GetUSE_ORIGINAL_POSE() const
  14250. engine->RegisterObjectMethod(className, "bool GetUSE_ORIGINAL_POSE() const", AS_METHODPR(T, GetUSE_ORIGINAL_POSE, () const, bool), AS_CALL_THISCALL);
  14251. engine->RegisterObjectMethod(className, "bool get_USE_ORIGINAL_POSE() const", AS_METHODPR(T, GetUSE_ORIGINAL_POSE, () const, bool), AS_CALL_THISCALL);
  14252. // virtual void Component::OnSetEnabled()
  14253. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14254. // void IKSolver::RebuildChainTrees()
  14255. engine->RegisterObjectMethod(className, "void RebuildChainTrees()", AS_METHODPR(T, RebuildChainTrees, (), void), AS_CALL_THISCALL);
  14256. // void IKSolver::RecalculateSegmentLengths()
  14257. engine->RegisterObjectMethod(className, "void RecalculateSegmentLengths()", AS_METHODPR(T, RecalculateSegmentLengths, (), void), AS_CALL_THISCALL);
  14258. // void IKSolver::SetAUTO_SOLVE(bool enable)
  14259. engine->RegisterObjectMethod(className, "void SetAUTO_SOLVE(bool)", AS_METHODPR(T, SetAUTO_SOLVE, (bool), void), AS_CALL_THISCALL);
  14260. engine->RegisterObjectMethod(className, "void set_AUTO_SOLVE(bool)", AS_METHODPR(T, SetAUTO_SOLVE, (bool), void), AS_CALL_THISCALL);
  14261. // void IKSolver::SetCONSTRAINTS(bool enable)
  14262. engine->RegisterObjectMethod(className, "void SetCONSTRAINTS(bool)", AS_METHODPR(T, SetCONSTRAINTS, (bool), void), AS_CALL_THISCALL);
  14263. engine->RegisterObjectMethod(className, "void set_CONSTRAINTS(bool)", AS_METHODPR(T, SetCONSTRAINTS, (bool), void), AS_CALL_THISCALL);
  14264. // void IKSolver::SetJOINT_ROTATIONS(bool enable)
  14265. engine->RegisterObjectMethod(className, "void SetJOINT_ROTATIONS(bool)", AS_METHODPR(T, SetJOINT_ROTATIONS, (bool), void), AS_CALL_THISCALL);
  14266. engine->RegisterObjectMethod(className, "void set_JOINT_ROTATIONS(bool)", AS_METHODPR(T, SetJOINT_ROTATIONS, (bool), void), AS_CALL_THISCALL);
  14267. // void IKSolver::SetMaximumIterations(unsigned iterations)
  14268. engine->RegisterObjectMethod(className, "void SetMaximumIterations(uint)", AS_METHODPR(T, SetMaximumIterations, (unsigned), void), AS_CALL_THISCALL);
  14269. engine->RegisterObjectMethod(className, "void set_maximumIterations(uint)", AS_METHODPR(T, SetMaximumIterations, (unsigned), void), AS_CALL_THISCALL);
  14270. // void IKSolver::SetTARGET_ROTATIONS(bool enable)
  14271. engine->RegisterObjectMethod(className, "void SetTARGET_ROTATIONS(bool)", AS_METHODPR(T, SetTARGET_ROTATIONS, (bool), void), AS_CALL_THISCALL);
  14272. engine->RegisterObjectMethod(className, "void set_TARGET_ROTATIONS(bool)", AS_METHODPR(T, SetTARGET_ROTATIONS, (bool), void), AS_CALL_THISCALL);
  14273. // void IKSolver::SetTolerance(float tolerance)
  14274. engine->RegisterObjectMethod(className, "void SetTolerance(float)", AS_METHODPR(T, SetTolerance, (float), void), AS_CALL_THISCALL);
  14275. engine->RegisterObjectMethod(className, "void set_tolerance(float)", AS_METHODPR(T, SetTolerance, (float), void), AS_CALL_THISCALL);
  14276. // void IKSolver::SetUPDATE_ACTIVE_POSE(bool enable)
  14277. engine->RegisterObjectMethod(className, "void SetUPDATE_ACTIVE_POSE(bool)", AS_METHODPR(T, SetUPDATE_ACTIVE_POSE, (bool), void), AS_CALL_THISCALL);
  14278. engine->RegisterObjectMethod(className, "void set_UPDATE_ACTIVE_POSE(bool)", AS_METHODPR(T, SetUPDATE_ACTIVE_POSE, (bool), void), AS_CALL_THISCALL);
  14279. // void IKSolver::SetUPDATE_ORIGINAL_POSE(bool enable)
  14280. engine->RegisterObjectMethod(className, "void SetUPDATE_ORIGINAL_POSE(bool)", AS_METHODPR(T, SetUPDATE_ORIGINAL_POSE, (bool), void), AS_CALL_THISCALL);
  14281. engine->RegisterObjectMethod(className, "void set_UPDATE_ORIGINAL_POSE(bool)", AS_METHODPR(T, SetUPDATE_ORIGINAL_POSE, (bool), void), AS_CALL_THISCALL);
  14282. // void IKSolver::SetUSE_ORIGINAL_POSE(bool enable)
  14283. engine->RegisterObjectMethod(className, "void SetUSE_ORIGINAL_POSE(bool)", AS_METHODPR(T, SetUSE_ORIGINAL_POSE, (bool), void), AS_CALL_THISCALL);
  14284. engine->RegisterObjectMethod(className, "void set_USE_ORIGINAL_POSE(bool)", AS_METHODPR(T, SetUSE_ORIGINAL_POSE, (bool), void), AS_CALL_THISCALL);
  14285. // void IKSolver::Solve()
  14286. engine->RegisterObjectMethod(className, "void Solve()", AS_METHODPR(T, Solve, (), void), AS_CALL_THISCALL);
  14287. #ifdef REGISTER_MEMBERS_MANUAL_PART_IKSolver
  14288. REGISTER_MEMBERS_MANUAL_PART_IKSolver();
  14289. #endif
  14290. }
  14291. #endif // def URHO3D_IK
  14292. #ifdef URHO3D_NAVIGATION
  14293. // class CrowdAgent | File: ../Navigation/CrowdAgent.h
  14294. template <class T> void RegisterMembers_CrowdAgent(asIScriptEngine* engine, const char* className)
  14295. {
  14296. RegisterMembers_Component<T>(engine, className);
  14297. // void CrowdAgent::DrawDebugGeometry(bool depthTest)
  14298. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(bool)", AS_METHODPR(T, DrawDebugGeometry, (bool), void), AS_CALL_THISCALL);
  14299. // void CrowdAgent::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  14300. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14301. // Vector3 CrowdAgent::GetActualVelocity() const
  14302. engine->RegisterObjectMethod(className, "Vector3 GetActualVelocity() const", AS_METHODPR(T, GetActualVelocity, () const, Vector3), AS_CALL_THISCALL);
  14303. engine->RegisterObjectMethod(className, "Vector3 get_actualVelocity() const", AS_METHODPR(T, GetActualVelocity, () const, Vector3), AS_CALL_THISCALL);
  14304. // int CrowdAgent::GetAgentCrowdId() const
  14305. engine->RegisterObjectMethod(className, "int GetAgentCrowdId() const", AS_METHODPR(T, GetAgentCrowdId, () const, int), AS_CALL_THISCALL);
  14306. // CrowdAgentState CrowdAgent::GetAgentState() const
  14307. engine->RegisterObjectMethod(className, "CrowdAgentState GetAgentState() const", AS_METHODPR(T, GetAgentState, () const, CrowdAgentState), AS_CALL_THISCALL);
  14308. engine->RegisterObjectMethod(className, "CrowdAgentState get_agentState() const", AS_METHODPR(T, GetAgentState, () const, CrowdAgentState), AS_CALL_THISCALL);
  14309. // Vector3 CrowdAgent::GetDesiredVelocity() const
  14310. engine->RegisterObjectMethod(className, "Vector3 GetDesiredVelocity() const", AS_METHODPR(T, GetDesiredVelocity, () const, Vector3), AS_CALL_THISCALL);
  14311. engine->RegisterObjectMethod(className, "Vector3 get_desiredVelocity() const", AS_METHODPR(T, GetDesiredVelocity, () const, Vector3), AS_CALL_THISCALL);
  14312. // float CrowdAgent::GetHeight() const
  14313. engine->RegisterObjectMethod(className, "float GetHeight() const", AS_METHODPR(T, GetHeight, () const, float), AS_CALL_THISCALL);
  14314. engine->RegisterObjectMethod(className, "float get_height() const", AS_METHODPR(T, GetHeight, () const, float), AS_CALL_THISCALL);
  14315. // float CrowdAgent::GetMaxAccel() const
  14316. engine->RegisterObjectMethod(className, "float GetMaxAccel() const", AS_METHODPR(T, GetMaxAccel, () const, float), AS_CALL_THISCALL);
  14317. engine->RegisterObjectMethod(className, "float get_maxAccel() const", AS_METHODPR(T, GetMaxAccel, () const, float), AS_CALL_THISCALL);
  14318. // float CrowdAgent::GetMaxSpeed() const
  14319. engine->RegisterObjectMethod(className, "float GetMaxSpeed() const", AS_METHODPR(T, GetMaxSpeed, () const, float), AS_CALL_THISCALL);
  14320. engine->RegisterObjectMethod(className, "float get_maxSpeed() const", AS_METHODPR(T, GetMaxSpeed, () const, float), AS_CALL_THISCALL);
  14321. // NavigationPushiness CrowdAgent::GetNavigationPushiness() const
  14322. engine->RegisterObjectMethod(className, "NavigationPushiness GetNavigationPushiness() const", AS_METHODPR(T, GetNavigationPushiness, () const, NavigationPushiness), AS_CALL_THISCALL);
  14323. engine->RegisterObjectMethod(className, "NavigationPushiness get_navigationPushiness() const", AS_METHODPR(T, GetNavigationPushiness, () const, NavigationPushiness), AS_CALL_THISCALL);
  14324. // NavigationQuality CrowdAgent::GetNavigationQuality() const
  14325. engine->RegisterObjectMethod(className, "NavigationQuality GetNavigationQuality() const", AS_METHODPR(T, GetNavigationQuality, () const, NavigationQuality), AS_CALL_THISCALL);
  14326. engine->RegisterObjectMethod(className, "NavigationQuality get_navigationQuality() const", AS_METHODPR(T, GetNavigationQuality, () const, NavigationQuality), AS_CALL_THISCALL);
  14327. // unsigned CrowdAgent::GetObstacleAvoidanceType() const
  14328. engine->RegisterObjectMethod(className, "uint GetObstacleAvoidanceType() const", AS_METHODPR(T, GetObstacleAvoidanceType, () const, unsigned), AS_CALL_THISCALL);
  14329. engine->RegisterObjectMethod(className, "uint get_obstacleAvoidanceType() const", AS_METHODPR(T, GetObstacleAvoidanceType, () const, unsigned), AS_CALL_THISCALL);
  14330. // Vector3 CrowdAgent::GetPosition() const
  14331. engine->RegisterObjectMethod(className, "Vector3 GetPosition() const", AS_METHODPR(T, GetPosition, () const, Vector3), AS_CALL_THISCALL);
  14332. engine->RegisterObjectMethod(className, "Vector3 get_position() const", AS_METHODPR(T, GetPosition, () const, Vector3), AS_CALL_THISCALL);
  14333. // unsigned CrowdAgent::GetQueryFilterType() const
  14334. engine->RegisterObjectMethod(className, "uint GetQueryFilterType() const", AS_METHODPR(T, GetQueryFilterType, () const, unsigned), AS_CALL_THISCALL);
  14335. engine->RegisterObjectMethod(className, "uint get_queryFilterType() const", AS_METHODPR(T, GetQueryFilterType, () const, unsigned), AS_CALL_THISCALL);
  14336. // float CrowdAgent::GetRadius() const
  14337. engine->RegisterObjectMethod(className, "float GetRadius() const", AS_METHODPR(T, GetRadius, () const, float), AS_CALL_THISCALL);
  14338. engine->RegisterObjectMethod(className, "float get_radius() const", AS_METHODPR(T, GetRadius, () const, float), AS_CALL_THISCALL);
  14339. // CrowdAgentRequestedTarget CrowdAgent::GetRequestedTargetType() const
  14340. engine->RegisterObjectMethod(className, "CrowdAgentRequestedTarget GetRequestedTargetType() const", AS_METHODPR(T, GetRequestedTargetType, () const, CrowdAgentRequestedTarget), AS_CALL_THISCALL);
  14341. engine->RegisterObjectMethod(className, "CrowdAgentRequestedTarget get_requestedTargetType() const", AS_METHODPR(T, GetRequestedTargetType, () const, CrowdAgentRequestedTarget), AS_CALL_THISCALL);
  14342. // const Vector3& CrowdAgent::GetTargetPosition() const
  14343. engine->RegisterObjectMethod(className, "const Vector3& GetTargetPosition() const", AS_METHODPR(T, GetTargetPosition, () const, const Vector3&), AS_CALL_THISCALL);
  14344. engine->RegisterObjectMethod(className, "const Vector3& get_targetPosition() const", AS_METHODPR(T, GetTargetPosition, () const, const Vector3&), AS_CALL_THISCALL);
  14345. // CrowdAgentTargetState CrowdAgent::GetTargetState() const
  14346. engine->RegisterObjectMethod(className, "CrowdAgentTargetState GetTargetState() const", AS_METHODPR(T, GetTargetState, () const, CrowdAgentTargetState), AS_CALL_THISCALL);
  14347. engine->RegisterObjectMethod(className, "CrowdAgentTargetState get_targetState() const", AS_METHODPR(T, GetTargetState, () const, CrowdAgentTargetState), AS_CALL_THISCALL);
  14348. // const Vector3& CrowdAgent::GetTargetVelocity() const
  14349. engine->RegisterObjectMethod(className, "const Vector3& GetTargetVelocity() const", AS_METHODPR(T, GetTargetVelocity, () const, const Vector3&), AS_CALL_THISCALL);
  14350. engine->RegisterObjectMethod(className, "const Vector3& get_targetVelocity() const", AS_METHODPR(T, GetTargetVelocity, () const, const Vector3&), AS_CALL_THISCALL);
  14351. // bool CrowdAgent::GetUpdateNodePosition() const
  14352. engine->RegisterObjectMethod(className, "bool GetUpdateNodePosition() const", AS_METHODPR(T, GetUpdateNodePosition, () const, bool), AS_CALL_THISCALL);
  14353. engine->RegisterObjectMethod(className, "bool get_updateNodePosition() const", AS_METHODPR(T, GetUpdateNodePosition, () const, bool), AS_CALL_THISCALL);
  14354. // bool CrowdAgent::HasArrived() const
  14355. engine->RegisterObjectMethod(className, "bool HasArrived() const", AS_METHODPR(T, HasArrived, () const, bool), AS_CALL_THISCALL);
  14356. engine->RegisterObjectMethod(className, "bool get_arrived() const", AS_METHODPR(T, HasArrived, () const, bool), AS_CALL_THISCALL);
  14357. // bool CrowdAgent::HasRequestedTarget() const
  14358. engine->RegisterObjectMethod(className, "bool HasRequestedTarget() const", AS_METHODPR(T, HasRequestedTarget, () const, bool), AS_CALL_THISCALL);
  14359. engine->RegisterObjectMethod(className, "bool get_requestedTarget() const", AS_METHODPR(T, HasRequestedTarget, () const, bool), AS_CALL_THISCALL);
  14360. // bool CrowdAgent::IsInCrowd() const
  14361. engine->RegisterObjectMethod(className, "bool IsInCrowd() const", AS_METHODPR(T, IsInCrowd, () const, bool), AS_CALL_THISCALL);
  14362. engine->RegisterObjectMethod(className, "bool get_inCrowd() const", AS_METHODPR(T, IsInCrowd, () const, bool), AS_CALL_THISCALL);
  14363. // void CrowdAgent::OnSetEnabled() override
  14364. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14365. // void CrowdAgent::ResetTarget()
  14366. engine->RegisterObjectMethod(className, "void ResetTarget()", AS_METHODPR(T, ResetTarget, (), void), AS_CALL_THISCALL);
  14367. // void CrowdAgent::SetHeight(float height)
  14368. engine->RegisterObjectMethod(className, "void SetHeight(float)", AS_METHODPR(T, SetHeight, (float), void), AS_CALL_THISCALL);
  14369. engine->RegisterObjectMethod(className, "void set_height(float)", AS_METHODPR(T, SetHeight, (float), void), AS_CALL_THISCALL);
  14370. // void CrowdAgent::SetMaxAccel(float maxAccel)
  14371. engine->RegisterObjectMethod(className, "void SetMaxAccel(float)", AS_METHODPR(T, SetMaxAccel, (float), void), AS_CALL_THISCALL);
  14372. engine->RegisterObjectMethod(className, "void set_maxAccel(float)", AS_METHODPR(T, SetMaxAccel, (float), void), AS_CALL_THISCALL);
  14373. // void CrowdAgent::SetMaxSpeed(float maxSpeed)
  14374. engine->RegisterObjectMethod(className, "void SetMaxSpeed(float)", AS_METHODPR(T, SetMaxSpeed, (float), void), AS_CALL_THISCALL);
  14375. engine->RegisterObjectMethod(className, "void set_maxSpeed(float)", AS_METHODPR(T, SetMaxSpeed, (float), void), AS_CALL_THISCALL);
  14376. // void CrowdAgent::SetNavigationPushiness(NavigationPushiness val)
  14377. engine->RegisterObjectMethod(className, "void SetNavigationPushiness(NavigationPushiness)", AS_METHODPR(T, SetNavigationPushiness, (NavigationPushiness), void), AS_CALL_THISCALL);
  14378. engine->RegisterObjectMethod(className, "void set_navigationPushiness(NavigationPushiness)", AS_METHODPR(T, SetNavigationPushiness, (NavigationPushiness), void), AS_CALL_THISCALL);
  14379. // void CrowdAgent::SetNavigationQuality(NavigationQuality val)
  14380. engine->RegisterObjectMethod(className, "void SetNavigationQuality(NavigationQuality)", AS_METHODPR(T, SetNavigationQuality, (NavigationQuality), void), AS_CALL_THISCALL);
  14381. engine->RegisterObjectMethod(className, "void set_navigationQuality(NavigationQuality)", AS_METHODPR(T, SetNavigationQuality, (NavigationQuality), void), AS_CALL_THISCALL);
  14382. // void CrowdAgent::SetObstacleAvoidanceType(unsigned obstacleAvoidanceType)
  14383. engine->RegisterObjectMethod(className, "void SetObstacleAvoidanceType(uint)", AS_METHODPR(T, SetObstacleAvoidanceType, (unsigned), void), AS_CALL_THISCALL);
  14384. engine->RegisterObjectMethod(className, "void set_obstacleAvoidanceType(uint)", AS_METHODPR(T, SetObstacleAvoidanceType, (unsigned), void), AS_CALL_THISCALL);
  14385. // void CrowdAgent::SetQueryFilterType(unsigned queryFilterType)
  14386. engine->RegisterObjectMethod(className, "void SetQueryFilterType(uint)", AS_METHODPR(T, SetQueryFilterType, (unsigned), void), AS_CALL_THISCALL);
  14387. engine->RegisterObjectMethod(className, "void set_queryFilterType(uint)", AS_METHODPR(T, SetQueryFilterType, (unsigned), void), AS_CALL_THISCALL);
  14388. // void CrowdAgent::SetRadius(float radius)
  14389. engine->RegisterObjectMethod(className, "void SetRadius(float)", AS_METHODPR(T, SetRadius, (float), void), AS_CALL_THISCALL);
  14390. engine->RegisterObjectMethod(className, "void set_radius(float)", AS_METHODPR(T, SetRadius, (float), void), AS_CALL_THISCALL);
  14391. // void CrowdAgent::SetTargetPosition(const Vector3& position)
  14392. engine->RegisterObjectMethod(className, "void SetTargetPosition(const Vector3&in)", AS_METHODPR(T, SetTargetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  14393. engine->RegisterObjectMethod(className, "void set_targetPosition(const Vector3&in)", AS_METHODPR(T, SetTargetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  14394. // void CrowdAgent::SetTargetVelocity(const Vector3& velocity)
  14395. engine->RegisterObjectMethod(className, "void SetTargetVelocity(const Vector3&in)", AS_METHODPR(T, SetTargetVelocity, (const Vector3&), void), AS_CALL_THISCALL);
  14396. engine->RegisterObjectMethod(className, "void set_targetVelocity(const Vector3&in)", AS_METHODPR(T, SetTargetVelocity, (const Vector3&), void), AS_CALL_THISCALL);
  14397. // void CrowdAgent::SetUpdateNodePosition(bool unodepos)
  14398. engine->RegisterObjectMethod(className, "void SetUpdateNodePosition(bool)", AS_METHODPR(T, SetUpdateNodePosition, (bool), void), AS_CALL_THISCALL);
  14399. engine->RegisterObjectMethod(className, "void set_updateNodePosition(bool)", AS_METHODPR(T, SetUpdateNodePosition, (bool), void), AS_CALL_THISCALL);
  14400. #ifdef REGISTER_MEMBERS_MANUAL_PART_CrowdAgent
  14401. REGISTER_MEMBERS_MANUAL_PART_CrowdAgent();
  14402. #endif
  14403. }
  14404. // PODVector<CrowdAgent*> CrowdManager::GetAgents(Node* node = nullptr, bool inCrowdFilter = true) const
  14405. template <class T> CScriptArray* CrowdManager_PODVectorlesCrowdAgentstargre_GetAgents_Nodestar_bool_template(T* _ptr, Node* node, bool inCrowdFilter)
  14406. {
  14407. PODVector<CrowdAgent*> result = _ptr->GetAgents(node, inCrowdFilter);
  14408. return VectorToHandleArray(result, "Array<CrowdAgent@>");
  14409. }
  14410. // class CrowdManager | File: ../Navigation/CrowdManager.h
  14411. template <class T> void RegisterMembers_CrowdManager(asIScriptEngine* engine, const char* className)
  14412. {
  14413. RegisterMembers_Component<T>(engine, className);
  14414. // Vector3 CrowdManager::FindNearestPoint(const Vector3& point, int queryFilterType, dtPolyRef* nearestRef = nullptr)
  14415. // Error: type "dtPolyRef*" can not automatically bind
  14416. // void CrowdManager::FindPath(PODVector<Vector3>& dest, const Vector3& start, const Vector3& end, int queryFilterType)
  14417. // Error: type "PODVector<Vector3>&" can not automatically bind
  14418. // float CrowdManager::GetDistanceToWall(const Vector3& point, float radius, int queryFilterType, Vector3* hitPos = nullptr, Vector3* hitNormal = nullptr)
  14419. // Error: type "Vector3*" can not automatically bind
  14420. // VariantVector CrowdManager::GetObstacleAvoidanceTypesAttr() const
  14421. // Error: type "VariantVector" can not automatically bind
  14422. // VariantVector CrowdManager::GetQueryFilterTypesAttr() const
  14423. // Error: type "VariantVector" can not automatically bind
  14424. // Vector3 CrowdManager::GetRandomPoint(int queryFilterType, dtPolyRef* randomRef = nullptr)
  14425. // Error: type "dtPolyRef*" can not automatically bind
  14426. // Vector3 CrowdManager::GetRandomPointInCircle(const Vector3& center, float radius, int queryFilterType, dtPolyRef* randomRef = nullptr)
  14427. // Error: type "dtPolyRef*" can not automatically bind
  14428. // Vector3 CrowdManager::Raycast(const Vector3& start, const Vector3& end, int queryFilterType, Vector3* hitNormal = nullptr)
  14429. // Error: type "Vector3*" can not automatically bind
  14430. // void CrowdManager::SetObstacleAvoidanceTypesAttr(const VariantVector& value)
  14431. // Error: type "const VariantVector&" can not automatically bind
  14432. // void CrowdManager::SetQueryFilterTypesAttr(const VariantVector& value)
  14433. // Error: type "const VariantVector&" can not automatically bind
  14434. // void CrowdManager::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  14435. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14436. // void CrowdManager::DrawDebugGeometry(bool depthTest)
  14437. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(bool)", AS_METHODPR(T, DrawDebugGeometry, (bool), void), AS_CALL_THISCALL);
  14438. // PODVector<CrowdAgent*> CrowdManager::GetAgents(Node* node = nullptr, bool inCrowdFilter = true) const
  14439. engine->RegisterObjectMethod(className, "Array<CrowdAgent@>@ GetAgents(Node@+ = null, bool = true) const", AS_FUNCTION_OBJFIRST(CrowdManager_PODVectorlesCrowdAgentstargre_GetAgents_Nodestar_bool_template<CrowdManager>), AS_CALL_CDECL_OBJFIRST);
  14440. // float CrowdManager::GetAreaCost(unsigned queryFilterType, unsigned areaID) const
  14441. engine->RegisterObjectMethod(className, "float GetAreaCost(uint, uint) const", AS_METHODPR(T, GetAreaCost, (unsigned, unsigned) const, float), AS_CALL_THISCALL);
  14442. // unsigned short CrowdManager::GetExcludeFlags(unsigned queryFilterType) const
  14443. engine->RegisterObjectMethod(className, "uint16 GetExcludeFlags(uint) const", AS_METHODPR(T, GetExcludeFlags, (unsigned) const, unsigned short), AS_CALL_THISCALL);
  14444. // unsigned short CrowdManager::GetIncludeFlags(unsigned queryFilterType) const
  14445. engine->RegisterObjectMethod(className, "uint16 GetIncludeFlags(uint) const", AS_METHODPR(T, GetIncludeFlags, (unsigned) const, unsigned short), AS_CALL_THISCALL);
  14446. // float CrowdManager::GetMaxAgentRadius() const
  14447. engine->RegisterObjectMethod(className, "float GetMaxAgentRadius() const", AS_METHODPR(T, GetMaxAgentRadius, () const, float), AS_CALL_THISCALL);
  14448. engine->RegisterObjectMethod(className, "float get_maxAgentRadius() const", AS_METHODPR(T, GetMaxAgentRadius, () const, float), AS_CALL_THISCALL);
  14449. // unsigned CrowdManager::GetMaxAgents() const
  14450. engine->RegisterObjectMethod(className, "uint GetMaxAgents() const", AS_METHODPR(T, GetMaxAgents, () const, unsigned), AS_CALL_THISCALL);
  14451. engine->RegisterObjectMethod(className, "uint get_maxAgents() const", AS_METHODPR(T, GetMaxAgents, () const, unsigned), AS_CALL_THISCALL);
  14452. // NavigationMesh* CrowdManager::GetNavigationMesh() const
  14453. engine->RegisterObjectMethod(className, "NavigationMesh@+ GetNavigationMesh() const", AS_METHODPR(T, GetNavigationMesh, () const, NavigationMesh*), AS_CALL_THISCALL);
  14454. engine->RegisterObjectMethod(className, "NavigationMesh@+ get_navMesh() const", AS_METHODPR(T, GetNavigationMesh, () const, NavigationMesh*), AS_CALL_THISCALL);
  14455. // unsigned CrowdManager::GetNumAreas(unsigned queryFilterType) const
  14456. engine->RegisterObjectMethod(className, "uint GetNumAreas(uint) const", AS_METHODPR(T, GetNumAreas, (unsigned) const, unsigned), AS_CALL_THISCALL);
  14457. engine->RegisterObjectMethod(className, "uint get_numAreas(uint) const", AS_METHODPR(T, GetNumAreas, (unsigned) const, unsigned), AS_CALL_THISCALL);
  14458. // unsigned CrowdManager::GetNumObstacleAvoidanceTypes() const
  14459. engine->RegisterObjectMethod(className, "uint GetNumObstacleAvoidanceTypes() const", AS_METHODPR(T, GetNumObstacleAvoidanceTypes, () const, unsigned), AS_CALL_THISCALL);
  14460. engine->RegisterObjectMethod(className, "uint get_numObstacleAvoidanceTypes() const", AS_METHODPR(T, GetNumObstacleAvoidanceTypes, () const, unsigned), AS_CALL_THISCALL);
  14461. // unsigned CrowdManager::GetNumQueryFilterTypes() const
  14462. engine->RegisterObjectMethod(className, "uint GetNumQueryFilterTypes() const", AS_METHODPR(T, GetNumQueryFilterTypes, () const, unsigned), AS_CALL_THISCALL);
  14463. engine->RegisterObjectMethod(className, "uint get_numQueryFilterTypes() const", AS_METHODPR(T, GetNumQueryFilterTypes, () const, unsigned), AS_CALL_THISCALL);
  14464. // const CrowdObstacleAvoidanceParams& CrowdManager::GetObstacleAvoidanceParams(unsigned obstacleAvoidanceType) const
  14465. engine->RegisterObjectMethod(className, "const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint) const", AS_METHODPR(T, GetObstacleAvoidanceParams, (unsigned) const, const CrowdObstacleAvoidanceParams&), AS_CALL_THISCALL);
  14466. // Vector3 CrowdManager::MoveAlongSurface(const Vector3& start, const Vector3& end, int queryFilterType, int maxVisited = 3)
  14467. engine->RegisterObjectMethod(className, "Vector3 MoveAlongSurface(const Vector3&in, const Vector3&in, int, int = 3)", AS_METHODPR(T, MoveAlongSurface, (const Vector3&, const Vector3&, int, int), Vector3), AS_CALL_THISCALL);
  14468. // virtual void Component::OnSetEnabled()
  14469. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14470. // void CrowdManager::ResetCrowdTarget(Node* node = nullptr)
  14471. engine->RegisterObjectMethod(className, "void ResetCrowdTarget(Node@+ = null)", AS_METHODPR(T, ResetCrowdTarget, (Node*), void), AS_CALL_THISCALL);
  14472. // void CrowdManager::SetAreaCost(unsigned queryFilterType, unsigned areaID, float cost)
  14473. engine->RegisterObjectMethod(className, "void SetAreaCost(uint, uint, float)", AS_METHODPR(T, SetAreaCost, (unsigned, unsigned, float), void), AS_CALL_THISCALL);
  14474. // void CrowdManager::SetCrowdTarget(const Vector3& position, Node* node = nullptr)
  14475. engine->RegisterObjectMethod(className, "void SetCrowdTarget(const Vector3&in, Node@+ = null)", AS_METHODPR(T, SetCrowdTarget, (const Vector3&, Node*), void), AS_CALL_THISCALL);
  14476. // void CrowdManager::SetCrowdVelocity(const Vector3& velocity, Node* node = nullptr)
  14477. engine->RegisterObjectMethod(className, "void SetCrowdVelocity(const Vector3&in, Node@+ = null)", AS_METHODPR(T, SetCrowdVelocity, (const Vector3&, Node*), void), AS_CALL_THISCALL);
  14478. // void CrowdManager::SetExcludeFlags(unsigned queryFilterType, unsigned short flags)
  14479. engine->RegisterObjectMethod(className, "void SetExcludeFlags(uint, uint16)", AS_METHODPR(T, SetExcludeFlags, (unsigned, unsigned short), void), AS_CALL_THISCALL);
  14480. // void CrowdManager::SetIncludeFlags(unsigned queryFilterType, unsigned short flags)
  14481. engine->RegisterObjectMethod(className, "void SetIncludeFlags(uint, uint16)", AS_METHODPR(T, SetIncludeFlags, (unsigned, unsigned short), void), AS_CALL_THISCALL);
  14482. // void CrowdManager::SetMaxAgentRadius(float maxAgentRadius)
  14483. engine->RegisterObjectMethod(className, "void SetMaxAgentRadius(float)", AS_METHODPR(T, SetMaxAgentRadius, (float), void), AS_CALL_THISCALL);
  14484. engine->RegisterObjectMethod(className, "void set_maxAgentRadius(float)", AS_METHODPR(T, SetMaxAgentRadius, (float), void), AS_CALL_THISCALL);
  14485. // void CrowdManager::SetMaxAgents(unsigned maxAgents)
  14486. engine->RegisterObjectMethod(className, "void SetMaxAgents(uint)", AS_METHODPR(T, SetMaxAgents, (unsigned), void), AS_CALL_THISCALL);
  14487. engine->RegisterObjectMethod(className, "void set_maxAgents(uint)", AS_METHODPR(T, SetMaxAgents, (unsigned), void), AS_CALL_THISCALL);
  14488. // void CrowdManager::SetNavigationMesh(NavigationMesh* navMesh)
  14489. engine->RegisterObjectMethod(className, "void SetNavigationMesh(NavigationMesh@+)", AS_METHODPR(T, SetNavigationMesh, (NavigationMesh*), void), AS_CALL_THISCALL);
  14490. engine->RegisterObjectMethod(className, "void set_navMesh(NavigationMesh@+)", AS_METHODPR(T, SetNavigationMesh, (NavigationMesh*), void), AS_CALL_THISCALL);
  14491. // void CrowdManager::SetObstacleAvoidanceParams(unsigned obstacleAvoidanceType, const CrowdObstacleAvoidanceParams& params)
  14492. engine->RegisterObjectMethod(className, "void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&in)", AS_METHODPR(T, SetObstacleAvoidanceParams, (unsigned, const CrowdObstacleAvoidanceParams&), void), AS_CALL_THISCALL);
  14493. #ifdef REGISTER_MEMBERS_MANUAL_PART_CrowdManager
  14494. REGISTER_MEMBERS_MANUAL_PART_CrowdManager();
  14495. #endif
  14496. }
  14497. // class NavArea | File: ../Navigation/NavArea.h
  14498. template <class T> void RegisterMembers_NavArea(asIScriptEngine* engine, const char* className)
  14499. {
  14500. RegisterMembers_Component<T>(engine, className);
  14501. // void NavArea::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  14502. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14503. // unsigned NavArea::GetAreaID() const
  14504. engine->RegisterObjectMethod(className, "uint GetAreaID() const", AS_METHODPR(T, GetAreaID, () const, unsigned), AS_CALL_THISCALL);
  14505. engine->RegisterObjectMethod(className, "uint get_areaID() const", AS_METHODPR(T, GetAreaID, () const, unsigned), AS_CALL_THISCALL);
  14506. // BoundingBox NavArea::GetBoundingBox() const
  14507. engine->RegisterObjectMethod(className, "BoundingBox GetBoundingBox() const", AS_METHODPR(T, GetBoundingBox, () const, BoundingBox), AS_CALL_THISCALL);
  14508. engine->RegisterObjectMethod(className, "BoundingBox get_boundingBox() const", AS_METHODPR(T, GetBoundingBox, () const, BoundingBox), AS_CALL_THISCALL);
  14509. // BoundingBox NavArea::GetWorldBoundingBox() const
  14510. engine->RegisterObjectMethod(className, "BoundingBox GetWorldBoundingBox() const", AS_METHODPR(T, GetWorldBoundingBox, () const, BoundingBox), AS_CALL_THISCALL);
  14511. engine->RegisterObjectMethod(className, "BoundingBox get_worldBoundingBox() const", AS_METHODPR(T, GetWorldBoundingBox, () const, BoundingBox), AS_CALL_THISCALL);
  14512. // virtual void Component::OnSetEnabled()
  14513. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14514. // void NavArea::SetAreaID(unsigned newID)
  14515. engine->RegisterObjectMethod(className, "void SetAreaID(uint)", AS_METHODPR(T, SetAreaID, (unsigned), void), AS_CALL_THISCALL);
  14516. engine->RegisterObjectMethod(className, "void set_areaID(uint)", AS_METHODPR(T, SetAreaID, (unsigned), void), AS_CALL_THISCALL);
  14517. // void NavArea::SetBoundingBox(const BoundingBox& bnds)
  14518. engine->RegisterObjectMethod(className, "void SetBoundingBox(const BoundingBox&in)", AS_METHODPR(T, SetBoundingBox, (const BoundingBox&), void), AS_CALL_THISCALL);
  14519. engine->RegisterObjectMethod(className, "void set_boundingBox(const BoundingBox&in)", AS_METHODPR(T, SetBoundingBox, (const BoundingBox&), void), AS_CALL_THISCALL);
  14520. #ifdef REGISTER_MEMBERS_MANUAL_PART_NavArea
  14521. REGISTER_MEMBERS_MANUAL_PART_NavArea();
  14522. #endif
  14523. }
  14524. // class Navigable | File: ../Navigation/Navigable.h
  14525. template <class T> void RegisterMembers_Navigable(asIScriptEngine* engine, const char* className)
  14526. {
  14527. RegisterMembers_Component<T>(engine, className);
  14528. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  14529. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14530. // bool Navigable::IsRecursive() const
  14531. engine->RegisterObjectMethod(className, "bool IsRecursive() const", AS_METHODPR(T, IsRecursive, () const, bool), AS_CALL_THISCALL);
  14532. engine->RegisterObjectMethod(className, "bool get_recursive() const", AS_METHODPR(T, IsRecursive, () const, bool), AS_CALL_THISCALL);
  14533. // virtual void Component::OnSetEnabled()
  14534. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14535. // void Navigable::SetRecursive(bool enable)
  14536. engine->RegisterObjectMethod(className, "void SetRecursive(bool)", AS_METHODPR(T, SetRecursive, (bool), void), AS_CALL_THISCALL);
  14537. engine->RegisterObjectMethod(className, "void set_recursive(bool)", AS_METHODPR(T, SetRecursive, (bool), void), AS_CALL_THISCALL);
  14538. #ifdef REGISTER_MEMBERS_MANUAL_PART_Navigable
  14539. REGISTER_MEMBERS_MANUAL_PART_Navigable();
  14540. #endif
  14541. }
  14542. // class NavigationMesh | File: ../Navigation/NavigationMesh.h
  14543. template <class T> void RegisterMembers_NavigationMesh(asIScriptEngine* engine, const char* className)
  14544. {
  14545. RegisterMembers_Component<T>(engine, className);
  14546. // virtual bool NavigationMesh::AddTile(const PODVector<unsigned char>& tileData)
  14547. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  14548. // Vector3 NavigationMesh::FindNearestPoint(const Vector3& point, const Vector3& extents = Vector3::ONE, const dtQueryFilter* filter = nullptr, dtPolyRef* nearestRef = nullptr)
  14549. // Error: type "const dtQueryFilter*" can not automatically bind
  14550. // void NavigationMesh::FindPath(PODVector<Vector3>& dest, const Vector3& start, const Vector3& end, const Vector3& extents = Vector3::ONE, const dtQueryFilter* filter = nullptr)
  14551. // Error: type "PODVector<Vector3>&" can not automatically bind
  14552. // void NavigationMesh::FindPath(PODVector<NavigationPathPoint>& dest, const Vector3& start, const Vector3& end, const Vector3& extents = Vector3::ONE, const dtQueryFilter* filter = nullptr)
  14553. // Error: type "PODVector<NavigationPathPoint>&" can not automatically bind
  14554. // float NavigationMesh::GetDistanceToWall(const Vector3& point, float radius, const Vector3& extents = Vector3::ONE, const dtQueryFilter* filter = nullptr, Vector3* hitPos = nullptr, Vector3* hitNormal = nullptr)
  14555. // Error: type "const dtQueryFilter*" can not automatically bind
  14556. // virtual PODVector<unsigned char> NavigationMesh::GetNavigationDataAttr() const
  14557. // Error: type "PODVector<unsigned char>" can not automatically bind
  14558. // Vector3 NavigationMesh::GetRandomPoint(const dtQueryFilter* filter = nullptr, dtPolyRef* randomRef = nullptr)
  14559. // Error: type "const dtQueryFilter*" can not automatically bind
  14560. // Vector3 NavigationMesh::GetRandomPointInCircle(const Vector3& center, float radius, const Vector3& extents = Vector3::ONE, const dtQueryFilter* filter = nullptr, dtPolyRef* randomRef = nullptr)
  14561. // Error: type "const dtQueryFilter*" can not automatically bind
  14562. // virtual PODVector<unsigned char> NavigationMesh::GetTileData(const IntVector2& tile) const
  14563. // Error: type "PODVector<unsigned char>" can not automatically bind
  14564. // Vector3 NavigationMesh::MoveAlongSurface(const Vector3& start, const Vector3& end, const Vector3& extents = Vector3::ONE, int maxVisited = 3, const dtQueryFilter* filter = nullptr)
  14565. // Error: type "const dtQueryFilter*" can not automatically bind
  14566. // Vector3 NavigationMesh::Raycast(const Vector3& start, const Vector3& end, const Vector3& extents = Vector3::ONE, const dtQueryFilter* filter = nullptr, Vector3* hitNormal = nullptr)
  14567. // Error: type "const dtQueryFilter*" can not automatically bind
  14568. // virtual void NavigationMesh::SetNavigationDataAttr(const PODVector<unsigned char>& value)
  14569. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  14570. // virtual bool NavigationMesh::Allocate(const BoundingBox& boundingBox, unsigned maxTiles)
  14571. engine->RegisterObjectMethod(className, "bool Allocate(const BoundingBox&in, uint)", AS_METHODPR(T, Allocate, (const BoundingBox&, unsigned), bool), AS_CALL_THISCALL);
  14572. // virtual bool NavigationMesh::Build()
  14573. engine->RegisterObjectMethod(className, "bool Build()", AS_METHODPR(T, Build, (), bool), AS_CALL_THISCALL);
  14574. // virtual bool NavigationMesh::Build(const BoundingBox& boundingBox)
  14575. engine->RegisterObjectMethod(className, "bool Build(const BoundingBox&in)", AS_METHODPR(T, Build, (const BoundingBox&), bool), AS_CALL_THISCALL);
  14576. // virtual bool NavigationMesh::Build(const IntVector2& from, const IntVector2& to)
  14577. engine->RegisterObjectMethod(className, "bool Build(const IntVector2&in, const IntVector2&in)", AS_METHODPR(T, Build, (const IntVector2&, const IntVector2&), bool), AS_CALL_THISCALL);
  14578. // void NavigationMesh::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  14579. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14580. // void NavigationMesh::DrawDebugGeometry(bool depthTest)
  14581. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(bool)", AS_METHODPR(T, DrawDebugGeometry, (bool), void), AS_CALL_THISCALL);
  14582. // float NavigationMesh::GetAgentHeight() const
  14583. engine->RegisterObjectMethod(className, "float GetAgentHeight() const", AS_METHODPR(T, GetAgentHeight, () const, float), AS_CALL_THISCALL);
  14584. engine->RegisterObjectMethod(className, "float get_agentHeight() const", AS_METHODPR(T, GetAgentHeight, () const, float), AS_CALL_THISCALL);
  14585. // float NavigationMesh::GetAgentMaxClimb() const
  14586. engine->RegisterObjectMethod(className, "float GetAgentMaxClimb() const", AS_METHODPR(T, GetAgentMaxClimb, () const, float), AS_CALL_THISCALL);
  14587. engine->RegisterObjectMethod(className, "float get_agentMaxClimb() const", AS_METHODPR(T, GetAgentMaxClimb, () const, float), AS_CALL_THISCALL);
  14588. // float NavigationMesh::GetAgentMaxSlope() const
  14589. engine->RegisterObjectMethod(className, "float GetAgentMaxSlope() const", AS_METHODPR(T, GetAgentMaxSlope, () const, float), AS_CALL_THISCALL);
  14590. engine->RegisterObjectMethod(className, "float get_agentMaxSlope() const", AS_METHODPR(T, GetAgentMaxSlope, () const, float), AS_CALL_THISCALL);
  14591. // float NavigationMesh::GetAgentRadius() const
  14592. engine->RegisterObjectMethod(className, "float GetAgentRadius() const", AS_METHODPR(T, GetAgentRadius, () const, float), AS_CALL_THISCALL);
  14593. engine->RegisterObjectMethod(className, "float get_agentRadius() const", AS_METHODPR(T, GetAgentRadius, () const, float), AS_CALL_THISCALL);
  14594. // float NavigationMesh::GetAreaCost(unsigned areaID) const
  14595. engine->RegisterObjectMethod(className, "float GetAreaCost(uint) const", AS_METHODPR(T, GetAreaCost, (unsigned) const, float), AS_CALL_THISCALL);
  14596. // const BoundingBox& NavigationMesh::GetBoundingBox() const
  14597. engine->RegisterObjectMethod(className, "const BoundingBox& GetBoundingBox() const", AS_METHODPR(T, GetBoundingBox, () const, const BoundingBox&), AS_CALL_THISCALL);
  14598. engine->RegisterObjectMethod(className, "const BoundingBox& get_boundingBox() const", AS_METHODPR(T, GetBoundingBox, () const, const BoundingBox&), AS_CALL_THISCALL);
  14599. // float NavigationMesh::GetCellHeight() const
  14600. engine->RegisterObjectMethod(className, "float GetCellHeight() const", AS_METHODPR(T, GetCellHeight, () const, float), AS_CALL_THISCALL);
  14601. engine->RegisterObjectMethod(className, "float get_cellHeight() const", AS_METHODPR(T, GetCellHeight, () const, float), AS_CALL_THISCALL);
  14602. // float NavigationMesh::GetCellSize() const
  14603. engine->RegisterObjectMethod(className, "float GetCellSize() const", AS_METHODPR(T, GetCellSize, () const, float), AS_CALL_THISCALL);
  14604. engine->RegisterObjectMethod(className, "float get_cellSize() const", AS_METHODPR(T, GetCellSize, () const, float), AS_CALL_THISCALL);
  14605. // float NavigationMesh::GetDetailSampleDistance() const
  14606. engine->RegisterObjectMethod(className, "float GetDetailSampleDistance() const", AS_METHODPR(T, GetDetailSampleDistance, () const, float), AS_CALL_THISCALL);
  14607. engine->RegisterObjectMethod(className, "float get_detailSampleDistance() const", AS_METHODPR(T, GetDetailSampleDistance, () const, float), AS_CALL_THISCALL);
  14608. // float NavigationMesh::GetDetailSampleMaxError() const
  14609. engine->RegisterObjectMethod(className, "float GetDetailSampleMaxError() const", AS_METHODPR(T, GetDetailSampleMaxError, () const, float), AS_CALL_THISCALL);
  14610. engine->RegisterObjectMethod(className, "float get_detailSampleMaxError() const", AS_METHODPR(T, GetDetailSampleMaxError, () const, float), AS_CALL_THISCALL);
  14611. // bool NavigationMesh::GetDrawNavAreas() const
  14612. engine->RegisterObjectMethod(className, "bool GetDrawNavAreas() const", AS_METHODPR(T, GetDrawNavAreas, () const, bool), AS_CALL_THISCALL);
  14613. engine->RegisterObjectMethod(className, "bool get_drawNavAreas() const", AS_METHODPR(T, GetDrawNavAreas, () const, bool), AS_CALL_THISCALL);
  14614. // bool NavigationMesh::GetDrawOffMeshConnections() const
  14615. engine->RegisterObjectMethod(className, "bool GetDrawOffMeshConnections() const", AS_METHODPR(T, GetDrawOffMeshConnections, () const, bool), AS_CALL_THISCALL);
  14616. engine->RegisterObjectMethod(className, "bool get_drawOffMeshConnections() const", AS_METHODPR(T, GetDrawOffMeshConnections, () const, bool), AS_CALL_THISCALL);
  14617. // float NavigationMesh::GetEdgeMaxError() const
  14618. engine->RegisterObjectMethod(className, "float GetEdgeMaxError() const", AS_METHODPR(T, GetEdgeMaxError, () const, float), AS_CALL_THISCALL);
  14619. engine->RegisterObjectMethod(className, "float get_edgeMaxError() const", AS_METHODPR(T, GetEdgeMaxError, () const, float), AS_CALL_THISCALL);
  14620. // float NavigationMesh::GetEdgeMaxLength() const
  14621. engine->RegisterObjectMethod(className, "float GetEdgeMaxLength() const", AS_METHODPR(T, GetEdgeMaxLength, () const, float), AS_CALL_THISCALL);
  14622. engine->RegisterObjectMethod(className, "float get_edgeMaxLength() const", AS_METHODPR(T, GetEdgeMaxLength, () const, float), AS_CALL_THISCALL);
  14623. // String NavigationMesh::GetMeshName() const
  14624. engine->RegisterObjectMethod(className, "String GetMeshName() const", AS_METHODPR(T, GetMeshName, () const, String), AS_CALL_THISCALL);
  14625. // IntVector2 NavigationMesh::GetNumTiles() const
  14626. engine->RegisterObjectMethod(className, "IntVector2 GetNumTiles() const", AS_METHODPR(T, GetNumTiles, () const, IntVector2), AS_CALL_THISCALL);
  14627. engine->RegisterObjectMethod(className, "IntVector2 get_numTiles() const", AS_METHODPR(T, GetNumTiles, () const, IntVector2), AS_CALL_THISCALL);
  14628. // const Vector3& NavigationMesh::GetPadding() const
  14629. engine->RegisterObjectMethod(className, "const Vector3& GetPadding() const", AS_METHODPR(T, GetPadding, () const, const Vector3&), AS_CALL_THISCALL);
  14630. engine->RegisterObjectMethod(className, "const Vector3& get_padding() const", AS_METHODPR(T, GetPadding, () const, const Vector3&), AS_CALL_THISCALL);
  14631. // NavmeshPartitionType NavigationMesh::GetPartitionType() const
  14632. engine->RegisterObjectMethod(className, "NavmeshPartitionType GetPartitionType() const", AS_METHODPR(T, GetPartitionType, () const, NavmeshPartitionType), AS_CALL_THISCALL);
  14633. engine->RegisterObjectMethod(className, "NavmeshPartitionType get_partitionType() const", AS_METHODPR(T, GetPartitionType, () const, NavmeshPartitionType), AS_CALL_THISCALL);
  14634. // float NavigationMesh::GetRegionMergeSize() const
  14635. engine->RegisterObjectMethod(className, "float GetRegionMergeSize() const", AS_METHODPR(T, GetRegionMergeSize, () const, float), AS_CALL_THISCALL);
  14636. engine->RegisterObjectMethod(className, "float get_regionMergeSize() const", AS_METHODPR(T, GetRegionMergeSize, () const, float), AS_CALL_THISCALL);
  14637. // float NavigationMesh::GetRegionMinSize() const
  14638. engine->RegisterObjectMethod(className, "float GetRegionMinSize() const", AS_METHODPR(T, GetRegionMinSize, () const, float), AS_CALL_THISCALL);
  14639. engine->RegisterObjectMethod(className, "float get_regionMinSize() const", AS_METHODPR(T, GetRegionMinSize, () const, float), AS_CALL_THISCALL);
  14640. // BoundingBox NavigationMesh::GetTileBoundingBox(const IntVector2& tile) const
  14641. engine->RegisterObjectMethod(className, "BoundingBox GetTileBoundingBox(const IntVector2&in) const", AS_METHODPR(T, GetTileBoundingBox, (const IntVector2&) const, BoundingBox), AS_CALL_THISCALL);
  14642. // IntVector2 NavigationMesh::GetTileIndex(const Vector3& position) const
  14643. engine->RegisterObjectMethod(className, "IntVector2 GetTileIndex(const Vector3&in) const", AS_METHODPR(T, GetTileIndex, (const Vector3&) const, IntVector2), AS_CALL_THISCALL);
  14644. // int NavigationMesh::GetTileSize() const
  14645. engine->RegisterObjectMethod(className, "int GetTileSize() const", AS_METHODPR(T, GetTileSize, () const, int), AS_CALL_THISCALL);
  14646. engine->RegisterObjectMethod(className, "int get_tileSize() const", AS_METHODPR(T, GetTileSize, () const, int), AS_CALL_THISCALL);
  14647. // BoundingBox NavigationMesh::GetWorldBoundingBox() const
  14648. engine->RegisterObjectMethod(className, "BoundingBox GetWorldBoundingBox() const", AS_METHODPR(T, GetWorldBoundingBox, () const, BoundingBox), AS_CALL_THISCALL);
  14649. engine->RegisterObjectMethod(className, "BoundingBox get_worldBoundingBox() const", AS_METHODPR(T, GetWorldBoundingBox, () const, BoundingBox), AS_CALL_THISCALL);
  14650. // bool NavigationMesh::HasTile(const IntVector2& tile) const
  14651. engine->RegisterObjectMethod(className, "bool HasTile(const IntVector2&in) const", AS_METHODPR(T, HasTile, (const IntVector2&) const, bool), AS_CALL_THISCALL);
  14652. // bool NavigationMesh::IsInitialized() const
  14653. engine->RegisterObjectMethod(className, "bool IsInitialized() const", AS_METHODPR(T, IsInitialized, () const, bool), AS_CALL_THISCALL);
  14654. engine->RegisterObjectMethod(className, "bool get_initialized() const", AS_METHODPR(T, IsInitialized, () const, bool), AS_CALL_THISCALL);
  14655. // virtual void Component::OnSetEnabled()
  14656. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14657. // virtual void NavigationMesh::RemoveAllTiles()
  14658. engine->RegisterObjectMethod(className, "void RemoveAllTiles()", AS_METHODPR(T, RemoveAllTiles, (), void), AS_CALL_THISCALL);
  14659. // virtual void NavigationMesh::RemoveTile(const IntVector2& tile)
  14660. engine->RegisterObjectMethod(className, "void RemoveTile(const IntVector2&in)", AS_METHODPR(T, RemoveTile, (const IntVector2&), void), AS_CALL_THISCALL);
  14661. // void NavigationMesh::SetAgentHeight(float height)
  14662. engine->RegisterObjectMethod(className, "void SetAgentHeight(float)", AS_METHODPR(T, SetAgentHeight, (float), void), AS_CALL_THISCALL);
  14663. engine->RegisterObjectMethod(className, "void set_agentHeight(float)", AS_METHODPR(T, SetAgentHeight, (float), void), AS_CALL_THISCALL);
  14664. // void NavigationMesh::SetAgentMaxClimb(float maxClimb)
  14665. engine->RegisterObjectMethod(className, "void SetAgentMaxClimb(float)", AS_METHODPR(T, SetAgentMaxClimb, (float), void), AS_CALL_THISCALL);
  14666. engine->RegisterObjectMethod(className, "void set_agentMaxClimb(float)", AS_METHODPR(T, SetAgentMaxClimb, (float), void), AS_CALL_THISCALL);
  14667. // void NavigationMesh::SetAgentMaxSlope(float maxSlope)
  14668. engine->RegisterObjectMethod(className, "void SetAgentMaxSlope(float)", AS_METHODPR(T, SetAgentMaxSlope, (float), void), AS_CALL_THISCALL);
  14669. engine->RegisterObjectMethod(className, "void set_agentMaxSlope(float)", AS_METHODPR(T, SetAgentMaxSlope, (float), void), AS_CALL_THISCALL);
  14670. // void NavigationMesh::SetAgentRadius(float radius)
  14671. engine->RegisterObjectMethod(className, "void SetAgentRadius(float)", AS_METHODPR(T, SetAgentRadius, (float), void), AS_CALL_THISCALL);
  14672. engine->RegisterObjectMethod(className, "void set_agentRadius(float)", AS_METHODPR(T, SetAgentRadius, (float), void), AS_CALL_THISCALL);
  14673. // void NavigationMesh::SetAreaCost(unsigned areaID, float cost)
  14674. engine->RegisterObjectMethod(className, "void SetAreaCost(uint, float)", AS_METHODPR(T, SetAreaCost, (unsigned, float), void), AS_CALL_THISCALL);
  14675. // void NavigationMesh::SetCellHeight(float height)
  14676. engine->RegisterObjectMethod(className, "void SetCellHeight(float)", AS_METHODPR(T, SetCellHeight, (float), void), AS_CALL_THISCALL);
  14677. engine->RegisterObjectMethod(className, "void set_cellHeight(float)", AS_METHODPR(T, SetCellHeight, (float), void), AS_CALL_THISCALL);
  14678. // void NavigationMesh::SetCellSize(float size)
  14679. engine->RegisterObjectMethod(className, "void SetCellSize(float)", AS_METHODPR(T, SetCellSize, (float), void), AS_CALL_THISCALL);
  14680. engine->RegisterObjectMethod(className, "void set_cellSize(float)", AS_METHODPR(T, SetCellSize, (float), void), AS_CALL_THISCALL);
  14681. // void NavigationMesh::SetDetailSampleDistance(float distance)
  14682. engine->RegisterObjectMethod(className, "void SetDetailSampleDistance(float)", AS_METHODPR(T, SetDetailSampleDistance, (float), void), AS_CALL_THISCALL);
  14683. engine->RegisterObjectMethod(className, "void set_detailSampleDistance(float)", AS_METHODPR(T, SetDetailSampleDistance, (float), void), AS_CALL_THISCALL);
  14684. // void NavigationMesh::SetDetailSampleMaxError(float error)
  14685. engine->RegisterObjectMethod(className, "void SetDetailSampleMaxError(float)", AS_METHODPR(T, SetDetailSampleMaxError, (float), void), AS_CALL_THISCALL);
  14686. engine->RegisterObjectMethod(className, "void set_detailSampleMaxError(float)", AS_METHODPR(T, SetDetailSampleMaxError, (float), void), AS_CALL_THISCALL);
  14687. // void NavigationMesh::SetDrawNavAreas(bool enable)
  14688. engine->RegisterObjectMethod(className, "void SetDrawNavAreas(bool)", AS_METHODPR(T, SetDrawNavAreas, (bool), void), AS_CALL_THISCALL);
  14689. engine->RegisterObjectMethod(className, "void set_drawNavAreas(bool)", AS_METHODPR(T, SetDrawNavAreas, (bool), void), AS_CALL_THISCALL);
  14690. // void NavigationMesh::SetDrawOffMeshConnections(bool enable)
  14691. engine->RegisterObjectMethod(className, "void SetDrawOffMeshConnections(bool)", AS_METHODPR(T, SetDrawOffMeshConnections, (bool), void), AS_CALL_THISCALL);
  14692. engine->RegisterObjectMethod(className, "void set_drawOffMeshConnections(bool)", AS_METHODPR(T, SetDrawOffMeshConnections, (bool), void), AS_CALL_THISCALL);
  14693. // void NavigationMesh::SetEdgeMaxError(float error)
  14694. engine->RegisterObjectMethod(className, "void SetEdgeMaxError(float)", AS_METHODPR(T, SetEdgeMaxError, (float), void), AS_CALL_THISCALL);
  14695. engine->RegisterObjectMethod(className, "void set_edgeMaxError(float)", AS_METHODPR(T, SetEdgeMaxError, (float), void), AS_CALL_THISCALL);
  14696. // void NavigationMesh::SetEdgeMaxLength(float length)
  14697. engine->RegisterObjectMethod(className, "void SetEdgeMaxLength(float)", AS_METHODPR(T, SetEdgeMaxLength, (float), void), AS_CALL_THISCALL);
  14698. engine->RegisterObjectMethod(className, "void set_edgeMaxLength(float)", AS_METHODPR(T, SetEdgeMaxLength, (float), void), AS_CALL_THISCALL);
  14699. // void NavigationMesh::SetMeshName(const String& newName)
  14700. engine->RegisterObjectMethod(className, "void SetMeshName(const String&in)", AS_METHODPR(T, SetMeshName, (const String&), void), AS_CALL_THISCALL);
  14701. // void NavigationMesh::SetPadding(const Vector3& padding)
  14702. engine->RegisterObjectMethod(className, "void SetPadding(const Vector3&in)", AS_METHODPR(T, SetPadding, (const Vector3&), void), AS_CALL_THISCALL);
  14703. engine->RegisterObjectMethod(className, "void set_padding(const Vector3&in)", AS_METHODPR(T, SetPadding, (const Vector3&), void), AS_CALL_THISCALL);
  14704. // void NavigationMesh::SetPartitionType(NavmeshPartitionType partitionType)
  14705. engine->RegisterObjectMethod(className, "void SetPartitionType(NavmeshPartitionType)", AS_METHODPR(T, SetPartitionType, (NavmeshPartitionType), void), AS_CALL_THISCALL);
  14706. engine->RegisterObjectMethod(className, "void set_partitionType(NavmeshPartitionType)", AS_METHODPR(T, SetPartitionType, (NavmeshPartitionType), void), AS_CALL_THISCALL);
  14707. // void NavigationMesh::SetRegionMergeSize(float size)
  14708. engine->RegisterObjectMethod(className, "void SetRegionMergeSize(float)", AS_METHODPR(T, SetRegionMergeSize, (float), void), AS_CALL_THISCALL);
  14709. engine->RegisterObjectMethod(className, "void set_regionMergeSize(float)", AS_METHODPR(T, SetRegionMergeSize, (float), void), AS_CALL_THISCALL);
  14710. // void NavigationMesh::SetRegionMinSize(float size)
  14711. engine->RegisterObjectMethod(className, "void SetRegionMinSize(float)", AS_METHODPR(T, SetRegionMinSize, (float), void), AS_CALL_THISCALL);
  14712. engine->RegisterObjectMethod(className, "void set_regionMinSize(float)", AS_METHODPR(T, SetRegionMinSize, (float), void), AS_CALL_THISCALL);
  14713. // void NavigationMesh::SetTileSize(int size)
  14714. engine->RegisterObjectMethod(className, "void SetTileSize(int)", AS_METHODPR(T, SetTileSize, (int), void), AS_CALL_THISCALL);
  14715. engine->RegisterObjectMethod(className, "void set_tileSize(int)", AS_METHODPR(T, SetTileSize, (int), void), AS_CALL_THISCALL);
  14716. #ifdef REGISTER_MEMBERS_MANUAL_PART_NavigationMesh
  14717. REGISTER_MEMBERS_MANUAL_PART_NavigationMesh();
  14718. #endif
  14719. }
  14720. // class Obstacle | File: ../Navigation/Obstacle.h
  14721. template <class T> void RegisterMembers_Obstacle(asIScriptEngine* engine, const char* className)
  14722. {
  14723. RegisterMembers_Component<T>(engine, className);
  14724. // void Obstacle::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  14725. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14726. // void Obstacle::DrawDebugGeometry(bool depthTest)
  14727. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(bool)", AS_METHODPR(T, DrawDebugGeometry, (bool), void), AS_CALL_THISCALL);
  14728. // float Obstacle::GetHeight() const
  14729. engine->RegisterObjectMethod(className, "float GetHeight() const", AS_METHODPR(T, GetHeight, () const, float), AS_CALL_THISCALL);
  14730. engine->RegisterObjectMethod(className, "float get_height() const", AS_METHODPR(T, GetHeight, () const, float), AS_CALL_THISCALL);
  14731. // unsigned Obstacle::GetObstacleID() const
  14732. engine->RegisterObjectMethod(className, "uint GetObstacleID() const", AS_METHODPR(T, GetObstacleID, () const, unsigned), AS_CALL_THISCALL);
  14733. engine->RegisterObjectMethod(className, "uint get_obstacleId() const", AS_METHODPR(T, GetObstacleID, () const, unsigned), AS_CALL_THISCALL);
  14734. // float Obstacle::GetRadius() const
  14735. engine->RegisterObjectMethod(className, "float GetRadius() const", AS_METHODPR(T, GetRadius, () const, float), AS_CALL_THISCALL);
  14736. engine->RegisterObjectMethod(className, "float get_radius() const", AS_METHODPR(T, GetRadius, () const, float), AS_CALL_THISCALL);
  14737. // void Obstacle::OnSetEnabled() override
  14738. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14739. // void Obstacle::SetHeight(float newHeight)
  14740. engine->RegisterObjectMethod(className, "void SetHeight(float)", AS_METHODPR(T, SetHeight, (float), void), AS_CALL_THISCALL);
  14741. engine->RegisterObjectMethod(className, "void set_height(float)", AS_METHODPR(T, SetHeight, (float), void), AS_CALL_THISCALL);
  14742. // void Obstacle::SetRadius(float newRadius)
  14743. engine->RegisterObjectMethod(className, "void SetRadius(float)", AS_METHODPR(T, SetRadius, (float), void), AS_CALL_THISCALL);
  14744. engine->RegisterObjectMethod(className, "void set_radius(float)", AS_METHODPR(T, SetRadius, (float), void), AS_CALL_THISCALL);
  14745. #ifdef REGISTER_MEMBERS_MANUAL_PART_Obstacle
  14746. REGISTER_MEMBERS_MANUAL_PART_Obstacle();
  14747. #endif
  14748. }
  14749. // class OffMeshConnection | File: ../Navigation/OffMeshConnection.h
  14750. template <class T> void RegisterMembers_OffMeshConnection(asIScriptEngine* engine, const char* className)
  14751. {
  14752. RegisterMembers_Component<T>(engine, className);
  14753. // void OffMeshConnection::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  14754. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14755. // unsigned OffMeshConnection::GetAreaID() const
  14756. engine->RegisterObjectMethod(className, "uint GetAreaID() const", AS_METHODPR(T, GetAreaID, () const, unsigned), AS_CALL_THISCALL);
  14757. engine->RegisterObjectMethod(className, "uint get_areaID() const", AS_METHODPR(T, GetAreaID, () const, unsigned), AS_CALL_THISCALL);
  14758. // Node* OffMeshConnection::GetEndPoint() const
  14759. engine->RegisterObjectMethod(className, "Node@+ GetEndPoint() const", AS_METHODPR(T, GetEndPoint, () const, Node*), AS_CALL_THISCALL);
  14760. engine->RegisterObjectMethod(className, "Node@+ get_endPoint() const", AS_METHODPR(T, GetEndPoint, () const, Node*), AS_CALL_THISCALL);
  14761. // unsigned OffMeshConnection::GetMask() const
  14762. engine->RegisterObjectMethod(className, "uint GetMask() const", AS_METHODPR(T, GetMask, () const, unsigned), AS_CALL_THISCALL);
  14763. engine->RegisterObjectMethod(className, "uint get_mask() const", AS_METHODPR(T, GetMask, () const, unsigned), AS_CALL_THISCALL);
  14764. // float OffMeshConnection::GetRadius() const
  14765. engine->RegisterObjectMethod(className, "float GetRadius() const", AS_METHODPR(T, GetRadius, () const, float), AS_CALL_THISCALL);
  14766. engine->RegisterObjectMethod(className, "float get_radius() const", AS_METHODPR(T, GetRadius, () const, float), AS_CALL_THISCALL);
  14767. // bool OffMeshConnection::IsBidirectional() const
  14768. engine->RegisterObjectMethod(className, "bool IsBidirectional() const", AS_METHODPR(T, IsBidirectional, () const, bool), AS_CALL_THISCALL);
  14769. engine->RegisterObjectMethod(className, "bool get_bidirectional() const", AS_METHODPR(T, IsBidirectional, () const, bool), AS_CALL_THISCALL);
  14770. // virtual void Component::OnSetEnabled()
  14771. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14772. // void OffMeshConnection::SetAreaID(unsigned newAreaID)
  14773. engine->RegisterObjectMethod(className, "void SetAreaID(uint)", AS_METHODPR(T, SetAreaID, (unsigned), void), AS_CALL_THISCALL);
  14774. engine->RegisterObjectMethod(className, "void set_areaID(uint)", AS_METHODPR(T, SetAreaID, (unsigned), void), AS_CALL_THISCALL);
  14775. // void OffMeshConnection::SetBidirectional(bool enabled)
  14776. engine->RegisterObjectMethod(className, "void SetBidirectional(bool)", AS_METHODPR(T, SetBidirectional, (bool), void), AS_CALL_THISCALL);
  14777. engine->RegisterObjectMethod(className, "void set_bidirectional(bool)", AS_METHODPR(T, SetBidirectional, (bool), void), AS_CALL_THISCALL);
  14778. // void OffMeshConnection::SetEndPoint(Node* node)
  14779. engine->RegisterObjectMethod(className, "void SetEndPoint(Node@+)", AS_METHODPR(T, SetEndPoint, (Node*), void), AS_CALL_THISCALL);
  14780. engine->RegisterObjectMethod(className, "void set_endPoint(Node@+)", AS_METHODPR(T, SetEndPoint, (Node*), void), AS_CALL_THISCALL);
  14781. // void OffMeshConnection::SetMask(unsigned newMask)
  14782. engine->RegisterObjectMethod(className, "void SetMask(uint)", AS_METHODPR(T, SetMask, (unsigned), void), AS_CALL_THISCALL);
  14783. engine->RegisterObjectMethod(className, "void set_mask(uint)", AS_METHODPR(T, SetMask, (unsigned), void), AS_CALL_THISCALL);
  14784. // void OffMeshConnection::SetRadius(float radius)
  14785. engine->RegisterObjectMethod(className, "void SetRadius(float)", AS_METHODPR(T, SetRadius, (float), void), AS_CALL_THISCALL);
  14786. engine->RegisterObjectMethod(className, "void set_radius(float)", AS_METHODPR(T, SetRadius, (float), void), AS_CALL_THISCALL);
  14787. #ifdef REGISTER_MEMBERS_MANUAL_PART_OffMeshConnection
  14788. REGISTER_MEMBERS_MANUAL_PART_OffMeshConnection();
  14789. #endif
  14790. }
  14791. #endif // def URHO3D_NAVIGATION
  14792. #ifdef URHO3D_NETWORK
  14793. // class NetworkPriority | File: ../Network/NetworkPriority.h
  14794. template <class T> void RegisterMembers_NetworkPriority(asIScriptEngine* engine, const char* className)
  14795. {
  14796. RegisterMembers_Component<T>(engine, className);
  14797. // bool NetworkPriority::CheckUpdate(float distance, float& accumulator)
  14798. engine->RegisterObjectMethod(className, "bool CheckUpdate(float, float&)", AS_METHODPR(T, CheckUpdate, (float, float&), bool), AS_CALL_THISCALL);
  14799. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  14800. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14801. // bool NetworkPriority::GetAlwaysUpdateOwner() const
  14802. engine->RegisterObjectMethod(className, "bool GetAlwaysUpdateOwner() const", AS_METHODPR(T, GetAlwaysUpdateOwner, () const, bool), AS_CALL_THISCALL);
  14803. engine->RegisterObjectMethod(className, "bool get_alwaysUpdateOwner() const", AS_METHODPR(T, GetAlwaysUpdateOwner, () const, bool), AS_CALL_THISCALL);
  14804. // float NetworkPriority::GetBasePriority() const
  14805. engine->RegisterObjectMethod(className, "float GetBasePriority() const", AS_METHODPR(T, GetBasePriority, () const, float), AS_CALL_THISCALL);
  14806. engine->RegisterObjectMethod(className, "float get_basePriority() const", AS_METHODPR(T, GetBasePriority, () const, float), AS_CALL_THISCALL);
  14807. // float NetworkPriority::GetDistanceFactor() const
  14808. engine->RegisterObjectMethod(className, "float GetDistanceFactor() const", AS_METHODPR(T, GetDistanceFactor, () const, float), AS_CALL_THISCALL);
  14809. engine->RegisterObjectMethod(className, "float get_distanceFactor() const", AS_METHODPR(T, GetDistanceFactor, () const, float), AS_CALL_THISCALL);
  14810. // float NetworkPriority::GetMinPriority() const
  14811. engine->RegisterObjectMethod(className, "float GetMinPriority() const", AS_METHODPR(T, GetMinPriority, () const, float), AS_CALL_THISCALL);
  14812. engine->RegisterObjectMethod(className, "float get_minPriority() const", AS_METHODPR(T, GetMinPriority, () const, float), AS_CALL_THISCALL);
  14813. // virtual void Component::OnSetEnabled()
  14814. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14815. // void NetworkPriority::SetAlwaysUpdateOwner(bool enable)
  14816. engine->RegisterObjectMethod(className, "void SetAlwaysUpdateOwner(bool)", AS_METHODPR(T, SetAlwaysUpdateOwner, (bool), void), AS_CALL_THISCALL);
  14817. engine->RegisterObjectMethod(className, "void set_alwaysUpdateOwner(bool)", AS_METHODPR(T, SetAlwaysUpdateOwner, (bool), void), AS_CALL_THISCALL);
  14818. // void NetworkPriority::SetBasePriority(float priority)
  14819. engine->RegisterObjectMethod(className, "void SetBasePriority(float)", AS_METHODPR(T, SetBasePriority, (float), void), AS_CALL_THISCALL);
  14820. engine->RegisterObjectMethod(className, "void set_basePriority(float)", AS_METHODPR(T, SetBasePriority, (float), void), AS_CALL_THISCALL);
  14821. // void NetworkPriority::SetDistanceFactor(float factor)
  14822. engine->RegisterObjectMethod(className, "void SetDistanceFactor(float)", AS_METHODPR(T, SetDistanceFactor, (float), void), AS_CALL_THISCALL);
  14823. engine->RegisterObjectMethod(className, "void set_distanceFactor(float)", AS_METHODPR(T, SetDistanceFactor, (float), void), AS_CALL_THISCALL);
  14824. // void NetworkPriority::SetMinPriority(float priority)
  14825. engine->RegisterObjectMethod(className, "void SetMinPriority(float)", AS_METHODPR(T, SetMinPriority, (float), void), AS_CALL_THISCALL);
  14826. engine->RegisterObjectMethod(className, "void set_minPriority(float)", AS_METHODPR(T, SetMinPriority, (float), void), AS_CALL_THISCALL);
  14827. #ifdef REGISTER_MEMBERS_MANUAL_PART_NetworkPriority
  14828. REGISTER_MEMBERS_MANUAL_PART_NetworkPriority();
  14829. #endif
  14830. }
  14831. #endif // def URHO3D_NETWORK
  14832. #ifdef URHO3D_PHYSICS
  14833. // class CollisionShape | File: ../Physics/CollisionShape.h
  14834. template <class T> void RegisterMembers_CollisionShape(asIScriptEngine* engine, const char* className)
  14835. {
  14836. RegisterMembers_Component<T>(engine, className);
  14837. // btCollisionShape* CollisionShape::GetCollisionShape() const
  14838. // Error: type "btCollisionShape*" can not automatically bind
  14839. // void CollisionShape::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  14840. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14841. // CollisionGeometryData* CollisionShape::GetGeometryData() const
  14842. engine->RegisterObjectMethod(className, "CollisionGeometryData@+ GetGeometryData() const", AS_METHODPR(T, GetGeometryData, () const, CollisionGeometryData*), AS_CALL_THISCALL);
  14843. // unsigned CollisionShape::GetLodLevel() const
  14844. engine->RegisterObjectMethod(className, "uint GetLodLevel() const", AS_METHODPR(T, GetLodLevel, () const, unsigned), AS_CALL_THISCALL);
  14845. engine->RegisterObjectMethod(className, "uint get_lodLevel() const", AS_METHODPR(T, GetLodLevel, () const, unsigned), AS_CALL_THISCALL);
  14846. // float CollisionShape::GetMargin() const
  14847. engine->RegisterObjectMethod(className, "float GetMargin() const", AS_METHODPR(T, GetMargin, () const, float), AS_CALL_THISCALL);
  14848. engine->RegisterObjectMethod(className, "float get_margin() const", AS_METHODPR(T, GetMargin, () const, float), AS_CALL_THISCALL);
  14849. // Model* CollisionShape::GetModel() const
  14850. engine->RegisterObjectMethod(className, "Model@+ GetModel() const", AS_METHODPR(T, GetModel, () const, Model*), AS_CALL_THISCALL);
  14851. engine->RegisterObjectMethod(className, "Model@+ get_model() const", AS_METHODPR(T, GetModel, () const, Model*), AS_CALL_THISCALL);
  14852. // ResourceRef CollisionShape::GetModelAttr() const
  14853. engine->RegisterObjectMethod(className, "ResourceRef GetModelAttr() const", AS_METHODPR(T, GetModelAttr, () const, ResourceRef), AS_CALL_THISCALL);
  14854. // PhysicsWorld* CollisionShape::GetPhysicsWorld() const
  14855. engine->RegisterObjectMethod(className, "PhysicsWorld@+ GetPhysicsWorld() const", AS_METHODPR(T, GetPhysicsWorld, () const, PhysicsWorld*), AS_CALL_THISCALL);
  14856. // const Vector3& CollisionShape::GetPosition() const
  14857. engine->RegisterObjectMethod(className, "const Vector3& GetPosition() const", AS_METHODPR(T, GetPosition, () const, const Vector3&), AS_CALL_THISCALL);
  14858. engine->RegisterObjectMethod(className, "const Vector3& get_position() const", AS_METHODPR(T, GetPosition, () const, const Vector3&), AS_CALL_THISCALL);
  14859. // const Quaternion& CollisionShape::GetRotation() const
  14860. engine->RegisterObjectMethod(className, "const Quaternion& GetRotation() const", AS_METHODPR(T, GetRotation, () const, const Quaternion&), AS_CALL_THISCALL);
  14861. engine->RegisterObjectMethod(className, "const Quaternion& get_rotation() const", AS_METHODPR(T, GetRotation, () const, const Quaternion&), AS_CALL_THISCALL);
  14862. // ShapeType CollisionShape::GetShapeType() const
  14863. engine->RegisterObjectMethod(className, "ShapeType GetShapeType() const", AS_METHODPR(T, GetShapeType, () const, ShapeType), AS_CALL_THISCALL);
  14864. engine->RegisterObjectMethod(className, "ShapeType get_shapeType() const", AS_METHODPR(T, GetShapeType, () const, ShapeType), AS_CALL_THISCALL);
  14865. // const Vector3& CollisionShape::GetSize() const
  14866. engine->RegisterObjectMethod(className, "const Vector3& GetSize() const", AS_METHODPR(T, GetSize, () const, const Vector3&), AS_CALL_THISCALL);
  14867. engine->RegisterObjectMethod(className, "const Vector3& get_size() const", AS_METHODPR(T, GetSize, () const, const Vector3&), AS_CALL_THISCALL);
  14868. // BoundingBox CollisionShape::GetWorldBoundingBox() const
  14869. engine->RegisterObjectMethod(className, "BoundingBox GetWorldBoundingBox() const", AS_METHODPR(T, GetWorldBoundingBox, () const, BoundingBox), AS_CALL_THISCALL);
  14870. engine->RegisterObjectMethod(className, "BoundingBox get_worldBoundingBox() const", AS_METHODPR(T, GetWorldBoundingBox, () const, BoundingBox), AS_CALL_THISCALL);
  14871. // void CollisionShape::NotifyRigidBody(bool updateMass = true)
  14872. engine->RegisterObjectMethod(className, "void NotifyRigidBody(bool = true)", AS_METHODPR(T, NotifyRigidBody, (bool), void), AS_CALL_THISCALL);
  14873. // void CollisionShape::OnSetEnabled() override
  14874. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14875. // void CollisionShape::ReleaseShape()
  14876. engine->RegisterObjectMethod(className, "void ReleaseShape()", AS_METHODPR(T, ReleaseShape, (), void), AS_CALL_THISCALL);
  14877. // void CollisionShape::SetBox(const Vector3& size, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  14878. engine->RegisterObjectMethod(className, "void SetBox(const Vector3&in, const Vector3&in = Vector3::ZERO, const Quaternion&in = Quaternion::IDENTITY)", AS_METHODPR(T, SetBox, (const Vector3&, const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  14879. // void CollisionShape::SetCapsule(float diameter, float height, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  14880. engine->RegisterObjectMethod(className, "void SetCapsule(float, float, const Vector3&in = Vector3::ZERO, const Quaternion&in = Quaternion::IDENTITY)", AS_METHODPR(T, SetCapsule, (float, float, const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  14881. // void CollisionShape::SetCone(float diameter, float height, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  14882. engine->RegisterObjectMethod(className, "void SetCone(float, float, const Vector3&in = Vector3::ZERO, const Quaternion&in = Quaternion::IDENTITY)", AS_METHODPR(T, SetCone, (float, float, const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  14883. // void CollisionShape::SetConvexHull(Model* model, unsigned lodLevel = 0, const Vector3& scale = Vector3::ONE, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  14884. engine->RegisterObjectMethod(className, "void SetConvexHull(Model@+, uint = 0, const Vector3&in = Vector3::ONE, const Vector3&in = Vector3::ZERO, const Quaternion&in = Quaternion::IDENTITY)", AS_METHODPR(T, SetConvexHull, (Model*, unsigned, const Vector3&, const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  14885. // void CollisionShape::SetCustomConvexHull(CustomGeometry* custom, const Vector3& scale = Vector3::ONE, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  14886. engine->RegisterObjectMethod(className, "void SetCustomConvexHull(CustomGeometry@+, const Vector3&in = Vector3::ONE, const Vector3&in = Vector3::ZERO, const Quaternion&in = Quaternion::IDENTITY)", AS_METHODPR(T, SetCustomConvexHull, (CustomGeometry*, const Vector3&, const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  14887. // void CollisionShape::SetCustomGImpactMesh(CustomGeometry* custom, const Vector3& scale = Vector3::ONE, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  14888. engine->RegisterObjectMethod(className, "void SetCustomGImpactMesh(CustomGeometry@+, const Vector3&in = Vector3::ONE, const Vector3&in = Vector3::ZERO, const Quaternion&in = Quaternion::IDENTITY)", AS_METHODPR(T, SetCustomGImpactMesh, (CustomGeometry*, const Vector3&, const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  14889. // void CollisionShape::SetCustomTriangleMesh(CustomGeometry* custom, const Vector3& scale = Vector3::ONE, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  14890. engine->RegisterObjectMethod(className, "void SetCustomTriangleMesh(CustomGeometry@+, const Vector3&in = Vector3::ONE, const Vector3&in = Vector3::ZERO, const Quaternion&in = Quaternion::IDENTITY)", AS_METHODPR(T, SetCustomTriangleMesh, (CustomGeometry*, const Vector3&, const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  14891. // void CollisionShape::SetCylinder(float diameter, float height, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  14892. engine->RegisterObjectMethod(className, "void SetCylinder(float, float, const Vector3&in = Vector3::ZERO, const Quaternion&in = Quaternion::IDENTITY)", AS_METHODPR(T, SetCylinder, (float, float, const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  14893. // void CollisionShape::SetGImpactMesh(Model* model, unsigned lodLevel = 0, const Vector3& scale = Vector3::ONE, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  14894. engine->RegisterObjectMethod(className, "void SetGImpactMesh(Model@+, uint = 0, const Vector3&in = Vector3::ONE, const Vector3&in = Vector3::ZERO, const Quaternion&in = Quaternion::IDENTITY)", AS_METHODPR(T, SetGImpactMesh, (Model*, unsigned, const Vector3&, const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  14895. // void CollisionShape::SetLodLevel(unsigned lodLevel)
  14896. engine->RegisterObjectMethod(className, "void SetLodLevel(uint)", AS_METHODPR(T, SetLodLevel, (unsigned), void), AS_CALL_THISCALL);
  14897. engine->RegisterObjectMethod(className, "void set_lodLevel(uint)", AS_METHODPR(T, SetLodLevel, (unsigned), void), AS_CALL_THISCALL);
  14898. // void CollisionShape::SetMargin(float margin)
  14899. engine->RegisterObjectMethod(className, "void SetMargin(float)", AS_METHODPR(T, SetMargin, (float), void), AS_CALL_THISCALL);
  14900. engine->RegisterObjectMethod(className, "void set_margin(float)", AS_METHODPR(T, SetMargin, (float), void), AS_CALL_THISCALL);
  14901. // void CollisionShape::SetModel(Model* model)
  14902. engine->RegisterObjectMethod(className, "void SetModel(Model@+)", AS_METHODPR(T, SetModel, (Model*), void), AS_CALL_THISCALL);
  14903. engine->RegisterObjectMethod(className, "void set_model(Model@+)", AS_METHODPR(T, SetModel, (Model*), void), AS_CALL_THISCALL);
  14904. // void CollisionShape::SetModelAttr(const ResourceRef& value)
  14905. engine->RegisterObjectMethod(className, "void SetModelAttr(const ResourceRef&in)", AS_METHODPR(T, SetModelAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  14906. // void CollisionShape::SetPosition(const Vector3& position)
  14907. engine->RegisterObjectMethod(className, "void SetPosition(const Vector3&in)", AS_METHODPR(T, SetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  14908. engine->RegisterObjectMethod(className, "void set_position(const Vector3&in)", AS_METHODPR(T, SetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  14909. // void CollisionShape::SetRotation(const Quaternion& rotation)
  14910. engine->RegisterObjectMethod(className, "void SetRotation(const Quaternion&in)", AS_METHODPR(T, SetRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  14911. engine->RegisterObjectMethod(className, "void set_rotation(const Quaternion&in)", AS_METHODPR(T, SetRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  14912. // void CollisionShape::SetShapeType(ShapeType type)
  14913. engine->RegisterObjectMethod(className, "void SetShapeType(ShapeType)", AS_METHODPR(T, SetShapeType, (ShapeType), void), AS_CALL_THISCALL);
  14914. engine->RegisterObjectMethod(className, "void set_shapeType(ShapeType)", AS_METHODPR(T, SetShapeType, (ShapeType), void), AS_CALL_THISCALL);
  14915. // void CollisionShape::SetSize(const Vector3& size)
  14916. engine->RegisterObjectMethod(className, "void SetSize(const Vector3&in)", AS_METHODPR(T, SetSize, (const Vector3&), void), AS_CALL_THISCALL);
  14917. engine->RegisterObjectMethod(className, "void set_size(const Vector3&in)", AS_METHODPR(T, SetSize, (const Vector3&), void), AS_CALL_THISCALL);
  14918. // void CollisionShape::SetSphere(float diameter, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  14919. engine->RegisterObjectMethod(className, "void SetSphere(float, const Vector3&in = Vector3::ZERO, const Quaternion&in = Quaternion::IDENTITY)", AS_METHODPR(T, SetSphere, (float, const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  14920. // void CollisionShape::SetStaticPlane(const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  14921. engine->RegisterObjectMethod(className, "void SetStaticPlane(const Vector3&in = Vector3::ZERO, const Quaternion&in = Quaternion::IDENTITY)", AS_METHODPR(T, SetStaticPlane, (const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  14922. // void CollisionShape::SetTerrain(unsigned lodLevel = 0)
  14923. engine->RegisterObjectMethod(className, "void SetTerrain(uint = 0)", AS_METHODPR(T, SetTerrain, (unsigned), void), AS_CALL_THISCALL);
  14924. // void CollisionShape::SetTransform(const Vector3& position, const Quaternion& rotation)
  14925. engine->RegisterObjectMethod(className, "void SetTransform(const Vector3&in, const Quaternion&in)", AS_METHODPR(T, SetTransform, (const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  14926. // void CollisionShape::SetTriangleMesh(Model* model, unsigned lodLevel = 0, const Vector3& scale = Vector3::ONE, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  14927. engine->RegisterObjectMethod(className, "void SetTriangleMesh(Model@+, uint = 0, const Vector3&in = Vector3::ONE, const Vector3&in = Vector3::ZERO, const Quaternion&in = Quaternion::IDENTITY)", AS_METHODPR(T, SetTriangleMesh, (Model*, unsigned, const Vector3&, const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  14928. #ifdef REGISTER_MEMBERS_MANUAL_PART_CollisionShape
  14929. REGISTER_MEMBERS_MANUAL_PART_CollisionShape();
  14930. #endif
  14931. }
  14932. // class Constraint | File: ../Physics/Constraint.h
  14933. template <class T> void RegisterMembers_Constraint(asIScriptEngine* engine, const char* className)
  14934. {
  14935. RegisterMembers_Component<T>(engine, className);
  14936. // btTypedConstraint* Constraint::GetConstraint() const
  14937. // Error: type "btTypedConstraint*" can not automatically bind
  14938. // void Constraint::ApplyFrames()
  14939. engine->RegisterObjectMethod(className, "void ApplyFrames()", AS_METHODPR(T, ApplyFrames, (), void), AS_CALL_THISCALL);
  14940. // void Constraint::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  14941. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  14942. // float Constraint::GetCFM() const
  14943. engine->RegisterObjectMethod(className, "float GetCFM() const", AS_METHODPR(T, GetCFM, () const, float), AS_CALL_THISCALL);
  14944. engine->RegisterObjectMethod(className, "float get_cfm() const", AS_METHODPR(T, GetCFM, () const, float), AS_CALL_THISCALL);
  14945. // ConstraintType Constraint::GetConstraintType() const
  14946. engine->RegisterObjectMethod(className, "ConstraintType GetConstraintType() const", AS_METHODPR(T, GetConstraintType, () const, ConstraintType), AS_CALL_THISCALL);
  14947. engine->RegisterObjectMethod(className, "ConstraintType get_constraintType() const", AS_METHODPR(T, GetConstraintType, () const, ConstraintType), AS_CALL_THISCALL);
  14948. // bool Constraint::GetDisableCollision() const
  14949. engine->RegisterObjectMethod(className, "bool GetDisableCollision() const", AS_METHODPR(T, GetDisableCollision, () const, bool), AS_CALL_THISCALL);
  14950. engine->RegisterObjectMethod(className, "bool get_disableCollision() const", AS_METHODPR(T, GetDisableCollision, () const, bool), AS_CALL_THISCALL);
  14951. // float Constraint::GetERP() const
  14952. engine->RegisterObjectMethod(className, "float GetERP() const", AS_METHODPR(T, GetERP, () const, float), AS_CALL_THISCALL);
  14953. engine->RegisterObjectMethod(className, "float get_erp() const", AS_METHODPR(T, GetERP, () const, float), AS_CALL_THISCALL);
  14954. // const Vector2& Constraint::GetHighLimit() const
  14955. engine->RegisterObjectMethod(className, "const Vector2& GetHighLimit() const", AS_METHODPR(T, GetHighLimit, () const, const Vector2&), AS_CALL_THISCALL);
  14956. engine->RegisterObjectMethod(className, "const Vector2& get_highLimit() const", AS_METHODPR(T, GetHighLimit, () const, const Vector2&), AS_CALL_THISCALL);
  14957. // const Vector2& Constraint::GetLowLimit() const
  14958. engine->RegisterObjectMethod(className, "const Vector2& GetLowLimit() const", AS_METHODPR(T, GetLowLimit, () const, const Vector2&), AS_CALL_THISCALL);
  14959. engine->RegisterObjectMethod(className, "const Vector2& get_lowLimit() const", AS_METHODPR(T, GetLowLimit, () const, const Vector2&), AS_CALL_THISCALL);
  14960. // RigidBody* Constraint::GetOtherBody() const
  14961. engine->RegisterObjectMethod(className, "RigidBody@+ GetOtherBody() const", AS_METHODPR(T, GetOtherBody, () const, RigidBody*), AS_CALL_THISCALL);
  14962. engine->RegisterObjectMethod(className, "RigidBody@+ get_otherBody() const", AS_METHODPR(T, GetOtherBody, () const, RigidBody*), AS_CALL_THISCALL);
  14963. // const Vector3& Constraint::GetOtherPosition() const
  14964. engine->RegisterObjectMethod(className, "const Vector3& GetOtherPosition() const", AS_METHODPR(T, GetOtherPosition, () const, const Vector3&), AS_CALL_THISCALL);
  14965. engine->RegisterObjectMethod(className, "const Vector3& get_otherPosition() const", AS_METHODPR(T, GetOtherPosition, () const, const Vector3&), AS_CALL_THISCALL);
  14966. // const Quaternion& Constraint::GetOtherRotation() const
  14967. engine->RegisterObjectMethod(className, "const Quaternion& GetOtherRotation() const", AS_METHODPR(T, GetOtherRotation, () const, const Quaternion&), AS_CALL_THISCALL);
  14968. engine->RegisterObjectMethod(className, "const Quaternion& get_otherRotation() const", AS_METHODPR(T, GetOtherRotation, () const, const Quaternion&), AS_CALL_THISCALL);
  14969. // RigidBody* Constraint::GetOwnBody() const
  14970. engine->RegisterObjectMethod(className, "RigidBody@+ GetOwnBody() const", AS_METHODPR(T, GetOwnBody, () const, RigidBody*), AS_CALL_THISCALL);
  14971. engine->RegisterObjectMethod(className, "RigidBody@+ get_ownBody() const", AS_METHODPR(T, GetOwnBody, () const, RigidBody*), AS_CALL_THISCALL);
  14972. // PhysicsWorld* Constraint::GetPhysicsWorld() const
  14973. engine->RegisterObjectMethod(className, "PhysicsWorld@+ GetPhysicsWorld() const", AS_METHODPR(T, GetPhysicsWorld, () const, PhysicsWorld*), AS_CALL_THISCALL);
  14974. // const Vector3& Constraint::GetPosition() const
  14975. engine->RegisterObjectMethod(className, "const Vector3& GetPosition() const", AS_METHODPR(T, GetPosition, () const, const Vector3&), AS_CALL_THISCALL);
  14976. engine->RegisterObjectMethod(className, "const Vector3& get_position() const", AS_METHODPR(T, GetPosition, () const, const Vector3&), AS_CALL_THISCALL);
  14977. // const Quaternion& Constraint::GetRotation() const
  14978. engine->RegisterObjectMethod(className, "const Quaternion& GetRotation() const", AS_METHODPR(T, GetRotation, () const, const Quaternion&), AS_CALL_THISCALL);
  14979. engine->RegisterObjectMethod(className, "const Quaternion& get_rotation() const", AS_METHODPR(T, GetRotation, () const, const Quaternion&), AS_CALL_THISCALL);
  14980. // Vector3 Constraint::GetWorldPosition() const
  14981. engine->RegisterObjectMethod(className, "Vector3 GetWorldPosition() const", AS_METHODPR(T, GetWorldPosition, () const, Vector3), AS_CALL_THISCALL);
  14982. engine->RegisterObjectMethod(className, "Vector3 get_worldPosition() const", AS_METHODPR(T, GetWorldPosition, () const, Vector3), AS_CALL_THISCALL);
  14983. // void Constraint::OnSetEnabled() override
  14984. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  14985. // void Constraint::ReleaseConstraint()
  14986. engine->RegisterObjectMethod(className, "void ReleaseConstraint()", AS_METHODPR(T, ReleaseConstraint, (), void), AS_CALL_THISCALL);
  14987. // void Constraint::SetAxis(const Vector3& axis)
  14988. engine->RegisterObjectMethod(className, "void SetAxis(const Vector3&in)", AS_METHODPR(T, SetAxis, (const Vector3&), void), AS_CALL_THISCALL);
  14989. engine->RegisterObjectMethod(className, "void set_axis(const Vector3&in)", AS_METHODPR(T, SetAxis, (const Vector3&), void), AS_CALL_THISCALL);
  14990. // void Constraint::SetCFM(float cfm)
  14991. engine->RegisterObjectMethod(className, "void SetCFM(float)", AS_METHODPR(T, SetCFM, (float), void), AS_CALL_THISCALL);
  14992. engine->RegisterObjectMethod(className, "void set_cfm(float)", AS_METHODPR(T, SetCFM, (float), void), AS_CALL_THISCALL);
  14993. // void Constraint::SetConstraintType(ConstraintType type)
  14994. engine->RegisterObjectMethod(className, "void SetConstraintType(ConstraintType)", AS_METHODPR(T, SetConstraintType, (ConstraintType), void), AS_CALL_THISCALL);
  14995. engine->RegisterObjectMethod(className, "void set_constraintType(ConstraintType)", AS_METHODPR(T, SetConstraintType, (ConstraintType), void), AS_CALL_THISCALL);
  14996. // void Constraint::SetDisableCollision(bool disable)
  14997. engine->RegisterObjectMethod(className, "void SetDisableCollision(bool)", AS_METHODPR(T, SetDisableCollision, (bool), void), AS_CALL_THISCALL);
  14998. engine->RegisterObjectMethod(className, "void set_disableCollision(bool)", AS_METHODPR(T, SetDisableCollision, (bool), void), AS_CALL_THISCALL);
  14999. // void Constraint::SetERP(float erp)
  15000. engine->RegisterObjectMethod(className, "void SetERP(float)", AS_METHODPR(T, SetERP, (float), void), AS_CALL_THISCALL);
  15001. engine->RegisterObjectMethod(className, "void set_erp(float)", AS_METHODPR(T, SetERP, (float), void), AS_CALL_THISCALL);
  15002. // void Constraint::SetHighLimit(const Vector2& limit)
  15003. engine->RegisterObjectMethod(className, "void SetHighLimit(const Vector2&in)", AS_METHODPR(T, SetHighLimit, (const Vector2&), void), AS_CALL_THISCALL);
  15004. engine->RegisterObjectMethod(className, "void set_highLimit(const Vector2&in)", AS_METHODPR(T, SetHighLimit, (const Vector2&), void), AS_CALL_THISCALL);
  15005. // void Constraint::SetLowLimit(const Vector2& limit)
  15006. engine->RegisterObjectMethod(className, "void SetLowLimit(const Vector2&in)", AS_METHODPR(T, SetLowLimit, (const Vector2&), void), AS_CALL_THISCALL);
  15007. engine->RegisterObjectMethod(className, "void set_lowLimit(const Vector2&in)", AS_METHODPR(T, SetLowLimit, (const Vector2&), void), AS_CALL_THISCALL);
  15008. // void Constraint::SetOtherAxis(const Vector3& axis)
  15009. engine->RegisterObjectMethod(className, "void SetOtherAxis(const Vector3&in)", AS_METHODPR(T, SetOtherAxis, (const Vector3&), void), AS_CALL_THISCALL);
  15010. engine->RegisterObjectMethod(className, "void set_otherAxis(const Vector3&in)", AS_METHODPR(T, SetOtherAxis, (const Vector3&), void), AS_CALL_THISCALL);
  15011. // void Constraint::SetOtherBody(RigidBody* body)
  15012. engine->RegisterObjectMethod(className, "void SetOtherBody(RigidBody@+)", AS_METHODPR(T, SetOtherBody, (RigidBody*), void), AS_CALL_THISCALL);
  15013. engine->RegisterObjectMethod(className, "void set_otherBody(RigidBody@+)", AS_METHODPR(T, SetOtherBody, (RigidBody*), void), AS_CALL_THISCALL);
  15014. // void Constraint::SetOtherPosition(const Vector3& position)
  15015. engine->RegisterObjectMethod(className, "void SetOtherPosition(const Vector3&in)", AS_METHODPR(T, SetOtherPosition, (const Vector3&), void), AS_CALL_THISCALL);
  15016. engine->RegisterObjectMethod(className, "void set_otherPosition(const Vector3&in)", AS_METHODPR(T, SetOtherPosition, (const Vector3&), void), AS_CALL_THISCALL);
  15017. // void Constraint::SetOtherRotation(const Quaternion& rotation)
  15018. engine->RegisterObjectMethod(className, "void SetOtherRotation(const Quaternion&in)", AS_METHODPR(T, SetOtherRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  15019. engine->RegisterObjectMethod(className, "void set_otherRotation(const Quaternion&in)", AS_METHODPR(T, SetOtherRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  15020. // void Constraint::SetPosition(const Vector3& position)
  15021. engine->RegisterObjectMethod(className, "void SetPosition(const Vector3&in)", AS_METHODPR(T, SetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  15022. engine->RegisterObjectMethod(className, "void set_position(const Vector3&in)", AS_METHODPR(T, SetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  15023. // void Constraint::SetRotation(const Quaternion& rotation)
  15024. engine->RegisterObjectMethod(className, "void SetRotation(const Quaternion&in)", AS_METHODPR(T, SetRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  15025. engine->RegisterObjectMethod(className, "void set_rotation(const Quaternion&in)", AS_METHODPR(T, SetRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  15026. // void Constraint::SetWorldPosition(const Vector3& position)
  15027. engine->RegisterObjectMethod(className, "void SetWorldPosition(const Vector3&in)", AS_METHODPR(T, SetWorldPosition, (const Vector3&), void), AS_CALL_THISCALL);
  15028. engine->RegisterObjectMethod(className, "void set_worldPosition(const Vector3&in)", AS_METHODPR(T, SetWorldPosition, (const Vector3&), void), AS_CALL_THISCALL);
  15029. #ifdef REGISTER_MEMBERS_MANUAL_PART_Constraint
  15030. REGISTER_MEMBERS_MANUAL_PART_Constraint();
  15031. #endif
  15032. }
  15033. // class PhysicsWorld | File: ../Physics/PhysicsWorld.h
  15034. template <class T> void RegisterMembers_PhysicsWorld(asIScriptEngine* engine, const char* className)
  15035. {
  15036. RegisterMembers_Component<T>(engine, className);
  15037. // void PhysicsWorld::ConvexCast(PhysicsRaycastResult& result, btCollisionShape* shape, const Vector3& startPos, const Quaternion& startRot, const Vector3& endPos, const Quaternion& endRot, unsigned collisionMask = M_MAX_UNSIGNED)
  15038. // Error: type "btCollisionShape*" can not automatically bind
  15039. // void PhysicsWorld::draw3dText(const btVector3& location, const char* textString) override
  15040. // Error: type "const btVector3&" can not automatically bind
  15041. // void PhysicsWorld::drawContactPoint(const btVector3& pointOnB, const btVector3& normalOnB, btScalar distance, int lifeTime, const btVector3& color) override
  15042. // Error: type "const btVector3&" can not automatically bind
  15043. // void PhysicsWorld::drawLine(const btVector3& from, const btVector3& to, const btVector3& color) override
  15044. // Error: type "const btVector3&" can not automatically bind
  15045. // void PhysicsWorld::GetCollidingBodies(PODVector<RigidBody*>& result, const RigidBody* body)
  15046. // Error: type "PODVector<RigidBody*>&" can not automatically bind
  15047. // CollisionGeometryDataCache& PhysicsWorld::GetConvexCache()
  15048. // Error: type "CollisionGeometryDataCache&" can not automatically bind
  15049. // CollisionGeometryDataCache& PhysicsWorld::GetGImpactTrimeshCache()
  15050. // Error: type "CollisionGeometryDataCache&" can not automatically bind
  15051. // void PhysicsWorld::GetRigidBodies(PODVector<RigidBody*>& result, const Sphere& sphere, unsigned collisionMask = M_MAX_UNSIGNED)
  15052. // Error: type "PODVector<RigidBody*>&" can not automatically bind
  15053. // void PhysicsWorld::GetRigidBodies(PODVector<RigidBody*>& result, const BoundingBox& box, unsigned collisionMask = M_MAX_UNSIGNED)
  15054. // Error: type "PODVector<RigidBody*>&" can not automatically bind
  15055. // void PhysicsWorld::GetRigidBodies(PODVector<RigidBody*>& result, const RigidBody* body)
  15056. // Error: type "PODVector<RigidBody*>&" can not automatically bind
  15057. // CollisionGeometryDataCache& PhysicsWorld::GetTriMeshCache()
  15058. // Error: type "CollisionGeometryDataCache&" can not automatically bind
  15059. // btDiscreteDynamicsWorld* PhysicsWorld::GetWorld()
  15060. // Error: type "btDiscreteDynamicsWorld*" can not automatically bind
  15061. // bool PhysicsWorld::isVisible(const btVector3& aabbMin, const btVector3& aabbMax) override
  15062. // Error: type "const btVector3&" can not automatically bind
  15063. // void PhysicsWorld::Raycast(PODVector<PhysicsRaycastResult>& result, const Ray& ray, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  15064. // Error: type "PODVector<PhysicsRaycastResult>&" can not automatically bind
  15065. // void PhysicsWorld::reportErrorWarning(const char* warningString) override
  15066. // Error: type "const char*" can not automatically bind
  15067. // void PhysicsWorld::AddCollisionShape(CollisionShape* shape)
  15068. engine->RegisterObjectMethod(className, "void AddCollisionShape(CollisionShape@+)", AS_METHODPR(T, AddCollisionShape, (CollisionShape*), void), AS_CALL_THISCALL);
  15069. // void PhysicsWorld::AddConstraint(Constraint* constraint)
  15070. engine->RegisterObjectMethod(className, "void AddConstraint(Constraint@+)", AS_METHODPR(T, AddConstraint, (Constraint*), void), AS_CALL_THISCALL);
  15071. // void PhysicsWorld::AddDelayedWorldTransform(const DelayedWorldTransform& transform)
  15072. engine->RegisterObjectMethod(className, "void AddDelayedWorldTransform(const DelayedWorldTransform&in)", AS_METHODPR(T, AddDelayedWorldTransform, (const DelayedWorldTransform&), void), AS_CALL_THISCALL);
  15073. // void PhysicsWorld::AddRigidBody(RigidBody* body)
  15074. engine->RegisterObjectMethod(className, "void AddRigidBody(RigidBody@+)", AS_METHODPR(T, AddRigidBody, (RigidBody*), void), AS_CALL_THISCALL);
  15075. // void PhysicsWorld::CleanupGeometryCache()
  15076. engine->RegisterObjectMethod(className, "void CleanupGeometryCache()", AS_METHODPR(T, CleanupGeometryCache, (), void), AS_CALL_THISCALL);
  15077. // void PhysicsWorld::ConvexCast(PhysicsRaycastResult& result, CollisionShape* shape, const Vector3& startPos, const Quaternion& startRot, const Vector3& endPos, const Quaternion& endRot, unsigned collisionMask = M_MAX_UNSIGNED)
  15078. engine->RegisterObjectMethod(className, "void ConvexCast(PhysicsRaycastResult&, CollisionShape@+, const Vector3&in, const Quaternion&in, const Vector3&in, const Quaternion&in, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, ConvexCast, (PhysicsRaycastResult&, CollisionShape*, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, unsigned), void), AS_CALL_THISCALL);
  15079. // void PhysicsWorld::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  15080. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  15081. // void PhysicsWorld::DrawDebugGeometry(bool depthTest)
  15082. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(bool)", AS_METHODPR(T, DrawDebugGeometry, (bool), void), AS_CALL_THISCALL);
  15083. // int PhysicsWorld::getDebugMode() const override
  15084. engine->RegisterObjectMethod(className, "int getDebugMode() const", AS_METHODPR(T, getDebugMode, () const, int), AS_CALL_THISCALL);
  15085. // int PhysicsWorld::GetFps() const
  15086. engine->RegisterObjectMethod(className, "int GetFps() const", AS_METHODPR(T, GetFps, () const, int), AS_CALL_THISCALL);
  15087. engine->RegisterObjectMethod(className, "int get_fps() const", AS_METHODPR(T, GetFps, () const, int), AS_CALL_THISCALL);
  15088. // Vector3 PhysicsWorld::GetGravity() const
  15089. engine->RegisterObjectMethod(className, "Vector3 GetGravity() const", AS_METHODPR(T, GetGravity, () const, Vector3), AS_CALL_THISCALL);
  15090. engine->RegisterObjectMethod(className, "Vector3 get_gravity() const", AS_METHODPR(T, GetGravity, () const, Vector3), AS_CALL_THISCALL);
  15091. // bool PhysicsWorld::GetInternalEdge() const
  15092. engine->RegisterObjectMethod(className, "bool GetInternalEdge() const", AS_METHODPR(T, GetInternalEdge, () const, bool), AS_CALL_THISCALL);
  15093. engine->RegisterObjectMethod(className, "bool get_internalEdge() const", AS_METHODPR(T, GetInternalEdge, () const, bool), AS_CALL_THISCALL);
  15094. // bool PhysicsWorld::GetInterpolation() const
  15095. engine->RegisterObjectMethod(className, "bool GetInterpolation() const", AS_METHODPR(T, GetInterpolation, () const, bool), AS_CALL_THISCALL);
  15096. engine->RegisterObjectMethod(className, "bool get_interpolation() const", AS_METHODPR(T, GetInterpolation, () const, bool), AS_CALL_THISCALL);
  15097. // float PhysicsWorld::GetMaxNetworkAngularVelocity() const
  15098. engine->RegisterObjectMethod(className, "float GetMaxNetworkAngularVelocity() const", AS_METHODPR(T, GetMaxNetworkAngularVelocity, () const, float), AS_CALL_THISCALL);
  15099. // int PhysicsWorld::GetMaxSubSteps() const
  15100. engine->RegisterObjectMethod(className, "int GetMaxSubSteps() const", AS_METHODPR(T, GetMaxSubSteps, () const, int), AS_CALL_THISCALL);
  15101. engine->RegisterObjectMethod(className, "int get_maxSubSteps() const", AS_METHODPR(T, GetMaxSubSteps, () const, int), AS_CALL_THISCALL);
  15102. // int PhysicsWorld::GetNumIterations() const
  15103. engine->RegisterObjectMethod(className, "int GetNumIterations() const", AS_METHODPR(T, GetNumIterations, () const, int), AS_CALL_THISCALL);
  15104. engine->RegisterObjectMethod(className, "int get_numIterations() const", AS_METHODPR(T, GetNumIterations, () const, int), AS_CALL_THISCALL);
  15105. // bool PhysicsWorld::GetSplitImpulse() const
  15106. engine->RegisterObjectMethod(className, "bool GetSplitImpulse() const", AS_METHODPR(T, GetSplitImpulse, () const, bool), AS_CALL_THISCALL);
  15107. engine->RegisterObjectMethod(className, "bool get_splitImpulse() const", AS_METHODPR(T, GetSplitImpulse, () const, bool), AS_CALL_THISCALL);
  15108. // bool PhysicsWorld::IsApplyingTransforms() const
  15109. engine->RegisterObjectMethod(className, "bool IsApplyingTransforms() const", AS_METHODPR(T, IsApplyingTransforms, () const, bool), AS_CALL_THISCALL);
  15110. // bool PhysicsWorld::IsSimulating() const
  15111. engine->RegisterObjectMethod(className, "bool IsSimulating() const", AS_METHODPR(T, IsSimulating, () const, bool), AS_CALL_THISCALL);
  15112. // bool PhysicsWorld::IsUpdateEnabled() const
  15113. engine->RegisterObjectMethod(className, "bool IsUpdateEnabled() const", AS_METHODPR(T, IsUpdateEnabled, () const, bool), AS_CALL_THISCALL);
  15114. engine->RegisterObjectMethod(className, "bool get_updateEnabled() const", AS_METHODPR(T, IsUpdateEnabled, () const, bool), AS_CALL_THISCALL);
  15115. // virtual void Component::OnSetEnabled()
  15116. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  15117. // void PhysicsWorld::RaycastSingle(PhysicsRaycastResult& result, const Ray& ray, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  15118. engine->RegisterObjectMethod(className, "void RaycastSingle(PhysicsRaycastResult&, const Ray&in, float, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, RaycastSingle, (PhysicsRaycastResult&, const Ray&, float, unsigned), void), AS_CALL_THISCALL);
  15119. // void PhysicsWorld::RaycastSingleSegmented(PhysicsRaycastResult& result, const Ray& ray, float maxDistance, float segmentDistance, unsigned collisionMask = M_MAX_UNSIGNED, float overlapDistance = 0.1f)
  15120. engine->RegisterObjectMethod(className, "void RaycastSingleSegmented(PhysicsRaycastResult&, const Ray&in, float, float, uint = M_MAX_UNSIGNED, float = 0.1f)", AS_METHODPR(T, RaycastSingleSegmented, (PhysicsRaycastResult&, const Ray&, float, float, unsigned, float), void), AS_CALL_THISCALL);
  15121. // void PhysicsWorld::RemoveCachedGeometry(Model* model)
  15122. engine->RegisterObjectMethod(className, "void RemoveCachedGeometry(Model@+)", AS_METHODPR(T, RemoveCachedGeometry, (Model*), void), AS_CALL_THISCALL);
  15123. // void PhysicsWorld::RemoveCollisionShape(CollisionShape* shape)
  15124. engine->RegisterObjectMethod(className, "void RemoveCollisionShape(CollisionShape@+)", AS_METHODPR(T, RemoveCollisionShape, (CollisionShape*), void), AS_CALL_THISCALL);
  15125. // void PhysicsWorld::RemoveConstraint(Constraint* constraint)
  15126. engine->RegisterObjectMethod(className, "void RemoveConstraint(Constraint@+)", AS_METHODPR(T, RemoveConstraint, (Constraint*), void), AS_CALL_THISCALL);
  15127. // void PhysicsWorld::RemoveRigidBody(RigidBody* body)
  15128. engine->RegisterObjectMethod(className, "void RemoveRigidBody(RigidBody@+)", AS_METHODPR(T, RemoveRigidBody, (RigidBody*), void), AS_CALL_THISCALL);
  15129. // void PhysicsWorld::SetApplyingTransforms(bool enable)
  15130. engine->RegisterObjectMethod(className, "void SetApplyingTransforms(bool)", AS_METHODPR(T, SetApplyingTransforms, (bool), void), AS_CALL_THISCALL);
  15131. // void PhysicsWorld::SetDebugDepthTest(bool enable)
  15132. engine->RegisterObjectMethod(className, "void SetDebugDepthTest(bool)", AS_METHODPR(T, SetDebugDepthTest, (bool), void), AS_CALL_THISCALL);
  15133. // void PhysicsWorld::setDebugMode(int debugMode) override
  15134. engine->RegisterObjectMethod(className, "void setDebugMode(int)", AS_METHODPR(T, setDebugMode, (int), void), AS_CALL_THISCALL);
  15135. // void PhysicsWorld::SetDebugRenderer(DebugRenderer* debug)
  15136. engine->RegisterObjectMethod(className, "void SetDebugRenderer(DebugRenderer@+)", AS_METHODPR(T, SetDebugRenderer, (DebugRenderer*), void), AS_CALL_THISCALL);
  15137. // void PhysicsWorld::SetFps(int fps)
  15138. engine->RegisterObjectMethod(className, "void SetFps(int)", AS_METHODPR(T, SetFps, (int), void), AS_CALL_THISCALL);
  15139. engine->RegisterObjectMethod(className, "void set_fps(int)", AS_METHODPR(T, SetFps, (int), void), AS_CALL_THISCALL);
  15140. // void PhysicsWorld::SetGravity(const Vector3& gravity)
  15141. engine->RegisterObjectMethod(className, "void SetGravity(const Vector3&in)", AS_METHODPR(T, SetGravity, (const Vector3&), void), AS_CALL_THISCALL);
  15142. engine->RegisterObjectMethod(className, "void set_gravity(const Vector3&in)", AS_METHODPR(T, SetGravity, (const Vector3&), void), AS_CALL_THISCALL);
  15143. // void PhysicsWorld::SetInternalEdge(bool enable)
  15144. engine->RegisterObjectMethod(className, "void SetInternalEdge(bool)", AS_METHODPR(T, SetInternalEdge, (bool), void), AS_CALL_THISCALL);
  15145. engine->RegisterObjectMethod(className, "void set_internalEdge(bool)", AS_METHODPR(T, SetInternalEdge, (bool), void), AS_CALL_THISCALL);
  15146. // void PhysicsWorld::SetInterpolation(bool enable)
  15147. engine->RegisterObjectMethod(className, "void SetInterpolation(bool)", AS_METHODPR(T, SetInterpolation, (bool), void), AS_CALL_THISCALL);
  15148. engine->RegisterObjectMethod(className, "void set_interpolation(bool)", AS_METHODPR(T, SetInterpolation, (bool), void), AS_CALL_THISCALL);
  15149. // void PhysicsWorld::SetMaxNetworkAngularVelocity(float velocity)
  15150. engine->RegisterObjectMethod(className, "void SetMaxNetworkAngularVelocity(float)", AS_METHODPR(T, SetMaxNetworkAngularVelocity, (float), void), AS_CALL_THISCALL);
  15151. // void PhysicsWorld::SetMaxSubSteps(int num)
  15152. engine->RegisterObjectMethod(className, "void SetMaxSubSteps(int)", AS_METHODPR(T, SetMaxSubSteps, (int), void), AS_CALL_THISCALL);
  15153. engine->RegisterObjectMethod(className, "void set_maxSubSteps(int)", AS_METHODPR(T, SetMaxSubSteps, (int), void), AS_CALL_THISCALL);
  15154. // void PhysicsWorld::SetNumIterations(int num)
  15155. engine->RegisterObjectMethod(className, "void SetNumIterations(int)", AS_METHODPR(T, SetNumIterations, (int), void), AS_CALL_THISCALL);
  15156. engine->RegisterObjectMethod(className, "void set_numIterations(int)", AS_METHODPR(T, SetNumIterations, (int), void), AS_CALL_THISCALL);
  15157. // void PhysicsWorld::SetSplitImpulse(bool enable)
  15158. engine->RegisterObjectMethod(className, "void SetSplitImpulse(bool)", AS_METHODPR(T, SetSplitImpulse, (bool), void), AS_CALL_THISCALL);
  15159. engine->RegisterObjectMethod(className, "void set_splitImpulse(bool)", AS_METHODPR(T, SetSplitImpulse, (bool), void), AS_CALL_THISCALL);
  15160. // void PhysicsWorld::SetUpdateEnabled(bool enable)
  15161. engine->RegisterObjectMethod(className, "void SetUpdateEnabled(bool)", AS_METHODPR(T, SetUpdateEnabled, (bool), void), AS_CALL_THISCALL);
  15162. engine->RegisterObjectMethod(className, "void set_updateEnabled(bool)", AS_METHODPR(T, SetUpdateEnabled, (bool), void), AS_CALL_THISCALL);
  15163. // void PhysicsWorld::SphereCast(PhysicsRaycastResult& result, const Ray& ray, float radius, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  15164. engine->RegisterObjectMethod(className, "void SphereCast(PhysicsRaycastResult&, const Ray&in, float, float, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, SphereCast, (PhysicsRaycastResult&, const Ray&, float, float, unsigned), void), AS_CALL_THISCALL);
  15165. // void PhysicsWorld::Update(float timeStep)
  15166. engine->RegisterObjectMethod(className, "void Update(float)", AS_METHODPR(T, Update, (float), void), AS_CALL_THISCALL);
  15167. // void PhysicsWorld::UpdateCollisions()
  15168. engine->RegisterObjectMethod(className, "void UpdateCollisions()", AS_METHODPR(T, UpdateCollisions, (), void), AS_CALL_THISCALL);
  15169. // static struct PhysicsWorldConfig PhysicsWorld::config
  15170. // Error: type "struct PhysicsWorldConfig" can not automatically bind
  15171. #ifdef REGISTER_MEMBERS_MANUAL_PART_PhysicsWorld
  15172. REGISTER_MEMBERS_MANUAL_PART_PhysicsWorld();
  15173. #endif
  15174. }
  15175. // class RigidBody | File: ../Physics/RigidBody.h
  15176. template <class T> void RegisterMembers_RigidBody(asIScriptEngine* engine, const char* className)
  15177. {
  15178. RegisterMembers_Component<T>(engine, className);
  15179. // btRigidBody* RigidBody::GetBody() const
  15180. // Error: type "btRigidBody*" can not automatically bind
  15181. // void RigidBody::GetCollidingBodies(PODVector<RigidBody*>& result) const
  15182. // Error: type "PODVector<RigidBody*>&" can not automatically bind
  15183. // btCompoundShape* RigidBody::GetCompoundShape() const
  15184. // Error: type "btCompoundShape*" can not automatically bind
  15185. // const PODVector<unsigned char>& RigidBody::GetNetAngularVelocityAttr() const
  15186. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  15187. // void RigidBody::getWorldTransform(btTransform& worldTrans) const override
  15188. // Not registered because have @nobind mark
  15189. // void RigidBody::SetNetAngularVelocityAttr(const PODVector<unsigned char>& value)
  15190. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  15191. // void RigidBody::setWorldTransform(const btTransform& worldTrans) override
  15192. // Not registered because have @nobind mark
  15193. // void RigidBody::Activate()
  15194. engine->RegisterObjectMethod(className, "void Activate()", AS_METHODPR(T, Activate, (), void), AS_CALL_THISCALL);
  15195. // void RigidBody::AddConstraint(Constraint* constraint)
  15196. engine->RegisterObjectMethod(className, "void AddConstraint(Constraint@+)", AS_METHODPR(T, AddConstraint, (Constraint*), void), AS_CALL_THISCALL);
  15197. // void RigidBody::ApplyForce(const Vector3& force)
  15198. engine->RegisterObjectMethod(className, "void ApplyForce(const Vector3&in)", AS_METHODPR(T, ApplyForce, (const Vector3&), void), AS_CALL_THISCALL);
  15199. // void RigidBody::ApplyForce(const Vector3& force, const Vector3& position)
  15200. engine->RegisterObjectMethod(className, "void ApplyForce(const Vector3&in, const Vector3&in)", AS_METHODPR(T, ApplyForce, (const Vector3&, const Vector3&), void), AS_CALL_THISCALL);
  15201. // void RigidBody::ApplyImpulse(const Vector3& impulse)
  15202. engine->RegisterObjectMethod(className, "void ApplyImpulse(const Vector3&in)", AS_METHODPR(T, ApplyImpulse, (const Vector3&), void), AS_CALL_THISCALL);
  15203. // void RigidBody::ApplyImpulse(const Vector3& impulse, const Vector3& position)
  15204. engine->RegisterObjectMethod(className, "void ApplyImpulse(const Vector3&in, const Vector3&in)", AS_METHODPR(T, ApplyImpulse, (const Vector3&, const Vector3&), void), AS_CALL_THISCALL);
  15205. // void RigidBody::ApplyTorque(const Vector3& torque)
  15206. engine->RegisterObjectMethod(className, "void ApplyTorque(const Vector3&in)", AS_METHODPR(T, ApplyTorque, (const Vector3&), void), AS_CALL_THISCALL);
  15207. // void RigidBody::ApplyTorqueImpulse(const Vector3& torque)
  15208. engine->RegisterObjectMethod(className, "void ApplyTorqueImpulse(const Vector3&in)", AS_METHODPR(T, ApplyTorqueImpulse, (const Vector3&), void), AS_CALL_THISCALL);
  15209. // void RigidBody::ApplyWorldTransform(const Vector3& newWorldPosition, const Quaternion& newWorldRotation)
  15210. engine->RegisterObjectMethod(className, "void ApplyWorldTransform(const Vector3&in, const Quaternion&in)", AS_METHODPR(T, ApplyWorldTransform, (const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  15211. // void RigidBody::DisableMassUpdate()
  15212. engine->RegisterObjectMethod(className, "void DisableMassUpdate()", AS_METHODPR(T, DisableMassUpdate, (), void), AS_CALL_THISCALL);
  15213. // void RigidBody::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  15214. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  15215. // void RigidBody::EnableMassUpdate()
  15216. engine->RegisterObjectMethod(className, "void EnableMassUpdate()", AS_METHODPR(T, EnableMassUpdate, (), void), AS_CALL_THISCALL);
  15217. // float RigidBody::GetAngularDamping() const
  15218. engine->RegisterObjectMethod(className, "float GetAngularDamping() const", AS_METHODPR(T, GetAngularDamping, () const, float), AS_CALL_THISCALL);
  15219. engine->RegisterObjectMethod(className, "float get_angularDamping() const", AS_METHODPR(T, GetAngularDamping, () const, float), AS_CALL_THISCALL);
  15220. // Vector3 RigidBody::GetAngularFactor() const
  15221. engine->RegisterObjectMethod(className, "Vector3 GetAngularFactor() const", AS_METHODPR(T, GetAngularFactor, () const, Vector3), AS_CALL_THISCALL);
  15222. engine->RegisterObjectMethod(className, "Vector3 get_angularFactor() const", AS_METHODPR(T, GetAngularFactor, () const, Vector3), AS_CALL_THISCALL);
  15223. // float RigidBody::GetAngularRestThreshold() const
  15224. engine->RegisterObjectMethod(className, "float GetAngularRestThreshold() const", AS_METHODPR(T, GetAngularRestThreshold, () const, float), AS_CALL_THISCALL);
  15225. engine->RegisterObjectMethod(className, "float get_angularRestThreshold() const", AS_METHODPR(T, GetAngularRestThreshold, () const, float), AS_CALL_THISCALL);
  15226. // Vector3 RigidBody::GetAngularVelocity() const
  15227. engine->RegisterObjectMethod(className, "Vector3 GetAngularVelocity() const", AS_METHODPR(T, GetAngularVelocity, () const, Vector3), AS_CALL_THISCALL);
  15228. engine->RegisterObjectMethod(className, "Vector3 get_angularVelocity() const", AS_METHODPR(T, GetAngularVelocity, () const, Vector3), AS_CALL_THISCALL);
  15229. // Vector3 RigidBody::GetAnisotropicFriction() const
  15230. engine->RegisterObjectMethod(className, "Vector3 GetAnisotropicFriction() const", AS_METHODPR(T, GetAnisotropicFriction, () const, Vector3), AS_CALL_THISCALL);
  15231. engine->RegisterObjectMethod(className, "Vector3 get_anisotropicFriction() const", AS_METHODPR(T, GetAnisotropicFriction, () const, Vector3), AS_CALL_THISCALL);
  15232. // float RigidBody::GetCcdMotionThreshold() const
  15233. engine->RegisterObjectMethod(className, "float GetCcdMotionThreshold() const", AS_METHODPR(T, GetCcdMotionThreshold, () const, float), AS_CALL_THISCALL);
  15234. engine->RegisterObjectMethod(className, "float get_ccdMotionThreshold() const", AS_METHODPR(T, GetCcdMotionThreshold, () const, float), AS_CALL_THISCALL);
  15235. // float RigidBody::GetCcdRadius() const
  15236. engine->RegisterObjectMethod(className, "float GetCcdRadius() const", AS_METHODPR(T, GetCcdRadius, () const, float), AS_CALL_THISCALL);
  15237. engine->RegisterObjectMethod(className, "float get_ccdRadius() const", AS_METHODPR(T, GetCcdRadius, () const, float), AS_CALL_THISCALL);
  15238. // const Vector3& RigidBody::GetCenterOfMass() const
  15239. engine->RegisterObjectMethod(className, "const Vector3& GetCenterOfMass() const", AS_METHODPR(T, GetCenterOfMass, () const, const Vector3&), AS_CALL_THISCALL);
  15240. engine->RegisterObjectMethod(className, "const Vector3& get_centerOfMass() const", AS_METHODPR(T, GetCenterOfMass, () const, const Vector3&), AS_CALL_THISCALL);
  15241. // CollisionEventMode RigidBody::GetCollisionEventMode() const
  15242. engine->RegisterObjectMethod(className, "CollisionEventMode GetCollisionEventMode() const", AS_METHODPR(T, GetCollisionEventMode, () const, CollisionEventMode), AS_CALL_THISCALL);
  15243. engine->RegisterObjectMethod(className, "CollisionEventMode get_collisionEventMode() const", AS_METHODPR(T, GetCollisionEventMode, () const, CollisionEventMode), AS_CALL_THISCALL);
  15244. // unsigned RigidBody::GetCollisionLayer() const
  15245. engine->RegisterObjectMethod(className, "uint GetCollisionLayer() const", AS_METHODPR(T, GetCollisionLayer, () const, unsigned), AS_CALL_THISCALL);
  15246. engine->RegisterObjectMethod(className, "uint get_collisionLayer() const", AS_METHODPR(T, GetCollisionLayer, () const, unsigned), AS_CALL_THISCALL);
  15247. // unsigned RigidBody::GetCollisionMask() const
  15248. engine->RegisterObjectMethod(className, "uint GetCollisionMask() const", AS_METHODPR(T, GetCollisionMask, () const, unsigned), AS_CALL_THISCALL);
  15249. engine->RegisterObjectMethod(className, "uint get_collisionMask() const", AS_METHODPR(T, GetCollisionMask, () const, unsigned), AS_CALL_THISCALL);
  15250. // float RigidBody::GetContactProcessingThreshold() const
  15251. engine->RegisterObjectMethod(className, "float GetContactProcessingThreshold() const", AS_METHODPR(T, GetContactProcessingThreshold, () const, float), AS_CALL_THISCALL);
  15252. engine->RegisterObjectMethod(className, "float get_contactProcessingThreshold() const", AS_METHODPR(T, GetContactProcessingThreshold, () const, float), AS_CALL_THISCALL);
  15253. // float RigidBody::GetFriction() const
  15254. engine->RegisterObjectMethod(className, "float GetFriction() const", AS_METHODPR(T, GetFriction, () const, float), AS_CALL_THISCALL);
  15255. engine->RegisterObjectMethod(className, "float get_friction() const", AS_METHODPR(T, GetFriction, () const, float), AS_CALL_THISCALL);
  15256. // const Vector3& RigidBody::GetGravityOverride() const
  15257. engine->RegisterObjectMethod(className, "const Vector3& GetGravityOverride() const", AS_METHODPR(T, GetGravityOverride, () const, const Vector3&), AS_CALL_THISCALL);
  15258. engine->RegisterObjectMethod(className, "const Vector3& get_gravityOverride() const", AS_METHODPR(T, GetGravityOverride, () const, const Vector3&), AS_CALL_THISCALL);
  15259. // float RigidBody::GetLinearDamping() const
  15260. engine->RegisterObjectMethod(className, "float GetLinearDamping() const", AS_METHODPR(T, GetLinearDamping, () const, float), AS_CALL_THISCALL);
  15261. engine->RegisterObjectMethod(className, "float get_linearDamping() const", AS_METHODPR(T, GetLinearDamping, () const, float), AS_CALL_THISCALL);
  15262. // Vector3 RigidBody::GetLinearFactor() const
  15263. engine->RegisterObjectMethod(className, "Vector3 GetLinearFactor() const", AS_METHODPR(T, GetLinearFactor, () const, Vector3), AS_CALL_THISCALL);
  15264. engine->RegisterObjectMethod(className, "Vector3 get_linearFactor() const", AS_METHODPR(T, GetLinearFactor, () const, Vector3), AS_CALL_THISCALL);
  15265. // float RigidBody::GetLinearRestThreshold() const
  15266. engine->RegisterObjectMethod(className, "float GetLinearRestThreshold() const", AS_METHODPR(T, GetLinearRestThreshold, () const, float), AS_CALL_THISCALL);
  15267. engine->RegisterObjectMethod(className, "float get_linearRestThreshold() const", AS_METHODPR(T, GetLinearRestThreshold, () const, float), AS_CALL_THISCALL);
  15268. // Vector3 RigidBody::GetLinearVelocity() const
  15269. engine->RegisterObjectMethod(className, "Vector3 GetLinearVelocity() const", AS_METHODPR(T, GetLinearVelocity, () const, Vector3), AS_CALL_THISCALL);
  15270. engine->RegisterObjectMethod(className, "Vector3 get_linearVelocity() const", AS_METHODPR(T, GetLinearVelocity, () const, Vector3), AS_CALL_THISCALL);
  15271. // float RigidBody::GetMass() const
  15272. engine->RegisterObjectMethod(className, "float GetMass() const", AS_METHODPR(T, GetMass, () const, float), AS_CALL_THISCALL);
  15273. engine->RegisterObjectMethod(className, "float get_mass() const", AS_METHODPR(T, GetMass, () const, float), AS_CALL_THISCALL);
  15274. // PhysicsWorld* RigidBody::GetPhysicsWorld() const
  15275. engine->RegisterObjectMethod(className, "PhysicsWorld@+ GetPhysicsWorld() const", AS_METHODPR(T, GetPhysicsWorld, () const, PhysicsWorld*), AS_CALL_THISCALL);
  15276. // Vector3 RigidBody::GetPosition() const
  15277. engine->RegisterObjectMethod(className, "Vector3 GetPosition() const", AS_METHODPR(T, GetPosition, () const, Vector3), AS_CALL_THISCALL);
  15278. engine->RegisterObjectMethod(className, "Vector3 get_position() const", AS_METHODPR(T, GetPosition, () const, Vector3), AS_CALL_THISCALL);
  15279. // float RigidBody::GetRestitution() const
  15280. engine->RegisterObjectMethod(className, "float GetRestitution() const", AS_METHODPR(T, GetRestitution, () const, float), AS_CALL_THISCALL);
  15281. engine->RegisterObjectMethod(className, "float get_restitution() const", AS_METHODPR(T, GetRestitution, () const, float), AS_CALL_THISCALL);
  15282. // float RigidBody::GetRollingFriction() const
  15283. engine->RegisterObjectMethod(className, "float GetRollingFriction() const", AS_METHODPR(T, GetRollingFriction, () const, float), AS_CALL_THISCALL);
  15284. engine->RegisterObjectMethod(className, "float get_rollingFriction() const", AS_METHODPR(T, GetRollingFriction, () const, float), AS_CALL_THISCALL);
  15285. // Quaternion RigidBody::GetRotation() const
  15286. engine->RegisterObjectMethod(className, "Quaternion GetRotation() const", AS_METHODPR(T, GetRotation, () const, Quaternion), AS_CALL_THISCALL);
  15287. engine->RegisterObjectMethod(className, "Quaternion get_rotation() const", AS_METHODPR(T, GetRotation, () const, Quaternion), AS_CALL_THISCALL);
  15288. // bool RigidBody::GetUseGravity() const
  15289. engine->RegisterObjectMethod(className, "bool GetUseGravity() const", AS_METHODPR(T, GetUseGravity, () const, bool), AS_CALL_THISCALL);
  15290. engine->RegisterObjectMethod(className, "bool get_useGravity() const", AS_METHODPR(T, GetUseGravity, () const, bool), AS_CALL_THISCALL);
  15291. // Vector3 RigidBody::GetVelocityAtPoint(const Vector3& position) const
  15292. engine->RegisterObjectMethod(className, "Vector3 GetVelocityAtPoint(const Vector3&in) const", AS_METHODPR(T, GetVelocityAtPoint, (const Vector3&) const, Vector3), AS_CALL_THISCALL);
  15293. // bool RigidBody::IsActive() const
  15294. engine->RegisterObjectMethod(className, "bool IsActive() const", AS_METHODPR(T, IsActive, () const, bool), AS_CALL_THISCALL);
  15295. engine->RegisterObjectMethod(className, "bool get_active() const", AS_METHODPR(T, IsActive, () const, bool), AS_CALL_THISCALL);
  15296. // bool RigidBody::IsKinematic() const
  15297. engine->RegisterObjectMethod(className, "bool IsKinematic() const", AS_METHODPR(T, IsKinematic, () const, bool), AS_CALL_THISCALL);
  15298. engine->RegisterObjectMethod(className, "bool get_kinematic() const", AS_METHODPR(T, IsKinematic, () const, bool), AS_CALL_THISCALL);
  15299. // bool RigidBody::IsTrigger() const
  15300. engine->RegisterObjectMethod(className, "bool IsTrigger() const", AS_METHODPR(T, IsTrigger, () const, bool), AS_CALL_THISCALL);
  15301. engine->RegisterObjectMethod(className, "bool get_trigger() const", AS_METHODPR(T, IsTrigger, () const, bool), AS_CALL_THISCALL);
  15302. // void RigidBody::OnSetEnabled() override
  15303. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  15304. // void RigidBody::ReAddBodyToWorld()
  15305. engine->RegisterObjectMethod(className, "void ReAddBodyToWorld()", AS_METHODPR(T, ReAddBodyToWorld, (), void), AS_CALL_THISCALL);
  15306. // void RigidBody::ReleaseBody()
  15307. engine->RegisterObjectMethod(className, "void ReleaseBody()", AS_METHODPR(T, ReleaseBody, (), void), AS_CALL_THISCALL);
  15308. // void RigidBody::RemoveConstraint(Constraint* constraint)
  15309. engine->RegisterObjectMethod(className, "void RemoveConstraint(Constraint@+)", AS_METHODPR(T, RemoveConstraint, (Constraint*), void), AS_CALL_THISCALL);
  15310. // void RigidBody::ResetForces()
  15311. engine->RegisterObjectMethod(className, "void ResetForces()", AS_METHODPR(T, ResetForces, (), void), AS_CALL_THISCALL);
  15312. // void RigidBody::SetAngularDamping(float damping)
  15313. engine->RegisterObjectMethod(className, "void SetAngularDamping(float)", AS_METHODPR(T, SetAngularDamping, (float), void), AS_CALL_THISCALL);
  15314. engine->RegisterObjectMethod(className, "void set_angularDamping(float)", AS_METHODPR(T, SetAngularDamping, (float), void), AS_CALL_THISCALL);
  15315. // void RigidBody::SetAngularFactor(const Vector3& factor)
  15316. engine->RegisterObjectMethod(className, "void SetAngularFactor(const Vector3&in)", AS_METHODPR(T, SetAngularFactor, (const Vector3&), void), AS_CALL_THISCALL);
  15317. engine->RegisterObjectMethod(className, "void set_angularFactor(const Vector3&in)", AS_METHODPR(T, SetAngularFactor, (const Vector3&), void), AS_CALL_THISCALL);
  15318. // void RigidBody::SetAngularRestThreshold(float threshold)
  15319. engine->RegisterObjectMethod(className, "void SetAngularRestThreshold(float)", AS_METHODPR(T, SetAngularRestThreshold, (float), void), AS_CALL_THISCALL);
  15320. engine->RegisterObjectMethod(className, "void set_angularRestThreshold(float)", AS_METHODPR(T, SetAngularRestThreshold, (float), void), AS_CALL_THISCALL);
  15321. // void RigidBody::SetAngularVelocity(const Vector3& velocity)
  15322. engine->RegisterObjectMethod(className, "void SetAngularVelocity(const Vector3&in)", AS_METHODPR(T, SetAngularVelocity, (const Vector3&), void), AS_CALL_THISCALL);
  15323. engine->RegisterObjectMethod(className, "void set_angularVelocity(const Vector3&in)", AS_METHODPR(T, SetAngularVelocity, (const Vector3&), void), AS_CALL_THISCALL);
  15324. // void RigidBody::SetAnisotropicFriction(const Vector3& friction)
  15325. engine->RegisterObjectMethod(className, "void SetAnisotropicFriction(const Vector3&in)", AS_METHODPR(T, SetAnisotropicFriction, (const Vector3&), void), AS_CALL_THISCALL);
  15326. engine->RegisterObjectMethod(className, "void set_anisotropicFriction(const Vector3&in)", AS_METHODPR(T, SetAnisotropicFriction, (const Vector3&), void), AS_CALL_THISCALL);
  15327. // void RigidBody::SetCcdMotionThreshold(float threshold)
  15328. engine->RegisterObjectMethod(className, "void SetCcdMotionThreshold(float)", AS_METHODPR(T, SetCcdMotionThreshold, (float), void), AS_CALL_THISCALL);
  15329. engine->RegisterObjectMethod(className, "void set_ccdMotionThreshold(float)", AS_METHODPR(T, SetCcdMotionThreshold, (float), void), AS_CALL_THISCALL);
  15330. // void RigidBody::SetCcdRadius(float radius)
  15331. engine->RegisterObjectMethod(className, "void SetCcdRadius(float)", AS_METHODPR(T, SetCcdRadius, (float), void), AS_CALL_THISCALL);
  15332. engine->RegisterObjectMethod(className, "void set_ccdRadius(float)", AS_METHODPR(T, SetCcdRadius, (float), void), AS_CALL_THISCALL);
  15333. // void RigidBody::SetCollisionEventMode(CollisionEventMode mode)
  15334. engine->RegisterObjectMethod(className, "void SetCollisionEventMode(CollisionEventMode)", AS_METHODPR(T, SetCollisionEventMode, (CollisionEventMode), void), AS_CALL_THISCALL);
  15335. engine->RegisterObjectMethod(className, "void set_collisionEventMode(CollisionEventMode)", AS_METHODPR(T, SetCollisionEventMode, (CollisionEventMode), void), AS_CALL_THISCALL);
  15336. // void RigidBody::SetCollisionLayer(unsigned layer)
  15337. engine->RegisterObjectMethod(className, "void SetCollisionLayer(uint)", AS_METHODPR(T, SetCollisionLayer, (unsigned), void), AS_CALL_THISCALL);
  15338. engine->RegisterObjectMethod(className, "void set_collisionLayer(uint)", AS_METHODPR(T, SetCollisionLayer, (unsigned), void), AS_CALL_THISCALL);
  15339. // void RigidBody::SetCollisionLayerAndMask(unsigned layer, unsigned mask)
  15340. engine->RegisterObjectMethod(className, "void SetCollisionLayerAndMask(uint, uint)", AS_METHODPR(T, SetCollisionLayerAndMask, (unsigned, unsigned), void), AS_CALL_THISCALL);
  15341. // void RigidBody::SetCollisionMask(unsigned mask)
  15342. engine->RegisterObjectMethod(className, "void SetCollisionMask(uint)", AS_METHODPR(T, SetCollisionMask, (unsigned), void), AS_CALL_THISCALL);
  15343. engine->RegisterObjectMethod(className, "void set_collisionMask(uint)", AS_METHODPR(T, SetCollisionMask, (unsigned), void), AS_CALL_THISCALL);
  15344. // void RigidBody::SetContactProcessingThreshold(float threshold)
  15345. engine->RegisterObjectMethod(className, "void SetContactProcessingThreshold(float)", AS_METHODPR(T, SetContactProcessingThreshold, (float), void), AS_CALL_THISCALL);
  15346. engine->RegisterObjectMethod(className, "void set_contactProcessingThreshold(float)", AS_METHODPR(T, SetContactProcessingThreshold, (float), void), AS_CALL_THISCALL);
  15347. // void RigidBody::SetFriction(float friction)
  15348. engine->RegisterObjectMethod(className, "void SetFriction(float)", AS_METHODPR(T, SetFriction, (float), void), AS_CALL_THISCALL);
  15349. engine->RegisterObjectMethod(className, "void set_friction(float)", AS_METHODPR(T, SetFriction, (float), void), AS_CALL_THISCALL);
  15350. // void RigidBody::SetGravityOverride(const Vector3& gravity)
  15351. engine->RegisterObjectMethod(className, "void SetGravityOverride(const Vector3&in)", AS_METHODPR(T, SetGravityOverride, (const Vector3&), void), AS_CALL_THISCALL);
  15352. engine->RegisterObjectMethod(className, "void set_gravityOverride(const Vector3&in)", AS_METHODPR(T, SetGravityOverride, (const Vector3&), void), AS_CALL_THISCALL);
  15353. // void RigidBody::SetKinematic(bool enable)
  15354. engine->RegisterObjectMethod(className, "void SetKinematic(bool)", AS_METHODPR(T, SetKinematic, (bool), void), AS_CALL_THISCALL);
  15355. engine->RegisterObjectMethod(className, "void set_kinematic(bool)", AS_METHODPR(T, SetKinematic, (bool), void), AS_CALL_THISCALL);
  15356. // void RigidBody::SetLinearDamping(float damping)
  15357. engine->RegisterObjectMethod(className, "void SetLinearDamping(float)", AS_METHODPR(T, SetLinearDamping, (float), void), AS_CALL_THISCALL);
  15358. engine->RegisterObjectMethod(className, "void set_linearDamping(float)", AS_METHODPR(T, SetLinearDamping, (float), void), AS_CALL_THISCALL);
  15359. // void RigidBody::SetLinearFactor(const Vector3& factor)
  15360. engine->RegisterObjectMethod(className, "void SetLinearFactor(const Vector3&in)", AS_METHODPR(T, SetLinearFactor, (const Vector3&), void), AS_CALL_THISCALL);
  15361. engine->RegisterObjectMethod(className, "void set_linearFactor(const Vector3&in)", AS_METHODPR(T, SetLinearFactor, (const Vector3&), void), AS_CALL_THISCALL);
  15362. // void RigidBody::SetLinearRestThreshold(float threshold)
  15363. engine->RegisterObjectMethod(className, "void SetLinearRestThreshold(float)", AS_METHODPR(T, SetLinearRestThreshold, (float), void), AS_CALL_THISCALL);
  15364. engine->RegisterObjectMethod(className, "void set_linearRestThreshold(float)", AS_METHODPR(T, SetLinearRestThreshold, (float), void), AS_CALL_THISCALL);
  15365. // void RigidBody::SetLinearVelocity(const Vector3& velocity)
  15366. engine->RegisterObjectMethod(className, "void SetLinearVelocity(const Vector3&in)", AS_METHODPR(T, SetLinearVelocity, (const Vector3&), void), AS_CALL_THISCALL);
  15367. engine->RegisterObjectMethod(className, "void set_linearVelocity(const Vector3&in)", AS_METHODPR(T, SetLinearVelocity, (const Vector3&), void), AS_CALL_THISCALL);
  15368. // void RigidBody::SetMass(float mass)
  15369. engine->RegisterObjectMethod(className, "void SetMass(float)", AS_METHODPR(T, SetMass, (float), void), AS_CALL_THISCALL);
  15370. engine->RegisterObjectMethod(className, "void set_mass(float)", AS_METHODPR(T, SetMass, (float), void), AS_CALL_THISCALL);
  15371. // void RigidBody::SetPosition(const Vector3& position)
  15372. engine->RegisterObjectMethod(className, "void SetPosition(const Vector3&in)", AS_METHODPR(T, SetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  15373. engine->RegisterObjectMethod(className, "void set_position(const Vector3&in)", AS_METHODPR(T, SetPosition, (const Vector3&), void), AS_CALL_THISCALL);
  15374. // void RigidBody::SetRestitution(float restitution)
  15375. engine->RegisterObjectMethod(className, "void SetRestitution(float)", AS_METHODPR(T, SetRestitution, (float), void), AS_CALL_THISCALL);
  15376. engine->RegisterObjectMethod(className, "void set_restitution(float)", AS_METHODPR(T, SetRestitution, (float), void), AS_CALL_THISCALL);
  15377. // void RigidBody::SetRollingFriction(float friction)
  15378. engine->RegisterObjectMethod(className, "void SetRollingFriction(float)", AS_METHODPR(T, SetRollingFriction, (float), void), AS_CALL_THISCALL);
  15379. engine->RegisterObjectMethod(className, "void set_rollingFriction(float)", AS_METHODPR(T, SetRollingFriction, (float), void), AS_CALL_THISCALL);
  15380. // void RigidBody::SetRotation(const Quaternion& rotation)
  15381. engine->RegisterObjectMethod(className, "void SetRotation(const Quaternion&in)", AS_METHODPR(T, SetRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  15382. engine->RegisterObjectMethod(className, "void set_rotation(const Quaternion&in)", AS_METHODPR(T, SetRotation, (const Quaternion&), void), AS_CALL_THISCALL);
  15383. // void RigidBody::SetTransform(const Vector3& position, const Quaternion& rotation)
  15384. engine->RegisterObjectMethod(className, "void SetTransform(const Vector3&in, const Quaternion&in)", AS_METHODPR(T, SetTransform, (const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  15385. // void RigidBody::SetTrigger(bool enable)
  15386. engine->RegisterObjectMethod(className, "void SetTrigger(bool)", AS_METHODPR(T, SetTrigger, (bool), void), AS_CALL_THISCALL);
  15387. engine->RegisterObjectMethod(className, "void set_trigger(bool)", AS_METHODPR(T, SetTrigger, (bool), void), AS_CALL_THISCALL);
  15388. // void RigidBody::SetUseGravity(bool enable)
  15389. engine->RegisterObjectMethod(className, "void SetUseGravity(bool)", AS_METHODPR(T, SetUseGravity, (bool), void), AS_CALL_THISCALL);
  15390. engine->RegisterObjectMethod(className, "void set_useGravity(bool)", AS_METHODPR(T, SetUseGravity, (bool), void), AS_CALL_THISCALL);
  15391. // void RigidBody::UpdateGravity()
  15392. engine->RegisterObjectMethod(className, "void UpdateGravity()", AS_METHODPR(T, UpdateGravity, (), void), AS_CALL_THISCALL);
  15393. // void RigidBody::UpdateMass()
  15394. engine->RegisterObjectMethod(className, "void UpdateMass()", AS_METHODPR(T, UpdateMass, (), void), AS_CALL_THISCALL);
  15395. #ifdef REGISTER_MEMBERS_MANUAL_PART_RigidBody
  15396. REGISTER_MEMBERS_MANUAL_PART_RigidBody();
  15397. #endif
  15398. }
  15399. #endif // def URHO3D_PHYSICS
  15400. #ifdef URHO3D_PHYSICS2D
  15401. // class CollisionShape2D | File: ../Physics2D/CollisionShape2D.h
  15402. template <class T> void RegisterMembers_CollisionShape2D(asIScriptEngine* engine, const char* className)
  15403. {
  15404. RegisterMembers_Component<T>(engine, className);
  15405. // b2Fixture* CollisionShape2D::GetFixture() const
  15406. // Error: type "b2Fixture*" can not automatically bind
  15407. // void CollisionShape2D::CreateFixture()
  15408. engine->RegisterObjectMethod(className, "void CreateFixture()", AS_METHODPR(T, CreateFixture, (), void), AS_CALL_THISCALL);
  15409. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  15410. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  15411. // int CollisionShape2D::GetCategoryBits() const
  15412. engine->RegisterObjectMethod(className, "int GetCategoryBits() const", AS_METHODPR(T, GetCategoryBits, () const, int), AS_CALL_THISCALL);
  15413. engine->RegisterObjectMethod(className, "int get_categoryBits() const", AS_METHODPR(T, GetCategoryBits, () const, int), AS_CALL_THISCALL);
  15414. // float CollisionShape2D::GetDensity() const
  15415. engine->RegisterObjectMethod(className, "float GetDensity() const", AS_METHODPR(T, GetDensity, () const, float), AS_CALL_THISCALL);
  15416. engine->RegisterObjectMethod(className, "float get_density() const", AS_METHODPR(T, GetDensity, () const, float), AS_CALL_THISCALL);
  15417. // float CollisionShape2D::GetFriction() const
  15418. engine->RegisterObjectMethod(className, "float GetFriction() const", AS_METHODPR(T, GetFriction, () const, float), AS_CALL_THISCALL);
  15419. engine->RegisterObjectMethod(className, "float get_friction() const", AS_METHODPR(T, GetFriction, () const, float), AS_CALL_THISCALL);
  15420. // int CollisionShape2D::GetGroupIndex() const
  15421. engine->RegisterObjectMethod(className, "int GetGroupIndex() const", AS_METHODPR(T, GetGroupIndex, () const, int), AS_CALL_THISCALL);
  15422. engine->RegisterObjectMethod(className, "int get_groupIndex() const", AS_METHODPR(T, GetGroupIndex, () const, int), AS_CALL_THISCALL);
  15423. // float CollisionShape2D::GetInertia() const
  15424. engine->RegisterObjectMethod(className, "float GetInertia() const", AS_METHODPR(T, GetInertia, () const, float), AS_CALL_THISCALL);
  15425. engine->RegisterObjectMethod(className, "float get_inertia() const", AS_METHODPR(T, GetInertia, () const, float), AS_CALL_THISCALL);
  15426. // int CollisionShape2D::GetMaskBits() const
  15427. engine->RegisterObjectMethod(className, "int GetMaskBits() const", AS_METHODPR(T, GetMaskBits, () const, int), AS_CALL_THISCALL);
  15428. engine->RegisterObjectMethod(className, "int get_maskBits() const", AS_METHODPR(T, GetMaskBits, () const, int), AS_CALL_THISCALL);
  15429. // float CollisionShape2D::GetMass() const
  15430. engine->RegisterObjectMethod(className, "float GetMass() const", AS_METHODPR(T, GetMass, () const, float), AS_CALL_THISCALL);
  15431. engine->RegisterObjectMethod(className, "float get_mass() const", AS_METHODPR(T, GetMass, () const, float), AS_CALL_THISCALL);
  15432. // Vector2 CollisionShape2D::GetMassCenter() const
  15433. engine->RegisterObjectMethod(className, "Vector2 GetMassCenter() const", AS_METHODPR(T, GetMassCenter, () const, Vector2), AS_CALL_THISCALL);
  15434. engine->RegisterObjectMethod(className, "Vector2 get_massCenter() const", AS_METHODPR(T, GetMassCenter, () const, Vector2), AS_CALL_THISCALL);
  15435. // float CollisionShape2D::GetRestitution() const
  15436. engine->RegisterObjectMethod(className, "float GetRestitution() const", AS_METHODPR(T, GetRestitution, () const, float), AS_CALL_THISCALL);
  15437. engine->RegisterObjectMethod(className, "float get_restitution() const", AS_METHODPR(T, GetRestitution, () const, float), AS_CALL_THISCALL);
  15438. // bool CollisionShape2D::IsTrigger() const
  15439. engine->RegisterObjectMethod(className, "bool IsTrigger() const", AS_METHODPR(T, IsTrigger, () const, bool), AS_CALL_THISCALL);
  15440. engine->RegisterObjectMethod(className, "bool get_trigger() const", AS_METHODPR(T, IsTrigger, () const, bool), AS_CALL_THISCALL);
  15441. // void CollisionShape2D::OnSetEnabled() override
  15442. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  15443. // void CollisionShape2D::ReleaseFixture()
  15444. engine->RegisterObjectMethod(className, "void ReleaseFixture()", AS_METHODPR(T, ReleaseFixture, (), void), AS_CALL_THISCALL);
  15445. // void CollisionShape2D::SetCategoryBits(int categoryBits)
  15446. engine->RegisterObjectMethod(className, "void SetCategoryBits(int)", AS_METHODPR(T, SetCategoryBits, (int), void), AS_CALL_THISCALL);
  15447. engine->RegisterObjectMethod(className, "void set_categoryBits(int)", AS_METHODPR(T, SetCategoryBits, (int), void), AS_CALL_THISCALL);
  15448. // void CollisionShape2D::SetDensity(float density)
  15449. engine->RegisterObjectMethod(className, "void SetDensity(float)", AS_METHODPR(T, SetDensity, (float), void), AS_CALL_THISCALL);
  15450. engine->RegisterObjectMethod(className, "void set_density(float)", AS_METHODPR(T, SetDensity, (float), void), AS_CALL_THISCALL);
  15451. // void CollisionShape2D::SetFriction(float friction)
  15452. engine->RegisterObjectMethod(className, "void SetFriction(float)", AS_METHODPR(T, SetFriction, (float), void), AS_CALL_THISCALL);
  15453. engine->RegisterObjectMethod(className, "void set_friction(float)", AS_METHODPR(T, SetFriction, (float), void), AS_CALL_THISCALL);
  15454. // void CollisionShape2D::SetGroupIndex(int groupIndex)
  15455. engine->RegisterObjectMethod(className, "void SetGroupIndex(int)", AS_METHODPR(T, SetGroupIndex, (int), void), AS_CALL_THISCALL);
  15456. engine->RegisterObjectMethod(className, "void set_groupIndex(int)", AS_METHODPR(T, SetGroupIndex, (int), void), AS_CALL_THISCALL);
  15457. // void CollisionShape2D::SetMaskBits(int maskBits)
  15458. engine->RegisterObjectMethod(className, "void SetMaskBits(int)", AS_METHODPR(T, SetMaskBits, (int), void), AS_CALL_THISCALL);
  15459. engine->RegisterObjectMethod(className, "void set_maskBits(int)", AS_METHODPR(T, SetMaskBits, (int), void), AS_CALL_THISCALL);
  15460. // void CollisionShape2D::SetRestitution(float restitution)
  15461. engine->RegisterObjectMethod(className, "void SetRestitution(float)", AS_METHODPR(T, SetRestitution, (float), void), AS_CALL_THISCALL);
  15462. engine->RegisterObjectMethod(className, "void set_restitution(float)", AS_METHODPR(T, SetRestitution, (float), void), AS_CALL_THISCALL);
  15463. // void CollisionShape2D::SetTrigger(bool trigger)
  15464. engine->RegisterObjectMethod(className, "void SetTrigger(bool)", AS_METHODPR(T, SetTrigger, (bool), void), AS_CALL_THISCALL);
  15465. engine->RegisterObjectMethod(className, "void set_trigger(bool)", AS_METHODPR(T, SetTrigger, (bool), void), AS_CALL_THISCALL);
  15466. #ifdef REGISTER_MEMBERS_MANUAL_PART_CollisionShape2D
  15467. REGISTER_MEMBERS_MANUAL_PART_CollisionShape2D();
  15468. #endif
  15469. }
  15470. // class Constraint2D | File: ../Physics2D/Constraint2D.h
  15471. template <class T> void RegisterMembers_Constraint2D(asIScriptEngine* engine, const char* className)
  15472. {
  15473. RegisterMembers_Component<T>(engine, className);
  15474. // b2Joint* Constraint2D::GetJoint() const
  15475. // Error: type "b2Joint*" can not automatically bind
  15476. // void Constraint2D::CreateJoint()
  15477. engine->RegisterObjectMethod(className, "void CreateJoint()", AS_METHODPR(T, CreateJoint, (), void), AS_CALL_THISCALL);
  15478. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  15479. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  15480. // Constraint2D* Constraint2D::GetAttachedConstraint() const
  15481. engine->RegisterObjectMethod(className, "Constraint2D@+ GetAttachedConstraint() const", AS_METHODPR(T, GetAttachedConstraint, () const, Constraint2D*), AS_CALL_THISCALL);
  15482. // bool Constraint2D::GetCollideConnected() const
  15483. engine->RegisterObjectMethod(className, "bool GetCollideConnected() const", AS_METHODPR(T, GetCollideConnected, () const, bool), AS_CALL_THISCALL);
  15484. engine->RegisterObjectMethod(className, "bool get_collideConnected() const", AS_METHODPR(T, GetCollideConnected, () const, bool), AS_CALL_THISCALL);
  15485. // RigidBody2D* Constraint2D::GetOtherBody() const
  15486. engine->RegisterObjectMethod(className, "RigidBody2D@+ GetOtherBody() const", AS_METHODPR(T, GetOtherBody, () const, RigidBody2D*), AS_CALL_THISCALL);
  15487. engine->RegisterObjectMethod(className, "RigidBody2D@+ get_otherBody() const", AS_METHODPR(T, GetOtherBody, () const, RigidBody2D*), AS_CALL_THISCALL);
  15488. // RigidBody2D* Constraint2D::GetOwnerBody() const
  15489. engine->RegisterObjectMethod(className, "RigidBody2D@+ GetOwnerBody() const", AS_METHODPR(T, GetOwnerBody, () const, RigidBody2D*), AS_CALL_THISCALL);
  15490. engine->RegisterObjectMethod(className, "RigidBody2D@+ get_ownerBody() const", AS_METHODPR(T, GetOwnerBody, () const, RigidBody2D*), AS_CALL_THISCALL);
  15491. // void Constraint2D::OnSetEnabled() override
  15492. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  15493. // void Constraint2D::ReleaseJoint()
  15494. engine->RegisterObjectMethod(className, "void ReleaseJoint()", AS_METHODPR(T, ReleaseJoint, (), void), AS_CALL_THISCALL);
  15495. // void Constraint2D::SetAttachedConstraint(Constraint2D* constraint)
  15496. engine->RegisterObjectMethod(className, "void SetAttachedConstraint(Constraint2D@+)", AS_METHODPR(T, SetAttachedConstraint, (Constraint2D*), void), AS_CALL_THISCALL);
  15497. // void Constraint2D::SetCollideConnected(bool collideConnected)
  15498. engine->RegisterObjectMethod(className, "void SetCollideConnected(bool)", AS_METHODPR(T, SetCollideConnected, (bool), void), AS_CALL_THISCALL);
  15499. engine->RegisterObjectMethod(className, "void set_collideConnected(bool)", AS_METHODPR(T, SetCollideConnected, (bool), void), AS_CALL_THISCALL);
  15500. // void Constraint2D::SetOtherBody(RigidBody2D* body)
  15501. engine->RegisterObjectMethod(className, "void SetOtherBody(RigidBody2D@+)", AS_METHODPR(T, SetOtherBody, (RigidBody2D*), void), AS_CALL_THISCALL);
  15502. engine->RegisterObjectMethod(className, "void set_otherBody(RigidBody2D@+)", AS_METHODPR(T, SetOtherBody, (RigidBody2D*), void), AS_CALL_THISCALL);
  15503. #ifdef REGISTER_MEMBERS_MANUAL_PART_Constraint2D
  15504. REGISTER_MEMBERS_MANUAL_PART_Constraint2D();
  15505. #endif
  15506. }
  15507. // class PhysicsWorld2D | File: ../Physics2D/PhysicsWorld2D.h
  15508. template <class T> void RegisterMembers_PhysicsWorld2D(asIScriptEngine* engine, const char* className)
  15509. {
  15510. RegisterMembers_Component<T>(engine, className);
  15511. // void PhysicsWorld2D::BeginContact(b2Contact* contact) override
  15512. // Error: type "b2Contact*" can not automatically bind
  15513. // void PhysicsWorld2D::DrawCircle(const b2Vec2& center, float32 radius, const b2Color& color) override
  15514. // Error: type "const b2Vec2&" can not automatically bind
  15515. // void PhysicsWorld2D::DrawPoint(const b2Vec2& p, float32 size, const b2Color& color) override
  15516. // Error: type "const b2Vec2&" can not automatically bind
  15517. // void PhysicsWorld2D::DrawPolygon(const b2Vec2* vertices, int32 vertexCount, const b2Color& color) override
  15518. // Error: type "const b2Vec2*" can not automatically bind
  15519. // void PhysicsWorld2D::DrawSegment(const b2Vec2& p1, const b2Vec2& p2, const b2Color& color) override
  15520. // Error: type "const b2Vec2&" can not automatically bind
  15521. // void PhysicsWorld2D::DrawSolidCircle(const b2Vec2& center, float32 radius, const b2Vec2& axis, const b2Color& color) override
  15522. // Error: type "const b2Vec2&" can not automatically bind
  15523. // void PhysicsWorld2D::DrawSolidPolygon(const b2Vec2* vertices, int32 vertexCount, const b2Color& color) override
  15524. // Error: type "const b2Vec2*" can not automatically bind
  15525. // void PhysicsWorld2D::DrawTransform(const b2Transform& xf) override
  15526. // Error: type "const b2Transform&" can not automatically bind
  15527. // void PhysicsWorld2D::EndContact(b2Contact* contact) override
  15528. // Error: type "b2Contact*" can not automatically bind
  15529. // void PhysicsWorld2D::GetRigidBodies(PODVector<RigidBody2D*>& results, const Rect& aabb, unsigned collisionMask = M_MAX_UNSIGNED)
  15530. // Error: type "PODVector<RigidBody2D*>&" can not automatically bind
  15531. // b2World* PhysicsWorld2D::GetWorld()
  15532. // Error: type "b2World*" can not automatically bind
  15533. // void PhysicsWorld2D::PreSolve(b2Contact* contact, const b2Manifold* oldManifold) override
  15534. // Error: type "b2Contact*" can not automatically bind
  15535. // void PhysicsWorld2D::Raycast(PODVector<PhysicsRaycastResult2D>& results, const Vector2& startPoint, const Vector2& endPoint, unsigned collisionMask = M_MAX_UNSIGNED)
  15536. // Error: type "PODVector<PhysicsRaycastResult2D>&" can not automatically bind
  15537. // void PhysicsWorld2D::AddDelayedWorldTransform(const DelayedWorldTransform2D& transform)
  15538. engine->RegisterObjectMethod(className, "void AddDelayedWorldTransform(const DelayedWorldTransform2D&in)", AS_METHODPR(T, AddDelayedWorldTransform, (const DelayedWorldTransform2D&), void), AS_CALL_THISCALL);
  15539. // void PhysicsWorld2D::AddRigidBody(RigidBody2D* rigidBody)
  15540. engine->RegisterObjectMethod(className, "void AddRigidBody(RigidBody2D@+)", AS_METHODPR(T, AddRigidBody, (RigidBody2D*), void), AS_CALL_THISCALL);
  15541. // void PhysicsWorld2D::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  15542. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  15543. // void PhysicsWorld2D::DrawDebugGeometry()
  15544. engine->RegisterObjectMethod(className, "void DrawDebugGeometry()", AS_METHODPR(T, DrawDebugGeometry, (), void), AS_CALL_THISCALL);
  15545. // bool PhysicsWorld2D::GetAllowSleeping() const
  15546. engine->RegisterObjectMethod(className, "bool GetAllowSleeping() const", AS_METHODPR(T, GetAllowSleeping, () const, bool), AS_CALL_THISCALL);
  15547. engine->RegisterObjectMethod(className, "bool get_allowSleeping() const", AS_METHODPR(T, GetAllowSleeping, () const, bool), AS_CALL_THISCALL);
  15548. // bool PhysicsWorld2D::GetAutoClearForces() const
  15549. engine->RegisterObjectMethod(className, "bool GetAutoClearForces() const", AS_METHODPR(T, GetAutoClearForces, () const, bool), AS_CALL_THISCALL);
  15550. engine->RegisterObjectMethod(className, "bool get_autoClearForces() const", AS_METHODPR(T, GetAutoClearForces, () const, bool), AS_CALL_THISCALL);
  15551. // bool PhysicsWorld2D::GetContinuousPhysics() const
  15552. engine->RegisterObjectMethod(className, "bool GetContinuousPhysics() const", AS_METHODPR(T, GetContinuousPhysics, () const, bool), AS_CALL_THISCALL);
  15553. engine->RegisterObjectMethod(className, "bool get_continuousPhysics() const", AS_METHODPR(T, GetContinuousPhysics, () const, bool), AS_CALL_THISCALL);
  15554. // bool PhysicsWorld2D::GetDrawAabb() const
  15555. engine->RegisterObjectMethod(className, "bool GetDrawAabb() const", AS_METHODPR(T, GetDrawAabb, () const, bool), AS_CALL_THISCALL);
  15556. engine->RegisterObjectMethod(className, "bool get_drawAabb() const", AS_METHODPR(T, GetDrawAabb, () const, bool), AS_CALL_THISCALL);
  15557. // bool PhysicsWorld2D::GetDrawCenterOfMass() const
  15558. engine->RegisterObjectMethod(className, "bool GetDrawCenterOfMass() const", AS_METHODPR(T, GetDrawCenterOfMass, () const, bool), AS_CALL_THISCALL);
  15559. engine->RegisterObjectMethod(className, "bool get_drawCenterOfMass() const", AS_METHODPR(T, GetDrawCenterOfMass, () const, bool), AS_CALL_THISCALL);
  15560. // bool PhysicsWorld2D::GetDrawJoint() const
  15561. engine->RegisterObjectMethod(className, "bool GetDrawJoint() const", AS_METHODPR(T, GetDrawJoint, () const, bool), AS_CALL_THISCALL);
  15562. engine->RegisterObjectMethod(className, "bool get_drawJoint() const", AS_METHODPR(T, GetDrawJoint, () const, bool), AS_CALL_THISCALL);
  15563. // bool PhysicsWorld2D::GetDrawPair() const
  15564. engine->RegisterObjectMethod(className, "bool GetDrawPair() const", AS_METHODPR(T, GetDrawPair, () const, bool), AS_CALL_THISCALL);
  15565. engine->RegisterObjectMethod(className, "bool get_drawPair() const", AS_METHODPR(T, GetDrawPair, () const, bool), AS_CALL_THISCALL);
  15566. // bool PhysicsWorld2D::GetDrawShape() const
  15567. engine->RegisterObjectMethod(className, "bool GetDrawShape() const", AS_METHODPR(T, GetDrawShape, () const, bool), AS_CALL_THISCALL);
  15568. engine->RegisterObjectMethod(className, "bool get_drawShape() const", AS_METHODPR(T, GetDrawShape, () const, bool), AS_CALL_THISCALL);
  15569. // const Vector2& PhysicsWorld2D::GetGravity() const
  15570. engine->RegisterObjectMethod(className, "const Vector2& GetGravity() const", AS_METHODPR(T, GetGravity, () const, const Vector2&), AS_CALL_THISCALL);
  15571. engine->RegisterObjectMethod(className, "const Vector2& get_gravity() const", AS_METHODPR(T, GetGravity, () const, const Vector2&), AS_CALL_THISCALL);
  15572. // int PhysicsWorld2D::GetPositionIterations() const
  15573. engine->RegisterObjectMethod(className, "int GetPositionIterations() const", AS_METHODPR(T, GetPositionIterations, () const, int), AS_CALL_THISCALL);
  15574. engine->RegisterObjectMethod(className, "int get_positionIterations() const", AS_METHODPR(T, GetPositionIterations, () const, int), AS_CALL_THISCALL);
  15575. // RigidBody2D* PhysicsWorld2D::GetRigidBody(const Vector2& point, unsigned collisionMask = M_MAX_UNSIGNED)
  15576. engine->RegisterObjectMethod(className, "RigidBody2D@+ GetRigidBody(const Vector2&in, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, GetRigidBody, (const Vector2&, unsigned), RigidBody2D*), AS_CALL_THISCALL);
  15577. // RigidBody2D* PhysicsWorld2D::GetRigidBody(int screenX, int screenY, unsigned collisionMask = M_MAX_UNSIGNED)
  15578. engine->RegisterObjectMethod(className, "RigidBody2D@+ GetRigidBody(int, int, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, GetRigidBody, (int, int, unsigned), RigidBody2D*), AS_CALL_THISCALL);
  15579. // bool PhysicsWorld2D::GetSubStepping() const
  15580. engine->RegisterObjectMethod(className, "bool GetSubStepping() const", AS_METHODPR(T, GetSubStepping, () const, bool), AS_CALL_THISCALL);
  15581. engine->RegisterObjectMethod(className, "bool get_subStepping() const", AS_METHODPR(T, GetSubStepping, () const, bool), AS_CALL_THISCALL);
  15582. // int PhysicsWorld2D::GetVelocityIterations() const
  15583. engine->RegisterObjectMethod(className, "int GetVelocityIterations() const", AS_METHODPR(T, GetVelocityIterations, () const, int), AS_CALL_THISCALL);
  15584. engine->RegisterObjectMethod(className, "int get_velocityIterations() const", AS_METHODPR(T, GetVelocityIterations, () const, int), AS_CALL_THISCALL);
  15585. // bool PhysicsWorld2D::GetWarmStarting() const
  15586. engine->RegisterObjectMethod(className, "bool GetWarmStarting() const", AS_METHODPR(T, GetWarmStarting, () const, bool), AS_CALL_THISCALL);
  15587. engine->RegisterObjectMethod(className, "bool get_warmStarting() const", AS_METHODPR(T, GetWarmStarting, () const, bool), AS_CALL_THISCALL);
  15588. // bool PhysicsWorld2D::IsApplyingTransforms() const
  15589. engine->RegisterObjectMethod(className, "bool IsApplyingTransforms() const", AS_METHODPR(T, IsApplyingTransforms, () const, bool), AS_CALL_THISCALL);
  15590. // bool PhysicsWorld2D::IsUpdateEnabled() const
  15591. engine->RegisterObjectMethod(className, "bool IsUpdateEnabled() const", AS_METHODPR(T, IsUpdateEnabled, () const, bool), AS_CALL_THISCALL);
  15592. engine->RegisterObjectMethod(className, "bool get_updateEnabled() const", AS_METHODPR(T, IsUpdateEnabled, () const, bool), AS_CALL_THISCALL);
  15593. // virtual void Component::OnSetEnabled()
  15594. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  15595. // void PhysicsWorld2D::RaycastSingle(PhysicsRaycastResult2D& result, const Vector2& startPoint, const Vector2& endPoint, unsigned collisionMask = M_MAX_UNSIGNED)
  15596. engine->RegisterObjectMethod(className, "void RaycastSingle(PhysicsRaycastResult2D&, const Vector2&in, const Vector2&in, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, RaycastSingle, (PhysicsRaycastResult2D&, const Vector2&, const Vector2&, unsigned), void), AS_CALL_THISCALL);
  15597. // void PhysicsWorld2D::RemoveRigidBody(RigidBody2D* rigidBody)
  15598. engine->RegisterObjectMethod(className, "void RemoveRigidBody(RigidBody2D@+)", AS_METHODPR(T, RemoveRigidBody, (RigidBody2D*), void), AS_CALL_THISCALL);
  15599. // void PhysicsWorld2D::SetAllowSleeping(bool enable)
  15600. engine->RegisterObjectMethod(className, "void SetAllowSleeping(bool)", AS_METHODPR(T, SetAllowSleeping, (bool), void), AS_CALL_THISCALL);
  15601. engine->RegisterObjectMethod(className, "void set_allowSleeping(bool)", AS_METHODPR(T, SetAllowSleeping, (bool), void), AS_CALL_THISCALL);
  15602. // void PhysicsWorld2D::SetApplyingTransforms(bool enable)
  15603. engine->RegisterObjectMethod(className, "void SetApplyingTransforms(bool)", AS_METHODPR(T, SetApplyingTransforms, (bool), void), AS_CALL_THISCALL);
  15604. // void PhysicsWorld2D::SetAutoClearForces(bool enable)
  15605. engine->RegisterObjectMethod(className, "void SetAutoClearForces(bool)", AS_METHODPR(T, SetAutoClearForces, (bool), void), AS_CALL_THISCALL);
  15606. engine->RegisterObjectMethod(className, "void set_autoClearForces(bool)", AS_METHODPR(T, SetAutoClearForces, (bool), void), AS_CALL_THISCALL);
  15607. // void PhysicsWorld2D::SetContinuousPhysics(bool enable)
  15608. engine->RegisterObjectMethod(className, "void SetContinuousPhysics(bool)", AS_METHODPR(T, SetContinuousPhysics, (bool), void), AS_CALL_THISCALL);
  15609. engine->RegisterObjectMethod(className, "void set_continuousPhysics(bool)", AS_METHODPR(T, SetContinuousPhysics, (bool), void), AS_CALL_THISCALL);
  15610. // void PhysicsWorld2D::SetDrawAabb(bool drawAabb)
  15611. engine->RegisterObjectMethod(className, "void SetDrawAabb(bool)", AS_METHODPR(T, SetDrawAabb, (bool), void), AS_CALL_THISCALL);
  15612. engine->RegisterObjectMethod(className, "void set_drawAabb(bool)", AS_METHODPR(T, SetDrawAabb, (bool), void), AS_CALL_THISCALL);
  15613. // void PhysicsWorld2D::SetDrawCenterOfMass(bool drawCenterOfMass)
  15614. engine->RegisterObjectMethod(className, "void SetDrawCenterOfMass(bool)", AS_METHODPR(T, SetDrawCenterOfMass, (bool), void), AS_CALL_THISCALL);
  15615. engine->RegisterObjectMethod(className, "void set_drawCenterOfMass(bool)", AS_METHODPR(T, SetDrawCenterOfMass, (bool), void), AS_CALL_THISCALL);
  15616. // void PhysicsWorld2D::SetDrawJoint(bool drawJoint)
  15617. engine->RegisterObjectMethod(className, "void SetDrawJoint(bool)", AS_METHODPR(T, SetDrawJoint, (bool), void), AS_CALL_THISCALL);
  15618. engine->RegisterObjectMethod(className, "void set_drawJoint(bool)", AS_METHODPR(T, SetDrawJoint, (bool), void), AS_CALL_THISCALL);
  15619. // void PhysicsWorld2D::SetDrawPair(bool drawPair)
  15620. engine->RegisterObjectMethod(className, "void SetDrawPair(bool)", AS_METHODPR(T, SetDrawPair, (bool), void), AS_CALL_THISCALL);
  15621. engine->RegisterObjectMethod(className, "void set_drawPair(bool)", AS_METHODPR(T, SetDrawPair, (bool), void), AS_CALL_THISCALL);
  15622. // void PhysicsWorld2D::SetDrawShape(bool drawShape)
  15623. engine->RegisterObjectMethod(className, "void SetDrawShape(bool)", AS_METHODPR(T, SetDrawShape, (bool), void), AS_CALL_THISCALL);
  15624. engine->RegisterObjectMethod(className, "void set_drawShape(bool)", AS_METHODPR(T, SetDrawShape, (bool), void), AS_CALL_THISCALL);
  15625. // void PhysicsWorld2D::SetGravity(const Vector2& gravity)
  15626. engine->RegisterObjectMethod(className, "void SetGravity(const Vector2&in)", AS_METHODPR(T, SetGravity, (const Vector2&), void), AS_CALL_THISCALL);
  15627. engine->RegisterObjectMethod(className, "void set_gravity(const Vector2&in)", AS_METHODPR(T, SetGravity, (const Vector2&), void), AS_CALL_THISCALL);
  15628. // void PhysicsWorld2D::SetPositionIterations(int positionIterations)
  15629. engine->RegisterObjectMethod(className, "void SetPositionIterations(int)", AS_METHODPR(T, SetPositionIterations, (int), void), AS_CALL_THISCALL);
  15630. engine->RegisterObjectMethod(className, "void set_positionIterations(int)", AS_METHODPR(T, SetPositionIterations, (int), void), AS_CALL_THISCALL);
  15631. // void PhysicsWorld2D::SetSubStepping(bool enable)
  15632. engine->RegisterObjectMethod(className, "void SetSubStepping(bool)", AS_METHODPR(T, SetSubStepping, (bool), void), AS_CALL_THISCALL);
  15633. engine->RegisterObjectMethod(className, "void set_subStepping(bool)", AS_METHODPR(T, SetSubStepping, (bool), void), AS_CALL_THISCALL);
  15634. // void PhysicsWorld2D::SetUpdateEnabled(bool enable)
  15635. engine->RegisterObjectMethod(className, "void SetUpdateEnabled(bool)", AS_METHODPR(T, SetUpdateEnabled, (bool), void), AS_CALL_THISCALL);
  15636. engine->RegisterObjectMethod(className, "void set_updateEnabled(bool)", AS_METHODPR(T, SetUpdateEnabled, (bool), void), AS_CALL_THISCALL);
  15637. // void PhysicsWorld2D::SetVelocityIterations(int velocityIterations)
  15638. engine->RegisterObjectMethod(className, "void SetVelocityIterations(int)", AS_METHODPR(T, SetVelocityIterations, (int), void), AS_CALL_THISCALL);
  15639. engine->RegisterObjectMethod(className, "void set_velocityIterations(int)", AS_METHODPR(T, SetVelocityIterations, (int), void), AS_CALL_THISCALL);
  15640. // void PhysicsWorld2D::SetWarmStarting(bool enable)
  15641. engine->RegisterObjectMethod(className, "void SetWarmStarting(bool)", AS_METHODPR(T, SetWarmStarting, (bool), void), AS_CALL_THISCALL);
  15642. engine->RegisterObjectMethod(className, "void set_warmStarting(bool)", AS_METHODPR(T, SetWarmStarting, (bool), void), AS_CALL_THISCALL);
  15643. // void PhysicsWorld2D::Update(float timeStep)
  15644. engine->RegisterObjectMethod(className, "void Update(float)", AS_METHODPR(T, Update, (float), void), AS_CALL_THISCALL);
  15645. #ifdef REGISTER_MEMBERS_MANUAL_PART_PhysicsWorld2D
  15646. REGISTER_MEMBERS_MANUAL_PART_PhysicsWorld2D();
  15647. #endif
  15648. }
  15649. // class RigidBody2D | File: ../Physics2D/RigidBody2D.h
  15650. template <class T> void RegisterMembers_RigidBody2D(asIScriptEngine* engine, const char* className)
  15651. {
  15652. RegisterMembers_Component<T>(engine, className);
  15653. // b2Body* RigidBody2D::GetBody() const
  15654. // Error: type "b2Body*" can not automatically bind
  15655. // void RigidBody2D::AddCollisionShape2D(CollisionShape2D* collisionShape)
  15656. engine->RegisterObjectMethod(className, "void AddCollisionShape2D(CollisionShape2D@+)", AS_METHODPR(T, AddCollisionShape2D, (CollisionShape2D*), void), AS_CALL_THISCALL);
  15657. // void RigidBody2D::AddConstraint2D(Constraint2D* constraint)
  15658. engine->RegisterObjectMethod(className, "void AddConstraint2D(Constraint2D@+)", AS_METHODPR(T, AddConstraint2D, (Constraint2D*), void), AS_CALL_THISCALL);
  15659. // void RigidBody2D::ApplyAngularImpulse(float impulse, bool wake)
  15660. engine->RegisterObjectMethod(className, "void ApplyAngularImpulse(float, bool)", AS_METHODPR(T, ApplyAngularImpulse, (float, bool), void), AS_CALL_THISCALL);
  15661. // void RigidBody2D::ApplyForce(const Vector2& force, const Vector2& point, bool wake)
  15662. engine->RegisterObjectMethod(className, "void ApplyForce(const Vector2&in, const Vector2&in, bool)", AS_METHODPR(T, ApplyForce, (const Vector2&, const Vector2&, bool), void), AS_CALL_THISCALL);
  15663. // void RigidBody2D::ApplyForceToCenter(const Vector2& force, bool wake)
  15664. engine->RegisterObjectMethod(className, "void ApplyForceToCenter(const Vector2&in, bool)", AS_METHODPR(T, ApplyForceToCenter, (const Vector2&, bool), void), AS_CALL_THISCALL);
  15665. // void RigidBody2D::ApplyLinearImpulse(const Vector2& impulse, const Vector2& point, bool wake)
  15666. engine->RegisterObjectMethod(className, "void ApplyLinearImpulse(const Vector2&in, const Vector2&in, bool)", AS_METHODPR(T, ApplyLinearImpulse, (const Vector2&, const Vector2&, bool), void), AS_CALL_THISCALL);
  15667. // void RigidBody2D::ApplyLinearImpulseToCenter(const Vector2& impulse, bool wake)
  15668. engine->RegisterObjectMethod(className, "void ApplyLinearImpulseToCenter(const Vector2&in, bool)", AS_METHODPR(T, ApplyLinearImpulseToCenter, (const Vector2&, bool), void), AS_CALL_THISCALL);
  15669. // void RigidBody2D::ApplyTorque(float torque, bool wake)
  15670. engine->RegisterObjectMethod(className, "void ApplyTorque(float, bool)", AS_METHODPR(T, ApplyTorque, (float, bool), void), AS_CALL_THISCALL);
  15671. // void RigidBody2D::ApplyWorldTransform()
  15672. engine->RegisterObjectMethod(className, "void ApplyWorldTransform()", AS_METHODPR(T, ApplyWorldTransform, (), void), AS_CALL_THISCALL);
  15673. // void RigidBody2D::ApplyWorldTransform(const Vector3& newWorldPosition, const Quaternion& newWorldRotation)
  15674. engine->RegisterObjectMethod(className, "void ApplyWorldTransform(const Vector3&in, const Quaternion&in)", AS_METHODPR(T, ApplyWorldTransform, (const Vector3&, const Quaternion&), void), AS_CALL_THISCALL);
  15675. // void RigidBody2D::CreateBody()
  15676. engine->RegisterObjectMethod(className, "void CreateBody()", AS_METHODPR(T, CreateBody, (), void), AS_CALL_THISCALL);
  15677. // virtual void Component::DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  15678. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  15679. // float RigidBody2D::GetAngularDamping() const
  15680. engine->RegisterObjectMethod(className, "float GetAngularDamping() const", AS_METHODPR(T, GetAngularDamping, () const, float), AS_CALL_THISCALL);
  15681. engine->RegisterObjectMethod(className, "float get_angularDamping() const", AS_METHODPR(T, GetAngularDamping, () const, float), AS_CALL_THISCALL);
  15682. // float RigidBody2D::GetAngularVelocity() const
  15683. engine->RegisterObjectMethod(className, "float GetAngularVelocity() const", AS_METHODPR(T, GetAngularVelocity, () const, float), AS_CALL_THISCALL);
  15684. // BodyType2D RigidBody2D::GetBodyType() const
  15685. engine->RegisterObjectMethod(className, "BodyType2D GetBodyType() const", AS_METHODPR(T, GetBodyType, () const, BodyType2D), AS_CALL_THISCALL);
  15686. engine->RegisterObjectMethod(className, "BodyType2D get_bodyType() const", AS_METHODPR(T, GetBodyType, () const, BodyType2D), AS_CALL_THISCALL);
  15687. // float RigidBody2D::GetGravityScale() const
  15688. engine->RegisterObjectMethod(className, "float GetGravityScale() const", AS_METHODPR(T, GetGravityScale, () const, float), AS_CALL_THISCALL);
  15689. engine->RegisterObjectMethod(className, "float get_gravityScale() const", AS_METHODPR(T, GetGravityScale, () const, float), AS_CALL_THISCALL);
  15690. // float RigidBody2D::GetInertia() const
  15691. engine->RegisterObjectMethod(className, "float GetInertia() const", AS_METHODPR(T, GetInertia, () const, float), AS_CALL_THISCALL);
  15692. engine->RegisterObjectMethod(className, "float get_inertia() const", AS_METHODPR(T, GetInertia, () const, float), AS_CALL_THISCALL);
  15693. // float RigidBody2D::GetLinearDamping() const
  15694. engine->RegisterObjectMethod(className, "float GetLinearDamping() const", AS_METHODPR(T, GetLinearDamping, () const, float), AS_CALL_THISCALL);
  15695. engine->RegisterObjectMethod(className, "float get_linearDamping() const", AS_METHODPR(T, GetLinearDamping, () const, float), AS_CALL_THISCALL);
  15696. // Vector2 RigidBody2D::GetLinearVelocity() const
  15697. engine->RegisterObjectMethod(className, "Vector2 GetLinearVelocity() const", AS_METHODPR(T, GetLinearVelocity, () const, Vector2), AS_CALL_THISCALL);
  15698. engine->RegisterObjectMethod(className, "Vector2 get_linearVelocity() const", AS_METHODPR(T, GetLinearVelocity, () const, Vector2), AS_CALL_THISCALL);
  15699. // float RigidBody2D::GetMass() const
  15700. engine->RegisterObjectMethod(className, "float GetMass() const", AS_METHODPR(T, GetMass, () const, float), AS_CALL_THISCALL);
  15701. engine->RegisterObjectMethod(className, "float get_mass() const", AS_METHODPR(T, GetMass, () const, float), AS_CALL_THISCALL);
  15702. // Vector2 RigidBody2D::GetMassCenter() const
  15703. engine->RegisterObjectMethod(className, "Vector2 GetMassCenter() const", AS_METHODPR(T, GetMassCenter, () const, Vector2), AS_CALL_THISCALL);
  15704. engine->RegisterObjectMethod(className, "Vector2 get_massCenter() const", AS_METHODPR(T, GetMassCenter, () const, Vector2), AS_CALL_THISCALL);
  15705. // bool RigidBody2D::GetUseFixtureMass() const
  15706. engine->RegisterObjectMethod(className, "bool GetUseFixtureMass() const", AS_METHODPR(T, GetUseFixtureMass, () const, bool), AS_CALL_THISCALL);
  15707. engine->RegisterObjectMethod(className, "bool get_useFixtureMass() const", AS_METHODPR(T, GetUseFixtureMass, () const, bool), AS_CALL_THISCALL);
  15708. // bool RigidBody2D::IsAllowSleep() const
  15709. engine->RegisterObjectMethod(className, "bool IsAllowSleep() const", AS_METHODPR(T, IsAllowSleep, () const, bool), AS_CALL_THISCALL);
  15710. engine->RegisterObjectMethod(className, "bool get_allowSleep() const", AS_METHODPR(T, IsAllowSleep, () const, bool), AS_CALL_THISCALL);
  15711. // bool RigidBody2D::IsAwake() const
  15712. engine->RegisterObjectMethod(className, "bool IsAwake() const", AS_METHODPR(T, IsAwake, () const, bool), AS_CALL_THISCALL);
  15713. engine->RegisterObjectMethod(className, "bool get_awake() const", AS_METHODPR(T, IsAwake, () const, bool), AS_CALL_THISCALL);
  15714. // bool RigidBody2D::IsBullet() const
  15715. engine->RegisterObjectMethod(className, "bool IsBullet() const", AS_METHODPR(T, IsBullet, () const, bool), AS_CALL_THISCALL);
  15716. engine->RegisterObjectMethod(className, "bool get_bullet() const", AS_METHODPR(T, IsBullet, () const, bool), AS_CALL_THISCALL);
  15717. // bool RigidBody2D::IsFixedRotation() const
  15718. engine->RegisterObjectMethod(className, "bool IsFixedRotation() const", AS_METHODPR(T, IsFixedRotation, () const, bool), AS_CALL_THISCALL);
  15719. engine->RegisterObjectMethod(className, "bool get_fixedRotation() const", AS_METHODPR(T, IsFixedRotation, () const, bool), AS_CALL_THISCALL);
  15720. // void RigidBody2D::OnSetEnabled() override
  15721. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  15722. // void RigidBody2D::ReleaseBody()
  15723. engine->RegisterObjectMethod(className, "void ReleaseBody()", AS_METHODPR(T, ReleaseBody, (), void), AS_CALL_THISCALL);
  15724. // void RigidBody2D::RemoveCollisionShape2D(CollisionShape2D* collisionShape)
  15725. engine->RegisterObjectMethod(className, "void RemoveCollisionShape2D(CollisionShape2D@+)", AS_METHODPR(T, RemoveCollisionShape2D, (CollisionShape2D*), void), AS_CALL_THISCALL);
  15726. // void RigidBody2D::RemoveConstraint2D(Constraint2D* constraint)
  15727. engine->RegisterObjectMethod(className, "void RemoveConstraint2D(Constraint2D@+)", AS_METHODPR(T, RemoveConstraint2D, (Constraint2D*), void), AS_CALL_THISCALL);
  15728. // void RigidBody2D::SetAllowSleep(bool allowSleep)
  15729. engine->RegisterObjectMethod(className, "void SetAllowSleep(bool)", AS_METHODPR(T, SetAllowSleep, (bool), void), AS_CALL_THISCALL);
  15730. engine->RegisterObjectMethod(className, "void set_allowSleep(bool)", AS_METHODPR(T, SetAllowSleep, (bool), void), AS_CALL_THISCALL);
  15731. // void RigidBody2D::SetAngularDamping(float angularDamping)
  15732. engine->RegisterObjectMethod(className, "void SetAngularDamping(float)", AS_METHODPR(T, SetAngularDamping, (float), void), AS_CALL_THISCALL);
  15733. engine->RegisterObjectMethod(className, "void set_angularDamping(float)", AS_METHODPR(T, SetAngularDamping, (float), void), AS_CALL_THISCALL);
  15734. // void RigidBody2D::SetAngularVelocity(float angularVelocity)
  15735. engine->RegisterObjectMethod(className, "void SetAngularVelocity(float)", AS_METHODPR(T, SetAngularVelocity, (float), void), AS_CALL_THISCALL);
  15736. // void RigidBody2D::SetAwake(bool awake)
  15737. engine->RegisterObjectMethod(className, "void SetAwake(bool)", AS_METHODPR(T, SetAwake, (bool), void), AS_CALL_THISCALL);
  15738. engine->RegisterObjectMethod(className, "void set_awake(bool)", AS_METHODPR(T, SetAwake, (bool), void), AS_CALL_THISCALL);
  15739. // void RigidBody2D::SetBodyType(BodyType2D type)
  15740. engine->RegisterObjectMethod(className, "void SetBodyType(BodyType2D)", AS_METHODPR(T, SetBodyType, (BodyType2D), void), AS_CALL_THISCALL);
  15741. engine->RegisterObjectMethod(className, "void set_bodyType(BodyType2D)", AS_METHODPR(T, SetBodyType, (BodyType2D), void), AS_CALL_THISCALL);
  15742. // void RigidBody2D::SetBullet(bool bullet)
  15743. engine->RegisterObjectMethod(className, "void SetBullet(bool)", AS_METHODPR(T, SetBullet, (bool), void), AS_CALL_THISCALL);
  15744. engine->RegisterObjectMethod(className, "void set_bullet(bool)", AS_METHODPR(T, SetBullet, (bool), void), AS_CALL_THISCALL);
  15745. // void RigidBody2D::SetFixedRotation(bool fixedRotation)
  15746. engine->RegisterObjectMethod(className, "void SetFixedRotation(bool)", AS_METHODPR(T, SetFixedRotation, (bool), void), AS_CALL_THISCALL);
  15747. engine->RegisterObjectMethod(className, "void set_fixedRotation(bool)", AS_METHODPR(T, SetFixedRotation, (bool), void), AS_CALL_THISCALL);
  15748. // void RigidBody2D::SetGravityScale(float gravityScale)
  15749. engine->RegisterObjectMethod(className, "void SetGravityScale(float)", AS_METHODPR(T, SetGravityScale, (float), void), AS_CALL_THISCALL);
  15750. engine->RegisterObjectMethod(className, "void set_gravityScale(float)", AS_METHODPR(T, SetGravityScale, (float), void), AS_CALL_THISCALL);
  15751. // void RigidBody2D::SetInertia(float inertia)
  15752. engine->RegisterObjectMethod(className, "void SetInertia(float)", AS_METHODPR(T, SetInertia, (float), void), AS_CALL_THISCALL);
  15753. engine->RegisterObjectMethod(className, "void set_inertia(float)", AS_METHODPR(T, SetInertia, (float), void), AS_CALL_THISCALL);
  15754. // void RigidBody2D::SetLinearDamping(float linearDamping)
  15755. engine->RegisterObjectMethod(className, "void SetLinearDamping(float)", AS_METHODPR(T, SetLinearDamping, (float), void), AS_CALL_THISCALL);
  15756. engine->RegisterObjectMethod(className, "void set_linearDamping(float)", AS_METHODPR(T, SetLinearDamping, (float), void), AS_CALL_THISCALL);
  15757. // void RigidBody2D::SetLinearVelocity(const Vector2& linearVelocity)
  15758. engine->RegisterObjectMethod(className, "void SetLinearVelocity(const Vector2&in)", AS_METHODPR(T, SetLinearVelocity, (const Vector2&), void), AS_CALL_THISCALL);
  15759. engine->RegisterObjectMethod(className, "void set_linearVelocity(const Vector2&in)", AS_METHODPR(T, SetLinearVelocity, (const Vector2&), void), AS_CALL_THISCALL);
  15760. // void RigidBody2D::SetMass(float mass)
  15761. engine->RegisterObjectMethod(className, "void SetMass(float)", AS_METHODPR(T, SetMass, (float), void), AS_CALL_THISCALL);
  15762. engine->RegisterObjectMethod(className, "void set_mass(float)", AS_METHODPR(T, SetMass, (float), void), AS_CALL_THISCALL);
  15763. // void RigidBody2D::SetMassCenter(const Vector2& center)
  15764. engine->RegisterObjectMethod(className, "void SetMassCenter(const Vector2&in)", AS_METHODPR(T, SetMassCenter, (const Vector2&), void), AS_CALL_THISCALL);
  15765. engine->RegisterObjectMethod(className, "void set_massCenter(const Vector2&in)", AS_METHODPR(T, SetMassCenter, (const Vector2&), void), AS_CALL_THISCALL);
  15766. // void RigidBody2D::SetUseFixtureMass(bool useFixtureMass)
  15767. engine->RegisterObjectMethod(className, "void SetUseFixtureMass(bool)", AS_METHODPR(T, SetUseFixtureMass, (bool), void), AS_CALL_THISCALL);
  15768. engine->RegisterObjectMethod(className, "void set_useFixtureMass(bool)", AS_METHODPR(T, SetUseFixtureMass, (bool), void), AS_CALL_THISCALL);
  15769. #ifdef REGISTER_MEMBERS_MANUAL_PART_RigidBody2D
  15770. REGISTER_MEMBERS_MANUAL_PART_RigidBody2D();
  15771. #endif
  15772. }
  15773. #endif // def URHO3D_PHYSICS2D
  15774. #ifdef URHO3D_URHO2D
  15775. // Vector<SharedPtr<TileMapObject2D>> TileMap2D::GetTileCollisionShapes(unsigned gid) const
  15776. template <class T> CScriptArray* TileMap2D_VectorlesSharedPtrlesTileMapObject2Dgregre_GetTileCollisionShapes_unsigned_template(T* _ptr, unsigned gid)
  15777. {
  15778. Vector<SharedPtr<TileMapObject2D>> result = _ptr->GetTileCollisionShapes(gid);
  15779. return VectorToHandleArray(result, "Array<TileMapObject2D@>");
  15780. }
  15781. // class TileMap2D | File: ../Urho2D/TileMap2D.h
  15782. template <class T> void RegisterMembers_TileMap2D(asIScriptEngine* engine, const char* className)
  15783. {
  15784. RegisterMembers_Component<T>(engine, className);
  15785. // void TileMap2D::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  15786. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  15787. // void TileMap2D::DrawDebugGeometry()
  15788. engine->RegisterObjectMethod(className, "void DrawDebugGeometry()", AS_METHODPR(T, DrawDebugGeometry, (), void), AS_CALL_THISCALL);
  15789. // const TileMapInfo2D& TileMap2D::GetInfo() const
  15790. engine->RegisterObjectMethod(className, "const TileMapInfo2D& GetInfo() const", AS_METHODPR(T, GetInfo, () const, const TileMapInfo2D&), AS_CALL_THISCALL);
  15791. engine->RegisterObjectMethod(className, "const TileMapInfo2D& get_info() const", AS_METHODPR(T, GetInfo, () const, const TileMapInfo2D&), AS_CALL_THISCALL);
  15792. // TileMapLayer2D* TileMap2D::GetLayer(unsigned index) const
  15793. engine->RegisterObjectMethod(className, "TileMapLayer2D@+ GetLayer(uint) const", AS_METHODPR(T, GetLayer, (unsigned) const, TileMapLayer2D*), AS_CALL_THISCALL);
  15794. // unsigned TileMap2D::GetNumLayers() const
  15795. engine->RegisterObjectMethod(className, "uint GetNumLayers() const", AS_METHODPR(T, GetNumLayers, () const, unsigned), AS_CALL_THISCALL);
  15796. engine->RegisterObjectMethod(className, "uint get_numLayers() const", AS_METHODPR(T, GetNumLayers, () const, unsigned), AS_CALL_THISCALL);
  15797. // Vector<SharedPtr<TileMapObject2D>> TileMap2D::GetTileCollisionShapes(unsigned gid) const
  15798. engine->RegisterObjectMethod(className, "Array<TileMapObject2D@>@ GetTileCollisionShapes(uint) const", AS_FUNCTION_OBJFIRST(TileMap2D_VectorlesSharedPtrlesTileMapObject2Dgregre_GetTileCollisionShapes_unsigned_template<TileMap2D>), AS_CALL_CDECL_OBJFIRST);
  15799. // TmxFile2D* TileMap2D::GetTmxFile() const
  15800. engine->RegisterObjectMethod(className, "TmxFile2D@+ GetTmxFile() const", AS_METHODPR(T, GetTmxFile, () const, TmxFile2D*), AS_CALL_THISCALL);
  15801. engine->RegisterObjectMethod(className, "TmxFile2D@+ get_tmxFile() const", AS_METHODPR(T, GetTmxFile, () const, TmxFile2D*), AS_CALL_THISCALL);
  15802. // ResourceRef TileMap2D::GetTmxFileAttr() const
  15803. engine->RegisterObjectMethod(className, "ResourceRef GetTmxFileAttr() const", AS_METHODPR(T, GetTmxFileAttr, () const, ResourceRef), AS_CALL_THISCALL);
  15804. // virtual void Component::OnSetEnabled()
  15805. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  15806. // bool TileMap2D::PositionToTileIndex(int& x, int& y, const Vector2& position) const
  15807. engine->RegisterObjectMethod(className, "bool PositionToTileIndex(int&, int&, const Vector2&in) const", AS_METHODPR(T, PositionToTileIndex, (int&, int&, const Vector2&) const, bool), AS_CALL_THISCALL);
  15808. // void TileMap2D::SetTmxFile(TmxFile2D* tmxFile)
  15809. engine->RegisterObjectMethod(className, "void SetTmxFile(TmxFile2D@+)", AS_METHODPR(T, SetTmxFile, (TmxFile2D*), void), AS_CALL_THISCALL);
  15810. engine->RegisterObjectMethod(className, "void set_tmxFile(TmxFile2D@+)", AS_METHODPR(T, SetTmxFile, (TmxFile2D*), void), AS_CALL_THISCALL);
  15811. // void TileMap2D::SetTmxFileAttr(const ResourceRef& value)
  15812. engine->RegisterObjectMethod(className, "void SetTmxFileAttr(const ResourceRef&in)", AS_METHODPR(T, SetTmxFileAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  15813. // Vector2 TileMap2D::TileIndexToPosition(int x, int y) const
  15814. engine->RegisterObjectMethod(className, "Vector2 TileIndexToPosition(int, int) const", AS_METHODPR(T, TileIndexToPosition, (int, int) const, Vector2), AS_CALL_THISCALL);
  15815. #ifdef REGISTER_MEMBERS_MANUAL_PART_TileMap2D
  15816. REGISTER_MEMBERS_MANUAL_PART_TileMap2D();
  15817. #endif
  15818. }
  15819. // class TileMapLayer2D | File: ../Urho2D/TileMapLayer2D.h
  15820. template <class T> void RegisterMembers_TileMapLayer2D(asIScriptEngine* engine, const char* className)
  15821. {
  15822. RegisterMembers_Component<T>(engine, className);
  15823. // void TileMapLayer2D::DrawDebugGeometry(DebugRenderer* debug, bool depthTest) override
  15824. engine->RegisterObjectMethod(className, "void DrawDebugGeometry(DebugRenderer@+, bool)", AS_METHODPR(T, DrawDebugGeometry, (DebugRenderer*, bool), void), AS_CALL_THISCALL);
  15825. // int TileMapLayer2D::GetDrawOrder() const
  15826. engine->RegisterObjectMethod(className, "int GetDrawOrder() const", AS_METHODPR(T, GetDrawOrder, () const, int), AS_CALL_THISCALL);
  15827. engine->RegisterObjectMethod(className, "int get_drawOrder() const", AS_METHODPR(T, GetDrawOrder, () const, int), AS_CALL_THISCALL);
  15828. // int TileMapLayer2D::GetHeight() const
  15829. engine->RegisterObjectMethod(className, "int GetHeight() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  15830. engine->RegisterObjectMethod(className, "int get_height() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  15831. // Node* TileMapLayer2D::GetImageNode() const
  15832. engine->RegisterObjectMethod(className, "Node@+ GetImageNode() const", AS_METHODPR(T, GetImageNode, () const, Node*), AS_CALL_THISCALL);
  15833. engine->RegisterObjectMethod(className, "Node@+ get_imageNode() const", AS_METHODPR(T, GetImageNode, () const, Node*), AS_CALL_THISCALL);
  15834. // TileMapLayerType2D TileMapLayer2D::GetLayerType() const
  15835. engine->RegisterObjectMethod(className, "TileMapLayerType2D GetLayerType() const", AS_METHODPR(T, GetLayerType, () const, TileMapLayerType2D), AS_CALL_THISCALL);
  15836. engine->RegisterObjectMethod(className, "TileMapLayerType2D get_layerType() const", AS_METHODPR(T, GetLayerType, () const, TileMapLayerType2D), AS_CALL_THISCALL);
  15837. // unsigned TileMapLayer2D::GetNumObjects() const
  15838. engine->RegisterObjectMethod(className, "uint GetNumObjects() const", AS_METHODPR(T, GetNumObjects, () const, unsigned), AS_CALL_THISCALL);
  15839. engine->RegisterObjectMethod(className, "uint get_numObjects() const", AS_METHODPR(T, GetNumObjects, () const, unsigned), AS_CALL_THISCALL);
  15840. // TileMapObject2D* TileMapLayer2D::GetObject(unsigned index) const
  15841. engine->RegisterObjectMethod(className, "TileMapObject2D@+ GetObject(uint) const", AS_METHODPR(T, GetObject, (unsigned) const, TileMapObject2D*), AS_CALL_THISCALL);
  15842. // Node* TileMapLayer2D::GetObjectNode(unsigned index) const
  15843. engine->RegisterObjectMethod(className, "Node@+ GetObjectNode(uint) const", AS_METHODPR(T, GetObjectNode, (unsigned) const, Node*), AS_CALL_THISCALL);
  15844. // const String& TileMapLayer2D::GetProperty(const String& name) const
  15845. engine->RegisterObjectMethod(className, "const String& GetProperty(const String&in) const", AS_METHODPR(T, GetProperty, (const String&) const, const String&), AS_CALL_THISCALL);
  15846. // Tile2D* TileMapLayer2D::GetTile(int x, int y) const
  15847. engine->RegisterObjectMethod(className, "Tile2D@+ GetTile(int, int) const", AS_METHODPR(T, GetTile, (int, int) const, Tile2D*), AS_CALL_THISCALL);
  15848. // TileMap2D* TileMapLayer2D::GetTileMap() const
  15849. engine->RegisterObjectMethod(className, "TileMap2D@+ GetTileMap() const", AS_METHODPR(T, GetTileMap, () const, TileMap2D*), AS_CALL_THISCALL);
  15850. // Node* TileMapLayer2D::GetTileNode(int x, int y) const
  15851. engine->RegisterObjectMethod(className, "Node@+ GetTileNode(int, int) const", AS_METHODPR(T, GetTileNode, (int, int) const, Node*), AS_CALL_THISCALL);
  15852. // const TmxLayer2D* TileMapLayer2D::GetTmxLayer() const
  15853. engine->RegisterObjectMethod(className, "TmxLayer2D@+ GetTmxLayer() const", AS_METHODPR(T, GetTmxLayer, () const, const TmxLayer2D*), AS_CALL_THISCALL);
  15854. // int TileMapLayer2D::GetWidth() const
  15855. engine->RegisterObjectMethod(className, "int GetWidth() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  15856. engine->RegisterObjectMethod(className, "int get_width() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  15857. // bool TileMapLayer2D::HasProperty(const String& name) const
  15858. engine->RegisterObjectMethod(className, "bool HasProperty(const String&in) const", AS_METHODPR(T, HasProperty, (const String&) const, bool), AS_CALL_THISCALL);
  15859. // void TileMapLayer2D::Initialize(TileMap2D* tileMap, const TmxLayer2D* tmxLayer)
  15860. engine->RegisterObjectMethod(className, "void Initialize(TileMap2D@+, TmxLayer2D@+)", AS_METHODPR(T, Initialize, (TileMap2D*, const TmxLayer2D*), void), AS_CALL_THISCALL);
  15861. // bool TileMapLayer2D::IsVisible() const
  15862. engine->RegisterObjectMethod(className, "bool IsVisible() const", AS_METHODPR(T, IsVisible, () const, bool), AS_CALL_THISCALL);
  15863. engine->RegisterObjectMethod(className, "bool get_visible() const", AS_METHODPR(T, IsVisible, () const, bool), AS_CALL_THISCALL);
  15864. // virtual void Component::OnSetEnabled()
  15865. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  15866. // void TileMapLayer2D::SetDrawOrder(int drawOrder)
  15867. engine->RegisterObjectMethod(className, "void SetDrawOrder(int)", AS_METHODPR(T, SetDrawOrder, (int), void), AS_CALL_THISCALL);
  15868. engine->RegisterObjectMethod(className, "void set_drawOrder(int)", AS_METHODPR(T, SetDrawOrder, (int), void), AS_CALL_THISCALL);
  15869. // void TileMapLayer2D::SetVisible(bool visible)
  15870. engine->RegisterObjectMethod(className, "void SetVisible(bool)", AS_METHODPR(T, SetVisible, (bool), void), AS_CALL_THISCALL);
  15871. engine->RegisterObjectMethod(className, "void set_visible(bool)", AS_METHODPR(T, SetVisible, (bool), void), AS_CALL_THISCALL);
  15872. #ifdef REGISTER_MEMBERS_MANUAL_PART_TileMapLayer2D
  15873. REGISTER_MEMBERS_MANUAL_PART_TileMapLayer2D();
  15874. #endif
  15875. }
  15876. #endif // def URHO3D_URHO2D
  15877. // class BillboardSet | File: ../Graphics/BillboardSet.h
  15878. template <class T> void RegisterMembers_BillboardSet(asIScriptEngine* engine, const char* className)
  15879. {
  15880. RegisterMembers_Drawable<T>(engine, className);
  15881. // PODVector<Billboard>& BillboardSet::GetBillboards()
  15882. // Error: type "PODVector<Billboard>&" can not automatically bind
  15883. // VariantVector BillboardSet::GetBillboardsAttr() const
  15884. // Error: type "VariantVector" can not automatically bind
  15885. // const PODVector<unsigned char>& BillboardSet::GetNetBillboardsAttr() const
  15886. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  15887. // void BillboardSet::SetBillboardsAttr(const VariantVector& value)
  15888. // Error: type "const VariantVector&" can not automatically bind
  15889. // void BillboardSet::SetNetBillboardsAttr(const PODVector<unsigned char>& value)
  15890. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  15891. // void BillboardSet::Commit()
  15892. engine->RegisterObjectMethod(className, "void Commit()", AS_METHODPR(T, Commit, (), void), AS_CALL_THISCALL);
  15893. // float BillboardSet::GetAnimationLodBias() const
  15894. engine->RegisterObjectMethod(className, "float GetAnimationLodBias() const", AS_METHODPR(T, GetAnimationLodBias, () const, float), AS_CALL_THISCALL);
  15895. engine->RegisterObjectMethod(className, "float get_animationLodBias() const", AS_METHODPR(T, GetAnimationLodBias, () const, float), AS_CALL_THISCALL);
  15896. // Billboard* BillboardSet::GetBillboard(unsigned index)
  15897. engine->RegisterObjectMethod(className, "Billboard@ GetBillboard(uint)", AS_METHODPR(T, GetBillboard, (unsigned), Billboard*), AS_CALL_THISCALL);
  15898. engine->RegisterObjectMethod(className, "Billboard@ get_billboards(uint)", AS_METHODPR(T, GetBillboard, (unsigned), Billboard*), AS_CALL_THISCALL);
  15899. // FaceCameraMode BillboardSet::GetFaceCameraMode() const
  15900. engine->RegisterObjectMethod(className, "FaceCameraMode GetFaceCameraMode() const", AS_METHODPR(T, GetFaceCameraMode, () const, FaceCameraMode), AS_CALL_THISCALL);
  15901. engine->RegisterObjectMethod(className, "FaceCameraMode get_faceCameraMode() const", AS_METHODPR(T, GetFaceCameraMode, () const, FaceCameraMode), AS_CALL_THISCALL);
  15902. // Material* BillboardSet::GetMaterial() const
  15903. engine->RegisterObjectMethod(className, "Material@+ GetMaterial() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  15904. engine->RegisterObjectMethod(className, "Material@+ get_material() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  15905. // ResourceRef BillboardSet::GetMaterialAttr() const
  15906. engine->RegisterObjectMethod(className, "ResourceRef GetMaterialAttr() const", AS_METHODPR(T, GetMaterialAttr, () const, ResourceRef), AS_CALL_THISCALL);
  15907. // float BillboardSet::GetMinAngle() const
  15908. engine->RegisterObjectMethod(className, "float GetMinAngle() const", AS_METHODPR(T, GetMinAngle, () const, float), AS_CALL_THISCALL);
  15909. engine->RegisterObjectMethod(className, "float get_minAngle() const", AS_METHODPR(T, GetMinAngle, () const, float), AS_CALL_THISCALL);
  15910. // unsigned BillboardSet::GetNumBillboards() const
  15911. engine->RegisterObjectMethod(className, "uint GetNumBillboards() const", AS_METHODPR(T, GetNumBillboards, () const, unsigned), AS_CALL_THISCALL);
  15912. engine->RegisterObjectMethod(className, "uint get_numBillboards() const", AS_METHODPR(T, GetNumBillboards, () const, unsigned), AS_CALL_THISCALL);
  15913. // bool BillboardSet::IsFixedScreenSize() const
  15914. engine->RegisterObjectMethod(className, "bool IsFixedScreenSize() const", AS_METHODPR(T, IsFixedScreenSize, () const, bool), AS_CALL_THISCALL);
  15915. engine->RegisterObjectMethod(className, "bool get_fixedScreenSize() const", AS_METHODPR(T, IsFixedScreenSize, () const, bool), AS_CALL_THISCALL);
  15916. // bool BillboardSet::IsRelative() const
  15917. engine->RegisterObjectMethod(className, "bool IsRelative() const", AS_METHODPR(T, IsRelative, () const, bool), AS_CALL_THISCALL);
  15918. engine->RegisterObjectMethod(className, "bool get_relative() const", AS_METHODPR(T, IsRelative, () const, bool), AS_CALL_THISCALL);
  15919. // bool BillboardSet::IsScaled() const
  15920. engine->RegisterObjectMethod(className, "bool IsScaled() const", AS_METHODPR(T, IsScaled, () const, bool), AS_CALL_THISCALL);
  15921. engine->RegisterObjectMethod(className, "bool get_scaled() const", AS_METHODPR(T, IsScaled, () const, bool), AS_CALL_THISCALL);
  15922. // bool BillboardSet::IsSorted() const
  15923. engine->RegisterObjectMethod(className, "bool IsSorted() const", AS_METHODPR(T, IsSorted, () const, bool), AS_CALL_THISCALL);
  15924. engine->RegisterObjectMethod(className, "bool get_sorted() const", AS_METHODPR(T, IsSorted, () const, bool), AS_CALL_THISCALL);
  15925. // void BillboardSet::SetAnimationLodBias(float bias)
  15926. engine->RegisterObjectMethod(className, "void SetAnimationLodBias(float)", AS_METHODPR(T, SetAnimationLodBias, (float), void), AS_CALL_THISCALL);
  15927. engine->RegisterObjectMethod(className, "void set_animationLodBias(float)", AS_METHODPR(T, SetAnimationLodBias, (float), void), AS_CALL_THISCALL);
  15928. // void BillboardSet::SetFaceCameraMode(FaceCameraMode mode)
  15929. engine->RegisterObjectMethod(className, "void SetFaceCameraMode(FaceCameraMode)", AS_METHODPR(T, SetFaceCameraMode, (FaceCameraMode), void), AS_CALL_THISCALL);
  15930. engine->RegisterObjectMethod(className, "void set_faceCameraMode(FaceCameraMode)", AS_METHODPR(T, SetFaceCameraMode, (FaceCameraMode), void), AS_CALL_THISCALL);
  15931. // void BillboardSet::SetFixedScreenSize(bool enable)
  15932. engine->RegisterObjectMethod(className, "void SetFixedScreenSize(bool)", AS_METHODPR(T, SetFixedScreenSize, (bool), void), AS_CALL_THISCALL);
  15933. engine->RegisterObjectMethod(className, "void set_fixedScreenSize(bool)", AS_METHODPR(T, SetFixedScreenSize, (bool), void), AS_CALL_THISCALL);
  15934. // void BillboardSet::SetMaterial(Material* material)
  15935. engine->RegisterObjectMethod(className, "void SetMaterial(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  15936. engine->RegisterObjectMethod(className, "void set_material(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  15937. // void BillboardSet::SetMaterialAttr(const ResourceRef& value)
  15938. engine->RegisterObjectMethod(className, "void SetMaterialAttr(const ResourceRef&in)", AS_METHODPR(T, SetMaterialAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  15939. // void BillboardSet::SetMinAngle(float angle)
  15940. engine->RegisterObjectMethod(className, "void SetMinAngle(float)", AS_METHODPR(T, SetMinAngle, (float), void), AS_CALL_THISCALL);
  15941. engine->RegisterObjectMethod(className, "void set_minAngle(float)", AS_METHODPR(T, SetMinAngle, (float), void), AS_CALL_THISCALL);
  15942. // void BillboardSet::SetNumBillboards(unsigned num)
  15943. engine->RegisterObjectMethod(className, "void SetNumBillboards(uint)", AS_METHODPR(T, SetNumBillboards, (unsigned), void), AS_CALL_THISCALL);
  15944. engine->RegisterObjectMethod(className, "void set_numBillboards(uint)", AS_METHODPR(T, SetNumBillboards, (unsigned), void), AS_CALL_THISCALL);
  15945. // void BillboardSet::SetRelative(bool enable)
  15946. engine->RegisterObjectMethod(className, "void SetRelative(bool)", AS_METHODPR(T, SetRelative, (bool), void), AS_CALL_THISCALL);
  15947. engine->RegisterObjectMethod(className, "void set_relative(bool)", AS_METHODPR(T, SetRelative, (bool), void), AS_CALL_THISCALL);
  15948. // void BillboardSet::SetScaled(bool enable)
  15949. engine->RegisterObjectMethod(className, "void SetScaled(bool)", AS_METHODPR(T, SetScaled, (bool), void), AS_CALL_THISCALL);
  15950. engine->RegisterObjectMethod(className, "void set_scaled(bool)", AS_METHODPR(T, SetScaled, (bool), void), AS_CALL_THISCALL);
  15951. // void BillboardSet::SetSorted(bool enable)
  15952. engine->RegisterObjectMethod(className, "void SetSorted(bool)", AS_METHODPR(T, SetSorted, (bool), void), AS_CALL_THISCALL);
  15953. engine->RegisterObjectMethod(className, "void set_sorted(bool)", AS_METHODPR(T, SetSorted, (bool), void), AS_CALL_THISCALL);
  15954. // virtual void Drawable::Update(const FrameInfo& frame)
  15955. engine->RegisterObjectMethod(className, "void Update(const FrameInfo&in)", AS_METHODPR(T, Update, (const FrameInfo&), void), AS_CALL_THISCALL);
  15956. #ifdef REGISTER_MEMBERS_MANUAL_PART_BillboardSet
  15957. REGISTER_MEMBERS_MANUAL_PART_BillboardSet();
  15958. #endif
  15959. }
  15960. // class Button | File: ../UI/Button.h
  15961. template <class T> void RegisterMembers_Button(asIScriptEngine* engine, const char* className)
  15962. {
  15963. RegisterMembers_BorderImage<T>(engine, className);
  15964. // const IntVector2& Button::GetPressedChildOffset() const
  15965. engine->RegisterObjectMethod(className, "const IntVector2& GetPressedChildOffset() const", AS_METHODPR(T, GetPressedChildOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  15966. engine->RegisterObjectMethod(className, "const IntVector2& get_pressedChildOffset() const", AS_METHODPR(T, GetPressedChildOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  15967. // const IntVector2& Button::GetPressedOffset() const
  15968. engine->RegisterObjectMethod(className, "const IntVector2& GetPressedOffset() const", AS_METHODPR(T, GetPressedOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  15969. engine->RegisterObjectMethod(className, "const IntVector2& get_pressedOffset() const", AS_METHODPR(T, GetPressedOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  15970. // float Button::GetRepeatDelay() const
  15971. engine->RegisterObjectMethod(className, "float GetRepeatDelay() const", AS_METHODPR(T, GetRepeatDelay, () const, float), AS_CALL_THISCALL);
  15972. engine->RegisterObjectMethod(className, "float get_repeatDelay() const", AS_METHODPR(T, GetRepeatDelay, () const, float), AS_CALL_THISCALL);
  15973. // float Button::GetRepeatRate() const
  15974. engine->RegisterObjectMethod(className, "float GetRepeatRate() const", AS_METHODPR(T, GetRepeatRate, () const, float), AS_CALL_THISCALL);
  15975. engine->RegisterObjectMethod(className, "float get_repeatRate() const", AS_METHODPR(T, GetRepeatRate, () const, float), AS_CALL_THISCALL);
  15976. // bool Button::IsPressed() const
  15977. engine->RegisterObjectMethod(className, "bool IsPressed() const", AS_METHODPR(T, IsPressed, () const, bool), AS_CALL_THISCALL);
  15978. engine->RegisterObjectMethod(className, "bool get_pressed() const", AS_METHODPR(T, IsPressed, () const, bool), AS_CALL_THISCALL);
  15979. // void Button::SetPressedChildOffset(const IntVector2& offset)
  15980. engine->RegisterObjectMethod(className, "void SetPressedChildOffset(const IntVector2&in)", AS_METHODPR(T, SetPressedChildOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  15981. engine->RegisterObjectMethod(className, "void set_pressedChildOffset(const IntVector2&in)", AS_METHODPR(T, SetPressedChildOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  15982. // void Button::SetPressedChildOffset(int x, int y)
  15983. engine->RegisterObjectMethod(className, "void SetPressedChildOffset(int, int)", AS_METHODPR(T, SetPressedChildOffset, (int, int), void), AS_CALL_THISCALL);
  15984. // void Button::SetPressedOffset(const IntVector2& offset)
  15985. engine->RegisterObjectMethod(className, "void SetPressedOffset(const IntVector2&in)", AS_METHODPR(T, SetPressedOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  15986. engine->RegisterObjectMethod(className, "void set_pressedOffset(const IntVector2&in)", AS_METHODPR(T, SetPressedOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  15987. // void Button::SetPressedOffset(int x, int y)
  15988. engine->RegisterObjectMethod(className, "void SetPressedOffset(int, int)", AS_METHODPR(T, SetPressedOffset, (int, int), void), AS_CALL_THISCALL);
  15989. // void Button::SetRepeat(float delay, float rate)
  15990. engine->RegisterObjectMethod(className, "void SetRepeat(float, float)", AS_METHODPR(T, SetRepeat, (float, float), void), AS_CALL_THISCALL);
  15991. // void Button::SetRepeatDelay(float delay)
  15992. engine->RegisterObjectMethod(className, "void SetRepeatDelay(float)", AS_METHODPR(T, SetRepeatDelay, (float), void), AS_CALL_THISCALL);
  15993. engine->RegisterObjectMethod(className, "void set_repeatDelay(float)", AS_METHODPR(T, SetRepeatDelay, (float), void), AS_CALL_THISCALL);
  15994. // void Button::SetRepeatRate(float rate)
  15995. engine->RegisterObjectMethod(className, "void SetRepeatRate(float)", AS_METHODPR(T, SetRepeatRate, (float), void), AS_CALL_THISCALL);
  15996. engine->RegisterObjectMethod(className, "void set_repeatRate(float)", AS_METHODPR(T, SetRepeatRate, (float), void), AS_CALL_THISCALL);
  15997. #ifdef REGISTER_MEMBERS_MANUAL_PART_Button
  15998. REGISTER_MEMBERS_MANUAL_PART_Button();
  15999. #endif
  16000. }
  16001. // class CheckBox | File: ../UI/CheckBox.h
  16002. template <class T> void RegisterMembers_CheckBox(asIScriptEngine* engine, const char* className)
  16003. {
  16004. RegisterMembers_BorderImage<T>(engine, className);
  16005. // const IntVector2& CheckBox::GetCheckedOffset() const
  16006. engine->RegisterObjectMethod(className, "const IntVector2& GetCheckedOffset() const", AS_METHODPR(T, GetCheckedOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  16007. engine->RegisterObjectMethod(className, "const IntVector2& get_checkedOffset() const", AS_METHODPR(T, GetCheckedOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  16008. // bool CheckBox::IsChecked() const
  16009. engine->RegisterObjectMethod(className, "bool IsChecked() const", AS_METHODPR(T, IsChecked, () const, bool), AS_CALL_THISCALL);
  16010. engine->RegisterObjectMethod(className, "bool get_checked() const", AS_METHODPR(T, IsChecked, () const, bool), AS_CALL_THISCALL);
  16011. // void CheckBox::SetChecked(bool enable)
  16012. engine->RegisterObjectMethod(className, "void SetChecked(bool)", AS_METHODPR(T, SetChecked, (bool), void), AS_CALL_THISCALL);
  16013. engine->RegisterObjectMethod(className, "void set_checked(bool)", AS_METHODPR(T, SetChecked, (bool), void), AS_CALL_THISCALL);
  16014. // void CheckBox::SetCheckedOffset(const IntVector2& offset)
  16015. engine->RegisterObjectMethod(className, "void SetCheckedOffset(const IntVector2&in)", AS_METHODPR(T, SetCheckedOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  16016. engine->RegisterObjectMethod(className, "void set_checkedOffset(const IntVector2&in)", AS_METHODPR(T, SetCheckedOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  16017. // void CheckBox::SetCheckedOffset(int x, int y)
  16018. engine->RegisterObjectMethod(className, "void SetCheckedOffset(int, int)", AS_METHODPR(T, SetCheckedOffset, (int, int), void), AS_CALL_THISCALL);
  16019. #ifdef REGISTER_MEMBERS_MANUAL_PART_CheckBox
  16020. REGISTER_MEMBERS_MANUAL_PART_CheckBox();
  16021. #endif
  16022. }
  16023. // class Cursor | File: ../UI/Cursor.h
  16024. template <class T> void RegisterMembers_Cursor(asIScriptEngine* engine, const char* className)
  16025. {
  16026. RegisterMembers_BorderImage<T>(engine, className);
  16027. // VariantVector Cursor::GetShapesAttr() const
  16028. // Error: type "VariantVector" can not automatically bind
  16029. // void Cursor::SetShapesAttr(const VariantVector& value)
  16030. // Error: type "const VariantVector&" can not automatically bind
  16031. // void Cursor::ApplyOSCursorShape()
  16032. engine->RegisterObjectMethod(className, "void ApplyOSCursorShape()", AS_METHODPR(T, ApplyOSCursorShape, (), void), AS_CALL_THISCALL);
  16033. // void Cursor::DefineShape(const String& shape, Image* image, const IntRect& imageRect, const IntVector2& hotSpot)
  16034. engine->RegisterObjectMethod(className, "void DefineShape(const String&in, Image@+, const IntRect&in, const IntVector2&in)", AS_METHODPR(T, DefineShape, (const String&, Image*, const IntRect&, const IntVector2&), void), AS_CALL_THISCALL);
  16035. // void Cursor::DefineShape(CursorShape shape, Image* image, const IntRect& imageRect, const IntVector2& hotSpot)
  16036. engine->RegisterObjectMethod(className, "void DefineShape(CursorShape, Image@+, const IntRect&in, const IntVector2&in)", AS_METHODPR(T, DefineShape, (CursorShape, Image*, const IntRect&, const IntVector2&), void), AS_CALL_THISCALL);
  16037. // const String& Cursor::GetShape() const
  16038. engine->RegisterObjectMethod(className, "const String& GetShape() const", AS_METHODPR(T, GetShape, () const, const String&), AS_CALL_THISCALL);
  16039. engine->RegisterObjectMethod(className, "const String& get_shape() const", AS_METHODPR(T, GetShape, () const, const String&), AS_CALL_THISCALL);
  16040. // bool Cursor::GetUseSystemShapes() const
  16041. engine->RegisterObjectMethod(className, "bool GetUseSystemShapes() const", AS_METHODPR(T, GetUseSystemShapes, () const, bool), AS_CALL_THISCALL);
  16042. engine->RegisterObjectMethod(className, "bool get_useSystemShapes() const", AS_METHODPR(T, GetUseSystemShapes, () const, bool), AS_CALL_THISCALL);
  16043. // void Cursor::SetShape(const String& shape)
  16044. engine->RegisterObjectMethod(className, "void SetShape(const String&in)", AS_METHODPR(T, SetShape, (const String&), void), AS_CALL_THISCALL);
  16045. engine->RegisterObjectMethod(className, "void set_shape(const String&in)", AS_METHODPR(T, SetShape, (const String&), void), AS_CALL_THISCALL);
  16046. // void Cursor::SetShape(CursorShape shape)
  16047. engine->RegisterObjectMethod(className, "void SetShape(CursorShape)", AS_METHODPR(T, SetShape, (CursorShape), void), AS_CALL_THISCALL);
  16048. // void Cursor::SetUseSystemShapes(bool enable)
  16049. engine->RegisterObjectMethod(className, "void SetUseSystemShapes(bool)", AS_METHODPR(T, SetUseSystemShapes, (bool), void), AS_CALL_THISCALL);
  16050. engine->RegisterObjectMethod(className, "void set_useSystemShapes(bool)", AS_METHODPR(T, SetUseSystemShapes, (bool), void), AS_CALL_THISCALL);
  16051. #ifdef REGISTER_MEMBERS_MANUAL_PART_Cursor
  16052. REGISTER_MEMBERS_MANUAL_PART_Cursor();
  16053. #endif
  16054. }
  16055. // class CustomGeometry | File: ../Graphics/CustomGeometry.h
  16056. template <class T> void RegisterMembers_CustomGeometry(asIScriptEngine* engine, const char* className)
  16057. {
  16058. RegisterMembers_Drawable<T>(engine, className);
  16059. // PODVector<unsigned char> CustomGeometry::GetGeometryDataAttr() const
  16060. // Error: type "PODVector<unsigned char>" can not automatically bind
  16061. // Vector<PODVector<CustomGeometryVertex>>& CustomGeometry::GetVertices()
  16062. // Error: type "Vector<PODVector<CustomGeometryVertex>>&" can not automatically bind
  16063. // void CustomGeometry::SetGeometryDataAttr(const PODVector<unsigned char>& value)
  16064. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  16065. // void CustomGeometry::BeginGeometry(unsigned index, PrimitiveType type)
  16066. engine->RegisterObjectMethod(className, "void BeginGeometry(uint, PrimitiveType)", AS_METHODPR(T, BeginGeometry, (unsigned, PrimitiveType), void), AS_CALL_THISCALL);
  16067. // void CustomGeometry::Clear()
  16068. engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
  16069. // void CustomGeometry::Commit()
  16070. engine->RegisterObjectMethod(className, "void Commit()", AS_METHODPR(T, Commit, (), void), AS_CALL_THISCALL);
  16071. // void CustomGeometry::DefineColor(const Color& color)
  16072. engine->RegisterObjectMethod(className, "void DefineColor(const Color&in)", AS_METHODPR(T, DefineColor, (const Color&), void), AS_CALL_THISCALL);
  16073. // void CustomGeometry::DefineGeometry(unsigned index, PrimitiveType type, unsigned numVertices, bool hasNormals, bool hasColors, bool hasTexCoords, bool hasTangents)
  16074. engine->RegisterObjectMethod(className, "void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool)", AS_METHODPR(T, DefineGeometry, (unsigned, PrimitiveType, unsigned, bool, bool, bool, bool), void), AS_CALL_THISCALL);
  16075. // void CustomGeometry::DefineNormal(const Vector3& normal)
  16076. engine->RegisterObjectMethod(className, "void DefineNormal(const Vector3&in)", AS_METHODPR(T, DefineNormal, (const Vector3&), void), AS_CALL_THISCALL);
  16077. // void CustomGeometry::DefineTangent(const Vector4& tangent)
  16078. engine->RegisterObjectMethod(className, "void DefineTangent(const Vector4&in)", AS_METHODPR(T, DefineTangent, (const Vector4&), void), AS_CALL_THISCALL);
  16079. // void CustomGeometry::DefineTexCoord(const Vector2& texCoord)
  16080. engine->RegisterObjectMethod(className, "void DefineTexCoord(const Vector2&in)", AS_METHODPR(T, DefineTexCoord, (const Vector2&), void), AS_CALL_THISCALL);
  16081. // void CustomGeometry::DefineVertex(const Vector3& position)
  16082. engine->RegisterObjectMethod(className, "void DefineVertex(const Vector3&in)", AS_METHODPR(T, DefineVertex, (const Vector3&), void), AS_CALL_THISCALL);
  16083. // Material* CustomGeometry::GetMaterial(unsigned index = 0) const
  16084. engine->RegisterObjectMethod(className, "Material@+ GetMaterial(uint = 0) const", AS_METHODPR(T, GetMaterial, (unsigned) const, Material*), AS_CALL_THISCALL);
  16085. engine->RegisterObjectMethod(className, "Material@+ get_materials(uint = 0) const", AS_METHODPR(T, GetMaterial, (unsigned) const, Material*), AS_CALL_THISCALL);
  16086. // const ResourceRefList& CustomGeometry::GetMaterialsAttr() const
  16087. engine->RegisterObjectMethod(className, "const ResourceRefList& GetMaterialsAttr() const", AS_METHODPR(T, GetMaterialsAttr, () const, const ResourceRefList&), AS_CALL_THISCALL);
  16088. // unsigned CustomGeometry::GetNumGeometries() const
  16089. engine->RegisterObjectMethod(className, "uint GetNumGeometries() const", AS_METHODPR(T, GetNumGeometries, () const, unsigned), AS_CALL_THISCALL);
  16090. engine->RegisterObjectMethod(className, "uint get_numGeometries() const", AS_METHODPR(T, GetNumGeometries, () const, unsigned), AS_CALL_THISCALL);
  16091. // unsigned CustomGeometry::GetNumVertices(unsigned index) const
  16092. engine->RegisterObjectMethod(className, "uint GetNumVertices(uint) const", AS_METHODPR(T, GetNumVertices, (unsigned) const, unsigned), AS_CALL_THISCALL);
  16093. engine->RegisterObjectMethod(className, "uint get_numVertices(uint) const", AS_METHODPR(T, GetNumVertices, (unsigned) const, unsigned), AS_CALL_THISCALL);
  16094. // CustomGeometryVertex* CustomGeometry::GetVertex(unsigned geometryIndex, unsigned vertexNum)
  16095. engine->RegisterObjectMethod(className, "CustomGeometryVertex@ GetVertex(uint, uint)", AS_METHODPR(T, GetVertex, (unsigned, unsigned), CustomGeometryVertex*), AS_CALL_THISCALL);
  16096. // bool CustomGeometry::IsDynamic() const
  16097. engine->RegisterObjectMethod(className, "bool IsDynamic() const", AS_METHODPR(T, IsDynamic, () const, bool), AS_CALL_THISCALL);
  16098. engine->RegisterObjectMethod(className, "bool get_dynamic() const", AS_METHODPR(T, IsDynamic, () const, bool), AS_CALL_THISCALL);
  16099. // void CustomGeometry::SetDynamic(bool enable)
  16100. engine->RegisterObjectMethod(className, "void SetDynamic(bool)", AS_METHODPR(T, SetDynamic, (bool), void), AS_CALL_THISCALL);
  16101. engine->RegisterObjectMethod(className, "void set_dynamic(bool)", AS_METHODPR(T, SetDynamic, (bool), void), AS_CALL_THISCALL);
  16102. // void CustomGeometry::SetMaterial(Material* material)
  16103. engine->RegisterObjectMethod(className, "void SetMaterial(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  16104. engine->RegisterObjectMethod(className, "void set_material(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  16105. // bool CustomGeometry::SetMaterial(unsigned index, Material* material)
  16106. engine->RegisterObjectMethod(className, "bool SetMaterial(uint, Material@+)", AS_METHODPR(T, SetMaterial, (unsigned, Material*), bool), AS_CALL_THISCALL);
  16107. engine->RegisterObjectMethod(className, "bool set_materials(uint, Material@+)", AS_METHODPR(T, SetMaterial, (unsigned, Material*), bool), AS_CALL_THISCALL);
  16108. // void CustomGeometry::SetMaterialsAttr(const ResourceRefList& value)
  16109. engine->RegisterObjectMethod(className, "void SetMaterialsAttr(const ResourceRefList&in)", AS_METHODPR(T, SetMaterialsAttr, (const ResourceRefList&), void), AS_CALL_THISCALL);
  16110. // void CustomGeometry::SetNumGeometries(unsigned num)
  16111. engine->RegisterObjectMethod(className, "void SetNumGeometries(uint)", AS_METHODPR(T, SetNumGeometries, (unsigned), void), AS_CALL_THISCALL);
  16112. engine->RegisterObjectMethod(className, "void set_numGeometries(uint)", AS_METHODPR(T, SetNumGeometries, (unsigned), void), AS_CALL_THISCALL);
  16113. // virtual void Drawable::Update(const FrameInfo& frame)
  16114. engine->RegisterObjectMethod(className, "void Update(const FrameInfo&in)", AS_METHODPR(T, Update, (const FrameInfo&), void), AS_CALL_THISCALL);
  16115. #ifdef REGISTER_MEMBERS_MANUAL_PART_CustomGeometry
  16116. REGISTER_MEMBERS_MANUAL_PART_CustomGeometry();
  16117. #endif
  16118. }
  16119. // class DecalSet | File: ../Graphics/DecalSet.h
  16120. template <class T> void RegisterMembers_DecalSet(asIScriptEngine* engine, const char* className)
  16121. {
  16122. RegisterMembers_Drawable<T>(engine, className);
  16123. // PODVector<unsigned char> DecalSet::GetDecalsAttr() const
  16124. // Error: type "PODVector<unsigned char>" can not automatically bind
  16125. // void DecalSet::SetDecalsAttr(const PODVector<unsigned char>& value)
  16126. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  16127. // bool DecalSet::AddDecal(Drawable* target, const Vector3& worldPosition, const Quaternion& worldRotation, float size, float aspectRatio, float depth, const Vector2& topLeftUV, const Vector2& bottomRightUV, float timeToLive = 0.0f, float normalCutoff = 0.1f, unsigned subGeometry = M_MAX_UNSIGNED)
  16128. engine->RegisterObjectMethod(className, "bool AddDecal(Drawable@+, const Vector3&in, const Quaternion&in, float, float, float, const Vector2&in, const Vector2&in, float = 0.0f, float = 0.1f, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, AddDecal, (Drawable*, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float, float, unsigned), bool), AS_CALL_THISCALL);
  16129. // Material* DecalSet::GetMaterial() const
  16130. engine->RegisterObjectMethod(className, "Material@+ GetMaterial() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  16131. engine->RegisterObjectMethod(className, "Material@+ get_material() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  16132. // ResourceRef DecalSet::GetMaterialAttr() const
  16133. engine->RegisterObjectMethod(className, "ResourceRef GetMaterialAttr() const", AS_METHODPR(T, GetMaterialAttr, () const, ResourceRef), AS_CALL_THISCALL);
  16134. // unsigned DecalSet::GetMaxIndices() const
  16135. engine->RegisterObjectMethod(className, "uint GetMaxIndices() const", AS_METHODPR(T, GetMaxIndices, () const, unsigned), AS_CALL_THISCALL);
  16136. engine->RegisterObjectMethod(className, "uint get_maxIndices() const", AS_METHODPR(T, GetMaxIndices, () const, unsigned), AS_CALL_THISCALL);
  16137. // unsigned DecalSet::GetMaxVertices() const
  16138. engine->RegisterObjectMethod(className, "uint GetMaxVertices() const", AS_METHODPR(T, GetMaxVertices, () const, unsigned), AS_CALL_THISCALL);
  16139. engine->RegisterObjectMethod(className, "uint get_maxVertices() const", AS_METHODPR(T, GetMaxVertices, () const, unsigned), AS_CALL_THISCALL);
  16140. // unsigned DecalSet::GetNumDecals() const
  16141. engine->RegisterObjectMethod(className, "uint GetNumDecals() const", AS_METHODPR(T, GetNumDecals, () const, unsigned), AS_CALL_THISCALL);
  16142. engine->RegisterObjectMethod(className, "uint get_numDecals() const", AS_METHODPR(T, GetNumDecals, () const, unsigned), AS_CALL_THISCALL);
  16143. // unsigned DecalSet::GetNumIndices() const
  16144. engine->RegisterObjectMethod(className, "uint GetNumIndices() const", AS_METHODPR(T, GetNumIndices, () const, unsigned), AS_CALL_THISCALL);
  16145. engine->RegisterObjectMethod(className, "uint get_numIndices() const", AS_METHODPR(T, GetNumIndices, () const, unsigned), AS_CALL_THISCALL);
  16146. // unsigned DecalSet::GetNumVertices() const
  16147. engine->RegisterObjectMethod(className, "uint GetNumVertices() const", AS_METHODPR(T, GetNumVertices, () const, unsigned), AS_CALL_THISCALL);
  16148. engine->RegisterObjectMethod(className, "uint get_numVertices() const", AS_METHODPR(T, GetNumVertices, () const, unsigned), AS_CALL_THISCALL);
  16149. // bool DecalSet::GetOptimizeBufferSize() const
  16150. engine->RegisterObjectMethod(className, "bool GetOptimizeBufferSize() const", AS_METHODPR(T, GetOptimizeBufferSize, () const, bool), AS_CALL_THISCALL);
  16151. engine->RegisterObjectMethod(className, "bool get_optimizeBufferSize() const", AS_METHODPR(T, GetOptimizeBufferSize, () const, bool), AS_CALL_THISCALL);
  16152. // void DecalSet::RemoveAllDecals()
  16153. engine->RegisterObjectMethod(className, "void RemoveAllDecals()", AS_METHODPR(T, RemoveAllDecals, (), void), AS_CALL_THISCALL);
  16154. // void DecalSet::RemoveDecals(unsigned num)
  16155. engine->RegisterObjectMethod(className, "void RemoveDecals(uint)", AS_METHODPR(T, RemoveDecals, (unsigned), void), AS_CALL_THISCALL);
  16156. // void DecalSet::SetMaterial(Material* material)
  16157. engine->RegisterObjectMethod(className, "void SetMaterial(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  16158. engine->RegisterObjectMethod(className, "void set_material(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  16159. // void DecalSet::SetMaterialAttr(const ResourceRef& value)
  16160. engine->RegisterObjectMethod(className, "void SetMaterialAttr(const ResourceRef&in)", AS_METHODPR(T, SetMaterialAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  16161. // void DecalSet::SetMaxIndices(unsigned num)
  16162. engine->RegisterObjectMethod(className, "void SetMaxIndices(uint)", AS_METHODPR(T, SetMaxIndices, (unsigned), void), AS_CALL_THISCALL);
  16163. engine->RegisterObjectMethod(className, "void set_maxIndices(uint)", AS_METHODPR(T, SetMaxIndices, (unsigned), void), AS_CALL_THISCALL);
  16164. // void DecalSet::SetMaxVertices(unsigned num)
  16165. engine->RegisterObjectMethod(className, "void SetMaxVertices(uint)", AS_METHODPR(T, SetMaxVertices, (unsigned), void), AS_CALL_THISCALL);
  16166. engine->RegisterObjectMethod(className, "void set_maxVertices(uint)", AS_METHODPR(T, SetMaxVertices, (unsigned), void), AS_CALL_THISCALL);
  16167. // void DecalSet::SetOptimizeBufferSize(bool enable)
  16168. engine->RegisterObjectMethod(className, "void SetOptimizeBufferSize(bool)", AS_METHODPR(T, SetOptimizeBufferSize, (bool), void), AS_CALL_THISCALL);
  16169. engine->RegisterObjectMethod(className, "void set_optimizeBufferSize(bool)", AS_METHODPR(T, SetOptimizeBufferSize, (bool), void), AS_CALL_THISCALL);
  16170. // virtual void Drawable::Update(const FrameInfo& frame)
  16171. engine->RegisterObjectMethod(className, "void Update(const FrameInfo&in)", AS_METHODPR(T, Update, (const FrameInfo&), void), AS_CALL_THISCALL);
  16172. #ifdef REGISTER_MEMBERS_MANUAL_PART_DecalSet
  16173. REGISTER_MEMBERS_MANUAL_PART_DecalSet();
  16174. #endif
  16175. }
  16176. // class Light | File: ../Graphics/Light.h
  16177. template <class T> void RegisterMembers_Light(asIScriptEngine* engine, const char* className)
  16178. {
  16179. RegisterMembers_Drawable<T>(engine, className);
  16180. // LightBatchQueue* Light::GetLightQueue() const
  16181. // Error: type "LightBatchQueue*" can not automatically bind
  16182. // void Light::SetLightQueue(LightBatchQueue* queue)
  16183. // Error: type "LightBatchQueue*" can not automatically bind
  16184. // float Light::GetAspectRatio() const
  16185. engine->RegisterObjectMethod(className, "float GetAspectRatio() const", AS_METHODPR(T, GetAspectRatio, () const, float), AS_CALL_THISCALL);
  16186. engine->RegisterObjectMethod(className, "float get_aspectRatio() const", AS_METHODPR(T, GetAspectRatio, () const, float), AS_CALL_THISCALL);
  16187. // float Light::GetBrightness() const
  16188. engine->RegisterObjectMethod(className, "float GetBrightness() const", AS_METHODPR(T, GetBrightness, () const, float), AS_CALL_THISCALL);
  16189. engine->RegisterObjectMethod(className, "float get_brightness() const", AS_METHODPR(T, GetBrightness, () const, float), AS_CALL_THISCALL);
  16190. // const Color& Light::GetColor() const
  16191. engine->RegisterObjectMethod(className, "const Color& GetColor() const", AS_METHODPR(T, GetColor, () const, const Color&), AS_CALL_THISCALL);
  16192. engine->RegisterObjectMethod(className, "const Color& get_color() const", AS_METHODPR(T, GetColor, () const, const Color&), AS_CALL_THISCALL);
  16193. // Color Light::GetColorFromTemperature() const
  16194. engine->RegisterObjectMethod(className, "Color GetColorFromTemperature() const", AS_METHODPR(T, GetColorFromTemperature, () const, Color), AS_CALL_THISCALL);
  16195. engine->RegisterObjectMethod(className, "Color get_colorFromTemperature() const", AS_METHODPR(T, GetColorFromTemperature, () const, Color), AS_CALL_THISCALL);
  16196. // Color Light::GetEffectiveColor() const
  16197. engine->RegisterObjectMethod(className, "Color GetEffectiveColor() const", AS_METHODPR(T, GetEffectiveColor, () const, Color), AS_CALL_THISCALL);
  16198. engine->RegisterObjectMethod(className, "Color get_effectiveColor() const", AS_METHODPR(T, GetEffectiveColor, () const, Color), AS_CALL_THISCALL);
  16199. // float Light::GetEffectiveSpecularIntensity() const
  16200. engine->RegisterObjectMethod(className, "float GetEffectiveSpecularIntensity() const", AS_METHODPR(T, GetEffectiveSpecularIntensity, () const, float), AS_CALL_THISCALL);
  16201. engine->RegisterObjectMethod(className, "float get_effectiveSpecularIntensity() const", AS_METHODPR(T, GetEffectiveSpecularIntensity, () const, float), AS_CALL_THISCALL);
  16202. // float Light::GetFadeDistance() const
  16203. engine->RegisterObjectMethod(className, "float GetFadeDistance() const", AS_METHODPR(T, GetFadeDistance, () const, float), AS_CALL_THISCALL);
  16204. engine->RegisterObjectMethod(className, "float get_fadeDistance() const", AS_METHODPR(T, GetFadeDistance, () const, float), AS_CALL_THISCALL);
  16205. // float Light::GetFov() const
  16206. engine->RegisterObjectMethod(className, "float GetFov() const", AS_METHODPR(T, GetFov, () const, float), AS_CALL_THISCALL);
  16207. engine->RegisterObjectMethod(className, "float get_fov() const", AS_METHODPR(T, GetFov, () const, float), AS_CALL_THISCALL);
  16208. // Frustum Light::GetFrustum() const
  16209. engine->RegisterObjectMethod(className, "Frustum GetFrustum() const", AS_METHODPR(T, GetFrustum, () const, Frustum), AS_CALL_THISCALL);
  16210. engine->RegisterObjectMethod(className, "Frustum get_frustum() const", AS_METHODPR(T, GetFrustum, () const, Frustum), AS_CALL_THISCALL);
  16211. // float Light::GetIntensityDivisor(float attenuation = 1.0f) const
  16212. engine->RegisterObjectMethod(className, "float GetIntensityDivisor(float = 1.0f) const", AS_METHODPR(T, GetIntensityDivisor, (float) const, float), AS_CALL_THISCALL);
  16213. // float Light::GetLength() const
  16214. engine->RegisterObjectMethod(className, "float GetLength() const", AS_METHODPR(T, GetLength, () const, float), AS_CALL_THISCALL);
  16215. engine->RegisterObjectMethod(className, "float get_length() const", AS_METHODPR(T, GetLength, () const, float), AS_CALL_THISCALL);
  16216. // LightType Light::GetLightType() const
  16217. engine->RegisterObjectMethod(className, "LightType GetLightType() const", AS_METHODPR(T, GetLightType, () const, LightType), AS_CALL_THISCALL);
  16218. engine->RegisterObjectMethod(className, "LightType get_lightType() const", AS_METHODPR(T, GetLightType, () const, LightType), AS_CALL_THISCALL);
  16219. // int Light::GetNumShadowSplits() const
  16220. engine->RegisterObjectMethod(className, "int GetNumShadowSplits() const", AS_METHODPR(T, GetNumShadowSplits, () const, int), AS_CALL_THISCALL);
  16221. engine->RegisterObjectMethod(className, "int get_numShadowSplits() const", AS_METHODPR(T, GetNumShadowSplits, () const, int), AS_CALL_THISCALL);
  16222. // bool Light::GetPerVertex() const
  16223. engine->RegisterObjectMethod(className, "bool GetPerVertex() const", AS_METHODPR(T, GetPerVertex, () const, bool), AS_CALL_THISCALL);
  16224. engine->RegisterObjectMethod(className, "bool get_perVertex() const", AS_METHODPR(T, GetPerVertex, () const, bool), AS_CALL_THISCALL);
  16225. // float Light::GetRadius() const
  16226. engine->RegisterObjectMethod(className, "float GetRadius() const", AS_METHODPR(T, GetRadius, () const, float), AS_CALL_THISCALL);
  16227. engine->RegisterObjectMethod(className, "float get_radius() const", AS_METHODPR(T, GetRadius, () const, float), AS_CALL_THISCALL);
  16228. // Texture* Light::GetRampTexture() const
  16229. engine->RegisterObjectMethod(className, "Texture@+ GetRampTexture() const", AS_METHODPR(T, GetRampTexture, () const, Texture*), AS_CALL_THISCALL);
  16230. engine->RegisterObjectMethod(className, "Texture@+ get_rampTexture() const", AS_METHODPR(T, GetRampTexture, () const, Texture*), AS_CALL_THISCALL);
  16231. // ResourceRef Light::GetRampTextureAttr() const
  16232. engine->RegisterObjectMethod(className, "ResourceRef GetRampTextureAttr() const", AS_METHODPR(T, GetRampTextureAttr, () const, ResourceRef), AS_CALL_THISCALL);
  16233. // float Light::GetRange() const
  16234. engine->RegisterObjectMethod(className, "float GetRange() const", AS_METHODPR(T, GetRange, () const, float), AS_CALL_THISCALL);
  16235. engine->RegisterObjectMethod(className, "float get_range() const", AS_METHODPR(T, GetRange, () const, float), AS_CALL_THISCALL);
  16236. // const BiasParameters& Light::GetShadowBias() const
  16237. engine->RegisterObjectMethod(className, "const BiasParameters& GetShadowBias() const", AS_METHODPR(T, GetShadowBias, () const, const BiasParameters&), AS_CALL_THISCALL);
  16238. engine->RegisterObjectMethod(className, "const BiasParameters& get_shadowBias() const", AS_METHODPR(T, GetShadowBias, () const, const BiasParameters&), AS_CALL_THISCALL);
  16239. // const CascadeParameters& Light::GetShadowCascade() const
  16240. engine->RegisterObjectMethod(className, "const CascadeParameters& GetShadowCascade() const", AS_METHODPR(T, GetShadowCascade, () const, const CascadeParameters&), AS_CALL_THISCALL);
  16241. engine->RegisterObjectMethod(className, "const CascadeParameters& get_shadowCascade() const", AS_METHODPR(T, GetShadowCascade, () const, const CascadeParameters&), AS_CALL_THISCALL);
  16242. // float Light::GetShadowFadeDistance() const
  16243. engine->RegisterObjectMethod(className, "float GetShadowFadeDistance() const", AS_METHODPR(T, GetShadowFadeDistance, () const, float), AS_CALL_THISCALL);
  16244. engine->RegisterObjectMethod(className, "float get_shadowFadeDistance() const", AS_METHODPR(T, GetShadowFadeDistance, () const, float), AS_CALL_THISCALL);
  16245. // const FocusParameters& Light::GetShadowFocus() const
  16246. engine->RegisterObjectMethod(className, "const FocusParameters& GetShadowFocus() const", AS_METHODPR(T, GetShadowFocus, () const, const FocusParameters&), AS_CALL_THISCALL);
  16247. engine->RegisterObjectMethod(className, "const FocusParameters& get_shadowFocus() const", AS_METHODPR(T, GetShadowFocus, () const, const FocusParameters&), AS_CALL_THISCALL);
  16248. // float Light::GetShadowIntensity() const
  16249. engine->RegisterObjectMethod(className, "float GetShadowIntensity() const", AS_METHODPR(T, GetShadowIntensity, () const, float), AS_CALL_THISCALL);
  16250. engine->RegisterObjectMethod(className, "float get_shadowIntensity() const", AS_METHODPR(T, GetShadowIntensity, () const, float), AS_CALL_THISCALL);
  16251. // float Light::GetShadowMaxExtrusion() const
  16252. engine->RegisterObjectMethod(className, "float GetShadowMaxExtrusion() const", AS_METHODPR(T, GetShadowMaxExtrusion, () const, float), AS_CALL_THISCALL);
  16253. engine->RegisterObjectMethod(className, "float get_shadowMaxExtrusion() const", AS_METHODPR(T, GetShadowMaxExtrusion, () const, float), AS_CALL_THISCALL);
  16254. // float Light::GetShadowNearFarRatio() const
  16255. engine->RegisterObjectMethod(className, "float GetShadowNearFarRatio() const", AS_METHODPR(T, GetShadowNearFarRatio, () const, float), AS_CALL_THISCALL);
  16256. engine->RegisterObjectMethod(className, "float get_shadowNearFarRatio() const", AS_METHODPR(T, GetShadowNearFarRatio, () const, float), AS_CALL_THISCALL);
  16257. // float Light::GetShadowResolution() const
  16258. engine->RegisterObjectMethod(className, "float GetShadowResolution() const", AS_METHODPR(T, GetShadowResolution, () const, float), AS_CALL_THISCALL);
  16259. engine->RegisterObjectMethod(className, "float get_shadowResolution() const", AS_METHODPR(T, GetShadowResolution, () const, float), AS_CALL_THISCALL);
  16260. // Texture* Light::GetShapeTexture() const
  16261. engine->RegisterObjectMethod(className, "Texture@+ GetShapeTexture() const", AS_METHODPR(T, GetShapeTexture, () const, Texture*), AS_CALL_THISCALL);
  16262. engine->RegisterObjectMethod(className, "Texture@+ get_shapeTexture() const", AS_METHODPR(T, GetShapeTexture, () const, Texture*), AS_CALL_THISCALL);
  16263. // ResourceRef Light::GetShapeTextureAttr() const
  16264. engine->RegisterObjectMethod(className, "ResourceRef GetShapeTextureAttr() const", AS_METHODPR(T, GetShapeTextureAttr, () const, ResourceRef), AS_CALL_THISCALL);
  16265. // float Light::GetSpecularIntensity() const
  16266. engine->RegisterObjectMethod(className, "float GetSpecularIntensity() const", AS_METHODPR(T, GetSpecularIntensity, () const, float), AS_CALL_THISCALL);
  16267. engine->RegisterObjectMethod(className, "float get_specularIntensity() const", AS_METHODPR(T, GetSpecularIntensity, () const, float), AS_CALL_THISCALL);
  16268. // float Light::GetTemperature() const
  16269. engine->RegisterObjectMethod(className, "float GetTemperature() const", AS_METHODPR(T, GetTemperature, () const, float), AS_CALL_THISCALL);
  16270. engine->RegisterObjectMethod(className, "float get_temperature() const", AS_METHODPR(T, GetTemperature, () const, float), AS_CALL_THISCALL);
  16271. // bool Light::GetUsePhysicalValues() const
  16272. engine->RegisterObjectMethod(className, "bool GetUsePhysicalValues() const", AS_METHODPR(T, GetUsePhysicalValues, () const, bool), AS_CALL_THISCALL);
  16273. engine->RegisterObjectMethod(className, "bool get_usePhysicalValues() const", AS_METHODPR(T, GetUsePhysicalValues, () const, bool), AS_CALL_THISCALL);
  16274. // Frustum Light::GetViewSpaceFrustum(const Matrix3x4& view) const
  16275. engine->RegisterObjectMethod(className, "Frustum GetViewSpaceFrustum(const Matrix3x4&in) const", AS_METHODPR(T, GetViewSpaceFrustum, (const Matrix3x4&) const, Frustum), AS_CALL_THISCALL);
  16276. // const Matrix3x4& Light::GetVolumeTransform(Camera* camera)
  16277. engine->RegisterObjectMethod(className, "const Matrix3x4& GetVolumeTransform(Camera@+)", AS_METHODPR(T, GetVolumeTransform, (Camera*), const Matrix3x4&), AS_CALL_THISCALL);
  16278. // bool Light::IsNegative() const
  16279. engine->RegisterObjectMethod(className, "bool IsNegative() const", AS_METHODPR(T, IsNegative, () const, bool), AS_CALL_THISCALL);
  16280. engine->RegisterObjectMethod(className, "bool get_negative() const", AS_METHODPR(T, IsNegative, () const, bool), AS_CALL_THISCALL);
  16281. // void Light::SetAspectRatio(float aspectRatio)
  16282. engine->RegisterObjectMethod(className, "void SetAspectRatio(float)", AS_METHODPR(T, SetAspectRatio, (float), void), AS_CALL_THISCALL);
  16283. engine->RegisterObjectMethod(className, "void set_aspectRatio(float)", AS_METHODPR(T, SetAspectRatio, (float), void), AS_CALL_THISCALL);
  16284. // void Light::SetBrightness(float brightness)
  16285. engine->RegisterObjectMethod(className, "void SetBrightness(float)", AS_METHODPR(T, SetBrightness, (float), void), AS_CALL_THISCALL);
  16286. engine->RegisterObjectMethod(className, "void set_brightness(float)", AS_METHODPR(T, SetBrightness, (float), void), AS_CALL_THISCALL);
  16287. // void Light::SetColor(const Color& color)
  16288. engine->RegisterObjectMethod(className, "void SetColor(const Color&in)", AS_METHODPR(T, SetColor, (const Color&), void), AS_CALL_THISCALL);
  16289. engine->RegisterObjectMethod(className, "void set_color(const Color&in)", AS_METHODPR(T, SetColor, (const Color&), void), AS_CALL_THISCALL);
  16290. // void Light::SetFadeDistance(float distance)
  16291. engine->RegisterObjectMethod(className, "void SetFadeDistance(float)", AS_METHODPR(T, SetFadeDistance, (float), void), AS_CALL_THISCALL);
  16292. engine->RegisterObjectMethod(className, "void set_fadeDistance(float)", AS_METHODPR(T, SetFadeDistance, (float), void), AS_CALL_THISCALL);
  16293. // void Light::SetFov(float fov)
  16294. engine->RegisterObjectMethod(className, "void SetFov(float)", AS_METHODPR(T, SetFov, (float), void), AS_CALL_THISCALL);
  16295. engine->RegisterObjectMethod(className, "void set_fov(float)", AS_METHODPR(T, SetFov, (float), void), AS_CALL_THISCALL);
  16296. // void Light::SetIntensitySortValue(float distance)
  16297. engine->RegisterObjectMethod(className, "void SetIntensitySortValue(float)", AS_METHODPR(T, SetIntensitySortValue, (float), void), AS_CALL_THISCALL);
  16298. // void Light::SetIntensitySortValue(const BoundingBox& box)
  16299. engine->RegisterObjectMethod(className, "void SetIntensitySortValue(const BoundingBox&in)", AS_METHODPR(T, SetIntensitySortValue, (const BoundingBox&), void), AS_CALL_THISCALL);
  16300. // void Light::SetLength(float length)
  16301. engine->RegisterObjectMethod(className, "void SetLength(float)", AS_METHODPR(T, SetLength, (float), void), AS_CALL_THISCALL);
  16302. engine->RegisterObjectMethod(className, "void set_length(float)", AS_METHODPR(T, SetLength, (float), void), AS_CALL_THISCALL);
  16303. // void Light::SetLightType(LightType type)
  16304. engine->RegisterObjectMethod(className, "void SetLightType(LightType)", AS_METHODPR(T, SetLightType, (LightType), void), AS_CALL_THISCALL);
  16305. engine->RegisterObjectMethod(className, "void set_lightType(LightType)", AS_METHODPR(T, SetLightType, (LightType), void), AS_CALL_THISCALL);
  16306. // void Light::SetPerVertex(bool enable)
  16307. engine->RegisterObjectMethod(className, "void SetPerVertex(bool)", AS_METHODPR(T, SetPerVertex, (bool), void), AS_CALL_THISCALL);
  16308. engine->RegisterObjectMethod(className, "void set_perVertex(bool)", AS_METHODPR(T, SetPerVertex, (bool), void), AS_CALL_THISCALL);
  16309. // void Light::SetRadius(float radius)
  16310. engine->RegisterObjectMethod(className, "void SetRadius(float)", AS_METHODPR(T, SetRadius, (float), void), AS_CALL_THISCALL);
  16311. engine->RegisterObjectMethod(className, "void set_radius(float)", AS_METHODPR(T, SetRadius, (float), void), AS_CALL_THISCALL);
  16312. // void Light::SetRampTexture(Texture* texture)
  16313. engine->RegisterObjectMethod(className, "void SetRampTexture(Texture@+)", AS_METHODPR(T, SetRampTexture, (Texture*), void), AS_CALL_THISCALL);
  16314. engine->RegisterObjectMethod(className, "void set_rampTexture(Texture@+)", AS_METHODPR(T, SetRampTexture, (Texture*), void), AS_CALL_THISCALL);
  16315. // void Light::SetRampTextureAttr(const ResourceRef& value)
  16316. engine->RegisterObjectMethod(className, "void SetRampTextureAttr(const ResourceRef&in)", AS_METHODPR(T, SetRampTextureAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  16317. // void Light::SetRange(float range)
  16318. engine->RegisterObjectMethod(className, "void SetRange(float)", AS_METHODPR(T, SetRange, (float), void), AS_CALL_THISCALL);
  16319. engine->RegisterObjectMethod(className, "void set_range(float)", AS_METHODPR(T, SetRange, (float), void), AS_CALL_THISCALL);
  16320. // void Light::SetShadowBias(const BiasParameters& parameters)
  16321. engine->RegisterObjectMethod(className, "void SetShadowBias(const BiasParameters&in)", AS_METHODPR(T, SetShadowBias, (const BiasParameters&), void), AS_CALL_THISCALL);
  16322. engine->RegisterObjectMethod(className, "void set_shadowBias(const BiasParameters&in)", AS_METHODPR(T, SetShadowBias, (const BiasParameters&), void), AS_CALL_THISCALL);
  16323. // void Light::SetShadowCascade(const CascadeParameters& parameters)
  16324. engine->RegisterObjectMethod(className, "void SetShadowCascade(const CascadeParameters&in)", AS_METHODPR(T, SetShadowCascade, (const CascadeParameters&), void), AS_CALL_THISCALL);
  16325. engine->RegisterObjectMethod(className, "void set_shadowCascade(const CascadeParameters&in)", AS_METHODPR(T, SetShadowCascade, (const CascadeParameters&), void), AS_CALL_THISCALL);
  16326. // void Light::SetShadowFadeDistance(float distance)
  16327. engine->RegisterObjectMethod(className, "void SetShadowFadeDistance(float)", AS_METHODPR(T, SetShadowFadeDistance, (float), void), AS_CALL_THISCALL);
  16328. engine->RegisterObjectMethod(className, "void set_shadowFadeDistance(float)", AS_METHODPR(T, SetShadowFadeDistance, (float), void), AS_CALL_THISCALL);
  16329. // void Light::SetShadowFocus(const FocusParameters& parameters)
  16330. engine->RegisterObjectMethod(className, "void SetShadowFocus(const FocusParameters&in)", AS_METHODPR(T, SetShadowFocus, (const FocusParameters&), void), AS_CALL_THISCALL);
  16331. engine->RegisterObjectMethod(className, "void set_shadowFocus(const FocusParameters&in)", AS_METHODPR(T, SetShadowFocus, (const FocusParameters&), void), AS_CALL_THISCALL);
  16332. // void Light::SetShadowIntensity(float intensity)
  16333. engine->RegisterObjectMethod(className, "void SetShadowIntensity(float)", AS_METHODPR(T, SetShadowIntensity, (float), void), AS_CALL_THISCALL);
  16334. engine->RegisterObjectMethod(className, "void set_shadowIntensity(float)", AS_METHODPR(T, SetShadowIntensity, (float), void), AS_CALL_THISCALL);
  16335. // void Light::SetShadowMaxExtrusion(float extrusion)
  16336. engine->RegisterObjectMethod(className, "void SetShadowMaxExtrusion(float)", AS_METHODPR(T, SetShadowMaxExtrusion, (float), void), AS_CALL_THISCALL);
  16337. engine->RegisterObjectMethod(className, "void set_shadowMaxExtrusion(float)", AS_METHODPR(T, SetShadowMaxExtrusion, (float), void), AS_CALL_THISCALL);
  16338. // void Light::SetShadowNearFarRatio(float nearFarRatio)
  16339. engine->RegisterObjectMethod(className, "void SetShadowNearFarRatio(float)", AS_METHODPR(T, SetShadowNearFarRatio, (float), void), AS_CALL_THISCALL);
  16340. engine->RegisterObjectMethod(className, "void set_shadowNearFarRatio(float)", AS_METHODPR(T, SetShadowNearFarRatio, (float), void), AS_CALL_THISCALL);
  16341. // void Light::SetShadowResolution(float resolution)
  16342. engine->RegisterObjectMethod(className, "void SetShadowResolution(float)", AS_METHODPR(T, SetShadowResolution, (float), void), AS_CALL_THISCALL);
  16343. engine->RegisterObjectMethod(className, "void set_shadowResolution(float)", AS_METHODPR(T, SetShadowResolution, (float), void), AS_CALL_THISCALL);
  16344. // void Light::SetShapeTexture(Texture* texture)
  16345. engine->RegisterObjectMethod(className, "void SetShapeTexture(Texture@+)", AS_METHODPR(T, SetShapeTexture, (Texture*), void), AS_CALL_THISCALL);
  16346. engine->RegisterObjectMethod(className, "void set_shapeTexture(Texture@+)", AS_METHODPR(T, SetShapeTexture, (Texture*), void), AS_CALL_THISCALL);
  16347. // void Light::SetShapeTextureAttr(const ResourceRef& value)
  16348. engine->RegisterObjectMethod(className, "void SetShapeTextureAttr(const ResourceRef&in)", AS_METHODPR(T, SetShapeTextureAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  16349. // void Light::SetSpecularIntensity(float intensity)
  16350. engine->RegisterObjectMethod(className, "void SetSpecularIntensity(float)", AS_METHODPR(T, SetSpecularIntensity, (float), void), AS_CALL_THISCALL);
  16351. engine->RegisterObjectMethod(className, "void set_specularIntensity(float)", AS_METHODPR(T, SetSpecularIntensity, (float), void), AS_CALL_THISCALL);
  16352. // void Light::SetTemperature(float temperature)
  16353. engine->RegisterObjectMethod(className, "void SetTemperature(float)", AS_METHODPR(T, SetTemperature, (float), void), AS_CALL_THISCALL);
  16354. engine->RegisterObjectMethod(className, "void set_temperature(float)", AS_METHODPR(T, SetTemperature, (float), void), AS_CALL_THISCALL);
  16355. // void Light::SetUsePhysicalValues(bool enable)
  16356. engine->RegisterObjectMethod(className, "void SetUsePhysicalValues(bool)", AS_METHODPR(T, SetUsePhysicalValues, (bool), void), AS_CALL_THISCALL);
  16357. engine->RegisterObjectMethod(className, "void set_usePhysicalValues(bool)", AS_METHODPR(T, SetUsePhysicalValues, (bool), void), AS_CALL_THISCALL);
  16358. // virtual void Drawable::Update(const FrameInfo& frame)
  16359. engine->RegisterObjectMethod(className, "void Update(const FrameInfo&in)", AS_METHODPR(T, Update, (const FrameInfo&), void), AS_CALL_THISCALL);
  16360. // static Matrix3x4 Light::GetFullscreenQuadTransform(Camera* camera)
  16361. engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("Matrix3x4 GetFullscreenQuadTransform(Camera@+)", AS_FUNCTIONPR(T::GetFullscreenQuadTransform, (Camera*), Matrix3x4), AS_CALL_CDECL);engine->SetDefaultNamespace("");
  16362. #ifdef REGISTER_MEMBERS_MANUAL_PART_Light
  16363. REGISTER_MEMBERS_MANUAL_PART_Light();
  16364. #endif
  16365. }
  16366. // class LineEdit | File: ../UI/LineEdit.h
  16367. template <class T> void RegisterMembers_LineEdit(asIScriptEngine* engine, const char* className)
  16368. {
  16369. RegisterMembers_BorderImage<T>(engine, className);
  16370. // BorderImage* LineEdit::GetCursor() const
  16371. engine->RegisterObjectMethod(className, "BorderImage@+ GetCursor() const", AS_METHODPR(T, GetCursor, () const, BorderImage*), AS_CALL_THISCALL);
  16372. engine->RegisterObjectMethod(className, "BorderImage@+ get_cursor() const", AS_METHODPR(T, GetCursor, () const, BorderImage*), AS_CALL_THISCALL);
  16373. // float LineEdit::GetCursorBlinkRate() const
  16374. engine->RegisterObjectMethod(className, "float GetCursorBlinkRate() const", AS_METHODPR(T, GetCursorBlinkRate, () const, float), AS_CALL_THISCALL);
  16375. engine->RegisterObjectMethod(className, "float get_cursorBlinkRate() const", AS_METHODPR(T, GetCursorBlinkRate, () const, float), AS_CALL_THISCALL);
  16376. // unsigned LineEdit::GetCursorPosition() const
  16377. engine->RegisterObjectMethod(className, "uint GetCursorPosition() const", AS_METHODPR(T, GetCursorPosition, () const, unsigned), AS_CALL_THISCALL);
  16378. engine->RegisterObjectMethod(className, "uint get_cursorPosition() const", AS_METHODPR(T, GetCursorPosition, () const, unsigned), AS_CALL_THISCALL);
  16379. // unsigned LineEdit::GetEchoCharacter() const
  16380. engine->RegisterObjectMethod(className, "uint GetEchoCharacter() const", AS_METHODPR(T, GetEchoCharacter, () const, unsigned), AS_CALL_THISCALL);
  16381. engine->RegisterObjectMethod(className, "uint get_echoCharacter() const", AS_METHODPR(T, GetEchoCharacter, () const, unsigned), AS_CALL_THISCALL);
  16382. // unsigned LineEdit::GetMaxLength() const
  16383. engine->RegisterObjectMethod(className, "uint GetMaxLength() const", AS_METHODPR(T, GetMaxLength, () const, unsigned), AS_CALL_THISCALL);
  16384. engine->RegisterObjectMethod(className, "uint get_maxLength() const", AS_METHODPR(T, GetMaxLength, () const, unsigned), AS_CALL_THISCALL);
  16385. // const String& LineEdit::GetText() const
  16386. engine->RegisterObjectMethod(className, "const String& GetText() const", AS_METHODPR(T, GetText, () const, const String&), AS_CALL_THISCALL);
  16387. engine->RegisterObjectMethod(className, "const String& get_text() const", AS_METHODPR(T, GetText, () const, const String&), AS_CALL_THISCALL);
  16388. // Text* LineEdit::GetTextElement() const
  16389. engine->RegisterObjectMethod(className, "Text@+ GetTextElement() const", AS_METHODPR(T, GetTextElement, () const, Text*), AS_CALL_THISCALL);
  16390. engine->RegisterObjectMethod(className, "Text@+ get_textElement() const", AS_METHODPR(T, GetTextElement, () const, Text*), AS_CALL_THISCALL);
  16391. // bool LineEdit::IsCursorMovable() const
  16392. engine->RegisterObjectMethod(className, "bool IsCursorMovable() const", AS_METHODPR(T, IsCursorMovable, () const, bool), AS_CALL_THISCALL);
  16393. engine->RegisterObjectMethod(className, "bool get_cursorMovable() const", AS_METHODPR(T, IsCursorMovable, () const, bool), AS_CALL_THISCALL);
  16394. // bool LineEdit::IsTextCopyable() const
  16395. engine->RegisterObjectMethod(className, "bool IsTextCopyable() const", AS_METHODPR(T, IsTextCopyable, () const, bool), AS_CALL_THISCALL);
  16396. engine->RegisterObjectMethod(className, "bool get_textCopyable() const", AS_METHODPR(T, IsTextCopyable, () const, bool), AS_CALL_THISCALL);
  16397. // bool LineEdit::IsTextSelectable() const
  16398. engine->RegisterObjectMethod(className, "bool IsTextSelectable() const", AS_METHODPR(T, IsTextSelectable, () const, bool), AS_CALL_THISCALL);
  16399. engine->RegisterObjectMethod(className, "bool get_textSelectable() const", AS_METHODPR(T, IsTextSelectable, () const, bool), AS_CALL_THISCALL);
  16400. // void LineEdit::SetCursorBlinkRate(float rate)
  16401. engine->RegisterObjectMethod(className, "void SetCursorBlinkRate(float)", AS_METHODPR(T, SetCursorBlinkRate, (float), void), AS_CALL_THISCALL);
  16402. engine->RegisterObjectMethod(className, "void set_cursorBlinkRate(float)", AS_METHODPR(T, SetCursorBlinkRate, (float), void), AS_CALL_THISCALL);
  16403. // void LineEdit::SetCursorMovable(bool enable)
  16404. engine->RegisterObjectMethod(className, "void SetCursorMovable(bool)", AS_METHODPR(T, SetCursorMovable, (bool), void), AS_CALL_THISCALL);
  16405. engine->RegisterObjectMethod(className, "void set_cursorMovable(bool)", AS_METHODPR(T, SetCursorMovable, (bool), void), AS_CALL_THISCALL);
  16406. // void LineEdit::SetCursorPosition(unsigned position)
  16407. engine->RegisterObjectMethod(className, "void SetCursorPosition(uint)", AS_METHODPR(T, SetCursorPosition, (unsigned), void), AS_CALL_THISCALL);
  16408. engine->RegisterObjectMethod(className, "void set_cursorPosition(uint)", AS_METHODPR(T, SetCursorPosition, (unsigned), void), AS_CALL_THISCALL);
  16409. // void LineEdit::SetEchoCharacter(unsigned c)
  16410. engine->RegisterObjectMethod(className, "void SetEchoCharacter(uint)", AS_METHODPR(T, SetEchoCharacter, (unsigned), void), AS_CALL_THISCALL);
  16411. engine->RegisterObjectMethod(className, "void set_echoCharacter(uint)", AS_METHODPR(T, SetEchoCharacter, (unsigned), void), AS_CALL_THISCALL);
  16412. // void LineEdit::SetMaxLength(unsigned length)
  16413. engine->RegisterObjectMethod(className, "void SetMaxLength(uint)", AS_METHODPR(T, SetMaxLength, (unsigned), void), AS_CALL_THISCALL);
  16414. engine->RegisterObjectMethod(className, "void set_maxLength(uint)", AS_METHODPR(T, SetMaxLength, (unsigned), void), AS_CALL_THISCALL);
  16415. // void LineEdit::SetText(const String& text)
  16416. engine->RegisterObjectMethod(className, "void SetText(const String&in)", AS_METHODPR(T, SetText, (const String&), void), AS_CALL_THISCALL);
  16417. engine->RegisterObjectMethod(className, "void set_text(const String&in)", AS_METHODPR(T, SetText, (const String&), void), AS_CALL_THISCALL);
  16418. // void LineEdit::SetTextCopyable(bool enable)
  16419. engine->RegisterObjectMethod(className, "void SetTextCopyable(bool)", AS_METHODPR(T, SetTextCopyable, (bool), void), AS_CALL_THISCALL);
  16420. engine->RegisterObjectMethod(className, "void set_textCopyable(bool)", AS_METHODPR(T, SetTextCopyable, (bool), void), AS_CALL_THISCALL);
  16421. // void LineEdit::SetTextSelectable(bool enable)
  16422. engine->RegisterObjectMethod(className, "void SetTextSelectable(bool)", AS_METHODPR(T, SetTextSelectable, (bool), void), AS_CALL_THISCALL);
  16423. engine->RegisterObjectMethod(className, "void set_textSelectable(bool)", AS_METHODPR(T, SetTextSelectable, (bool), void), AS_CALL_THISCALL);
  16424. #ifdef REGISTER_MEMBERS_MANUAL_PART_LineEdit
  16425. REGISTER_MEMBERS_MANUAL_PART_LineEdit();
  16426. #endif
  16427. }
  16428. // PODVector<UIElement*> ListView::GetItems() const
  16429. template <class T> CScriptArray* ListView_PODVectorlesUIElementstargre_GetItems_void_template(T* _ptr)
  16430. {
  16431. PODVector<UIElement*> result = _ptr->GetItems();
  16432. return VectorToHandleArray(result, "Array<UIElement@>");
  16433. }
  16434. // PODVector<UIElement*> ListView::GetSelectedItems() const
  16435. template <class T> CScriptArray* ListView_PODVectorlesUIElementstargre_GetSelectedItems_void_template(T* _ptr)
  16436. {
  16437. PODVector<UIElement*> result = _ptr->GetSelectedItems();
  16438. return VectorToHandleArray(result, "Array<UIElement@>");
  16439. }
  16440. // const PODVector<unsigned>& ListView::GetSelections() const
  16441. template <class T> CScriptArray* ListView_constspPODVectorlesunsignedgreamp_GetSelections_void_template(T* _ptr)
  16442. {
  16443. const PODVector<unsigned>& result = _ptr->GetSelections();
  16444. return VectorToArray(result, "Array<uint>");
  16445. }
  16446. // void ListView::SetSelections(const PODVector<unsigned>& indices)
  16447. template <class T> void ListView_void_SetSelections_constspPODVectorlesunsignedgreamp_template(T* _ptr, CScriptArray* indices_conv)
  16448. {
  16449. PODVector<unsigned> indices = ArrayToPODVector<unsigned>(indices_conv);
  16450. _ptr->SetSelections(indices);
  16451. }
  16452. // class ListView | File: ../UI/ListView.h
  16453. template <class T> void RegisterMembers_ListView(asIScriptEngine* engine, const char* className)
  16454. {
  16455. RegisterMembers_ScrollView<T>(engine, className);
  16456. // void ListView::AddItem(UIElement* item)
  16457. engine->RegisterObjectMethod(className, "void AddItem(UIElement@+)", AS_METHODPR(T, AddItem, (UIElement*), void), AS_CALL_THISCALL);
  16458. // void ListView::AddSelection(unsigned index)
  16459. engine->RegisterObjectMethod(className, "void AddSelection(uint)", AS_METHODPR(T, AddSelection, (unsigned), void), AS_CALL_THISCALL);
  16460. // void ListView::ChangeSelection(int delta, bool additive = false)
  16461. engine->RegisterObjectMethod(className, "void ChangeSelection(int, bool = false)", AS_METHODPR(T, ChangeSelection, (int, bool), void), AS_CALL_THISCALL);
  16462. // void ListView::ClearSelection()
  16463. engine->RegisterObjectMethod(className, "void ClearSelection()", AS_METHODPR(T, ClearSelection, (), void), AS_CALL_THISCALL);
  16464. // void ListView::CopySelectedItemsToClipboard() const
  16465. engine->RegisterObjectMethod(className, "void CopySelectedItemsToClipboard() const", AS_METHODPR(T, CopySelectedItemsToClipboard, () const, void), AS_CALL_THISCALL);
  16466. // void ListView::DisableInternalLayoutUpdate()
  16467. engine->RegisterObjectMethod(className, "void DisableInternalLayoutUpdate()", AS_METHODPR(T, DisableInternalLayoutUpdate, (), void), AS_CALL_THISCALL);
  16468. // void ListView::EnableInternalLayoutUpdate()
  16469. engine->RegisterObjectMethod(className, "void EnableInternalLayoutUpdate()", AS_METHODPR(T, EnableInternalLayoutUpdate, (), void), AS_CALL_THISCALL);
  16470. // void ListView::EnsureItemVisibility(unsigned index)
  16471. engine->RegisterObjectMethod(className, "void EnsureItemVisibility(uint)", AS_METHODPR(T, EnsureItemVisibility, (unsigned), void), AS_CALL_THISCALL);
  16472. // void ListView::EnsureItemVisibility(UIElement* item)
  16473. engine->RegisterObjectMethod(className, "void EnsureItemVisibility(UIElement@+)", AS_METHODPR(T, EnsureItemVisibility, (UIElement*), void), AS_CALL_THISCALL);
  16474. // void ListView::Expand(unsigned index, bool enable, bool recursive = false)
  16475. engine->RegisterObjectMethod(className, "void Expand(uint, bool, bool = false)", AS_METHODPR(T, Expand, (unsigned, bool, bool), void), AS_CALL_THISCALL);
  16476. // unsigned ListView::FindItem(UIElement* item) const
  16477. engine->RegisterObjectMethod(className, "uint FindItem(UIElement@+) const", AS_METHODPR(T, FindItem, (UIElement*) const, unsigned), AS_CALL_THISCALL);
  16478. // int ListView::GetBaseIndent() const
  16479. engine->RegisterObjectMethod(className, "int GetBaseIndent() const", AS_METHODPR(T, GetBaseIndent, () const, int), AS_CALL_THISCALL);
  16480. engine->RegisterObjectMethod(className, "int get_baseIndent() const", AS_METHODPR(T, GetBaseIndent, () const, int), AS_CALL_THISCALL);
  16481. // bool ListView::GetClearSelectionOnDefocus() const
  16482. engine->RegisterObjectMethod(className, "bool GetClearSelectionOnDefocus() const", AS_METHODPR(T, GetClearSelectionOnDefocus, () const, bool), AS_CALL_THISCALL);
  16483. engine->RegisterObjectMethod(className, "bool get_clearSelectionOnDefocus() const", AS_METHODPR(T, GetClearSelectionOnDefocus, () const, bool), AS_CALL_THISCALL);
  16484. // bool ListView::GetHierarchyMode() const
  16485. engine->RegisterObjectMethod(className, "bool GetHierarchyMode() const", AS_METHODPR(T, GetHierarchyMode, () const, bool), AS_CALL_THISCALL);
  16486. engine->RegisterObjectMethod(className, "bool get_hierarchyMode() const", AS_METHODPR(T, GetHierarchyMode, () const, bool), AS_CALL_THISCALL);
  16487. // HighlightMode ListView::GetHighlightMode() const
  16488. engine->RegisterObjectMethod(className, "HighlightMode GetHighlightMode() const", AS_METHODPR(T, GetHighlightMode, () const, HighlightMode), AS_CALL_THISCALL);
  16489. engine->RegisterObjectMethod(className, "HighlightMode get_highlightMode() const", AS_METHODPR(T, GetHighlightMode, () const, HighlightMode), AS_CALL_THISCALL);
  16490. // UIElement* ListView::GetItem(unsigned index) const
  16491. engine->RegisterObjectMethod(className, "UIElement@+ GetItem(uint) const", AS_METHODPR(T, GetItem, (unsigned) const, UIElement*), AS_CALL_THISCALL);
  16492. engine->RegisterObjectMethod(className, "UIElement@+ get_items(uint) const", AS_METHODPR(T, GetItem, (unsigned) const, UIElement*), AS_CALL_THISCALL);
  16493. // PODVector<UIElement*> ListView::GetItems() const
  16494. engine->RegisterObjectMethod(className, "Array<UIElement@>@ GetItems() const", AS_FUNCTION_OBJFIRST(ListView_PODVectorlesUIElementstargre_GetItems_void_template<ListView>), AS_CALL_CDECL_OBJFIRST);
  16495. // bool ListView::GetMultiselect() const
  16496. engine->RegisterObjectMethod(className, "bool GetMultiselect() const", AS_METHODPR(T, GetMultiselect, () const, bool), AS_CALL_THISCALL);
  16497. engine->RegisterObjectMethod(className, "bool get_multiselect() const", AS_METHODPR(T, GetMultiselect, () const, bool), AS_CALL_THISCALL);
  16498. // unsigned ListView::GetNumItems() const
  16499. engine->RegisterObjectMethod(className, "uint GetNumItems() const", AS_METHODPR(T, GetNumItems, () const, unsigned), AS_CALL_THISCALL);
  16500. engine->RegisterObjectMethod(className, "uint get_numItems() const", AS_METHODPR(T, GetNumItems, () const, unsigned), AS_CALL_THISCALL);
  16501. // UIElement* ListView::GetSelectedItem() const
  16502. engine->RegisterObjectMethod(className, "UIElement@+ GetSelectedItem() const", AS_METHODPR(T, GetSelectedItem, () const, UIElement*), AS_CALL_THISCALL);
  16503. engine->RegisterObjectMethod(className, "UIElement@+ get_selectedItem() const", AS_METHODPR(T, GetSelectedItem, () const, UIElement*), AS_CALL_THISCALL);
  16504. // PODVector<UIElement*> ListView::GetSelectedItems() const
  16505. engine->RegisterObjectMethod(className, "Array<UIElement@>@ GetSelectedItems() const", AS_FUNCTION_OBJFIRST(ListView_PODVectorlesUIElementstargre_GetSelectedItems_void_template<ListView>), AS_CALL_CDECL_OBJFIRST);
  16506. engine->RegisterObjectMethod(className, "Array<UIElement@>@ get_selectedItems() const", AS_FUNCTION_OBJFIRST(ListView_PODVectorlesUIElementstargre_GetSelectedItems_void_template<ListView>), AS_CALL_CDECL_OBJFIRST);
  16507. // unsigned ListView::GetSelection() const
  16508. engine->RegisterObjectMethod(className, "uint GetSelection() const", AS_METHODPR(T, GetSelection, () const, unsigned), AS_CALL_THISCALL);
  16509. engine->RegisterObjectMethod(className, "uint get_selection() const", AS_METHODPR(T, GetSelection, () const, unsigned), AS_CALL_THISCALL);
  16510. // const PODVector<unsigned>& ListView::GetSelections() const
  16511. engine->RegisterObjectMethod(className, "Array<uint>@ GetSelections() const", AS_FUNCTION_OBJFIRST(ListView_constspPODVectorlesunsignedgreamp_GetSelections_void_template<ListView>), AS_CALL_CDECL_OBJFIRST);
  16512. engine->RegisterObjectMethod(className, "Array<uint>@ get_selections() const", AS_FUNCTION_OBJFIRST(ListView_constspPODVectorlesunsignedgreamp_GetSelections_void_template<ListView>), AS_CALL_CDECL_OBJFIRST);
  16513. // bool ListView::GetSelectOnClickEnd() const
  16514. engine->RegisterObjectMethod(className, "bool GetSelectOnClickEnd() const", AS_METHODPR(T, GetSelectOnClickEnd, () const, bool), AS_CALL_THISCALL);
  16515. engine->RegisterObjectMethod(className, "bool get_selectOnClickEnd() const", AS_METHODPR(T, GetSelectOnClickEnd, () const, bool), AS_CALL_THISCALL);
  16516. // void ListView::InsertItem(unsigned index, UIElement* item, UIElement* parentItem = nullptr)
  16517. engine->RegisterObjectMethod(className, "void InsertItem(uint, UIElement@+, UIElement@+ = null)", AS_METHODPR(T, InsertItem, (unsigned, UIElement*, UIElement*), void), AS_CALL_THISCALL);
  16518. // bool ListView::IsExpanded(unsigned index) const
  16519. engine->RegisterObjectMethod(className, "bool IsExpanded(uint) const", AS_METHODPR(T, IsExpanded, (unsigned) const, bool), AS_CALL_THISCALL);
  16520. // bool ListView::IsSelected(unsigned index) const
  16521. engine->RegisterObjectMethod(className, "bool IsSelected(uint) const", AS_METHODPR(T, IsSelected, (unsigned) const, bool), AS_CALL_THISCALL);
  16522. // void ListView::RemoveAllItems()
  16523. engine->RegisterObjectMethod(className, "void RemoveAllItems()", AS_METHODPR(T, RemoveAllItems, (), void), AS_CALL_THISCALL);
  16524. // void ListView::RemoveItem(UIElement* item, unsigned index = 0)
  16525. engine->RegisterObjectMethod(className, "void RemoveItem(UIElement@+, uint = 0)", AS_METHODPR(T, RemoveItem, (UIElement*, unsigned), void), AS_CALL_THISCALL);
  16526. // void ListView::RemoveItem(unsigned index)
  16527. engine->RegisterObjectMethod(className, "void RemoveItem(uint)", AS_METHODPR(T, RemoveItem, (unsigned), void), AS_CALL_THISCALL);
  16528. // void ListView::RemoveSelection(unsigned index)
  16529. engine->RegisterObjectMethod(className, "void RemoveSelection(uint)", AS_METHODPR(T, RemoveSelection, (unsigned), void), AS_CALL_THISCALL);
  16530. // void ListView::SetBaseIndent(int baseIndent)
  16531. engine->RegisterObjectMethod(className, "void SetBaseIndent(int)", AS_METHODPR(T, SetBaseIndent, (int), void), AS_CALL_THISCALL);
  16532. engine->RegisterObjectMethod(className, "void set_baseIndent(int)", AS_METHODPR(T, SetBaseIndent, (int), void), AS_CALL_THISCALL);
  16533. // void ListView::SetClearSelectionOnDefocus(bool enable)
  16534. engine->RegisterObjectMethod(className, "void SetClearSelectionOnDefocus(bool)", AS_METHODPR(T, SetClearSelectionOnDefocus, (bool), void), AS_CALL_THISCALL);
  16535. engine->RegisterObjectMethod(className, "void set_clearSelectionOnDefocus(bool)", AS_METHODPR(T, SetClearSelectionOnDefocus, (bool), void), AS_CALL_THISCALL);
  16536. // void ListView::SetHierarchyMode(bool enable)
  16537. engine->RegisterObjectMethod(className, "void SetHierarchyMode(bool)", AS_METHODPR(T, SetHierarchyMode, (bool), void), AS_CALL_THISCALL);
  16538. engine->RegisterObjectMethod(className, "void set_hierarchyMode(bool)", AS_METHODPR(T, SetHierarchyMode, (bool), void), AS_CALL_THISCALL);
  16539. // void ListView::SetHighlightMode(HighlightMode mode)
  16540. engine->RegisterObjectMethod(className, "void SetHighlightMode(HighlightMode)", AS_METHODPR(T, SetHighlightMode, (HighlightMode), void), AS_CALL_THISCALL);
  16541. engine->RegisterObjectMethod(className, "void set_highlightMode(HighlightMode)", AS_METHODPR(T, SetHighlightMode, (HighlightMode), void), AS_CALL_THISCALL);
  16542. // void ListView::SetMultiselect(bool enable)
  16543. engine->RegisterObjectMethod(className, "void SetMultiselect(bool)", AS_METHODPR(T, SetMultiselect, (bool), void), AS_CALL_THISCALL);
  16544. engine->RegisterObjectMethod(className, "void set_multiselect(bool)", AS_METHODPR(T, SetMultiselect, (bool), void), AS_CALL_THISCALL);
  16545. // void ListView::SetSelection(unsigned index)
  16546. engine->RegisterObjectMethod(className, "void SetSelection(uint)", AS_METHODPR(T, SetSelection, (unsigned), void), AS_CALL_THISCALL);
  16547. engine->RegisterObjectMethod(className, "void set_selection(uint)", AS_METHODPR(T, SetSelection, (unsigned), void), AS_CALL_THISCALL);
  16548. // void ListView::SetSelections(const PODVector<unsigned>& indices)
  16549. engine->RegisterObjectMethod(className, "void SetSelections(Array<uint>@+)", AS_FUNCTION_OBJFIRST(ListView_void_SetSelections_constspPODVectorlesunsignedgreamp_template<ListView>), AS_CALL_CDECL_OBJFIRST);
  16550. // void ListView::SetSelectOnClickEnd(bool enable)
  16551. engine->RegisterObjectMethod(className, "void SetSelectOnClickEnd(bool)", AS_METHODPR(T, SetSelectOnClickEnd, (bool), void), AS_CALL_THISCALL);
  16552. engine->RegisterObjectMethod(className, "void set_selectOnClickEnd(bool)", AS_METHODPR(T, SetSelectOnClickEnd, (bool), void), AS_CALL_THISCALL);
  16553. // void ListView::ToggleExpand(unsigned index, bool recursive = false)
  16554. engine->RegisterObjectMethod(className, "void ToggleExpand(uint, bool = false)", AS_METHODPR(T, ToggleExpand, (unsigned, bool), void), AS_CALL_THISCALL);
  16555. // void ListView::ToggleSelection(unsigned index)
  16556. engine->RegisterObjectMethod(className, "void ToggleSelection(uint)", AS_METHODPR(T, ToggleSelection, (unsigned), void), AS_CALL_THISCALL);
  16557. // void ListView::UpdateInternalLayout()
  16558. engine->RegisterObjectMethod(className, "void UpdateInternalLayout()", AS_METHODPR(T, UpdateInternalLayout, (), void), AS_CALL_THISCALL);
  16559. #ifdef REGISTER_MEMBERS_MANUAL_PART_ListView
  16560. REGISTER_MEMBERS_MANUAL_PART_ListView();
  16561. #endif
  16562. }
  16563. // class ProgressBar | File: ../UI/ProgressBar.h
  16564. template <class T> void RegisterMembers_ProgressBar(asIScriptEngine* engine, const char* className)
  16565. {
  16566. RegisterMembers_BorderImage<T>(engine, className);
  16567. // void ProgressBar::ChangeValue(float delta)
  16568. engine->RegisterObjectMethod(className, "void ChangeValue(float)", AS_METHODPR(T, ChangeValue, (float), void), AS_CALL_THISCALL);
  16569. // BorderImage* ProgressBar::GetKnob() const
  16570. engine->RegisterObjectMethod(className, "BorderImage@+ GetKnob() const", AS_METHODPR(T, GetKnob, () const, BorderImage*), AS_CALL_THISCALL);
  16571. engine->RegisterObjectMethod(className, "BorderImage@+ get_knob() const", AS_METHODPR(T, GetKnob, () const, BorderImage*), AS_CALL_THISCALL);
  16572. // const String& ProgressBar::GetLoadingPercentStyle() const
  16573. engine->RegisterObjectMethod(className, "const String& GetLoadingPercentStyle() const", AS_METHODPR(T, GetLoadingPercentStyle, () const, const String&), AS_CALL_THISCALL);
  16574. // Orientation ProgressBar::GetOrientation() const
  16575. engine->RegisterObjectMethod(className, "Orientation GetOrientation() const", AS_METHODPR(T, GetOrientation, () const, Orientation), AS_CALL_THISCALL);
  16576. engine->RegisterObjectMethod(className, "Orientation get_orientation() const", AS_METHODPR(T, GetOrientation, () const, Orientation), AS_CALL_THISCALL);
  16577. // float ProgressBar::GetRange() const
  16578. engine->RegisterObjectMethod(className, "float GetRange() const", AS_METHODPR(T, GetRange, () const, float), AS_CALL_THISCALL);
  16579. engine->RegisterObjectMethod(className, "float get_range() const", AS_METHODPR(T, GetRange, () const, float), AS_CALL_THISCALL);
  16580. // bool ProgressBar::GetShowPercentText() const
  16581. engine->RegisterObjectMethod(className, "bool GetShowPercentText() const", AS_METHODPR(T, GetShowPercentText, () const, bool), AS_CALL_THISCALL);
  16582. engine->RegisterObjectMethod(className, "bool get_showPercentText() const", AS_METHODPR(T, GetShowPercentText, () const, bool), AS_CALL_THISCALL);
  16583. // float ProgressBar::GetValue() const
  16584. engine->RegisterObjectMethod(className, "float GetValue() const", AS_METHODPR(T, GetValue, () const, float), AS_CALL_THISCALL);
  16585. engine->RegisterObjectMethod(className, "float get_value() const", AS_METHODPR(T, GetValue, () const, float), AS_CALL_THISCALL);
  16586. // void ProgressBar::SetLoadingPercentStyle(const String& style)
  16587. engine->RegisterObjectMethod(className, "void SetLoadingPercentStyle(const String&in)", AS_METHODPR(T, SetLoadingPercentStyle, (const String&), void), AS_CALL_THISCALL);
  16588. // void ProgressBar::SetOrientation(Orientation orientation)
  16589. engine->RegisterObjectMethod(className, "void SetOrientation(Orientation)", AS_METHODPR(T, SetOrientation, (Orientation), void), AS_CALL_THISCALL);
  16590. engine->RegisterObjectMethod(className, "void set_orientation(Orientation)", AS_METHODPR(T, SetOrientation, (Orientation), void), AS_CALL_THISCALL);
  16591. // void ProgressBar::SetRange(float range)
  16592. engine->RegisterObjectMethod(className, "void SetRange(float)", AS_METHODPR(T, SetRange, (float), void), AS_CALL_THISCALL);
  16593. engine->RegisterObjectMethod(className, "void set_range(float)", AS_METHODPR(T, SetRange, (float), void), AS_CALL_THISCALL);
  16594. // void ProgressBar::SetShowPercentText(bool enable)
  16595. engine->RegisterObjectMethod(className, "void SetShowPercentText(bool)", AS_METHODPR(T, SetShowPercentText, (bool), void), AS_CALL_THISCALL);
  16596. engine->RegisterObjectMethod(className, "void set_showPercentText(bool)", AS_METHODPR(T, SetShowPercentText, (bool), void), AS_CALL_THISCALL);
  16597. // void ProgressBar::SetValue(float value)
  16598. engine->RegisterObjectMethod(className, "void SetValue(float)", AS_METHODPR(T, SetValue, (float), void), AS_CALL_THISCALL);
  16599. engine->RegisterObjectMethod(className, "void set_value(float)", AS_METHODPR(T, SetValue, (float), void), AS_CALL_THISCALL);
  16600. #ifdef REGISTER_MEMBERS_MANUAL_PART_ProgressBar
  16601. REGISTER_MEMBERS_MANUAL_PART_ProgressBar();
  16602. #endif
  16603. }
  16604. // class RibbonTrail | File: ../Graphics/RibbonTrail.h
  16605. template <class T> void RegisterMembers_RibbonTrail(asIScriptEngine* engine, const char* className)
  16606. {
  16607. RegisterMembers_Drawable<T>(engine, className);
  16608. // void RibbonTrail::Commit()
  16609. engine->RegisterObjectMethod(className, "void Commit()", AS_METHODPR(T, Commit, (), void), AS_CALL_THISCALL);
  16610. // float RibbonTrail::GetAnimationLodBias() const
  16611. engine->RegisterObjectMethod(className, "float GetAnimationLodBias() const", AS_METHODPR(T, GetAnimationLodBias, () const, float), AS_CALL_THISCALL);
  16612. engine->RegisterObjectMethod(className, "float get_animationLodBias() const", AS_METHODPR(T, GetAnimationLodBias, () const, float), AS_CALL_THISCALL);
  16613. // const Vector3& RibbonTrail::GetBaseVelocity() const
  16614. engine->RegisterObjectMethod(className, "const Vector3& GetBaseVelocity() const", AS_METHODPR(T, GetBaseVelocity, () const, const Vector3&), AS_CALL_THISCALL);
  16615. engine->RegisterObjectMethod(className, "const Vector3& get_baseVelocity() const", AS_METHODPR(T, GetBaseVelocity, () const, const Vector3&), AS_CALL_THISCALL);
  16616. // const Color& RibbonTrail::GetEndColor() const
  16617. engine->RegisterObjectMethod(className, "const Color& GetEndColor() const", AS_METHODPR(T, GetEndColor, () const, const Color&), AS_CALL_THISCALL);
  16618. engine->RegisterObjectMethod(className, "const Color& get_endColor() const", AS_METHODPR(T, GetEndColor, () const, const Color&), AS_CALL_THISCALL);
  16619. // float RibbonTrail::GetEndScale() const
  16620. engine->RegisterObjectMethod(className, "float GetEndScale() const", AS_METHODPR(T, GetEndScale, () const, float), AS_CALL_THISCALL);
  16621. engine->RegisterObjectMethod(className, "float get_endScale() const", AS_METHODPR(T, GetEndScale, () const, float), AS_CALL_THISCALL);
  16622. // float RibbonTrail::GetLifetime() const
  16623. engine->RegisterObjectMethod(className, "float GetLifetime() const", AS_METHODPR(T, GetLifetime, () const, float), AS_CALL_THISCALL);
  16624. engine->RegisterObjectMethod(className, "float get_lifetime() const", AS_METHODPR(T, GetLifetime, () const, float), AS_CALL_THISCALL);
  16625. // Material* RibbonTrail::GetMaterial() const
  16626. engine->RegisterObjectMethod(className, "Material@+ GetMaterial() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  16627. engine->RegisterObjectMethod(className, "Material@+ get_material() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  16628. // ResourceRef RibbonTrail::GetMaterialAttr() const
  16629. engine->RegisterObjectMethod(className, "ResourceRef GetMaterialAttr() const", AS_METHODPR(T, GetMaterialAttr, () const, ResourceRef), AS_CALL_THISCALL);
  16630. // const Color& RibbonTrail::GetStartColor() const
  16631. engine->RegisterObjectMethod(className, "const Color& GetStartColor() const", AS_METHODPR(T, GetStartColor, () const, const Color&), AS_CALL_THISCALL);
  16632. engine->RegisterObjectMethod(className, "const Color& get_startColor() const", AS_METHODPR(T, GetStartColor, () const, const Color&), AS_CALL_THISCALL);
  16633. // float RibbonTrail::GetStartScale() const
  16634. engine->RegisterObjectMethod(className, "float GetStartScale() const", AS_METHODPR(T, GetStartScale, () const, float), AS_CALL_THISCALL);
  16635. engine->RegisterObjectMethod(className, "float get_startScale() const", AS_METHODPR(T, GetStartScale, () const, float), AS_CALL_THISCALL);
  16636. // unsigned RibbonTrail::GetTailColumn() const
  16637. engine->RegisterObjectMethod(className, "uint GetTailColumn() const", AS_METHODPR(T, GetTailColumn, () const, unsigned), AS_CALL_THISCALL);
  16638. engine->RegisterObjectMethod(className, "uint get_tailColumn() const", AS_METHODPR(T, GetTailColumn, () const, unsigned), AS_CALL_THISCALL);
  16639. // TrailType RibbonTrail::GetTrailType() const
  16640. engine->RegisterObjectMethod(className, "TrailType GetTrailType() const", AS_METHODPR(T, GetTrailType, () const, TrailType), AS_CALL_THISCALL);
  16641. engine->RegisterObjectMethod(className, "TrailType get_trailType() const", AS_METHODPR(T, GetTrailType, () const, TrailType), AS_CALL_THISCALL);
  16642. // bool RibbonTrail::GetUpdateInvisible() const
  16643. engine->RegisterObjectMethod(className, "bool GetUpdateInvisible() const", AS_METHODPR(T, GetUpdateInvisible, () const, bool), AS_CALL_THISCALL);
  16644. engine->RegisterObjectMethod(className, "bool get_updateInvisible() const", AS_METHODPR(T, GetUpdateInvisible, () const, bool), AS_CALL_THISCALL);
  16645. // float RibbonTrail::GetVertexDistance() const
  16646. engine->RegisterObjectMethod(className, "float GetVertexDistance() const", AS_METHODPR(T, GetVertexDistance, () const, float), AS_CALL_THISCALL);
  16647. engine->RegisterObjectMethod(className, "float get_vertexDistance() const", AS_METHODPR(T, GetVertexDistance, () const, float), AS_CALL_THISCALL);
  16648. // float RibbonTrail::GetWidth() const
  16649. engine->RegisterObjectMethod(className, "float GetWidth() const", AS_METHODPR(T, GetWidth, () const, float), AS_CALL_THISCALL);
  16650. engine->RegisterObjectMethod(className, "float get_width() const", AS_METHODPR(T, GetWidth, () const, float), AS_CALL_THISCALL);
  16651. // bool RibbonTrail::IsEmitting() const
  16652. engine->RegisterObjectMethod(className, "bool IsEmitting() const", AS_METHODPR(T, IsEmitting, () const, bool), AS_CALL_THISCALL);
  16653. engine->RegisterObjectMethod(className, "bool get_emitting() const", AS_METHODPR(T, IsEmitting, () const, bool), AS_CALL_THISCALL);
  16654. // bool RibbonTrail::IsSorted() const
  16655. engine->RegisterObjectMethod(className, "bool IsSorted() const", AS_METHODPR(T, IsSorted, () const, bool), AS_CALL_THISCALL);
  16656. engine->RegisterObjectMethod(className, "bool get_sorted() const", AS_METHODPR(T, IsSorted, () const, bool), AS_CALL_THISCALL);
  16657. // void RibbonTrail::SetAnimationLodBias(float bias)
  16658. engine->RegisterObjectMethod(className, "void SetAnimationLodBias(float)", AS_METHODPR(T, SetAnimationLodBias, (float), void), AS_CALL_THISCALL);
  16659. engine->RegisterObjectMethod(className, "void set_animationLodBias(float)", AS_METHODPR(T, SetAnimationLodBias, (float), void), AS_CALL_THISCALL);
  16660. // void RibbonTrail::SetBaseVelocity(const Vector3& baseVelocity)
  16661. engine->RegisterObjectMethod(className, "void SetBaseVelocity(const Vector3&in)", AS_METHODPR(T, SetBaseVelocity, (const Vector3&), void), AS_CALL_THISCALL);
  16662. engine->RegisterObjectMethod(className, "void set_baseVelocity(const Vector3&in)", AS_METHODPR(T, SetBaseVelocity, (const Vector3&), void), AS_CALL_THISCALL);
  16663. // void RibbonTrail::SetEmitting(bool emitting)
  16664. engine->RegisterObjectMethod(className, "void SetEmitting(bool)", AS_METHODPR(T, SetEmitting, (bool), void), AS_CALL_THISCALL);
  16665. engine->RegisterObjectMethod(className, "void set_emitting(bool)", AS_METHODPR(T, SetEmitting, (bool), void), AS_CALL_THISCALL);
  16666. // void RibbonTrail::SetEndColor(const Color& color)
  16667. engine->RegisterObjectMethod(className, "void SetEndColor(const Color&in)", AS_METHODPR(T, SetEndColor, (const Color&), void), AS_CALL_THISCALL);
  16668. engine->RegisterObjectMethod(className, "void set_endColor(const Color&in)", AS_METHODPR(T, SetEndColor, (const Color&), void), AS_CALL_THISCALL);
  16669. // void RibbonTrail::SetEndScale(float endScale)
  16670. engine->RegisterObjectMethod(className, "void SetEndScale(float)", AS_METHODPR(T, SetEndScale, (float), void), AS_CALL_THISCALL);
  16671. engine->RegisterObjectMethod(className, "void set_endScale(float)", AS_METHODPR(T, SetEndScale, (float), void), AS_CALL_THISCALL);
  16672. // void RibbonTrail::SetLifetime(float time)
  16673. engine->RegisterObjectMethod(className, "void SetLifetime(float)", AS_METHODPR(T, SetLifetime, (float), void), AS_CALL_THISCALL);
  16674. engine->RegisterObjectMethod(className, "void set_lifetime(float)", AS_METHODPR(T, SetLifetime, (float), void), AS_CALL_THISCALL);
  16675. // void RibbonTrail::SetMaterial(Material* material)
  16676. engine->RegisterObjectMethod(className, "void SetMaterial(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  16677. engine->RegisterObjectMethod(className, "void set_material(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  16678. // void RibbonTrail::SetMaterialAttr(const ResourceRef& value)
  16679. engine->RegisterObjectMethod(className, "void SetMaterialAttr(const ResourceRef&in)", AS_METHODPR(T, SetMaterialAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  16680. // void RibbonTrail::SetSorted(bool enable)
  16681. engine->RegisterObjectMethod(className, "void SetSorted(bool)", AS_METHODPR(T, SetSorted, (bool), void), AS_CALL_THISCALL);
  16682. engine->RegisterObjectMethod(className, "void set_sorted(bool)", AS_METHODPR(T, SetSorted, (bool), void), AS_CALL_THISCALL);
  16683. // void RibbonTrail::SetStartColor(const Color& color)
  16684. engine->RegisterObjectMethod(className, "void SetStartColor(const Color&in)", AS_METHODPR(T, SetStartColor, (const Color&), void), AS_CALL_THISCALL);
  16685. engine->RegisterObjectMethod(className, "void set_startColor(const Color&in)", AS_METHODPR(T, SetStartColor, (const Color&), void), AS_CALL_THISCALL);
  16686. // void RibbonTrail::SetStartScale(float startScale)
  16687. engine->RegisterObjectMethod(className, "void SetStartScale(float)", AS_METHODPR(T, SetStartScale, (float), void), AS_CALL_THISCALL);
  16688. engine->RegisterObjectMethod(className, "void set_startScale(float)", AS_METHODPR(T, SetStartScale, (float), void), AS_CALL_THISCALL);
  16689. // void RibbonTrail::SetTailColumn(unsigned tailColumn)
  16690. engine->RegisterObjectMethod(className, "void SetTailColumn(uint)", AS_METHODPR(T, SetTailColumn, (unsigned), void), AS_CALL_THISCALL);
  16691. engine->RegisterObjectMethod(className, "void set_tailColumn(uint)", AS_METHODPR(T, SetTailColumn, (unsigned), void), AS_CALL_THISCALL);
  16692. // void RibbonTrail::SetTrailType(TrailType type)
  16693. engine->RegisterObjectMethod(className, "void SetTrailType(TrailType)", AS_METHODPR(T, SetTrailType, (TrailType), void), AS_CALL_THISCALL);
  16694. engine->RegisterObjectMethod(className, "void set_trailType(TrailType)", AS_METHODPR(T, SetTrailType, (TrailType), void), AS_CALL_THISCALL);
  16695. // void RibbonTrail::SetUpdateInvisible(bool enable)
  16696. engine->RegisterObjectMethod(className, "void SetUpdateInvisible(bool)", AS_METHODPR(T, SetUpdateInvisible, (bool), void), AS_CALL_THISCALL);
  16697. engine->RegisterObjectMethod(className, "void set_updateInvisible(bool)", AS_METHODPR(T, SetUpdateInvisible, (bool), void), AS_CALL_THISCALL);
  16698. // void RibbonTrail::SetVertexDistance(float length)
  16699. engine->RegisterObjectMethod(className, "void SetVertexDistance(float)", AS_METHODPR(T, SetVertexDistance, (float), void), AS_CALL_THISCALL);
  16700. engine->RegisterObjectMethod(className, "void set_vertexDistance(float)", AS_METHODPR(T, SetVertexDistance, (float), void), AS_CALL_THISCALL);
  16701. // void RibbonTrail::SetWidth(float width)
  16702. engine->RegisterObjectMethod(className, "void SetWidth(float)", AS_METHODPR(T, SetWidth, (float), void), AS_CALL_THISCALL);
  16703. engine->RegisterObjectMethod(className, "void set_width(float)", AS_METHODPR(T, SetWidth, (float), void), AS_CALL_THISCALL);
  16704. // void RibbonTrail::Update(const FrameInfo& frame) override
  16705. engine->RegisterObjectMethod(className, "void Update(const FrameInfo&in)", AS_METHODPR(T, Update, (const FrameInfo&), void), AS_CALL_THISCALL);
  16706. #ifdef REGISTER_MEMBERS_MANUAL_PART_RibbonTrail
  16707. REGISTER_MEMBERS_MANUAL_PART_RibbonTrail();
  16708. #endif
  16709. }
  16710. // class ScrollBar | File: ../UI/ScrollBar.h
  16711. template <class T> void RegisterMembers_ScrollBar(asIScriptEngine* engine, const char* className)
  16712. {
  16713. RegisterMembers_BorderImage<T>(engine, className);
  16714. // void ScrollBar::ChangeValue(float delta)
  16715. engine->RegisterObjectMethod(className, "void ChangeValue(float)", AS_METHODPR(T, ChangeValue, (float), void), AS_CALL_THISCALL);
  16716. // Button* ScrollBar::GetBackButton() const
  16717. engine->RegisterObjectMethod(className, "Button@+ GetBackButton() const", AS_METHODPR(T, GetBackButton, () const, Button*), AS_CALL_THISCALL);
  16718. engine->RegisterObjectMethod(className, "Button@+ get_backButton() const", AS_METHODPR(T, GetBackButton, () const, Button*), AS_CALL_THISCALL);
  16719. // float ScrollBar::GetEffectiveScrollStep() const
  16720. engine->RegisterObjectMethod(className, "float GetEffectiveScrollStep() const", AS_METHODPR(T, GetEffectiveScrollStep, () const, float), AS_CALL_THISCALL);
  16721. engine->RegisterObjectMethod(className, "float get_effectiveScrollStep() const", AS_METHODPR(T, GetEffectiveScrollStep, () const, float), AS_CALL_THISCALL);
  16722. // Button* ScrollBar::GetForwardButton() const
  16723. engine->RegisterObjectMethod(className, "Button@+ GetForwardButton() const", AS_METHODPR(T, GetForwardButton, () const, Button*), AS_CALL_THISCALL);
  16724. engine->RegisterObjectMethod(className, "Button@+ get_forwardButton() const", AS_METHODPR(T, GetForwardButton, () const, Button*), AS_CALL_THISCALL);
  16725. // Orientation ScrollBar::GetOrientation() const
  16726. engine->RegisterObjectMethod(className, "Orientation GetOrientation() const", AS_METHODPR(T, GetOrientation, () const, Orientation), AS_CALL_THISCALL);
  16727. engine->RegisterObjectMethod(className, "Orientation get_orientation() const", AS_METHODPR(T, GetOrientation, () const, Orientation), AS_CALL_THISCALL);
  16728. // float ScrollBar::GetRange() const
  16729. engine->RegisterObjectMethod(className, "float GetRange() const", AS_METHODPR(T, GetRange, () const, float), AS_CALL_THISCALL);
  16730. engine->RegisterObjectMethod(className, "float get_range() const", AS_METHODPR(T, GetRange, () const, float), AS_CALL_THISCALL);
  16731. // float ScrollBar::GetScrollStep() const
  16732. engine->RegisterObjectMethod(className, "float GetScrollStep() const", AS_METHODPR(T, GetScrollStep, () const, float), AS_CALL_THISCALL);
  16733. engine->RegisterObjectMethod(className, "float get_scrollStep() const", AS_METHODPR(T, GetScrollStep, () const, float), AS_CALL_THISCALL);
  16734. // Slider* ScrollBar::GetSlider() const
  16735. engine->RegisterObjectMethod(className, "Slider@+ GetSlider() const", AS_METHODPR(T, GetSlider, () const, Slider*), AS_CALL_THISCALL);
  16736. engine->RegisterObjectMethod(className, "Slider@+ get_slider() const", AS_METHODPR(T, GetSlider, () const, Slider*), AS_CALL_THISCALL);
  16737. // float ScrollBar::GetStepFactor() const
  16738. engine->RegisterObjectMethod(className, "float GetStepFactor() const", AS_METHODPR(T, GetStepFactor, () const, float), AS_CALL_THISCALL);
  16739. engine->RegisterObjectMethod(className, "float get_stepFactor() const", AS_METHODPR(T, GetStepFactor, () const, float), AS_CALL_THISCALL);
  16740. // float ScrollBar::GetValue() const
  16741. engine->RegisterObjectMethod(className, "float GetValue() const", AS_METHODPR(T, GetValue, () const, float), AS_CALL_THISCALL);
  16742. engine->RegisterObjectMethod(className, "float get_value() const", AS_METHODPR(T, GetValue, () const, float), AS_CALL_THISCALL);
  16743. // void ScrollBar::SetOrientation(Orientation orientation)
  16744. engine->RegisterObjectMethod(className, "void SetOrientation(Orientation)", AS_METHODPR(T, SetOrientation, (Orientation), void), AS_CALL_THISCALL);
  16745. engine->RegisterObjectMethod(className, "void set_orientation(Orientation)", AS_METHODPR(T, SetOrientation, (Orientation), void), AS_CALL_THISCALL);
  16746. // void ScrollBar::SetRange(float range)
  16747. engine->RegisterObjectMethod(className, "void SetRange(float)", AS_METHODPR(T, SetRange, (float), void), AS_CALL_THISCALL);
  16748. engine->RegisterObjectMethod(className, "void set_range(float)", AS_METHODPR(T, SetRange, (float), void), AS_CALL_THISCALL);
  16749. // void ScrollBar::SetScrollStep(float step)
  16750. engine->RegisterObjectMethod(className, "void SetScrollStep(float)", AS_METHODPR(T, SetScrollStep, (float), void), AS_CALL_THISCALL);
  16751. engine->RegisterObjectMethod(className, "void set_scrollStep(float)", AS_METHODPR(T, SetScrollStep, (float), void), AS_CALL_THISCALL);
  16752. // void ScrollBar::SetStepFactor(float factor)
  16753. engine->RegisterObjectMethod(className, "void SetStepFactor(float)", AS_METHODPR(T, SetStepFactor, (float), void), AS_CALL_THISCALL);
  16754. engine->RegisterObjectMethod(className, "void set_stepFactor(float)", AS_METHODPR(T, SetStepFactor, (float), void), AS_CALL_THISCALL);
  16755. // void ScrollBar::SetValue(float value)
  16756. engine->RegisterObjectMethod(className, "void SetValue(float)", AS_METHODPR(T, SetValue, (float), void), AS_CALL_THISCALL);
  16757. engine->RegisterObjectMethod(className, "void set_value(float)", AS_METHODPR(T, SetValue, (float), void), AS_CALL_THISCALL);
  16758. // void ScrollBar::StepBack()
  16759. engine->RegisterObjectMethod(className, "void StepBack()", AS_METHODPR(T, StepBack, (), void), AS_CALL_THISCALL);
  16760. // void ScrollBar::StepForward()
  16761. engine->RegisterObjectMethod(className, "void StepForward()", AS_METHODPR(T, StepForward, (), void), AS_CALL_THISCALL);
  16762. #ifdef REGISTER_MEMBERS_MANUAL_PART_ScrollBar
  16763. REGISTER_MEMBERS_MANUAL_PART_ScrollBar();
  16764. #endif
  16765. }
  16766. // class Slider | File: ../UI/Slider.h
  16767. template <class T> void RegisterMembers_Slider(asIScriptEngine* engine, const char* className)
  16768. {
  16769. RegisterMembers_BorderImage<T>(engine, className);
  16770. // void Slider::ChangeValue(float delta)
  16771. engine->RegisterObjectMethod(className, "void ChangeValue(float)", AS_METHODPR(T, ChangeValue, (float), void), AS_CALL_THISCALL);
  16772. // BorderImage* Slider::GetKnob() const
  16773. engine->RegisterObjectMethod(className, "BorderImage@+ GetKnob() const", AS_METHODPR(T, GetKnob, () const, BorderImage*), AS_CALL_THISCALL);
  16774. engine->RegisterObjectMethod(className, "BorderImage@+ get_knob() const", AS_METHODPR(T, GetKnob, () const, BorderImage*), AS_CALL_THISCALL);
  16775. // Orientation Slider::GetOrientation() const
  16776. engine->RegisterObjectMethod(className, "Orientation GetOrientation() const", AS_METHODPR(T, GetOrientation, () const, Orientation), AS_CALL_THISCALL);
  16777. engine->RegisterObjectMethod(className, "Orientation get_orientation() const", AS_METHODPR(T, GetOrientation, () const, Orientation), AS_CALL_THISCALL);
  16778. // float Slider::GetRange() const
  16779. engine->RegisterObjectMethod(className, "float GetRange() const", AS_METHODPR(T, GetRange, () const, float), AS_CALL_THISCALL);
  16780. engine->RegisterObjectMethod(className, "float get_range() const", AS_METHODPR(T, GetRange, () const, float), AS_CALL_THISCALL);
  16781. // float Slider::GetRepeatRate() const
  16782. engine->RegisterObjectMethod(className, "float GetRepeatRate() const", AS_METHODPR(T, GetRepeatRate, () const, float), AS_CALL_THISCALL);
  16783. engine->RegisterObjectMethod(className, "float get_repeatRate() const", AS_METHODPR(T, GetRepeatRate, () const, float), AS_CALL_THISCALL);
  16784. // float Slider::GetValue() const
  16785. engine->RegisterObjectMethod(className, "float GetValue() const", AS_METHODPR(T, GetValue, () const, float), AS_CALL_THISCALL);
  16786. engine->RegisterObjectMethod(className, "float get_value() const", AS_METHODPR(T, GetValue, () const, float), AS_CALL_THISCALL);
  16787. // void Slider::SetOrientation(Orientation orientation)
  16788. engine->RegisterObjectMethod(className, "void SetOrientation(Orientation)", AS_METHODPR(T, SetOrientation, (Orientation), void), AS_CALL_THISCALL);
  16789. engine->RegisterObjectMethod(className, "void set_orientation(Orientation)", AS_METHODPR(T, SetOrientation, (Orientation), void), AS_CALL_THISCALL);
  16790. // void Slider::SetRange(float range)
  16791. engine->RegisterObjectMethod(className, "void SetRange(float)", AS_METHODPR(T, SetRange, (float), void), AS_CALL_THISCALL);
  16792. engine->RegisterObjectMethod(className, "void set_range(float)", AS_METHODPR(T, SetRange, (float), void), AS_CALL_THISCALL);
  16793. // void Slider::SetRepeatRate(float rate)
  16794. engine->RegisterObjectMethod(className, "void SetRepeatRate(float)", AS_METHODPR(T, SetRepeatRate, (float), void), AS_CALL_THISCALL);
  16795. engine->RegisterObjectMethod(className, "void set_repeatRate(float)", AS_METHODPR(T, SetRepeatRate, (float), void), AS_CALL_THISCALL);
  16796. // void Slider::SetValue(float value)
  16797. engine->RegisterObjectMethod(className, "void SetValue(float)", AS_METHODPR(T, SetValue, (float), void), AS_CALL_THISCALL);
  16798. engine->RegisterObjectMethod(className, "void set_value(float)", AS_METHODPR(T, SetValue, (float), void), AS_CALL_THISCALL);
  16799. #ifdef REGISTER_MEMBERS_MANUAL_PART_Slider
  16800. REGISTER_MEMBERS_MANUAL_PART_Slider();
  16801. #endif
  16802. }
  16803. // class SoundSource3D | File: ../Audio/SoundSource3D.h
  16804. template <class T> void RegisterMembers_SoundSource3D(asIScriptEngine* engine, const char* className)
  16805. {
  16806. RegisterMembers_SoundSource<T>(engine, className);
  16807. // void SoundSource3D::CalculateAttenuation()
  16808. engine->RegisterObjectMethod(className, "void CalculateAttenuation()", AS_METHODPR(T, CalculateAttenuation, (), void), AS_CALL_THISCALL);
  16809. // float SoundSource3D::GetFarDistance() const
  16810. engine->RegisterObjectMethod(className, "float GetFarDistance() const", AS_METHODPR(T, GetFarDistance, () const, float), AS_CALL_THISCALL);
  16811. engine->RegisterObjectMethod(className, "float get_farDistance() const", AS_METHODPR(T, GetFarDistance, () const, float), AS_CALL_THISCALL);
  16812. // float SoundSource3D::GetInnerAngle() const
  16813. engine->RegisterObjectMethod(className, "float GetInnerAngle() const", AS_METHODPR(T, GetInnerAngle, () const, float), AS_CALL_THISCALL);
  16814. engine->RegisterObjectMethod(className, "float get_innerAngle() const", AS_METHODPR(T, GetInnerAngle, () const, float), AS_CALL_THISCALL);
  16815. // float SoundSource3D::GetNearDistance() const
  16816. engine->RegisterObjectMethod(className, "float GetNearDistance() const", AS_METHODPR(T, GetNearDistance, () const, float), AS_CALL_THISCALL);
  16817. engine->RegisterObjectMethod(className, "float get_nearDistance() const", AS_METHODPR(T, GetNearDistance, () const, float), AS_CALL_THISCALL);
  16818. // float SoundSource3D::GetOuterAngle() const
  16819. engine->RegisterObjectMethod(className, "float GetOuterAngle() const", AS_METHODPR(T, GetOuterAngle, () const, float), AS_CALL_THISCALL);
  16820. engine->RegisterObjectMethod(className, "float get_outerAngle() const", AS_METHODPR(T, GetOuterAngle, () const, float), AS_CALL_THISCALL);
  16821. // float SoundSource3D::RollAngleoffFactor() const
  16822. engine->RegisterObjectMethod(className, "float RollAngleoffFactor() const", AS_METHODPR(T, RollAngleoffFactor, () const, float), AS_CALL_THISCALL);
  16823. engine->RegisterObjectMethod(className, "float get_rolloffFactor() const", AS_METHODPR(T, RollAngleoffFactor, () const, float), AS_CALL_THISCALL);
  16824. // void SoundSource3D::SetAngleAttenuation(float innerAngle, float outerAngle)
  16825. engine->RegisterObjectMethod(className, "void SetAngleAttenuation(float, float)", AS_METHODPR(T, SetAngleAttenuation, (float, float), void), AS_CALL_THISCALL);
  16826. // void SoundSource3D::SetDistanceAttenuation(float nearDistance, float farDistance, float rolloffFactor)
  16827. engine->RegisterObjectMethod(className, "void SetDistanceAttenuation(float, float, float)", AS_METHODPR(T, SetDistanceAttenuation, (float, float, float), void), AS_CALL_THISCALL);
  16828. // void SoundSource3D::SetFarDistance(float distance)
  16829. engine->RegisterObjectMethod(className, "void SetFarDistance(float)", AS_METHODPR(T, SetFarDistance, (float), void), AS_CALL_THISCALL);
  16830. engine->RegisterObjectMethod(className, "void set_farDistance(float)", AS_METHODPR(T, SetFarDistance, (float), void), AS_CALL_THISCALL);
  16831. // void SoundSource3D::SetInnerAngle(float angle)
  16832. engine->RegisterObjectMethod(className, "void SetInnerAngle(float)", AS_METHODPR(T, SetInnerAngle, (float), void), AS_CALL_THISCALL);
  16833. engine->RegisterObjectMethod(className, "void set_innerAngle(float)", AS_METHODPR(T, SetInnerAngle, (float), void), AS_CALL_THISCALL);
  16834. // void SoundSource3D::SetNearDistance(float distance)
  16835. engine->RegisterObjectMethod(className, "void SetNearDistance(float)", AS_METHODPR(T, SetNearDistance, (float), void), AS_CALL_THISCALL);
  16836. engine->RegisterObjectMethod(className, "void set_nearDistance(float)", AS_METHODPR(T, SetNearDistance, (float), void), AS_CALL_THISCALL);
  16837. // void SoundSource3D::SetOuterAngle(float angle)
  16838. engine->RegisterObjectMethod(className, "void SetOuterAngle(float)", AS_METHODPR(T, SetOuterAngle, (float), void), AS_CALL_THISCALL);
  16839. engine->RegisterObjectMethod(className, "void set_outerAngle(float)", AS_METHODPR(T, SetOuterAngle, (float), void), AS_CALL_THISCALL);
  16840. // void SoundSource3D::SetRolloffFactor(float factor)
  16841. engine->RegisterObjectMethod(className, "void SetRolloffFactor(float)", AS_METHODPR(T, SetRolloffFactor, (float), void), AS_CALL_THISCALL);
  16842. engine->RegisterObjectMethod(className, "void set_rolloffFactor(float)", AS_METHODPR(T, SetRolloffFactor, (float), void), AS_CALL_THISCALL);
  16843. #ifdef REGISTER_MEMBERS_MANUAL_PART_SoundSource3D
  16844. REGISTER_MEMBERS_MANUAL_PART_SoundSource3D();
  16845. #endif
  16846. }
  16847. // class StaticModel | File: ../Graphics/StaticModel.h
  16848. template <class T> void RegisterMembers_StaticModel(asIScriptEngine* engine, const char* className)
  16849. {
  16850. RegisterMembers_Drawable<T>(engine, className);
  16851. // virtual void StaticModel::SetModel(Model* model)
  16852. // Can not be registered here bacause hidden in derived classes: AnimatedModel
  16853. // void StaticModel::ApplyMaterialList(const String& fileName = String::EMPTY)
  16854. engine->RegisterObjectMethod(className, "void ApplyMaterialList(const String&in = String::EMPTY)", AS_METHODPR(T, ApplyMaterialList, (const String&), void), AS_CALL_THISCALL);
  16855. // virtual Material* StaticModel::GetMaterial() const
  16856. engine->RegisterObjectMethod(className, "Material@+ GetMaterial() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  16857. engine->RegisterObjectMethod(className, "Material@+ get_material() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  16858. // virtual Material* StaticModel::GetMaterial(unsigned index) const
  16859. engine->RegisterObjectMethod(className, "Material@+ GetMaterial(uint) const", AS_METHODPR(T, GetMaterial, (unsigned) const, Material*), AS_CALL_THISCALL);
  16860. engine->RegisterObjectMethod(className, "Material@+ get_materials(uint) const", AS_METHODPR(T, GetMaterial, (unsigned) const, Material*), AS_CALL_THISCALL);
  16861. // const ResourceRefList& StaticModel::GetMaterialsAttr() const
  16862. engine->RegisterObjectMethod(className, "const ResourceRefList& GetMaterialsAttr() const", AS_METHODPR(T, GetMaterialsAttr, () const, const ResourceRefList&), AS_CALL_THISCALL);
  16863. // Model* StaticModel::GetModel() const
  16864. engine->RegisterObjectMethod(className, "Model@+ GetModel() const", AS_METHODPR(T, GetModel, () const, Model*), AS_CALL_THISCALL);
  16865. engine->RegisterObjectMethod(className, "Model@+ get_model() const", AS_METHODPR(T, GetModel, () const, Model*), AS_CALL_THISCALL);
  16866. // ResourceRef StaticModel::GetModelAttr() const
  16867. engine->RegisterObjectMethod(className, "ResourceRef GetModelAttr() const", AS_METHODPR(T, GetModelAttr, () const, ResourceRef), AS_CALL_THISCALL);
  16868. // unsigned StaticModel::GetNumGeometries() const
  16869. engine->RegisterObjectMethod(className, "uint GetNumGeometries() const", AS_METHODPR(T, GetNumGeometries, () const, unsigned), AS_CALL_THISCALL);
  16870. engine->RegisterObjectMethod(className, "uint get_numGeometries() const", AS_METHODPR(T, GetNumGeometries, () const, unsigned), AS_CALL_THISCALL);
  16871. // unsigned StaticModel::GetOcclusionLodLevel() const
  16872. engine->RegisterObjectMethod(className, "uint GetOcclusionLodLevel() const", AS_METHODPR(T, GetOcclusionLodLevel, () const, unsigned), AS_CALL_THISCALL);
  16873. engine->RegisterObjectMethod(className, "uint get_occlusionLodLevel() const", AS_METHODPR(T, GetOcclusionLodLevel, () const, unsigned), AS_CALL_THISCALL);
  16874. // bool StaticModel::IsInside(const Vector3& point) const
  16875. engine->RegisterObjectMethod(className, "bool IsInside(const Vector3&in) const", AS_METHODPR(T, IsInside, (const Vector3&) const, bool), AS_CALL_THISCALL);
  16876. // bool StaticModel::IsInsideLocal(const Vector3& point) const
  16877. engine->RegisterObjectMethod(className, "bool IsInsideLocal(const Vector3&in) const", AS_METHODPR(T, IsInsideLocal, (const Vector3&) const, bool), AS_CALL_THISCALL);
  16878. // virtual void StaticModel::SetMaterial(Material* material)
  16879. engine->RegisterObjectMethod(className, "void SetMaterial(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  16880. engine->RegisterObjectMethod(className, "void set_material(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  16881. // virtual bool StaticModel::SetMaterial(unsigned index, Material* material)
  16882. engine->RegisterObjectMethod(className, "bool SetMaterial(uint, Material@+)", AS_METHODPR(T, SetMaterial, (unsigned, Material*), bool), AS_CALL_THISCALL);
  16883. engine->RegisterObjectMethod(className, "bool set_materials(uint, Material@+)", AS_METHODPR(T, SetMaterial, (unsigned, Material*), bool), AS_CALL_THISCALL);
  16884. // void StaticModel::SetMaterialsAttr(const ResourceRefList& value)
  16885. engine->RegisterObjectMethod(className, "void SetMaterialsAttr(const ResourceRefList&in)", AS_METHODPR(T, SetMaterialsAttr, (const ResourceRefList&), void), AS_CALL_THISCALL);
  16886. // void StaticModel::SetModelAttr(const ResourceRef& value)
  16887. engine->RegisterObjectMethod(className, "void SetModelAttr(const ResourceRef&in)", AS_METHODPR(T, SetModelAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  16888. // void StaticModel::SetOcclusionLodLevel(unsigned level)
  16889. engine->RegisterObjectMethod(className, "void SetOcclusionLodLevel(uint)", AS_METHODPR(T, SetOcclusionLodLevel, (unsigned), void), AS_CALL_THISCALL);
  16890. engine->RegisterObjectMethod(className, "void set_occlusionLodLevel(uint)", AS_METHODPR(T, SetOcclusionLodLevel, (unsigned), void), AS_CALL_THISCALL);
  16891. // virtual void Drawable::Update(const FrameInfo& frame)
  16892. engine->RegisterObjectMethod(className, "void Update(const FrameInfo&in)", AS_METHODPR(T, Update, (const FrameInfo&), void), AS_CALL_THISCALL);
  16893. #ifdef REGISTER_MEMBERS_MANUAL_PART_StaticModel
  16894. REGISTER_MEMBERS_MANUAL_PART_StaticModel();
  16895. #endif
  16896. }
  16897. // class TerrainPatch | File: ../Graphics/TerrainPatch.h
  16898. template <class T> void RegisterMembers_TerrainPatch(asIScriptEngine* engine, const char* className)
  16899. {
  16900. RegisterMembers_Drawable<T>(engine, className);
  16901. // PODVector<float>& TerrainPatch::GetLodErrors()
  16902. // Error: type "PODVector<float>&" can not automatically bind
  16903. // const IntVector2& TerrainPatch::GetCoordinates() const
  16904. engine->RegisterObjectMethod(className, "const IntVector2& GetCoordinates() const", AS_METHODPR(T, GetCoordinates, () const, const IntVector2&), AS_CALL_THISCALL);
  16905. // TerrainPatch* TerrainPatch::GetEastPatch() const
  16906. engine->RegisterObjectMethod(className, "TerrainPatch@+ GetEastPatch() const", AS_METHODPR(T, GetEastPatch, () const, TerrainPatch*), AS_CALL_THISCALL);
  16907. // Geometry* TerrainPatch::GetGeometry() const
  16908. engine->RegisterObjectMethod(className, "Geometry@+ GetGeometry() const", AS_METHODPR(T, GetGeometry, () const, Geometry*), AS_CALL_THISCALL);
  16909. // unsigned TerrainPatch::GetLodLevel() const
  16910. engine->RegisterObjectMethod(className, "uint GetLodLevel() const", AS_METHODPR(T, GetLodLevel, () const, unsigned), AS_CALL_THISCALL);
  16911. // Geometry* TerrainPatch::GetMaxLodGeometry() const
  16912. engine->RegisterObjectMethod(className, "Geometry@+ GetMaxLodGeometry() const", AS_METHODPR(T, GetMaxLodGeometry, () const, Geometry*), AS_CALL_THISCALL);
  16913. // TerrainPatch* TerrainPatch::GetNorthPatch() const
  16914. engine->RegisterObjectMethod(className, "TerrainPatch@+ GetNorthPatch() const", AS_METHODPR(T, GetNorthPatch, () const, TerrainPatch*), AS_CALL_THISCALL);
  16915. // Geometry* TerrainPatch::GetOcclusionGeometry() const
  16916. engine->RegisterObjectMethod(className, "Geometry@+ GetOcclusionGeometry() const", AS_METHODPR(T, GetOcclusionGeometry, () const, Geometry*), AS_CALL_THISCALL);
  16917. // Terrain* TerrainPatch::GetOwner() const
  16918. engine->RegisterObjectMethod(className, "Terrain@+ GetOwner() const", AS_METHODPR(T, GetOwner, () const, Terrain*), AS_CALL_THISCALL);
  16919. // TerrainPatch* TerrainPatch::GetSouthPatch() const
  16920. engine->RegisterObjectMethod(className, "TerrainPatch@+ GetSouthPatch() const", AS_METHODPR(T, GetSouthPatch, () const, TerrainPatch*), AS_CALL_THISCALL);
  16921. // VertexBuffer* TerrainPatch::GetVertexBuffer() const
  16922. engine->RegisterObjectMethod(className, "VertexBuffer@+ GetVertexBuffer() const", AS_METHODPR(T, GetVertexBuffer, () const, VertexBuffer*), AS_CALL_THISCALL);
  16923. // TerrainPatch* TerrainPatch::GetWestPatch() const
  16924. engine->RegisterObjectMethod(className, "TerrainPatch@+ GetWestPatch() const", AS_METHODPR(T, GetWestPatch, () const, TerrainPatch*), AS_CALL_THISCALL);
  16925. // void TerrainPatch::ResetLod()
  16926. engine->RegisterObjectMethod(className, "void ResetLod()", AS_METHODPR(T, ResetLod, (), void), AS_CALL_THISCALL);
  16927. // void TerrainPatch::SetBoundingBox(const BoundingBox& box)
  16928. engine->RegisterObjectMethod(className, "void SetBoundingBox(const BoundingBox&in)", AS_METHODPR(T, SetBoundingBox, (const BoundingBox&), void), AS_CALL_THISCALL);
  16929. // void TerrainPatch::SetCoordinates(const IntVector2& coordinates)
  16930. engine->RegisterObjectMethod(className, "void SetCoordinates(const IntVector2&in)", AS_METHODPR(T, SetCoordinates, (const IntVector2&), void), AS_CALL_THISCALL);
  16931. // void TerrainPatch::SetMaterial(Material* material)
  16932. engine->RegisterObjectMethod(className, "void SetMaterial(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  16933. // void TerrainPatch::SetNeighbors(TerrainPatch* north, TerrainPatch* south, TerrainPatch* west, TerrainPatch* east)
  16934. engine->RegisterObjectMethod(className, "void SetNeighbors(TerrainPatch@+, TerrainPatch@+, TerrainPatch@+, TerrainPatch@+)", AS_METHODPR(T, SetNeighbors, (TerrainPatch*, TerrainPatch*, TerrainPatch*, TerrainPatch*), void), AS_CALL_THISCALL);
  16935. // void TerrainPatch::SetOwner(Terrain* terrain)
  16936. engine->RegisterObjectMethod(className, "void SetOwner(Terrain@+)", AS_METHODPR(T, SetOwner, (Terrain*), void), AS_CALL_THISCALL);
  16937. // virtual void Drawable::Update(const FrameInfo& frame)
  16938. engine->RegisterObjectMethod(className, "void Update(const FrameInfo&in)", AS_METHODPR(T, Update, (const FrameInfo&), void), AS_CALL_THISCALL);
  16939. #ifdef REGISTER_MEMBERS_MANUAL_PART_TerrainPatch
  16940. REGISTER_MEMBERS_MANUAL_PART_TerrainPatch();
  16941. #endif
  16942. }
  16943. // class Text | File: ../UI/Text.h
  16944. template <class T> void RegisterMembers_Text(asIScriptEngine* engine, const char* className)
  16945. {
  16946. RegisterMembers_UISelectable<T>(engine, className);
  16947. // void Text::ClearSelection()
  16948. engine->RegisterObjectMethod(className, "void ClearSelection()", AS_METHODPR(T, ClearSelection, (), void), AS_CALL_THISCALL);
  16949. // bool Text::GetAutoLocalizable() const
  16950. engine->RegisterObjectMethod(className, "bool GetAutoLocalizable() const", AS_METHODPR(T, GetAutoLocalizable, () const, bool), AS_CALL_THISCALL);
  16951. engine->RegisterObjectMethod(className, "bool get_autoLocalizable() const", AS_METHODPR(T, GetAutoLocalizable, () const, bool), AS_CALL_THISCALL);
  16952. // Vector2 Text::GetCharPosition(unsigned index)
  16953. engine->RegisterObjectMethod(className, "Vector2 GetCharPosition(uint)", AS_METHODPR(T, GetCharPosition, (unsigned), Vector2), AS_CALL_THISCALL);
  16954. engine->RegisterObjectMethod(className, "Vector2 get_charPositions(uint)", AS_METHODPR(T, GetCharPosition, (unsigned), Vector2), AS_CALL_THISCALL);
  16955. // Vector2 Text::GetCharSize(unsigned index)
  16956. engine->RegisterObjectMethod(className, "Vector2 GetCharSize(uint)", AS_METHODPR(T, GetCharSize, (unsigned), Vector2), AS_CALL_THISCALL);
  16957. engine->RegisterObjectMethod(className, "Vector2 get_charSizes(uint)", AS_METHODPR(T, GetCharSize, (unsigned), Vector2), AS_CALL_THISCALL);
  16958. // const Color& Text::GetEffectColor() const
  16959. engine->RegisterObjectMethod(className, "const Color& GetEffectColor() const", AS_METHODPR(T, GetEffectColor, () const, const Color&), AS_CALL_THISCALL);
  16960. engine->RegisterObjectMethod(className, "const Color& get_effectColor() const", AS_METHODPR(T, GetEffectColor, () const, const Color&), AS_CALL_THISCALL);
  16961. // float Text::GetEffectDepthBias() const
  16962. engine->RegisterObjectMethod(className, "float GetEffectDepthBias() const", AS_METHODPR(T, GetEffectDepthBias, () const, float), AS_CALL_THISCALL);
  16963. // bool Text::GetEffectRoundStroke() const
  16964. engine->RegisterObjectMethod(className, "bool GetEffectRoundStroke() const", AS_METHODPR(T, GetEffectRoundStroke, () const, bool), AS_CALL_THISCALL);
  16965. engine->RegisterObjectMethod(className, "bool get_effectRoundStroke() const", AS_METHODPR(T, GetEffectRoundStroke, () const, bool), AS_CALL_THISCALL);
  16966. // const IntVector2& Text::GetEffectShadowOffset() const
  16967. engine->RegisterObjectMethod(className, "const IntVector2& GetEffectShadowOffset() const", AS_METHODPR(T, GetEffectShadowOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  16968. engine->RegisterObjectMethod(className, "const IntVector2& get_effectShadowOffset() const", AS_METHODPR(T, GetEffectShadowOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  16969. // int Text::GetEffectStrokeThickness() const
  16970. engine->RegisterObjectMethod(className, "int GetEffectStrokeThickness() const", AS_METHODPR(T, GetEffectStrokeThickness, () const, int), AS_CALL_THISCALL);
  16971. engine->RegisterObjectMethod(className, "int get_effectStrokeThickness() const", AS_METHODPR(T, GetEffectStrokeThickness, () const, int), AS_CALL_THISCALL);
  16972. // Font* Text::GetFont() const
  16973. engine->RegisterObjectMethod(className, "Font@+ GetFont() const", AS_METHODPR(T, GetFont, () const, Font*), AS_CALL_THISCALL);
  16974. engine->RegisterObjectMethod(className, "Font@+ get_font() const", AS_METHODPR(T, GetFont, () const, Font*), AS_CALL_THISCALL);
  16975. // ResourceRef Text::GetFontAttr() const
  16976. engine->RegisterObjectMethod(className, "ResourceRef GetFontAttr() const", AS_METHODPR(T, GetFontAttr, () const, ResourceRef), AS_CALL_THISCALL);
  16977. // float Text::GetFontSize() const
  16978. engine->RegisterObjectMethod(className, "float GetFontSize() const", AS_METHODPR(T, GetFontSize, () const, float), AS_CALL_THISCALL);
  16979. engine->RegisterObjectMethod(className, "float get_fontSize() const", AS_METHODPR(T, GetFontSize, () const, float), AS_CALL_THISCALL);
  16980. // unsigned Text::GetNumChars() const
  16981. engine->RegisterObjectMethod(className, "uint GetNumChars() const", AS_METHODPR(T, GetNumChars, () const, unsigned), AS_CALL_THISCALL);
  16982. engine->RegisterObjectMethod(className, "uint get_numChars() const", AS_METHODPR(T, GetNumChars, () const, unsigned), AS_CALL_THISCALL);
  16983. // unsigned Text::GetNumRows() const
  16984. engine->RegisterObjectMethod(className, "uint GetNumRows() const", AS_METHODPR(T, GetNumRows, () const, unsigned), AS_CALL_THISCALL);
  16985. engine->RegisterObjectMethod(className, "uint get_numRows() const", AS_METHODPR(T, GetNumRows, () const, unsigned), AS_CALL_THISCALL);
  16986. // float Text::GetRowHeight() const
  16987. engine->RegisterObjectMethod(className, "float GetRowHeight() const", AS_METHODPR(T, GetRowHeight, () const, float), AS_CALL_THISCALL);
  16988. engine->RegisterObjectMethod(className, "float get_rowHeight() const", AS_METHODPR(T, GetRowHeight, () const, float), AS_CALL_THISCALL);
  16989. // float Text::GetRowSpacing() const
  16990. engine->RegisterObjectMethod(className, "float GetRowSpacing() const", AS_METHODPR(T, GetRowSpacing, () const, float), AS_CALL_THISCALL);
  16991. engine->RegisterObjectMethod(className, "float get_rowSpacing() const", AS_METHODPR(T, GetRowSpacing, () const, float), AS_CALL_THISCALL);
  16992. // float Text::GetRowWidth(unsigned index) const
  16993. engine->RegisterObjectMethod(className, "float GetRowWidth(uint) const", AS_METHODPR(T, GetRowWidth, (unsigned) const, float), AS_CALL_THISCALL);
  16994. engine->RegisterObjectMethod(className, "float get_rowWidths(uint) const", AS_METHODPR(T, GetRowWidth, (unsigned) const, float), AS_CALL_THISCALL);
  16995. // unsigned Text::GetSelectionLength() const
  16996. engine->RegisterObjectMethod(className, "uint GetSelectionLength() const", AS_METHODPR(T, GetSelectionLength, () const, unsigned), AS_CALL_THISCALL);
  16997. engine->RegisterObjectMethod(className, "uint get_selectionLength() const", AS_METHODPR(T, GetSelectionLength, () const, unsigned), AS_CALL_THISCALL);
  16998. // unsigned Text::GetSelectionStart() const
  16999. engine->RegisterObjectMethod(className, "uint GetSelectionStart() const", AS_METHODPR(T, GetSelectionStart, () const, unsigned), AS_CALL_THISCALL);
  17000. engine->RegisterObjectMethod(className, "uint get_selectionStart() const", AS_METHODPR(T, GetSelectionStart, () const, unsigned), AS_CALL_THISCALL);
  17001. // const String& Text::GetText() const
  17002. engine->RegisterObjectMethod(className, "const String& GetText() const", AS_METHODPR(T, GetText, () const, const String&), AS_CALL_THISCALL);
  17003. engine->RegisterObjectMethod(className, "const String& get_text() const", AS_METHODPR(T, GetText, () const, const String&), AS_CALL_THISCALL);
  17004. // HorizontalAlignment Text::GetTextAlignment() const
  17005. engine->RegisterObjectMethod(className, "HorizontalAlignment GetTextAlignment() const", AS_METHODPR(T, GetTextAlignment, () const, HorizontalAlignment), AS_CALL_THISCALL);
  17006. engine->RegisterObjectMethod(className, "HorizontalAlignment get_textAlignment() const", AS_METHODPR(T, GetTextAlignment, () const, HorizontalAlignment), AS_CALL_THISCALL);
  17007. // String Text::GetTextAttr() const
  17008. engine->RegisterObjectMethod(className, "String GetTextAttr() const", AS_METHODPR(T, GetTextAttr, () const, String), AS_CALL_THISCALL);
  17009. // TextEffect Text::GetTextEffect() const
  17010. engine->RegisterObjectMethod(className, "TextEffect GetTextEffect() const", AS_METHODPR(T, GetTextEffect, () const, TextEffect), AS_CALL_THISCALL);
  17011. engine->RegisterObjectMethod(className, "TextEffect get_textEffect() const", AS_METHODPR(T, GetTextEffect, () const, TextEffect), AS_CALL_THISCALL);
  17012. // bool Text::GetWordwrap() const
  17013. engine->RegisterObjectMethod(className, "bool GetWordwrap() const", AS_METHODPR(T, GetWordwrap, () const, bool), AS_CALL_THISCALL);
  17014. engine->RegisterObjectMethod(className, "bool get_wordwrap() const", AS_METHODPR(T, GetWordwrap, () const, bool), AS_CALL_THISCALL);
  17015. // void Text::SetAutoLocalizable(bool enable)
  17016. engine->RegisterObjectMethod(className, "void SetAutoLocalizable(bool)", AS_METHODPR(T, SetAutoLocalizable, (bool), void), AS_CALL_THISCALL);
  17017. engine->RegisterObjectMethod(className, "void set_autoLocalizable(bool)", AS_METHODPR(T, SetAutoLocalizable, (bool), void), AS_CALL_THISCALL);
  17018. // void Text::SetEffectColor(const Color& effectColor)
  17019. engine->RegisterObjectMethod(className, "void SetEffectColor(const Color&in)", AS_METHODPR(T, SetEffectColor, (const Color&), void), AS_CALL_THISCALL);
  17020. engine->RegisterObjectMethod(className, "void set_effectColor(const Color&in)", AS_METHODPR(T, SetEffectColor, (const Color&), void), AS_CALL_THISCALL);
  17021. // void Text::SetEffectDepthBias(float bias)
  17022. engine->RegisterObjectMethod(className, "void SetEffectDepthBias(float)", AS_METHODPR(T, SetEffectDepthBias, (float), void), AS_CALL_THISCALL);
  17023. // void Text::SetEffectRoundStroke(bool roundStroke)
  17024. engine->RegisterObjectMethod(className, "void SetEffectRoundStroke(bool)", AS_METHODPR(T, SetEffectRoundStroke, (bool), void), AS_CALL_THISCALL);
  17025. engine->RegisterObjectMethod(className, "void set_effectRoundStroke(bool)", AS_METHODPR(T, SetEffectRoundStroke, (bool), void), AS_CALL_THISCALL);
  17026. // void Text::SetEffectShadowOffset(const IntVector2& offset)
  17027. engine->RegisterObjectMethod(className, "void SetEffectShadowOffset(const IntVector2&in)", AS_METHODPR(T, SetEffectShadowOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  17028. engine->RegisterObjectMethod(className, "void set_effectShadowOffset(const IntVector2&in)", AS_METHODPR(T, SetEffectShadowOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  17029. // void Text::SetEffectStrokeThickness(int thickness)
  17030. engine->RegisterObjectMethod(className, "void SetEffectStrokeThickness(int)", AS_METHODPR(T, SetEffectStrokeThickness, (int), void), AS_CALL_THISCALL);
  17031. engine->RegisterObjectMethod(className, "void set_effectStrokeThickness(int)", AS_METHODPR(T, SetEffectStrokeThickness, (int), void), AS_CALL_THISCALL);
  17032. // bool Text::SetFont(const String& fontName, float size = DEFAULT_FONT_SIZE)
  17033. engine->RegisterObjectMethod(className, "bool SetFont(const String&in, float = DEFAULT_FONT_SIZE)", AS_METHODPR(T, SetFont, (const String&, float), bool), AS_CALL_THISCALL);
  17034. // bool Text::SetFont(Font* font, float size = DEFAULT_FONT_SIZE)
  17035. engine->RegisterObjectMethod(className, "bool SetFont(Font@+, float = DEFAULT_FONT_SIZE)", AS_METHODPR(T, SetFont, (Font*, float), bool), AS_CALL_THISCALL);
  17036. // void Text::SetFontAttr(const ResourceRef& value)
  17037. engine->RegisterObjectMethod(className, "void SetFontAttr(const ResourceRef&in)", AS_METHODPR(T, SetFontAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  17038. // bool Text::SetFontSize(float size)
  17039. engine->RegisterObjectMethod(className, "bool SetFontSize(float)", AS_METHODPR(T, SetFontSize, (float), bool), AS_CALL_THISCALL);
  17040. engine->RegisterObjectMethod(className, "bool set_fontSize(float)", AS_METHODPR(T, SetFontSize, (float), bool), AS_CALL_THISCALL);
  17041. // void Text::SetRowSpacing(float spacing)
  17042. engine->RegisterObjectMethod(className, "void SetRowSpacing(float)", AS_METHODPR(T, SetRowSpacing, (float), void), AS_CALL_THISCALL);
  17043. engine->RegisterObjectMethod(className, "void set_rowSpacing(float)", AS_METHODPR(T, SetRowSpacing, (float), void), AS_CALL_THISCALL);
  17044. // void Text::SetSelection(unsigned start, unsigned length = M_MAX_UNSIGNED)
  17045. engine->RegisterObjectMethod(className, "void SetSelection(uint, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, SetSelection, (unsigned, unsigned), void), AS_CALL_THISCALL);
  17046. // void Text::SetText(const String& text)
  17047. engine->RegisterObjectMethod(className, "void SetText(const String&in)", AS_METHODPR(T, SetText, (const String&), void), AS_CALL_THISCALL);
  17048. engine->RegisterObjectMethod(className, "void set_text(const String&in)", AS_METHODPR(T, SetText, (const String&), void), AS_CALL_THISCALL);
  17049. // void Text::SetTextAlignment(HorizontalAlignment align)
  17050. engine->RegisterObjectMethod(className, "void SetTextAlignment(HorizontalAlignment)", AS_METHODPR(T, SetTextAlignment, (HorizontalAlignment), void), AS_CALL_THISCALL);
  17051. engine->RegisterObjectMethod(className, "void set_textAlignment(HorizontalAlignment)", AS_METHODPR(T, SetTextAlignment, (HorizontalAlignment), void), AS_CALL_THISCALL);
  17052. // void Text::SetTextAttr(const String& value)
  17053. engine->RegisterObjectMethod(className, "void SetTextAttr(const String&in)", AS_METHODPR(T, SetTextAttr, (const String&), void), AS_CALL_THISCALL);
  17054. // void Text::SetTextEffect(TextEffect textEffect)
  17055. engine->RegisterObjectMethod(className, "void SetTextEffect(TextEffect)", AS_METHODPR(T, SetTextEffect, (TextEffect), void), AS_CALL_THISCALL);
  17056. engine->RegisterObjectMethod(className, "void set_textEffect(TextEffect)", AS_METHODPR(T, SetTextEffect, (TextEffect), void), AS_CALL_THISCALL);
  17057. // void Text::SetWordwrap(bool enable)
  17058. engine->RegisterObjectMethod(className, "void SetWordwrap(bool)", AS_METHODPR(T, SetWordwrap, (bool), void), AS_CALL_THISCALL);
  17059. engine->RegisterObjectMethod(className, "void set_wordwrap(bool)", AS_METHODPR(T, SetWordwrap, (bool), void), AS_CALL_THISCALL);
  17060. #ifdef REGISTER_MEMBERS_MANUAL_PART_Text
  17061. REGISTER_MEMBERS_MANUAL_PART_Text();
  17062. #endif
  17063. }
  17064. // class Text3D | File: ../UI/Text3D.h
  17065. template <class T> void RegisterMembers_Text3D(asIScriptEngine* engine, const char* className)
  17066. {
  17067. RegisterMembers_Drawable<T>(engine, className);
  17068. // Vector2 Text3D::GetCharPosition(unsigned index)
  17069. engine->RegisterObjectMethod(className, "Vector2 GetCharPosition(uint)", AS_METHODPR(T, GetCharPosition, (unsigned), Vector2), AS_CALL_THISCALL);
  17070. engine->RegisterObjectMethod(className, "Vector2 get_charPositions(uint)", AS_METHODPR(T, GetCharPosition, (unsigned), Vector2), AS_CALL_THISCALL);
  17071. // Vector2 Text3D::GetCharSize(unsigned index)
  17072. engine->RegisterObjectMethod(className, "Vector2 GetCharSize(uint)", AS_METHODPR(T, GetCharSize, (unsigned), Vector2), AS_CALL_THISCALL);
  17073. engine->RegisterObjectMethod(className, "Vector2 get_charSizes(uint)", AS_METHODPR(T, GetCharSize, (unsigned), Vector2), AS_CALL_THISCALL);
  17074. // const Color& Text3D::GetColor(Corner corner) const
  17075. engine->RegisterObjectMethod(className, "const Color& GetColor(Corner) const", AS_METHODPR(T, GetColor, (Corner) const, const Color&), AS_CALL_THISCALL);
  17076. engine->RegisterObjectMethod(className, "const Color& get_colors(Corner) const", AS_METHODPR(T, GetColor, (Corner) const, const Color&), AS_CALL_THISCALL);
  17077. // const Color& Text3D::GetColorAttr() const
  17078. engine->RegisterObjectMethod(className, "const Color& GetColorAttr() const", AS_METHODPR(T, GetColorAttr, () const, const Color&), AS_CALL_THISCALL);
  17079. // const Color& Text3D::GetEffectColor() const
  17080. engine->RegisterObjectMethod(className, "const Color& GetEffectColor() const", AS_METHODPR(T, GetEffectColor, () const, const Color&), AS_CALL_THISCALL);
  17081. engine->RegisterObjectMethod(className, "const Color& get_effectColor() const", AS_METHODPR(T, GetEffectColor, () const, const Color&), AS_CALL_THISCALL);
  17082. // float Text3D::GetEffectDepthBias() const
  17083. engine->RegisterObjectMethod(className, "float GetEffectDepthBias() const", AS_METHODPR(T, GetEffectDepthBias, () const, float), AS_CALL_THISCALL);
  17084. engine->RegisterObjectMethod(className, "float get_effectDepthBias() const", AS_METHODPR(T, GetEffectDepthBias, () const, float), AS_CALL_THISCALL);
  17085. // bool Text3D::GetEffectRoundStroke() const
  17086. engine->RegisterObjectMethod(className, "bool GetEffectRoundStroke() const", AS_METHODPR(T, GetEffectRoundStroke, () const, bool), AS_CALL_THISCALL);
  17087. engine->RegisterObjectMethod(className, "bool get_effectRoundStroke() const", AS_METHODPR(T, GetEffectRoundStroke, () const, bool), AS_CALL_THISCALL);
  17088. // const IntVector2& Text3D::GetEffectShadowOffset() const
  17089. engine->RegisterObjectMethod(className, "const IntVector2& GetEffectShadowOffset() const", AS_METHODPR(T, GetEffectShadowOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  17090. engine->RegisterObjectMethod(className, "const IntVector2& get_effectShadowOffset() const", AS_METHODPR(T, GetEffectShadowOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  17091. // int Text3D::GetEffectStrokeThickness() const
  17092. engine->RegisterObjectMethod(className, "int GetEffectStrokeThickness() const", AS_METHODPR(T, GetEffectStrokeThickness, () const, int), AS_CALL_THISCALL);
  17093. engine->RegisterObjectMethod(className, "int get_effectStrokeThickness() const", AS_METHODPR(T, GetEffectStrokeThickness, () const, int), AS_CALL_THISCALL);
  17094. // FaceCameraMode Text3D::GetFaceCameraMode() const
  17095. engine->RegisterObjectMethod(className, "FaceCameraMode GetFaceCameraMode() const", AS_METHODPR(T, GetFaceCameraMode, () const, FaceCameraMode), AS_CALL_THISCALL);
  17096. engine->RegisterObjectMethod(className, "FaceCameraMode get_faceCameraMode() const", AS_METHODPR(T, GetFaceCameraMode, () const, FaceCameraMode), AS_CALL_THISCALL);
  17097. // Font* Text3D::GetFont() const
  17098. engine->RegisterObjectMethod(className, "Font@+ GetFont() const", AS_METHODPR(T, GetFont, () const, Font*), AS_CALL_THISCALL);
  17099. engine->RegisterObjectMethod(className, "Font@+ get_font() const", AS_METHODPR(T, GetFont, () const, Font*), AS_CALL_THISCALL);
  17100. // ResourceRef Text3D::GetFontAttr() const
  17101. engine->RegisterObjectMethod(className, "ResourceRef GetFontAttr() const", AS_METHODPR(T, GetFontAttr, () const, ResourceRef), AS_CALL_THISCALL);
  17102. // float Text3D::GetFontSize() const
  17103. engine->RegisterObjectMethod(className, "float GetFontSize() const", AS_METHODPR(T, GetFontSize, () const, float), AS_CALL_THISCALL);
  17104. engine->RegisterObjectMethod(className, "float get_fontSize() const", AS_METHODPR(T, GetFontSize, () const, float), AS_CALL_THISCALL);
  17105. // int Text3D::GetHeight() const
  17106. engine->RegisterObjectMethod(className, "int GetHeight() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  17107. engine->RegisterObjectMethod(className, "int get_height() const", AS_METHODPR(T, GetHeight, () const, int), AS_CALL_THISCALL);
  17108. // HorizontalAlignment Text3D::GetHorizontalAlignment() const
  17109. engine->RegisterObjectMethod(className, "HorizontalAlignment GetHorizontalAlignment() const", AS_METHODPR(T, GetHorizontalAlignment, () const, HorizontalAlignment), AS_CALL_THISCALL);
  17110. engine->RegisterObjectMethod(className, "HorizontalAlignment get_horizontalAlignment() const", AS_METHODPR(T, GetHorizontalAlignment, () const, HorizontalAlignment), AS_CALL_THISCALL);
  17111. // Material* Text3D::GetMaterial() const
  17112. engine->RegisterObjectMethod(className, "Material@+ GetMaterial() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  17113. engine->RegisterObjectMethod(className, "Material@+ get_material() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
  17114. // ResourceRef Text3D::GetMaterialAttr() const
  17115. engine->RegisterObjectMethod(className, "ResourceRef GetMaterialAttr() const", AS_METHODPR(T, GetMaterialAttr, () const, ResourceRef), AS_CALL_THISCALL);
  17116. // unsigned Text3D::GetNumChars() const
  17117. engine->RegisterObjectMethod(className, "uint GetNumChars() const", AS_METHODPR(T, GetNumChars, () const, unsigned), AS_CALL_THISCALL);
  17118. engine->RegisterObjectMethod(className, "uint get_numChars() const", AS_METHODPR(T, GetNumChars, () const, unsigned), AS_CALL_THISCALL);
  17119. // unsigned Text3D::GetNumRows() const
  17120. engine->RegisterObjectMethod(className, "uint GetNumRows() const", AS_METHODPR(T, GetNumRows, () const, unsigned), AS_CALL_THISCALL);
  17121. engine->RegisterObjectMethod(className, "uint get_numRows() const", AS_METHODPR(T, GetNumRows, () const, unsigned), AS_CALL_THISCALL);
  17122. // float Text3D::GetOpacity() const
  17123. engine->RegisterObjectMethod(className, "float GetOpacity() const", AS_METHODPR(T, GetOpacity, () const, float), AS_CALL_THISCALL);
  17124. engine->RegisterObjectMethod(className, "float get_opacity() const", AS_METHODPR(T, GetOpacity, () const, float), AS_CALL_THISCALL);
  17125. // int Text3D::GetRowHeight() const
  17126. engine->RegisterObjectMethod(className, "int GetRowHeight() const", AS_METHODPR(T, GetRowHeight, () const, int), AS_CALL_THISCALL);
  17127. engine->RegisterObjectMethod(className, "int get_rowHeight() const", AS_METHODPR(T, GetRowHeight, () const, int), AS_CALL_THISCALL);
  17128. // float Text3D::GetRowSpacing() const
  17129. engine->RegisterObjectMethod(className, "float GetRowSpacing() const", AS_METHODPR(T, GetRowSpacing, () const, float), AS_CALL_THISCALL);
  17130. engine->RegisterObjectMethod(className, "float get_rowSpacing() const", AS_METHODPR(T, GetRowSpacing, () const, float), AS_CALL_THISCALL);
  17131. // int Text3D::GetRowWidth(unsigned index) const
  17132. engine->RegisterObjectMethod(className, "int GetRowWidth(uint) const", AS_METHODPR(T, GetRowWidth, (unsigned) const, int), AS_CALL_THISCALL);
  17133. engine->RegisterObjectMethod(className, "int get_rowWidths(uint) const", AS_METHODPR(T, GetRowWidth, (unsigned) const, int), AS_CALL_THISCALL);
  17134. // const String& Text3D::GetText() const
  17135. engine->RegisterObjectMethod(className, "const String& GetText() const", AS_METHODPR(T, GetText, () const, const String&), AS_CALL_THISCALL);
  17136. engine->RegisterObjectMethod(className, "const String& get_text() const", AS_METHODPR(T, GetText, () const, const String&), AS_CALL_THISCALL);
  17137. // HorizontalAlignment Text3D::GetTextAlignment() const
  17138. engine->RegisterObjectMethod(className, "HorizontalAlignment GetTextAlignment() const", AS_METHODPR(T, GetTextAlignment, () const, HorizontalAlignment), AS_CALL_THISCALL);
  17139. engine->RegisterObjectMethod(className, "HorizontalAlignment get_textAlignment() const", AS_METHODPR(T, GetTextAlignment, () const, HorizontalAlignment), AS_CALL_THISCALL);
  17140. // String Text3D::GetTextAttr() const
  17141. engine->RegisterObjectMethod(className, "String GetTextAttr() const", AS_METHODPR(T, GetTextAttr, () const, String), AS_CALL_THISCALL);
  17142. // TextEffect Text3D::GetTextEffect() const
  17143. engine->RegisterObjectMethod(className, "TextEffect GetTextEffect() const", AS_METHODPR(T, GetTextEffect, () const, TextEffect), AS_CALL_THISCALL);
  17144. engine->RegisterObjectMethod(className, "TextEffect get_textEffect() const", AS_METHODPR(T, GetTextEffect, () const, TextEffect), AS_CALL_THISCALL);
  17145. // VerticalAlignment Text3D::GetVerticalAlignment() const
  17146. engine->RegisterObjectMethod(className, "VerticalAlignment GetVerticalAlignment() const", AS_METHODPR(T, GetVerticalAlignment, () const, VerticalAlignment), AS_CALL_THISCALL);
  17147. engine->RegisterObjectMethod(className, "VerticalAlignment get_verticalAlignment() const", AS_METHODPR(T, GetVerticalAlignment, () const, VerticalAlignment), AS_CALL_THISCALL);
  17148. // int Text3D::GetWidth() const
  17149. engine->RegisterObjectMethod(className, "int GetWidth() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  17150. engine->RegisterObjectMethod(className, "int get_width() const", AS_METHODPR(T, GetWidth, () const, int), AS_CALL_THISCALL);
  17151. // bool Text3D::GetWordwrap() const
  17152. engine->RegisterObjectMethod(className, "bool GetWordwrap() const", AS_METHODPR(T, GetWordwrap, () const, bool), AS_CALL_THISCALL);
  17153. engine->RegisterObjectMethod(className, "bool get_wordwrap() const", AS_METHODPR(T, GetWordwrap, () const, bool), AS_CALL_THISCALL);
  17154. // bool Text3D::IsFixedScreenSize() const
  17155. engine->RegisterObjectMethod(className, "bool IsFixedScreenSize() const", AS_METHODPR(T, IsFixedScreenSize, () const, bool), AS_CALL_THISCALL);
  17156. engine->RegisterObjectMethod(className, "bool get_fixedScreenSize() const", AS_METHODPR(T, IsFixedScreenSize, () const, bool), AS_CALL_THISCALL);
  17157. // void Text3D::SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
  17158. engine->RegisterObjectMethod(className, "void SetAlignment(HorizontalAlignment, VerticalAlignment)", AS_METHODPR(T, SetAlignment, (HorizontalAlignment, VerticalAlignment), void), AS_CALL_THISCALL);
  17159. // void Text3D::SetColor(const Color& color)
  17160. engine->RegisterObjectMethod(className, "void SetColor(const Color&in)", AS_METHODPR(T, SetColor, (const Color&), void), AS_CALL_THISCALL);
  17161. engine->RegisterObjectMethod(className, "void set_color(const Color&in)", AS_METHODPR(T, SetColor, (const Color&), void), AS_CALL_THISCALL);
  17162. // void Text3D::SetColor(Corner corner, const Color& color)
  17163. engine->RegisterObjectMethod(className, "void SetColor(Corner, const Color&in)", AS_METHODPR(T, SetColor, (Corner, const Color&), void), AS_CALL_THISCALL);
  17164. engine->RegisterObjectMethod(className, "void set_colors(Corner, const Color&in)", AS_METHODPR(T, SetColor, (Corner, const Color&), void), AS_CALL_THISCALL);
  17165. // void Text3D::SetEffectColor(const Color& effectColor)
  17166. engine->RegisterObjectMethod(className, "void SetEffectColor(const Color&in)", AS_METHODPR(T, SetEffectColor, (const Color&), void), AS_CALL_THISCALL);
  17167. engine->RegisterObjectMethod(className, "void set_effectColor(const Color&in)", AS_METHODPR(T, SetEffectColor, (const Color&), void), AS_CALL_THISCALL);
  17168. // void Text3D::SetEffectDepthBias(float bias)
  17169. engine->RegisterObjectMethod(className, "void SetEffectDepthBias(float)", AS_METHODPR(T, SetEffectDepthBias, (float), void), AS_CALL_THISCALL);
  17170. engine->RegisterObjectMethod(className, "void set_effectDepthBias(float)", AS_METHODPR(T, SetEffectDepthBias, (float), void), AS_CALL_THISCALL);
  17171. // void Text3D::SetEffectRoundStroke(bool roundStroke)
  17172. engine->RegisterObjectMethod(className, "void SetEffectRoundStroke(bool)", AS_METHODPR(T, SetEffectRoundStroke, (bool), void), AS_CALL_THISCALL);
  17173. engine->RegisterObjectMethod(className, "void set_effectRoundStroke(bool)", AS_METHODPR(T, SetEffectRoundStroke, (bool), void), AS_CALL_THISCALL);
  17174. // void Text3D::SetEffectShadowOffset(const IntVector2& offset)
  17175. engine->RegisterObjectMethod(className, "void SetEffectShadowOffset(const IntVector2&in)", AS_METHODPR(T, SetEffectShadowOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  17176. engine->RegisterObjectMethod(className, "void set_effectShadowOffset(const IntVector2&in)", AS_METHODPR(T, SetEffectShadowOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  17177. // void Text3D::SetEffectStrokeThickness(int thickness)
  17178. engine->RegisterObjectMethod(className, "void SetEffectStrokeThickness(int)", AS_METHODPR(T, SetEffectStrokeThickness, (int), void), AS_CALL_THISCALL);
  17179. engine->RegisterObjectMethod(className, "void set_effectStrokeThickness(int)", AS_METHODPR(T, SetEffectStrokeThickness, (int), void), AS_CALL_THISCALL);
  17180. // void Text3D::SetFaceCameraMode(FaceCameraMode mode)
  17181. engine->RegisterObjectMethod(className, "void SetFaceCameraMode(FaceCameraMode)", AS_METHODPR(T, SetFaceCameraMode, (FaceCameraMode), void), AS_CALL_THISCALL);
  17182. engine->RegisterObjectMethod(className, "void set_faceCameraMode(FaceCameraMode)", AS_METHODPR(T, SetFaceCameraMode, (FaceCameraMode), void), AS_CALL_THISCALL);
  17183. // void Text3D::SetFixedScreenSize(bool enable)
  17184. engine->RegisterObjectMethod(className, "void SetFixedScreenSize(bool)", AS_METHODPR(T, SetFixedScreenSize, (bool), void), AS_CALL_THISCALL);
  17185. engine->RegisterObjectMethod(className, "void set_fixedScreenSize(bool)", AS_METHODPR(T, SetFixedScreenSize, (bool), void), AS_CALL_THISCALL);
  17186. // bool Text3D::SetFont(const String& fontName, float size = DEFAULT_FONT_SIZE)
  17187. engine->RegisterObjectMethod(className, "bool SetFont(const String&in, float = DEFAULT_FONT_SIZE)", AS_METHODPR(T, SetFont, (const String&, float), bool), AS_CALL_THISCALL);
  17188. // bool Text3D::SetFont(Font* font, float size = DEFAULT_FONT_SIZE)
  17189. engine->RegisterObjectMethod(className, "bool SetFont(Font@+, float = DEFAULT_FONT_SIZE)", AS_METHODPR(T, SetFont, (Font*, float), bool), AS_CALL_THISCALL);
  17190. // void Text3D::SetFontAttr(const ResourceRef& value)
  17191. engine->RegisterObjectMethod(className, "void SetFontAttr(const ResourceRef&in)", AS_METHODPR(T, SetFontAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  17192. // bool Text3D::SetFontSize(float size)
  17193. engine->RegisterObjectMethod(className, "bool SetFontSize(float)", AS_METHODPR(T, SetFontSize, (float), bool), AS_CALL_THISCALL);
  17194. engine->RegisterObjectMethod(className, "bool set_fontSize(float)", AS_METHODPR(T, SetFontSize, (float), bool), AS_CALL_THISCALL);
  17195. // void Text3D::SetHorizontalAlignment(HorizontalAlignment align)
  17196. engine->RegisterObjectMethod(className, "void SetHorizontalAlignment(HorizontalAlignment)", AS_METHODPR(T, SetHorizontalAlignment, (HorizontalAlignment), void), AS_CALL_THISCALL);
  17197. engine->RegisterObjectMethod(className, "void set_horizontalAlignment(HorizontalAlignment)", AS_METHODPR(T, SetHorizontalAlignment, (HorizontalAlignment), void), AS_CALL_THISCALL);
  17198. // void Text3D::SetMaterial(Material* material)
  17199. engine->RegisterObjectMethod(className, "void SetMaterial(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  17200. engine->RegisterObjectMethod(className, "void set_material(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
  17201. // void Text3D::SetMaterialAttr(const ResourceRef& value)
  17202. engine->RegisterObjectMethod(className, "void SetMaterialAttr(const ResourceRef&in)", AS_METHODPR(T, SetMaterialAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  17203. // void Text3D::SetOpacity(float opacity)
  17204. engine->RegisterObjectMethod(className, "void SetOpacity(float)", AS_METHODPR(T, SetOpacity, (float), void), AS_CALL_THISCALL);
  17205. engine->RegisterObjectMethod(className, "void set_opacity(float)", AS_METHODPR(T, SetOpacity, (float), void), AS_CALL_THISCALL);
  17206. // void Text3D::SetRowSpacing(float spacing)
  17207. engine->RegisterObjectMethod(className, "void SetRowSpacing(float)", AS_METHODPR(T, SetRowSpacing, (float), void), AS_CALL_THISCALL);
  17208. engine->RegisterObjectMethod(className, "void set_rowSpacing(float)", AS_METHODPR(T, SetRowSpacing, (float), void), AS_CALL_THISCALL);
  17209. // void Text3D::SetText(const String& text)
  17210. engine->RegisterObjectMethod(className, "void SetText(const String&in)", AS_METHODPR(T, SetText, (const String&), void), AS_CALL_THISCALL);
  17211. engine->RegisterObjectMethod(className, "void set_text(const String&in)", AS_METHODPR(T, SetText, (const String&), void), AS_CALL_THISCALL);
  17212. // void Text3D::SetTextAlignment(HorizontalAlignment align)
  17213. engine->RegisterObjectMethod(className, "void SetTextAlignment(HorizontalAlignment)", AS_METHODPR(T, SetTextAlignment, (HorizontalAlignment), void), AS_CALL_THISCALL);
  17214. engine->RegisterObjectMethod(className, "void set_textAlignment(HorizontalAlignment)", AS_METHODPR(T, SetTextAlignment, (HorizontalAlignment), void), AS_CALL_THISCALL);
  17215. // void Text3D::SetTextAttr(const String& value)
  17216. engine->RegisterObjectMethod(className, "void SetTextAttr(const String&in)", AS_METHODPR(T, SetTextAttr, (const String&), void), AS_CALL_THISCALL);
  17217. // void Text3D::SetTextEffect(TextEffect textEffect)
  17218. engine->RegisterObjectMethod(className, "void SetTextEffect(TextEffect)", AS_METHODPR(T, SetTextEffect, (TextEffect), void), AS_CALL_THISCALL);
  17219. engine->RegisterObjectMethod(className, "void set_textEffect(TextEffect)", AS_METHODPR(T, SetTextEffect, (TextEffect), void), AS_CALL_THISCALL);
  17220. // void Text3D::SetVerticalAlignment(VerticalAlignment align)
  17221. engine->RegisterObjectMethod(className, "void SetVerticalAlignment(VerticalAlignment)", AS_METHODPR(T, SetVerticalAlignment, (VerticalAlignment), void), AS_CALL_THISCALL);
  17222. engine->RegisterObjectMethod(className, "void set_verticalAlignment(VerticalAlignment)", AS_METHODPR(T, SetVerticalAlignment, (VerticalAlignment), void), AS_CALL_THISCALL);
  17223. // void Text3D::SetWidth(int width)
  17224. engine->RegisterObjectMethod(className, "void SetWidth(int)", AS_METHODPR(T, SetWidth, (int), void), AS_CALL_THISCALL);
  17225. engine->RegisterObjectMethod(className, "void set_width(int)", AS_METHODPR(T, SetWidth, (int), void), AS_CALL_THISCALL);
  17226. // void Text3D::SetWordwrap(bool enable)
  17227. engine->RegisterObjectMethod(className, "void SetWordwrap(bool)", AS_METHODPR(T, SetWordwrap, (bool), void), AS_CALL_THISCALL);
  17228. engine->RegisterObjectMethod(className, "void set_wordwrap(bool)", AS_METHODPR(T, SetWordwrap, (bool), void), AS_CALL_THISCALL);
  17229. // virtual void Drawable::Update(const FrameInfo& frame)
  17230. engine->RegisterObjectMethod(className, "void Update(const FrameInfo&in)", AS_METHODPR(T, Update, (const FrameInfo&), void), AS_CALL_THISCALL);
  17231. #ifdef REGISTER_MEMBERS_MANUAL_PART_Text3D
  17232. REGISTER_MEMBERS_MANUAL_PART_Text3D();
  17233. #endif
  17234. }
  17235. // class Window | File: ../UI/Window.h
  17236. template <class T> void RegisterMembers_Window(asIScriptEngine* engine, const char* className)
  17237. {
  17238. RegisterMembers_BorderImage<T>(engine, className);
  17239. // bool Window::GetFixedHeightResizing() const
  17240. engine->RegisterObjectMethod(className, "bool GetFixedHeightResizing() const", AS_METHODPR(T, GetFixedHeightResizing, () const, bool), AS_CALL_THISCALL);
  17241. engine->RegisterObjectMethod(className, "bool get_fixedHeightResizing() const", AS_METHODPR(T, GetFixedHeightResizing, () const, bool), AS_CALL_THISCALL);
  17242. // bool Window::GetFixedWidthResizing() const
  17243. engine->RegisterObjectMethod(className, "bool GetFixedWidthResizing() const", AS_METHODPR(T, GetFixedWidthResizing, () const, bool), AS_CALL_THISCALL);
  17244. engine->RegisterObjectMethod(className, "bool get_fixedWidthResizing() const", AS_METHODPR(T, GetFixedWidthResizing, () const, bool), AS_CALL_THISCALL);
  17245. // bool Window::GetModalAutoDismiss() const
  17246. engine->RegisterObjectMethod(className, "bool GetModalAutoDismiss() const", AS_METHODPR(T, GetModalAutoDismiss, () const, bool), AS_CALL_THISCALL);
  17247. engine->RegisterObjectMethod(className, "bool get_modalAutoDismiss() const", AS_METHODPR(T, GetModalAutoDismiss, () const, bool), AS_CALL_THISCALL);
  17248. // const Color& Window::GetModalFrameColor() const
  17249. engine->RegisterObjectMethod(className, "const Color& GetModalFrameColor() const", AS_METHODPR(T, GetModalFrameColor, () const, const Color&), AS_CALL_THISCALL);
  17250. engine->RegisterObjectMethod(className, "const Color& get_modalFrameColor() const", AS_METHODPR(T, GetModalFrameColor, () const, const Color&), AS_CALL_THISCALL);
  17251. // const IntVector2& Window::GetModalFrameSize() const
  17252. engine->RegisterObjectMethod(className, "const IntVector2& GetModalFrameSize() const", AS_METHODPR(T, GetModalFrameSize, () const, const IntVector2&), AS_CALL_THISCALL);
  17253. engine->RegisterObjectMethod(className, "const IntVector2& get_modalFrameSize() const", AS_METHODPR(T, GetModalFrameSize, () const, const IntVector2&), AS_CALL_THISCALL);
  17254. // const Color& Window::GetModalShadeColor() const
  17255. engine->RegisterObjectMethod(className, "const Color& GetModalShadeColor() const", AS_METHODPR(T, GetModalShadeColor, () const, const Color&), AS_CALL_THISCALL);
  17256. engine->RegisterObjectMethod(className, "const Color& get_modalShadeColor() const", AS_METHODPR(T, GetModalShadeColor, () const, const Color&), AS_CALL_THISCALL);
  17257. // const IntRect& Window::GetResizeBorder() const
  17258. engine->RegisterObjectMethod(className, "const IntRect& GetResizeBorder() const", AS_METHODPR(T, GetResizeBorder, () const, const IntRect&), AS_CALL_THISCALL);
  17259. engine->RegisterObjectMethod(className, "const IntRect& get_resizeBorder() const", AS_METHODPR(T, GetResizeBorder, () const, const IntRect&), AS_CALL_THISCALL);
  17260. // bool Window::IsModal() const
  17261. engine->RegisterObjectMethod(className, "bool IsModal() const", AS_METHODPR(T, IsModal, () const, bool), AS_CALL_THISCALL);
  17262. engine->RegisterObjectMethod(className, "bool get_modal() const", AS_METHODPR(T, IsModal, () const, bool), AS_CALL_THISCALL);
  17263. // bool Window::IsMovable() const
  17264. engine->RegisterObjectMethod(className, "bool IsMovable() const", AS_METHODPR(T, IsMovable, () const, bool), AS_CALL_THISCALL);
  17265. engine->RegisterObjectMethod(className, "bool get_movable() const", AS_METHODPR(T, IsMovable, () const, bool), AS_CALL_THISCALL);
  17266. // bool Window::IsResizable() const
  17267. engine->RegisterObjectMethod(className, "bool IsResizable() const", AS_METHODPR(T, IsResizable, () const, bool), AS_CALL_THISCALL);
  17268. engine->RegisterObjectMethod(className, "bool get_resizable() const", AS_METHODPR(T, IsResizable, () const, bool), AS_CALL_THISCALL);
  17269. // void Window::SetFixedHeightResizing(bool enable)
  17270. engine->RegisterObjectMethod(className, "void SetFixedHeightResizing(bool)", AS_METHODPR(T, SetFixedHeightResizing, (bool), void), AS_CALL_THISCALL);
  17271. engine->RegisterObjectMethod(className, "void set_fixedHeightResizing(bool)", AS_METHODPR(T, SetFixedHeightResizing, (bool), void), AS_CALL_THISCALL);
  17272. // void Window::SetFixedWidthResizing(bool enable)
  17273. engine->RegisterObjectMethod(className, "void SetFixedWidthResizing(bool)", AS_METHODPR(T, SetFixedWidthResizing, (bool), void), AS_CALL_THISCALL);
  17274. engine->RegisterObjectMethod(className, "void set_fixedWidthResizing(bool)", AS_METHODPR(T, SetFixedWidthResizing, (bool), void), AS_CALL_THISCALL);
  17275. // void Window::SetModal(bool modal)
  17276. engine->RegisterObjectMethod(className, "void SetModal(bool)", AS_METHODPR(T, SetModal, (bool), void), AS_CALL_THISCALL);
  17277. engine->RegisterObjectMethod(className, "void set_modal(bool)", AS_METHODPR(T, SetModal, (bool), void), AS_CALL_THISCALL);
  17278. // void Window::SetModalAutoDismiss(bool enable)
  17279. engine->RegisterObjectMethod(className, "void SetModalAutoDismiss(bool)", AS_METHODPR(T, SetModalAutoDismiss, (bool), void), AS_CALL_THISCALL);
  17280. engine->RegisterObjectMethod(className, "void set_modalAutoDismiss(bool)", AS_METHODPR(T, SetModalAutoDismiss, (bool), void), AS_CALL_THISCALL);
  17281. // void Window::SetModalFrameColor(const Color& color)
  17282. engine->RegisterObjectMethod(className, "void SetModalFrameColor(const Color&in)", AS_METHODPR(T, SetModalFrameColor, (const Color&), void), AS_CALL_THISCALL);
  17283. engine->RegisterObjectMethod(className, "void set_modalFrameColor(const Color&in)", AS_METHODPR(T, SetModalFrameColor, (const Color&), void), AS_CALL_THISCALL);
  17284. // void Window::SetModalFrameSize(const IntVector2& size)
  17285. engine->RegisterObjectMethod(className, "void SetModalFrameSize(const IntVector2&in)", AS_METHODPR(T, SetModalFrameSize, (const IntVector2&), void), AS_CALL_THISCALL);
  17286. engine->RegisterObjectMethod(className, "void set_modalFrameSize(const IntVector2&in)", AS_METHODPR(T, SetModalFrameSize, (const IntVector2&), void), AS_CALL_THISCALL);
  17287. // void Window::SetModalShadeColor(const Color& color)
  17288. engine->RegisterObjectMethod(className, "void SetModalShadeColor(const Color&in)", AS_METHODPR(T, SetModalShadeColor, (const Color&), void), AS_CALL_THISCALL);
  17289. engine->RegisterObjectMethod(className, "void set_modalShadeColor(const Color&in)", AS_METHODPR(T, SetModalShadeColor, (const Color&), void), AS_CALL_THISCALL);
  17290. // void Window::SetMovable(bool enable)
  17291. engine->RegisterObjectMethod(className, "void SetMovable(bool)", AS_METHODPR(T, SetMovable, (bool), void), AS_CALL_THISCALL);
  17292. engine->RegisterObjectMethod(className, "void set_movable(bool)", AS_METHODPR(T, SetMovable, (bool), void), AS_CALL_THISCALL);
  17293. // void Window::SetResizable(bool enable)
  17294. engine->RegisterObjectMethod(className, "void SetResizable(bool)", AS_METHODPR(T, SetResizable, (bool), void), AS_CALL_THISCALL);
  17295. engine->RegisterObjectMethod(className, "void set_resizable(bool)", AS_METHODPR(T, SetResizable, (bool), void), AS_CALL_THISCALL);
  17296. // void Window::SetResizeBorder(const IntRect& rect)
  17297. engine->RegisterObjectMethod(className, "void SetResizeBorder(const IntRect&in)", AS_METHODPR(T, SetResizeBorder, (const IntRect&), void), AS_CALL_THISCALL);
  17298. engine->RegisterObjectMethod(className, "void set_resizeBorder(const IntRect&in)", AS_METHODPR(T, SetResizeBorder, (const IntRect&), void), AS_CALL_THISCALL);
  17299. #ifdef REGISTER_MEMBERS_MANUAL_PART_Window
  17300. REGISTER_MEMBERS_MANUAL_PART_Window();
  17301. #endif
  17302. }
  17303. // class Zone | File: ../Graphics/Zone.h
  17304. template <class T> void RegisterMembers_Zone(asIScriptEngine* engine, const char* className)
  17305. {
  17306. RegisterMembers_Drawable<T>(engine, className);
  17307. // const Color& Zone::GetAmbientColor() const
  17308. engine->RegisterObjectMethod(className, "const Color& GetAmbientColor() const", AS_METHODPR(T, GetAmbientColor, () const, const Color&), AS_CALL_THISCALL);
  17309. engine->RegisterObjectMethod(className, "const Color& get_ambientColor() const", AS_METHODPR(T, GetAmbientColor, () const, const Color&), AS_CALL_THISCALL);
  17310. // const Color& Zone::GetAmbientEndColor()
  17311. engine->RegisterObjectMethod(className, "const Color& GetAmbientEndColor()", AS_METHODPR(T, GetAmbientEndColor, (), const Color&), AS_CALL_THISCALL);
  17312. engine->RegisterObjectMethod(className, "const Color& get_ambientEndColor()", AS_METHODPR(T, GetAmbientEndColor, (), const Color&), AS_CALL_THISCALL);
  17313. // bool Zone::GetAmbientGradient() const
  17314. engine->RegisterObjectMethod(className, "bool GetAmbientGradient() const", AS_METHODPR(T, GetAmbientGradient, () const, bool), AS_CALL_THISCALL);
  17315. engine->RegisterObjectMethod(className, "bool get_ambientGradient() const", AS_METHODPR(T, GetAmbientGradient, () const, bool), AS_CALL_THISCALL);
  17316. // const Color& Zone::GetAmbientStartColor()
  17317. engine->RegisterObjectMethod(className, "const Color& GetAmbientStartColor()", AS_METHODPR(T, GetAmbientStartColor, (), const Color&), AS_CALL_THISCALL);
  17318. engine->RegisterObjectMethod(className, "const Color& get_ambientStartColor()", AS_METHODPR(T, GetAmbientStartColor, (), const Color&), AS_CALL_THISCALL);
  17319. // const Color& Zone::GetFogColor() const
  17320. engine->RegisterObjectMethod(className, "const Color& GetFogColor() const", AS_METHODPR(T, GetFogColor, () const, const Color&), AS_CALL_THISCALL);
  17321. engine->RegisterObjectMethod(className, "const Color& get_fogColor() const", AS_METHODPR(T, GetFogColor, () const, const Color&), AS_CALL_THISCALL);
  17322. // float Zone::GetFogEnd() const
  17323. engine->RegisterObjectMethod(className, "float GetFogEnd() const", AS_METHODPR(T, GetFogEnd, () const, float), AS_CALL_THISCALL);
  17324. engine->RegisterObjectMethod(className, "float get_fogEnd() const", AS_METHODPR(T, GetFogEnd, () const, float), AS_CALL_THISCALL);
  17325. // float Zone::GetFogHeight() const
  17326. engine->RegisterObjectMethod(className, "float GetFogHeight() const", AS_METHODPR(T, GetFogHeight, () const, float), AS_CALL_THISCALL);
  17327. engine->RegisterObjectMethod(className, "float get_fogHeight() const", AS_METHODPR(T, GetFogHeight, () const, float), AS_CALL_THISCALL);
  17328. // float Zone::GetFogHeightScale() const
  17329. engine->RegisterObjectMethod(className, "float GetFogHeightScale() const", AS_METHODPR(T, GetFogHeightScale, () const, float), AS_CALL_THISCALL);
  17330. engine->RegisterObjectMethod(className, "float get_fogHeightScale() const", AS_METHODPR(T, GetFogHeightScale, () const, float), AS_CALL_THISCALL);
  17331. // float Zone::GetFogStart() const
  17332. engine->RegisterObjectMethod(className, "float GetFogStart() const", AS_METHODPR(T, GetFogStart, () const, float), AS_CALL_THISCALL);
  17333. engine->RegisterObjectMethod(className, "float get_fogStart() const", AS_METHODPR(T, GetFogStart, () const, float), AS_CALL_THISCALL);
  17334. // bool Zone::GetHeightFog() const
  17335. engine->RegisterObjectMethod(className, "bool GetHeightFog() const", AS_METHODPR(T, GetHeightFog, () const, bool), AS_CALL_THISCALL);
  17336. engine->RegisterObjectMethod(className, "bool get_heightFog() const", AS_METHODPR(T, GetHeightFog, () const, bool), AS_CALL_THISCALL);
  17337. // const Matrix3x4& Zone::GetInverseWorldTransform() const
  17338. engine->RegisterObjectMethod(className, "const Matrix3x4& GetInverseWorldTransform() const", AS_METHODPR(T, GetInverseWorldTransform, () const, const Matrix3x4&), AS_CALL_THISCALL);
  17339. engine->RegisterObjectMethod(className, "const Matrix3x4& get_inverseWorldTransform() const", AS_METHODPR(T, GetInverseWorldTransform, () const, const Matrix3x4&), AS_CALL_THISCALL);
  17340. // bool Zone::GetOverride() const
  17341. engine->RegisterObjectMethod(className, "bool GetOverride() const", AS_METHODPR(T, GetOverride, () const, bool), AS_CALL_THISCALL);
  17342. engine->RegisterObjectMethod(className, "bool get_override() const", AS_METHODPR(T, GetOverride, () const, bool), AS_CALL_THISCALL);
  17343. // int Zone::GetPriority() const
  17344. engine->RegisterObjectMethod(className, "int GetPriority() const", AS_METHODPR(T, GetPriority, () const, int), AS_CALL_THISCALL);
  17345. engine->RegisterObjectMethod(className, "int get_priority() const", AS_METHODPR(T, GetPriority, () const, int), AS_CALL_THISCALL);
  17346. // Texture* Zone::GetZoneTexture() const
  17347. engine->RegisterObjectMethod(className, "Texture@+ GetZoneTexture() const", AS_METHODPR(T, GetZoneTexture, () const, Texture*), AS_CALL_THISCALL);
  17348. engine->RegisterObjectMethod(className, "Texture@+ get_zoneTexture() const", AS_METHODPR(T, GetZoneTexture, () const, Texture*), AS_CALL_THISCALL);
  17349. // ResourceRef Zone::GetZoneTextureAttr() const
  17350. engine->RegisterObjectMethod(className, "ResourceRef GetZoneTextureAttr() const", AS_METHODPR(T, GetZoneTextureAttr, () const, ResourceRef), AS_CALL_THISCALL);
  17351. // bool Zone::IsInside(const Vector3& point) const
  17352. engine->RegisterObjectMethod(className, "bool IsInside(const Vector3&in) const", AS_METHODPR(T, IsInside, (const Vector3&) const, bool), AS_CALL_THISCALL);
  17353. // void Zone::SetAmbientColor(const Color& color)
  17354. engine->RegisterObjectMethod(className, "void SetAmbientColor(const Color&in)", AS_METHODPR(T, SetAmbientColor, (const Color&), void), AS_CALL_THISCALL);
  17355. engine->RegisterObjectMethod(className, "void set_ambientColor(const Color&in)", AS_METHODPR(T, SetAmbientColor, (const Color&), void), AS_CALL_THISCALL);
  17356. // void Zone::SetAmbientGradient(bool enable)
  17357. engine->RegisterObjectMethod(className, "void SetAmbientGradient(bool)", AS_METHODPR(T, SetAmbientGradient, (bool), void), AS_CALL_THISCALL);
  17358. engine->RegisterObjectMethod(className, "void set_ambientGradient(bool)", AS_METHODPR(T, SetAmbientGradient, (bool), void), AS_CALL_THISCALL);
  17359. // void Zone::SetBoundingBox(const BoundingBox& box)
  17360. engine->RegisterObjectMethod(className, "void SetBoundingBox(const BoundingBox&in)", AS_METHODPR(T, SetBoundingBox, (const BoundingBox&), void), AS_CALL_THISCALL);
  17361. engine->RegisterObjectMethod(className, "void set_boundingBox(const BoundingBox&in)", AS_METHODPR(T, SetBoundingBox, (const BoundingBox&), void), AS_CALL_THISCALL);
  17362. // void Zone::SetFogColor(const Color& color)
  17363. engine->RegisterObjectMethod(className, "void SetFogColor(const Color&in)", AS_METHODPR(T, SetFogColor, (const Color&), void), AS_CALL_THISCALL);
  17364. engine->RegisterObjectMethod(className, "void set_fogColor(const Color&in)", AS_METHODPR(T, SetFogColor, (const Color&), void), AS_CALL_THISCALL);
  17365. // void Zone::SetFogEnd(float end)
  17366. engine->RegisterObjectMethod(className, "void SetFogEnd(float)", AS_METHODPR(T, SetFogEnd, (float), void), AS_CALL_THISCALL);
  17367. engine->RegisterObjectMethod(className, "void set_fogEnd(float)", AS_METHODPR(T, SetFogEnd, (float), void), AS_CALL_THISCALL);
  17368. // void Zone::SetFogHeight(float height)
  17369. engine->RegisterObjectMethod(className, "void SetFogHeight(float)", AS_METHODPR(T, SetFogHeight, (float), void), AS_CALL_THISCALL);
  17370. engine->RegisterObjectMethod(className, "void set_fogHeight(float)", AS_METHODPR(T, SetFogHeight, (float), void), AS_CALL_THISCALL);
  17371. // void Zone::SetFogHeightScale(float scale)
  17372. engine->RegisterObjectMethod(className, "void SetFogHeightScale(float)", AS_METHODPR(T, SetFogHeightScale, (float), void), AS_CALL_THISCALL);
  17373. engine->RegisterObjectMethod(className, "void set_fogHeightScale(float)", AS_METHODPR(T, SetFogHeightScale, (float), void), AS_CALL_THISCALL);
  17374. // void Zone::SetFogStart(float start)
  17375. engine->RegisterObjectMethod(className, "void SetFogStart(float)", AS_METHODPR(T, SetFogStart, (float), void), AS_CALL_THISCALL);
  17376. engine->RegisterObjectMethod(className, "void set_fogStart(float)", AS_METHODPR(T, SetFogStart, (float), void), AS_CALL_THISCALL);
  17377. // void Zone::SetHeightFog(bool enable)
  17378. engine->RegisterObjectMethod(className, "void SetHeightFog(bool)", AS_METHODPR(T, SetHeightFog, (bool), void), AS_CALL_THISCALL);
  17379. engine->RegisterObjectMethod(className, "void set_heightFog(bool)", AS_METHODPR(T, SetHeightFog, (bool), void), AS_CALL_THISCALL);
  17380. // void Zone::SetOverride(bool enable)
  17381. engine->RegisterObjectMethod(className, "void SetOverride(bool)", AS_METHODPR(T, SetOverride, (bool), void), AS_CALL_THISCALL);
  17382. engine->RegisterObjectMethod(className, "void set_override(bool)", AS_METHODPR(T, SetOverride, (bool), void), AS_CALL_THISCALL);
  17383. // void Zone::SetPriority(int priority)
  17384. engine->RegisterObjectMethod(className, "void SetPriority(int)", AS_METHODPR(T, SetPriority, (int), void), AS_CALL_THISCALL);
  17385. engine->RegisterObjectMethod(className, "void set_priority(int)", AS_METHODPR(T, SetPriority, (int), void), AS_CALL_THISCALL);
  17386. // void Zone::SetZoneTexture(Texture* texture)
  17387. engine->RegisterObjectMethod(className, "void SetZoneTexture(Texture@+)", AS_METHODPR(T, SetZoneTexture, (Texture*), void), AS_CALL_THISCALL);
  17388. engine->RegisterObjectMethod(className, "void set_zoneTexture(Texture@+)", AS_METHODPR(T, SetZoneTexture, (Texture*), void), AS_CALL_THISCALL);
  17389. // void Zone::SetZoneTextureAttr(const ResourceRef& value)
  17390. engine->RegisterObjectMethod(className, "void SetZoneTextureAttr(const ResourceRef&in)", AS_METHODPR(T, SetZoneTextureAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  17391. // virtual void Drawable::Update(const FrameInfo& frame)
  17392. engine->RegisterObjectMethod(className, "void Update(const FrameInfo&in)", AS_METHODPR(T, Update, (const FrameInfo&), void), AS_CALL_THISCALL);
  17393. #ifdef REGISTER_MEMBERS_MANUAL_PART_Zone
  17394. REGISTER_MEMBERS_MANUAL_PART_Zone();
  17395. #endif
  17396. }
  17397. #ifdef URHO3D_NAVIGATION
  17398. // class DynamicNavigationMesh | File: ../Navigation/DynamicNavigationMesh.h
  17399. template <class T> void RegisterMembers_DynamicNavigationMesh(asIScriptEngine* engine, const char* className)
  17400. {
  17401. RegisterMembers_NavigationMesh<T>(engine, className);
  17402. // bool DynamicNavigationMesh::GetDrawObstacles() const
  17403. engine->RegisterObjectMethod(className, "bool GetDrawObstacles() const", AS_METHODPR(T, GetDrawObstacles, () const, bool), AS_CALL_THISCALL);
  17404. engine->RegisterObjectMethod(className, "bool get_drawObstacles() const", AS_METHODPR(T, GetDrawObstacles, () const, bool), AS_CALL_THISCALL);
  17405. // unsigned DynamicNavigationMesh::GetMaxLayers() const
  17406. engine->RegisterObjectMethod(className, "uint GetMaxLayers() const", AS_METHODPR(T, GetMaxLayers, () const, unsigned), AS_CALL_THISCALL);
  17407. engine->RegisterObjectMethod(className, "uint get_maxLayers() const", AS_METHODPR(T, GetMaxLayers, () const, unsigned), AS_CALL_THISCALL);
  17408. // unsigned DynamicNavigationMesh::GetMaxObstacles() const
  17409. engine->RegisterObjectMethod(className, "uint GetMaxObstacles() const", AS_METHODPR(T, GetMaxObstacles, () const, unsigned), AS_CALL_THISCALL);
  17410. engine->RegisterObjectMethod(className, "uint get_maxObstacles() const", AS_METHODPR(T, GetMaxObstacles, () const, unsigned), AS_CALL_THISCALL);
  17411. // bool DynamicNavigationMesh::IsObstacleInTile(Obstacle* obstacle, const IntVector2& tile) const
  17412. engine->RegisterObjectMethod(className, "bool IsObstacleInTile(Obstacle@+, const IntVector2&in) const", AS_METHODPR(T, IsObstacleInTile, (Obstacle*, const IntVector2&) const, bool), AS_CALL_THISCALL);
  17413. // void DynamicNavigationMesh::SetDrawObstacles(bool enable)
  17414. engine->RegisterObjectMethod(className, "void SetDrawObstacles(bool)", AS_METHODPR(T, SetDrawObstacles, (bool), void), AS_CALL_THISCALL);
  17415. engine->RegisterObjectMethod(className, "void set_drawObstacles(bool)", AS_METHODPR(T, SetDrawObstacles, (bool), void), AS_CALL_THISCALL);
  17416. // void DynamicNavigationMesh::SetMaxLayers(unsigned maxLayers)
  17417. engine->RegisterObjectMethod(className, "void SetMaxLayers(uint)", AS_METHODPR(T, SetMaxLayers, (unsigned), void), AS_CALL_THISCALL);
  17418. engine->RegisterObjectMethod(className, "void set_maxLayers(uint)", AS_METHODPR(T, SetMaxLayers, (unsigned), void), AS_CALL_THISCALL);
  17419. // void DynamicNavigationMesh::SetMaxObstacles(unsigned maxObstacles)
  17420. engine->RegisterObjectMethod(className, "void SetMaxObstacles(uint)", AS_METHODPR(T, SetMaxObstacles, (unsigned), void), AS_CALL_THISCALL);
  17421. engine->RegisterObjectMethod(className, "void set_maxObstacles(uint)", AS_METHODPR(T, SetMaxObstacles, (unsigned), void), AS_CALL_THISCALL);
  17422. #ifdef REGISTER_MEMBERS_MANUAL_PART_DynamicNavigationMesh
  17423. REGISTER_MEMBERS_MANUAL_PART_DynamicNavigationMesh();
  17424. #endif
  17425. }
  17426. #endif // def URHO3D_NAVIGATION
  17427. #ifdef URHO3D_PHYSICS
  17428. // class RaycastVehicle | File: ../Physics/RaycastVehicle.h
  17429. template <class T> void RegisterMembers_RaycastVehicle(asIScriptEngine* engine, const char* className)
  17430. {
  17431. RegisterMembers_LogicComponent<T>(engine, className);
  17432. // VariantVector RaycastVehicle::GetWheelDataAttr() const
  17433. // Error: type "VariantVector" can not automatically bind
  17434. // void RaycastVehicle::SetWheelDataAttr(const VariantVector& value)
  17435. // Error: type "const VariantVector&" can not automatically bind
  17436. // void RaycastVehicle::AddWheel(Node* wheelNode, Vector3 wheelDirection, Vector3 wheelAxle, float restLength, float wheelRadius, bool frontWheel)
  17437. engine->RegisterObjectMethod(className, "void AddWheel(Node@+, Vector3, Vector3, float, float, bool)", AS_METHODPR(T, AddWheel, (Node*, Vector3, Vector3, float, float, bool), void), AS_CALL_THISCALL);
  17438. // void RaycastVehicle::FixedPostUpdate(float timeStep) override
  17439. engine->RegisterObjectMethod(className, "void FixedPostUpdate(float)", AS_METHODPR(T, FixedPostUpdate, (float), void), AS_CALL_THISCALL);
  17440. // void RaycastVehicle::FixedUpdate(float timeStep) override
  17441. engine->RegisterObjectMethod(className, "void FixedUpdate(float)", AS_METHODPR(T, FixedUpdate, (float), void), AS_CALL_THISCALL);
  17442. // float RaycastVehicle::GetBrake(int wheel) const
  17443. engine->RegisterObjectMethod(className, "float GetBrake(int) const", AS_METHODPR(T, GetBrake, (int) const, float), AS_CALL_THISCALL);
  17444. // Vector3 RaycastVehicle::GetContactNormal(int wheel) const
  17445. engine->RegisterObjectMethod(className, "Vector3 GetContactNormal(int) const", AS_METHODPR(T, GetContactNormal, (int) const, Vector3), AS_CALL_THISCALL);
  17446. // Vector3 RaycastVehicle::GetContactPosition(int wheel) const
  17447. engine->RegisterObjectMethod(className, "Vector3 GetContactPosition(int) const", AS_METHODPR(T, GetContactPosition, (int) const, Vector3), AS_CALL_THISCALL);
  17448. // IntVector3 RaycastVehicle::GetCoordinateSystem() const
  17449. engine->RegisterObjectMethod(className, "IntVector3 GetCoordinateSystem() const", AS_METHODPR(T, GetCoordinateSystem, () const, IntVector3), AS_CALL_THISCALL);
  17450. engine->RegisterObjectMethod(className, "IntVector3 get_coordinateSystem() const", AS_METHODPR(T, GetCoordinateSystem, () const, IntVector3), AS_CALL_THISCALL);
  17451. // float RaycastVehicle::GetEngineForce(int wheel) const
  17452. engine->RegisterObjectMethod(className, "float GetEngineForce(int) const", AS_METHODPR(T, GetEngineForce, (int) const, float), AS_CALL_THISCALL);
  17453. // float RaycastVehicle::GetInAirRPM() const
  17454. engine->RegisterObjectMethod(className, "float GetInAirRPM() const", AS_METHODPR(T, GetInAirRPM, () const, float), AS_CALL_THISCALL);
  17455. engine->RegisterObjectMethod(className, "float get_inAirRPM() const", AS_METHODPR(T, GetInAirRPM, () const, float), AS_CALL_THISCALL);
  17456. // float RaycastVehicle::GetMaxSideSlipSpeed() const
  17457. engine->RegisterObjectMethod(className, "float GetMaxSideSlipSpeed() const", AS_METHODPR(T, GetMaxSideSlipSpeed, () const, float), AS_CALL_THISCALL);
  17458. engine->RegisterObjectMethod(className, "float get_maxSideSlipSpeed() const", AS_METHODPR(T, GetMaxSideSlipSpeed, () const, float), AS_CALL_THISCALL);
  17459. // float RaycastVehicle::GetMaxSuspensionTravel(int wheel)
  17460. engine->RegisterObjectMethod(className, "float GetMaxSuspensionTravel(int)", AS_METHODPR(T, GetMaxSuspensionTravel, (int), float), AS_CALL_THISCALL);
  17461. // int RaycastVehicle::GetNumWheels() const
  17462. engine->RegisterObjectMethod(className, "int GetNumWheels() const", AS_METHODPR(T, GetNumWheels, () const, int), AS_CALL_THISCALL);
  17463. engine->RegisterObjectMethod(className, "int get_numWheels() const", AS_METHODPR(T, GetNumWheels, () const, int), AS_CALL_THISCALL);
  17464. // float RaycastVehicle::GetSteeringValue(int wheel) const
  17465. engine->RegisterObjectMethod(className, "float GetSteeringValue(int) const", AS_METHODPR(T, GetSteeringValue, (int) const, float), AS_CALL_THISCALL);
  17466. // Vector3 RaycastVehicle::GetWheelAxle(int wheel) const
  17467. engine->RegisterObjectMethod(className, "Vector3 GetWheelAxle(int) const", AS_METHODPR(T, GetWheelAxle, (int) const, Vector3), AS_CALL_THISCALL);
  17468. // Vector3 RaycastVehicle::GetWheelConnectionPoint(int wheel) const
  17469. engine->RegisterObjectMethod(className, "Vector3 GetWheelConnectionPoint(int) const", AS_METHODPR(T, GetWheelConnectionPoint, (int) const, Vector3), AS_CALL_THISCALL);
  17470. // float RaycastVehicle::GetWheelDampingCompression(int wheel) const
  17471. engine->RegisterObjectMethod(className, "float GetWheelDampingCompression(int) const", AS_METHODPR(T, GetWheelDampingCompression, (int) const, float), AS_CALL_THISCALL);
  17472. // float RaycastVehicle::GetWheelDampingRelaxation(int wheel) const
  17473. engine->RegisterObjectMethod(className, "float GetWheelDampingRelaxation(int) const", AS_METHODPR(T, GetWheelDampingRelaxation, (int) const, float), AS_CALL_THISCALL);
  17474. // Vector3 RaycastVehicle::GetWheelDirection(int wheel) const
  17475. engine->RegisterObjectMethod(className, "Vector3 GetWheelDirection(int) const", AS_METHODPR(T, GetWheelDirection, (int) const, Vector3), AS_CALL_THISCALL);
  17476. // float RaycastVehicle::GetWheelFrictionSlip(int wheel) const
  17477. engine->RegisterObjectMethod(className, "float GetWheelFrictionSlip(int) const", AS_METHODPR(T, GetWheelFrictionSlip, (int) const, float), AS_CALL_THISCALL);
  17478. // float RaycastVehicle::GetWheelMaxSuspensionForce(int wheel) const
  17479. engine->RegisterObjectMethod(className, "float GetWheelMaxSuspensionForce(int) const", AS_METHODPR(T, GetWheelMaxSuspensionForce, (int) const, float), AS_CALL_THISCALL);
  17480. // Node* RaycastVehicle::GetWheelNode(int wheel) const
  17481. engine->RegisterObjectMethod(className, "Node@+ GetWheelNode(int) const", AS_METHODPR(T, GetWheelNode, (int) const, Node*), AS_CALL_THISCALL);
  17482. // Vector3 RaycastVehicle::GetWheelPosition(int wheel)
  17483. engine->RegisterObjectMethod(className, "Vector3 GetWheelPosition(int)", AS_METHODPR(T, GetWheelPosition, (int), Vector3), AS_CALL_THISCALL);
  17484. // float RaycastVehicle::GetWheelRadius(int wheel) const
  17485. engine->RegisterObjectMethod(className, "float GetWheelRadius(int) const", AS_METHODPR(T, GetWheelRadius, (int) const, float), AS_CALL_THISCALL);
  17486. // float RaycastVehicle::GetWheelRestLength(int wheel) const
  17487. engine->RegisterObjectMethod(className, "float GetWheelRestLength(int) const", AS_METHODPR(T, GetWheelRestLength, (int) const, float), AS_CALL_THISCALL);
  17488. // float RaycastVehicle::GetWheelRollInfluence(int wheel) const
  17489. engine->RegisterObjectMethod(className, "float GetWheelRollInfluence(int) const", AS_METHODPR(T, GetWheelRollInfluence, (int) const, float), AS_CALL_THISCALL);
  17490. // Quaternion RaycastVehicle::GetWheelRotation(int wheel)
  17491. engine->RegisterObjectMethod(className, "Quaternion GetWheelRotation(int)", AS_METHODPR(T, GetWheelRotation, (int), Quaternion), AS_CALL_THISCALL);
  17492. // float RaycastVehicle::GetWheelSideSlipSpeed(int wheel) const
  17493. engine->RegisterObjectMethod(className, "float GetWheelSideSlipSpeed(int) const", AS_METHODPR(T, GetWheelSideSlipSpeed, (int) const, float), AS_CALL_THISCALL);
  17494. // float RaycastVehicle::GetWheelSkidInfo(int wheel) const
  17495. engine->RegisterObjectMethod(className, "float GetWheelSkidInfo(int) const", AS_METHODPR(T, GetWheelSkidInfo, (int) const, float), AS_CALL_THISCALL);
  17496. // float RaycastVehicle::GetWheelSkidInfoCumulative(int wheel) const
  17497. engine->RegisterObjectMethod(className, "float GetWheelSkidInfoCumulative(int) const", AS_METHODPR(T, GetWheelSkidInfoCumulative, (int) const, float), AS_CALL_THISCALL);
  17498. // float RaycastVehicle::GetWheelSuspensionStiffness(int wheel) const
  17499. engine->RegisterObjectMethod(className, "float GetWheelSuspensionStiffness(int) const", AS_METHODPR(T, GetWheelSuspensionStiffness, (int) const, float), AS_CALL_THISCALL);
  17500. // void RaycastVehicle::Init()
  17501. engine->RegisterObjectMethod(className, "void Init()", AS_METHODPR(T, Init, (), void), AS_CALL_THISCALL);
  17502. // bool RaycastVehicle::IsFrontWheel(int wheel) const
  17503. engine->RegisterObjectMethod(className, "bool IsFrontWheel(int) const", AS_METHODPR(T, IsFrontWheel, (int) const, bool), AS_CALL_THISCALL);
  17504. // void RaycastVehicle::OnSetEnabled() override
  17505. engine->RegisterObjectMethod(className, "void OnSetEnabled()", AS_METHODPR(T, OnSetEnabled, (), void), AS_CALL_THISCALL);
  17506. // void RaycastVehicle::PostUpdate(float timeStep) override
  17507. engine->RegisterObjectMethod(className, "void PostUpdate(float)", AS_METHODPR(T, PostUpdate, (float), void), AS_CALL_THISCALL);
  17508. // void RaycastVehicle::ResetSuspension()
  17509. engine->RegisterObjectMethod(className, "void ResetSuspension()", AS_METHODPR(T, ResetSuspension, (), void), AS_CALL_THISCALL);
  17510. // void RaycastVehicle::ResetWheels()
  17511. engine->RegisterObjectMethod(className, "void ResetWheels()", AS_METHODPR(T, ResetWheels, (), void), AS_CALL_THISCALL);
  17512. // void RaycastVehicle::SetBrake(int wheel, float force)
  17513. engine->RegisterObjectMethod(className, "void SetBrake(int, float)", AS_METHODPR(T, SetBrake, (int, float), void), AS_CALL_THISCALL);
  17514. // void RaycastVehicle::SetCoordinateSystem(const IntVector3& coordinateSystem = RIGHT_FORWARD_UP)
  17515. engine->RegisterObjectMethod(className, "void SetCoordinateSystem(const IntVector3&in = RIGHT_FORWARD_UP)", AS_METHODPR(T, SetCoordinateSystem, (const IntVector3&), void), AS_CALL_THISCALL);
  17516. engine->RegisterObjectMethod(className, "void set_coordinateSystem(const IntVector3&in = RIGHT_FORWARD_UP)", AS_METHODPR(T, SetCoordinateSystem, (const IntVector3&), void), AS_CALL_THISCALL);
  17517. // void RaycastVehicle::SetEngineForce(int wheel, float force)
  17518. engine->RegisterObjectMethod(className, "void SetEngineForce(int, float)", AS_METHODPR(T, SetEngineForce, (int, float), void), AS_CALL_THISCALL);
  17519. // void RaycastVehicle::SetInAirRPM(float rpm)
  17520. engine->RegisterObjectMethod(className, "void SetInAirRPM(float)", AS_METHODPR(T, SetInAirRPM, (float), void), AS_CALL_THISCALL);
  17521. engine->RegisterObjectMethod(className, "void set_inAirRPM(float)", AS_METHODPR(T, SetInAirRPM, (float), void), AS_CALL_THISCALL);
  17522. // void RaycastVehicle::SetMaxSideSlipSpeed(float speed)
  17523. engine->RegisterObjectMethod(className, "void SetMaxSideSlipSpeed(float)", AS_METHODPR(T, SetMaxSideSlipSpeed, (float), void), AS_CALL_THISCALL);
  17524. engine->RegisterObjectMethod(className, "void set_maxSideSlipSpeed(float)", AS_METHODPR(T, SetMaxSideSlipSpeed, (float), void), AS_CALL_THISCALL);
  17525. // void RaycastVehicle::SetMaxSuspensionTravel(int wheel, float maxSuspensionTravel)
  17526. engine->RegisterObjectMethod(className, "void SetMaxSuspensionTravel(int, float)", AS_METHODPR(T, SetMaxSuspensionTravel, (int, float), void), AS_CALL_THISCALL);
  17527. // void RaycastVehicle::SetSteeringValue(int wheel, float steeringValue)
  17528. engine->RegisterObjectMethod(className, "void SetSteeringValue(int, float)", AS_METHODPR(T, SetSteeringValue, (int, float), void), AS_CALL_THISCALL);
  17529. // void RaycastVehicle::SetWheelAxle(int wheel, Vector3 axle)
  17530. engine->RegisterObjectMethod(className, "void SetWheelAxle(int, Vector3)", AS_METHODPR(T, SetWheelAxle, (int, Vector3), void), AS_CALL_THISCALL);
  17531. // void RaycastVehicle::SetWheelDampingCompression(int wheel, float compression)
  17532. engine->RegisterObjectMethod(className, "void SetWheelDampingCompression(int, float)", AS_METHODPR(T, SetWheelDampingCompression, (int, float), void), AS_CALL_THISCALL);
  17533. // void RaycastVehicle::SetWheelDampingRelaxation(int wheel, float damping)
  17534. engine->RegisterObjectMethod(className, "void SetWheelDampingRelaxation(int, float)", AS_METHODPR(T, SetWheelDampingRelaxation, (int, float), void), AS_CALL_THISCALL);
  17535. // void RaycastVehicle::SetWheelDirection(int wheel, Vector3 direction)
  17536. engine->RegisterObjectMethod(className, "void SetWheelDirection(int, Vector3)", AS_METHODPR(T, SetWheelDirection, (int, Vector3), void), AS_CALL_THISCALL);
  17537. // void RaycastVehicle::SetWheelFrictionSlip(int wheel, float slip)
  17538. engine->RegisterObjectMethod(className, "void SetWheelFrictionSlip(int, float)", AS_METHODPR(T, SetWheelFrictionSlip, (int, float), void), AS_CALL_THISCALL);
  17539. // void RaycastVehicle::SetWheelMaxSuspensionForce(int wheel, float force)
  17540. engine->RegisterObjectMethod(className, "void SetWheelMaxSuspensionForce(int, float)", AS_METHODPR(T, SetWheelMaxSuspensionForce, (int, float), void), AS_CALL_THISCALL);
  17541. // void RaycastVehicle::SetWheelRadius(int wheel, float wheelRadius)
  17542. engine->RegisterObjectMethod(className, "void SetWheelRadius(int, float)", AS_METHODPR(T, SetWheelRadius, (int, float), void), AS_CALL_THISCALL);
  17543. // void RaycastVehicle::SetWheelRestLength(int wheel, float length)
  17544. engine->RegisterObjectMethod(className, "void SetWheelRestLength(int, float)", AS_METHODPR(T, SetWheelRestLength, (int, float), void), AS_CALL_THISCALL);
  17545. // void RaycastVehicle::SetWheelRollInfluence(int wheel, float rollInfluence)
  17546. engine->RegisterObjectMethod(className, "void SetWheelRollInfluence(int, float)", AS_METHODPR(T, SetWheelRollInfluence, (int, float), void), AS_CALL_THISCALL);
  17547. // void RaycastVehicle::SetWheelSkidInfo(int wheel, float factor)
  17548. engine->RegisterObjectMethod(className, "void SetWheelSkidInfo(int, float)", AS_METHODPR(T, SetWheelSkidInfo, (int, float), void), AS_CALL_THISCALL);
  17549. // void RaycastVehicle::SetWheelSkidInfoCumulative(int wheel, float skid)
  17550. engine->RegisterObjectMethod(className, "void SetWheelSkidInfoCumulative(int, float)", AS_METHODPR(T, SetWheelSkidInfoCumulative, (int, float), void), AS_CALL_THISCALL);
  17551. // void RaycastVehicle::SetWheelSuspensionStiffness(int wheel, float stiffness)
  17552. engine->RegisterObjectMethod(className, "void SetWheelSuspensionStiffness(int, float)", AS_METHODPR(T, SetWheelSuspensionStiffness, (int, float), void), AS_CALL_THISCALL);
  17553. // void RaycastVehicle::UpdateWheelTransform(int wheel, bool interpolated)
  17554. engine->RegisterObjectMethod(className, "void UpdateWheelTransform(int, bool)", AS_METHODPR(T, UpdateWheelTransform, (int, bool), void), AS_CALL_THISCALL);
  17555. // bool RaycastVehicle::WheelIsGrounded(int wheel) const
  17556. engine->RegisterObjectMethod(className, "bool WheelIsGrounded(int) const", AS_METHODPR(T, WheelIsGrounded, (int) const, bool), AS_CALL_THISCALL);
  17557. // static const IntVector3 RaycastVehicle::RIGHT_UP_FORWARD
  17558. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector3 RIGHT_UP_FORWARD", (void*)&T::RIGHT_UP_FORWARD);engine->SetDefaultNamespace("");
  17559. // static const IntVector3 RaycastVehicle::RIGHT_FORWARD_UP
  17560. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector3 RIGHT_FORWARD_UP", (void*)&T::RIGHT_FORWARD_UP);engine->SetDefaultNamespace("");
  17561. // static const IntVector3 RaycastVehicle::UP_FORWARD_RIGHT
  17562. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector3 UP_FORWARD_RIGHT", (void*)&T::UP_FORWARD_RIGHT);engine->SetDefaultNamespace("");
  17563. // static const IntVector3 RaycastVehicle::UP_RIGHT_FORWARD
  17564. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector3 UP_RIGHT_FORWARD", (void*)&T::UP_RIGHT_FORWARD);engine->SetDefaultNamespace("");
  17565. // static const IntVector3 RaycastVehicle::FORWARD_RIGHT_UP
  17566. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector3 FORWARD_RIGHT_UP", (void*)&T::FORWARD_RIGHT_UP);engine->SetDefaultNamespace("");
  17567. // static const IntVector3 RaycastVehicle::FORWARD_UP_RIGHT
  17568. engine->SetDefaultNamespace(className);engine->RegisterGlobalProperty("const IntVector3 FORWARD_UP_RIGHT", (void*)&T::FORWARD_UP_RIGHT);engine->SetDefaultNamespace("");
  17569. #ifdef REGISTER_MEMBERS_MANUAL_PART_RaycastVehicle
  17570. REGISTER_MEMBERS_MANUAL_PART_RaycastVehicle();
  17571. #endif
  17572. }
  17573. #endif // def URHO3D_PHYSICS
  17574. #ifdef URHO3D_PHYSICS2D
  17575. // class CollisionBox2D | File: ../Physics2D/CollisionBox2D.h
  17576. template <class T> void RegisterMembers_CollisionBox2D(asIScriptEngine* engine, const char* className)
  17577. {
  17578. RegisterMembers_CollisionShape2D<T>(engine, className);
  17579. // float CollisionBox2D::GetAngle() const
  17580. engine->RegisterObjectMethod(className, "float GetAngle() const", AS_METHODPR(T, GetAngle, () const, float), AS_CALL_THISCALL);
  17581. engine->RegisterObjectMethod(className, "float get_angle() const", AS_METHODPR(T, GetAngle, () const, float), AS_CALL_THISCALL);
  17582. // const Vector2& CollisionBox2D::GetCenter() const
  17583. engine->RegisterObjectMethod(className, "const Vector2& GetCenter() const", AS_METHODPR(T, GetCenter, () const, const Vector2&), AS_CALL_THISCALL);
  17584. engine->RegisterObjectMethod(className, "const Vector2& get_center() const", AS_METHODPR(T, GetCenter, () const, const Vector2&), AS_CALL_THISCALL);
  17585. // const Vector2& CollisionBox2D::GetSize() const
  17586. engine->RegisterObjectMethod(className, "const Vector2& GetSize() const", AS_METHODPR(T, GetSize, () const, const Vector2&), AS_CALL_THISCALL);
  17587. engine->RegisterObjectMethod(className, "const Vector2& get_size() const", AS_METHODPR(T, GetSize, () const, const Vector2&), AS_CALL_THISCALL);
  17588. // void CollisionBox2D::SetAngle(float angle)
  17589. engine->RegisterObjectMethod(className, "void SetAngle(float)", AS_METHODPR(T, SetAngle, (float), void), AS_CALL_THISCALL);
  17590. engine->RegisterObjectMethod(className, "void set_angle(float)", AS_METHODPR(T, SetAngle, (float), void), AS_CALL_THISCALL);
  17591. // void CollisionBox2D::SetCenter(const Vector2& center)
  17592. engine->RegisterObjectMethod(className, "void SetCenter(const Vector2&in)", AS_METHODPR(T, SetCenter, (const Vector2&), void), AS_CALL_THISCALL);
  17593. engine->RegisterObjectMethod(className, "void set_center(const Vector2&in)", AS_METHODPR(T, SetCenter, (const Vector2&), void), AS_CALL_THISCALL);
  17594. // void CollisionBox2D::SetCenter(float x, float y)
  17595. engine->RegisterObjectMethod(className, "void SetCenter(float, float)", AS_METHODPR(T, SetCenter, (float, float), void), AS_CALL_THISCALL);
  17596. // void CollisionBox2D::SetSize(const Vector2& size)
  17597. engine->RegisterObjectMethod(className, "void SetSize(const Vector2&in)", AS_METHODPR(T, SetSize, (const Vector2&), void), AS_CALL_THISCALL);
  17598. engine->RegisterObjectMethod(className, "void set_size(const Vector2&in)", AS_METHODPR(T, SetSize, (const Vector2&), void), AS_CALL_THISCALL);
  17599. // void CollisionBox2D::SetSize(float width, float height)
  17600. engine->RegisterObjectMethod(className, "void SetSize(float, float)", AS_METHODPR(T, SetSize, (float, float), void), AS_CALL_THISCALL);
  17601. #ifdef REGISTER_MEMBERS_MANUAL_PART_CollisionBox2D
  17602. REGISTER_MEMBERS_MANUAL_PART_CollisionBox2D();
  17603. #endif
  17604. }
  17605. // const PODVector<Vector2>& CollisionChain2D::GetVertices() const
  17606. template <class T> CScriptArray* CollisionChain2D_constspPODVectorlesVector2greamp_GetVertices_void_template(T* _ptr)
  17607. {
  17608. const PODVector<Vector2>& result = _ptr->GetVertices();
  17609. return VectorToArray(result, "Array<Vector2>");
  17610. }
  17611. // void CollisionChain2D::SetVertices(const PODVector<Vector2>& vertices)
  17612. template <class T> void CollisionChain2D_void_SetVertices_constspPODVectorlesVector2greamp_template(T* _ptr, CScriptArray* vertices_conv)
  17613. {
  17614. PODVector<Vector2> vertices = ArrayToPODVector<Vector2>(vertices_conv);
  17615. _ptr->SetVertices(vertices);
  17616. }
  17617. // class CollisionChain2D | File: ../Physics2D/CollisionChain2D.h
  17618. template <class T> void RegisterMembers_CollisionChain2D(asIScriptEngine* engine, const char* className)
  17619. {
  17620. RegisterMembers_CollisionShape2D<T>(engine, className);
  17621. // PODVector<unsigned char> CollisionChain2D::GetVerticesAttr() const
  17622. // Error: type "PODVector<unsigned char>" can not automatically bind
  17623. // void CollisionChain2D::SetVerticesAttr(const PODVector<unsigned char>& value)
  17624. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  17625. // bool CollisionChain2D::GetLoop() const
  17626. engine->RegisterObjectMethod(className, "bool GetLoop() const", AS_METHODPR(T, GetLoop, () const, bool), AS_CALL_THISCALL);
  17627. engine->RegisterObjectMethod(className, "bool get_loop() const", AS_METHODPR(T, GetLoop, () const, bool), AS_CALL_THISCALL);
  17628. // const Vector2& CollisionChain2D::GetVertex(unsigned index) const
  17629. engine->RegisterObjectMethod(className, "const Vector2& GetVertex(uint) const", AS_METHODPR(T, GetVertex, (unsigned) const, const Vector2&), AS_CALL_THISCALL);
  17630. // unsigned CollisionChain2D::GetVertexCount() const
  17631. engine->RegisterObjectMethod(className, "uint GetVertexCount() const", AS_METHODPR(T, GetVertexCount, () const, unsigned), AS_CALL_THISCALL);
  17632. engine->RegisterObjectMethod(className, "uint get_vertexCount() const", AS_METHODPR(T, GetVertexCount, () const, unsigned), AS_CALL_THISCALL);
  17633. // const PODVector<Vector2>& CollisionChain2D::GetVertices() const
  17634. engine->RegisterObjectMethod(className, "Array<Vector2>@ GetVertices() const", AS_FUNCTION_OBJFIRST(CollisionChain2D_constspPODVectorlesVector2greamp_GetVertices_void_template<CollisionChain2D>), AS_CALL_CDECL_OBJFIRST);
  17635. // void CollisionChain2D::SetLoop(bool loop)
  17636. engine->RegisterObjectMethod(className, "void SetLoop(bool)", AS_METHODPR(T, SetLoop, (bool), void), AS_CALL_THISCALL);
  17637. engine->RegisterObjectMethod(className, "void set_loop(bool)", AS_METHODPR(T, SetLoop, (bool), void), AS_CALL_THISCALL);
  17638. // void CollisionChain2D::SetVertex(unsigned index, const Vector2& vertex)
  17639. engine->RegisterObjectMethod(className, "void SetVertex(uint, const Vector2&in)", AS_METHODPR(T, SetVertex, (unsigned, const Vector2&), void), AS_CALL_THISCALL);
  17640. // void CollisionChain2D::SetVertexCount(unsigned count)
  17641. engine->RegisterObjectMethod(className, "void SetVertexCount(uint)", AS_METHODPR(T, SetVertexCount, (unsigned), void), AS_CALL_THISCALL);
  17642. engine->RegisterObjectMethod(className, "void set_vertexCount(uint)", AS_METHODPR(T, SetVertexCount, (unsigned), void), AS_CALL_THISCALL);
  17643. // void CollisionChain2D::SetVertices(const PODVector<Vector2>& vertices)
  17644. engine->RegisterObjectMethod(className, "void SetVertices(Array<Vector2>@+)", AS_FUNCTION_OBJFIRST(CollisionChain2D_void_SetVertices_constspPODVectorlesVector2greamp_template<CollisionChain2D>), AS_CALL_CDECL_OBJFIRST);
  17645. #ifdef REGISTER_MEMBERS_MANUAL_PART_CollisionChain2D
  17646. REGISTER_MEMBERS_MANUAL_PART_CollisionChain2D();
  17647. #endif
  17648. }
  17649. // class CollisionCircle2D | File: ../Physics2D/CollisionCircle2D.h
  17650. template <class T> void RegisterMembers_CollisionCircle2D(asIScriptEngine* engine, const char* className)
  17651. {
  17652. RegisterMembers_CollisionShape2D<T>(engine, className);
  17653. // const Vector2& CollisionCircle2D::GetCenter() const
  17654. engine->RegisterObjectMethod(className, "const Vector2& GetCenter() const", AS_METHODPR(T, GetCenter, () const, const Vector2&), AS_CALL_THISCALL);
  17655. engine->RegisterObjectMethod(className, "const Vector2& get_center() const", AS_METHODPR(T, GetCenter, () const, const Vector2&), AS_CALL_THISCALL);
  17656. // float CollisionCircle2D::GetRadius() const
  17657. engine->RegisterObjectMethod(className, "float GetRadius() const", AS_METHODPR(T, GetRadius, () const, float), AS_CALL_THISCALL);
  17658. engine->RegisterObjectMethod(className, "float get_radius() const", AS_METHODPR(T, GetRadius, () const, float), AS_CALL_THISCALL);
  17659. // void CollisionCircle2D::SetCenter(const Vector2& center)
  17660. engine->RegisterObjectMethod(className, "void SetCenter(const Vector2&in)", AS_METHODPR(T, SetCenter, (const Vector2&), void), AS_CALL_THISCALL);
  17661. engine->RegisterObjectMethod(className, "void set_center(const Vector2&in)", AS_METHODPR(T, SetCenter, (const Vector2&), void), AS_CALL_THISCALL);
  17662. // void CollisionCircle2D::SetCenter(float x, float y)
  17663. engine->RegisterObjectMethod(className, "void SetCenter(float, float)", AS_METHODPR(T, SetCenter, (float, float), void), AS_CALL_THISCALL);
  17664. // void CollisionCircle2D::SetRadius(float radius)
  17665. engine->RegisterObjectMethod(className, "void SetRadius(float)", AS_METHODPR(T, SetRadius, (float), void), AS_CALL_THISCALL);
  17666. engine->RegisterObjectMethod(className, "void set_radius(float)", AS_METHODPR(T, SetRadius, (float), void), AS_CALL_THISCALL);
  17667. #ifdef REGISTER_MEMBERS_MANUAL_PART_CollisionCircle2D
  17668. REGISTER_MEMBERS_MANUAL_PART_CollisionCircle2D();
  17669. #endif
  17670. }
  17671. // class CollisionEdge2D | File: ../Physics2D/CollisionEdge2D.h
  17672. template <class T> void RegisterMembers_CollisionEdge2D(asIScriptEngine* engine, const char* className)
  17673. {
  17674. RegisterMembers_CollisionShape2D<T>(engine, className);
  17675. // const Vector2& CollisionEdge2D::GetVertex1() const
  17676. engine->RegisterObjectMethod(className, "const Vector2& GetVertex1() const", AS_METHODPR(T, GetVertex1, () const, const Vector2&), AS_CALL_THISCALL);
  17677. engine->RegisterObjectMethod(className, "const Vector2& get_vertex1() const", AS_METHODPR(T, GetVertex1, () const, const Vector2&), AS_CALL_THISCALL);
  17678. // const Vector2& CollisionEdge2D::GetVertex2() const
  17679. engine->RegisterObjectMethod(className, "const Vector2& GetVertex2() const", AS_METHODPR(T, GetVertex2, () const, const Vector2&), AS_CALL_THISCALL);
  17680. engine->RegisterObjectMethod(className, "const Vector2& get_vertex2() const", AS_METHODPR(T, GetVertex2, () const, const Vector2&), AS_CALL_THISCALL);
  17681. // void CollisionEdge2D::SetVertex1(const Vector2& vertex)
  17682. engine->RegisterObjectMethod(className, "void SetVertex1(const Vector2&in)", AS_METHODPR(T, SetVertex1, (const Vector2&), void), AS_CALL_THISCALL);
  17683. engine->RegisterObjectMethod(className, "void set_vertex1(const Vector2&in)", AS_METHODPR(T, SetVertex1, (const Vector2&), void), AS_CALL_THISCALL);
  17684. // void CollisionEdge2D::SetVertex2(const Vector2& vertex)
  17685. engine->RegisterObjectMethod(className, "void SetVertex2(const Vector2&in)", AS_METHODPR(T, SetVertex2, (const Vector2&), void), AS_CALL_THISCALL);
  17686. engine->RegisterObjectMethod(className, "void set_vertex2(const Vector2&in)", AS_METHODPR(T, SetVertex2, (const Vector2&), void), AS_CALL_THISCALL);
  17687. // void CollisionEdge2D::SetVertices(const Vector2& vertex1, const Vector2& vertex2)
  17688. engine->RegisterObjectMethod(className, "void SetVertices(const Vector2&in, const Vector2&in)", AS_METHODPR(T, SetVertices, (const Vector2&, const Vector2&), void), AS_CALL_THISCALL);
  17689. #ifdef REGISTER_MEMBERS_MANUAL_PART_CollisionEdge2D
  17690. REGISTER_MEMBERS_MANUAL_PART_CollisionEdge2D();
  17691. #endif
  17692. }
  17693. // const PODVector<Vector2>& CollisionPolygon2D::GetVertices() const
  17694. template <class T> CScriptArray* CollisionPolygon2D_constspPODVectorlesVector2greamp_GetVertices_void_template(T* _ptr)
  17695. {
  17696. const PODVector<Vector2>& result = _ptr->GetVertices();
  17697. return VectorToArray(result, "Array<Vector2>");
  17698. }
  17699. // void CollisionPolygon2D::SetVertices(const PODVector<Vector2>& vertices)
  17700. template <class T> void CollisionPolygon2D_void_SetVertices_constspPODVectorlesVector2greamp_template(T* _ptr, CScriptArray* vertices_conv)
  17701. {
  17702. PODVector<Vector2> vertices = ArrayToPODVector<Vector2>(vertices_conv);
  17703. _ptr->SetVertices(vertices);
  17704. }
  17705. // class CollisionPolygon2D | File: ../Physics2D/CollisionPolygon2D.h
  17706. template <class T> void RegisterMembers_CollisionPolygon2D(asIScriptEngine* engine, const char* className)
  17707. {
  17708. RegisterMembers_CollisionShape2D<T>(engine, className);
  17709. // PODVector<unsigned char> CollisionPolygon2D::GetVerticesAttr() const
  17710. // Error: type "PODVector<unsigned char>" can not automatically bind
  17711. // void CollisionPolygon2D::SetVerticesAttr(const PODVector<unsigned char>& value)
  17712. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  17713. // const Vector2& CollisionPolygon2D::GetVertex(unsigned index) const
  17714. engine->RegisterObjectMethod(className, "const Vector2& GetVertex(uint) const", AS_METHODPR(T, GetVertex, (unsigned) const, const Vector2&), AS_CALL_THISCALL);
  17715. // unsigned CollisionPolygon2D::GetVertexCount() const
  17716. engine->RegisterObjectMethod(className, "uint GetVertexCount() const", AS_METHODPR(T, GetVertexCount, () const, unsigned), AS_CALL_THISCALL);
  17717. engine->RegisterObjectMethod(className, "uint get_vertexCount() const", AS_METHODPR(T, GetVertexCount, () const, unsigned), AS_CALL_THISCALL);
  17718. // const PODVector<Vector2>& CollisionPolygon2D::GetVertices() const
  17719. engine->RegisterObjectMethod(className, "Array<Vector2>@ GetVertices() const", AS_FUNCTION_OBJFIRST(CollisionPolygon2D_constspPODVectorlesVector2greamp_GetVertices_void_template<CollisionPolygon2D>), AS_CALL_CDECL_OBJFIRST);
  17720. // void CollisionPolygon2D::SetVertex(unsigned index, const Vector2& vertex)
  17721. engine->RegisterObjectMethod(className, "void SetVertex(uint, const Vector2&in)", AS_METHODPR(T, SetVertex, (unsigned, const Vector2&), void), AS_CALL_THISCALL);
  17722. // void CollisionPolygon2D::SetVertexCount(unsigned count)
  17723. engine->RegisterObjectMethod(className, "void SetVertexCount(uint)", AS_METHODPR(T, SetVertexCount, (unsigned), void), AS_CALL_THISCALL);
  17724. engine->RegisterObjectMethod(className, "void set_vertexCount(uint)", AS_METHODPR(T, SetVertexCount, (unsigned), void), AS_CALL_THISCALL);
  17725. // void CollisionPolygon2D::SetVertices(const PODVector<Vector2>& vertices)
  17726. engine->RegisterObjectMethod(className, "void SetVertices(Array<Vector2>@+)", AS_FUNCTION_OBJFIRST(CollisionPolygon2D_void_SetVertices_constspPODVectorlesVector2greamp_template<CollisionPolygon2D>), AS_CALL_CDECL_OBJFIRST);
  17727. #ifdef REGISTER_MEMBERS_MANUAL_PART_CollisionPolygon2D
  17728. REGISTER_MEMBERS_MANUAL_PART_CollisionPolygon2D();
  17729. #endif
  17730. }
  17731. // class ConstraintDistance2D | File: ../Physics2D/ConstraintDistance2D.h
  17732. template <class T> void RegisterMembers_ConstraintDistance2D(asIScriptEngine* engine, const char* className)
  17733. {
  17734. RegisterMembers_Constraint2D<T>(engine, className);
  17735. // float ConstraintDistance2D::GetDampingRatio() const
  17736. engine->RegisterObjectMethod(className, "float GetDampingRatio() const", AS_METHODPR(T, GetDampingRatio, () const, float), AS_CALL_THISCALL);
  17737. engine->RegisterObjectMethod(className, "float get_dampingRatio() const", AS_METHODPR(T, GetDampingRatio, () const, float), AS_CALL_THISCALL);
  17738. // float ConstraintDistance2D::GetFrequencyHz() const
  17739. engine->RegisterObjectMethod(className, "float GetFrequencyHz() const", AS_METHODPR(T, GetFrequencyHz, () const, float), AS_CALL_THISCALL);
  17740. engine->RegisterObjectMethod(className, "float get_frequencyHz() const", AS_METHODPR(T, GetFrequencyHz, () const, float), AS_CALL_THISCALL);
  17741. // float ConstraintDistance2D::GetLength() const
  17742. engine->RegisterObjectMethod(className, "float GetLength() const", AS_METHODPR(T, GetLength, () const, float), AS_CALL_THISCALL);
  17743. engine->RegisterObjectMethod(className, "float get_length() const", AS_METHODPR(T, GetLength, () const, float), AS_CALL_THISCALL);
  17744. // const Vector2& ConstraintDistance2D::GetOtherBodyAnchor() const
  17745. engine->RegisterObjectMethod(className, "const Vector2& GetOtherBodyAnchor() const", AS_METHODPR(T, GetOtherBodyAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17746. engine->RegisterObjectMethod(className, "const Vector2& get_otherBodyAnchor() const", AS_METHODPR(T, GetOtherBodyAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17747. // const Vector2& ConstraintDistance2D::GetOwnerBodyAnchor() const
  17748. engine->RegisterObjectMethod(className, "const Vector2& GetOwnerBodyAnchor() const", AS_METHODPR(T, GetOwnerBodyAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17749. engine->RegisterObjectMethod(className, "const Vector2& get_ownerBodyAnchor() const", AS_METHODPR(T, GetOwnerBodyAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17750. // void ConstraintDistance2D::SetDampingRatio(float dampingRatio)
  17751. engine->RegisterObjectMethod(className, "void SetDampingRatio(float)", AS_METHODPR(T, SetDampingRatio, (float), void), AS_CALL_THISCALL);
  17752. engine->RegisterObjectMethod(className, "void set_dampingRatio(float)", AS_METHODPR(T, SetDampingRatio, (float), void), AS_CALL_THISCALL);
  17753. // void ConstraintDistance2D::SetFrequencyHz(float frequencyHz)
  17754. engine->RegisterObjectMethod(className, "void SetFrequencyHz(float)", AS_METHODPR(T, SetFrequencyHz, (float), void), AS_CALL_THISCALL);
  17755. engine->RegisterObjectMethod(className, "void set_frequencyHz(float)", AS_METHODPR(T, SetFrequencyHz, (float), void), AS_CALL_THISCALL);
  17756. // void ConstraintDistance2D::SetLength(float length)
  17757. engine->RegisterObjectMethod(className, "void SetLength(float)", AS_METHODPR(T, SetLength, (float), void), AS_CALL_THISCALL);
  17758. engine->RegisterObjectMethod(className, "void set_length(float)", AS_METHODPR(T, SetLength, (float), void), AS_CALL_THISCALL);
  17759. // void ConstraintDistance2D::SetOtherBodyAnchor(const Vector2& anchor)
  17760. engine->RegisterObjectMethod(className, "void SetOtherBodyAnchor(const Vector2&in)", AS_METHODPR(T, SetOtherBodyAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17761. engine->RegisterObjectMethod(className, "void set_otherBodyAnchor(const Vector2&in)", AS_METHODPR(T, SetOtherBodyAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17762. // void ConstraintDistance2D::SetOwnerBodyAnchor(const Vector2& anchor)
  17763. engine->RegisterObjectMethod(className, "void SetOwnerBodyAnchor(const Vector2&in)", AS_METHODPR(T, SetOwnerBodyAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17764. engine->RegisterObjectMethod(className, "void set_ownerBodyAnchor(const Vector2&in)", AS_METHODPR(T, SetOwnerBodyAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17765. #ifdef REGISTER_MEMBERS_MANUAL_PART_ConstraintDistance2D
  17766. REGISTER_MEMBERS_MANUAL_PART_ConstraintDistance2D();
  17767. #endif
  17768. }
  17769. // class ConstraintFriction2D | File: ../Physics2D/ConstraintFriction2D.h
  17770. template <class T> void RegisterMembers_ConstraintFriction2D(asIScriptEngine* engine, const char* className)
  17771. {
  17772. RegisterMembers_Constraint2D<T>(engine, className);
  17773. // const Vector2& ConstraintFriction2D::GetAnchor() const
  17774. engine->RegisterObjectMethod(className, "const Vector2& GetAnchor() const", AS_METHODPR(T, GetAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17775. engine->RegisterObjectMethod(className, "const Vector2& get_anchor() const", AS_METHODPR(T, GetAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17776. // float ConstraintFriction2D::GetMaxForce() const
  17777. engine->RegisterObjectMethod(className, "float GetMaxForce() const", AS_METHODPR(T, GetMaxForce, () const, float), AS_CALL_THISCALL);
  17778. engine->RegisterObjectMethod(className, "float get_maxForce() const", AS_METHODPR(T, GetMaxForce, () const, float), AS_CALL_THISCALL);
  17779. // float ConstraintFriction2D::GetMaxTorque() const
  17780. engine->RegisterObjectMethod(className, "float GetMaxTorque() const", AS_METHODPR(T, GetMaxTorque, () const, float), AS_CALL_THISCALL);
  17781. engine->RegisterObjectMethod(className, "float get_maxTorque() const", AS_METHODPR(T, GetMaxTorque, () const, float), AS_CALL_THISCALL);
  17782. // void ConstraintFriction2D::SetAnchor(const Vector2& anchor)
  17783. engine->RegisterObjectMethod(className, "void SetAnchor(const Vector2&in)", AS_METHODPR(T, SetAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17784. engine->RegisterObjectMethod(className, "void set_anchor(const Vector2&in)", AS_METHODPR(T, SetAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17785. // void ConstraintFriction2D::SetMaxForce(float maxForce)
  17786. engine->RegisterObjectMethod(className, "void SetMaxForce(float)", AS_METHODPR(T, SetMaxForce, (float), void), AS_CALL_THISCALL);
  17787. engine->RegisterObjectMethod(className, "void set_maxForce(float)", AS_METHODPR(T, SetMaxForce, (float), void), AS_CALL_THISCALL);
  17788. // void ConstraintFriction2D::SetMaxTorque(float maxTorque)
  17789. engine->RegisterObjectMethod(className, "void SetMaxTorque(float)", AS_METHODPR(T, SetMaxTorque, (float), void), AS_CALL_THISCALL);
  17790. engine->RegisterObjectMethod(className, "void set_maxTorque(float)", AS_METHODPR(T, SetMaxTorque, (float), void), AS_CALL_THISCALL);
  17791. #ifdef REGISTER_MEMBERS_MANUAL_PART_ConstraintFriction2D
  17792. REGISTER_MEMBERS_MANUAL_PART_ConstraintFriction2D();
  17793. #endif
  17794. }
  17795. // class ConstraintGear2D | File: ../Physics2D/ConstraintGear2D.h
  17796. template <class T> void RegisterMembers_ConstraintGear2D(asIScriptEngine* engine, const char* className)
  17797. {
  17798. RegisterMembers_Constraint2D<T>(engine, className);
  17799. // Constraint2D* ConstraintGear2D::GetOtherConstraint() const
  17800. engine->RegisterObjectMethod(className, "Constraint2D@+ GetOtherConstraint() const", AS_METHODPR(T, GetOtherConstraint, () const, Constraint2D*), AS_CALL_THISCALL);
  17801. engine->RegisterObjectMethod(className, "Constraint2D@+ get_otherConstraint() const", AS_METHODPR(T, GetOtherConstraint, () const, Constraint2D*), AS_CALL_THISCALL);
  17802. // Constraint2D* ConstraintGear2D::GetOwnerConstraint() const
  17803. engine->RegisterObjectMethod(className, "Constraint2D@+ GetOwnerConstraint() const", AS_METHODPR(T, GetOwnerConstraint, () const, Constraint2D*), AS_CALL_THISCALL);
  17804. engine->RegisterObjectMethod(className, "Constraint2D@+ get_ownerConstraint() const", AS_METHODPR(T, GetOwnerConstraint, () const, Constraint2D*), AS_CALL_THISCALL);
  17805. // float ConstraintGear2D::GetRatio() const
  17806. engine->RegisterObjectMethod(className, "float GetRatio() const", AS_METHODPR(T, GetRatio, () const, float), AS_CALL_THISCALL);
  17807. engine->RegisterObjectMethod(className, "float get_ratio() const", AS_METHODPR(T, GetRatio, () const, float), AS_CALL_THISCALL);
  17808. // void ConstraintGear2D::SetOtherConstraint(Constraint2D* constraint)
  17809. engine->RegisterObjectMethod(className, "void SetOtherConstraint(Constraint2D@+)", AS_METHODPR(T, SetOtherConstraint, (Constraint2D*), void), AS_CALL_THISCALL);
  17810. engine->RegisterObjectMethod(className, "void set_otherConstraint(Constraint2D@+)", AS_METHODPR(T, SetOtherConstraint, (Constraint2D*), void), AS_CALL_THISCALL);
  17811. // void ConstraintGear2D::SetOwnerConstraint(Constraint2D* constraint)
  17812. engine->RegisterObjectMethod(className, "void SetOwnerConstraint(Constraint2D@+)", AS_METHODPR(T, SetOwnerConstraint, (Constraint2D*), void), AS_CALL_THISCALL);
  17813. engine->RegisterObjectMethod(className, "void set_ownerConstraint(Constraint2D@+)", AS_METHODPR(T, SetOwnerConstraint, (Constraint2D*), void), AS_CALL_THISCALL);
  17814. // void ConstraintGear2D::SetRatio(float ratio)
  17815. engine->RegisterObjectMethod(className, "void SetRatio(float)", AS_METHODPR(T, SetRatio, (float), void), AS_CALL_THISCALL);
  17816. engine->RegisterObjectMethod(className, "void set_ratio(float)", AS_METHODPR(T, SetRatio, (float), void), AS_CALL_THISCALL);
  17817. #ifdef REGISTER_MEMBERS_MANUAL_PART_ConstraintGear2D
  17818. REGISTER_MEMBERS_MANUAL_PART_ConstraintGear2D();
  17819. #endif
  17820. }
  17821. // class ConstraintMotor2D | File: ../Physics2D/ConstraintMotor2D.h
  17822. template <class T> void RegisterMembers_ConstraintMotor2D(asIScriptEngine* engine, const char* className)
  17823. {
  17824. RegisterMembers_Constraint2D<T>(engine, className);
  17825. // float ConstraintMotor2D::GetAngularOffset() const
  17826. engine->RegisterObjectMethod(className, "float GetAngularOffset() const", AS_METHODPR(T, GetAngularOffset, () const, float), AS_CALL_THISCALL);
  17827. engine->RegisterObjectMethod(className, "float get_angularOffset() const", AS_METHODPR(T, GetAngularOffset, () const, float), AS_CALL_THISCALL);
  17828. // float ConstraintMotor2D::GetCorrectionFactor() const
  17829. engine->RegisterObjectMethod(className, "float GetCorrectionFactor() const", AS_METHODPR(T, GetCorrectionFactor, () const, float), AS_CALL_THISCALL);
  17830. engine->RegisterObjectMethod(className, "float get_correctionFactor() const", AS_METHODPR(T, GetCorrectionFactor, () const, float), AS_CALL_THISCALL);
  17831. // const Vector2& ConstraintMotor2D::GetLinearOffset() const
  17832. engine->RegisterObjectMethod(className, "const Vector2& GetLinearOffset() const", AS_METHODPR(T, GetLinearOffset, () const, const Vector2&), AS_CALL_THISCALL);
  17833. engine->RegisterObjectMethod(className, "const Vector2& get_linearOffset() const", AS_METHODPR(T, GetLinearOffset, () const, const Vector2&), AS_CALL_THISCALL);
  17834. // float ConstraintMotor2D::GetMaxForce() const
  17835. engine->RegisterObjectMethod(className, "float GetMaxForce() const", AS_METHODPR(T, GetMaxForce, () const, float), AS_CALL_THISCALL);
  17836. engine->RegisterObjectMethod(className, "float get_maxForce() const", AS_METHODPR(T, GetMaxForce, () const, float), AS_CALL_THISCALL);
  17837. // float ConstraintMotor2D::GetMaxTorque() const
  17838. engine->RegisterObjectMethod(className, "float GetMaxTorque() const", AS_METHODPR(T, GetMaxTorque, () const, float), AS_CALL_THISCALL);
  17839. engine->RegisterObjectMethod(className, "float get_maxTorque() const", AS_METHODPR(T, GetMaxTorque, () const, float), AS_CALL_THISCALL);
  17840. // void ConstraintMotor2D::SetAngularOffset(float angularOffset)
  17841. engine->RegisterObjectMethod(className, "void SetAngularOffset(float)", AS_METHODPR(T, SetAngularOffset, (float), void), AS_CALL_THISCALL);
  17842. engine->RegisterObjectMethod(className, "void set_angularOffset(float)", AS_METHODPR(T, SetAngularOffset, (float), void), AS_CALL_THISCALL);
  17843. // void ConstraintMotor2D::SetCorrectionFactor(float correctionFactor)
  17844. engine->RegisterObjectMethod(className, "void SetCorrectionFactor(float)", AS_METHODPR(T, SetCorrectionFactor, (float), void), AS_CALL_THISCALL);
  17845. engine->RegisterObjectMethod(className, "void set_correctionFactor(float)", AS_METHODPR(T, SetCorrectionFactor, (float), void), AS_CALL_THISCALL);
  17846. // void ConstraintMotor2D::SetLinearOffset(const Vector2& linearOffset)
  17847. engine->RegisterObjectMethod(className, "void SetLinearOffset(const Vector2&in)", AS_METHODPR(T, SetLinearOffset, (const Vector2&), void), AS_CALL_THISCALL);
  17848. engine->RegisterObjectMethod(className, "void set_linearOffset(const Vector2&in)", AS_METHODPR(T, SetLinearOffset, (const Vector2&), void), AS_CALL_THISCALL);
  17849. // void ConstraintMotor2D::SetMaxForce(float maxForce)
  17850. engine->RegisterObjectMethod(className, "void SetMaxForce(float)", AS_METHODPR(T, SetMaxForce, (float), void), AS_CALL_THISCALL);
  17851. engine->RegisterObjectMethod(className, "void set_maxForce(float)", AS_METHODPR(T, SetMaxForce, (float), void), AS_CALL_THISCALL);
  17852. // void ConstraintMotor2D::SetMaxTorque(float maxTorque)
  17853. engine->RegisterObjectMethod(className, "void SetMaxTorque(float)", AS_METHODPR(T, SetMaxTorque, (float), void), AS_CALL_THISCALL);
  17854. engine->RegisterObjectMethod(className, "void set_maxTorque(float)", AS_METHODPR(T, SetMaxTorque, (float), void), AS_CALL_THISCALL);
  17855. #ifdef REGISTER_MEMBERS_MANUAL_PART_ConstraintMotor2D
  17856. REGISTER_MEMBERS_MANUAL_PART_ConstraintMotor2D();
  17857. #endif
  17858. }
  17859. // class ConstraintMouse2D | File: ../Physics2D/ConstraintMouse2D.h
  17860. template <class T> void RegisterMembers_ConstraintMouse2D(asIScriptEngine* engine, const char* className)
  17861. {
  17862. RegisterMembers_Constraint2D<T>(engine, className);
  17863. // float ConstraintMouse2D::GetDampingRatio() const
  17864. engine->RegisterObjectMethod(className, "float GetDampingRatio() const", AS_METHODPR(T, GetDampingRatio, () const, float), AS_CALL_THISCALL);
  17865. engine->RegisterObjectMethod(className, "float get_dampingRatio() const", AS_METHODPR(T, GetDampingRatio, () const, float), AS_CALL_THISCALL);
  17866. // float ConstraintMouse2D::GetFrequencyHz() const
  17867. engine->RegisterObjectMethod(className, "float GetFrequencyHz() const", AS_METHODPR(T, GetFrequencyHz, () const, float), AS_CALL_THISCALL);
  17868. engine->RegisterObjectMethod(className, "float get_frequencyHz() const", AS_METHODPR(T, GetFrequencyHz, () const, float), AS_CALL_THISCALL);
  17869. // float ConstraintMouse2D::GetMaxForce() const
  17870. engine->RegisterObjectMethod(className, "float GetMaxForce() const", AS_METHODPR(T, GetMaxForce, () const, float), AS_CALL_THISCALL);
  17871. engine->RegisterObjectMethod(className, "float get_maxForce() const", AS_METHODPR(T, GetMaxForce, () const, float), AS_CALL_THISCALL);
  17872. // const Vector2& ConstraintMouse2D::GetTarget() const
  17873. engine->RegisterObjectMethod(className, "const Vector2& GetTarget() const", AS_METHODPR(T, GetTarget, () const, const Vector2&), AS_CALL_THISCALL);
  17874. engine->RegisterObjectMethod(className, "const Vector2& get_target() const", AS_METHODPR(T, GetTarget, () const, const Vector2&), AS_CALL_THISCALL);
  17875. // void ConstraintMouse2D::SetDampingRatio(float dampingRatio)
  17876. engine->RegisterObjectMethod(className, "void SetDampingRatio(float)", AS_METHODPR(T, SetDampingRatio, (float), void), AS_CALL_THISCALL);
  17877. engine->RegisterObjectMethod(className, "void set_dampingRatio(float)", AS_METHODPR(T, SetDampingRatio, (float), void), AS_CALL_THISCALL);
  17878. // void ConstraintMouse2D::SetFrequencyHz(float frequencyHz)
  17879. engine->RegisterObjectMethod(className, "void SetFrequencyHz(float)", AS_METHODPR(T, SetFrequencyHz, (float), void), AS_CALL_THISCALL);
  17880. engine->RegisterObjectMethod(className, "void set_frequencyHz(float)", AS_METHODPR(T, SetFrequencyHz, (float), void), AS_CALL_THISCALL);
  17881. // void ConstraintMouse2D::SetMaxForce(float maxForce)
  17882. engine->RegisterObjectMethod(className, "void SetMaxForce(float)", AS_METHODPR(T, SetMaxForce, (float), void), AS_CALL_THISCALL);
  17883. engine->RegisterObjectMethod(className, "void set_maxForce(float)", AS_METHODPR(T, SetMaxForce, (float), void), AS_CALL_THISCALL);
  17884. // void ConstraintMouse2D::SetTarget(const Vector2& target)
  17885. engine->RegisterObjectMethod(className, "void SetTarget(const Vector2&in)", AS_METHODPR(T, SetTarget, (const Vector2&), void), AS_CALL_THISCALL);
  17886. engine->RegisterObjectMethod(className, "void set_target(const Vector2&in)", AS_METHODPR(T, SetTarget, (const Vector2&), void), AS_CALL_THISCALL);
  17887. #ifdef REGISTER_MEMBERS_MANUAL_PART_ConstraintMouse2D
  17888. REGISTER_MEMBERS_MANUAL_PART_ConstraintMouse2D();
  17889. #endif
  17890. }
  17891. // class ConstraintPrismatic2D | File: ../Physics2D/ConstraintPrismatic2D.h
  17892. template <class T> void RegisterMembers_ConstraintPrismatic2D(asIScriptEngine* engine, const char* className)
  17893. {
  17894. RegisterMembers_Constraint2D<T>(engine, className);
  17895. // const Vector2& ConstraintPrismatic2D::GetAnchor() const
  17896. engine->RegisterObjectMethod(className, "const Vector2& GetAnchor() const", AS_METHODPR(T, GetAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17897. engine->RegisterObjectMethod(className, "const Vector2& get_anchor() const", AS_METHODPR(T, GetAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17898. // const Vector2& ConstraintPrismatic2D::GetAxis() const
  17899. engine->RegisterObjectMethod(className, "const Vector2& GetAxis() const", AS_METHODPR(T, GetAxis, () const, const Vector2&), AS_CALL_THISCALL);
  17900. engine->RegisterObjectMethod(className, "const Vector2& get_axis() const", AS_METHODPR(T, GetAxis, () const, const Vector2&), AS_CALL_THISCALL);
  17901. // bool ConstraintPrismatic2D::GetEnableLimit() const
  17902. engine->RegisterObjectMethod(className, "bool GetEnableLimit() const", AS_METHODPR(T, GetEnableLimit, () const, bool), AS_CALL_THISCALL);
  17903. engine->RegisterObjectMethod(className, "bool get_enableLimit() const", AS_METHODPR(T, GetEnableLimit, () const, bool), AS_CALL_THISCALL);
  17904. // bool ConstraintPrismatic2D::GetEnableMotor() const
  17905. engine->RegisterObjectMethod(className, "bool GetEnableMotor() const", AS_METHODPR(T, GetEnableMotor, () const, bool), AS_CALL_THISCALL);
  17906. engine->RegisterObjectMethod(className, "bool get_enableMotor() const", AS_METHODPR(T, GetEnableMotor, () const, bool), AS_CALL_THISCALL);
  17907. // float ConstraintPrismatic2D::GetLowerTranslation() const
  17908. engine->RegisterObjectMethod(className, "float GetLowerTranslation() const", AS_METHODPR(T, GetLowerTranslation, () const, float), AS_CALL_THISCALL);
  17909. engine->RegisterObjectMethod(className, "float get_lowerTranslation() const", AS_METHODPR(T, GetLowerTranslation, () const, float), AS_CALL_THISCALL);
  17910. // float ConstraintPrismatic2D::GetMaxMotorForce() const
  17911. engine->RegisterObjectMethod(className, "float GetMaxMotorForce() const", AS_METHODPR(T, GetMaxMotorForce, () const, float), AS_CALL_THISCALL);
  17912. engine->RegisterObjectMethod(className, "float get_maxMotorForce() const", AS_METHODPR(T, GetMaxMotorForce, () const, float), AS_CALL_THISCALL);
  17913. // float ConstraintPrismatic2D::GetMotorSpeed() const
  17914. engine->RegisterObjectMethod(className, "float GetMotorSpeed() const", AS_METHODPR(T, GetMotorSpeed, () const, float), AS_CALL_THISCALL);
  17915. engine->RegisterObjectMethod(className, "float get_motorSpeed() const", AS_METHODPR(T, GetMotorSpeed, () const, float), AS_CALL_THISCALL);
  17916. // float ConstraintPrismatic2D::GetUpperTranslation() const
  17917. engine->RegisterObjectMethod(className, "float GetUpperTranslation() const", AS_METHODPR(T, GetUpperTranslation, () const, float), AS_CALL_THISCALL);
  17918. engine->RegisterObjectMethod(className, "float get_upperTranslation() const", AS_METHODPR(T, GetUpperTranslation, () const, float), AS_CALL_THISCALL);
  17919. // void ConstraintPrismatic2D::SetAnchor(const Vector2& anchor)
  17920. engine->RegisterObjectMethod(className, "void SetAnchor(const Vector2&in)", AS_METHODPR(T, SetAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17921. engine->RegisterObjectMethod(className, "void set_anchor(const Vector2&in)", AS_METHODPR(T, SetAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17922. // void ConstraintPrismatic2D::SetAxis(const Vector2& axis)
  17923. engine->RegisterObjectMethod(className, "void SetAxis(const Vector2&in)", AS_METHODPR(T, SetAxis, (const Vector2&), void), AS_CALL_THISCALL);
  17924. engine->RegisterObjectMethod(className, "void set_axis(const Vector2&in)", AS_METHODPR(T, SetAxis, (const Vector2&), void), AS_CALL_THISCALL);
  17925. // void ConstraintPrismatic2D::SetEnableLimit(bool enableLimit)
  17926. engine->RegisterObjectMethod(className, "void SetEnableLimit(bool)", AS_METHODPR(T, SetEnableLimit, (bool), void), AS_CALL_THISCALL);
  17927. engine->RegisterObjectMethod(className, "void set_enableLimit(bool)", AS_METHODPR(T, SetEnableLimit, (bool), void), AS_CALL_THISCALL);
  17928. // void ConstraintPrismatic2D::SetEnableMotor(bool enableMotor)
  17929. engine->RegisterObjectMethod(className, "void SetEnableMotor(bool)", AS_METHODPR(T, SetEnableMotor, (bool), void), AS_CALL_THISCALL);
  17930. engine->RegisterObjectMethod(className, "void set_enableMotor(bool)", AS_METHODPR(T, SetEnableMotor, (bool), void), AS_CALL_THISCALL);
  17931. // void ConstraintPrismatic2D::SetLowerTranslation(float lowerTranslation)
  17932. engine->RegisterObjectMethod(className, "void SetLowerTranslation(float)", AS_METHODPR(T, SetLowerTranslation, (float), void), AS_CALL_THISCALL);
  17933. engine->RegisterObjectMethod(className, "void set_lowerTranslation(float)", AS_METHODPR(T, SetLowerTranslation, (float), void), AS_CALL_THISCALL);
  17934. // void ConstraintPrismatic2D::SetMaxMotorForce(float maxMotorForce)
  17935. engine->RegisterObjectMethod(className, "void SetMaxMotorForce(float)", AS_METHODPR(T, SetMaxMotorForce, (float), void), AS_CALL_THISCALL);
  17936. engine->RegisterObjectMethod(className, "void set_maxMotorForce(float)", AS_METHODPR(T, SetMaxMotorForce, (float), void), AS_CALL_THISCALL);
  17937. // void ConstraintPrismatic2D::SetMotorSpeed(float motorSpeed)
  17938. engine->RegisterObjectMethod(className, "void SetMotorSpeed(float)", AS_METHODPR(T, SetMotorSpeed, (float), void), AS_CALL_THISCALL);
  17939. engine->RegisterObjectMethod(className, "void set_motorSpeed(float)", AS_METHODPR(T, SetMotorSpeed, (float), void), AS_CALL_THISCALL);
  17940. // void ConstraintPrismatic2D::SetUpperTranslation(float upperTranslation)
  17941. engine->RegisterObjectMethod(className, "void SetUpperTranslation(float)", AS_METHODPR(T, SetUpperTranslation, (float), void), AS_CALL_THISCALL);
  17942. engine->RegisterObjectMethod(className, "void set_upperTranslation(float)", AS_METHODPR(T, SetUpperTranslation, (float), void), AS_CALL_THISCALL);
  17943. #ifdef REGISTER_MEMBERS_MANUAL_PART_ConstraintPrismatic2D
  17944. REGISTER_MEMBERS_MANUAL_PART_ConstraintPrismatic2D();
  17945. #endif
  17946. }
  17947. // class ConstraintPulley2D | File: ../Physics2D/ConstraintPulley2D.h
  17948. template <class T> void RegisterMembers_ConstraintPulley2D(asIScriptEngine* engine, const char* className)
  17949. {
  17950. RegisterMembers_Constraint2D<T>(engine, className);
  17951. // const Vector2& ConstraintPulley2D::GetOtherBodyAnchor() const
  17952. engine->RegisterObjectMethod(className, "const Vector2& GetOtherBodyAnchor() const", AS_METHODPR(T, GetOtherBodyAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17953. engine->RegisterObjectMethod(className, "const Vector2& get_otherBodyAnchor() const", AS_METHODPR(T, GetOtherBodyAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17954. // const Vector2& ConstraintPulley2D::GetOtherBodyGroundAnchor() const
  17955. engine->RegisterObjectMethod(className, "const Vector2& GetOtherBodyGroundAnchor() const", AS_METHODPR(T, GetOtherBodyGroundAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17956. engine->RegisterObjectMethod(className, "const Vector2& get_otherBodyGroundAnchor() const", AS_METHODPR(T, GetOtherBodyGroundAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17957. // const Vector2& ConstraintPulley2D::GetOwnerBodyAnchor() const
  17958. engine->RegisterObjectMethod(className, "const Vector2& GetOwnerBodyAnchor() const", AS_METHODPR(T, GetOwnerBodyAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17959. engine->RegisterObjectMethod(className, "const Vector2& get_ownerBodyAnchor() const", AS_METHODPR(T, GetOwnerBodyAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17960. // const Vector2& ConstraintPulley2D::GetOwnerBodyGroundAnchor() const
  17961. engine->RegisterObjectMethod(className, "const Vector2& GetOwnerBodyGroundAnchor() const", AS_METHODPR(T, GetOwnerBodyGroundAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17962. engine->RegisterObjectMethod(className, "const Vector2& get_ownerBodyGroundAnchor() const", AS_METHODPR(T, GetOwnerBodyGroundAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17963. // float ConstraintPulley2D::GetRatio() const
  17964. engine->RegisterObjectMethod(className, "float GetRatio() const", AS_METHODPR(T, GetRatio, () const, float), AS_CALL_THISCALL);
  17965. engine->RegisterObjectMethod(className, "float get_ratio() const", AS_METHODPR(T, GetRatio, () const, float), AS_CALL_THISCALL);
  17966. // void ConstraintPulley2D::SetOtherBodyAnchor(const Vector2& anchor)
  17967. engine->RegisterObjectMethod(className, "void SetOtherBodyAnchor(const Vector2&in)", AS_METHODPR(T, SetOtherBodyAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17968. engine->RegisterObjectMethod(className, "void set_otherBodyAnchor(const Vector2&in)", AS_METHODPR(T, SetOtherBodyAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17969. // void ConstraintPulley2D::SetOtherBodyGroundAnchor(const Vector2& groundAnchor)
  17970. engine->RegisterObjectMethod(className, "void SetOtherBodyGroundAnchor(const Vector2&in)", AS_METHODPR(T, SetOtherBodyGroundAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17971. engine->RegisterObjectMethod(className, "void set_otherBodyGroundAnchor(const Vector2&in)", AS_METHODPR(T, SetOtherBodyGroundAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17972. // void ConstraintPulley2D::SetOwnerBodyAnchor(const Vector2& anchor)
  17973. engine->RegisterObjectMethod(className, "void SetOwnerBodyAnchor(const Vector2&in)", AS_METHODPR(T, SetOwnerBodyAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17974. engine->RegisterObjectMethod(className, "void set_ownerBodyAnchor(const Vector2&in)", AS_METHODPR(T, SetOwnerBodyAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17975. // void ConstraintPulley2D::SetOwnerBodyGroundAnchor(const Vector2& groundAnchor)
  17976. engine->RegisterObjectMethod(className, "void SetOwnerBodyGroundAnchor(const Vector2&in)", AS_METHODPR(T, SetOwnerBodyGroundAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17977. engine->RegisterObjectMethod(className, "void set_ownerBodyGroundAnchor(const Vector2&in)", AS_METHODPR(T, SetOwnerBodyGroundAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  17978. // void ConstraintPulley2D::SetRatio(float ratio)
  17979. engine->RegisterObjectMethod(className, "void SetRatio(float)", AS_METHODPR(T, SetRatio, (float), void), AS_CALL_THISCALL);
  17980. engine->RegisterObjectMethod(className, "void set_ratio(float)", AS_METHODPR(T, SetRatio, (float), void), AS_CALL_THISCALL);
  17981. #ifdef REGISTER_MEMBERS_MANUAL_PART_ConstraintPulley2D
  17982. REGISTER_MEMBERS_MANUAL_PART_ConstraintPulley2D();
  17983. #endif
  17984. }
  17985. // class ConstraintRevolute2D | File: ../Physics2D/ConstraintRevolute2D.h
  17986. template <class T> void RegisterMembers_ConstraintRevolute2D(asIScriptEngine* engine, const char* className)
  17987. {
  17988. RegisterMembers_Constraint2D<T>(engine, className);
  17989. // const Vector2& ConstraintRevolute2D::GetAnchor() const
  17990. engine->RegisterObjectMethod(className, "const Vector2& GetAnchor() const", AS_METHODPR(T, GetAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17991. engine->RegisterObjectMethod(className, "const Vector2& get_anchor() const", AS_METHODPR(T, GetAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  17992. // bool ConstraintRevolute2D::GetEnableLimit() const
  17993. engine->RegisterObjectMethod(className, "bool GetEnableLimit() const", AS_METHODPR(T, GetEnableLimit, () const, bool), AS_CALL_THISCALL);
  17994. engine->RegisterObjectMethod(className, "bool get_enableLimit() const", AS_METHODPR(T, GetEnableLimit, () const, bool), AS_CALL_THISCALL);
  17995. // bool ConstraintRevolute2D::GetEnableMotor() const
  17996. engine->RegisterObjectMethod(className, "bool GetEnableMotor() const", AS_METHODPR(T, GetEnableMotor, () const, bool), AS_CALL_THISCALL);
  17997. engine->RegisterObjectMethod(className, "bool get_enableMotor() const", AS_METHODPR(T, GetEnableMotor, () const, bool), AS_CALL_THISCALL);
  17998. // float ConstraintRevolute2D::GetLowerAngle() const
  17999. engine->RegisterObjectMethod(className, "float GetLowerAngle() const", AS_METHODPR(T, GetLowerAngle, () const, float), AS_CALL_THISCALL);
  18000. engine->RegisterObjectMethod(className, "float get_lowerAngle() const", AS_METHODPR(T, GetLowerAngle, () const, float), AS_CALL_THISCALL);
  18001. // float ConstraintRevolute2D::GetMaxMotorTorque() const
  18002. engine->RegisterObjectMethod(className, "float GetMaxMotorTorque() const", AS_METHODPR(T, GetMaxMotorTorque, () const, float), AS_CALL_THISCALL);
  18003. engine->RegisterObjectMethod(className, "float get_maxMotorTorque() const", AS_METHODPR(T, GetMaxMotorTorque, () const, float), AS_CALL_THISCALL);
  18004. // float ConstraintRevolute2D::GetMotorSpeed() const
  18005. engine->RegisterObjectMethod(className, "float GetMotorSpeed() const", AS_METHODPR(T, GetMotorSpeed, () const, float), AS_CALL_THISCALL);
  18006. engine->RegisterObjectMethod(className, "float get_motorSpeed() const", AS_METHODPR(T, GetMotorSpeed, () const, float), AS_CALL_THISCALL);
  18007. // float ConstraintRevolute2D::GetUpperAngle() const
  18008. engine->RegisterObjectMethod(className, "float GetUpperAngle() const", AS_METHODPR(T, GetUpperAngle, () const, float), AS_CALL_THISCALL);
  18009. engine->RegisterObjectMethod(className, "float get_upperAngle() const", AS_METHODPR(T, GetUpperAngle, () const, float), AS_CALL_THISCALL);
  18010. // void ConstraintRevolute2D::SetAnchor(const Vector2& anchor)
  18011. engine->RegisterObjectMethod(className, "void SetAnchor(const Vector2&in)", AS_METHODPR(T, SetAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  18012. engine->RegisterObjectMethod(className, "void set_anchor(const Vector2&in)", AS_METHODPR(T, SetAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  18013. // void ConstraintRevolute2D::SetEnableLimit(bool enableLimit)
  18014. engine->RegisterObjectMethod(className, "void SetEnableLimit(bool)", AS_METHODPR(T, SetEnableLimit, (bool), void), AS_CALL_THISCALL);
  18015. engine->RegisterObjectMethod(className, "void set_enableLimit(bool)", AS_METHODPR(T, SetEnableLimit, (bool), void), AS_CALL_THISCALL);
  18016. // void ConstraintRevolute2D::SetEnableMotor(bool enableMotor)
  18017. engine->RegisterObjectMethod(className, "void SetEnableMotor(bool)", AS_METHODPR(T, SetEnableMotor, (bool), void), AS_CALL_THISCALL);
  18018. engine->RegisterObjectMethod(className, "void set_enableMotor(bool)", AS_METHODPR(T, SetEnableMotor, (bool), void), AS_CALL_THISCALL);
  18019. // void ConstraintRevolute2D::SetLowerAngle(float lowerAngle)
  18020. engine->RegisterObjectMethod(className, "void SetLowerAngle(float)", AS_METHODPR(T, SetLowerAngle, (float), void), AS_CALL_THISCALL);
  18021. engine->RegisterObjectMethod(className, "void set_lowerAngle(float)", AS_METHODPR(T, SetLowerAngle, (float), void), AS_CALL_THISCALL);
  18022. // void ConstraintRevolute2D::SetMaxMotorTorque(float maxMotorTorque)
  18023. engine->RegisterObjectMethod(className, "void SetMaxMotorTorque(float)", AS_METHODPR(T, SetMaxMotorTorque, (float), void), AS_CALL_THISCALL);
  18024. engine->RegisterObjectMethod(className, "void set_maxMotorTorque(float)", AS_METHODPR(T, SetMaxMotorTorque, (float), void), AS_CALL_THISCALL);
  18025. // void ConstraintRevolute2D::SetMotorSpeed(float motorSpeed)
  18026. engine->RegisterObjectMethod(className, "void SetMotorSpeed(float)", AS_METHODPR(T, SetMotorSpeed, (float), void), AS_CALL_THISCALL);
  18027. engine->RegisterObjectMethod(className, "void set_motorSpeed(float)", AS_METHODPR(T, SetMotorSpeed, (float), void), AS_CALL_THISCALL);
  18028. // void ConstraintRevolute2D::SetUpperAngle(float upperAngle)
  18029. engine->RegisterObjectMethod(className, "void SetUpperAngle(float)", AS_METHODPR(T, SetUpperAngle, (float), void), AS_CALL_THISCALL);
  18030. engine->RegisterObjectMethod(className, "void set_upperAngle(float)", AS_METHODPR(T, SetUpperAngle, (float), void), AS_CALL_THISCALL);
  18031. #ifdef REGISTER_MEMBERS_MANUAL_PART_ConstraintRevolute2D
  18032. REGISTER_MEMBERS_MANUAL_PART_ConstraintRevolute2D();
  18033. #endif
  18034. }
  18035. // class ConstraintRope2D | File: ../Physics2D/ConstraintRope2D.h
  18036. template <class T> void RegisterMembers_ConstraintRope2D(asIScriptEngine* engine, const char* className)
  18037. {
  18038. RegisterMembers_Constraint2D<T>(engine, className);
  18039. // float ConstraintRope2D::GetMaxLength() const
  18040. engine->RegisterObjectMethod(className, "float GetMaxLength() const", AS_METHODPR(T, GetMaxLength, () const, float), AS_CALL_THISCALL);
  18041. engine->RegisterObjectMethod(className, "float get_maxLength() const", AS_METHODPR(T, GetMaxLength, () const, float), AS_CALL_THISCALL);
  18042. // const Vector2& ConstraintRope2D::GetOtherBodyAnchor() const
  18043. engine->RegisterObjectMethod(className, "const Vector2& GetOtherBodyAnchor() const", AS_METHODPR(T, GetOtherBodyAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  18044. engine->RegisterObjectMethod(className, "const Vector2& get_otherBodyAnchor() const", AS_METHODPR(T, GetOtherBodyAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  18045. // const Vector2& ConstraintRope2D::GetOwnerBodyAnchor() const
  18046. engine->RegisterObjectMethod(className, "const Vector2& GetOwnerBodyAnchor() const", AS_METHODPR(T, GetOwnerBodyAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  18047. engine->RegisterObjectMethod(className, "const Vector2& get_ownerBodyAnchor() const", AS_METHODPR(T, GetOwnerBodyAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  18048. // void ConstraintRope2D::SetMaxLength(float maxLength)
  18049. engine->RegisterObjectMethod(className, "void SetMaxLength(float)", AS_METHODPR(T, SetMaxLength, (float), void), AS_CALL_THISCALL);
  18050. engine->RegisterObjectMethod(className, "void set_maxLength(float)", AS_METHODPR(T, SetMaxLength, (float), void), AS_CALL_THISCALL);
  18051. // void ConstraintRope2D::SetOtherBodyAnchor(const Vector2& anchor)
  18052. engine->RegisterObjectMethod(className, "void SetOtherBodyAnchor(const Vector2&in)", AS_METHODPR(T, SetOtherBodyAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  18053. engine->RegisterObjectMethod(className, "void set_otherBodyAnchor(const Vector2&in)", AS_METHODPR(T, SetOtherBodyAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  18054. // void ConstraintRope2D::SetOwnerBodyAnchor(const Vector2& anchor)
  18055. engine->RegisterObjectMethod(className, "void SetOwnerBodyAnchor(const Vector2&in)", AS_METHODPR(T, SetOwnerBodyAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  18056. engine->RegisterObjectMethod(className, "void set_ownerBodyAnchor(const Vector2&in)", AS_METHODPR(T, SetOwnerBodyAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  18057. #ifdef REGISTER_MEMBERS_MANUAL_PART_ConstraintRope2D
  18058. REGISTER_MEMBERS_MANUAL_PART_ConstraintRope2D();
  18059. #endif
  18060. }
  18061. // class ConstraintWeld2D | File: ../Physics2D/ConstraintWeld2D.h
  18062. template <class T> void RegisterMembers_ConstraintWeld2D(asIScriptEngine* engine, const char* className)
  18063. {
  18064. RegisterMembers_Constraint2D<T>(engine, className);
  18065. // const Vector2& ConstraintWeld2D::GetAnchor() const
  18066. engine->RegisterObjectMethod(className, "const Vector2& GetAnchor() const", AS_METHODPR(T, GetAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  18067. engine->RegisterObjectMethod(className, "const Vector2& get_anchor() const", AS_METHODPR(T, GetAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  18068. // float ConstraintWeld2D::GetDampingRatio() const
  18069. engine->RegisterObjectMethod(className, "float GetDampingRatio() const", AS_METHODPR(T, GetDampingRatio, () const, float), AS_CALL_THISCALL);
  18070. engine->RegisterObjectMethod(className, "float get_dampingRatio() const", AS_METHODPR(T, GetDampingRatio, () const, float), AS_CALL_THISCALL);
  18071. // float ConstraintWeld2D::GetFrequencyHz() const
  18072. engine->RegisterObjectMethod(className, "float GetFrequencyHz() const", AS_METHODPR(T, GetFrequencyHz, () const, float), AS_CALL_THISCALL);
  18073. engine->RegisterObjectMethod(className, "float get_frequencyHz() const", AS_METHODPR(T, GetFrequencyHz, () const, float), AS_CALL_THISCALL);
  18074. // void ConstraintWeld2D::SetAnchor(const Vector2& anchor)
  18075. engine->RegisterObjectMethod(className, "void SetAnchor(const Vector2&in)", AS_METHODPR(T, SetAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  18076. engine->RegisterObjectMethod(className, "void set_anchor(const Vector2&in)", AS_METHODPR(T, SetAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  18077. // void ConstraintWeld2D::SetDampingRatio(float dampingRatio)
  18078. engine->RegisterObjectMethod(className, "void SetDampingRatio(float)", AS_METHODPR(T, SetDampingRatio, (float), void), AS_CALL_THISCALL);
  18079. engine->RegisterObjectMethod(className, "void set_dampingRatio(float)", AS_METHODPR(T, SetDampingRatio, (float), void), AS_CALL_THISCALL);
  18080. // void ConstraintWeld2D::SetFrequencyHz(float frequencyHz)
  18081. engine->RegisterObjectMethod(className, "void SetFrequencyHz(float)", AS_METHODPR(T, SetFrequencyHz, (float), void), AS_CALL_THISCALL);
  18082. engine->RegisterObjectMethod(className, "void set_frequencyHz(float)", AS_METHODPR(T, SetFrequencyHz, (float), void), AS_CALL_THISCALL);
  18083. #ifdef REGISTER_MEMBERS_MANUAL_PART_ConstraintWeld2D
  18084. REGISTER_MEMBERS_MANUAL_PART_ConstraintWeld2D();
  18085. #endif
  18086. }
  18087. // class ConstraintWheel2D | File: ../Physics2D/ConstraintWheel2D.h
  18088. template <class T> void RegisterMembers_ConstraintWheel2D(asIScriptEngine* engine, const char* className)
  18089. {
  18090. RegisterMembers_Constraint2D<T>(engine, className);
  18091. // const Vector2& ConstraintWheel2D::GetAnchor() const
  18092. engine->RegisterObjectMethod(className, "const Vector2& GetAnchor() const", AS_METHODPR(T, GetAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  18093. engine->RegisterObjectMethod(className, "const Vector2& get_anchor() const", AS_METHODPR(T, GetAnchor, () const, const Vector2&), AS_CALL_THISCALL);
  18094. // const Vector2& ConstraintWheel2D::GetAxis() const
  18095. engine->RegisterObjectMethod(className, "const Vector2& GetAxis() const", AS_METHODPR(T, GetAxis, () const, const Vector2&), AS_CALL_THISCALL);
  18096. engine->RegisterObjectMethod(className, "const Vector2& get_axis() const", AS_METHODPR(T, GetAxis, () const, const Vector2&), AS_CALL_THISCALL);
  18097. // float ConstraintWheel2D::GetDampingRatio() const
  18098. engine->RegisterObjectMethod(className, "float GetDampingRatio() const", AS_METHODPR(T, GetDampingRatio, () const, float), AS_CALL_THISCALL);
  18099. engine->RegisterObjectMethod(className, "float get_dampingRatio() const", AS_METHODPR(T, GetDampingRatio, () const, float), AS_CALL_THISCALL);
  18100. // bool ConstraintWheel2D::GetEnableMotor() const
  18101. engine->RegisterObjectMethod(className, "bool GetEnableMotor() const", AS_METHODPR(T, GetEnableMotor, () const, bool), AS_CALL_THISCALL);
  18102. engine->RegisterObjectMethod(className, "bool get_enableMotor() const", AS_METHODPR(T, GetEnableMotor, () const, bool), AS_CALL_THISCALL);
  18103. // float ConstraintWheel2D::GetFrequencyHz() const
  18104. engine->RegisterObjectMethod(className, "float GetFrequencyHz() const", AS_METHODPR(T, GetFrequencyHz, () const, float), AS_CALL_THISCALL);
  18105. engine->RegisterObjectMethod(className, "float get_frequencyHz() const", AS_METHODPR(T, GetFrequencyHz, () const, float), AS_CALL_THISCALL);
  18106. // float ConstraintWheel2D::GetMaxMotorTorque() const
  18107. engine->RegisterObjectMethod(className, "float GetMaxMotorTorque() const", AS_METHODPR(T, GetMaxMotorTorque, () const, float), AS_CALL_THISCALL);
  18108. engine->RegisterObjectMethod(className, "float get_maxMotorTorque() const", AS_METHODPR(T, GetMaxMotorTorque, () const, float), AS_CALL_THISCALL);
  18109. // float ConstraintWheel2D::GetMotorSpeed() const
  18110. engine->RegisterObjectMethod(className, "float GetMotorSpeed() const", AS_METHODPR(T, GetMotorSpeed, () const, float), AS_CALL_THISCALL);
  18111. engine->RegisterObjectMethod(className, "float get_motorSpeed() const", AS_METHODPR(T, GetMotorSpeed, () const, float), AS_CALL_THISCALL);
  18112. // void ConstraintWheel2D::SetAnchor(const Vector2& anchor)
  18113. engine->RegisterObjectMethod(className, "void SetAnchor(const Vector2&in)", AS_METHODPR(T, SetAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  18114. engine->RegisterObjectMethod(className, "void set_anchor(const Vector2&in)", AS_METHODPR(T, SetAnchor, (const Vector2&), void), AS_CALL_THISCALL);
  18115. // void ConstraintWheel2D::SetAxis(const Vector2& axis)
  18116. engine->RegisterObjectMethod(className, "void SetAxis(const Vector2&in)", AS_METHODPR(T, SetAxis, (const Vector2&), void), AS_CALL_THISCALL);
  18117. engine->RegisterObjectMethod(className, "void set_axis(const Vector2&in)", AS_METHODPR(T, SetAxis, (const Vector2&), void), AS_CALL_THISCALL);
  18118. // void ConstraintWheel2D::SetDampingRatio(float dampingRatio)
  18119. engine->RegisterObjectMethod(className, "void SetDampingRatio(float)", AS_METHODPR(T, SetDampingRatio, (float), void), AS_CALL_THISCALL);
  18120. engine->RegisterObjectMethod(className, "void set_dampingRatio(float)", AS_METHODPR(T, SetDampingRatio, (float), void), AS_CALL_THISCALL);
  18121. // void ConstraintWheel2D::SetEnableMotor(bool enableMotor)
  18122. engine->RegisterObjectMethod(className, "void SetEnableMotor(bool)", AS_METHODPR(T, SetEnableMotor, (bool), void), AS_CALL_THISCALL);
  18123. engine->RegisterObjectMethod(className, "void set_enableMotor(bool)", AS_METHODPR(T, SetEnableMotor, (bool), void), AS_CALL_THISCALL);
  18124. // void ConstraintWheel2D::SetFrequencyHz(float frequencyHz)
  18125. engine->RegisterObjectMethod(className, "void SetFrequencyHz(float)", AS_METHODPR(T, SetFrequencyHz, (float), void), AS_CALL_THISCALL);
  18126. engine->RegisterObjectMethod(className, "void set_frequencyHz(float)", AS_METHODPR(T, SetFrequencyHz, (float), void), AS_CALL_THISCALL);
  18127. // void ConstraintWheel2D::SetMaxMotorTorque(float maxMotorTorque)
  18128. engine->RegisterObjectMethod(className, "void SetMaxMotorTorque(float)", AS_METHODPR(T, SetMaxMotorTorque, (float), void), AS_CALL_THISCALL);
  18129. engine->RegisterObjectMethod(className, "void set_maxMotorTorque(float)", AS_METHODPR(T, SetMaxMotorTorque, (float), void), AS_CALL_THISCALL);
  18130. // void ConstraintWheel2D::SetMotorSpeed(float motorSpeed)
  18131. engine->RegisterObjectMethod(className, "void SetMotorSpeed(float)", AS_METHODPR(T, SetMotorSpeed, (float), void), AS_CALL_THISCALL);
  18132. engine->RegisterObjectMethod(className, "void set_motorSpeed(float)", AS_METHODPR(T, SetMotorSpeed, (float), void), AS_CALL_THISCALL);
  18133. #ifdef REGISTER_MEMBERS_MANUAL_PART_ConstraintWheel2D
  18134. REGISTER_MEMBERS_MANUAL_PART_ConstraintWheel2D();
  18135. #endif
  18136. }
  18137. #endif // def URHO3D_PHYSICS2D
  18138. #ifdef URHO3D_URHO2D
  18139. // class Drawable2D | File: ../Urho2D/Drawable2D.h
  18140. template <class T> void RegisterMembers_Drawable2D(asIScriptEngine* engine, const char* className)
  18141. {
  18142. RegisterMembers_Drawable<T>(engine, className);
  18143. // const Vector<SourceBatch2D>& Drawable2D::GetSourceBatches()
  18144. // Error: type "const Vector<SourceBatch2D>&" can not automatically bind
  18145. // int Drawable2D::GetLayer() const
  18146. engine->RegisterObjectMethod(className, "int GetLayer() const", AS_METHODPR(T, GetLayer, () const, int), AS_CALL_THISCALL);
  18147. engine->RegisterObjectMethod(className, "int get_layer() const", AS_METHODPR(T, GetLayer, () const, int), AS_CALL_THISCALL);
  18148. // int Drawable2D::GetOrderInLayer() const
  18149. engine->RegisterObjectMethod(className, "int GetOrderInLayer() const", AS_METHODPR(T, GetOrderInLayer, () const, int), AS_CALL_THISCALL);
  18150. engine->RegisterObjectMethod(className, "int get_orderInLayer() const", AS_METHODPR(T, GetOrderInLayer, () const, int), AS_CALL_THISCALL);
  18151. // void Drawable2D::SetLayer(int layer)
  18152. engine->RegisterObjectMethod(className, "void SetLayer(int)", AS_METHODPR(T, SetLayer, (int), void), AS_CALL_THISCALL);
  18153. engine->RegisterObjectMethod(className, "void set_layer(int)", AS_METHODPR(T, SetLayer, (int), void), AS_CALL_THISCALL);
  18154. // void Drawable2D::SetOrderInLayer(int orderInLayer)
  18155. engine->RegisterObjectMethod(className, "void SetOrderInLayer(int)", AS_METHODPR(T, SetOrderInLayer, (int), void), AS_CALL_THISCALL);
  18156. engine->RegisterObjectMethod(className, "void set_orderInLayer(int)", AS_METHODPR(T, SetOrderInLayer, (int), void), AS_CALL_THISCALL);
  18157. #ifdef REGISTER_MEMBERS_MANUAL_PART_Drawable2D
  18158. REGISTER_MEMBERS_MANUAL_PART_Drawable2D();
  18159. #endif
  18160. }
  18161. // class Renderer2D | File: ../Urho2D/Renderer2D.h
  18162. template <class T> void RegisterMembers_Renderer2D(asIScriptEngine* engine, const char* className)
  18163. {
  18164. RegisterMembers_Drawable<T>(engine, className);
  18165. // void Renderer2D::AddDrawable(Drawable2D* drawable)
  18166. engine->RegisterObjectMethod(className, "void AddDrawable(Drawable2D@+)", AS_METHODPR(T, AddDrawable, (Drawable2D*), void), AS_CALL_THISCALL);
  18167. // bool Renderer2D::CheckVisibility(Drawable2D* drawable) const
  18168. engine->RegisterObjectMethod(className, "bool CheckVisibility(Drawable2D@+) const", AS_METHODPR(T, CheckVisibility, (Drawable2D*) const, bool), AS_CALL_THISCALL);
  18169. // Material* Renderer2D::GetMaterial(Texture2D* texture, BlendMode blendMode)
  18170. engine->RegisterObjectMethod(className, "Material@+ GetMaterial(Texture2D@+, BlendMode)", AS_METHODPR(T, GetMaterial, (Texture2D*, BlendMode), Material*), AS_CALL_THISCALL);
  18171. // void Renderer2D::RemoveDrawable(Drawable2D* drawable)
  18172. engine->RegisterObjectMethod(className, "void RemoveDrawable(Drawable2D@+)", AS_METHODPR(T, RemoveDrawable, (Drawable2D*), void), AS_CALL_THISCALL);
  18173. // virtual void Drawable::Update(const FrameInfo& frame)
  18174. engine->RegisterObjectMethod(className, "void Update(const FrameInfo&in)", AS_METHODPR(T, Update, (const FrameInfo&), void), AS_CALL_THISCALL);
  18175. #ifdef REGISTER_MEMBERS_MANUAL_PART_Renderer2D
  18176. REGISTER_MEMBERS_MANUAL_PART_Renderer2D();
  18177. #endif
  18178. }
  18179. #endif // def URHO3D_URHO2D
  18180. // const Vector<SharedPtr<AnimationState>>& AnimatedModel::GetAnimationStates() const
  18181. template <class T> CScriptArray* AnimatedModel_constspVectorlesSharedPtrlesAnimationStategregreamp_GetAnimationStates_void_template(T* _ptr)
  18182. {
  18183. const Vector<SharedPtr<AnimationState>>& result = _ptr->GetAnimationStates();
  18184. return VectorToHandleArray(result, "Array<AnimationState@>");
  18185. }
  18186. // const Vector<SharedPtr<VertexBuffer>>& AnimatedModel::GetMorphVertexBuffers() const
  18187. template <class T> CScriptArray* AnimatedModel_constspVectorlesSharedPtrlesVertexBuffergregreamp_GetMorphVertexBuffers_void_template(T* _ptr)
  18188. {
  18189. const Vector<SharedPtr<VertexBuffer>>& result = _ptr->GetMorphVertexBuffers();
  18190. return VectorToHandleArray(result, "Array<VertexBuffer@>");
  18191. }
  18192. // class AnimatedModel | File: ../Graphics/AnimatedModel.h
  18193. template <class T> void RegisterMembers_AnimatedModel(asIScriptEngine* engine, const char* className)
  18194. {
  18195. RegisterMembers_StaticModel<T>(engine, className);
  18196. // VariantVector AnimatedModel::GetAnimationStatesAttr() const
  18197. // Error: type "VariantVector" can not automatically bind
  18198. // VariantVector AnimatedModel::GetBonesEnabledAttr() const
  18199. // Error: type "VariantVector" can not automatically bind
  18200. // const Vector<PODVector<unsigned>>& AnimatedModel::GetGeometryBoneMappings() const
  18201. // Error: type "const Vector<PODVector<unsigned>>&" can not automatically bind
  18202. // const Vector<PODVector<Matrix3x4>>& AnimatedModel::GetGeometrySkinMatrices() const
  18203. // Error: type "const Vector<PODVector<Matrix3x4>>&" can not automatically bind
  18204. // const Vector<ModelMorph>& AnimatedModel::GetMorphs() const
  18205. // Error: type "const Vector<ModelMorph>&" can not automatically bind
  18206. // const PODVector<unsigned char>& AnimatedModel::GetMorphsAttr() const
  18207. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  18208. // void AnimatedModel::SetAnimationStatesAttr(const VariantVector& value)
  18209. // Error: type "const VariantVector&" can not automatically bind
  18210. // void AnimatedModel::SetBonesEnabledAttr(const VariantVector& value)
  18211. // Error: type "const VariantVector&" can not automatically bind
  18212. // void AnimatedModel::SetMorphsAttr(const PODVector<unsigned char>& value)
  18213. // Error: type "const PODVector<unsigned char>&" can not automatically bind
  18214. // AnimationState* AnimatedModel::AddAnimationState(Animation* animation)
  18215. engine->RegisterObjectMethod(className, "AnimationState@+ AddAnimationState(Animation@+)", AS_METHODPR(T, AddAnimationState, (Animation*), AnimationState*), AS_CALL_THISCALL);
  18216. // void AnimatedModel::ApplyAnimation()
  18217. engine->RegisterObjectMethod(className, "void ApplyAnimation()", AS_METHODPR(T, ApplyAnimation, (), void), AS_CALL_THISCALL);
  18218. // float AnimatedModel::GetAnimationLodBias() const
  18219. engine->RegisterObjectMethod(className, "float GetAnimationLodBias() const", AS_METHODPR(T, GetAnimationLodBias, () const, float), AS_CALL_THISCALL);
  18220. engine->RegisterObjectMethod(className, "float get_animationLodBias() const", AS_METHODPR(T, GetAnimationLodBias, () const, float), AS_CALL_THISCALL);
  18221. // AnimationState* AnimatedModel::GetAnimationState(Animation* animation) const
  18222. engine->RegisterObjectMethod(className, "AnimationState@+ GetAnimationState(Animation@+) const", AS_METHODPR(T, GetAnimationState, (Animation*) const, AnimationState*), AS_CALL_THISCALL);
  18223. // AnimationState* AnimatedModel::GetAnimationState(const String& animationName) const
  18224. engine->RegisterObjectMethod(className, "AnimationState@+ GetAnimationState(const String&in) const", AS_METHODPR(T, GetAnimationState, (const String&) const, AnimationState*), AS_CALL_THISCALL);
  18225. engine->RegisterObjectMethod(className, "AnimationState@+ get_animationStates(const String&in) const", AS_METHODPR(T, GetAnimationState, (const String&) const, AnimationState*), AS_CALL_THISCALL);
  18226. // AnimationState* AnimatedModel::GetAnimationState(StringHash animationNameHash) const
  18227. engine->RegisterObjectMethod(className, "AnimationState@+ GetAnimationState(StringHash) const", AS_METHODPR(T, GetAnimationState, (StringHash) const, AnimationState*), AS_CALL_THISCALL);
  18228. // AnimationState* AnimatedModel::GetAnimationState(unsigned index) const
  18229. engine->RegisterObjectMethod(className, "AnimationState@+ GetAnimationState(uint) const", AS_METHODPR(T, GetAnimationState, (unsigned) const, AnimationState*), AS_CALL_THISCALL);
  18230. // const Vector<SharedPtr<AnimationState>>& AnimatedModel::GetAnimationStates() const
  18231. engine->RegisterObjectMethod(className, "Array<AnimationState@>@ GetAnimationStates() const", AS_FUNCTION_OBJFIRST(AnimatedModel_constspVectorlesSharedPtrlesAnimationStategregreamp_GetAnimationStates_void_template<AnimatedModel>), AS_CALL_CDECL_OBJFIRST);
  18232. // const Vector<SharedPtr<VertexBuffer>>& AnimatedModel::GetMorphVertexBuffers() const
  18233. engine->RegisterObjectMethod(className, "Array<VertexBuffer@>@ GetMorphVertexBuffers() const", AS_FUNCTION_OBJFIRST(AnimatedModel_constspVectorlesSharedPtrlesVertexBuffergregreamp_GetMorphVertexBuffers_void_template<AnimatedModel>), AS_CALL_CDECL_OBJFIRST);
  18234. // float AnimatedModel::GetMorphWeight(unsigned index) const
  18235. engine->RegisterObjectMethod(className, "float GetMorphWeight(uint) const", AS_METHODPR(T, GetMorphWeight, (unsigned) const, float), AS_CALL_THISCALL);
  18236. // float AnimatedModel::GetMorphWeight(const String& name) const
  18237. engine->RegisterObjectMethod(className, "float GetMorphWeight(const String&in) const", AS_METHODPR(T, GetMorphWeight, (const String&) const, float), AS_CALL_THISCALL);
  18238. engine->RegisterObjectMethod(className, "float get_morphWeights(const String&in) const", AS_METHODPR(T, GetMorphWeight, (const String&) const, float), AS_CALL_THISCALL);
  18239. // float AnimatedModel::GetMorphWeight(StringHash nameHash) const
  18240. engine->RegisterObjectMethod(className, "float GetMorphWeight(StringHash) const", AS_METHODPR(T, GetMorphWeight, (StringHash) const, float), AS_CALL_THISCALL);
  18241. // unsigned AnimatedModel::GetNumAnimationStates() const
  18242. engine->RegisterObjectMethod(className, "uint GetNumAnimationStates() const", AS_METHODPR(T, GetNumAnimationStates, () const, unsigned), AS_CALL_THISCALL);
  18243. engine->RegisterObjectMethod(className, "uint get_numAnimationStates() const", AS_METHODPR(T, GetNumAnimationStates, () const, unsigned), AS_CALL_THISCALL);
  18244. // unsigned AnimatedModel::GetNumMorphs() const
  18245. engine->RegisterObjectMethod(className, "uint GetNumMorphs() const", AS_METHODPR(T, GetNumMorphs, () const, unsigned), AS_CALL_THISCALL);
  18246. engine->RegisterObjectMethod(className, "uint get_numMorphs() const", AS_METHODPR(T, GetNumMorphs, () const, unsigned), AS_CALL_THISCALL);
  18247. // Skeleton& AnimatedModel::GetSkeleton()
  18248. engine->RegisterObjectMethod(className, "Skeleton& GetSkeleton()", AS_METHODPR(T, GetSkeleton, (), Skeleton&), AS_CALL_THISCALL);
  18249. engine->RegisterObjectMethod(className, "Skeleton& get_skeleton()", AS_METHODPR(T, GetSkeleton, (), Skeleton&), AS_CALL_THISCALL);
  18250. // bool AnimatedModel::GetUpdateInvisible() const
  18251. engine->RegisterObjectMethod(className, "bool GetUpdateInvisible() const", AS_METHODPR(T, GetUpdateInvisible, () const, bool), AS_CALL_THISCALL);
  18252. engine->RegisterObjectMethod(className, "bool get_updateInvisible() const", AS_METHODPR(T, GetUpdateInvisible, () const, bool), AS_CALL_THISCALL);
  18253. // bool AnimatedModel::IsMaster() const
  18254. engine->RegisterObjectMethod(className, "bool IsMaster() const", AS_METHODPR(T, IsMaster, () const, bool), AS_CALL_THISCALL);
  18255. // void AnimatedModel::RemoveAllAnimationStates()
  18256. engine->RegisterObjectMethod(className, "void RemoveAllAnimationStates()", AS_METHODPR(T, RemoveAllAnimationStates, (), void), AS_CALL_THISCALL);
  18257. // void AnimatedModel::RemoveAnimationState(Animation* animation)
  18258. engine->RegisterObjectMethod(className, "void RemoveAnimationState(Animation@+)", AS_METHODPR(T, RemoveAnimationState, (Animation*), void), AS_CALL_THISCALL);
  18259. // void AnimatedModel::RemoveAnimationState(const String& animationName)
  18260. engine->RegisterObjectMethod(className, "void RemoveAnimationState(const String&in)", AS_METHODPR(T, RemoveAnimationState, (const String&), void), AS_CALL_THISCALL);
  18261. // void AnimatedModel::RemoveAnimationState(StringHash animationNameHash)
  18262. engine->RegisterObjectMethod(className, "void RemoveAnimationState(StringHash)", AS_METHODPR(T, RemoveAnimationState, (StringHash), void), AS_CALL_THISCALL);
  18263. // void AnimatedModel::RemoveAnimationState(AnimationState* state)
  18264. engine->RegisterObjectMethod(className, "void RemoveAnimationState(AnimationState@+)", AS_METHODPR(T, RemoveAnimationState, (AnimationState*), void), AS_CALL_THISCALL);
  18265. // void AnimatedModel::RemoveAnimationState(unsigned index)
  18266. engine->RegisterObjectMethod(className, "void RemoveAnimationState(uint)", AS_METHODPR(T, RemoveAnimationState, (unsigned), void), AS_CALL_THISCALL);
  18267. // void AnimatedModel::ResetMorphWeights()
  18268. engine->RegisterObjectMethod(className, "void ResetMorphWeights()", AS_METHODPR(T, ResetMorphWeights, (), void), AS_CALL_THISCALL);
  18269. // void AnimatedModel::SetAnimationLodBias(float bias)
  18270. engine->RegisterObjectMethod(className, "void SetAnimationLodBias(float)", AS_METHODPR(T, SetAnimationLodBias, (float), void), AS_CALL_THISCALL);
  18271. engine->RegisterObjectMethod(className, "void set_animationLodBias(float)", AS_METHODPR(T, SetAnimationLodBias, (float), void), AS_CALL_THISCALL);
  18272. // void AnimatedModel::SetModel(Model* model, bool createBones = true)
  18273. engine->RegisterObjectMethod(className, "void SetModel(Model@+, bool = true)", AS_METHODPR(T, SetModel, (Model*, bool), void), AS_CALL_THISCALL);
  18274. // void AnimatedModel::SetMorphWeight(unsigned index, float weight)
  18275. engine->RegisterObjectMethod(className, "void SetMorphWeight(uint, float)", AS_METHODPR(T, SetMorphWeight, (unsigned, float), void), AS_CALL_THISCALL);
  18276. // void AnimatedModel::SetMorphWeight(const String& name, float weight)
  18277. engine->RegisterObjectMethod(className, "void SetMorphWeight(const String&in, float)", AS_METHODPR(T, SetMorphWeight, (const String&, float), void), AS_CALL_THISCALL);
  18278. engine->RegisterObjectMethod(className, "void set_morphWeights(const String&in, float)", AS_METHODPR(T, SetMorphWeight, (const String&, float), void), AS_CALL_THISCALL);
  18279. // void AnimatedModel::SetMorphWeight(StringHash nameHash, float weight)
  18280. engine->RegisterObjectMethod(className, "void SetMorphWeight(StringHash, float)", AS_METHODPR(T, SetMorphWeight, (StringHash, float), void), AS_CALL_THISCALL);
  18281. // void AnimatedModel::SetUpdateInvisible(bool enable)
  18282. engine->RegisterObjectMethod(className, "void SetUpdateInvisible(bool)", AS_METHODPR(T, SetUpdateInvisible, (bool), void), AS_CALL_THISCALL);
  18283. engine->RegisterObjectMethod(className, "void set_updateInvisible(bool)", AS_METHODPR(T, SetUpdateInvisible, (bool), void), AS_CALL_THISCALL);
  18284. // void AnimatedModel::UpdateBoneBoundingBox()
  18285. engine->RegisterObjectMethod(className, "void UpdateBoneBoundingBox()", AS_METHODPR(T, UpdateBoneBoundingBox, (), void), AS_CALL_THISCALL);
  18286. #ifdef REGISTER_MEMBERS_MANUAL_PART_AnimatedModel
  18287. REGISTER_MEMBERS_MANUAL_PART_AnimatedModel();
  18288. #endif
  18289. }
  18290. // class Menu | File: ../UI/Menu.h
  18291. template <class T> void RegisterMembers_Menu(asIScriptEngine* engine, const char* className)
  18292. {
  18293. RegisterMembers_Button<T>(engine, className);
  18294. // int Menu::GetAcceleratorKey() const
  18295. engine->RegisterObjectMethod(className, "int GetAcceleratorKey() const", AS_METHODPR(T, GetAcceleratorKey, () const, int), AS_CALL_THISCALL);
  18296. engine->RegisterObjectMethod(className, "int get_acceleratorKey() const", AS_METHODPR(T, GetAcceleratorKey, () const, int), AS_CALL_THISCALL);
  18297. // int Menu::GetAcceleratorQualifiers() const
  18298. engine->RegisterObjectMethod(className, "int GetAcceleratorQualifiers() const", AS_METHODPR(T, GetAcceleratorQualifiers, () const, int), AS_CALL_THISCALL);
  18299. engine->RegisterObjectMethod(className, "int get_acceleratorQualifiers() const", AS_METHODPR(T, GetAcceleratorQualifiers, () const, int), AS_CALL_THISCALL);
  18300. // UIElement* Menu::GetPopup() const
  18301. engine->RegisterObjectMethod(className, "UIElement@+ GetPopup() const", AS_METHODPR(T, GetPopup, () const, UIElement*), AS_CALL_THISCALL);
  18302. engine->RegisterObjectMethod(className, "UIElement@+ get_popup() const", AS_METHODPR(T, GetPopup, () const, UIElement*), AS_CALL_THISCALL);
  18303. // const IntVector2& Menu::GetPopupOffset() const
  18304. engine->RegisterObjectMethod(className, "const IntVector2& GetPopupOffset() const", AS_METHODPR(T, GetPopupOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  18305. engine->RegisterObjectMethod(className, "const IntVector2& get_popupOffset() const", AS_METHODPR(T, GetPopupOffset, () const, const IntVector2&), AS_CALL_THISCALL);
  18306. // bool Menu::GetShowPopup() const
  18307. engine->RegisterObjectMethod(className, "bool GetShowPopup() const", AS_METHODPR(T, GetShowPopup, () const, bool), AS_CALL_THISCALL);
  18308. engine->RegisterObjectMethod(className, "bool get_showPopup() const", AS_METHODPR(T, GetShowPopup, () const, bool), AS_CALL_THISCALL);
  18309. // virtual void Menu::OnHidePopup()
  18310. engine->RegisterObjectMethod(className, "void OnHidePopup()", AS_METHODPR(T, OnHidePopup, (), void), AS_CALL_THISCALL);
  18311. // virtual void Menu::OnShowPopup()
  18312. engine->RegisterObjectMethod(className, "void OnShowPopup()", AS_METHODPR(T, OnShowPopup, (), void), AS_CALL_THISCALL);
  18313. // void Menu::SetAccelerator(int key, int qualifiers)
  18314. engine->RegisterObjectMethod(className, "void SetAccelerator(int, int)", AS_METHODPR(T, SetAccelerator, (int, int), void), AS_CALL_THISCALL);
  18315. // void Menu::SetPopup(UIElement* popup)
  18316. engine->RegisterObjectMethod(className, "void SetPopup(UIElement@+)", AS_METHODPR(T, SetPopup, (UIElement*), void), AS_CALL_THISCALL);
  18317. engine->RegisterObjectMethod(className, "void set_popup(UIElement@+)", AS_METHODPR(T, SetPopup, (UIElement*), void), AS_CALL_THISCALL);
  18318. // void Menu::SetPopupOffset(const IntVector2& offset)
  18319. engine->RegisterObjectMethod(className, "void SetPopupOffset(const IntVector2&in)", AS_METHODPR(T, SetPopupOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  18320. engine->RegisterObjectMethod(className, "void set_popupOffset(const IntVector2&in)", AS_METHODPR(T, SetPopupOffset, (const IntVector2&), void), AS_CALL_THISCALL);
  18321. // void Menu::SetPopupOffset(int x, int y)
  18322. engine->RegisterObjectMethod(className, "void SetPopupOffset(int, int)", AS_METHODPR(T, SetPopupOffset, (int, int), void), AS_CALL_THISCALL);
  18323. // void Menu::ShowPopup(bool enable)
  18324. engine->RegisterObjectMethod(className, "void ShowPopup(bool)", AS_METHODPR(T, ShowPopup, (bool), void), AS_CALL_THISCALL);
  18325. engine->RegisterObjectMethod(className, "void set_showPopup(bool)", AS_METHODPR(T, ShowPopup, (bool), void), AS_CALL_THISCALL);
  18326. #ifdef REGISTER_MEMBERS_MANUAL_PART_Menu
  18327. REGISTER_MEMBERS_MANUAL_PART_Menu();
  18328. #endif
  18329. }
  18330. // class ParticleEmitter | File: ../Graphics/ParticleEmitter.h
  18331. template <class T> void RegisterMembers_ParticleEmitter(asIScriptEngine* engine, const char* className)
  18332. {
  18333. RegisterMembers_BillboardSet<T>(engine, className);
  18334. // VariantVector ParticleEmitter::GetParticleBillboardsAttr() const
  18335. // Error: type "VariantVector" can not automatically bind
  18336. // VariantVector ParticleEmitter::GetParticlesAttr() const
  18337. // Error: type "VariantVector" can not automatically bind
  18338. // void ParticleEmitter::SetParticlesAttr(const VariantVector& value)
  18339. // Error: type "const VariantVector&" can not automatically bind
  18340. // void ParticleEmitter::ApplyEffect()
  18341. engine->RegisterObjectMethod(className, "void ApplyEffect()", AS_METHODPR(T, ApplyEffect, (), void), AS_CALL_THISCALL);
  18342. // AutoRemoveMode ParticleEmitter::GetAutoRemoveMode() const
  18343. engine->RegisterObjectMethod(className, "AutoRemoveMode GetAutoRemoveMode() const", AS_METHODPR(T, GetAutoRemoveMode, () const, AutoRemoveMode), AS_CALL_THISCALL);
  18344. engine->RegisterObjectMethod(className, "AutoRemoveMode get_autoRemoveMode() const", AS_METHODPR(T, GetAutoRemoveMode, () const, AutoRemoveMode), AS_CALL_THISCALL);
  18345. // ParticleEffect* ParticleEmitter::GetEffect() const
  18346. engine->RegisterObjectMethod(className, "ParticleEffect@+ GetEffect() const", AS_METHODPR(T, GetEffect, () const, ParticleEffect*), AS_CALL_THISCALL);
  18347. engine->RegisterObjectMethod(className, "ParticleEffect@+ get_effect() const", AS_METHODPR(T, GetEffect, () const, ParticleEffect*), AS_CALL_THISCALL);
  18348. // ResourceRef ParticleEmitter::GetEffectAttr() const
  18349. engine->RegisterObjectMethod(className, "ResourceRef GetEffectAttr() const", AS_METHODPR(T, GetEffectAttr, () const, ResourceRef), AS_CALL_THISCALL);
  18350. // unsigned ParticleEmitter::GetNumParticles() const
  18351. engine->RegisterObjectMethod(className, "uint GetNumParticles() const", AS_METHODPR(T, GetNumParticles, () const, unsigned), AS_CALL_THISCALL);
  18352. engine->RegisterObjectMethod(className, "uint get_numParticles() const", AS_METHODPR(T, GetNumParticles, () const, unsigned), AS_CALL_THISCALL);
  18353. // bool ParticleEmitter::GetSerializeParticles() const
  18354. engine->RegisterObjectMethod(className, "bool GetSerializeParticles() const", AS_METHODPR(T, GetSerializeParticles, () const, bool), AS_CALL_THISCALL);
  18355. engine->RegisterObjectMethod(className, "bool get_serializeParticles() const", AS_METHODPR(T, GetSerializeParticles, () const, bool), AS_CALL_THISCALL);
  18356. // bool ParticleEmitter::IsEmitting() const
  18357. engine->RegisterObjectMethod(className, "bool IsEmitting() const", AS_METHODPR(T, IsEmitting, () const, bool), AS_CALL_THISCALL);
  18358. engine->RegisterObjectMethod(className, "bool get_emitting() const", AS_METHODPR(T, IsEmitting, () const, bool), AS_CALL_THISCALL);
  18359. // void ParticleEmitter::RemoveAllParticles()
  18360. engine->RegisterObjectMethod(className, "void RemoveAllParticles()", AS_METHODPR(T, RemoveAllParticles, (), void), AS_CALL_THISCALL);
  18361. // void ParticleEmitter::Reset()
  18362. engine->RegisterObjectMethod(className, "void Reset()", AS_METHODPR(T, Reset, (), void), AS_CALL_THISCALL);
  18363. // void ParticleEmitter::ResetEmissionTimer()
  18364. engine->RegisterObjectMethod(className, "void ResetEmissionTimer()", AS_METHODPR(T, ResetEmissionTimer, (), void), AS_CALL_THISCALL);
  18365. // void ParticleEmitter::SetAutoRemoveMode(AutoRemoveMode mode)
  18366. engine->RegisterObjectMethod(className, "void SetAutoRemoveMode(AutoRemoveMode)", AS_METHODPR(T, SetAutoRemoveMode, (AutoRemoveMode), void), AS_CALL_THISCALL);
  18367. engine->RegisterObjectMethod(className, "void set_autoRemoveMode(AutoRemoveMode)", AS_METHODPR(T, SetAutoRemoveMode, (AutoRemoveMode), void), AS_CALL_THISCALL);
  18368. // void ParticleEmitter::SetEffect(ParticleEffect* effect)
  18369. engine->RegisterObjectMethod(className, "void SetEffect(ParticleEffect@+)", AS_METHODPR(T, SetEffect, (ParticleEffect*), void), AS_CALL_THISCALL);
  18370. engine->RegisterObjectMethod(className, "void set_effect(ParticleEffect@+)", AS_METHODPR(T, SetEffect, (ParticleEffect*), void), AS_CALL_THISCALL);
  18371. // void ParticleEmitter::SetEffectAttr(const ResourceRef& value)
  18372. engine->RegisterObjectMethod(className, "void SetEffectAttr(const ResourceRef&in)", AS_METHODPR(T, SetEffectAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  18373. // void ParticleEmitter::SetEmitting(bool enable)
  18374. engine->RegisterObjectMethod(className, "void SetEmitting(bool)", AS_METHODPR(T, SetEmitting, (bool), void), AS_CALL_THISCALL);
  18375. engine->RegisterObjectMethod(className, "void set_emitting(bool)", AS_METHODPR(T, SetEmitting, (bool), void), AS_CALL_THISCALL);
  18376. // void ParticleEmitter::SetNumParticles(unsigned num)
  18377. engine->RegisterObjectMethod(className, "void SetNumParticles(uint)", AS_METHODPR(T, SetNumParticles, (unsigned), void), AS_CALL_THISCALL);
  18378. engine->RegisterObjectMethod(className, "void set_numParticles(uint)", AS_METHODPR(T, SetNumParticles, (unsigned), void), AS_CALL_THISCALL);
  18379. // void ParticleEmitter::SetSerializeParticles(bool enable)
  18380. engine->RegisterObjectMethod(className, "void SetSerializeParticles(bool)", AS_METHODPR(T, SetSerializeParticles, (bool), void), AS_CALL_THISCALL);
  18381. engine->RegisterObjectMethod(className, "void set_serializeParticles(bool)", AS_METHODPR(T, SetSerializeParticles, (bool), void), AS_CALL_THISCALL);
  18382. #ifdef REGISTER_MEMBERS_MANUAL_PART_ParticleEmitter
  18383. REGISTER_MEMBERS_MANUAL_PART_ParticleEmitter();
  18384. #endif
  18385. }
  18386. // class Skybox | File: ../Graphics/Skybox.h
  18387. template <class T> void RegisterMembers_Skybox(asIScriptEngine* engine, const char* className)
  18388. {
  18389. RegisterMembers_StaticModel<T>(engine, className);
  18390. // virtual void StaticModel::SetModel(Model* model)
  18391. // Not registered because have @manualbind mark
  18392. #ifdef REGISTER_MEMBERS_MANUAL_PART_Skybox
  18393. REGISTER_MEMBERS_MANUAL_PART_Skybox();
  18394. #endif
  18395. }
  18396. // class StaticModelGroup | File: ../Graphics/StaticModelGroup.h
  18397. template <class T> void RegisterMembers_StaticModelGroup(asIScriptEngine* engine, const char* className)
  18398. {
  18399. RegisterMembers_StaticModel<T>(engine, className);
  18400. // const VariantVector& StaticModelGroup::GetNodeIDsAttr() const
  18401. // Error: type "const VariantVector&" can not automatically bind
  18402. // virtual void StaticModel::SetModel(Model* model)
  18403. // Not registered because have @manualbind mark
  18404. // void StaticModelGroup::SetNodeIDsAttr(const VariantVector& value)
  18405. // Error: type "const VariantVector&" can not automatically bind
  18406. // void StaticModelGroup::AddInstanceNode(Node* node)
  18407. engine->RegisterObjectMethod(className, "void AddInstanceNode(Node@+)", AS_METHODPR(T, AddInstanceNode, (Node*), void), AS_CALL_THISCALL);
  18408. // Node* StaticModelGroup::GetInstanceNode(unsigned index) const
  18409. engine->RegisterObjectMethod(className, "Node@+ GetInstanceNode(uint) const", AS_METHODPR(T, GetInstanceNode, (unsigned) const, Node*), AS_CALL_THISCALL);
  18410. engine->RegisterObjectMethod(className, "Node@+ get_instanceNodes(uint) const", AS_METHODPR(T, GetInstanceNode, (unsigned) const, Node*), AS_CALL_THISCALL);
  18411. // unsigned StaticModelGroup::GetNumInstanceNodes() const
  18412. engine->RegisterObjectMethod(className, "uint GetNumInstanceNodes() const", AS_METHODPR(T, GetNumInstanceNodes, () const, unsigned), AS_CALL_THISCALL);
  18413. engine->RegisterObjectMethod(className, "uint get_numInstanceNodes() const", AS_METHODPR(T, GetNumInstanceNodes, () const, unsigned), AS_CALL_THISCALL);
  18414. // void StaticModelGroup::RemoveAllInstanceNodes()
  18415. engine->RegisterObjectMethod(className, "void RemoveAllInstanceNodes()", AS_METHODPR(T, RemoveAllInstanceNodes, (), void), AS_CALL_THISCALL);
  18416. // void StaticModelGroup::RemoveInstanceNode(Node* node)
  18417. engine->RegisterObjectMethod(className, "void RemoveInstanceNode(Node@+)", AS_METHODPR(T, RemoveInstanceNode, (Node*), void), AS_CALL_THISCALL);
  18418. #ifdef REGISTER_MEMBERS_MANUAL_PART_StaticModelGroup
  18419. REGISTER_MEMBERS_MANUAL_PART_StaticModelGroup();
  18420. #endif
  18421. }
  18422. // class View3D | File: ../UI/View3D.h
  18423. template <class T> void RegisterMembers_View3D(asIScriptEngine* engine, const char* className)
  18424. {
  18425. RegisterMembers_Window<T>(engine, className);
  18426. // bool View3D::GetAutoUpdate() const
  18427. engine->RegisterObjectMethod(className, "bool GetAutoUpdate() const", AS_METHODPR(T, GetAutoUpdate, () const, bool), AS_CALL_THISCALL);
  18428. engine->RegisterObjectMethod(className, "bool get_autoUpdate() const", AS_METHODPR(T, GetAutoUpdate, () const, bool), AS_CALL_THISCALL);
  18429. // Node* View3D::GetCameraNode() const
  18430. engine->RegisterObjectMethod(className, "Node@+ GetCameraNode() const", AS_METHODPR(T, GetCameraNode, () const, Node*), AS_CALL_THISCALL);
  18431. engine->RegisterObjectMethod(className, "Node@+ get_cameraNode() const", AS_METHODPR(T, GetCameraNode, () const, Node*), AS_CALL_THISCALL);
  18432. // Texture2D* View3D::GetDepthTexture() const
  18433. engine->RegisterObjectMethod(className, "Texture2D@+ GetDepthTexture() const", AS_METHODPR(T, GetDepthTexture, () const, Texture2D*), AS_CALL_THISCALL);
  18434. engine->RegisterObjectMethod(className, "Texture2D@+ get_depthTexture() const", AS_METHODPR(T, GetDepthTexture, () const, Texture2D*), AS_CALL_THISCALL);
  18435. // unsigned View3D::GetFormat() const
  18436. engine->RegisterObjectMethod(className, "uint GetFormat() const", AS_METHODPR(T, GetFormat, () const, unsigned), AS_CALL_THISCALL);
  18437. engine->RegisterObjectMethod(className, "uint get_format() const", AS_METHODPR(T, GetFormat, () const, unsigned), AS_CALL_THISCALL);
  18438. // Texture2D* View3D::GetRenderTexture() const
  18439. engine->RegisterObjectMethod(className, "Texture2D@+ GetRenderTexture() const", AS_METHODPR(T, GetRenderTexture, () const, Texture2D*), AS_CALL_THISCALL);
  18440. engine->RegisterObjectMethod(className, "Texture2D@+ get_renderTexture() const", AS_METHODPR(T, GetRenderTexture, () const, Texture2D*), AS_CALL_THISCALL);
  18441. // Scene* View3D::GetScene() const
  18442. engine->RegisterObjectMethod(className, "Scene@+ GetScene() const", AS_METHODPR(T, GetScene, () const, Scene*), AS_CALL_THISCALL);
  18443. engine->RegisterObjectMethod(className, "Scene@+ get_scene() const", AS_METHODPR(T, GetScene, () const, Scene*), AS_CALL_THISCALL);
  18444. // Viewport* View3D::GetViewport() const
  18445. engine->RegisterObjectMethod(className, "Viewport@+ GetViewport() const", AS_METHODPR(T, GetViewport, () const, Viewport*), AS_CALL_THISCALL);
  18446. engine->RegisterObjectMethod(className, "Viewport@+ get_viewport() const", AS_METHODPR(T, GetViewport, () const, Viewport*), AS_CALL_THISCALL);
  18447. // void View3D::QueueUpdate()
  18448. engine->RegisterObjectMethod(className, "void QueueUpdate()", AS_METHODPR(T, QueueUpdate, (), void), AS_CALL_THISCALL);
  18449. // void View3D::SetAutoUpdate(bool enable)
  18450. engine->RegisterObjectMethod(className, "void SetAutoUpdate(bool)", AS_METHODPR(T, SetAutoUpdate, (bool), void), AS_CALL_THISCALL);
  18451. engine->RegisterObjectMethod(className, "void set_autoUpdate(bool)", AS_METHODPR(T, SetAutoUpdate, (bool), void), AS_CALL_THISCALL);
  18452. // void View3D::SetFormat(unsigned format)
  18453. engine->RegisterObjectMethod(className, "void SetFormat(uint)", AS_METHODPR(T, SetFormat, (unsigned), void), AS_CALL_THISCALL);
  18454. engine->RegisterObjectMethod(className, "void set_format(uint)", AS_METHODPR(T, SetFormat, (unsigned), void), AS_CALL_THISCALL);
  18455. // void View3D::SetView(Scene* scene, Camera* camera, bool ownScene = true)
  18456. engine->RegisterObjectMethod(className, "void SetView(Scene@+, Camera@+, bool = true)", AS_METHODPR(T, SetView, (Scene*, Camera*, bool), void), AS_CALL_THISCALL);
  18457. #ifdef REGISTER_MEMBERS_MANUAL_PART_View3D
  18458. REGISTER_MEMBERS_MANUAL_PART_View3D();
  18459. #endif
  18460. }
  18461. #ifdef URHO3D_URHO2D
  18462. // class ParticleEmitter2D | File: ../Urho2D/ParticleEmitter2D.h
  18463. template <class T> void RegisterMembers_ParticleEmitter2D(asIScriptEngine* engine, const char* className)
  18464. {
  18465. RegisterMembers_Drawable2D<T>(engine, className);
  18466. // BlendMode ParticleEmitter2D::GetBlendMode() const
  18467. engine->RegisterObjectMethod(className, "BlendMode GetBlendMode() const", AS_METHODPR(T, GetBlendMode, () const, BlendMode), AS_CALL_THISCALL);
  18468. engine->RegisterObjectMethod(className, "BlendMode get_blendMode() const", AS_METHODPR(T, GetBlendMode, () const, BlendMode), AS_CALL_THISCALL);
  18469. // ParticleEffect2D* ParticleEmitter2D::GetEffect() const
  18470. engine->RegisterObjectMethod(className, "ParticleEffect2D@+ GetEffect() const", AS_METHODPR(T, GetEffect, () const, ParticleEffect2D*), AS_CALL_THISCALL);
  18471. engine->RegisterObjectMethod(className, "ParticleEffect2D@+ get_effect() const", AS_METHODPR(T, GetEffect, () const, ParticleEffect2D*), AS_CALL_THISCALL);
  18472. // unsigned ParticleEmitter2D::GetMaxParticles() const
  18473. engine->RegisterObjectMethod(className, "uint GetMaxParticles() const", AS_METHODPR(T, GetMaxParticles, () const, unsigned), AS_CALL_THISCALL);
  18474. // ResourceRef ParticleEmitter2D::GetParticleEffectAttr() const
  18475. engine->RegisterObjectMethod(className, "ResourceRef GetParticleEffectAttr() const", AS_METHODPR(T, GetParticleEffectAttr, () const, ResourceRef), AS_CALL_THISCALL);
  18476. // Sprite2D* ParticleEmitter2D::GetSprite() const
  18477. engine->RegisterObjectMethod(className, "Sprite2D@+ GetSprite() const", AS_METHODPR(T, GetSprite, () const, Sprite2D*), AS_CALL_THISCALL);
  18478. engine->RegisterObjectMethod(className, "Sprite2D@+ get_sprite() const", AS_METHODPR(T, GetSprite, () const, Sprite2D*), AS_CALL_THISCALL);
  18479. // ResourceRef ParticleEmitter2D::GetSpriteAttr() const
  18480. engine->RegisterObjectMethod(className, "ResourceRef GetSpriteAttr() const", AS_METHODPR(T, GetSpriteAttr, () const, ResourceRef), AS_CALL_THISCALL);
  18481. // bool ParticleEmitter2D::IsEmitting() const
  18482. engine->RegisterObjectMethod(className, "bool IsEmitting() const", AS_METHODPR(T, IsEmitting, () const, bool), AS_CALL_THISCALL);
  18483. engine->RegisterObjectMethod(className, "bool get_emitting() const", AS_METHODPR(T, IsEmitting, () const, bool), AS_CALL_THISCALL);
  18484. // void ParticleEmitter2D::SetBlendMode(BlendMode blendMode)
  18485. engine->RegisterObjectMethod(className, "void SetBlendMode(BlendMode)", AS_METHODPR(T, SetBlendMode, (BlendMode), void), AS_CALL_THISCALL);
  18486. engine->RegisterObjectMethod(className, "void set_blendMode(BlendMode)", AS_METHODPR(T, SetBlendMode, (BlendMode), void), AS_CALL_THISCALL);
  18487. // void ParticleEmitter2D::SetEffect(ParticleEffect2D* effect)
  18488. engine->RegisterObjectMethod(className, "void SetEffect(ParticleEffect2D@+)", AS_METHODPR(T, SetEffect, (ParticleEffect2D*), void), AS_CALL_THISCALL);
  18489. engine->RegisterObjectMethod(className, "void set_effect(ParticleEffect2D@+)", AS_METHODPR(T, SetEffect, (ParticleEffect2D*), void), AS_CALL_THISCALL);
  18490. // void ParticleEmitter2D::SetEmitting(bool enable)
  18491. engine->RegisterObjectMethod(className, "void SetEmitting(bool)", AS_METHODPR(T, SetEmitting, (bool), void), AS_CALL_THISCALL);
  18492. engine->RegisterObjectMethod(className, "void set_emitting(bool)", AS_METHODPR(T, SetEmitting, (bool), void), AS_CALL_THISCALL);
  18493. // void ParticleEmitter2D::SetMaxParticles(unsigned maxParticles)
  18494. engine->RegisterObjectMethod(className, "void SetMaxParticles(uint)", AS_METHODPR(T, SetMaxParticles, (unsigned), void), AS_CALL_THISCALL);
  18495. // void ParticleEmitter2D::SetParticleEffectAttr(const ResourceRef& value)
  18496. engine->RegisterObjectMethod(className, "void SetParticleEffectAttr(const ResourceRef&in)", AS_METHODPR(T, SetParticleEffectAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  18497. // void ParticleEmitter2D::SetSprite(Sprite2D* sprite)
  18498. engine->RegisterObjectMethod(className, "void SetSprite(Sprite2D@+)", AS_METHODPR(T, SetSprite, (Sprite2D*), void), AS_CALL_THISCALL);
  18499. engine->RegisterObjectMethod(className, "void set_sprite(Sprite2D@+)", AS_METHODPR(T, SetSprite, (Sprite2D*), void), AS_CALL_THISCALL);
  18500. // void ParticleEmitter2D::SetSpriteAttr(const ResourceRef& value)
  18501. engine->RegisterObjectMethod(className, "void SetSpriteAttr(const ResourceRef&in)", AS_METHODPR(T, SetSpriteAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  18502. #ifdef REGISTER_MEMBERS_MANUAL_PART_ParticleEmitter2D
  18503. REGISTER_MEMBERS_MANUAL_PART_ParticleEmitter2D();
  18504. #endif
  18505. }
  18506. // class StaticSprite2D | File: ../Urho2D/StaticSprite2D.h
  18507. template <class T> void RegisterMembers_StaticSprite2D(asIScriptEngine* engine, const char* className)
  18508. {
  18509. RegisterMembers_Drawable2D<T>(engine, className);
  18510. // float StaticSprite2D::GetAlpha() const
  18511. engine->RegisterObjectMethod(className, "float GetAlpha() const", AS_METHODPR(T, GetAlpha, () const, float), AS_CALL_THISCALL);
  18512. engine->RegisterObjectMethod(className, "float get_alpha() const", AS_METHODPR(T, GetAlpha, () const, float), AS_CALL_THISCALL);
  18513. // BlendMode StaticSprite2D::GetBlendMode() const
  18514. engine->RegisterObjectMethod(className, "BlendMode GetBlendMode() const", AS_METHODPR(T, GetBlendMode, () const, BlendMode), AS_CALL_THISCALL);
  18515. engine->RegisterObjectMethod(className, "BlendMode get_blendMode() const", AS_METHODPR(T, GetBlendMode, () const, BlendMode), AS_CALL_THISCALL);
  18516. // const Color& StaticSprite2D::GetColor() const
  18517. engine->RegisterObjectMethod(className, "const Color& GetColor() const", AS_METHODPR(T, GetColor, () const, const Color&), AS_CALL_THISCALL);
  18518. engine->RegisterObjectMethod(className, "const Color& get_color() const", AS_METHODPR(T, GetColor, () const, const Color&), AS_CALL_THISCALL);
  18519. // Material* StaticSprite2D::GetCustomMaterial() const
  18520. engine->RegisterObjectMethod(className, "Material@+ GetCustomMaterial() const", AS_METHODPR(T, GetCustomMaterial, () const, Material*), AS_CALL_THISCALL);
  18521. engine->RegisterObjectMethod(className, "Material@+ get_customMaterial() const", AS_METHODPR(T, GetCustomMaterial, () const, Material*), AS_CALL_THISCALL);
  18522. // ResourceRef StaticSprite2D::GetCustomMaterialAttr() const
  18523. engine->RegisterObjectMethod(className, "ResourceRef GetCustomMaterialAttr() const", AS_METHODPR(T, GetCustomMaterialAttr, () const, ResourceRef), AS_CALL_THISCALL);
  18524. // const Rect& StaticSprite2D::GetDrawRect() const
  18525. engine->RegisterObjectMethod(className, "const Rect& GetDrawRect() const", AS_METHODPR(T, GetDrawRect, () const, const Rect&), AS_CALL_THISCALL);
  18526. engine->RegisterObjectMethod(className, "const Rect& get_drawRect() const", AS_METHODPR(T, GetDrawRect, () const, const Rect&), AS_CALL_THISCALL);
  18527. // bool StaticSprite2D::GetFlipX() const
  18528. engine->RegisterObjectMethod(className, "bool GetFlipX() const", AS_METHODPR(T, GetFlipX, () const, bool), AS_CALL_THISCALL);
  18529. engine->RegisterObjectMethod(className, "bool get_flipX() const", AS_METHODPR(T, GetFlipX, () const, bool), AS_CALL_THISCALL);
  18530. // bool StaticSprite2D::GetFlipY() const
  18531. engine->RegisterObjectMethod(className, "bool GetFlipY() const", AS_METHODPR(T, GetFlipY, () const, bool), AS_CALL_THISCALL);
  18532. engine->RegisterObjectMethod(className, "bool get_flipY() const", AS_METHODPR(T, GetFlipY, () const, bool), AS_CALL_THISCALL);
  18533. // const Vector2& StaticSprite2D::GetHotSpot() const
  18534. engine->RegisterObjectMethod(className, "const Vector2& GetHotSpot() const", AS_METHODPR(T, GetHotSpot, () const, const Vector2&), AS_CALL_THISCALL);
  18535. engine->RegisterObjectMethod(className, "const Vector2& get_hotSpot() const", AS_METHODPR(T, GetHotSpot, () const, const Vector2&), AS_CALL_THISCALL);
  18536. // Sprite2D* StaticSprite2D::GetSprite() const
  18537. engine->RegisterObjectMethod(className, "Sprite2D@+ GetSprite() const", AS_METHODPR(T, GetSprite, () const, Sprite2D*), AS_CALL_THISCALL);
  18538. engine->RegisterObjectMethod(className, "Sprite2D@+ get_sprite() const", AS_METHODPR(T, GetSprite, () const, Sprite2D*), AS_CALL_THISCALL);
  18539. // ResourceRef StaticSprite2D::GetSpriteAttr() const
  18540. engine->RegisterObjectMethod(className, "ResourceRef GetSpriteAttr() const", AS_METHODPR(T, GetSpriteAttr, () const, ResourceRef), AS_CALL_THISCALL);
  18541. // bool StaticSprite2D::GetSwapXY() const
  18542. engine->RegisterObjectMethod(className, "bool GetSwapXY() const", AS_METHODPR(T, GetSwapXY, () const, bool), AS_CALL_THISCALL);
  18543. engine->RegisterObjectMethod(className, "bool get_swapXY() const", AS_METHODPR(T, GetSwapXY, () const, bool), AS_CALL_THISCALL);
  18544. // const Rect& StaticSprite2D::GetTextureRect() const
  18545. engine->RegisterObjectMethod(className, "const Rect& GetTextureRect() const", AS_METHODPR(T, GetTextureRect, () const, const Rect&), AS_CALL_THISCALL);
  18546. engine->RegisterObjectMethod(className, "const Rect& get_textureRect() const", AS_METHODPR(T, GetTextureRect, () const, const Rect&), AS_CALL_THISCALL);
  18547. // bool StaticSprite2D::GetUseDrawRect() const
  18548. engine->RegisterObjectMethod(className, "bool GetUseDrawRect() const", AS_METHODPR(T, GetUseDrawRect, () const, bool), AS_CALL_THISCALL);
  18549. engine->RegisterObjectMethod(className, "bool get_useDrawRect() const", AS_METHODPR(T, GetUseDrawRect, () const, bool), AS_CALL_THISCALL);
  18550. // bool StaticSprite2D::GetUseHotSpot() const
  18551. engine->RegisterObjectMethod(className, "bool GetUseHotSpot() const", AS_METHODPR(T, GetUseHotSpot, () const, bool), AS_CALL_THISCALL);
  18552. engine->RegisterObjectMethod(className, "bool get_useHotSpot() const", AS_METHODPR(T, GetUseHotSpot, () const, bool), AS_CALL_THISCALL);
  18553. // bool StaticSprite2D::GetUseTextureRect() const
  18554. engine->RegisterObjectMethod(className, "bool GetUseTextureRect() const", AS_METHODPR(T, GetUseTextureRect, () const, bool), AS_CALL_THISCALL);
  18555. engine->RegisterObjectMethod(className, "bool get_useTextureRect() const", AS_METHODPR(T, GetUseTextureRect, () const, bool), AS_CALL_THISCALL);
  18556. // void StaticSprite2D::SetAlpha(float alpha)
  18557. engine->RegisterObjectMethod(className, "void SetAlpha(float)", AS_METHODPR(T, SetAlpha, (float), void), AS_CALL_THISCALL);
  18558. engine->RegisterObjectMethod(className, "void set_alpha(float)", AS_METHODPR(T, SetAlpha, (float), void), AS_CALL_THISCALL);
  18559. // void StaticSprite2D::SetBlendMode(BlendMode blendMode)
  18560. engine->RegisterObjectMethod(className, "void SetBlendMode(BlendMode)", AS_METHODPR(T, SetBlendMode, (BlendMode), void), AS_CALL_THISCALL);
  18561. engine->RegisterObjectMethod(className, "void set_blendMode(BlendMode)", AS_METHODPR(T, SetBlendMode, (BlendMode), void), AS_CALL_THISCALL);
  18562. // void StaticSprite2D::SetColor(const Color& color)
  18563. engine->RegisterObjectMethod(className, "void SetColor(const Color&in)", AS_METHODPR(T, SetColor, (const Color&), void), AS_CALL_THISCALL);
  18564. engine->RegisterObjectMethod(className, "void set_color(const Color&in)", AS_METHODPR(T, SetColor, (const Color&), void), AS_CALL_THISCALL);
  18565. // void StaticSprite2D::SetCustomMaterial(Material* customMaterial)
  18566. engine->RegisterObjectMethod(className, "void SetCustomMaterial(Material@+)", AS_METHODPR(T, SetCustomMaterial, (Material*), void), AS_CALL_THISCALL);
  18567. engine->RegisterObjectMethod(className, "void set_customMaterial(Material@+)", AS_METHODPR(T, SetCustomMaterial, (Material*), void), AS_CALL_THISCALL);
  18568. // void StaticSprite2D::SetCustomMaterialAttr(const ResourceRef& value)
  18569. engine->RegisterObjectMethod(className, "void SetCustomMaterialAttr(const ResourceRef&in)", AS_METHODPR(T, SetCustomMaterialAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  18570. // void StaticSprite2D::SetDrawRect(const Rect& rect)
  18571. engine->RegisterObjectMethod(className, "void SetDrawRect(const Rect&in)", AS_METHODPR(T, SetDrawRect, (const Rect&), void), AS_CALL_THISCALL);
  18572. engine->RegisterObjectMethod(className, "void set_drawRect(const Rect&in)", AS_METHODPR(T, SetDrawRect, (const Rect&), void), AS_CALL_THISCALL);
  18573. // void StaticSprite2D::SetFlip(bool flipX, bool flipY, bool swapXY = false)
  18574. engine->RegisterObjectMethod(className, "void SetFlip(bool, bool, bool = false)", AS_METHODPR(T, SetFlip, (bool, bool, bool), void), AS_CALL_THISCALL);
  18575. // void StaticSprite2D::SetFlipX(bool flipX)
  18576. engine->RegisterObjectMethod(className, "void SetFlipX(bool)", AS_METHODPR(T, SetFlipX, (bool), void), AS_CALL_THISCALL);
  18577. engine->RegisterObjectMethod(className, "void set_flipX(bool)", AS_METHODPR(T, SetFlipX, (bool), void), AS_CALL_THISCALL);
  18578. // void StaticSprite2D::SetFlipY(bool flipY)
  18579. engine->RegisterObjectMethod(className, "void SetFlipY(bool)", AS_METHODPR(T, SetFlipY, (bool), void), AS_CALL_THISCALL);
  18580. engine->RegisterObjectMethod(className, "void set_flipY(bool)", AS_METHODPR(T, SetFlipY, (bool), void), AS_CALL_THISCALL);
  18581. // void StaticSprite2D::SetHotSpot(const Vector2& hotspot)
  18582. engine->RegisterObjectMethod(className, "void SetHotSpot(const Vector2&in)", AS_METHODPR(T, SetHotSpot, (const Vector2&), void), AS_CALL_THISCALL);
  18583. engine->RegisterObjectMethod(className, "void set_hotSpot(const Vector2&in)", AS_METHODPR(T, SetHotSpot, (const Vector2&), void), AS_CALL_THISCALL);
  18584. // void StaticSprite2D::SetSprite(Sprite2D* sprite)
  18585. engine->RegisterObjectMethod(className, "void SetSprite(Sprite2D@+)", AS_METHODPR(T, SetSprite, (Sprite2D*), void), AS_CALL_THISCALL);
  18586. engine->RegisterObjectMethod(className, "void set_sprite(Sprite2D@+)", AS_METHODPR(T, SetSprite, (Sprite2D*), void), AS_CALL_THISCALL);
  18587. // void StaticSprite2D::SetSpriteAttr(const ResourceRef& value)
  18588. engine->RegisterObjectMethod(className, "void SetSpriteAttr(const ResourceRef&in)", AS_METHODPR(T, SetSpriteAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  18589. // void StaticSprite2D::SetSwapXY(bool swapXY)
  18590. engine->RegisterObjectMethod(className, "void SetSwapXY(bool)", AS_METHODPR(T, SetSwapXY, (bool), void), AS_CALL_THISCALL);
  18591. engine->RegisterObjectMethod(className, "void set_swapXY(bool)", AS_METHODPR(T, SetSwapXY, (bool), void), AS_CALL_THISCALL);
  18592. // void StaticSprite2D::SetTextureRect(const Rect& rect)
  18593. engine->RegisterObjectMethod(className, "void SetTextureRect(const Rect&in)", AS_METHODPR(T, SetTextureRect, (const Rect&), void), AS_CALL_THISCALL);
  18594. engine->RegisterObjectMethod(className, "void set_textureRect(const Rect&in)", AS_METHODPR(T, SetTextureRect, (const Rect&), void), AS_CALL_THISCALL);
  18595. // void StaticSprite2D::SetUseDrawRect(bool useDrawRect)
  18596. engine->RegisterObjectMethod(className, "void SetUseDrawRect(bool)", AS_METHODPR(T, SetUseDrawRect, (bool), void), AS_CALL_THISCALL);
  18597. engine->RegisterObjectMethod(className, "void set_useDrawRect(bool)", AS_METHODPR(T, SetUseDrawRect, (bool), void), AS_CALL_THISCALL);
  18598. // void StaticSprite2D::SetUseHotSpot(bool useHotSpot)
  18599. engine->RegisterObjectMethod(className, "void SetUseHotSpot(bool)", AS_METHODPR(T, SetUseHotSpot, (bool), void), AS_CALL_THISCALL);
  18600. engine->RegisterObjectMethod(className, "void set_useHotSpot(bool)", AS_METHODPR(T, SetUseHotSpot, (bool), void), AS_CALL_THISCALL);
  18601. // void StaticSprite2D::SetUseTextureRect(bool useTextureRect)
  18602. engine->RegisterObjectMethod(className, "void SetUseTextureRect(bool)", AS_METHODPR(T, SetUseTextureRect, (bool), void), AS_CALL_THISCALL);
  18603. engine->RegisterObjectMethod(className, "void set_useTextureRect(bool)", AS_METHODPR(T, SetUseTextureRect, (bool), void), AS_CALL_THISCALL);
  18604. // virtual void Drawable::Update(const FrameInfo& frame)
  18605. engine->RegisterObjectMethod(className, "void Update(const FrameInfo&in)", AS_METHODPR(T, Update, (const FrameInfo&), void), AS_CALL_THISCALL);
  18606. #ifdef REGISTER_MEMBERS_MANUAL_PART_StaticSprite2D
  18607. REGISTER_MEMBERS_MANUAL_PART_StaticSprite2D();
  18608. #endif
  18609. }
  18610. #endif // def URHO3D_URHO2D
  18611. // PODVector<UIElement*> DropDownList::GetItems() const
  18612. template <class T> CScriptArray* DropDownList_PODVectorlesUIElementstargre_GetItems_void_template(T* _ptr)
  18613. {
  18614. PODVector<UIElement*> result = _ptr->GetItems();
  18615. return VectorToHandleArray(result, "Array<UIElement@>");
  18616. }
  18617. // class DropDownList | File: ../UI/DropDownList.h
  18618. template <class T> void RegisterMembers_DropDownList(asIScriptEngine* engine, const char* className)
  18619. {
  18620. RegisterMembers_Menu<T>(engine, className);
  18621. // void DropDownList::AddItem(UIElement* item)
  18622. engine->RegisterObjectMethod(className, "void AddItem(UIElement@+)", AS_METHODPR(T, AddItem, (UIElement*), void), AS_CALL_THISCALL);
  18623. // UIElement* DropDownList::GetItem(unsigned index) const
  18624. engine->RegisterObjectMethod(className, "UIElement@+ GetItem(uint) const", AS_METHODPR(T, GetItem, (unsigned) const, UIElement*), AS_CALL_THISCALL);
  18625. engine->RegisterObjectMethod(className, "UIElement@+ get_items(uint) const", AS_METHODPR(T, GetItem, (unsigned) const, UIElement*), AS_CALL_THISCALL);
  18626. // PODVector<UIElement*> DropDownList::GetItems() const
  18627. engine->RegisterObjectMethod(className, "Array<UIElement@>@ GetItems() const", AS_FUNCTION_OBJFIRST(DropDownList_PODVectorlesUIElementstargre_GetItems_void_template<DropDownList>), AS_CALL_CDECL_OBJFIRST);
  18628. // ListView* DropDownList::GetListView() const
  18629. engine->RegisterObjectMethod(className, "ListView@+ GetListView() const", AS_METHODPR(T, GetListView, () const, ListView*), AS_CALL_THISCALL);
  18630. engine->RegisterObjectMethod(className, "ListView@+ get_listView() const", AS_METHODPR(T, GetListView, () const, ListView*), AS_CALL_THISCALL);
  18631. // unsigned DropDownList::GetNumItems() const
  18632. engine->RegisterObjectMethod(className, "uint GetNumItems() const", AS_METHODPR(T, GetNumItems, () const, unsigned), AS_CALL_THISCALL);
  18633. engine->RegisterObjectMethod(className, "uint get_numItems() const", AS_METHODPR(T, GetNumItems, () const, unsigned), AS_CALL_THISCALL);
  18634. // UIElement* DropDownList::GetPlaceholder() const
  18635. engine->RegisterObjectMethod(className, "UIElement@+ GetPlaceholder() const", AS_METHODPR(T, GetPlaceholder, () const, UIElement*), AS_CALL_THISCALL);
  18636. engine->RegisterObjectMethod(className, "UIElement@+ get_placeholder() const", AS_METHODPR(T, GetPlaceholder, () const, UIElement*), AS_CALL_THISCALL);
  18637. // const String& DropDownList::GetPlaceholderText() const
  18638. engine->RegisterObjectMethod(className, "const String& GetPlaceholderText() const", AS_METHODPR(T, GetPlaceholderText, () const, const String&), AS_CALL_THISCALL);
  18639. engine->RegisterObjectMethod(className, "const String& get_placeholderText() const", AS_METHODPR(T, GetPlaceholderText, () const, const String&), AS_CALL_THISCALL);
  18640. // bool DropDownList::GetResizePopup() const
  18641. engine->RegisterObjectMethod(className, "bool GetResizePopup() const", AS_METHODPR(T, GetResizePopup, () const, bool), AS_CALL_THISCALL);
  18642. engine->RegisterObjectMethod(className, "bool get_resizePopup() const", AS_METHODPR(T, GetResizePopup, () const, bool), AS_CALL_THISCALL);
  18643. // UIElement* DropDownList::GetSelectedItem() const
  18644. engine->RegisterObjectMethod(className, "UIElement@+ GetSelectedItem() const", AS_METHODPR(T, GetSelectedItem, () const, UIElement*), AS_CALL_THISCALL);
  18645. engine->RegisterObjectMethod(className, "UIElement@+ get_selectedItem() const", AS_METHODPR(T, GetSelectedItem, () const, UIElement*), AS_CALL_THISCALL);
  18646. // unsigned DropDownList::GetSelection() const
  18647. engine->RegisterObjectMethod(className, "uint GetSelection() const", AS_METHODPR(T, GetSelection, () const, unsigned), AS_CALL_THISCALL);
  18648. engine->RegisterObjectMethod(className, "uint get_selection() const", AS_METHODPR(T, GetSelection, () const, unsigned), AS_CALL_THISCALL);
  18649. // void DropDownList::InsertItem(unsigned index, UIElement* item)
  18650. engine->RegisterObjectMethod(className, "void InsertItem(uint, UIElement@+)", AS_METHODPR(T, InsertItem, (unsigned, UIElement*), void), AS_CALL_THISCALL);
  18651. // void DropDownList::RemoveAllItems()
  18652. engine->RegisterObjectMethod(className, "void RemoveAllItems()", AS_METHODPR(T, RemoveAllItems, (), void), AS_CALL_THISCALL);
  18653. // void DropDownList::RemoveItem(UIElement* item)
  18654. engine->RegisterObjectMethod(className, "void RemoveItem(UIElement@+)", AS_METHODPR(T, RemoveItem, (UIElement*), void), AS_CALL_THISCALL);
  18655. // void DropDownList::RemoveItem(unsigned index)
  18656. engine->RegisterObjectMethod(className, "void RemoveItem(uint)", AS_METHODPR(T, RemoveItem, (unsigned), void), AS_CALL_THISCALL);
  18657. // void DropDownList::SetPlaceholderText(const String& text)
  18658. engine->RegisterObjectMethod(className, "void SetPlaceholderText(const String&in)", AS_METHODPR(T, SetPlaceholderText, (const String&), void), AS_CALL_THISCALL);
  18659. engine->RegisterObjectMethod(className, "void set_placeholderText(const String&in)", AS_METHODPR(T, SetPlaceholderText, (const String&), void), AS_CALL_THISCALL);
  18660. // void DropDownList::SetResizePopup(bool enable)
  18661. engine->RegisterObjectMethod(className, "void SetResizePopup(bool)", AS_METHODPR(T, SetResizePopup, (bool), void), AS_CALL_THISCALL);
  18662. engine->RegisterObjectMethod(className, "void set_resizePopup(bool)", AS_METHODPR(T, SetResizePopup, (bool), void), AS_CALL_THISCALL);
  18663. // void DropDownList::SetSelection(unsigned index)
  18664. engine->RegisterObjectMethod(className, "void SetSelection(uint)", AS_METHODPR(T, SetSelection, (unsigned), void), AS_CALL_THISCALL);
  18665. engine->RegisterObjectMethod(className, "void set_selection(uint)", AS_METHODPR(T, SetSelection, (unsigned), void), AS_CALL_THISCALL);
  18666. // void DropDownList::SetSelectionAttr(unsigned index)
  18667. engine->RegisterObjectMethod(className, "void SetSelectionAttr(uint)", AS_METHODPR(T, SetSelectionAttr, (unsigned), void), AS_CALL_THISCALL);
  18668. #ifdef REGISTER_MEMBERS_MANUAL_PART_DropDownList
  18669. REGISTER_MEMBERS_MANUAL_PART_DropDownList();
  18670. #endif
  18671. }
  18672. #ifdef URHO3D_URHO2D
  18673. // class AnimatedSprite2D | File: ../Urho2D/AnimatedSprite2D.h
  18674. template <class T> void RegisterMembers_AnimatedSprite2D(asIScriptEngine* engine, const char* className)
  18675. {
  18676. RegisterMembers_StaticSprite2D<T>(engine, className);
  18677. // const String& AnimatedSprite2D::GetAnimation() const
  18678. engine->RegisterObjectMethod(className, "const String& GetAnimation() const", AS_METHODPR(T, GetAnimation, () const, const String&), AS_CALL_THISCALL);
  18679. engine->RegisterObjectMethod(className, "const String& get_animation() const", AS_METHODPR(T, GetAnimation, () const, const String&), AS_CALL_THISCALL);
  18680. // AnimationSet2D* AnimatedSprite2D::GetAnimationSet() const
  18681. engine->RegisterObjectMethod(className, "AnimationSet2D@+ GetAnimationSet() const", AS_METHODPR(T, GetAnimationSet, () const, AnimationSet2D*), AS_CALL_THISCALL);
  18682. engine->RegisterObjectMethod(className, "AnimationSet2D@+ get_animationSet() const", AS_METHODPR(T, GetAnimationSet, () const, AnimationSet2D*), AS_CALL_THISCALL);
  18683. // ResourceRef AnimatedSprite2D::GetAnimationSetAttr() const
  18684. engine->RegisterObjectMethod(className, "ResourceRef GetAnimationSetAttr() const", AS_METHODPR(T, GetAnimationSetAttr, () const, ResourceRef), AS_CALL_THISCALL);
  18685. // const String& AnimatedSprite2D::GetEntity() const
  18686. engine->RegisterObjectMethod(className, "const String& GetEntity() const", AS_METHODPR(T, GetEntity, () const, const String&), AS_CALL_THISCALL);
  18687. engine->RegisterObjectMethod(className, "const String& get_entity() const", AS_METHODPR(T, GetEntity, () const, const String&), AS_CALL_THISCALL);
  18688. // LoopMode2D AnimatedSprite2D::GetLoopMode() const
  18689. engine->RegisterObjectMethod(className, "LoopMode2D GetLoopMode() const", AS_METHODPR(T, GetLoopMode, () const, LoopMode2D), AS_CALL_THISCALL);
  18690. engine->RegisterObjectMethod(className, "LoopMode2D get_loopMode() const", AS_METHODPR(T, GetLoopMode, () const, LoopMode2D), AS_CALL_THISCALL);
  18691. // float AnimatedSprite2D::GetSpeed() const
  18692. engine->RegisterObjectMethod(className, "float GetSpeed() const", AS_METHODPR(T, GetSpeed, () const, float), AS_CALL_THISCALL);
  18693. engine->RegisterObjectMethod(className, "float get_speed() const", AS_METHODPR(T, GetSpeed, () const, float), AS_CALL_THISCALL);
  18694. // void AnimatedSprite2D::SetAnimation(const String& name, LoopMode2D loopMode = LM_DEFAULT)
  18695. engine->RegisterObjectMethod(className, "void SetAnimation(const String&in, LoopMode2D = LM_DEFAULT)", AS_METHODPR(T, SetAnimation, (const String&, LoopMode2D), void), AS_CALL_THISCALL);
  18696. // void AnimatedSprite2D::SetAnimationAttr(const String& name)
  18697. engine->RegisterObjectMethod(className, "void SetAnimationAttr(const String&in)", AS_METHODPR(T, SetAnimationAttr, (const String&), void), AS_CALL_THISCALL);
  18698. engine->RegisterObjectMethod(className, "void set_animation(const String&in)", AS_METHODPR(T, SetAnimationAttr, (const String&), void), AS_CALL_THISCALL);
  18699. // void AnimatedSprite2D::SetAnimationSet(AnimationSet2D* animationSet)
  18700. engine->RegisterObjectMethod(className, "void SetAnimationSet(AnimationSet2D@+)", AS_METHODPR(T, SetAnimationSet, (AnimationSet2D*), void), AS_CALL_THISCALL);
  18701. engine->RegisterObjectMethod(className, "void set_animationSet(AnimationSet2D@+)", AS_METHODPR(T, SetAnimationSet, (AnimationSet2D*), void), AS_CALL_THISCALL);
  18702. // void AnimatedSprite2D::SetAnimationSetAttr(const ResourceRef& value)
  18703. engine->RegisterObjectMethod(className, "void SetAnimationSetAttr(const ResourceRef&in)", AS_METHODPR(T, SetAnimationSetAttr, (const ResourceRef&), void), AS_CALL_THISCALL);
  18704. // void AnimatedSprite2D::SetEntity(const String& entity)
  18705. engine->RegisterObjectMethod(className, "void SetEntity(const String&in)", AS_METHODPR(T, SetEntity, (const String&), void), AS_CALL_THISCALL);
  18706. engine->RegisterObjectMethod(className, "void set_entity(const String&in)", AS_METHODPR(T, SetEntity, (const String&), void), AS_CALL_THISCALL);
  18707. // void AnimatedSprite2D::SetLoopMode(LoopMode2D loopMode)
  18708. engine->RegisterObjectMethod(className, "void SetLoopMode(LoopMode2D)", AS_METHODPR(T, SetLoopMode, (LoopMode2D), void), AS_CALL_THISCALL);
  18709. engine->RegisterObjectMethod(className, "void set_loopMode(LoopMode2D)", AS_METHODPR(T, SetLoopMode, (LoopMode2D), void), AS_CALL_THISCALL);
  18710. // void AnimatedSprite2D::SetSpeed(float speed)
  18711. engine->RegisterObjectMethod(className, "void SetSpeed(float)", AS_METHODPR(T, SetSpeed, (float), void), AS_CALL_THISCALL);
  18712. engine->RegisterObjectMethod(className, "void set_speed(float)", AS_METHODPR(T, SetSpeed, (float), void), AS_CALL_THISCALL);
  18713. #ifdef REGISTER_MEMBERS_MANUAL_PART_AnimatedSprite2D
  18714. REGISTER_MEMBERS_MANUAL_PART_AnimatedSprite2D();
  18715. #endif
  18716. }
  18717. // class StretchableSprite2D | File: ../Urho2D/StretchableSprite2D.h
  18718. template <class T> void RegisterMembers_StretchableSprite2D(asIScriptEngine* engine, const char* className)
  18719. {
  18720. RegisterMembers_StaticSprite2D<T>(engine, className);
  18721. // const IntRect& StretchableSprite2D::GetBorder() const
  18722. engine->RegisterObjectMethod(className, "const IntRect& GetBorder() const", AS_METHODPR(T, GetBorder, () const, const IntRect&), AS_CALL_THISCALL);
  18723. engine->RegisterObjectMethod(className, "const IntRect& get_border() const", AS_METHODPR(T, GetBorder, () const, const IntRect&), AS_CALL_THISCALL);
  18724. // void StretchableSprite2D::SetBorder(const IntRect& border)
  18725. engine->RegisterObjectMethod(className, "void SetBorder(const IntRect&in)", AS_METHODPR(T, SetBorder, (const IntRect&), void), AS_CALL_THISCALL);
  18726. engine->RegisterObjectMethod(className, "void set_border(const IntRect&in)", AS_METHODPR(T, SetBorder, (const IntRect&), void), AS_CALL_THISCALL);
  18727. #ifdef REGISTER_MEMBERS_MANUAL_PART_StretchableSprite2D
  18728. REGISTER_MEMBERS_MANUAL_PART_StretchableSprite2D();
  18729. #endif
  18730. }
  18731. #endif // def URHO3D_URHO2D
  18732. } // namespace Urho3D