AngelScriptAPI.h 421 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470
  1. // Script API header intended to be 'force included' in IDE for AngelScript content assist / code completion
  2. #define int8 signed char
  3. #define int16 signed short
  4. #define int64 long
  5. #define uint8 unsigned char
  6. #define uint16 unsigned short
  7. #define uint64 unsigned long
  8. #define null 0
  9. #define in
  10. #define out
  11. #define inout
  12. #define is ==
  13. #define interface struct
  14. #define class struct
  15. #define cast reinterpret_cast
  16. #define mixin
  17. #define funcdef
  18. // Classes
  19. class Animatable
  20. {
  21. public:
  22. // Methods:
  23. void ApplyAttributes();
  24. Variant GetAttribute(const String&) const;
  25. ValueAnimation GetAttributeAnimation(const String&) const;
  26. float GetAttributeAnimationSpeed(const String&) const;
  27. float GetAttributeAnimationTime(const String&) const;
  28. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29. Variant GetAttributeDefault(const String&) const;
  30. bool GetInterceptNetworkUpdate(const String&) const;
  31. bool HasSubscribedToEvent(Object, const String&);
  32. bool HasSubscribedToEvent(const String&);
  33. bool Load(File);
  34. bool Load(VectorBuffer&);
  35. bool LoadJSON(const JSONValue&);
  36. bool LoadXML(const XMLElement&);
  37. void MarkNetworkUpdate() const;
  38. void RemoveAttributeAnimation(const String&);
  39. void RemoveInstanceDefault();
  40. void RemoveObjectAnimation();
  41. void ResetToDefault();
  42. bool Save(File) const;
  43. bool Save(VectorBuffer&) const;
  44. bool SaveJSON(JSONValue&) const;
  45. bool SaveXML(XMLElement&) const;
  46. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  47. void SetAnimationTime(float);
  48. bool SetAttribute(const String&, const Variant&);
  49. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  50. void SetAttributeAnimationSpeed(const String&, float);
  51. void SetAttributeAnimationTime(const String&, float);
  52. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  53. void SetInterceptNetworkUpdate(const String&, bool);
  54. // Properties:
  55. bool animationEnabled;
  56. /* readonly */
  57. Array<Variant> attributeDefaults;
  58. /* readonly */
  59. Array<AttributeInfo> attributeInfos;
  60. Array<Variant> attributes;
  61. /* readonly */
  62. String category;
  63. /* readonly */
  64. uint numAttributes;
  65. ObjectAnimation objectAnimation;
  66. /* readonly */
  67. int refs;
  68. bool temporary;
  69. /* readonly */
  70. StringHash type;
  71. /* readonly */
  72. String typeName;
  73. /* readonly */
  74. int weakRefs;
  75. };
  76. class AnimatedModel
  77. {
  78. public:
  79. // Methods:
  80. AnimationState AddAnimationState(Animation);
  81. void ApplyAttributes();
  82. void ApplyMaterialList(const String& = String ( ));
  83. void DrawDebugGeometry(DebugRenderer, bool);
  84. AnimationState GetAnimationState(Animation) const;
  85. AnimationState GetAnimationState(uint) const;
  86. Variant GetAttribute(const String&) const;
  87. ValueAnimation GetAttributeAnimation(const String&) const;
  88. float GetAttributeAnimationSpeed(const String&) const;
  89. float GetAttributeAnimationTime(const String&) const;
  90. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  91. Variant GetAttributeDefault(const String&) const;
  92. bool GetInterceptNetworkUpdate(const String&) const;
  93. float GetMorphWeight(uint) const;
  94. bool HasSubscribedToEvent(Object, const String&);
  95. bool HasSubscribedToEvent(const String&);
  96. bool IsInView(Camera) const;
  97. bool Load(File);
  98. bool Load(VectorBuffer&);
  99. bool LoadJSON(const JSONValue&);
  100. bool LoadXML(const XMLElement&);
  101. void MarkNetworkUpdate() const;
  102. void Remove();
  103. void RemoveAllAnimationStates();
  104. void RemoveAnimationState(Animation);
  105. void RemoveAnimationState(AnimationState);
  106. void RemoveAnimationState(const String&);
  107. void RemoveAnimationState(uint);
  108. void RemoveAttributeAnimation(const String&);
  109. void RemoveInstanceDefault();
  110. void RemoveObjectAnimation();
  111. void ResetMorphWeights();
  112. void ResetToDefault();
  113. bool Save(File) const;
  114. bool Save(VectorBuffer&) const;
  115. bool SaveJSON(JSONValue&) const;
  116. bool SaveXML(XMLElement&) const;
  117. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  118. void SetAnimationTime(float);
  119. bool SetAttribute(const String&, const Variant&);
  120. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  121. void SetAttributeAnimationSpeed(const String&, float);
  122. void SetAttributeAnimationTime(const String&, float);
  123. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  124. void SetInterceptNetworkUpdate(const String&, bool);
  125. void SetMorphWeight(uint, float);
  126. void UpdateBoneBoundingBox();
  127. // Properties:
  128. bool animationEnabled;
  129. float animationLodBias;
  130. /* readonly */
  131. Array<AnimationState> animationStates;
  132. /* readonly */
  133. Array<Variant> attributeDefaults;
  134. /* readonly */
  135. Array<AttributeInfo> attributeInfos;
  136. Array<Variant> attributes;
  137. /* readonly */
  138. BoundingBox boundingBox;
  139. bool castShadows;
  140. /* readonly */
  141. String category;
  142. float drawDistance;
  143. bool enabled;
  144. /* readonly */
  145. bool enabledEffective;
  146. /* readonly */
  147. uint id;
  148. /* readonly */
  149. bool inView;
  150. uint lightMask;
  151. float lodBias;
  152. Material material;
  153. Array<Material> materials;
  154. uint maxLights;
  155. Model model;
  156. /* readonly */
  157. Array<String> morphNames;
  158. Array<float> morphWeights;
  159. /* readonly */
  160. Node node;
  161. /* readonly */
  162. uint numAnimationStates;
  163. /* readonly */
  164. uint numAttributes;
  165. /* readonly */
  166. uint numGeometries;
  167. /* readonly */
  168. uint numMorphs;
  169. ObjectAnimation objectAnimation;
  170. bool occludee;
  171. bool occluder;
  172. /* readonly */
  173. int refs;
  174. /* readonly */
  175. bool replicated;
  176. float shadowDistance;
  177. uint shadowMask;
  178. /* readonly */
  179. Skeleton skeleton;
  180. bool temporary;
  181. /* readonly */
  182. StringHash type;
  183. /* readonly */
  184. String typeName;
  185. bool updateInvisible;
  186. uint viewMask;
  187. /* readonly */
  188. int weakRefs;
  189. /* readonly */
  190. BoundingBox worldBoundingBox;
  191. /* readonly */
  192. Zone zone;
  193. uint zoneMask;
  194. };
  195. class AnimatedSprite2D
  196. {
  197. public:
  198. // Methods:
  199. void ApplyAttributes();
  200. void DrawDebugGeometry(DebugRenderer, bool);
  201. Variant GetAttribute(const String&) const;
  202. ValueAnimation GetAttributeAnimation(const String&) const;
  203. float GetAttributeAnimationSpeed(const String&) const;
  204. float GetAttributeAnimationTime(const String&) const;
  205. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  206. Variant GetAttributeDefault(const String&) const;
  207. bool GetInterceptNetworkUpdate(const String&) const;
  208. bool HasSubscribedToEvent(Object, const String&);
  209. bool HasSubscribedToEvent(const String&);
  210. bool IsInView(Camera) const;
  211. bool Load(File);
  212. bool Load(VectorBuffer&);
  213. bool LoadJSON(const JSONValue&);
  214. bool LoadXML(const XMLElement&);
  215. void MarkNetworkUpdate() const;
  216. void Remove();
  217. void RemoveAttributeAnimation(const String&);
  218. void RemoveInstanceDefault();
  219. void RemoveObjectAnimation();
  220. void ResetToDefault();
  221. bool Save(File) const;
  222. bool Save(VectorBuffer&) const;
  223. bool SaveJSON(JSONValue&) const;
  224. bool SaveXML(XMLElement&) const;
  225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  226. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  227. void SetAnimationTime(float);
  228. bool SetAttribute(const String&, const Variant&);
  229. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  230. void SetAttributeAnimationSpeed(const String&, float);
  231. void SetAttributeAnimationTime(const String&, float);
  232. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  233. void SetFlip(bool, bool, bool = false);
  234. void SetInterceptNetworkUpdate(const String&, bool);
  235. // Properties:
  236. float alpha;
  237. String animation;
  238. bool animationEnabled;
  239. AnimationSet2D animationSet;
  240. /* readonly */
  241. Array<Variant> attributeDefaults;
  242. /* readonly */
  243. Array<AttributeInfo> attributeInfos;
  244. Array<Variant> attributes;
  245. BlendMode blendMode;
  246. /* readonly */
  247. BoundingBox boundingBox;
  248. bool castShadows;
  249. /* readonly */
  250. String category;
  251. Color color;
  252. Material customMaterial;
  253. float drawDistance;
  254. Rect drawRect;
  255. bool enabled;
  256. /* readonly */
  257. bool enabledEffective;
  258. String entity;
  259. bool flipX;
  260. bool flipY;
  261. Vector2 hotSpot;
  262. /* readonly */
  263. uint id;
  264. /* readonly */
  265. bool inView;
  266. int layer;
  267. uint lightMask;
  268. float lodBias;
  269. LoopMode2D loopMode;
  270. uint maxLights;
  271. /* readonly */
  272. Node node;
  273. /* readonly */
  274. uint numAttributes;
  275. ObjectAnimation objectAnimation;
  276. bool occludee;
  277. bool occluder;
  278. int orderInLayer;
  279. /* readonly */
  280. int refs;
  281. /* readonly */
  282. bool replicated;
  283. float shadowDistance;
  284. uint shadowMask;
  285. float speed;
  286. Sprite2D sprite;
  287. bool swapXY;
  288. bool temporary;
  289. Rect textureRect;
  290. /* readonly */
  291. StringHash type;
  292. /* readonly */
  293. String typeName;
  294. bool useDrawRect;
  295. bool useHotSpot;
  296. bool useTextureRect;
  297. uint viewMask;
  298. /* readonly */
  299. int weakRefs;
  300. /* readonly */
  301. BoundingBox worldBoundingBox;
  302. uint zoneMask;
  303. };
  304. class Animation
  305. {
  306. public:
  307. Animation();
  308. Animation(const String&in);
  309. // Methods:
  310. void AddMetadata(const String&, const Variant&);
  311. void AddTrigger(const AnimationTriggerPoint&);
  312. void AddTrigger(float, bool, const Variant&);
  313. Animation Clone(const String& = String ( )) const;
  314. AnimationTrack CreateTrack(const String&);
  315. AnimationTrack GetTrack(uint);
  316. bool HasSubscribedToEvent(Object, const String&);
  317. bool HasSubscribedToEvent(const String&);
  318. bool Load(File);
  319. bool Load(VectorBuffer&);
  320. bool Load(const String&);
  321. void RemoveAllMetadata();
  322. bool RemoveAllTracks();
  323. void RemoveAllTriggers();
  324. void RemoveMetadata(const String&);
  325. bool RemoveTrack(const String&);
  326. void RemoveTrigger(uint);
  327. bool Save(File) const;
  328. bool Save(VectorBuffer&) const;
  329. bool Save(const String&) const;
  330. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  331. // Properties:
  332. String animationName;
  333. /* readonly */
  334. String category;
  335. /* readonly */
  336. bool hasMetadata;
  337. float length;
  338. /* readonly */
  339. uint memoryUse;
  340. Array<Variant> metadata;
  341. String name;
  342. /* readonly */
  343. uint numTracks;
  344. uint numTriggers;
  345. /* readonly */
  346. int refs;
  347. /* readonly */
  348. Array<AnimationTrack> tracks;
  349. Array<AnimationTriggerPoint> triggers;
  350. /* readonly */
  351. StringHash type;
  352. /* readonly */
  353. String typeName;
  354. /* readonly */
  355. uint useTimer;
  356. /* readonly */
  357. int weakRefs;
  358. };
  359. class AnimationControl
  360. {
  361. public:
  362. // Properties:
  363. float autoFadeTime;
  364. float fadeTime;
  365. StringHash hash;
  366. String name;
  367. bool removeOnCompletion;
  368. float speed;
  369. float targetWeight;
  370. };
  371. class AnimationController
  372. {
  373. public:
  374. // Methods:
  375. void ApplyAttributes();
  376. void DrawDebugGeometry(DebugRenderer, bool);
  377. bool Fade(const String&, float, float);
  378. bool FadeOthers(const String&, float, float);
  379. AnimationState GetAnimationState(StringHash) const;
  380. AnimationState GetAnimationState(const String&) const;
  381. Variant GetAttribute(const String&) const;
  382. ValueAnimation GetAttributeAnimation(const String&) const;
  383. float GetAttributeAnimationSpeed(const String&) const;
  384. float GetAttributeAnimationTime(const String&) const;
  385. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  386. Variant GetAttributeDefault(const String&) const;
  387. float GetAutoFade(const String&) const;
  388. AnimationBlendMode GetBlendMode(const String&) const;
  389. float GetFadeTarget(const String&) const;
  390. float GetFadeTime(const String&) const;
  391. bool GetInterceptNetworkUpdate(const String&) const;
  392. uint8 GetLayer(const String&) const;
  393. float GetLength(const String&) const;
  394. bool GetLooped(const String&) const;
  395. bool GetRemoveOnCompletion(const String&);
  396. float GetSpeed(const String&) const;
  397. float GetTime(const String&) const;
  398. float GetWeight(const String&) const;
  399. bool HasSubscribedToEvent(Object, const String&);
  400. bool HasSubscribedToEvent(const String&);
  401. bool IsAtEnd(const String&) const;
  402. bool IsFadingIn(const String&) const;
  403. bool IsFadingOut(const String&) const;
  404. bool IsPlaying(const String&) const;
  405. bool IsPlaying(uint8) const;
  406. bool Load(File);
  407. bool Load(VectorBuffer&);
  408. bool LoadJSON(const JSONValue&);
  409. bool LoadXML(const XMLElement&);
  410. void MarkNetworkUpdate() const;
  411. bool Play(const String&, uint8, bool, float = 0.0f);
  412. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  413. void Remove();
  414. void RemoveAttributeAnimation(const String&);
  415. void RemoveInstanceDefault();
  416. void RemoveObjectAnimation();
  417. void ResetToDefault();
  418. bool Save(File) const;
  419. bool Save(VectorBuffer&) const;
  420. bool SaveJSON(JSONValue&) const;
  421. bool SaveXML(XMLElement&) const;
  422. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  423. void SetAnimationTime(float);
  424. bool SetAttribute(const String&, const Variant&);
  425. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  426. void SetAttributeAnimationSpeed(const String&, float);
  427. void SetAttributeAnimationTime(const String&, float);
  428. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  429. bool SetAutoFade(const String&, float);
  430. bool SetBlendMode(const String&, AnimationBlendMode);
  431. void SetInterceptNetworkUpdate(const String&, bool);
  432. bool SetLayer(const String&, uint8);
  433. bool SetLooped(const String&, bool);
  434. bool SetRemoveOnCompletion(const String&, bool);
  435. bool SetSpeed(const String&, float);
  436. bool SetStartBone(const String&, const String&);
  437. bool SetTime(const String&, float);
  438. bool SetWeight(const String&, float);
  439. void Stop(const String&, float = 0.0f);
  440. void StopAll(float = 0.0f);
  441. void StopLayer(uint8, float = 0.0f);
  442. const String& GetStartBone(const String&) const;
  443. // Properties:
  444. bool animationEnabled;
  445. /* readonly */
  446. Array<AnimationControl> animations;
  447. /* readonly */
  448. Array<Variant> attributeDefaults;
  449. /* readonly */
  450. Array<AttributeInfo> attributeInfos;
  451. Array<Variant> attributes;
  452. /* readonly */
  453. String category;
  454. bool enabled;
  455. /* readonly */
  456. bool enabledEffective;
  457. /* readonly */
  458. uint id;
  459. /* readonly */
  460. Node node;
  461. /* readonly */
  462. uint numAnimations;
  463. /* readonly */
  464. uint numAttributes;
  465. ObjectAnimation objectAnimation;
  466. /* readonly */
  467. int refs;
  468. /* readonly */
  469. bool replicated;
  470. bool temporary;
  471. /* readonly */
  472. StringHash type;
  473. /* readonly */
  474. String typeName;
  475. /* readonly */
  476. int weakRefs;
  477. };
  478. class AnimationKeyFrame
  479. {
  480. public:
  481. ~AnimationKeyFrame();
  482. AnimationKeyFrame();
  483. AnimationKeyFrame(const AnimationKeyFrame&in);
  484. // Properties:
  485. Vector3 position;
  486. Quaternion rotation;
  487. Vector3 scale;
  488. float time;
  489. };
  490. class AnimationSet2D
  491. {
  492. public:
  493. AnimationSet2D();
  494. AnimationSet2D(const String&in);
  495. // Methods:
  496. String GetAnimation(uint) const;
  497. bool HasSubscribedToEvent(Object, const String&);
  498. bool HasSubscribedToEvent(const String&);
  499. bool Load(File);
  500. bool Load(VectorBuffer&);
  501. bool Load(const String&);
  502. bool Save(File) const;
  503. bool Save(VectorBuffer&) const;
  504. bool Save(const String&) const;
  505. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  506. // Properties:
  507. /* readonly */
  508. String category;
  509. /* readonly */
  510. uint memoryUse;
  511. String name;
  512. /* readonly */
  513. uint numAnimations;
  514. /* readonly */
  515. int refs;
  516. /* readonly */
  517. StringHash type;
  518. /* readonly */
  519. String typeName;
  520. /* readonly */
  521. uint useTimer;
  522. /* readonly */
  523. int weakRefs;
  524. };
  525. class AnimationState
  526. {
  527. public:
  528. AnimationState(Node&, Animation&);
  529. // Methods:
  530. void AddTime(float);
  531. void AddWeight(float);
  532. void Apply();
  533. float GetBoneWeight(StringHash) const;
  534. float GetBoneWeight(uint) const;
  535. uint GetTrackIndex(StringHash) const;
  536. uint GetTrackIndex(const String&) const;
  537. void SetBoneWeight(StringHash, float, bool = false);
  538. void SetBoneWeight(const String&, float, bool = false);
  539. void SetBoneWeight(uint, float, bool = false);
  540. // Properties:
  541. /* readonly */
  542. Animation animation;
  543. AnimationBlendMode blendMode;
  544. Array<float> boneWeights;
  545. /* readonly */
  546. bool enabled;
  547. uint8 layer;
  548. /* readonly */
  549. float length;
  550. bool looped;
  551. /* readonly */
  552. AnimatedModel model;
  553. /* readonly */
  554. Node node;
  555. /* readonly */
  556. int refs;
  557. Bone startBone;
  558. float time;
  559. /* readonly */
  560. int weakRefs;
  561. float weight;
  562. };
  563. class AnimationTrack
  564. {
  565. public:
  566. // Methods:
  567. void AddKeyFrame(const AnimationKeyFrame&);
  568. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  569. void RemoveAllKeyFrames();
  570. void RemoveKeyFrame(uint);
  571. // Properties:
  572. uint8 channelMask;
  573. Array<AnimationKeyFrame> keyFrames;
  574. String name;
  575. StringHash nameHash;
  576. /* readonly */
  577. uint numKeyFrames;
  578. };
  579. class AnimationTriggerPoint
  580. {
  581. public:
  582. ~AnimationTriggerPoint();
  583. AnimationTriggerPoint();
  584. AnimationTriggerPoint(const AnimationTriggerPoint&in);
  585. // Properties:
  586. Variant data;
  587. float time;
  588. };
  589. template <class T>
  590. class Array
  591. {
  592. public:
  593. Array(int&in);
  594. Array(int&in, uint);
  595. Array(int&in, uint, const T&in);
  596. // Methods:
  597. void Clear();
  598. void Erase(uint);
  599. int Find(const T&) const;
  600. int Find(uint, const T&) const;
  601. int FindByRef(const T&) const;
  602. int FindByRef(uint, const T&) const;
  603. void Insert(uint, const T&);
  604. void Pop();
  605. void Push(const T&);
  606. void Reserve(uint);
  607. void Resize(uint);
  608. void Reverse();
  609. void Sort();
  610. void Sort(uint, uint);
  611. void SortReverse();
  612. void SortReverse(uint, uint);
  613. bool Swap(Array<T>&);
  614. // Properties:
  615. /* readonly */
  616. bool empty;
  617. uint length;
  618. };
  619. class AttributeInfo
  620. {
  621. public:
  622. ~AttributeInfo();
  623. AttributeInfo();
  624. AttributeInfo(const AttributeInfo&in);
  625. // Properties:
  626. Variant defaultValue;
  627. /* readonly */
  628. Array<String> enumNames;
  629. VariantMap metadata;
  630. uint mode;
  631. String name;
  632. VariantType type;
  633. };
  634. class Audio
  635. {
  636. public:
  637. // Methods:
  638. bool HasMasterGain(const String&) const;
  639. bool HasSubscribedToEvent(Object, const String&);
  640. bool HasSubscribedToEvent(const String&);
  641. bool IsSoundTypePaused(const String&);
  642. void PauseSoundType(const String&);
  643. bool Play();
  644. void ResumeAll();
  645. void ResumeSoundType(const String&);
  646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  647. void SetMode(int, int, bool, bool = true);
  648. void Stop();
  649. // Properties:
  650. /* readonly */
  651. String category;
  652. /* readonly */
  653. bool initialized;
  654. /* readonly */
  655. bool interpolation;
  656. SoundListener listener;
  657. Array<float> masterGain;
  658. /* readonly */
  659. int mixRate;
  660. /* readonly */
  661. bool playing;
  662. /* readonly */
  663. int refs;
  664. /* readonly */
  665. uint sampleSize;
  666. /* readonly */
  667. bool stereo;
  668. /* readonly */
  669. StringHash type;
  670. /* readonly */
  671. String typeName;
  672. /* readonly */
  673. int weakRefs;
  674. };
  675. class BiasParameters
  676. {
  677. public:
  678. BiasParameters();
  679. BiasParameters(const BiasParameters&in);
  680. BiasParameters(float, float, float normalOffset = 0.0f);
  681. // Properties:
  682. float constantBias;
  683. float normalOffset;
  684. float slopeScaledBias;
  685. };
  686. class Billboard
  687. {
  688. public:
  689. // Properties:
  690. Color color;
  691. Vector3 direction;
  692. bool enabled;
  693. Vector3 position;
  694. float rotation;
  695. Vector2 size;
  696. Rect uv;
  697. };
  698. class BillboardSet
  699. {
  700. public:
  701. // Methods:
  702. void ApplyAttributes();
  703. void Commit();
  704. void DrawDebugGeometry(DebugRenderer, bool);
  705. Variant GetAttribute(const String&) const;
  706. ValueAnimation GetAttributeAnimation(const String&) const;
  707. float GetAttributeAnimationSpeed(const String&) const;
  708. float GetAttributeAnimationTime(const String&) const;
  709. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  710. Variant GetAttributeDefault(const String&) const;
  711. bool GetInterceptNetworkUpdate(const String&) const;
  712. bool HasSubscribedToEvent(Object, const String&);
  713. bool HasSubscribedToEvent(const String&);
  714. bool IsInView(Camera) const;
  715. bool Load(File);
  716. bool Load(VectorBuffer&);
  717. bool LoadJSON(const JSONValue&);
  718. bool LoadXML(const XMLElement&);
  719. void MarkNetworkUpdate() const;
  720. void Remove();
  721. void RemoveAttributeAnimation(const String&);
  722. void RemoveInstanceDefault();
  723. void RemoveObjectAnimation();
  724. void ResetToDefault();
  725. bool Save(File) const;
  726. bool Save(VectorBuffer&) const;
  727. bool SaveJSON(JSONValue&) const;
  728. bool SaveXML(XMLElement&) const;
  729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  730. void SetAnimationTime(float);
  731. bool SetAttribute(const String&, const Variant&);
  732. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  733. void SetAttributeAnimationSpeed(const String&, float);
  734. void SetAttributeAnimationTime(const String&, float);
  735. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  736. void SetInterceptNetworkUpdate(const String&, bool);
  737. // Properties:
  738. bool animationEnabled;
  739. float animationLodBias;
  740. /* readonly */
  741. Array<Variant> attributeDefaults;
  742. /* readonly */
  743. Array<AttributeInfo> attributeInfos;
  744. Array<Variant> attributes;
  745. /* readonly */
  746. Array<Billboard> billboards;
  747. /* readonly */
  748. BoundingBox boundingBox;
  749. bool castShadows;
  750. /* readonly */
  751. String category;
  752. float drawDistance;
  753. bool enabled;
  754. /* readonly */
  755. bool enabledEffective;
  756. FaceCameraMode faceCameraMode;
  757. bool fixedScreenSize;
  758. /* readonly */
  759. uint id;
  760. /* readonly */
  761. bool inView;
  762. uint lightMask;
  763. float lodBias;
  764. Material material;
  765. uint maxLights;
  766. float minAngle;
  767. /* readonly */
  768. Node node;
  769. /* readonly */
  770. uint numAttributes;
  771. uint numBillboards;
  772. ObjectAnimation objectAnimation;
  773. bool occludee;
  774. bool occluder;
  775. /* readonly */
  776. int refs;
  777. bool relative;
  778. /* readonly */
  779. bool replicated;
  780. bool scaled;
  781. float shadowDistance;
  782. uint shadowMask;
  783. bool sorted;
  784. bool temporary;
  785. /* readonly */
  786. StringHash type;
  787. /* readonly */
  788. String typeName;
  789. uint viewMask;
  790. /* readonly */
  791. int weakRefs;
  792. /* readonly */
  793. BoundingBox worldBoundingBox;
  794. /* readonly */
  795. Zone zone;
  796. uint zoneMask;
  797. };
  798. class Bone
  799. {
  800. public:
  801. // Properties:
  802. bool animated;
  803. BoundingBox boundingBox;
  804. Vector3 initialPosition;
  805. Quaternion initialRotation;
  806. Vector3 initialScale;
  807. String name;
  808. Node node;
  809. uint parentIndex;
  810. float radius;
  811. };
  812. class BorderImage
  813. {
  814. public:
  815. BorderImage();
  816. BorderImage(const String&in);
  817. // Methods:
  818. void AddChild(UIElement);
  819. void AddTag(const String&);
  820. void AddTags(const String&, int8 = ';');
  821. void ApplyAttributes();
  822. void BringToFront();
  823. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  824. void DisableLayoutUpdate();
  825. IntVector2 ElementToScreen(const IntVector2&);
  826. void EnableLayoutUpdate();
  827. uint FindChild(UIElement) const;
  828. Variant GetAttribute(const String&) const;
  829. ValueAnimation GetAttributeAnimation(const String&) const;
  830. float GetAttributeAnimationSpeed(const String&) const;
  831. float GetAttributeAnimationTime(const String&) const;
  832. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  833. Variant GetAttributeDefault(const String&) const;
  834. UIElement GetChild(const String&, bool = false) const;
  835. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  836. Array<UIElement> GetChildren(bool = false) const;
  837. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  838. UIElement GetElementEventSender() const;
  839. bool GetInterceptNetworkUpdate(const String&) const;
  840. uint GetNumChildren(bool) const;
  841. bool HasSubscribedToEvent(Object, const String&);
  842. bool HasSubscribedToEvent(const String&);
  843. bool HasTag(const String&) const;
  844. void InsertChild(uint, UIElement);
  845. bool IsChildOf(UIElement) const;
  846. bool IsInside(IntVector2, bool);
  847. bool IsInsideCombined(IntVector2, bool);
  848. bool Load(File);
  849. bool Load(VectorBuffer&);
  850. UIElement LoadChildXML(XMLFile, XMLFile);
  851. UIElement LoadChildXML(const XMLElement&, XMLFile);
  852. bool LoadJSON(const JSONValue&);
  853. bool LoadXML(File);
  854. bool LoadXML(VectorBuffer&);
  855. bool LoadXML(XMLFile, XMLFile);
  856. bool LoadXML(const XMLElement&, XMLFile);
  857. bool LoadXML(const XMLElement&);
  858. void MarkNetworkUpdate() const;
  859. void Remove();
  860. void RemoveAllChildren();
  861. void RemoveAllTags();
  862. void RemoveAttributeAnimation(const String&);
  863. void RemoveChild(UIElement, uint = 0);
  864. void RemoveChild(uint);
  865. void RemoveInstanceDefault();
  866. void RemoveObjectAnimation();
  867. bool RemoveTag(const String&);
  868. void ResetDeepEnabled();
  869. void ResetToDefault();
  870. bool Save(File) const;
  871. bool Save(VectorBuffer&) const;
  872. bool SaveJSON(JSONValue&) const;
  873. bool SaveXML(File, const String& = "\t");
  874. bool SaveXML(VectorBuffer&, const String& = "\t");
  875. bool SaveXML(XMLElement&) const;
  876. IntVector2 ScreenToElement(const IntVector2&);
  877. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  878. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  879. void SetAnimationTime(float);
  880. bool SetAttribute(const String&, const Variant&);
  881. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  882. void SetAttributeAnimationSpeed(const String&, float);
  883. void SetAttributeAnimationTime(const String&, float);
  884. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  885. void SetDeepEnabled(bool);
  886. void SetDisabledOffset(int, int);
  887. void SetEnabledRecursive(bool);
  888. void SetFixedHeight(int);
  889. void SetFixedSize(int, int);
  890. void SetFixedWidth(int);
  891. void SetFullImageRect();
  892. void SetHoverOffset(int, int);
  893. void SetInterceptNetworkUpdate(const String&, bool);
  894. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  895. void SetMaxAnchor(float, float);
  896. void SetMaxSize(int, int);
  897. void SetMinAnchor(float, float);
  898. void SetMinSize(int, int);
  899. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  900. void SetPivot(float, float);
  901. void SetPosition(int, int);
  902. void SetSize(int, int);
  903. bool SetStyle(const String&, XMLFile = null);
  904. bool SetStyle(const XMLElement&);
  905. bool SetStyleAuto(XMLFile = null);
  906. void UpdateLayout();
  907. const Variant& GetVar(const StringHash&);
  908. // Properties:
  909. bool animationEnabled;
  910. /* readonly */
  911. Array<Variant> attributeDefaults;
  912. /* readonly */
  913. Array<AttributeInfo> attributeInfos;
  914. Array<Variant> attributes;
  915. BlendMode blendMode;
  916. IntRect border;
  917. bool bringToBack;
  918. bool bringToFront;
  919. /* readonly */
  920. String category;
  921. /* readonly */
  922. IntVector2 childOffset;
  923. /* readonly */
  924. Array<UIElement> children;
  925. IntRect clipBorder;
  926. bool clipChildren;
  927. /* writeonly */
  928. Color color;
  929. /* readonly */
  930. bool colorGradient;
  931. Array<Color> colors;
  932. /* readonly */
  933. IntRect combinedScreenRect;
  934. XMLFile defaultStyle;
  935. /* readonly */
  936. float derivedOpacity;
  937. IntVector2 disabledOffset;
  938. /* readonly */
  939. uint dragButtonCombo;
  940. /* readonly */
  941. int dragButtonCount;
  942. uint dragDropMode;
  943. bool editable;
  944. bool elementEventSender;
  945. bool enableAnchor;
  946. bool enabled;
  947. /* readonly */
  948. bool enabledSelf;
  949. /* readonly */
  950. bool fixedHeight;
  951. /* readonly */
  952. bool fixedSize;
  953. /* readonly */
  954. bool fixedWidth;
  955. bool focus;
  956. FocusMode focusMode;
  957. int height;
  958. HorizontalAlignment horizontalAlignment;
  959. IntVector2 hoverOffset;
  960. /* readonly */
  961. bool hovering;
  962. IntRect imageBorder;
  963. IntRect imageRect;
  964. int indent;
  965. int indentSpacing;
  966. /* readonly */
  967. int indentWidth;
  968. bool internal;
  969. IntRect layoutBorder;
  970. Vector2 layoutFlexScale;
  971. LayoutMode layoutMode;
  972. int layoutSpacing;
  973. Material material;
  974. Vector2 maxAnchor;
  975. int maxHeight;
  976. IntVector2 maxOffset;
  977. IntVector2 maxSize;
  978. int maxWidth;
  979. Vector2 minAnchor;
  980. int minHeight;
  981. IntVector2 minOffset;
  982. IntVector2 minSize;
  983. int minWidth;
  984. String name;
  985. /* readonly */
  986. uint numAllChildren;
  987. /* readonly */
  988. uint numAttributes;
  989. /* readonly */
  990. uint numChildren;
  991. ObjectAnimation objectAnimation;
  992. float opacity;
  993. UIElement parent;
  994. Vector2 pivot;
  995. IntVector2 position;
  996. int priority;
  997. /* readonly */
  998. int refs;
  999. /* readonly */
  1000. UIElement root;
  1001. /* readonly */
  1002. IntVector2 screenPosition;
  1003. bool selected;
  1004. IntVector2 size;
  1005. bool sortChildren;
  1006. String style;
  1007. /* readonly */
  1008. Array<String> tags;
  1009. bool temporary;
  1010. Texture texture;
  1011. bool tiled;
  1012. TraversalMode traversalMode;
  1013. /* readonly */
  1014. StringHash type;
  1015. /* readonly */
  1016. String typeName;
  1017. bool useDerivedOpacity;
  1018. /* readonly */
  1019. VariantMap vars;
  1020. VerticalAlignment verticalAlignment;
  1021. bool visible;
  1022. /* readonly */
  1023. bool visibleEffective;
  1024. /* readonly */
  1025. int weakRefs;
  1026. int width;
  1027. };
  1028. class BoundingBox
  1029. {
  1030. public:
  1031. BoundingBox();
  1032. BoundingBox(const BoundingBox&in);
  1033. BoundingBox(const Rect&in);
  1034. BoundingBox(const Vector3&in, const Vector3&in);
  1035. BoundingBox(float, float);
  1036. BoundingBox(const Frustum&in);
  1037. BoundingBox(const Polyhedron&in);
  1038. BoundingBox(const Sphere&in);
  1039. // Methods:
  1040. void Clear();
  1041. void Clip(const BoundingBox&);
  1042. void Define(const BoundingBox&);
  1043. void Define(const Frustum&);
  1044. void Define(const Polyhedron&);
  1045. void Define(const Sphere&);
  1046. void Define(const Vector3&);
  1047. void Define(const Vector3&, const Vector3&);
  1048. void Define(float, float);
  1049. bool Defined() const;
  1050. float DistanceToPoint(const Vector3&) const;
  1051. Intersection IsInside(const BoundingBox&) const;
  1052. Intersection IsInside(const Sphere&) const;
  1053. Intersection IsInside(const Vector3&) const;
  1054. Intersection IsInsideFast(const BoundingBox&) const;
  1055. Intersection IsInsideFast(const Sphere&) const;
  1056. void Merge(const BoundingBox&);
  1057. void Merge(const Frustum&);
  1058. void Merge(const Polyhedron&);
  1059. void Merge(const Sphere&);
  1060. void Merge(const Vector3&);
  1061. Rect Projected(const Matrix4&) const;
  1062. String ToString() const;
  1063. void Transform(const Matrix3&);
  1064. void Transform(const Matrix3x4&);
  1065. BoundingBox Transformed(const Matrix3&) const;
  1066. BoundingBox Transformed(const Matrix3x4&) const;
  1067. // Properties:
  1068. /* readonly */
  1069. Vector3 center;
  1070. /* readonly */
  1071. Vector3 halfSize;
  1072. Vector3 max;
  1073. Vector3 min;
  1074. /* readonly */
  1075. Vector3 size;
  1076. };
  1077. class Button
  1078. {
  1079. public:
  1080. Button();
  1081. Button(const String&in);
  1082. // Methods:
  1083. void AddChild(UIElement);
  1084. void AddTag(const String&);
  1085. void AddTags(const String&, int8 = ';');
  1086. void ApplyAttributes();
  1087. void BringToFront();
  1088. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1089. void DisableLayoutUpdate();
  1090. IntVector2 ElementToScreen(const IntVector2&);
  1091. void EnableLayoutUpdate();
  1092. uint FindChild(UIElement) const;
  1093. Variant GetAttribute(const String&) const;
  1094. ValueAnimation GetAttributeAnimation(const String&) const;
  1095. float GetAttributeAnimationSpeed(const String&) const;
  1096. float GetAttributeAnimationTime(const String&) const;
  1097. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1098. Variant GetAttributeDefault(const String&) const;
  1099. UIElement GetChild(const String&, bool = false) const;
  1100. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1101. Array<UIElement> GetChildren(bool = false) const;
  1102. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1103. UIElement GetElementEventSender() const;
  1104. bool GetInterceptNetworkUpdate(const String&) const;
  1105. uint GetNumChildren(bool) const;
  1106. bool HasSubscribedToEvent(Object, const String&);
  1107. bool HasSubscribedToEvent(const String&);
  1108. bool HasTag(const String&) const;
  1109. void InsertChild(uint, UIElement);
  1110. bool IsChildOf(UIElement) const;
  1111. bool IsInside(IntVector2, bool);
  1112. bool IsInsideCombined(IntVector2, bool);
  1113. bool Load(File);
  1114. bool Load(VectorBuffer&);
  1115. UIElement LoadChildXML(XMLFile, XMLFile);
  1116. UIElement LoadChildXML(const XMLElement&, XMLFile);
  1117. bool LoadJSON(const JSONValue&);
  1118. bool LoadXML(File);
  1119. bool LoadXML(VectorBuffer&);
  1120. bool LoadXML(XMLFile, XMLFile);
  1121. bool LoadXML(const XMLElement&, XMLFile);
  1122. bool LoadXML(const XMLElement&);
  1123. void MarkNetworkUpdate() const;
  1124. void Remove();
  1125. void RemoveAllChildren();
  1126. void RemoveAllTags();
  1127. void RemoveAttributeAnimation(const String&);
  1128. void RemoveChild(UIElement, uint = 0);
  1129. void RemoveChild(uint);
  1130. void RemoveInstanceDefault();
  1131. void RemoveObjectAnimation();
  1132. bool RemoveTag(const String&);
  1133. void ResetDeepEnabled();
  1134. void ResetToDefault();
  1135. bool Save(File) const;
  1136. bool Save(VectorBuffer&) const;
  1137. bool SaveJSON(JSONValue&) const;
  1138. bool SaveXML(File, const String& = "\t");
  1139. bool SaveXML(VectorBuffer&, const String& = "\t");
  1140. bool SaveXML(XMLElement&) const;
  1141. IntVector2 ScreenToElement(const IntVector2&);
  1142. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1143. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1144. void SetAnimationTime(float);
  1145. bool SetAttribute(const String&, const Variant&);
  1146. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1147. void SetAttributeAnimationSpeed(const String&, float);
  1148. void SetAttributeAnimationTime(const String&, float);
  1149. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1150. void SetDeepEnabled(bool);
  1151. void SetDisabledOffset(int, int);
  1152. void SetEnabledRecursive(bool);
  1153. void SetFixedHeight(int);
  1154. void SetFixedSize(int, int);
  1155. void SetFixedWidth(int);
  1156. void SetFullImageRect();
  1157. void SetHoverOffset(int, int);
  1158. void SetInterceptNetworkUpdate(const String&, bool);
  1159. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1160. void SetMaxAnchor(float, float);
  1161. void SetMaxSize(int, int);
  1162. void SetMinAnchor(float, float);
  1163. void SetMinSize(int, int);
  1164. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1165. void SetPivot(float, float);
  1166. void SetPosition(int, int);
  1167. void SetPressedChildOffset(int, int);
  1168. void SetPressedOffset(int, int);
  1169. void SetRepeat(float, float);
  1170. void SetSize(int, int);
  1171. bool SetStyle(const String&, XMLFile = null);
  1172. bool SetStyle(const XMLElement&);
  1173. bool SetStyleAuto(XMLFile = null);
  1174. void UpdateLayout();
  1175. const Variant& GetVar(const StringHash&);
  1176. // Properties:
  1177. bool animationEnabled;
  1178. /* readonly */
  1179. Array<Variant> attributeDefaults;
  1180. /* readonly */
  1181. Array<AttributeInfo> attributeInfos;
  1182. Array<Variant> attributes;
  1183. BlendMode blendMode;
  1184. IntRect border;
  1185. bool bringToBack;
  1186. bool bringToFront;
  1187. /* readonly */
  1188. String category;
  1189. /* readonly */
  1190. IntVector2 childOffset;
  1191. /* readonly */
  1192. Array<UIElement> children;
  1193. IntRect clipBorder;
  1194. bool clipChildren;
  1195. /* writeonly */
  1196. Color color;
  1197. /* readonly */
  1198. bool colorGradient;
  1199. Array<Color> colors;
  1200. /* readonly */
  1201. IntRect combinedScreenRect;
  1202. XMLFile defaultStyle;
  1203. /* readonly */
  1204. float derivedOpacity;
  1205. IntVector2 disabledOffset;
  1206. /* readonly */
  1207. uint dragButtonCombo;
  1208. /* readonly */
  1209. int dragButtonCount;
  1210. uint dragDropMode;
  1211. bool editable;
  1212. bool elementEventSender;
  1213. bool enableAnchor;
  1214. bool enabled;
  1215. /* readonly */
  1216. bool enabledSelf;
  1217. /* readonly */
  1218. bool fixedHeight;
  1219. /* readonly */
  1220. bool fixedSize;
  1221. /* readonly */
  1222. bool fixedWidth;
  1223. bool focus;
  1224. FocusMode focusMode;
  1225. int height;
  1226. HorizontalAlignment horizontalAlignment;
  1227. IntVector2 hoverOffset;
  1228. /* readonly */
  1229. bool hovering;
  1230. IntRect imageBorder;
  1231. IntRect imageRect;
  1232. int indent;
  1233. int indentSpacing;
  1234. /* readonly */
  1235. int indentWidth;
  1236. bool internal;
  1237. IntRect layoutBorder;
  1238. Vector2 layoutFlexScale;
  1239. LayoutMode layoutMode;
  1240. int layoutSpacing;
  1241. Material material;
  1242. Vector2 maxAnchor;
  1243. int maxHeight;
  1244. IntVector2 maxOffset;
  1245. IntVector2 maxSize;
  1246. int maxWidth;
  1247. Vector2 minAnchor;
  1248. int minHeight;
  1249. IntVector2 minOffset;
  1250. IntVector2 minSize;
  1251. int minWidth;
  1252. String name;
  1253. /* readonly */
  1254. uint numAllChildren;
  1255. /* readonly */
  1256. uint numAttributes;
  1257. /* readonly */
  1258. uint numChildren;
  1259. ObjectAnimation objectAnimation;
  1260. float opacity;
  1261. UIElement parent;
  1262. Vector2 pivot;
  1263. IntVector2 position;
  1264. /* readonly */
  1265. bool pressed;
  1266. IntVector2 pressedChildOffset;
  1267. IntVector2 pressedOffset;
  1268. int priority;
  1269. /* readonly */
  1270. int refs;
  1271. float repeatDelay;
  1272. float repeatRate;
  1273. /* readonly */
  1274. UIElement root;
  1275. /* readonly */
  1276. IntVector2 screenPosition;
  1277. bool selected;
  1278. IntVector2 size;
  1279. bool sortChildren;
  1280. String style;
  1281. /* readonly */
  1282. Array<String> tags;
  1283. bool temporary;
  1284. Texture texture;
  1285. bool tiled;
  1286. TraversalMode traversalMode;
  1287. /* readonly */
  1288. StringHash type;
  1289. /* readonly */
  1290. String typeName;
  1291. bool useDerivedOpacity;
  1292. /* readonly */
  1293. VariantMap vars;
  1294. VerticalAlignment verticalAlignment;
  1295. bool visible;
  1296. /* readonly */
  1297. bool visibleEffective;
  1298. /* readonly */
  1299. int weakRefs;
  1300. int width;
  1301. };
  1302. class Camera
  1303. {
  1304. public:
  1305. // Methods:
  1306. void ApplyAttributes();
  1307. void DrawDebugGeometry(DebugRenderer, bool);
  1308. Variant GetAttribute(const String&) const;
  1309. ValueAnimation GetAttributeAnimation(const String&) const;
  1310. float GetAttributeAnimationSpeed(const String&) const;
  1311. float GetAttributeAnimationTime(const String&) const;
  1312. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1313. Variant GetAttributeDefault(const String&) const;
  1314. float GetDistance(const Vector3&) const;
  1315. float GetDistanceSquared(const Vector3&) const;
  1316. bool GetInterceptNetworkUpdate(const String&) const;
  1317. Ray GetScreenRay(float, float) const;
  1318. Frustum GetSplitFrustum(float, float) const;
  1319. bool HasSubscribedToEvent(Object, const String&);
  1320. bool HasSubscribedToEvent(const String&);
  1321. bool Load(File);
  1322. bool Load(VectorBuffer&);
  1323. bool LoadJSON(const JSONValue&);
  1324. bool LoadXML(const XMLElement&);
  1325. void MarkNetworkUpdate() const;
  1326. void Remove();
  1327. void RemoveAttributeAnimation(const String&);
  1328. void RemoveInstanceDefault();
  1329. void RemoveObjectAnimation();
  1330. void ResetToDefault();
  1331. bool Save(File) const;
  1332. bool Save(VectorBuffer&) const;
  1333. bool SaveJSON(JSONValue&) const;
  1334. bool SaveXML(XMLElement&) const;
  1335. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1336. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1337. void SetAnimationTime(float);
  1338. bool SetAttribute(const String&, const Variant&);
  1339. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1340. void SetAttributeAnimationSpeed(const String&, float);
  1341. void SetAttributeAnimationTime(const String&, float);
  1342. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1343. void SetInterceptNetworkUpdate(const String&, bool);
  1344. void SetOrthoSize(const Vector2&);
  1345. Vector2 WorldToScreenPoint(const Vector3&) const;
  1346. // Properties:
  1347. bool animationEnabled;
  1348. float aspectRatio;
  1349. /* readonly */
  1350. Array<Variant> attributeDefaults;
  1351. /* readonly */
  1352. Array<AttributeInfo> attributeInfos;
  1353. Array<Variant> attributes;
  1354. bool autoAspectRatio;
  1355. /* readonly */
  1356. String category;
  1357. Plane clipPlane;
  1358. /* readonly */
  1359. Matrix3x4 effectiveWorldTransform;
  1360. bool enabled;
  1361. /* readonly */
  1362. bool enabledEffective;
  1363. float farClip;
  1364. FillMode fillMode;
  1365. float fov;
  1366. /* readonly */
  1367. Frustum frustum;
  1368. /* readonly */
  1369. Matrix4 gpuProjection;
  1370. /* readonly */
  1371. float halfViewSize;
  1372. /* readonly */
  1373. uint id;
  1374. float lodBias;
  1375. float nearClip;
  1376. /* readonly */
  1377. Node node;
  1378. /* readonly */
  1379. uint numAttributes;
  1380. ObjectAnimation objectAnimation;
  1381. float orthoSize;
  1382. bool orthographic;
  1383. Matrix4 projection;
  1384. Vector2 projectionOffset;
  1385. Plane reflectionPlane;
  1386. /* readonly */
  1387. int refs;
  1388. /* readonly */
  1389. bool replicated;
  1390. bool temporary;
  1391. /* readonly */
  1392. StringHash type;
  1393. /* readonly */
  1394. String typeName;
  1395. bool useClipping;
  1396. bool useReflection;
  1397. /* readonly */
  1398. Matrix3x4 view;
  1399. uint viewMask;
  1400. uint viewOverrideFlags;
  1401. /* readonly */
  1402. Frustum viewSpaceFrustum;
  1403. /* readonly */
  1404. int weakRefs;
  1405. float zoom;
  1406. };
  1407. class CascadeParameters
  1408. {
  1409. public:
  1410. CascadeParameters();
  1411. CascadeParameters(const CascadeParameters&in);
  1412. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1413. // Properties:
  1414. float biasAutoAdjust;
  1415. float fadeStart;
  1416. float split1;
  1417. float split2;
  1418. float split3;
  1419. float split4;
  1420. };
  1421. class CheckBox
  1422. {
  1423. public:
  1424. CheckBox();
  1425. CheckBox(const String&in);
  1426. // Methods:
  1427. void AddChild(UIElement);
  1428. void AddTag(const String&);
  1429. void AddTags(const String&, int8 = ';');
  1430. void ApplyAttributes();
  1431. void BringToFront();
  1432. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1433. void DisableLayoutUpdate();
  1434. IntVector2 ElementToScreen(const IntVector2&);
  1435. void EnableLayoutUpdate();
  1436. uint FindChild(UIElement) const;
  1437. Variant GetAttribute(const String&) const;
  1438. ValueAnimation GetAttributeAnimation(const String&) const;
  1439. float GetAttributeAnimationSpeed(const String&) const;
  1440. float GetAttributeAnimationTime(const String&) const;
  1441. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1442. Variant GetAttributeDefault(const String&) const;
  1443. UIElement GetChild(const String&, bool = false) const;
  1444. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1445. Array<UIElement> GetChildren(bool = false) const;
  1446. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1447. UIElement GetElementEventSender() const;
  1448. bool GetInterceptNetworkUpdate(const String&) const;
  1449. uint GetNumChildren(bool) const;
  1450. bool HasSubscribedToEvent(Object, const String&);
  1451. bool HasSubscribedToEvent(const String&);
  1452. bool HasTag(const String&) const;
  1453. void InsertChild(uint, UIElement);
  1454. bool IsChildOf(UIElement) const;
  1455. bool IsInside(IntVector2, bool);
  1456. bool IsInsideCombined(IntVector2, bool);
  1457. bool Load(File);
  1458. bool Load(VectorBuffer&);
  1459. UIElement LoadChildXML(XMLFile, XMLFile);
  1460. UIElement LoadChildXML(const XMLElement&, XMLFile);
  1461. bool LoadJSON(const JSONValue&);
  1462. bool LoadXML(File);
  1463. bool LoadXML(VectorBuffer&);
  1464. bool LoadXML(XMLFile, XMLFile);
  1465. bool LoadXML(const XMLElement&, XMLFile);
  1466. bool LoadXML(const XMLElement&);
  1467. void MarkNetworkUpdate() const;
  1468. void Remove();
  1469. void RemoveAllChildren();
  1470. void RemoveAllTags();
  1471. void RemoveAttributeAnimation(const String&);
  1472. void RemoveChild(UIElement, uint = 0);
  1473. void RemoveChild(uint);
  1474. void RemoveInstanceDefault();
  1475. void RemoveObjectAnimation();
  1476. bool RemoveTag(const String&);
  1477. void ResetDeepEnabled();
  1478. void ResetToDefault();
  1479. bool Save(File) const;
  1480. bool Save(VectorBuffer&) const;
  1481. bool SaveJSON(JSONValue&) const;
  1482. bool SaveXML(File, const String& = "\t");
  1483. bool SaveXML(VectorBuffer&, const String& = "\t");
  1484. bool SaveXML(XMLElement&) const;
  1485. IntVector2 ScreenToElement(const IntVector2&);
  1486. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1487. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1488. void SetAnimationTime(float);
  1489. bool SetAttribute(const String&, const Variant&);
  1490. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1491. void SetAttributeAnimationSpeed(const String&, float);
  1492. void SetAttributeAnimationTime(const String&, float);
  1493. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1494. void SetCheckedOffset(int, int);
  1495. void SetDeepEnabled(bool);
  1496. void SetDisabledOffset(int, int);
  1497. void SetEnabledRecursive(bool);
  1498. void SetFixedHeight(int);
  1499. void SetFixedSize(int, int);
  1500. void SetFixedWidth(int);
  1501. void SetFullImageRect();
  1502. void SetHoverOffset(int, int);
  1503. void SetInterceptNetworkUpdate(const String&, bool);
  1504. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1505. void SetMaxAnchor(float, float);
  1506. void SetMaxSize(int, int);
  1507. void SetMinAnchor(float, float);
  1508. void SetMinSize(int, int);
  1509. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1510. void SetPivot(float, float);
  1511. void SetPosition(int, int);
  1512. void SetSize(int, int);
  1513. bool SetStyle(const String&, XMLFile = null);
  1514. bool SetStyle(const XMLElement&);
  1515. bool SetStyleAuto(XMLFile = null);
  1516. void UpdateLayout();
  1517. const Variant& GetVar(const StringHash&);
  1518. // Properties:
  1519. bool animationEnabled;
  1520. /* readonly */
  1521. Array<Variant> attributeDefaults;
  1522. /* readonly */
  1523. Array<AttributeInfo> attributeInfos;
  1524. Array<Variant> attributes;
  1525. BlendMode blendMode;
  1526. IntRect border;
  1527. bool bringToBack;
  1528. bool bringToFront;
  1529. /* readonly */
  1530. String category;
  1531. bool checked;
  1532. IntVector2 checkedOffset;
  1533. /* readonly */
  1534. IntVector2 childOffset;
  1535. /* readonly */
  1536. Array<UIElement> children;
  1537. IntRect clipBorder;
  1538. bool clipChildren;
  1539. /* writeonly */
  1540. Color color;
  1541. /* readonly */
  1542. bool colorGradient;
  1543. Array<Color> colors;
  1544. /* readonly */
  1545. IntRect combinedScreenRect;
  1546. XMLFile defaultStyle;
  1547. /* readonly */
  1548. float derivedOpacity;
  1549. IntVector2 disabledOffset;
  1550. /* readonly */
  1551. uint dragButtonCombo;
  1552. /* readonly */
  1553. int dragButtonCount;
  1554. uint dragDropMode;
  1555. bool editable;
  1556. bool elementEventSender;
  1557. bool enableAnchor;
  1558. bool enabled;
  1559. /* readonly */
  1560. bool enabledSelf;
  1561. /* readonly */
  1562. bool fixedHeight;
  1563. /* readonly */
  1564. bool fixedSize;
  1565. /* readonly */
  1566. bool fixedWidth;
  1567. bool focus;
  1568. FocusMode focusMode;
  1569. int height;
  1570. HorizontalAlignment horizontalAlignment;
  1571. IntVector2 hoverOffset;
  1572. /* readonly */
  1573. bool hovering;
  1574. IntRect imageBorder;
  1575. IntRect imageRect;
  1576. int indent;
  1577. int indentSpacing;
  1578. /* readonly */
  1579. int indentWidth;
  1580. bool internal;
  1581. IntRect layoutBorder;
  1582. Vector2 layoutFlexScale;
  1583. LayoutMode layoutMode;
  1584. int layoutSpacing;
  1585. Material material;
  1586. Vector2 maxAnchor;
  1587. int maxHeight;
  1588. IntVector2 maxOffset;
  1589. IntVector2 maxSize;
  1590. int maxWidth;
  1591. Vector2 minAnchor;
  1592. int minHeight;
  1593. IntVector2 minOffset;
  1594. IntVector2 minSize;
  1595. int minWidth;
  1596. String name;
  1597. /* readonly */
  1598. uint numAllChildren;
  1599. /* readonly */
  1600. uint numAttributes;
  1601. /* readonly */
  1602. uint numChildren;
  1603. ObjectAnimation objectAnimation;
  1604. float opacity;
  1605. UIElement parent;
  1606. Vector2 pivot;
  1607. IntVector2 position;
  1608. int priority;
  1609. /* readonly */
  1610. int refs;
  1611. /* readonly */
  1612. UIElement root;
  1613. /* readonly */
  1614. IntVector2 screenPosition;
  1615. bool selected;
  1616. IntVector2 size;
  1617. bool sortChildren;
  1618. String style;
  1619. /* readonly */
  1620. Array<String> tags;
  1621. bool temporary;
  1622. Texture texture;
  1623. bool tiled;
  1624. TraversalMode traversalMode;
  1625. /* readonly */
  1626. StringHash type;
  1627. /* readonly */
  1628. String typeName;
  1629. bool useDerivedOpacity;
  1630. /* readonly */
  1631. VariantMap vars;
  1632. VerticalAlignment verticalAlignment;
  1633. bool visible;
  1634. /* readonly */
  1635. bool visibleEffective;
  1636. /* readonly */
  1637. int weakRefs;
  1638. int width;
  1639. };
  1640. class CollisionBox2D
  1641. {
  1642. public:
  1643. // Methods:
  1644. void ApplyAttributes();
  1645. void DrawDebugGeometry(DebugRenderer, bool);
  1646. Variant GetAttribute(const String&) const;
  1647. ValueAnimation GetAttributeAnimation(const String&) const;
  1648. float GetAttributeAnimationSpeed(const String&) const;
  1649. float GetAttributeAnimationTime(const String&) const;
  1650. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1651. Variant GetAttributeDefault(const String&) const;
  1652. bool GetInterceptNetworkUpdate(const String&) const;
  1653. bool HasSubscribedToEvent(Object, const String&);
  1654. bool HasSubscribedToEvent(const String&);
  1655. bool Load(File);
  1656. bool Load(VectorBuffer&);
  1657. bool LoadJSON(const JSONValue&);
  1658. bool LoadXML(const XMLElement&);
  1659. void MarkNetworkUpdate() const;
  1660. void Remove();
  1661. void RemoveAttributeAnimation(const String&);
  1662. void RemoveInstanceDefault();
  1663. void RemoveObjectAnimation();
  1664. void ResetToDefault();
  1665. bool Save(File) const;
  1666. bool Save(VectorBuffer&) const;
  1667. bool SaveJSON(JSONValue&) const;
  1668. bool SaveXML(XMLElement&) const;
  1669. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1670. void SetAnimationTime(float);
  1671. bool SetAttribute(const String&, const Variant&);
  1672. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1673. void SetAttributeAnimationSpeed(const String&, float);
  1674. void SetAttributeAnimationTime(const String&, float);
  1675. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1676. void SetCenter(float, float);
  1677. void SetInterceptNetworkUpdate(const String&, bool);
  1678. void SetSize(float, float);
  1679. // Properties:
  1680. float angle;
  1681. bool animationEnabled;
  1682. /* readonly */
  1683. Array<Variant> attributeDefaults;
  1684. /* readonly */
  1685. Array<AttributeInfo> attributeInfos;
  1686. Array<Variant> attributes;
  1687. /* readonly */
  1688. String category;
  1689. int categoryBits;
  1690. Vector2 center;
  1691. float density;
  1692. bool enabled;
  1693. /* readonly */
  1694. bool enabledEffective;
  1695. float friction;
  1696. int groupIndex;
  1697. /* readonly */
  1698. uint id;
  1699. /* readonly */
  1700. float inertia;
  1701. int maskBits;
  1702. /* readonly */
  1703. float mass;
  1704. /* readonly */
  1705. Vector2 massCenter;
  1706. /* readonly */
  1707. Node node;
  1708. /* readonly */
  1709. uint numAttributes;
  1710. ObjectAnimation objectAnimation;
  1711. /* readonly */
  1712. int refs;
  1713. /* readonly */
  1714. bool replicated;
  1715. float restitution;
  1716. Vector2 size;
  1717. bool temporary;
  1718. bool trigger;
  1719. /* readonly */
  1720. StringHash type;
  1721. /* readonly */
  1722. String typeName;
  1723. /* readonly */
  1724. int weakRefs;
  1725. };
  1726. class CollisionChain2D
  1727. {
  1728. public:
  1729. // Methods:
  1730. void ApplyAttributes();
  1731. void DrawDebugGeometry(DebugRenderer, bool);
  1732. Variant GetAttribute(const String&) const;
  1733. ValueAnimation GetAttributeAnimation(const String&) const;
  1734. float GetAttributeAnimationSpeed(const String&) const;
  1735. float GetAttributeAnimationTime(const String&) const;
  1736. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1737. Variant GetAttributeDefault(const String&) const;
  1738. bool GetInterceptNetworkUpdate(const String&) const;
  1739. Array<Vector2> GetVertices() const;
  1740. bool HasSubscribedToEvent(Object, const String&);
  1741. bool HasSubscribedToEvent(const String&);
  1742. bool Load(File);
  1743. bool Load(VectorBuffer&);
  1744. bool LoadJSON(const JSONValue&);
  1745. bool LoadXML(const XMLElement&);
  1746. void MarkNetworkUpdate() const;
  1747. void Remove();
  1748. void RemoveAttributeAnimation(const String&);
  1749. void RemoveInstanceDefault();
  1750. void RemoveObjectAnimation();
  1751. void ResetToDefault();
  1752. bool Save(File) const;
  1753. bool Save(VectorBuffer&) const;
  1754. bool SaveJSON(JSONValue&) const;
  1755. bool SaveXML(XMLElement&) const;
  1756. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1757. void SetAnimationTime(float);
  1758. bool SetAttribute(const String&, const Variant&);
  1759. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1760. void SetAttributeAnimationSpeed(const String&, float);
  1761. void SetAttributeAnimationTime(const String&, float);
  1762. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1763. void SetInterceptNetworkUpdate(const String&, bool);
  1764. void SetVertex(uint, const Vector2&);
  1765. void SetVertices(Array<Vector2>);
  1766. const Vector2& GetVertex(uint) const;
  1767. // Properties:
  1768. bool animationEnabled;
  1769. /* readonly */
  1770. Array<Variant> attributeDefaults;
  1771. /* readonly */
  1772. Array<AttributeInfo> attributeInfos;
  1773. Array<Variant> attributes;
  1774. /* readonly */
  1775. String category;
  1776. int categoryBits;
  1777. float density;
  1778. bool enabled;
  1779. /* readonly */
  1780. bool enabledEffective;
  1781. float friction;
  1782. int groupIndex;
  1783. /* readonly */
  1784. uint id;
  1785. /* readonly */
  1786. float inertia;
  1787. bool loop;
  1788. int maskBits;
  1789. /* readonly */
  1790. float mass;
  1791. /* readonly */
  1792. Vector2 massCenter;
  1793. /* readonly */
  1794. Node node;
  1795. /* readonly */
  1796. uint numAttributes;
  1797. ObjectAnimation objectAnimation;
  1798. /* readonly */
  1799. int refs;
  1800. /* readonly */
  1801. bool replicated;
  1802. float restitution;
  1803. bool temporary;
  1804. bool trigger;
  1805. /* readonly */
  1806. StringHash type;
  1807. /* readonly */
  1808. String typeName;
  1809. uint vertexCount;
  1810. /* readonly */
  1811. int weakRefs;
  1812. };
  1813. class CollisionCircle2D
  1814. {
  1815. public:
  1816. // Methods:
  1817. void ApplyAttributes();
  1818. void DrawDebugGeometry(DebugRenderer, bool);
  1819. Variant GetAttribute(const String&) const;
  1820. ValueAnimation GetAttributeAnimation(const String&) const;
  1821. float GetAttributeAnimationSpeed(const String&) const;
  1822. float GetAttributeAnimationTime(const String&) const;
  1823. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1824. Variant GetAttributeDefault(const String&) const;
  1825. bool GetInterceptNetworkUpdate(const String&) const;
  1826. bool HasSubscribedToEvent(Object, const String&);
  1827. bool HasSubscribedToEvent(const String&);
  1828. bool Load(File);
  1829. bool Load(VectorBuffer&);
  1830. bool LoadJSON(const JSONValue&);
  1831. bool LoadXML(const XMLElement&);
  1832. void MarkNetworkUpdate() const;
  1833. void Remove();
  1834. void RemoveAttributeAnimation(const String&);
  1835. void RemoveInstanceDefault();
  1836. void RemoveObjectAnimation();
  1837. void ResetToDefault();
  1838. bool Save(File) const;
  1839. bool Save(VectorBuffer&) const;
  1840. bool SaveJSON(JSONValue&) const;
  1841. bool SaveXML(XMLElement&) const;
  1842. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1843. void SetAnimationTime(float);
  1844. bool SetAttribute(const String&, const Variant&);
  1845. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1846. void SetAttributeAnimationSpeed(const String&, float);
  1847. void SetAttributeAnimationTime(const String&, float);
  1848. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1849. void SetCenter(float, float);
  1850. void SetInterceptNetworkUpdate(const String&, bool);
  1851. // Properties:
  1852. bool animationEnabled;
  1853. /* readonly */
  1854. Array<Variant> attributeDefaults;
  1855. /* readonly */
  1856. Array<AttributeInfo> attributeInfos;
  1857. Array<Variant> attributes;
  1858. /* readonly */
  1859. String category;
  1860. int categoryBits;
  1861. Vector2 center;
  1862. float density;
  1863. bool enabled;
  1864. /* readonly */
  1865. bool enabledEffective;
  1866. float friction;
  1867. int groupIndex;
  1868. /* readonly */
  1869. uint id;
  1870. /* readonly */
  1871. float inertia;
  1872. int maskBits;
  1873. /* readonly */
  1874. float mass;
  1875. /* readonly */
  1876. Vector2 massCenter;
  1877. /* readonly */
  1878. Node node;
  1879. /* readonly */
  1880. uint numAttributes;
  1881. ObjectAnimation objectAnimation;
  1882. float radius;
  1883. /* readonly */
  1884. int refs;
  1885. /* readonly */
  1886. bool replicated;
  1887. float restitution;
  1888. bool temporary;
  1889. bool trigger;
  1890. /* readonly */
  1891. StringHash type;
  1892. /* readonly */
  1893. String typeName;
  1894. /* readonly */
  1895. int weakRefs;
  1896. };
  1897. class CollisionEdge2D
  1898. {
  1899. public:
  1900. // Methods:
  1901. void ApplyAttributes();
  1902. void DrawDebugGeometry(DebugRenderer, bool);
  1903. Variant GetAttribute(const String&) const;
  1904. ValueAnimation GetAttributeAnimation(const String&) const;
  1905. float GetAttributeAnimationSpeed(const String&) const;
  1906. float GetAttributeAnimationTime(const String&) const;
  1907. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1908. Variant GetAttributeDefault(const String&) const;
  1909. bool GetInterceptNetworkUpdate(const String&) const;
  1910. bool HasSubscribedToEvent(Object, const String&);
  1911. bool HasSubscribedToEvent(const String&);
  1912. bool Load(File);
  1913. bool Load(VectorBuffer&);
  1914. bool LoadJSON(const JSONValue&);
  1915. bool LoadXML(const XMLElement&);
  1916. void MarkNetworkUpdate() const;
  1917. void Remove();
  1918. void RemoveAttributeAnimation(const String&);
  1919. void RemoveInstanceDefault();
  1920. void RemoveObjectAnimation();
  1921. void ResetToDefault();
  1922. bool Save(File) const;
  1923. bool Save(VectorBuffer&) const;
  1924. bool SaveJSON(JSONValue&) const;
  1925. bool SaveXML(XMLElement&) const;
  1926. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1927. void SetAnimationTime(float);
  1928. bool SetAttribute(const String&, const Variant&);
  1929. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1930. void SetAttributeAnimationSpeed(const String&, float);
  1931. void SetAttributeAnimationTime(const String&, float);
  1932. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1933. void SetInterceptNetworkUpdate(const String&, bool);
  1934. void SetVertices(const Vector2&, const Vector2&);
  1935. // Properties:
  1936. bool animationEnabled;
  1937. /* readonly */
  1938. Array<Variant> attributeDefaults;
  1939. /* readonly */
  1940. Array<AttributeInfo> attributeInfos;
  1941. Array<Variant> attributes;
  1942. /* readonly */
  1943. String category;
  1944. int categoryBits;
  1945. float density;
  1946. bool enabled;
  1947. /* readonly */
  1948. bool enabledEffective;
  1949. float friction;
  1950. int groupIndex;
  1951. /* readonly */
  1952. uint id;
  1953. /* readonly */
  1954. float inertia;
  1955. int maskBits;
  1956. /* readonly */
  1957. float mass;
  1958. /* readonly */
  1959. Vector2 massCenter;
  1960. /* readonly */
  1961. Node node;
  1962. /* readonly */
  1963. uint numAttributes;
  1964. ObjectAnimation objectAnimation;
  1965. /* readonly */
  1966. int refs;
  1967. /* readonly */
  1968. bool replicated;
  1969. float restitution;
  1970. bool temporary;
  1971. bool trigger;
  1972. /* readonly */
  1973. StringHash type;
  1974. /* readonly */
  1975. String typeName;
  1976. Vector2 vertex1;
  1977. Vector2 vertex2;
  1978. /* readonly */
  1979. int weakRefs;
  1980. };
  1981. class CollisionPolygon2D
  1982. {
  1983. public:
  1984. // Methods:
  1985. void ApplyAttributes();
  1986. void DrawDebugGeometry(DebugRenderer, bool);
  1987. Variant GetAttribute(const String&) const;
  1988. ValueAnimation GetAttributeAnimation(const String&) const;
  1989. float GetAttributeAnimationSpeed(const String&) const;
  1990. float GetAttributeAnimationTime(const String&) const;
  1991. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1992. Variant GetAttributeDefault(const String&) const;
  1993. bool GetInterceptNetworkUpdate(const String&) const;
  1994. Array<Vector2> GetVertices() const;
  1995. bool HasSubscribedToEvent(Object, const String&);
  1996. bool HasSubscribedToEvent(const String&);
  1997. bool Load(File);
  1998. bool Load(VectorBuffer&);
  1999. bool LoadJSON(const JSONValue&);
  2000. bool LoadXML(const XMLElement&);
  2001. void MarkNetworkUpdate() const;
  2002. void Remove();
  2003. void RemoveAttributeAnimation(const String&);
  2004. void RemoveInstanceDefault();
  2005. void RemoveObjectAnimation();
  2006. void ResetToDefault();
  2007. bool Save(File) const;
  2008. bool Save(VectorBuffer&) const;
  2009. bool SaveJSON(JSONValue&) const;
  2010. bool SaveXML(XMLElement&) const;
  2011. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2012. void SetAnimationTime(float);
  2013. bool SetAttribute(const String&, const Variant&);
  2014. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2015. void SetAttributeAnimationSpeed(const String&, float);
  2016. void SetAttributeAnimationTime(const String&, float);
  2017. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2018. void SetInterceptNetworkUpdate(const String&, bool);
  2019. void SetVertex(uint, const Vector2&);
  2020. void SetVertices(Array<Vector2>);
  2021. const Vector2& GetVertex(uint) const;
  2022. // Properties:
  2023. bool animationEnabled;
  2024. /* readonly */
  2025. Array<Variant> attributeDefaults;
  2026. /* readonly */
  2027. Array<AttributeInfo> attributeInfos;
  2028. Array<Variant> attributes;
  2029. /* readonly */
  2030. String category;
  2031. int categoryBits;
  2032. float density;
  2033. bool enabled;
  2034. /* readonly */
  2035. bool enabledEffective;
  2036. float friction;
  2037. int groupIndex;
  2038. /* readonly */
  2039. uint id;
  2040. /* readonly */
  2041. float inertia;
  2042. int maskBits;
  2043. /* readonly */
  2044. float mass;
  2045. /* readonly */
  2046. Vector2 massCenter;
  2047. /* readonly */
  2048. Node node;
  2049. /* readonly */
  2050. uint numAttributes;
  2051. ObjectAnimation objectAnimation;
  2052. /* readonly */
  2053. int refs;
  2054. /* readonly */
  2055. bool replicated;
  2056. float restitution;
  2057. bool temporary;
  2058. bool trigger;
  2059. /* readonly */
  2060. StringHash type;
  2061. /* readonly */
  2062. String typeName;
  2063. uint vertexCount;
  2064. /* readonly */
  2065. int weakRefs;
  2066. };
  2067. class CollisionShape
  2068. {
  2069. public:
  2070. // Methods:
  2071. void ApplyAttributes();
  2072. void DrawDebugGeometry(DebugRenderer, bool);
  2073. Variant GetAttribute(const String&) const;
  2074. ValueAnimation GetAttributeAnimation(const String&) const;
  2075. float GetAttributeAnimationSpeed(const String&) const;
  2076. float GetAttributeAnimationTime(const String&) const;
  2077. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2078. Variant GetAttributeDefault(const String&) const;
  2079. bool GetInterceptNetworkUpdate(const String&) const;
  2080. bool HasSubscribedToEvent(Object, const String&);
  2081. bool HasSubscribedToEvent(const String&);
  2082. bool Load(File);
  2083. bool Load(VectorBuffer&);
  2084. bool LoadJSON(const JSONValue&);
  2085. bool LoadXML(const XMLElement&);
  2086. void MarkNetworkUpdate() const;
  2087. void Remove();
  2088. void RemoveAttributeAnimation(const String&);
  2089. void RemoveInstanceDefault();
  2090. void RemoveObjectAnimation();
  2091. void ResetToDefault();
  2092. bool Save(File) const;
  2093. bool Save(VectorBuffer&) const;
  2094. bool SaveJSON(JSONValue&) const;
  2095. bool SaveXML(XMLElement&) const;
  2096. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2097. void SetAnimationTime(float);
  2098. bool SetAttribute(const String&, const Variant&);
  2099. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2100. void SetAttributeAnimationSpeed(const String&, float);
  2101. void SetAttributeAnimationTime(const String&, float);
  2102. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2103. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2104. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2105. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2106. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2107. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2108. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2109. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2110. void SetInterceptNetworkUpdate(const String&, bool);
  2111. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2112. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2113. void SetTerrain(uint = 0);
  2114. void SetTransform(const Vector3&, const Quaternion&);
  2115. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2116. // Properties:
  2117. bool animationEnabled;
  2118. /* readonly */
  2119. Array<Variant> attributeDefaults;
  2120. /* readonly */
  2121. Array<AttributeInfo> attributeInfos;
  2122. Array<Variant> attributes;
  2123. /* readonly */
  2124. String category;
  2125. bool enabled;
  2126. /* readonly */
  2127. bool enabledEffective;
  2128. /* readonly */
  2129. uint id;
  2130. uint lodLevel;
  2131. float margin;
  2132. Model model;
  2133. /* readonly */
  2134. Node node;
  2135. /* readonly */
  2136. uint numAttributes;
  2137. ObjectAnimation objectAnimation;
  2138. Vector3 position;
  2139. /* readonly */
  2140. int refs;
  2141. /* readonly */
  2142. bool replicated;
  2143. Quaternion rotation;
  2144. ShapeType shapeType;
  2145. Vector3 size;
  2146. bool temporary;
  2147. /* readonly */
  2148. StringHash type;
  2149. /* readonly */
  2150. String typeName;
  2151. /* readonly */
  2152. int weakRefs;
  2153. /* readonly */
  2154. BoundingBox worldBoundingBox;
  2155. };
  2156. class CollisionShape2D
  2157. {
  2158. public:
  2159. // Methods:
  2160. void ApplyAttributes();
  2161. void DrawDebugGeometry(DebugRenderer, bool);
  2162. Variant GetAttribute(const String&) const;
  2163. ValueAnimation GetAttributeAnimation(const String&) const;
  2164. float GetAttributeAnimationSpeed(const String&) const;
  2165. float GetAttributeAnimationTime(const String&) const;
  2166. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2167. Variant GetAttributeDefault(const String&) const;
  2168. bool GetInterceptNetworkUpdate(const String&) const;
  2169. bool HasSubscribedToEvent(Object, const String&);
  2170. bool HasSubscribedToEvent(const String&);
  2171. bool Load(File);
  2172. bool Load(VectorBuffer&);
  2173. bool LoadJSON(const JSONValue&);
  2174. bool LoadXML(const XMLElement&);
  2175. void MarkNetworkUpdate() const;
  2176. void Remove();
  2177. void RemoveAttributeAnimation(const String&);
  2178. void RemoveInstanceDefault();
  2179. void RemoveObjectAnimation();
  2180. void ResetToDefault();
  2181. bool Save(File) const;
  2182. bool Save(VectorBuffer&) const;
  2183. bool SaveJSON(JSONValue&) const;
  2184. bool SaveXML(XMLElement&) const;
  2185. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2186. void SetAnimationTime(float);
  2187. bool SetAttribute(const String&, const Variant&);
  2188. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2189. void SetAttributeAnimationSpeed(const String&, float);
  2190. void SetAttributeAnimationTime(const String&, float);
  2191. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2192. void SetInterceptNetworkUpdate(const String&, bool);
  2193. // Properties:
  2194. bool animationEnabled;
  2195. /* readonly */
  2196. Array<Variant> attributeDefaults;
  2197. /* readonly */
  2198. Array<AttributeInfo> attributeInfos;
  2199. Array<Variant> attributes;
  2200. /* readonly */
  2201. String category;
  2202. int categoryBits;
  2203. float density;
  2204. bool enabled;
  2205. /* readonly */
  2206. bool enabledEffective;
  2207. float friction;
  2208. int groupIndex;
  2209. /* readonly */
  2210. uint id;
  2211. /* readonly */
  2212. float inertia;
  2213. int maskBits;
  2214. /* readonly */
  2215. float mass;
  2216. /* readonly */
  2217. Vector2 massCenter;
  2218. /* readonly */
  2219. Node node;
  2220. /* readonly */
  2221. uint numAttributes;
  2222. ObjectAnimation objectAnimation;
  2223. /* readonly */
  2224. int refs;
  2225. /* readonly */
  2226. bool replicated;
  2227. float restitution;
  2228. bool temporary;
  2229. bool trigger;
  2230. /* readonly */
  2231. StringHash type;
  2232. /* readonly */
  2233. String typeName;
  2234. /* readonly */
  2235. int weakRefs;
  2236. };
  2237. class Color
  2238. {
  2239. public:
  2240. Color();
  2241. Color(const Color&in);
  2242. Color(float, float, float, float);
  2243. Color(float, float, float);
  2244. Color(float[]&inout);
  2245. // Methods:
  2246. Color Abs() const;
  2247. float Average() const;
  2248. float Chroma() const;
  2249. void Clip(bool);
  2250. bool Equals() const;
  2251. void FromHSL(float, float, float, float);
  2252. void FromHSV(float, float, float, float);
  2253. void FromUInt(uint);
  2254. float Hue() const;
  2255. void Invert(bool);
  2256. Color Lerp(const Color&, float) const;
  2257. float Lightness() const;
  2258. float Luma() const;
  2259. float MaxRGB() const;
  2260. float MinRGB() const;
  2261. float Range() const;
  2262. float SaturationHSL() const;
  2263. float SaturationHSV() const;
  2264. float SumRGB() const;
  2265. Vector3 ToHSL() const;
  2266. Vector3 ToHSV() const;
  2267. String ToString() const;
  2268. uint ToUInt() const;
  2269. float Value() const;
  2270. // Properties:
  2271. float a;
  2272. float b;
  2273. /* readonly */
  2274. Array<float> data;
  2275. float g;
  2276. float r;
  2277. /* readonly */
  2278. Vector3 rgb;
  2279. /* readonly */
  2280. Vector4 rgba;
  2281. };
  2282. class ColorFrame
  2283. {
  2284. public:
  2285. // Properties:
  2286. Color color;
  2287. float time;
  2288. };
  2289. class Component
  2290. {
  2291. public:
  2292. // Methods:
  2293. void ApplyAttributes();
  2294. void DrawDebugGeometry(DebugRenderer, bool);
  2295. Variant GetAttribute(const String&) const;
  2296. ValueAnimation GetAttributeAnimation(const String&) const;
  2297. float GetAttributeAnimationSpeed(const String&) const;
  2298. float GetAttributeAnimationTime(const String&) const;
  2299. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2300. Variant GetAttributeDefault(const String&) const;
  2301. bool GetInterceptNetworkUpdate(const String&) const;
  2302. bool HasSubscribedToEvent(Object, const String&);
  2303. bool HasSubscribedToEvent(const String&);
  2304. bool Load(File);
  2305. bool Load(VectorBuffer&);
  2306. bool LoadJSON(const JSONValue&);
  2307. bool LoadXML(const XMLElement&);
  2308. void MarkNetworkUpdate() const;
  2309. void Remove();
  2310. void RemoveAttributeAnimation(const String&);
  2311. void RemoveInstanceDefault();
  2312. void RemoveObjectAnimation();
  2313. void ResetToDefault();
  2314. bool Save(File) const;
  2315. bool Save(VectorBuffer&) const;
  2316. bool SaveJSON(JSONValue&) const;
  2317. bool SaveXML(XMLElement&) const;
  2318. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2319. void SetAnimationTime(float);
  2320. bool SetAttribute(const String&, const Variant&);
  2321. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2322. void SetAttributeAnimationSpeed(const String&, float);
  2323. void SetAttributeAnimationTime(const String&, float);
  2324. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2325. void SetInterceptNetworkUpdate(const String&, bool);
  2326. // Properties:
  2327. bool animationEnabled;
  2328. /* readonly */
  2329. Array<Variant> attributeDefaults;
  2330. /* readonly */
  2331. Array<AttributeInfo> attributeInfos;
  2332. Array<Variant> attributes;
  2333. /* readonly */
  2334. String category;
  2335. bool enabled;
  2336. /* readonly */
  2337. bool enabledEffective;
  2338. /* readonly */
  2339. uint id;
  2340. /* readonly */
  2341. Node node;
  2342. /* readonly */
  2343. uint numAttributes;
  2344. ObjectAnimation objectAnimation;
  2345. /* readonly */
  2346. int refs;
  2347. /* readonly */
  2348. bool replicated;
  2349. bool temporary;
  2350. /* readonly */
  2351. StringHash type;
  2352. /* readonly */
  2353. String typeName;
  2354. /* readonly */
  2355. int weakRefs;
  2356. };
  2357. class Connection
  2358. {
  2359. public:
  2360. // Methods:
  2361. void Disconnect(int = 0);
  2362. bool HasSubscribedToEvent(Object, const String&);
  2363. bool HasSubscribedToEvent(const String&);
  2364. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2365. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2366. void SendPackageToClient(PackageFile);
  2367. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2368. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2369. String ToString() const;
  2370. // Properties:
  2371. /* readonly */
  2372. String address;
  2373. /* readonly */
  2374. float bytesInPerSec;
  2375. /* readonly */
  2376. float bytesOutPerSec;
  2377. /* readonly */
  2378. String category;
  2379. /* readonly */
  2380. bool client;
  2381. /* readonly */
  2382. bool connectPending;
  2383. /* readonly */
  2384. bool connected;
  2385. Controls controls;
  2386. /* readonly */
  2387. String downloadName;
  2388. /* readonly */
  2389. float downloadProgress;
  2390. VariantMap identity;
  2391. /* readonly */
  2392. uint lastHeardTime;
  2393. bool logStatistics;
  2394. /* readonly */
  2395. uint numDownloads;
  2396. /* readonly */
  2397. int packetsInPerSec;
  2398. /* readonly */
  2399. int packetsOutPerSec;
  2400. /* readonly */
  2401. uint16 port;
  2402. Vector3 position;
  2403. /* readonly */
  2404. int refs;
  2405. Quaternion rotation;
  2406. /* readonly */
  2407. float roundTripTime;
  2408. Scene scene;
  2409. /* readonly */
  2410. bool sceneLoaded;
  2411. uint8 timeStamp;
  2412. /* readonly */
  2413. StringHash type;
  2414. /* readonly */
  2415. String typeName;
  2416. /* readonly */
  2417. int weakRefs;
  2418. };
  2419. class Console
  2420. {
  2421. public:
  2422. // Methods:
  2423. void AddAutoComplete(const String&);
  2424. void CopySelectedRows() const;
  2425. bool HasSubscribedToEvent(Object, const String&);
  2426. bool HasSubscribedToEvent(const String&);
  2427. void RemoveAutoComplete(const String&);
  2428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2429. void Toggle();
  2430. void UpdateElements();
  2431. // Properties:
  2432. bool autoVisibleOnError;
  2433. /* readonly */
  2434. BorderImage background;
  2435. /* readonly */
  2436. String category;
  2437. /* readonly */
  2438. Button closeButton;
  2439. String commandInterpreter;
  2440. XMLFile defaultStyle;
  2441. bool focusOnShow;
  2442. /* readonly */
  2443. uint historyPosition;
  2444. /* readonly */
  2445. Array<String> historyRow;
  2446. /* readonly */
  2447. LineEdit lineEdit;
  2448. uint numBufferedRows;
  2449. uint numHistoryRows;
  2450. uint numRows;
  2451. /* readonly */
  2452. int refs;
  2453. /* readonly */
  2454. StringHash type;
  2455. /* readonly */
  2456. String typeName;
  2457. bool visible;
  2458. /* readonly */
  2459. int weakRefs;
  2460. };
  2461. class Constraint
  2462. {
  2463. public:
  2464. // Methods:
  2465. void ApplyAttributes();
  2466. void DrawDebugGeometry(DebugRenderer, bool);
  2467. Variant GetAttribute(const String&) const;
  2468. ValueAnimation GetAttributeAnimation(const String&) const;
  2469. float GetAttributeAnimationSpeed(const String&) const;
  2470. float GetAttributeAnimationTime(const String&) const;
  2471. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2472. Variant GetAttributeDefault(const String&) const;
  2473. bool GetInterceptNetworkUpdate(const String&) const;
  2474. bool HasSubscribedToEvent(Object, const String&);
  2475. bool HasSubscribedToEvent(const String&);
  2476. bool Load(File);
  2477. bool Load(VectorBuffer&);
  2478. bool LoadJSON(const JSONValue&);
  2479. bool LoadXML(const XMLElement&);
  2480. void MarkNetworkUpdate() const;
  2481. void Remove();
  2482. void RemoveAttributeAnimation(const String&);
  2483. void RemoveInstanceDefault();
  2484. void RemoveObjectAnimation();
  2485. void ResetToDefault();
  2486. bool Save(File) const;
  2487. bool Save(VectorBuffer&) const;
  2488. bool SaveJSON(JSONValue&) const;
  2489. bool SaveXML(XMLElement&) const;
  2490. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2491. void SetAnimationTime(float);
  2492. bool SetAttribute(const String&, const Variant&);
  2493. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2494. void SetAttributeAnimationSpeed(const String&, float);
  2495. void SetAttributeAnimationTime(const String&, float);
  2496. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2497. void SetInterceptNetworkUpdate(const String&, bool);
  2498. // Properties:
  2499. bool animationEnabled;
  2500. /* readonly */
  2501. Array<Variant> attributeDefaults;
  2502. /* readonly */
  2503. Array<AttributeInfo> attributeInfos;
  2504. Array<Variant> attributes;
  2505. /* writeonly */
  2506. Vector3 axis;
  2507. /* readonly */
  2508. String category;
  2509. float cfm;
  2510. ConstraintType constraintType;
  2511. bool disableCollision;
  2512. bool enabled;
  2513. /* readonly */
  2514. bool enabledEffective;
  2515. float erp;
  2516. Vector2 highLimit;
  2517. /* readonly */
  2518. uint id;
  2519. Vector2 lowLimit;
  2520. /* readonly */
  2521. Node node;
  2522. /* readonly */
  2523. uint numAttributes;
  2524. ObjectAnimation objectAnimation;
  2525. /* writeonly */
  2526. Vector3 otherAxis;
  2527. RigidBody otherBody;
  2528. Vector3 otherPosition;
  2529. Quaternion otherRotation;
  2530. /* readonly */
  2531. RigidBody ownBody;
  2532. Vector3 position;
  2533. /* readonly */
  2534. int refs;
  2535. /* readonly */
  2536. bool replicated;
  2537. Quaternion rotation;
  2538. bool temporary;
  2539. /* readonly */
  2540. StringHash type;
  2541. /* readonly */
  2542. String typeName;
  2543. /* readonly */
  2544. int weakRefs;
  2545. Vector3 worldPosition;
  2546. };
  2547. class Constraint2D
  2548. {
  2549. public:
  2550. // Methods:
  2551. void ApplyAttributes();
  2552. void DrawDebugGeometry(DebugRenderer, bool);
  2553. Variant GetAttribute(const String&) const;
  2554. ValueAnimation GetAttributeAnimation(const String&) const;
  2555. float GetAttributeAnimationSpeed(const String&) const;
  2556. float GetAttributeAnimationTime(const String&) const;
  2557. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2558. Variant GetAttributeDefault(const String&) const;
  2559. bool GetInterceptNetworkUpdate(const String&) const;
  2560. bool HasSubscribedToEvent(Object, const String&);
  2561. bool HasSubscribedToEvent(const String&);
  2562. bool Load(File);
  2563. bool Load(VectorBuffer&);
  2564. bool LoadJSON(const JSONValue&);
  2565. bool LoadXML(const XMLElement&);
  2566. void MarkNetworkUpdate() const;
  2567. void Remove();
  2568. void RemoveAttributeAnimation(const String&);
  2569. void RemoveInstanceDefault();
  2570. void RemoveObjectAnimation();
  2571. void ResetToDefault();
  2572. bool Save(File) const;
  2573. bool Save(VectorBuffer&) const;
  2574. bool SaveJSON(JSONValue&) const;
  2575. bool SaveXML(XMLElement&) const;
  2576. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2577. void SetAnimationTime(float);
  2578. bool SetAttribute(const String&, const Variant&);
  2579. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2580. void SetAttributeAnimationSpeed(const String&, float);
  2581. void SetAttributeAnimationTime(const String&, float);
  2582. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2583. void SetInterceptNetworkUpdate(const String&, bool);
  2584. // Properties:
  2585. bool animationEnabled;
  2586. /* readonly */
  2587. Array<Variant> attributeDefaults;
  2588. /* readonly */
  2589. Array<AttributeInfo> attributeInfos;
  2590. Array<Variant> attributes;
  2591. /* readonly */
  2592. String category;
  2593. bool collideConnected;
  2594. bool enabled;
  2595. /* readonly */
  2596. bool enabledEffective;
  2597. /* readonly */
  2598. uint id;
  2599. /* readonly */
  2600. Node node;
  2601. /* readonly */
  2602. uint numAttributes;
  2603. ObjectAnimation objectAnimation;
  2604. RigidBody2D otherBody;
  2605. /* readonly */
  2606. RigidBody2D ownerBody;
  2607. /* readonly */
  2608. int refs;
  2609. /* readonly */
  2610. bool replicated;
  2611. bool temporary;
  2612. /* readonly */
  2613. StringHash type;
  2614. /* readonly */
  2615. String typeName;
  2616. /* readonly */
  2617. int weakRefs;
  2618. };
  2619. class ConstraintDistance2D
  2620. {
  2621. public:
  2622. // Methods:
  2623. void ApplyAttributes();
  2624. void DrawDebugGeometry(DebugRenderer, bool);
  2625. Variant GetAttribute(const String&) const;
  2626. ValueAnimation GetAttributeAnimation(const String&) const;
  2627. float GetAttributeAnimationSpeed(const String&) const;
  2628. float GetAttributeAnimationTime(const String&) const;
  2629. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2630. Variant GetAttributeDefault(const String&) const;
  2631. bool GetInterceptNetworkUpdate(const String&) const;
  2632. bool HasSubscribedToEvent(Object, const String&);
  2633. bool HasSubscribedToEvent(const String&);
  2634. bool Load(File);
  2635. bool Load(VectorBuffer&);
  2636. bool LoadJSON(const JSONValue&);
  2637. bool LoadXML(const XMLElement&);
  2638. void MarkNetworkUpdate() const;
  2639. void Remove();
  2640. void RemoveAttributeAnimation(const String&);
  2641. void RemoveInstanceDefault();
  2642. void RemoveObjectAnimation();
  2643. void ResetToDefault();
  2644. bool Save(File) const;
  2645. bool Save(VectorBuffer&) const;
  2646. bool SaveJSON(JSONValue&) const;
  2647. bool SaveXML(XMLElement&) const;
  2648. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2649. void SetAnimationTime(float);
  2650. bool SetAttribute(const String&, const Variant&);
  2651. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2652. void SetAttributeAnimationSpeed(const String&, float);
  2653. void SetAttributeAnimationTime(const String&, float);
  2654. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2655. void SetInterceptNetworkUpdate(const String&, bool);
  2656. // Properties:
  2657. bool animationEnabled;
  2658. /* readonly */
  2659. Array<Variant> attributeDefaults;
  2660. /* readonly */
  2661. Array<AttributeInfo> attributeInfos;
  2662. Array<Variant> attributes;
  2663. /* readonly */
  2664. String category;
  2665. bool collideConnected;
  2666. float dampingRatio;
  2667. bool enabled;
  2668. /* readonly */
  2669. bool enabledEffective;
  2670. float frequencyHz;
  2671. /* readonly */
  2672. uint id;
  2673. float length;
  2674. /* readonly */
  2675. Node node;
  2676. /* readonly */
  2677. uint numAttributes;
  2678. ObjectAnimation objectAnimation;
  2679. RigidBody2D otherBody;
  2680. Vector2 otherBodyAnchor;
  2681. /* readonly */
  2682. RigidBody2D ownerBody;
  2683. Vector2 ownerBodyAnchor;
  2684. /* readonly */
  2685. int refs;
  2686. /* readonly */
  2687. bool replicated;
  2688. bool temporary;
  2689. /* readonly */
  2690. StringHash type;
  2691. /* readonly */
  2692. String typeName;
  2693. /* readonly */
  2694. int weakRefs;
  2695. };
  2696. class ConstraintFriction2D
  2697. {
  2698. public:
  2699. // Methods:
  2700. void ApplyAttributes();
  2701. void DrawDebugGeometry(DebugRenderer, bool);
  2702. Variant GetAttribute(const String&) const;
  2703. ValueAnimation GetAttributeAnimation(const String&) const;
  2704. float GetAttributeAnimationSpeed(const String&) const;
  2705. float GetAttributeAnimationTime(const String&) const;
  2706. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2707. Variant GetAttributeDefault(const String&) const;
  2708. bool GetInterceptNetworkUpdate(const String&) const;
  2709. bool HasSubscribedToEvent(Object, const String&);
  2710. bool HasSubscribedToEvent(const String&);
  2711. bool Load(File);
  2712. bool Load(VectorBuffer&);
  2713. bool LoadJSON(const JSONValue&);
  2714. bool LoadXML(const XMLElement&);
  2715. void MarkNetworkUpdate() const;
  2716. void Remove();
  2717. void RemoveAttributeAnimation(const String&);
  2718. void RemoveInstanceDefault();
  2719. void RemoveObjectAnimation();
  2720. void ResetToDefault();
  2721. bool Save(File) const;
  2722. bool Save(VectorBuffer&) const;
  2723. bool SaveJSON(JSONValue&) const;
  2724. bool SaveXML(XMLElement&) const;
  2725. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2726. void SetAnimationTime(float);
  2727. bool SetAttribute(const String&, const Variant&);
  2728. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2729. void SetAttributeAnimationSpeed(const String&, float);
  2730. void SetAttributeAnimationTime(const String&, float);
  2731. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2732. void SetInterceptNetworkUpdate(const String&, bool);
  2733. // Properties:
  2734. Vector2 anchor;
  2735. bool animationEnabled;
  2736. /* readonly */
  2737. Array<Variant> attributeDefaults;
  2738. /* readonly */
  2739. Array<AttributeInfo> attributeInfos;
  2740. Array<Variant> attributes;
  2741. /* readonly */
  2742. String category;
  2743. bool collideConnected;
  2744. bool enabled;
  2745. /* readonly */
  2746. bool enabledEffective;
  2747. /* readonly */
  2748. uint id;
  2749. float maxForce;
  2750. float maxTorque;
  2751. /* readonly */
  2752. Node node;
  2753. /* readonly */
  2754. uint numAttributes;
  2755. ObjectAnimation objectAnimation;
  2756. RigidBody2D otherBody;
  2757. /* readonly */
  2758. RigidBody2D ownerBody;
  2759. /* readonly */
  2760. int refs;
  2761. /* readonly */
  2762. bool replicated;
  2763. bool temporary;
  2764. /* readonly */
  2765. StringHash type;
  2766. /* readonly */
  2767. String typeName;
  2768. /* readonly */
  2769. int weakRefs;
  2770. };
  2771. class ConstraintGear2D
  2772. {
  2773. public:
  2774. // Methods:
  2775. void ApplyAttributes();
  2776. void DrawDebugGeometry(DebugRenderer, bool);
  2777. Variant GetAttribute(const String&) const;
  2778. ValueAnimation GetAttributeAnimation(const String&) const;
  2779. float GetAttributeAnimationSpeed(const String&) const;
  2780. float GetAttributeAnimationTime(const String&) const;
  2781. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2782. Variant GetAttributeDefault(const String&) const;
  2783. bool GetInterceptNetworkUpdate(const String&) const;
  2784. bool HasSubscribedToEvent(Object, const String&);
  2785. bool HasSubscribedToEvent(const String&);
  2786. bool Load(File);
  2787. bool Load(VectorBuffer&);
  2788. bool LoadJSON(const JSONValue&);
  2789. bool LoadXML(const XMLElement&);
  2790. void MarkNetworkUpdate() const;
  2791. void Remove();
  2792. void RemoveAttributeAnimation(const String&);
  2793. void RemoveInstanceDefault();
  2794. void RemoveObjectAnimation();
  2795. void ResetToDefault();
  2796. bool Save(File) const;
  2797. bool Save(VectorBuffer&) const;
  2798. bool SaveJSON(JSONValue&) const;
  2799. bool SaveXML(XMLElement&) const;
  2800. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2801. void SetAnimationTime(float);
  2802. bool SetAttribute(const String&, const Variant&);
  2803. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2804. void SetAttributeAnimationSpeed(const String&, float);
  2805. void SetAttributeAnimationTime(const String&, float);
  2806. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2807. void SetInterceptNetworkUpdate(const String&, bool);
  2808. // Properties:
  2809. bool animationEnabled;
  2810. /* readonly */
  2811. Array<Variant> attributeDefaults;
  2812. /* readonly */
  2813. Array<AttributeInfo> attributeInfos;
  2814. Array<Variant> attributes;
  2815. /* readonly */
  2816. String category;
  2817. bool collideConnected;
  2818. bool enabled;
  2819. /* readonly */
  2820. bool enabledEffective;
  2821. /* readonly */
  2822. uint id;
  2823. /* readonly */
  2824. Node node;
  2825. /* readonly */
  2826. uint numAttributes;
  2827. ObjectAnimation objectAnimation;
  2828. RigidBody2D otherBody;
  2829. Constraint2D otherConstraint;
  2830. /* readonly */
  2831. RigidBody2D ownerBody;
  2832. Constraint2D ownerConstraint;
  2833. float ratio;
  2834. /* readonly */
  2835. int refs;
  2836. /* readonly */
  2837. bool replicated;
  2838. bool temporary;
  2839. /* readonly */
  2840. StringHash type;
  2841. /* readonly */
  2842. String typeName;
  2843. /* readonly */
  2844. int weakRefs;
  2845. };
  2846. class ConstraintMotor2D
  2847. {
  2848. public:
  2849. // Methods:
  2850. void ApplyAttributes();
  2851. void DrawDebugGeometry(DebugRenderer, bool);
  2852. Variant GetAttribute(const String&) const;
  2853. ValueAnimation GetAttributeAnimation(const String&) const;
  2854. float GetAttributeAnimationSpeed(const String&) const;
  2855. float GetAttributeAnimationTime(const String&) const;
  2856. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2857. Variant GetAttributeDefault(const String&) const;
  2858. bool GetInterceptNetworkUpdate(const String&) const;
  2859. bool HasSubscribedToEvent(Object, const String&);
  2860. bool HasSubscribedToEvent(const String&);
  2861. bool Load(File);
  2862. bool Load(VectorBuffer&);
  2863. bool LoadJSON(const JSONValue&);
  2864. bool LoadXML(const XMLElement&);
  2865. void MarkNetworkUpdate() const;
  2866. void Remove();
  2867. void RemoveAttributeAnimation(const String&);
  2868. void RemoveInstanceDefault();
  2869. void RemoveObjectAnimation();
  2870. void ResetToDefault();
  2871. bool Save(File) const;
  2872. bool Save(VectorBuffer&) const;
  2873. bool SaveJSON(JSONValue&) const;
  2874. bool SaveXML(XMLElement&) const;
  2875. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2876. void SetAnimationTime(float);
  2877. bool SetAttribute(const String&, const Variant&);
  2878. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2879. void SetAttributeAnimationSpeed(const String&, float);
  2880. void SetAttributeAnimationTime(const String&, float);
  2881. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2882. void SetInterceptNetworkUpdate(const String&, bool);
  2883. // Properties:
  2884. float angularOffset;
  2885. bool animationEnabled;
  2886. /* readonly */
  2887. Array<Variant> attributeDefaults;
  2888. /* readonly */
  2889. Array<AttributeInfo> attributeInfos;
  2890. Array<Variant> attributes;
  2891. /* readonly */
  2892. String category;
  2893. bool collideConnected;
  2894. float correctionFactor;
  2895. bool enabled;
  2896. /* readonly */
  2897. bool enabledEffective;
  2898. /* readonly */
  2899. uint id;
  2900. Vector2 linearOffset;
  2901. float maxForce;
  2902. float maxTorque;
  2903. /* readonly */
  2904. Node node;
  2905. /* readonly */
  2906. uint numAttributes;
  2907. ObjectAnimation objectAnimation;
  2908. RigidBody2D otherBody;
  2909. /* readonly */
  2910. RigidBody2D ownerBody;
  2911. /* readonly */
  2912. int refs;
  2913. /* readonly */
  2914. bool replicated;
  2915. bool temporary;
  2916. /* readonly */
  2917. StringHash type;
  2918. /* readonly */
  2919. String typeName;
  2920. /* readonly */
  2921. int weakRefs;
  2922. };
  2923. class ConstraintMouse2D
  2924. {
  2925. public:
  2926. // Methods:
  2927. void ApplyAttributes();
  2928. void DrawDebugGeometry(DebugRenderer, bool);
  2929. Variant GetAttribute(const String&) const;
  2930. ValueAnimation GetAttributeAnimation(const String&) const;
  2931. float GetAttributeAnimationSpeed(const String&) const;
  2932. float GetAttributeAnimationTime(const String&) const;
  2933. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2934. Variant GetAttributeDefault(const String&) const;
  2935. bool GetInterceptNetworkUpdate(const String&) const;
  2936. bool HasSubscribedToEvent(Object, const String&);
  2937. bool HasSubscribedToEvent(const String&);
  2938. bool Load(File);
  2939. bool Load(VectorBuffer&);
  2940. bool LoadJSON(const JSONValue&);
  2941. bool LoadXML(const XMLElement&);
  2942. void MarkNetworkUpdate() const;
  2943. void Remove();
  2944. void RemoveAttributeAnimation(const String&);
  2945. void RemoveInstanceDefault();
  2946. void RemoveObjectAnimation();
  2947. void ResetToDefault();
  2948. bool Save(File) const;
  2949. bool Save(VectorBuffer&) const;
  2950. bool SaveJSON(JSONValue&) const;
  2951. bool SaveXML(XMLElement&) const;
  2952. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2953. void SetAnimationTime(float);
  2954. bool SetAttribute(const String&, const Variant&);
  2955. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2956. void SetAttributeAnimationSpeed(const String&, float);
  2957. void SetAttributeAnimationTime(const String&, float);
  2958. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2959. void SetInterceptNetworkUpdate(const String&, bool);
  2960. // Properties:
  2961. bool animationEnabled;
  2962. /* readonly */
  2963. Array<Variant> attributeDefaults;
  2964. /* readonly */
  2965. Array<AttributeInfo> attributeInfos;
  2966. Array<Variant> attributes;
  2967. /* readonly */
  2968. String category;
  2969. bool collideConnected;
  2970. float dampingRatio;
  2971. bool enabled;
  2972. /* readonly */
  2973. bool enabledEffective;
  2974. float frequencyHz;
  2975. /* readonly */
  2976. uint id;
  2977. float maxForce;
  2978. /* readonly */
  2979. Node node;
  2980. /* readonly */
  2981. uint numAttributes;
  2982. ObjectAnimation objectAnimation;
  2983. RigidBody2D otherBody;
  2984. /* readonly */
  2985. RigidBody2D ownerBody;
  2986. /* readonly */
  2987. int refs;
  2988. /* readonly */
  2989. bool replicated;
  2990. Vector2 target;
  2991. bool temporary;
  2992. /* readonly */
  2993. StringHash type;
  2994. /* readonly */
  2995. String typeName;
  2996. /* readonly */
  2997. int weakRefs;
  2998. };
  2999. class ConstraintPrismatic2D
  3000. {
  3001. public:
  3002. // Methods:
  3003. void ApplyAttributes();
  3004. void DrawDebugGeometry(DebugRenderer, bool);
  3005. Variant GetAttribute(const String&) const;
  3006. ValueAnimation GetAttributeAnimation(const String&) const;
  3007. float GetAttributeAnimationSpeed(const String&) const;
  3008. float GetAttributeAnimationTime(const String&) const;
  3009. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3010. Variant GetAttributeDefault(const String&) const;
  3011. bool GetInterceptNetworkUpdate(const String&) const;
  3012. bool HasSubscribedToEvent(Object, const String&);
  3013. bool HasSubscribedToEvent(const String&);
  3014. bool Load(File);
  3015. bool Load(VectorBuffer&);
  3016. bool LoadJSON(const JSONValue&);
  3017. bool LoadXML(const XMLElement&);
  3018. void MarkNetworkUpdate() const;
  3019. void Remove();
  3020. void RemoveAttributeAnimation(const String&);
  3021. void RemoveInstanceDefault();
  3022. void RemoveObjectAnimation();
  3023. void ResetToDefault();
  3024. bool Save(File) const;
  3025. bool Save(VectorBuffer&) const;
  3026. bool SaveJSON(JSONValue&) const;
  3027. bool SaveXML(XMLElement&) const;
  3028. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3029. void SetAnimationTime(float);
  3030. bool SetAttribute(const String&, const Variant&);
  3031. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3032. void SetAttributeAnimationSpeed(const String&, float);
  3033. void SetAttributeAnimationTime(const String&, float);
  3034. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3035. void SetInterceptNetworkUpdate(const String&, bool);
  3036. // Properties:
  3037. Vector2 anchor;
  3038. bool animationEnabled;
  3039. /* readonly */
  3040. Array<Variant> attributeDefaults;
  3041. /* readonly */
  3042. Array<AttributeInfo> attributeInfos;
  3043. Array<Variant> attributes;
  3044. Vector2 axis;
  3045. /* readonly */
  3046. String category;
  3047. bool collideConnected;
  3048. bool enableLimit;
  3049. bool enableMotor;
  3050. bool enabled;
  3051. /* readonly */
  3052. bool enabledEffective;
  3053. /* readonly */
  3054. uint id;
  3055. float lowerTranslation;
  3056. float maxMotorForce;
  3057. float motorSpeed;
  3058. /* readonly */
  3059. Node node;
  3060. /* readonly */
  3061. uint numAttributes;
  3062. ObjectAnimation objectAnimation;
  3063. RigidBody2D otherBody;
  3064. /* readonly */
  3065. RigidBody2D ownerBody;
  3066. /* readonly */
  3067. int refs;
  3068. /* readonly */
  3069. bool replicated;
  3070. bool temporary;
  3071. /* readonly */
  3072. StringHash type;
  3073. /* readonly */
  3074. String typeName;
  3075. float upperTranslation;
  3076. /* readonly */
  3077. int weakRefs;
  3078. };
  3079. class ConstraintPulley2D
  3080. {
  3081. public:
  3082. // Methods:
  3083. void ApplyAttributes();
  3084. void DrawDebugGeometry(DebugRenderer, bool);
  3085. Variant GetAttribute(const String&) const;
  3086. ValueAnimation GetAttributeAnimation(const String&) const;
  3087. float GetAttributeAnimationSpeed(const String&) const;
  3088. float GetAttributeAnimationTime(const String&) const;
  3089. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3090. Variant GetAttributeDefault(const String&) const;
  3091. bool GetInterceptNetworkUpdate(const String&) const;
  3092. bool HasSubscribedToEvent(Object, const String&);
  3093. bool HasSubscribedToEvent(const String&);
  3094. bool Load(File);
  3095. bool Load(VectorBuffer&);
  3096. bool LoadJSON(const JSONValue&);
  3097. bool LoadXML(const XMLElement&);
  3098. void MarkNetworkUpdate() const;
  3099. void Remove();
  3100. void RemoveAttributeAnimation(const String&);
  3101. void RemoveInstanceDefault();
  3102. void RemoveObjectAnimation();
  3103. void ResetToDefault();
  3104. bool Save(File) const;
  3105. bool Save(VectorBuffer&) const;
  3106. bool SaveJSON(JSONValue&) const;
  3107. bool SaveXML(XMLElement&) const;
  3108. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3109. void SetAnimationTime(float);
  3110. bool SetAttribute(const String&, const Variant&);
  3111. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3112. void SetAttributeAnimationSpeed(const String&, float);
  3113. void SetAttributeAnimationTime(const String&, float);
  3114. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3115. void SetInterceptNetworkUpdate(const String&, bool);
  3116. // Properties:
  3117. bool animationEnabled;
  3118. /* readonly */
  3119. Array<Variant> attributeDefaults;
  3120. /* readonly */
  3121. Array<AttributeInfo> attributeInfos;
  3122. Array<Variant> attributes;
  3123. /* readonly */
  3124. String category;
  3125. bool collideConnected;
  3126. bool enabled;
  3127. /* readonly */
  3128. bool enabledEffective;
  3129. /* readonly */
  3130. uint id;
  3131. /* readonly */
  3132. Node node;
  3133. /* readonly */
  3134. uint numAttributes;
  3135. ObjectAnimation objectAnimation;
  3136. RigidBody2D otherBody;
  3137. Vector2 otherBodyAnchor;
  3138. Vector2 otherBodyGroundAnchor;
  3139. /* readonly */
  3140. RigidBody2D ownerBody;
  3141. Vector2 ownerBodyAnchor;
  3142. Vector2 ownerBodyGroundAnchor;
  3143. float ratio;
  3144. /* readonly */
  3145. int refs;
  3146. /* readonly */
  3147. bool replicated;
  3148. bool temporary;
  3149. /* readonly */
  3150. StringHash type;
  3151. /* readonly */
  3152. String typeName;
  3153. /* readonly */
  3154. int weakRefs;
  3155. };
  3156. class ConstraintRevolute2D
  3157. {
  3158. public:
  3159. // Methods:
  3160. void ApplyAttributes();
  3161. void DrawDebugGeometry(DebugRenderer, bool);
  3162. Variant GetAttribute(const String&) const;
  3163. ValueAnimation GetAttributeAnimation(const String&) const;
  3164. float GetAttributeAnimationSpeed(const String&) const;
  3165. float GetAttributeAnimationTime(const String&) const;
  3166. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3167. Variant GetAttributeDefault(const String&) const;
  3168. bool GetInterceptNetworkUpdate(const String&) const;
  3169. bool HasSubscribedToEvent(Object, const String&);
  3170. bool HasSubscribedToEvent(const String&);
  3171. bool Load(File);
  3172. bool Load(VectorBuffer&);
  3173. bool LoadJSON(const JSONValue&);
  3174. bool LoadXML(const XMLElement&);
  3175. void MarkNetworkUpdate() const;
  3176. void Remove();
  3177. void RemoveAttributeAnimation(const String&);
  3178. void RemoveInstanceDefault();
  3179. void RemoveObjectAnimation();
  3180. void ResetToDefault();
  3181. bool Save(File) const;
  3182. bool Save(VectorBuffer&) const;
  3183. bool SaveJSON(JSONValue&) const;
  3184. bool SaveXML(XMLElement&) const;
  3185. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3186. void SetAnimationTime(float);
  3187. bool SetAttribute(const String&, const Variant&);
  3188. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3189. void SetAttributeAnimationSpeed(const String&, float);
  3190. void SetAttributeAnimationTime(const String&, float);
  3191. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3192. void SetInterceptNetworkUpdate(const String&, bool);
  3193. // Properties:
  3194. Vector2 anchor;
  3195. bool animationEnabled;
  3196. /* readonly */
  3197. Array<Variant> attributeDefaults;
  3198. /* readonly */
  3199. Array<AttributeInfo> attributeInfos;
  3200. Array<Variant> attributes;
  3201. /* readonly */
  3202. String category;
  3203. bool collideConnected;
  3204. bool enableLimit;
  3205. bool enableMotor;
  3206. bool enabled;
  3207. /* readonly */
  3208. bool enabledEffective;
  3209. /* readonly */
  3210. uint id;
  3211. float lowerAngle;
  3212. float maxMotorTorque;
  3213. float motorSpeed;
  3214. /* readonly */
  3215. Node node;
  3216. /* readonly */
  3217. uint numAttributes;
  3218. ObjectAnimation objectAnimation;
  3219. RigidBody2D otherBody;
  3220. /* readonly */
  3221. RigidBody2D ownerBody;
  3222. /* readonly */
  3223. int refs;
  3224. /* readonly */
  3225. bool replicated;
  3226. bool temporary;
  3227. /* readonly */
  3228. StringHash type;
  3229. /* readonly */
  3230. String typeName;
  3231. float upperAngle;
  3232. /* readonly */
  3233. int weakRefs;
  3234. };
  3235. class ConstraintRope2D
  3236. {
  3237. public:
  3238. // Methods:
  3239. void ApplyAttributes();
  3240. void DrawDebugGeometry(DebugRenderer, bool);
  3241. Variant GetAttribute(const String&) const;
  3242. ValueAnimation GetAttributeAnimation(const String&) const;
  3243. float GetAttributeAnimationSpeed(const String&) const;
  3244. float GetAttributeAnimationTime(const String&) const;
  3245. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3246. Variant GetAttributeDefault(const String&) const;
  3247. bool GetInterceptNetworkUpdate(const String&) const;
  3248. bool HasSubscribedToEvent(Object, const String&);
  3249. bool HasSubscribedToEvent(const String&);
  3250. bool Load(File);
  3251. bool Load(VectorBuffer&);
  3252. bool LoadJSON(const JSONValue&);
  3253. bool LoadXML(const XMLElement&);
  3254. void MarkNetworkUpdate() const;
  3255. void Remove();
  3256. void RemoveAttributeAnimation(const String&);
  3257. void RemoveInstanceDefault();
  3258. void RemoveObjectAnimation();
  3259. void ResetToDefault();
  3260. bool Save(File) const;
  3261. bool Save(VectorBuffer&) const;
  3262. bool SaveJSON(JSONValue&) const;
  3263. bool SaveXML(XMLElement&) const;
  3264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3265. void SetAnimationTime(float);
  3266. bool SetAttribute(const String&, const Variant&);
  3267. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3268. void SetAttributeAnimationSpeed(const String&, float);
  3269. void SetAttributeAnimationTime(const String&, float);
  3270. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3271. void SetInterceptNetworkUpdate(const String&, bool);
  3272. // Properties:
  3273. bool animationEnabled;
  3274. /* readonly */
  3275. Array<Variant> attributeDefaults;
  3276. /* readonly */
  3277. Array<AttributeInfo> attributeInfos;
  3278. Array<Variant> attributes;
  3279. /* readonly */
  3280. String category;
  3281. bool collideConnected;
  3282. bool enabled;
  3283. /* readonly */
  3284. bool enabledEffective;
  3285. /* readonly */
  3286. uint id;
  3287. float maxLength;
  3288. /* readonly */
  3289. Node node;
  3290. /* readonly */
  3291. uint numAttributes;
  3292. ObjectAnimation objectAnimation;
  3293. RigidBody2D otherBody;
  3294. Vector2 otherBodyAnchor;
  3295. /* readonly */
  3296. RigidBody2D ownerBody;
  3297. Vector2 ownerBodyAnchor;
  3298. /* readonly */
  3299. int refs;
  3300. /* readonly */
  3301. bool replicated;
  3302. bool temporary;
  3303. /* readonly */
  3304. StringHash type;
  3305. /* readonly */
  3306. String typeName;
  3307. /* readonly */
  3308. int weakRefs;
  3309. };
  3310. class ConstraintWeld2D
  3311. {
  3312. public:
  3313. // Methods:
  3314. void ApplyAttributes();
  3315. void DrawDebugGeometry(DebugRenderer, bool);
  3316. Variant GetAttribute(const String&) const;
  3317. ValueAnimation GetAttributeAnimation(const String&) const;
  3318. float GetAttributeAnimationSpeed(const String&) const;
  3319. float GetAttributeAnimationTime(const String&) const;
  3320. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3321. Variant GetAttributeDefault(const String&) const;
  3322. bool GetInterceptNetworkUpdate(const String&) const;
  3323. bool HasSubscribedToEvent(Object, const String&);
  3324. bool HasSubscribedToEvent(const String&);
  3325. bool Load(File);
  3326. bool Load(VectorBuffer&);
  3327. bool LoadJSON(const JSONValue&);
  3328. bool LoadXML(const XMLElement&);
  3329. void MarkNetworkUpdate() const;
  3330. void Remove();
  3331. void RemoveAttributeAnimation(const String&);
  3332. void RemoveInstanceDefault();
  3333. void RemoveObjectAnimation();
  3334. void ResetToDefault();
  3335. bool Save(File) const;
  3336. bool Save(VectorBuffer&) const;
  3337. bool SaveJSON(JSONValue&) const;
  3338. bool SaveXML(XMLElement&) const;
  3339. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3340. void SetAnimationTime(float);
  3341. bool SetAttribute(const String&, const Variant&);
  3342. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3343. void SetAttributeAnimationSpeed(const String&, float);
  3344. void SetAttributeAnimationTime(const String&, float);
  3345. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3346. void SetInterceptNetworkUpdate(const String&, bool);
  3347. // Properties:
  3348. Vector2 anchor;
  3349. bool animationEnabled;
  3350. /* readonly */
  3351. Array<Variant> attributeDefaults;
  3352. /* readonly */
  3353. Array<AttributeInfo> attributeInfos;
  3354. Array<Variant> attributes;
  3355. /* readonly */
  3356. String category;
  3357. bool collideConnected;
  3358. float dampingRatio;
  3359. bool enabled;
  3360. /* readonly */
  3361. bool enabledEffective;
  3362. float frequencyHz;
  3363. /* readonly */
  3364. uint id;
  3365. /* readonly */
  3366. Node node;
  3367. /* readonly */
  3368. uint numAttributes;
  3369. ObjectAnimation objectAnimation;
  3370. RigidBody2D otherBody;
  3371. /* readonly */
  3372. RigidBody2D ownerBody;
  3373. /* readonly */
  3374. int refs;
  3375. /* readonly */
  3376. bool replicated;
  3377. bool temporary;
  3378. /* readonly */
  3379. StringHash type;
  3380. /* readonly */
  3381. String typeName;
  3382. /* readonly */
  3383. int weakRefs;
  3384. };
  3385. class ConstraintWheel2D
  3386. {
  3387. public:
  3388. // Methods:
  3389. void ApplyAttributes();
  3390. void DrawDebugGeometry(DebugRenderer, bool);
  3391. Variant GetAttribute(const String&) const;
  3392. ValueAnimation GetAttributeAnimation(const String&) const;
  3393. float GetAttributeAnimationSpeed(const String&) const;
  3394. float GetAttributeAnimationTime(const String&) const;
  3395. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3396. Variant GetAttributeDefault(const String&) const;
  3397. bool GetInterceptNetworkUpdate(const String&) const;
  3398. bool HasSubscribedToEvent(Object, const String&);
  3399. bool HasSubscribedToEvent(const String&);
  3400. bool Load(File);
  3401. bool Load(VectorBuffer&);
  3402. bool LoadJSON(const JSONValue&);
  3403. bool LoadXML(const XMLElement&);
  3404. void MarkNetworkUpdate() const;
  3405. void Remove();
  3406. void RemoveAttributeAnimation(const String&);
  3407. void RemoveInstanceDefault();
  3408. void RemoveObjectAnimation();
  3409. void ResetToDefault();
  3410. bool Save(File) const;
  3411. bool Save(VectorBuffer&) const;
  3412. bool SaveJSON(JSONValue&) const;
  3413. bool SaveXML(XMLElement&) const;
  3414. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3415. void SetAnimationTime(float);
  3416. bool SetAttribute(const String&, const Variant&);
  3417. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3418. void SetAttributeAnimationSpeed(const String&, float);
  3419. void SetAttributeAnimationTime(const String&, float);
  3420. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3421. void SetInterceptNetworkUpdate(const String&, bool);
  3422. // Properties:
  3423. Vector2 anchor;
  3424. bool animationEnabled;
  3425. /* readonly */
  3426. Array<Variant> attributeDefaults;
  3427. /* readonly */
  3428. Array<AttributeInfo> attributeInfos;
  3429. Array<Variant> attributes;
  3430. Vector2 axis;
  3431. /* readonly */
  3432. String category;
  3433. bool collideConnected;
  3434. float dampingRatio;
  3435. bool enableMotor;
  3436. bool enabled;
  3437. /* readonly */
  3438. bool enabledEffective;
  3439. float frequencyHz;
  3440. /* readonly */
  3441. uint id;
  3442. float maxMotorTorque;
  3443. float motorSpeed;
  3444. /* readonly */
  3445. Node node;
  3446. /* readonly */
  3447. uint numAttributes;
  3448. ObjectAnimation objectAnimation;
  3449. RigidBody2D otherBody;
  3450. /* readonly */
  3451. RigidBody2D ownerBody;
  3452. /* readonly */
  3453. int refs;
  3454. /* readonly */
  3455. bool replicated;
  3456. bool temporary;
  3457. /* readonly */
  3458. StringHash type;
  3459. /* readonly */
  3460. String typeName;
  3461. /* readonly */
  3462. int weakRefs;
  3463. };
  3464. class Controls
  3465. {
  3466. public:
  3467. ~Controls();
  3468. Controls();
  3469. Controls(const Controls&in);
  3470. // Methods:
  3471. bool IsDown(uint) const;
  3472. bool IsPressed(uint, const Controls&) const;
  3473. void Reset();
  3474. void Set(uint, bool);
  3475. // Properties:
  3476. uint buttons;
  3477. VariantMap extraData;
  3478. float pitch;
  3479. float yaw;
  3480. };
  3481. class CrowdAgent
  3482. {
  3483. public:
  3484. // Methods:
  3485. void ApplyAttributes();
  3486. void DrawDebugGeometry(DebugRenderer, bool);
  3487. void DrawDebugGeometry(bool);
  3488. Variant GetAttribute(const String&) const;
  3489. ValueAnimation GetAttributeAnimation(const String&) const;
  3490. float GetAttributeAnimationSpeed(const String&) const;
  3491. float GetAttributeAnimationTime(const String&) const;
  3492. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3493. Variant GetAttributeDefault(const String&) const;
  3494. bool GetInterceptNetworkUpdate(const String&) const;
  3495. bool HasSubscribedToEvent(Object, const String&);
  3496. bool HasSubscribedToEvent(const String&);
  3497. bool Load(File);
  3498. bool Load(VectorBuffer&);
  3499. bool LoadJSON(const JSONValue&);
  3500. bool LoadXML(const XMLElement&);
  3501. void MarkNetworkUpdate() const;
  3502. void Remove();
  3503. void RemoveAttributeAnimation(const String&);
  3504. void RemoveInstanceDefault();
  3505. void RemoveObjectAnimation();
  3506. void ResetTarget();
  3507. void ResetToDefault();
  3508. bool Save(File) const;
  3509. bool Save(VectorBuffer&) const;
  3510. bool SaveJSON(JSONValue&) const;
  3511. bool SaveXML(XMLElement&) const;
  3512. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3513. void SetAnimationTime(float);
  3514. bool SetAttribute(const String&, const Variant&);
  3515. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3516. void SetAttributeAnimationSpeed(const String&, float);
  3517. void SetAttributeAnimationTime(const String&, float);
  3518. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3519. void SetInterceptNetworkUpdate(const String&, bool);
  3520. // Properties:
  3521. /* readonly */
  3522. Vector3 actualVelocity;
  3523. /* readonly */
  3524. CrowdAgentState agentState;
  3525. bool animationEnabled;
  3526. /* readonly */
  3527. bool arrived;
  3528. /* readonly */
  3529. Array<Variant> attributeDefaults;
  3530. /* readonly */
  3531. Array<AttributeInfo> attributeInfos;
  3532. Array<Variant> attributes;
  3533. /* readonly */
  3534. String category;
  3535. /* readonly */
  3536. Vector3 desiredVelocity;
  3537. bool enabled;
  3538. /* readonly */
  3539. bool enabledEffective;
  3540. float height;
  3541. /* readonly */
  3542. uint id;
  3543. /* readonly */
  3544. bool inCrowd;
  3545. float maxAccel;
  3546. float maxSpeed;
  3547. NavigationPushiness navigationPushiness;
  3548. NavigationQuality navigationQuality;
  3549. /* readonly */
  3550. Node node;
  3551. /* readonly */
  3552. uint numAttributes;
  3553. ObjectAnimation objectAnimation;
  3554. uint obstacleAvoidanceType;
  3555. /* readonly */
  3556. Vector3 position;
  3557. uint queryFilterType;
  3558. float radius;
  3559. /* readonly */
  3560. int refs;
  3561. /* readonly */
  3562. bool replicated;
  3563. /* readonly */
  3564. bool requestedTarget;
  3565. /* readonly */
  3566. CrowdAgentRequestedTarget requestedTargetType;
  3567. Vector3 targetPosition;
  3568. /* readonly */
  3569. CrowdAgentTargetState targetState;
  3570. Vector3 targetVelocity;
  3571. bool temporary;
  3572. /* readonly */
  3573. StringHash type;
  3574. /* readonly */
  3575. String typeName;
  3576. bool updateNodePosition;
  3577. /* readonly */
  3578. int weakRefs;
  3579. };
  3580. class CrowdManager
  3581. {
  3582. public:
  3583. // Methods:
  3584. void ApplyAttributes();
  3585. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3586. void DrawDebugGeometry(DebugRenderer, bool);
  3587. void DrawDebugGeometry(bool);
  3588. Vector3 FindNearestPoint(const Vector3&, int);
  3589. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3590. float GetAreaCost(uint, uint);
  3591. Variant GetAttribute(const String&) const;
  3592. ValueAnimation GetAttributeAnimation(const String&) const;
  3593. float GetAttributeAnimationSpeed(const String&) const;
  3594. float GetAttributeAnimationTime(const String&) const;
  3595. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3596. Variant GetAttributeDefault(const String&) const;
  3597. float GetDistanceToWall(const Vector3&, float, int);
  3598. uint16 GetExcludeFlags(uint);
  3599. uint16 GetIncludeFlags(uint);
  3600. bool GetInterceptNetworkUpdate(const String&) const;
  3601. Vector3 GetRandomPoint(int);
  3602. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3603. bool HasSubscribedToEvent(Object, const String&);
  3604. bool HasSubscribedToEvent(const String&);
  3605. bool Load(File);
  3606. bool Load(VectorBuffer&);
  3607. bool LoadJSON(const JSONValue&);
  3608. bool LoadXML(const XMLElement&);
  3609. void MarkNetworkUpdate() const;
  3610. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3611. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3612. void Remove();
  3613. void RemoveAttributeAnimation(const String&);
  3614. void RemoveInstanceDefault();
  3615. void RemoveObjectAnimation();
  3616. void ResetCrowdTarget(Node = null);
  3617. void ResetToDefault();
  3618. bool Save(File) const;
  3619. bool Save(VectorBuffer&) const;
  3620. bool SaveJSON(JSONValue&) const;
  3621. bool SaveXML(XMLElement&) const;
  3622. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3623. void SetAnimationTime(float);
  3624. void SetAreaCost(uint, uint, float);
  3625. bool SetAttribute(const String&, const Variant&);
  3626. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3627. void SetAttributeAnimationSpeed(const String&, float);
  3628. void SetAttributeAnimationTime(const String&, float);
  3629. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3630. void SetCrowdTarget(const Vector3&, Node = null);
  3631. void SetCrowdVelocity(const Vector3&, Node = null);
  3632. void SetExcludeFlags(uint, uint16);
  3633. void SetIncludeFlags(uint, uint16);
  3634. void SetInterceptNetworkUpdate(const String&, bool);
  3635. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3636. // Properties:
  3637. bool animationEnabled;
  3638. /* readonly */
  3639. Array<Variant> attributeDefaults;
  3640. /* readonly */
  3641. Array<AttributeInfo> attributeInfos;
  3642. Array<Variant> attributes;
  3643. /* readonly */
  3644. String category;
  3645. bool enabled;
  3646. /* readonly */
  3647. bool enabledEffective;
  3648. /* readonly */
  3649. uint id;
  3650. float maxAgentRadius;
  3651. int maxAgents;
  3652. NavigationMesh navMesh;
  3653. /* readonly */
  3654. Node node;
  3655. /* readonly */
  3656. Array<uint> numAreas;
  3657. /* readonly */
  3658. uint numAttributes;
  3659. /* readonly */
  3660. uint numObstacleAvoidanceTypes;
  3661. /* readonly */
  3662. uint numQueryFilterTypes;
  3663. ObjectAnimation objectAnimation;
  3664. /* readonly */
  3665. int refs;
  3666. /* readonly */
  3667. bool replicated;
  3668. bool temporary;
  3669. /* readonly */
  3670. StringHash type;
  3671. /* readonly */
  3672. String typeName;
  3673. /* readonly */
  3674. int weakRefs;
  3675. };
  3676. class CrowdObstacleAvoidanceParams
  3677. {
  3678. public:
  3679. // Properties:
  3680. uint8 adaptiveDepth;
  3681. uint8 adaptiveDivs;
  3682. uint8 adaptiveRings;
  3683. uint8 gridSize;
  3684. float horizTime;
  3685. float velBias;
  3686. float weightCurVel;
  3687. float weightDesVel;
  3688. float weightSide;
  3689. float weightToi;
  3690. };
  3691. class Cursor
  3692. {
  3693. public:
  3694. Cursor();
  3695. Cursor(const String&in);
  3696. // Methods:
  3697. void AddChild(UIElement);
  3698. void AddTag(const String&);
  3699. void AddTags(const String&, int8 = ';');
  3700. void ApplyAttributes();
  3701. void BringToFront();
  3702. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3703. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3704. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3705. void DisableLayoutUpdate();
  3706. IntVector2 ElementToScreen(const IntVector2&);
  3707. void EnableLayoutUpdate();
  3708. uint FindChild(UIElement) const;
  3709. Variant GetAttribute(const String&) const;
  3710. ValueAnimation GetAttributeAnimation(const String&) const;
  3711. float GetAttributeAnimationSpeed(const String&) const;
  3712. float GetAttributeAnimationTime(const String&) const;
  3713. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3714. Variant GetAttributeDefault(const String&) const;
  3715. UIElement GetChild(const String&, bool = false) const;
  3716. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3717. Array<UIElement> GetChildren(bool = false) const;
  3718. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3719. UIElement GetElementEventSender() const;
  3720. bool GetInterceptNetworkUpdate(const String&) const;
  3721. uint GetNumChildren(bool) const;
  3722. bool HasSubscribedToEvent(Object, const String&);
  3723. bool HasSubscribedToEvent(const String&);
  3724. bool HasTag(const String&) const;
  3725. void InsertChild(uint, UIElement);
  3726. bool IsChildOf(UIElement) const;
  3727. bool IsInside(IntVector2, bool);
  3728. bool IsInsideCombined(IntVector2, bool);
  3729. bool Load(File);
  3730. bool Load(VectorBuffer&);
  3731. UIElement LoadChildXML(XMLFile, XMLFile);
  3732. UIElement LoadChildXML(const XMLElement&, XMLFile);
  3733. bool LoadJSON(const JSONValue&);
  3734. bool LoadXML(File);
  3735. bool LoadXML(VectorBuffer&);
  3736. bool LoadXML(XMLFile, XMLFile);
  3737. bool LoadXML(const XMLElement&, XMLFile);
  3738. bool LoadXML(const XMLElement&);
  3739. void MarkNetworkUpdate() const;
  3740. void Remove();
  3741. void RemoveAllChildren();
  3742. void RemoveAllTags();
  3743. void RemoveAttributeAnimation(const String&);
  3744. void RemoveChild(UIElement, uint = 0);
  3745. void RemoveChild(uint);
  3746. void RemoveInstanceDefault();
  3747. void RemoveObjectAnimation();
  3748. bool RemoveTag(const String&);
  3749. void ResetDeepEnabled();
  3750. void ResetToDefault();
  3751. bool Save(File) const;
  3752. bool Save(VectorBuffer&) const;
  3753. bool SaveJSON(JSONValue&) const;
  3754. bool SaveXML(File, const String& = "\t");
  3755. bool SaveXML(VectorBuffer&, const String& = "\t");
  3756. bool SaveXML(XMLElement&) const;
  3757. IntVector2 ScreenToElement(const IntVector2&);
  3758. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3759. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3760. void SetAnimationTime(float);
  3761. bool SetAttribute(const String&, const Variant&);
  3762. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3763. void SetAttributeAnimationSpeed(const String&, float);
  3764. void SetAttributeAnimationTime(const String&, float);
  3765. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3766. void SetDeepEnabled(bool);
  3767. void SetDisabledOffset(int, int);
  3768. void SetEnabledRecursive(bool);
  3769. void SetFixedHeight(int);
  3770. void SetFixedSize(int, int);
  3771. void SetFixedWidth(int);
  3772. void SetFullImageRect();
  3773. void SetHoverOffset(int, int);
  3774. void SetInterceptNetworkUpdate(const String&, bool);
  3775. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3776. void SetMaxAnchor(float, float);
  3777. void SetMaxSize(int, int);
  3778. void SetMinAnchor(float, float);
  3779. void SetMinSize(int, int);
  3780. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3781. void SetPivot(float, float);
  3782. void SetPosition(int, int);
  3783. void SetShape(CursorShape);
  3784. void SetShape(const String&);
  3785. void SetSize(int, int);
  3786. bool SetStyle(const String&, XMLFile = null);
  3787. bool SetStyle(const XMLElement&);
  3788. bool SetStyleAuto(XMLFile = null);
  3789. void UpdateLayout();
  3790. const Variant& GetVar(const StringHash&);
  3791. // Properties:
  3792. bool animationEnabled;
  3793. /* readonly */
  3794. Array<Variant> attributeDefaults;
  3795. /* readonly */
  3796. Array<AttributeInfo> attributeInfos;
  3797. Array<Variant> attributes;
  3798. BlendMode blendMode;
  3799. IntRect border;
  3800. bool bringToBack;
  3801. bool bringToFront;
  3802. /* readonly */
  3803. String category;
  3804. /* readonly */
  3805. IntVector2 childOffset;
  3806. /* readonly */
  3807. Array<UIElement> children;
  3808. IntRect clipBorder;
  3809. bool clipChildren;
  3810. /* writeonly */
  3811. Color color;
  3812. /* readonly */
  3813. bool colorGradient;
  3814. Array<Color> colors;
  3815. /* readonly */
  3816. IntRect combinedScreenRect;
  3817. XMLFile defaultStyle;
  3818. /* readonly */
  3819. float derivedOpacity;
  3820. IntVector2 disabledOffset;
  3821. /* readonly */
  3822. uint dragButtonCombo;
  3823. /* readonly */
  3824. int dragButtonCount;
  3825. uint dragDropMode;
  3826. bool editable;
  3827. bool elementEventSender;
  3828. bool enableAnchor;
  3829. bool enabled;
  3830. /* readonly */
  3831. bool enabledSelf;
  3832. /* readonly */
  3833. bool fixedHeight;
  3834. /* readonly */
  3835. bool fixedSize;
  3836. /* readonly */
  3837. bool fixedWidth;
  3838. bool focus;
  3839. FocusMode focusMode;
  3840. int height;
  3841. HorizontalAlignment horizontalAlignment;
  3842. IntVector2 hoverOffset;
  3843. /* readonly */
  3844. bool hovering;
  3845. IntRect imageBorder;
  3846. IntRect imageRect;
  3847. int indent;
  3848. int indentSpacing;
  3849. /* readonly */
  3850. int indentWidth;
  3851. bool internal;
  3852. IntRect layoutBorder;
  3853. Vector2 layoutFlexScale;
  3854. LayoutMode layoutMode;
  3855. int layoutSpacing;
  3856. Material material;
  3857. Vector2 maxAnchor;
  3858. int maxHeight;
  3859. IntVector2 maxOffset;
  3860. IntVector2 maxSize;
  3861. int maxWidth;
  3862. Vector2 minAnchor;
  3863. int minHeight;
  3864. IntVector2 minOffset;
  3865. IntVector2 minSize;
  3866. int minWidth;
  3867. String name;
  3868. /* readonly */
  3869. uint numAllChildren;
  3870. /* readonly */
  3871. uint numAttributes;
  3872. /* readonly */
  3873. uint numChildren;
  3874. ObjectAnimation objectAnimation;
  3875. float opacity;
  3876. UIElement parent;
  3877. Vector2 pivot;
  3878. IntVector2 position;
  3879. int priority;
  3880. /* readonly */
  3881. int refs;
  3882. /* readonly */
  3883. UIElement root;
  3884. /* readonly */
  3885. IntVector2 screenPosition;
  3886. bool selected;
  3887. String shape;
  3888. IntVector2 size;
  3889. bool sortChildren;
  3890. String style;
  3891. /* readonly */
  3892. Array<String> tags;
  3893. bool temporary;
  3894. Texture texture;
  3895. bool tiled;
  3896. TraversalMode traversalMode;
  3897. /* readonly */
  3898. StringHash type;
  3899. /* readonly */
  3900. String typeName;
  3901. bool useDerivedOpacity;
  3902. bool useSystemShapes;
  3903. /* readonly */
  3904. VariantMap vars;
  3905. VerticalAlignment verticalAlignment;
  3906. bool visible;
  3907. /* readonly */
  3908. bool visibleEffective;
  3909. /* readonly */
  3910. int weakRefs;
  3911. int width;
  3912. };
  3913. class CustomGeometry
  3914. {
  3915. public:
  3916. // Methods:
  3917. void ApplyAttributes();
  3918. void BeginGeometry(uint, PrimitiveType);
  3919. void Clear();
  3920. void Commit();
  3921. void DefineColor(const Color&);
  3922. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3923. void DefineNormal(const Vector3&);
  3924. void DefineTangent(const Vector4&);
  3925. void DefineTexCoord(const Vector2&);
  3926. void DefineVertex(const Vector3&);
  3927. void DrawDebugGeometry(DebugRenderer, bool);
  3928. Variant GetAttribute(const String&) const;
  3929. ValueAnimation GetAttributeAnimation(const String&) const;
  3930. float GetAttributeAnimationSpeed(const String&) const;
  3931. float GetAttributeAnimationTime(const String&) const;
  3932. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3933. Variant GetAttributeDefault(const String&) const;
  3934. bool GetInterceptNetworkUpdate(const String&) const;
  3935. CustomGeometryVertex GetVertex(uint, uint);
  3936. bool HasSubscribedToEvent(Object, const String&);
  3937. bool HasSubscribedToEvent(const String&);
  3938. bool IsInView(Camera) const;
  3939. bool Load(File);
  3940. bool Load(VectorBuffer&);
  3941. bool LoadJSON(const JSONValue&);
  3942. bool LoadXML(const XMLElement&);
  3943. void MarkNetworkUpdate() const;
  3944. void Remove();
  3945. void RemoveAttributeAnimation(const String&);
  3946. void RemoveInstanceDefault();
  3947. void RemoveObjectAnimation();
  3948. void ResetToDefault();
  3949. bool Save(File) const;
  3950. bool Save(VectorBuffer&) const;
  3951. bool SaveJSON(JSONValue&) const;
  3952. bool SaveXML(XMLElement&) const;
  3953. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3954. void SetAnimationTime(float);
  3955. bool SetAttribute(const String&, const Variant&);
  3956. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3957. void SetAttributeAnimationSpeed(const String&, float);
  3958. void SetAttributeAnimationTime(const String&, float);
  3959. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3960. void SetInterceptNetworkUpdate(const String&, bool);
  3961. // Properties:
  3962. bool animationEnabled;
  3963. /* readonly */
  3964. Array<Variant> attributeDefaults;
  3965. /* readonly */
  3966. Array<AttributeInfo> attributeInfos;
  3967. Array<Variant> attributes;
  3968. /* readonly */
  3969. BoundingBox boundingBox;
  3970. bool castShadows;
  3971. /* readonly */
  3972. String category;
  3973. float drawDistance;
  3974. bool dynamic;
  3975. bool enabled;
  3976. /* readonly */
  3977. bool enabledEffective;
  3978. /* readonly */
  3979. uint id;
  3980. /* readonly */
  3981. bool inView;
  3982. uint lightMask;
  3983. float lodBias;
  3984. /* writeonly */
  3985. Material material;
  3986. Array<Material> materials;
  3987. uint maxLights;
  3988. /* readonly */
  3989. Node node;
  3990. /* readonly */
  3991. uint numAttributes;
  3992. uint numGeometries;
  3993. /* readonly */
  3994. Array<uint> numVertices;
  3995. ObjectAnimation objectAnimation;
  3996. bool occludee;
  3997. bool occluder;
  3998. /* readonly */
  3999. int refs;
  4000. /* readonly */
  4001. bool replicated;
  4002. float shadowDistance;
  4003. uint shadowMask;
  4004. bool temporary;
  4005. /* readonly */
  4006. StringHash type;
  4007. /* readonly */
  4008. String typeName;
  4009. uint viewMask;
  4010. /* readonly */
  4011. int weakRefs;
  4012. /* readonly */
  4013. BoundingBox worldBoundingBox;
  4014. /* readonly */
  4015. Zone zone;
  4016. uint zoneMask;
  4017. };
  4018. class CustomGeometryVertex
  4019. {
  4020. public:
  4021. // Properties:
  4022. uint color;
  4023. Vector3 normal;
  4024. Vector3 position;
  4025. Vector4 tangent;
  4026. Vector2 texCoord;
  4027. };
  4028. class Database
  4029. {
  4030. public:
  4031. // Methods:
  4032. DbConnection Connect(const String&);
  4033. void Disconnect(DbConnection);
  4034. bool HasSubscribedToEvent(Object, const String&);
  4035. bool HasSubscribedToEvent(const String&);
  4036. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4037. // Properties:
  4038. /* readonly */
  4039. String category;
  4040. uint poolSize;
  4041. /* readonly */
  4042. bool pooling;
  4043. /* readonly */
  4044. int refs;
  4045. /* readonly */
  4046. StringHash type;
  4047. /* readonly */
  4048. String typeName;
  4049. /* readonly */
  4050. int weakRefs;
  4051. };
  4052. class DbConnection
  4053. {
  4054. public:
  4055. // Methods:
  4056. DbResult Execute(const String&, bool = false);
  4057. bool HasSubscribedToEvent(Object, const String&);
  4058. bool HasSubscribedToEvent(const String&);
  4059. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4060. // Properties:
  4061. /* readonly */
  4062. String category;
  4063. /* readonly */
  4064. bool connected;
  4065. /* readonly */
  4066. String connectionString;
  4067. /* readonly */
  4068. int refs;
  4069. /* readonly */
  4070. StringHash type;
  4071. /* readonly */
  4072. String typeName;
  4073. /* readonly */
  4074. int weakRefs;
  4075. };
  4076. class DbResult
  4077. {
  4078. public:
  4079. ~DbResult();
  4080. DbResult();
  4081. DbResult(const DbResult&in);
  4082. // Properties:
  4083. /* readonly */
  4084. Array<String> columns;
  4085. /* readonly */
  4086. int64 numAffectedRows;
  4087. /* readonly */
  4088. uint numColumns;
  4089. /* readonly */
  4090. uint numRows;
  4091. /* readonly */
  4092. Array<Array<Variant>> row;
  4093. };
  4094. class DebugHud
  4095. {
  4096. public:
  4097. // Methods:
  4098. void ClearAppStats();
  4099. bool HasSubscribedToEvent(Object, const String&);
  4100. bool HasSubscribedToEvent(const String&);
  4101. void ResetAppStats(const String&);
  4102. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4103. void SetAppStats(const String&, const String&);
  4104. void SetAppStats(const String&, const Variant&);
  4105. void Toggle(uint);
  4106. void ToggleAll();
  4107. void Update();
  4108. // Properties:
  4109. /* readonly */
  4110. String category;
  4111. XMLFile defaultStyle;
  4112. /* readonly */
  4113. Text memoryText;
  4114. uint mode;
  4115. /* readonly */
  4116. Text modeText;
  4117. float profilerInterval;
  4118. uint profilerMaxDepth;
  4119. /* readonly */
  4120. Text profilerText;
  4121. /* readonly */
  4122. int refs;
  4123. /* readonly */
  4124. Text statsText;
  4125. /* readonly */
  4126. StringHash type;
  4127. /* readonly */
  4128. String typeName;
  4129. bool useRendererStats;
  4130. /* readonly */
  4131. int weakRefs;
  4132. };
  4133. class DebugRenderer
  4134. {
  4135. public:
  4136. // Methods:
  4137. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4138. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4139. void AddCross(const Vector3&, float, const Color&, bool = true);
  4140. void AddFrustum(const Frustum&, const Color&, bool = true);
  4141. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4142. void AddNode(Node, float = 1.0, bool = true);
  4143. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4144. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4145. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4146. void AddSkeleton(Skeleton, const Color&, bool = true);
  4147. void AddSphere(const Sphere&, const Color&, bool = true);
  4148. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  4149. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4150. void ApplyAttributes();
  4151. void DrawDebugGeometry(DebugRenderer, bool);
  4152. Variant GetAttribute(const String&) const;
  4153. ValueAnimation GetAttributeAnimation(const String&) const;
  4154. float GetAttributeAnimationSpeed(const String&) const;
  4155. float GetAttributeAnimationTime(const String&) const;
  4156. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4157. Variant GetAttributeDefault(const String&) const;
  4158. bool GetInterceptNetworkUpdate(const String&) const;
  4159. bool HasSubscribedToEvent(Object, const String&);
  4160. bool HasSubscribedToEvent(const String&);
  4161. bool Load(File);
  4162. bool Load(VectorBuffer&);
  4163. bool LoadJSON(const JSONValue&);
  4164. bool LoadXML(const XMLElement&);
  4165. void MarkNetworkUpdate() const;
  4166. void Remove();
  4167. void RemoveAttributeAnimation(const String&);
  4168. void RemoveInstanceDefault();
  4169. void RemoveObjectAnimation();
  4170. void ResetToDefault();
  4171. bool Save(File) const;
  4172. bool Save(VectorBuffer&) const;
  4173. bool SaveJSON(JSONValue&) const;
  4174. bool SaveXML(XMLElement&) const;
  4175. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4176. void SetAnimationTime(float);
  4177. bool SetAttribute(const String&, const Variant&);
  4178. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4179. void SetAttributeAnimationSpeed(const String&, float);
  4180. void SetAttributeAnimationTime(const String&, float);
  4181. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4182. void SetInterceptNetworkUpdate(const String&, bool);
  4183. // Properties:
  4184. bool animationEnabled;
  4185. /* readonly */
  4186. Array<Variant> attributeDefaults;
  4187. /* readonly */
  4188. Array<AttributeInfo> attributeInfos;
  4189. Array<Variant> attributes;
  4190. /* readonly */
  4191. String category;
  4192. bool enabled;
  4193. /* readonly */
  4194. bool enabledEffective;
  4195. /* readonly */
  4196. uint id;
  4197. bool lineAntiAlias;
  4198. /* readonly */
  4199. Node node;
  4200. /* readonly */
  4201. uint numAttributes;
  4202. ObjectAnimation objectAnimation;
  4203. /* readonly */
  4204. int refs;
  4205. /* readonly */
  4206. bool replicated;
  4207. bool temporary;
  4208. /* readonly */
  4209. StringHash type;
  4210. /* readonly */
  4211. String typeName;
  4212. /* readonly */
  4213. int weakRefs;
  4214. };
  4215. class DecalSet
  4216. {
  4217. public:
  4218. // Methods:
  4219. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4220. void ApplyAttributes();
  4221. void DrawDebugGeometry(DebugRenderer, bool);
  4222. Variant GetAttribute(const String&) const;
  4223. ValueAnimation GetAttributeAnimation(const String&) const;
  4224. float GetAttributeAnimationSpeed(const String&) const;
  4225. float GetAttributeAnimationTime(const String&) const;
  4226. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4227. Variant GetAttributeDefault(const String&) const;
  4228. bool GetInterceptNetworkUpdate(const String&) const;
  4229. bool HasSubscribedToEvent(Object, const String&);
  4230. bool HasSubscribedToEvent(const String&);
  4231. bool IsInView(Camera) const;
  4232. bool Load(File);
  4233. bool Load(VectorBuffer&);
  4234. bool LoadJSON(const JSONValue&);
  4235. bool LoadXML(const XMLElement&);
  4236. void MarkNetworkUpdate() const;
  4237. void Remove();
  4238. void RemoveAllDecals();
  4239. void RemoveAttributeAnimation(const String&);
  4240. void RemoveDecals(uint);
  4241. void RemoveInstanceDefault();
  4242. void RemoveObjectAnimation();
  4243. void ResetToDefault();
  4244. bool Save(File) const;
  4245. bool Save(VectorBuffer&) const;
  4246. bool SaveJSON(JSONValue&) const;
  4247. bool SaveXML(XMLElement&) const;
  4248. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4249. void SetAnimationTime(float);
  4250. bool SetAttribute(const String&, const Variant&);
  4251. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4252. void SetAttributeAnimationSpeed(const String&, float);
  4253. void SetAttributeAnimationTime(const String&, float);
  4254. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4255. void SetInterceptNetworkUpdate(const String&, bool);
  4256. // Properties:
  4257. bool animationEnabled;
  4258. /* readonly */
  4259. Array<Variant> attributeDefaults;
  4260. /* readonly */
  4261. Array<AttributeInfo> attributeInfos;
  4262. Array<Variant> attributes;
  4263. /* readonly */
  4264. BoundingBox boundingBox;
  4265. bool castShadows;
  4266. /* readonly */
  4267. String category;
  4268. float drawDistance;
  4269. bool enabled;
  4270. /* readonly */
  4271. bool enabledEffective;
  4272. /* readonly */
  4273. uint id;
  4274. /* readonly */
  4275. bool inView;
  4276. uint lightMask;
  4277. float lodBias;
  4278. Material material;
  4279. uint maxIndices;
  4280. uint maxLights;
  4281. uint maxVertices;
  4282. /* readonly */
  4283. Node node;
  4284. /* readonly */
  4285. uint numAttributes;
  4286. /* readonly */
  4287. uint numDecals;
  4288. /* readonly */
  4289. uint numIndices;
  4290. /* readonly */
  4291. uint numVertices;
  4292. ObjectAnimation objectAnimation;
  4293. bool occludee;
  4294. bool occluder;
  4295. bool optimizeBufferSize;
  4296. /* readonly */
  4297. int refs;
  4298. /* readonly */
  4299. bool replicated;
  4300. float shadowDistance;
  4301. uint shadowMask;
  4302. bool temporary;
  4303. /* readonly */
  4304. StringHash type;
  4305. /* readonly */
  4306. String typeName;
  4307. uint viewMask;
  4308. /* readonly */
  4309. int weakRefs;
  4310. /* readonly */
  4311. BoundingBox worldBoundingBox;
  4312. /* readonly */
  4313. Zone zone;
  4314. uint zoneMask;
  4315. };
  4316. class Deserializer
  4317. {
  4318. public:
  4319. // Methods:
  4320. Array<uint8> Read(uint);
  4321. bool ReadBool();
  4322. BoundingBox ReadBoundingBox();
  4323. int8 ReadByte();
  4324. Color ReadColor();
  4325. double ReadDouble();
  4326. String ReadFileID();
  4327. float ReadFloat();
  4328. int ReadInt();
  4329. int64 ReadInt64();
  4330. IntRect ReadIntRect();
  4331. IntVector2 ReadIntVector2();
  4332. String ReadLine();
  4333. Matrix3 ReadMatrix3();
  4334. Matrix3x4 ReadMatrix3x4();
  4335. Matrix4 ReadMatrix4();
  4336. uint ReadNetID();
  4337. Quaternion ReadPackedQuaternion();
  4338. Vector3 ReadPackedVector3(float);
  4339. Quaternion ReadQuaternion();
  4340. int16 ReadShort();
  4341. String ReadString();
  4342. StringHash ReadStringHash();
  4343. uint8 ReadUByte();
  4344. uint ReadUInt();
  4345. uint64 ReadUInt64();
  4346. uint16 ReadUShort();
  4347. uint ReadVLE();
  4348. Variant ReadVariant();
  4349. VariantMap ReadVariantMap();
  4350. Vector2 ReadVector2();
  4351. Vector3 ReadVector3();
  4352. Vector4 ReadVector4();
  4353. VectorBuffer ReadVectorBuffer(uint);
  4354. uint Seek(uint);
  4355. uint SeekRelative(int);
  4356. uint Tell() const;
  4357. // Properties:
  4358. /* readonly */
  4359. uint checksum;
  4360. /* readonly */
  4361. bool eof;
  4362. /* readonly */
  4363. String name;
  4364. /* readonly */
  4365. uint position;
  4366. /* readonly */
  4367. uint size;
  4368. };
  4369. class Dictionary
  4370. {
  4371. public:
  4372. Dictionary();
  4373. // Methods:
  4374. void Clear();
  4375. void Erase(const String&);
  4376. bool Exists(const String&) const;
  4377. bool Get(const String&, void*) const;
  4378. bool Get(const String&, double&) const;
  4379. bool Get(const String&, int64&) const;
  4380. void Set(const String&, const void*);
  4381. void Set(const String&, const double&);
  4382. void Set(const String&, const int64&);
  4383. // Properties:
  4384. /* readonly */
  4385. bool empty;
  4386. /* readonly */
  4387. Array<String> keys;
  4388. /* readonly */
  4389. uint length;
  4390. };
  4391. class DictionaryValue
  4392. {
  4393. public:
  4394. ~DictionaryValue();
  4395. DictionaryValue();
  4396. };
  4397. class Drawable
  4398. {
  4399. public:
  4400. // Methods:
  4401. void ApplyAttributes();
  4402. void DrawDebugGeometry(DebugRenderer, bool);
  4403. Variant GetAttribute(const String&) const;
  4404. ValueAnimation GetAttributeAnimation(const String&) const;
  4405. float GetAttributeAnimationSpeed(const String&) const;
  4406. float GetAttributeAnimationTime(const String&) const;
  4407. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4408. Variant GetAttributeDefault(const String&) const;
  4409. bool GetInterceptNetworkUpdate(const String&) const;
  4410. bool HasSubscribedToEvent(Object, const String&);
  4411. bool HasSubscribedToEvent(const String&);
  4412. bool IsInView(Camera) const;
  4413. bool Load(File);
  4414. bool Load(VectorBuffer&);
  4415. bool LoadJSON(const JSONValue&);
  4416. bool LoadXML(const XMLElement&);
  4417. void MarkNetworkUpdate() const;
  4418. void Remove();
  4419. void RemoveAttributeAnimation(const String&);
  4420. void RemoveInstanceDefault();
  4421. void RemoveObjectAnimation();
  4422. void ResetToDefault();
  4423. bool Save(File) const;
  4424. bool Save(VectorBuffer&) const;
  4425. bool SaveJSON(JSONValue&) const;
  4426. bool SaveXML(XMLElement&) const;
  4427. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4428. void SetAnimationTime(float);
  4429. bool SetAttribute(const String&, const Variant&);
  4430. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4431. void SetAttributeAnimationSpeed(const String&, float);
  4432. void SetAttributeAnimationTime(const String&, float);
  4433. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4434. void SetInterceptNetworkUpdate(const String&, bool);
  4435. // Properties:
  4436. bool animationEnabled;
  4437. /* readonly */
  4438. Array<Variant> attributeDefaults;
  4439. /* readonly */
  4440. Array<AttributeInfo> attributeInfos;
  4441. Array<Variant> attributes;
  4442. /* readonly */
  4443. BoundingBox boundingBox;
  4444. bool castShadows;
  4445. /* readonly */
  4446. String category;
  4447. float drawDistance;
  4448. bool enabled;
  4449. /* readonly */
  4450. bool enabledEffective;
  4451. /* readonly */
  4452. uint id;
  4453. /* readonly */
  4454. bool inView;
  4455. uint lightMask;
  4456. float lodBias;
  4457. uint maxLights;
  4458. /* readonly */
  4459. Node node;
  4460. /* readonly */
  4461. uint numAttributes;
  4462. ObjectAnimation objectAnimation;
  4463. bool occludee;
  4464. bool occluder;
  4465. /* readonly */
  4466. int refs;
  4467. /* readonly */
  4468. bool replicated;
  4469. float shadowDistance;
  4470. uint shadowMask;
  4471. bool temporary;
  4472. /* readonly */
  4473. StringHash type;
  4474. /* readonly */
  4475. String typeName;
  4476. uint viewMask;
  4477. /* readonly */
  4478. int weakRefs;
  4479. /* readonly */
  4480. BoundingBox worldBoundingBox;
  4481. uint zoneMask;
  4482. };
  4483. class Drawable2D
  4484. {
  4485. public:
  4486. // Methods:
  4487. void ApplyAttributes();
  4488. void DrawDebugGeometry(DebugRenderer, bool);
  4489. Variant GetAttribute(const String&) const;
  4490. ValueAnimation GetAttributeAnimation(const String&) const;
  4491. float GetAttributeAnimationSpeed(const String&) const;
  4492. float GetAttributeAnimationTime(const String&) const;
  4493. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4494. Variant GetAttributeDefault(const String&) const;
  4495. bool GetInterceptNetworkUpdate(const String&) const;
  4496. bool HasSubscribedToEvent(Object, const String&);
  4497. bool HasSubscribedToEvent(const String&);
  4498. bool IsInView(Camera) const;
  4499. bool Load(File);
  4500. bool Load(VectorBuffer&);
  4501. bool LoadJSON(const JSONValue&);
  4502. bool LoadXML(const XMLElement&);
  4503. void MarkNetworkUpdate() const;
  4504. void Remove();
  4505. void RemoveAttributeAnimation(const String&);
  4506. void RemoveInstanceDefault();
  4507. void RemoveObjectAnimation();
  4508. void ResetToDefault();
  4509. bool Save(File) const;
  4510. bool Save(VectorBuffer&) const;
  4511. bool SaveJSON(JSONValue&) const;
  4512. bool SaveXML(XMLElement&) const;
  4513. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4514. void SetAnimationTime(float);
  4515. bool SetAttribute(const String&, const Variant&);
  4516. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4517. void SetAttributeAnimationSpeed(const String&, float);
  4518. void SetAttributeAnimationTime(const String&, float);
  4519. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4520. void SetInterceptNetworkUpdate(const String&, bool);
  4521. // Properties:
  4522. bool animationEnabled;
  4523. /* readonly */
  4524. Array<Variant> attributeDefaults;
  4525. /* readonly */
  4526. Array<AttributeInfo> attributeInfos;
  4527. Array<Variant> attributes;
  4528. /* readonly */
  4529. BoundingBox boundingBox;
  4530. bool castShadows;
  4531. /* readonly */
  4532. String category;
  4533. float drawDistance;
  4534. bool enabled;
  4535. /* readonly */
  4536. bool enabledEffective;
  4537. /* readonly */
  4538. uint id;
  4539. /* readonly */
  4540. bool inView;
  4541. int layer;
  4542. uint lightMask;
  4543. float lodBias;
  4544. uint maxLights;
  4545. /* readonly */
  4546. Node node;
  4547. /* readonly */
  4548. uint numAttributes;
  4549. ObjectAnimation objectAnimation;
  4550. bool occludee;
  4551. bool occluder;
  4552. int orderInLayer;
  4553. /* readonly */
  4554. int refs;
  4555. /* readonly */
  4556. bool replicated;
  4557. float shadowDistance;
  4558. uint shadowMask;
  4559. bool temporary;
  4560. /* readonly */
  4561. StringHash type;
  4562. /* readonly */
  4563. String typeName;
  4564. uint viewMask;
  4565. /* readonly */
  4566. int weakRefs;
  4567. /* readonly */
  4568. BoundingBox worldBoundingBox;
  4569. uint zoneMask;
  4570. };
  4571. class DropDownList
  4572. {
  4573. public:
  4574. DropDownList();
  4575. DropDownList(const String&in);
  4576. // Methods:
  4577. void AddChild(UIElement);
  4578. void AddItem(UIElement);
  4579. void AddTag(const String&);
  4580. void AddTags(const String&, int8 = ';');
  4581. void ApplyAttributes();
  4582. void BringToFront();
  4583. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4584. void DisableLayoutUpdate();
  4585. IntVector2 ElementToScreen(const IntVector2&);
  4586. void EnableLayoutUpdate();
  4587. uint FindChild(UIElement) const;
  4588. Variant GetAttribute(const String&) const;
  4589. ValueAnimation GetAttributeAnimation(const String&) const;
  4590. float GetAttributeAnimationSpeed(const String&) const;
  4591. float GetAttributeAnimationTime(const String&) const;
  4592. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4593. Variant GetAttributeDefault(const String&) const;
  4594. UIElement GetChild(const String&, bool = false) const;
  4595. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4596. Array<UIElement> GetChildren(bool = false) const;
  4597. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4598. UIElement GetElementEventSender() const;
  4599. bool GetInterceptNetworkUpdate(const String&) const;
  4600. Array<UIElement> GetItems() const;
  4601. uint GetNumChildren(bool) const;
  4602. bool HasSubscribedToEvent(Object, const String&);
  4603. bool HasSubscribedToEvent(const String&);
  4604. bool HasTag(const String&) const;
  4605. void InsertChild(uint, UIElement);
  4606. void InsertItem(uint, UIElement);
  4607. bool IsChildOf(UIElement) const;
  4608. bool IsInside(IntVector2, bool);
  4609. bool IsInsideCombined(IntVector2, bool);
  4610. bool Load(File);
  4611. bool Load(VectorBuffer&);
  4612. UIElement LoadChildXML(XMLFile, XMLFile);
  4613. UIElement LoadChildXML(const XMLElement&, XMLFile);
  4614. bool LoadJSON(const JSONValue&);
  4615. bool LoadXML(File);
  4616. bool LoadXML(VectorBuffer&);
  4617. bool LoadXML(XMLFile, XMLFile);
  4618. bool LoadXML(const XMLElement&, XMLFile);
  4619. bool LoadXML(const XMLElement&);
  4620. void MarkNetworkUpdate() const;
  4621. void Remove();
  4622. void RemoveAllChildren();
  4623. void RemoveAllItems();
  4624. void RemoveAllTags();
  4625. void RemoveAttributeAnimation(const String&);
  4626. void RemoveChild(UIElement, uint = 0);
  4627. void RemoveChild(uint);
  4628. void RemoveInstanceDefault();
  4629. void RemoveItem(UIElement);
  4630. void RemoveItem(uint);
  4631. void RemoveObjectAnimation();
  4632. bool RemoveTag(const String&);
  4633. void ResetDeepEnabled();
  4634. void ResetToDefault();
  4635. bool Save(File) const;
  4636. bool Save(VectorBuffer&) const;
  4637. bool SaveJSON(JSONValue&) const;
  4638. bool SaveXML(File, const String& = "\t");
  4639. bool SaveXML(VectorBuffer&, const String& = "\t");
  4640. bool SaveXML(XMLElement&) const;
  4641. IntVector2 ScreenToElement(const IntVector2&);
  4642. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4643. void SetAccelerator(int, int);
  4644. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4645. void SetAnimationTime(float);
  4646. bool SetAttribute(const String&, const Variant&);
  4647. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4648. void SetAttributeAnimationSpeed(const String&, float);
  4649. void SetAttributeAnimationTime(const String&, float);
  4650. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4651. void SetDeepEnabled(bool);
  4652. void SetDisabledOffset(int, int);
  4653. void SetEnabledRecursive(bool);
  4654. void SetFixedHeight(int);
  4655. void SetFixedSize(int, int);
  4656. void SetFixedWidth(int);
  4657. void SetFullImageRect();
  4658. void SetHoverOffset(int, int);
  4659. void SetInterceptNetworkUpdate(const String&, bool);
  4660. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4661. void SetMaxAnchor(float, float);
  4662. void SetMaxSize(int, int);
  4663. void SetMinAnchor(float, float);
  4664. void SetMinSize(int, int);
  4665. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4666. void SetPivot(float, float);
  4667. void SetPosition(int, int);
  4668. void SetPressedChildOffset(int, int);
  4669. void SetPressedOffset(int, int);
  4670. void SetRepeat(float, float);
  4671. void SetSize(int, int);
  4672. bool SetStyle(const String&, XMLFile = null);
  4673. bool SetStyle(const XMLElement&);
  4674. bool SetStyleAuto(XMLFile = null);
  4675. void UpdateLayout();
  4676. const Variant& GetVar(const StringHash&);
  4677. UIElement getPopup() const;
  4678. // Properties:
  4679. /* readonly */
  4680. int acceleratorKey;
  4681. /* readonly */
  4682. int acceleratorQualifiers;
  4683. bool animationEnabled;
  4684. /* readonly */
  4685. Array<Variant> attributeDefaults;
  4686. /* readonly */
  4687. Array<AttributeInfo> attributeInfos;
  4688. Array<Variant> attributes;
  4689. BlendMode blendMode;
  4690. IntRect border;
  4691. bool bringToBack;
  4692. bool bringToFront;
  4693. /* readonly */
  4694. String category;
  4695. /* readonly */
  4696. IntVector2 childOffset;
  4697. /* readonly */
  4698. Array<UIElement> children;
  4699. IntRect clipBorder;
  4700. bool clipChildren;
  4701. /* writeonly */
  4702. Color color;
  4703. /* readonly */
  4704. bool colorGradient;
  4705. Array<Color> colors;
  4706. /* readonly */
  4707. IntRect combinedScreenRect;
  4708. XMLFile defaultStyle;
  4709. /* readonly */
  4710. float derivedOpacity;
  4711. IntVector2 disabledOffset;
  4712. /* readonly */
  4713. uint dragButtonCombo;
  4714. /* readonly */
  4715. int dragButtonCount;
  4716. uint dragDropMode;
  4717. bool editable;
  4718. bool elementEventSender;
  4719. bool enableAnchor;
  4720. bool enabled;
  4721. /* readonly */
  4722. bool enabledSelf;
  4723. /* readonly */
  4724. bool fixedHeight;
  4725. /* readonly */
  4726. bool fixedSize;
  4727. /* readonly */
  4728. bool fixedWidth;
  4729. bool focus;
  4730. FocusMode focusMode;
  4731. int height;
  4732. HorizontalAlignment horizontalAlignment;
  4733. IntVector2 hoverOffset;
  4734. /* readonly */
  4735. bool hovering;
  4736. IntRect imageBorder;
  4737. IntRect imageRect;
  4738. int indent;
  4739. int indentSpacing;
  4740. /* readonly */
  4741. int indentWidth;
  4742. bool internal;
  4743. /* readonly */
  4744. Array<UIElement> items;
  4745. IntRect layoutBorder;
  4746. Vector2 layoutFlexScale;
  4747. LayoutMode layoutMode;
  4748. int layoutSpacing;
  4749. /* readonly */
  4750. ListView listView;
  4751. Material material;
  4752. Vector2 maxAnchor;
  4753. int maxHeight;
  4754. IntVector2 maxOffset;
  4755. IntVector2 maxSize;
  4756. int maxWidth;
  4757. Vector2 minAnchor;
  4758. int minHeight;
  4759. IntVector2 minOffset;
  4760. IntVector2 minSize;
  4761. int minWidth;
  4762. String name;
  4763. /* readonly */
  4764. uint numAllChildren;
  4765. /* readonly */
  4766. uint numAttributes;
  4767. /* readonly */
  4768. uint numChildren;
  4769. /* readonly */
  4770. uint numItems;
  4771. ObjectAnimation objectAnimation;
  4772. float opacity;
  4773. UIElement parent;
  4774. Vector2 pivot;
  4775. /* readonly */
  4776. UIElement placeholder;
  4777. String placeholderText;
  4778. IntVector2 position;
  4779. /* readonly */
  4780. bool pressed;
  4781. IntVector2 pressedChildOffset;
  4782. IntVector2 pressedOffset;
  4783. int priority;
  4784. /* readonly */
  4785. int refs;
  4786. float repeatDelay;
  4787. float repeatRate;
  4788. bool resizePopup;
  4789. /* readonly */
  4790. UIElement root;
  4791. /* readonly */
  4792. IntVector2 screenPosition;
  4793. bool selected;
  4794. /* readonly */
  4795. UIElement selectedItem;
  4796. uint selection;
  4797. bool showPopup;
  4798. IntVector2 size;
  4799. bool sortChildren;
  4800. String style;
  4801. /* readonly */
  4802. Array<String> tags;
  4803. bool temporary;
  4804. Texture texture;
  4805. bool tiled;
  4806. TraversalMode traversalMode;
  4807. /* readonly */
  4808. StringHash type;
  4809. /* readonly */
  4810. String typeName;
  4811. bool useDerivedOpacity;
  4812. /* readonly */
  4813. VariantMap vars;
  4814. VerticalAlignment verticalAlignment;
  4815. bool visible;
  4816. /* readonly */
  4817. bool visibleEffective;
  4818. /* readonly */
  4819. int weakRefs;
  4820. int width;
  4821. };
  4822. class DynamicNavigationMesh
  4823. {
  4824. public:
  4825. // Methods:
  4826. bool AddTile(const VectorBuffer&) const;
  4827. bool Allocate(const BoundingBox&, uint);
  4828. void ApplyAttributes();
  4829. bool Build();
  4830. bool Build(const BoundingBox&);
  4831. bool Build(const IntVector2&, const IntVector2&);
  4832. void DrawDebugGeometry(DebugRenderer, bool);
  4833. void DrawDebugGeometry(bool);
  4834. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4835. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4836. float GetAreaCost(uint) const;
  4837. Variant GetAttribute(const String&) const;
  4838. ValueAnimation GetAttributeAnimation(const String&) const;
  4839. float GetAttributeAnimationSpeed(const String&) const;
  4840. float GetAttributeAnimationTime(const String&) const;
  4841. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4842. Variant GetAttributeDefault(const String&) const;
  4843. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4844. bool GetInterceptNetworkUpdate(const String&) const;
  4845. Vector3 GetRandomPoint();
  4846. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4847. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  4848. VectorBuffer GetTileData(const IntVector2&) const;
  4849. IntVector2 GetTileIndex(const Vector3&) const;
  4850. bool HasSubscribedToEvent(Object, const String&);
  4851. bool HasSubscribedToEvent(const String&);
  4852. bool HasTile(const IntVector2&) const;
  4853. bool Load(File);
  4854. bool Load(VectorBuffer&);
  4855. bool LoadJSON(const JSONValue&);
  4856. bool LoadXML(const XMLElement&);
  4857. void MarkNetworkUpdate() const;
  4858. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4859. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4860. void Remove();
  4861. void RemoveAllTiles();
  4862. void RemoveAttributeAnimation(const String&);
  4863. void RemoveInstanceDefault();
  4864. void RemoveObjectAnimation();
  4865. void RemoveTile(const IntVector2&);
  4866. void ResetToDefault();
  4867. bool Save(File) const;
  4868. bool Save(VectorBuffer&) const;
  4869. bool SaveJSON(JSONValue&) const;
  4870. bool SaveXML(XMLElement&) const;
  4871. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4872. void SetAnimationTime(float);
  4873. void SetAreaCost(uint, float);
  4874. bool SetAttribute(const String&, const Variant&);
  4875. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4876. void SetAttributeAnimationSpeed(const String&, float);
  4877. void SetAttributeAnimationTime(const String&, float);
  4878. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4879. void SetInterceptNetworkUpdate(const String&, bool);
  4880. // Properties:
  4881. float agentHeight;
  4882. float agentMaxClimb;
  4883. float agentMaxSlope;
  4884. float agentRadius;
  4885. bool animationEnabled;
  4886. /* readonly */
  4887. Array<Variant> attributeDefaults;
  4888. /* readonly */
  4889. Array<AttributeInfo> attributeInfos;
  4890. Array<Variant> attributes;
  4891. /* readonly */
  4892. BoundingBox boundingBox;
  4893. /* readonly */
  4894. String category;
  4895. float cellHeight;
  4896. float cellSize;
  4897. float detailSampleDistance;
  4898. float detailSampleMaxError;
  4899. bool drawNavAreas;
  4900. bool drawObstacles;
  4901. bool drawOffMeshConnections;
  4902. float edgeMaxError;
  4903. float edgeMaxLength;
  4904. bool enabled;
  4905. /* readonly */
  4906. bool enabledEffective;
  4907. /* readonly */
  4908. uint id;
  4909. /* readonly */
  4910. bool initialized;
  4911. bool maxLayers;
  4912. uint maxObstacles;
  4913. /* readonly */
  4914. Node node;
  4915. /* readonly */
  4916. uint numAttributes;
  4917. /* readonly */
  4918. IntVector2 numTiles;
  4919. ObjectAnimation objectAnimation;
  4920. Vector3 padding;
  4921. NavmeshPartitionType partitionType;
  4922. /* readonly */
  4923. int refs;
  4924. float regionMergeSize;
  4925. float regionMinSize;
  4926. /* readonly */
  4927. bool replicated;
  4928. bool temporary;
  4929. int tileSize;
  4930. /* readonly */
  4931. StringHash type;
  4932. /* readonly */
  4933. String typeName;
  4934. /* readonly */
  4935. int weakRefs;
  4936. /* readonly */
  4937. BoundingBox worldBoundingBox;
  4938. };
  4939. class Engine
  4940. {
  4941. public:
  4942. // Methods:
  4943. Console CreateConsole();
  4944. DebugHud CreateDebugHud();
  4945. void DumpMemory();
  4946. void DumpProfiler();
  4947. void DumpResources(bool = false);
  4948. void Exit();
  4949. bool HasSubscribedToEvent(Object, const String&);
  4950. bool HasSubscribedToEvent(const String&);
  4951. void RunFrame();
  4952. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4953. // Properties:
  4954. bool autoExit;
  4955. /* readonly */
  4956. String category;
  4957. /* readonly */
  4958. bool exiting;
  4959. /* readonly */
  4960. bool headless;
  4961. /* readonly */
  4962. bool initialized;
  4963. int maxFps;
  4964. int maxInactiveFps;
  4965. int minFps;
  4966. bool pauseMinimized;
  4967. /* readonly */
  4968. int refs;
  4969. int timeStepSmoothing;
  4970. /* readonly */
  4971. StringHash type;
  4972. /* readonly */
  4973. String typeName;
  4974. /* readonly */
  4975. int weakRefs;
  4976. };
  4977. class File
  4978. {
  4979. public:
  4980. File();
  4981. File(const String&in, FileMode mode = FILE_READ);
  4982. // Methods:
  4983. void Close();
  4984. bool HasSubscribedToEvent(Object, const String&);
  4985. bool HasSubscribedToEvent(const String&);
  4986. bool Open(const String&, FileMode = FILE_READ);
  4987. Array<uint8> Read(uint);
  4988. bool ReadBool();
  4989. BoundingBox ReadBoundingBox();
  4990. int8 ReadByte();
  4991. Color ReadColor();
  4992. double ReadDouble();
  4993. String ReadFileID();
  4994. float ReadFloat();
  4995. int ReadInt();
  4996. int64 ReadInt64();
  4997. IntRect ReadIntRect();
  4998. IntVector2 ReadIntVector2();
  4999. String ReadLine();
  5000. Matrix3 ReadMatrix3();
  5001. Matrix3x4 ReadMatrix3x4();
  5002. Matrix4 ReadMatrix4();
  5003. uint ReadNetID();
  5004. Quaternion ReadPackedQuaternion();
  5005. Vector3 ReadPackedVector3(float);
  5006. Quaternion ReadQuaternion();
  5007. int16 ReadShort();
  5008. String ReadString();
  5009. StringHash ReadStringHash();
  5010. uint8 ReadUByte();
  5011. uint ReadUInt();
  5012. uint64 ReadUInt64();
  5013. uint16 ReadUShort();
  5014. uint ReadVLE();
  5015. Variant ReadVariant();
  5016. VariantMap ReadVariantMap();
  5017. Vector2 ReadVector2();
  5018. Vector3 ReadVector3();
  5019. Vector4 ReadVector4();
  5020. VectorBuffer ReadVectorBuffer(uint);
  5021. uint Seek(uint);
  5022. uint SeekRelative(int);
  5023. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5024. uint Tell() const;
  5025. uint Write(Array<uint8>);
  5026. bool WriteBool(bool);
  5027. bool WriteBoundingBox(const BoundingBox&);
  5028. bool WriteByte(int8);
  5029. bool WriteColor(const Color&);
  5030. bool WriteDouble(double);
  5031. bool WriteFileID(const String&);
  5032. bool WriteFloat(float);
  5033. bool WriteInt(int);
  5034. bool WriteInt64(int64);
  5035. bool WriteIntRect(const IntRect&);
  5036. bool WriteIntVector2(const IntVector2&);
  5037. bool WriteLine(const String&);
  5038. bool WriteMatrix3(const Matrix3&);
  5039. bool WriteMatrix3x4(const Matrix3x4&);
  5040. bool WriteMatrix4(const Matrix4&);
  5041. bool WriteNetID(uint);
  5042. bool WritePackedQuaternion(const Quaternion&);
  5043. bool WritePackedVector3(const Vector3&, float);
  5044. bool WriteQuaternion(const Quaternion&);
  5045. bool WriteShort(int16);
  5046. bool WriteString(const String&);
  5047. bool WriteStringHash(const StringHash&);
  5048. bool WriteUByte(uint8);
  5049. bool WriteUInt(uint);
  5050. bool WriteUInt64(uint64);
  5051. bool WriteUShort(uint16);
  5052. bool WriteVLE(uint);
  5053. bool WriteVariant(const Variant&);
  5054. bool WriteVariantMap(const VariantMap&);
  5055. bool WriteVector2(const Vector2&);
  5056. bool WriteVector3(const Vector3&);
  5057. bool WriteVector4(const Vector4&);
  5058. bool WriteVectorBuffer(const VectorBuffer&);
  5059. // Properties:
  5060. /* readonly */
  5061. String category;
  5062. /* readonly */
  5063. uint checksum;
  5064. /* readonly */
  5065. bool eof;
  5066. /* readonly */
  5067. FileMode mode;
  5068. /* readonly */
  5069. String name;
  5070. /* readonly */
  5071. bool open;
  5072. /* readonly */
  5073. bool packaged;
  5074. /* readonly */
  5075. uint position;
  5076. /* readonly */
  5077. int refs;
  5078. /* readonly */
  5079. uint size;
  5080. /* readonly */
  5081. StringHash type;
  5082. /* readonly */
  5083. String typeName;
  5084. /* readonly */
  5085. int weakRefs;
  5086. };
  5087. class FileSelector
  5088. {
  5089. public:
  5090. FileSelector();
  5091. // Methods:
  5092. bool HasSubscribedToEvent(Object, const String&);
  5093. bool HasSubscribedToEvent(const String&);
  5094. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5095. void SetButtonTexts(const String&, const String&);
  5096. void SetFilters(Array<String>, uint);
  5097. void UpdateElements();
  5098. // Properties:
  5099. /* readonly */
  5100. Button cancelButton;
  5101. /* readonly */
  5102. String category;
  5103. XMLFile defaultStyle;
  5104. bool directoryMode;
  5105. /* readonly */
  5106. ListView fileList;
  5107. String fileName;
  5108. /* readonly */
  5109. LineEdit fileNameEdit;
  5110. /* readonly */
  5111. String filter;
  5112. /* readonly */
  5113. uint filterIndex;
  5114. /* readonly */
  5115. DropDownList filterList;
  5116. /* readonly */
  5117. Button okButton;
  5118. String path;
  5119. /* readonly */
  5120. LineEdit pathEdit;
  5121. /* readonly */
  5122. int refs;
  5123. String title;
  5124. /* readonly */
  5125. Text titleText;
  5126. /* readonly */
  5127. StringHash type;
  5128. /* readonly */
  5129. String typeName;
  5130. /* readonly */
  5131. int weakRefs;
  5132. /* readonly */
  5133. Window window;
  5134. };
  5135. class FileSystem
  5136. {
  5137. public:
  5138. // Methods:
  5139. bool Copy(const String&, const String&);
  5140. bool CreateDir(const String&);
  5141. bool Delete(const String&);
  5142. bool DirExists(const String&) const;
  5143. bool FileExists(const String&) const;
  5144. String GetAppPreferencesDir(const String&, const String&) const;
  5145. uint GetLastModifiedTime(const String&) const;
  5146. bool HasSubscribedToEvent(Object, const String&);
  5147. bool HasSubscribedToEvent(const String&);
  5148. bool Rename(const String&, const String&);
  5149. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5150. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5151. bool SetLastModifiedTime(const String&, uint);
  5152. int SystemCommand(const String&, bool = false);
  5153. uint SystemCommandAsync(const String&);
  5154. bool SystemOpen(const String&, const String&);
  5155. int SystemRun(const String&, Array<String>);
  5156. uint SystemRunAsync(const String&, Array<String>);
  5157. // Properties:
  5158. /* readonly */
  5159. String category;
  5160. String currentDir;
  5161. bool executeConsoleCommands;
  5162. /* readonly */
  5163. String programDir;
  5164. /* readonly */
  5165. int refs;
  5166. /* readonly */
  5167. String temporaryDir;
  5168. /* readonly */
  5169. StringHash type;
  5170. /* readonly */
  5171. String typeName;
  5172. /* readonly */
  5173. String userDocumentsDir;
  5174. /* readonly */
  5175. int weakRefs;
  5176. };
  5177. class FocusParameters
  5178. {
  5179. public:
  5180. FocusParameters();
  5181. FocusParameters(const FocusParameters&in);
  5182. FocusParameters(bool, bool, bool, float, float);
  5183. // Properties:
  5184. bool autoSize;
  5185. bool focus;
  5186. float minView;
  5187. bool nonUniform;
  5188. float quantize;
  5189. };
  5190. class Font
  5191. {
  5192. public:
  5193. Font();
  5194. Font(const String&in);
  5195. // Methods:
  5196. IntVector2 GetTotalGlyphOffset(float) const;
  5197. bool HasSubscribedToEvent(Object, const String&);
  5198. bool HasSubscribedToEvent(const String&);
  5199. bool Load(File);
  5200. bool Load(VectorBuffer&);
  5201. bool Load(const String&);
  5202. bool Save(File) const;
  5203. bool Save(VectorBuffer&) const;
  5204. bool Save(const String&) const;
  5205. bool SaveXML(File, int, bool = false, const String& = "\t");
  5206. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5207. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5208. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5209. // Properties:
  5210. IntVector2 absoluteGlyphOffset;
  5211. /* readonly */
  5212. String category;
  5213. /* readonly */
  5214. FontType fontType;
  5215. /* readonly */
  5216. uint memoryUse;
  5217. String name;
  5218. /* readonly */
  5219. int refs;
  5220. Vector2 scaledGlyphOffset;
  5221. /* readonly */
  5222. StringHash type;
  5223. /* readonly */
  5224. String typeName;
  5225. /* readonly */
  5226. uint useTimer;
  5227. /* readonly */
  5228. int weakRefs;
  5229. };
  5230. class Frustum
  5231. {
  5232. public:
  5233. ~Frustum();
  5234. Frustum();
  5235. Frustum(const Frustum&in);
  5236. // Methods:
  5237. void Define(const BoundingBox&, const Matrix3x4&);
  5238. void Define(const Matrix4&);
  5239. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5240. void Define(float, float, float, float, float, const Matrix3x4&);
  5241. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5242. void DefineSplit(const Matrix4&, float, float);
  5243. float Distance(const Vector3&) const;
  5244. Intersection IsInside(const BoundingBox&);
  5245. Intersection IsInside(const Sphere&);
  5246. Intersection IsInside(const Vector3&);
  5247. Intersection IsInsideFast(const BoundingBox&) const;
  5248. Intersection IsInsideFast(const Sphere&) const;
  5249. void Transform(const Matrix3&);
  5250. void Transform(const Matrix3x4&);
  5251. Frustum Transformed(const Matrix3&) const;
  5252. Frustum Transformed(const Matrix3x4&) const;
  5253. // Properties:
  5254. /* readonly */
  5255. Array<Vector3> vertices;
  5256. };
  5257. class Geometry
  5258. {
  5259. public:
  5260. Geometry();
  5261. // Methods:
  5262. bool HasSubscribedToEvent(Object, const String&);
  5263. bool HasSubscribedToEvent(const String&);
  5264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5265. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5266. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5267. void SetIndexBuffer(IndexBuffer);
  5268. bool SetVertexBuffer(uint, VertexBuffer);
  5269. // Properties:
  5270. /* readonly */
  5271. String category;
  5272. /* readonly */
  5273. bool empty;
  5274. IndexBuffer indexBuffer;
  5275. /* readonly */
  5276. uint indexCount;
  5277. /* readonly */
  5278. uint indexStart;
  5279. float lodDistance;
  5280. uint numVertexBuffers;
  5281. /* readonly */
  5282. PrimitiveType primitiveType;
  5283. /* readonly */
  5284. int refs;
  5285. /* readonly */
  5286. StringHash type;
  5287. /* readonly */
  5288. String typeName;
  5289. /* readonly */
  5290. Array<VertexBuffer> vertexBuffers;
  5291. /* readonly */
  5292. uint vertexCount;
  5293. /* readonly */
  5294. uint vertexStart;
  5295. /* readonly */
  5296. int weakRefs;
  5297. };
  5298. class Graphics
  5299. {
  5300. public:
  5301. // Methods:
  5302. void BeginDumpShaders(const String&);
  5303. void Close();
  5304. void EndDumpShaders();
  5305. bool HasSubscribedToEvent(Object, const String&);
  5306. bool HasSubscribedToEvent(const String&);
  5307. void Maximize();
  5308. void Minimize();
  5309. void PrecacheShaders(File);
  5310. void PrecacheShaders(VectorBuffer&);
  5311. void Raise();
  5312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5313. bool SetMode(int, int);
  5314. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5315. void SetWindowPosition(int, int);
  5316. bool TakeScreenShot(Image);
  5317. bool ToggleFullscreen();
  5318. // Properties:
  5319. /* readonly */
  5320. String apiName;
  5321. /* readonly */
  5322. bool borderless;
  5323. /* readonly */
  5324. String category;
  5325. /* readonly */
  5326. int currentMonitor;
  5327. /* readonly */
  5328. bool deferredSupport;
  5329. /* readonly */
  5330. Array<IntVector2> desktopResolution;
  5331. /* readonly */
  5332. bool deviceLost;
  5333. /* readonly */
  5334. Array<Vector3> displayDPI;
  5335. bool dither;
  5336. bool flushGPU;
  5337. /* readonly */
  5338. bool fullscreen;
  5339. /* readonly */
  5340. bool hardwareShadowSupport;
  5341. /* readonly */
  5342. int height;
  5343. /* readonly */
  5344. bool initialized;
  5345. /* readonly */
  5346. bool instancingSupport;
  5347. /* readonly */
  5348. bool lightPrepassSupport;
  5349. /* readonly */
  5350. bool maximized;
  5351. /* readonly */
  5352. int monitorCount;
  5353. /* readonly */
  5354. int multiSample;
  5355. /* readonly */
  5356. Array<int> multiSampleLevels;
  5357. /* readonly */
  5358. uint numBatches;
  5359. /* readonly */
  5360. uint numPrimitives;
  5361. String orientations;
  5362. /* readonly */
  5363. bool readableDepthSupport;
  5364. /* readonly */
  5365. int refs;
  5366. /* readonly */
  5367. bool resizable;
  5368. /* readonly */
  5369. Array<Array<IntVector3>> resolutions;
  5370. bool sRGB;
  5371. /* readonly */
  5372. bool sRGBSupport;
  5373. /* readonly */
  5374. bool sRGBWriteSupport;
  5375. String shaderCacheDir;
  5376. /* readonly */
  5377. IntVector2 size;
  5378. /* readonly */
  5379. bool tripleBuffer;
  5380. /* readonly */
  5381. StringHash type;
  5382. /* readonly */
  5383. String typeName;
  5384. /* readonly */
  5385. bool vsync;
  5386. /* readonly */
  5387. int weakRefs;
  5388. /* readonly */
  5389. int width;
  5390. /* writeonly */
  5391. Image windowIcon;
  5392. IntVector2 windowPosition;
  5393. String windowTitle;
  5394. };
  5395. class HttpRequest
  5396. {
  5397. public:
  5398. // Methods:
  5399. Array<uint8> Read(uint);
  5400. bool ReadBool();
  5401. BoundingBox ReadBoundingBox();
  5402. int8 ReadByte();
  5403. Color ReadColor();
  5404. double ReadDouble();
  5405. String ReadFileID();
  5406. float ReadFloat();
  5407. int ReadInt();
  5408. int64 ReadInt64();
  5409. IntRect ReadIntRect();
  5410. IntVector2 ReadIntVector2();
  5411. String ReadLine();
  5412. Matrix3 ReadMatrix3();
  5413. Matrix3x4 ReadMatrix3x4();
  5414. Matrix4 ReadMatrix4();
  5415. uint ReadNetID();
  5416. Quaternion ReadPackedQuaternion();
  5417. Vector3 ReadPackedVector3(float);
  5418. Quaternion ReadQuaternion();
  5419. int16 ReadShort();
  5420. String ReadString();
  5421. StringHash ReadStringHash();
  5422. uint8 ReadUByte();
  5423. uint ReadUInt();
  5424. uint64 ReadUInt64();
  5425. uint16 ReadUShort();
  5426. uint ReadVLE();
  5427. Variant ReadVariant();
  5428. VariantMap ReadVariantMap();
  5429. Vector2 ReadVector2();
  5430. Vector3 ReadVector3();
  5431. Vector4 ReadVector4();
  5432. VectorBuffer ReadVectorBuffer(uint);
  5433. uint Seek(uint);
  5434. uint SeekRelative(int);
  5435. uint Tell() const;
  5436. // Properties:
  5437. /* readonly */
  5438. uint availableSize;
  5439. /* readonly */
  5440. uint checksum;
  5441. /* readonly */
  5442. bool eof;
  5443. /* readonly */
  5444. String error;
  5445. /* readonly */
  5446. String name;
  5447. /* readonly */
  5448. bool open;
  5449. /* readonly */
  5450. uint position;
  5451. /* readonly */
  5452. int refs;
  5453. /* readonly */
  5454. uint size;
  5455. /* readonly */
  5456. HttpRequestState state;
  5457. /* readonly */
  5458. String url;
  5459. /* readonly */
  5460. String verb;
  5461. /* readonly */
  5462. int weakRefs;
  5463. };
  5464. class IKEffector
  5465. {
  5466. public:
  5467. // Methods:
  5468. void ApplyAttributes();
  5469. void DrawDebugGeometry(DebugRenderer, bool);
  5470. void DrawDebugGeometry(bool);
  5471. Variant GetAttribute(const String&) const;
  5472. ValueAnimation GetAttributeAnimation(const String&) const;
  5473. float GetAttributeAnimationSpeed(const String&) const;
  5474. float GetAttributeAnimationTime(const String&) const;
  5475. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5476. Variant GetAttributeDefault(const String&) const;
  5477. bool GetInterceptNetworkUpdate(const String&) const;
  5478. bool HasSubscribedToEvent(Object, const String&);
  5479. bool HasSubscribedToEvent(const String&);
  5480. bool Load(File);
  5481. bool Load(VectorBuffer&);
  5482. bool LoadJSON(const JSONValue&);
  5483. bool LoadXML(const XMLElement&);
  5484. void MarkNetworkUpdate() const;
  5485. void Remove();
  5486. void RemoveAttributeAnimation(const String&);
  5487. void RemoveInstanceDefault();
  5488. void RemoveObjectAnimation();
  5489. void ResetToDefault();
  5490. bool Save(File) const;
  5491. bool Save(VectorBuffer&) const;
  5492. bool SaveJSON(JSONValue&) const;
  5493. bool SaveXML(XMLElement&) const;
  5494. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5495. void SetAnimationTime(float);
  5496. bool SetAttribute(const String&, const Variant&);
  5497. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5498. void SetAttributeAnimationSpeed(const String&, float);
  5499. void SetAttributeAnimationTime(const String&, float);
  5500. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5501. void SetInterceptNetworkUpdate(const String&, bool);
  5502. // Properties:
  5503. bool animationEnabled;
  5504. /* readonly */
  5505. Array<Variant> attributeDefaults;
  5506. /* readonly */
  5507. Array<AttributeInfo> attributeInfos;
  5508. Array<Variant> attributes;
  5509. /* readonly */
  5510. String category;
  5511. uint chainLength;
  5512. bool enabled;
  5513. /* readonly */
  5514. bool enabledEffective;
  5515. /* readonly */
  5516. uint id;
  5517. /* readonly */
  5518. Node node;
  5519. /* readonly */
  5520. uint numAttributes;
  5521. ObjectAnimation objectAnimation;
  5522. /* readonly */
  5523. int refs;
  5524. /* readonly */
  5525. bool replicated;
  5526. float rotationDecay;
  5527. float rotationWeight;
  5528. String targetName;
  5529. Node targetNode;
  5530. Vector3 targetPosition;
  5531. Quaternion targetRotation;
  5532. bool temporary;
  5533. /* readonly */
  5534. StringHash type;
  5535. /* readonly */
  5536. String typeName;
  5537. /* readonly */
  5538. int weakRefs;
  5539. float weight;
  5540. };
  5541. class IKSolver
  5542. {
  5543. public:
  5544. // Methods:
  5545. void ApplyActivePoseToScene();
  5546. void ApplyAttributes();
  5547. void ApplyOriginalPoseToActivePose();
  5548. void ApplyOriginalPoseToScene();
  5549. void ApplySceneToActivePose();
  5550. void ApplySceneToInitialPose();
  5551. void CalculateJointRotations();
  5552. void DrawDebugGeometry(DebugRenderer, bool);
  5553. void DrawDebugGeometry(bool);
  5554. Variant GetAttribute(const String&) const;
  5555. ValueAnimation GetAttributeAnimation(const String&) const;
  5556. float GetAttributeAnimationSpeed(const String&) const;
  5557. float GetAttributeAnimationTime(const String&) const;
  5558. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5559. Variant GetAttributeDefault(const String&) const;
  5560. bool GetInterceptNetworkUpdate(const String&) const;
  5561. bool HasSubscribedToEvent(Object, const String&);
  5562. bool HasSubscribedToEvent(const String&);
  5563. bool Load(File);
  5564. bool Load(VectorBuffer&);
  5565. bool LoadJSON(const JSONValue&);
  5566. bool LoadXML(const XMLElement&);
  5567. void MarkNetworkUpdate() const;
  5568. void RebuildChainTrees();
  5569. void RecalculateSegmentLengths();
  5570. void Remove();
  5571. void RemoveAttributeAnimation(const String&);
  5572. void RemoveInstanceDefault();
  5573. void RemoveObjectAnimation();
  5574. void ResetToDefault();
  5575. bool Save(File) const;
  5576. bool Save(VectorBuffer&) const;
  5577. bool SaveJSON(JSONValue&) const;
  5578. bool SaveXML(XMLElement&) const;
  5579. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5580. void SetAnimationTime(float);
  5581. bool SetAttribute(const String&, const Variant&);
  5582. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5583. void SetAttributeAnimationSpeed(const String&, float);
  5584. void SetAttributeAnimationTime(const String&, float);
  5585. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5586. void SetInterceptNetworkUpdate(const String&, bool);
  5587. void Solve();
  5588. // Properties:
  5589. bool AUTO_SOLVE;
  5590. bool CONSTRAINTS;
  5591. bool JOINT_ROTATIONS;
  5592. bool TARGET_ROTATIONS;
  5593. bool UPDATE_ACTIVE_POSE;
  5594. bool UPDATE_ORIGINAL_POSE;
  5595. bool USE_ORIGINAL_POSE;
  5596. IKAlgorithm algorithm;
  5597. bool animationEnabled;
  5598. /* readonly */
  5599. Array<Variant> attributeDefaults;
  5600. /* readonly */
  5601. Array<AttributeInfo> attributeInfos;
  5602. Array<Variant> attributes;
  5603. /* readonly */
  5604. String category;
  5605. bool enabled;
  5606. /* readonly */
  5607. bool enabledEffective;
  5608. /* readonly */
  5609. uint id;
  5610. uint maximumIterations;
  5611. /* readonly */
  5612. Node node;
  5613. /* readonly */
  5614. uint numAttributes;
  5615. ObjectAnimation objectAnimation;
  5616. /* readonly */
  5617. int refs;
  5618. /* readonly */
  5619. bool replicated;
  5620. bool temporary;
  5621. float tolerance;
  5622. /* readonly */
  5623. StringHash type;
  5624. /* readonly */
  5625. String typeName;
  5626. /* readonly */
  5627. int weakRefs;
  5628. };
  5629. class Image
  5630. {
  5631. public:
  5632. Image();
  5633. Image(const String&in);
  5634. // Methods:
  5635. void Clear(const Color&);
  5636. void ClearInt(uint);
  5637. bool FlipHorizontal();
  5638. bool FlipVertical();
  5639. Color GetPixel(int, int) const;
  5640. Color GetPixel(int, int, int) const;
  5641. Color GetPixelBilinear(float, float) const;
  5642. uint GetPixelInt(int, int) const;
  5643. uint GetPixelInt(int, int, int) const;
  5644. Color GetPixelTrilinear(float, float, float) const;
  5645. Image GetSubimage(const IntRect&) const;
  5646. bool HasSubscribedToEvent(Object, const String&);
  5647. bool HasSubscribedToEvent(const String&);
  5648. bool Load(File);
  5649. bool Load(VectorBuffer&);
  5650. bool Load(const String&);
  5651. bool LoadColorLUT(File);
  5652. bool LoadColorLUT(VectorBuffer&);
  5653. bool Resize(int, int);
  5654. bool Save(File) const;
  5655. bool Save(VectorBuffer&) const;
  5656. bool Save(const String&) const;
  5657. bool SaveBMP(const String&) const;
  5658. bool SaveDDS(const String&) const;
  5659. bool SaveJPG(const String&, int) const;
  5660. bool SavePNG(const String&) const;
  5661. bool SaveTGA(const String&) const;
  5662. bool SaveWEBP(const String&, float = 0.0f) const;
  5663. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5664. void SetPixel(int, int, const Color&);
  5665. void SetPixel(int, int, int, const Color&);
  5666. void SetPixelInt(int, int, int, uint);
  5667. void SetPixelInt(int, int, uint);
  5668. bool SetSize(int, int, int, uint);
  5669. bool SetSize(int, int, uint);
  5670. bool SetSubimage(const Image, const IntRect&) const;
  5671. // Properties:
  5672. /* readonly */
  5673. bool array;
  5674. /* readonly */
  5675. String category;
  5676. /* readonly */
  5677. uint components;
  5678. /* readonly */
  5679. bool compressed;
  5680. /* readonly */
  5681. CompressedFormat compressedFormat;
  5682. /* readonly */
  5683. bool cubemap;
  5684. /* readonly */
  5685. int depth;
  5686. /* readonly */
  5687. bool hasAlphaChannel;
  5688. /* readonly */
  5689. int height;
  5690. /* readonly */
  5691. uint memoryUse;
  5692. String name;
  5693. /* readonly */
  5694. uint numCompressedLevels;
  5695. /* readonly */
  5696. int refs;
  5697. /* readonly */
  5698. bool sRGB;
  5699. /* readonly */
  5700. StringHash type;
  5701. /* readonly */
  5702. String typeName;
  5703. /* readonly */
  5704. uint useTimer;
  5705. /* readonly */
  5706. int weakRefs;
  5707. /* readonly */
  5708. int width;
  5709. };
  5710. class IndexBuffer
  5711. {
  5712. public:
  5713. IndexBuffer();
  5714. // Methods:
  5715. VectorBuffer GetData();
  5716. bool HasSubscribedToEvent(Object, const String&);
  5717. bool HasSubscribedToEvent(const String&);
  5718. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5719. bool SetData(VectorBuffer&);
  5720. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5721. void SetSize(uint, bool, bool = false);
  5722. // Properties:
  5723. /* readonly */
  5724. String category;
  5725. /* readonly */
  5726. bool dynamic;
  5727. /* readonly */
  5728. uint indexCount;
  5729. /* readonly */
  5730. uint indexSize;
  5731. /* readonly */
  5732. int refs;
  5733. bool shadowed;
  5734. /* readonly */
  5735. StringHash type;
  5736. /* readonly */
  5737. String typeName;
  5738. /* readonly */
  5739. int weakRefs;
  5740. };
  5741. class Input
  5742. {
  5743. public:
  5744. // Methods:
  5745. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5746. void CenterMousePosition();
  5747. int GetKeyFromName(const String&) const;
  5748. int GetKeyFromScancode(int) const;
  5749. String GetKeyName(int) const;
  5750. int GetScancodeFromKey(int) const;
  5751. int GetScancodeFromName(const String&) const;
  5752. String GetScancodeName(int) const;
  5753. bool HasSubscribedToEvent(Object, const String&);
  5754. bool HasSubscribedToEvent(const String&);
  5755. uint LoadGestures(File);
  5756. uint LoadGestures(VectorBuffer&);
  5757. bool RecordGesture();
  5758. void RemoveAllGestures();
  5759. bool RemoveGesture(uint);
  5760. bool RemoveScreenJoystick(int);
  5761. void ResetMouseGrabbed();
  5762. void ResetMouseMode();
  5763. void ResetMouseVisible();
  5764. bool SaveGesture(File, uint);
  5765. bool SaveGesture(VectorBuffer&, uint);
  5766. bool SaveGestures(File);
  5767. bool SaveGestures(VectorBuffer&);
  5768. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5769. void SetMouseGrabbed(bool, bool = false);
  5770. void SetMouseMode(MouseMode, bool = false);
  5771. void SetMouseVisible(bool, bool = false);
  5772. // Properties:
  5773. /* readonly */
  5774. String category;
  5775. /* readonly */
  5776. bool focus;
  5777. /* readonly */
  5778. Vector2 inputScale;
  5779. /* readonly */
  5780. Array<JoystickState> joysticks;
  5781. /* readonly */
  5782. Array<JoystickState> joysticksByIndex;
  5783. /* readonly */
  5784. Array<JoystickState> joysticksByName;
  5785. /* readonly */
  5786. Array<bool> keyDown;
  5787. /* readonly */
  5788. Array<bool> keyPress;
  5789. /* readonly */
  5790. bool minimized;
  5791. /* readonly */
  5792. Array<bool> mouseButtonDown;
  5793. /* readonly */
  5794. Array<bool> mouseButtonPress;
  5795. bool mouseGrabbed;
  5796. /* readonly */
  5797. bool mouseLocked;
  5798. MouseMode mouseMode;
  5799. /* readonly */
  5800. IntVector2 mouseMove;
  5801. /* readonly */
  5802. int mouseMoveWheel;
  5803. /* readonly */
  5804. int mouseMoveX;
  5805. /* readonly */
  5806. int mouseMoveY;
  5807. IntVector2 mousePosition;
  5808. bool mouseVisible;
  5809. /* readonly */
  5810. uint numJoysticks;
  5811. /* readonly */
  5812. uint numTouches;
  5813. /* readonly */
  5814. Array<bool> qualifierDown;
  5815. /* readonly */
  5816. Array<bool> qualifierPress;
  5817. /* readonly */
  5818. int qualifiers;
  5819. /* readonly */
  5820. int refs;
  5821. /* readonly */
  5822. Array<bool> scancodeDown;
  5823. /* readonly */
  5824. Array<bool> scancodePress;
  5825. Array<bool> screenJoystickVisible;
  5826. /* readonly */
  5827. bool screenKeyboardSupport;
  5828. bool screenKeyboardVisible;
  5829. bool toggleFullscreen;
  5830. bool touchEmulation;
  5831. /* readonly */
  5832. Array<TouchState> touches;
  5833. /* readonly */
  5834. StringHash type;
  5835. /* readonly */
  5836. String typeName;
  5837. /* readonly */
  5838. int weakRefs;
  5839. };
  5840. class IntRect
  5841. {
  5842. public:
  5843. IntRect();
  5844. IntRect(const IntRect&in);
  5845. IntRect(int, int, int, int);
  5846. IntRect(const IntVector2&in, const IntVector2&in);
  5847. IntRect(int[]&inout);
  5848. // Methods:
  5849. int Clip(const IntRect&);
  5850. Intersection IsInside(const IntVector2&) const;
  5851. int Merge(const IntRect&);
  5852. // Properties:
  5853. int bottom;
  5854. /* readonly */
  5855. Array<int> data;
  5856. /* readonly */
  5857. int height;
  5858. int left;
  5859. int right;
  5860. /* readonly */
  5861. IntVector2 size;
  5862. int top;
  5863. /* readonly */
  5864. int width;
  5865. };
  5866. class IntVector2
  5867. {
  5868. public:
  5869. IntVector2();
  5870. IntVector2(const IntVector2&in);
  5871. IntVector2(int, int);
  5872. IntVector2(int[]&inout);
  5873. // Methods:
  5874. float Length() const;
  5875. uint ToHash() const;
  5876. String ToString() const;
  5877. // Properties:
  5878. /* readonly */
  5879. Array<int> data;
  5880. int x;
  5881. int y;
  5882. // Constants:
  5883. static const IntVector2 DOWN;
  5884. static const IntVector2 LEFT;
  5885. static const IntVector2 ONE;
  5886. static const IntVector2 RIGHT;
  5887. static const IntVector2 UP;
  5888. static const IntVector2 ZERO;
  5889. };
  5890. class IntVector3
  5891. {
  5892. public:
  5893. IntVector3();
  5894. IntVector3(const IntVector3&in);
  5895. IntVector3(int, int, int);
  5896. IntVector3(int[]&inout);
  5897. // Methods:
  5898. float Length() const;
  5899. uint ToHash() const;
  5900. String ToString() const;
  5901. // Properties:
  5902. /* readonly */
  5903. Array<int> data;
  5904. int x;
  5905. int y;
  5906. int z;
  5907. // Constants:
  5908. static const IntVector3 BACK;
  5909. static const IntVector3 DOWN;
  5910. static const IntVector3 FORWARD;
  5911. static const IntVector3 LEFT;
  5912. static const IntVector3 ONE;
  5913. static const IntVector3 RIGHT;
  5914. static const IntVector3 UP;
  5915. static const IntVector3 ZERO;
  5916. };
  5917. class JSONFile
  5918. {
  5919. public:
  5920. JSONFile();
  5921. JSONFile(const String&in);
  5922. // Methods:
  5923. bool FromString(const String&);
  5924. JSONValue& GetRoot();
  5925. bool HasSubscribedToEvent(Object, const String&);
  5926. bool HasSubscribedToEvent(const String&);
  5927. bool Load(File);
  5928. bool Load(VectorBuffer&);
  5929. bool Load(const String&);
  5930. bool Save(File) const;
  5931. bool Save(File, const String&) const;
  5932. bool Save(VectorBuffer&) const;
  5933. bool Save(const String&) const;
  5934. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5935. String ToString(const String& = String ( "\t" )) const;
  5936. // Properties:
  5937. /* readonly */
  5938. String category;
  5939. /* readonly */
  5940. uint memoryUse;
  5941. String name;
  5942. /* readonly */
  5943. int refs;
  5944. /* readonly */
  5945. JSONValue root;
  5946. /* readonly */
  5947. StringHash type;
  5948. /* readonly */
  5949. String typeName;
  5950. /* readonly */
  5951. uint useTimer;
  5952. /* readonly */
  5953. int weakRefs;
  5954. };
  5955. class JSONValue
  5956. {
  5957. public:
  5958. ~JSONValue();
  5959. JSONValue();
  5960. JSONValue(bool);
  5961. JSONValue(int);
  5962. JSONValue(uint);
  5963. JSONValue(float);
  5964. JSONValue(double);
  5965. JSONValue(const String&in);
  5966. JSONValue(const JSONValue&in);
  5967. // Methods:
  5968. void Clear();
  5969. bool Contains(const String&) const;
  5970. void Erase(const String&);
  5971. void Erase(uint, uint = 1);
  5972. bool GetBool(bool = false) const;
  5973. double GetDouble(double = 0) const;
  5974. float GetFloat(float = 0) const;
  5975. int GetInt(int = 0) const;
  5976. uint GetUInt(uint = 0) const;
  5977. Variant GetVariant(Variant = Variant ( )) const;
  5978. VariantMap GetVariantMap(VariantMap = VariantMap ( )) const;
  5979. void Insert(uint, const JSONValue&);
  5980. const JSONValue& Get(const String&) const;
  5981. void Pop();
  5982. void Push(const JSONValue&);
  5983. void Resize(uint);
  5984. void Set(const String&, const JSONValue&);
  5985. void SetVariant(const Variant&);
  5986. void SetVariantMap(const VariantMap&);
  5987. const String& GetString(const String& = String ( )) const;
  5988. // Properties:
  5989. /* readonly */
  5990. bool isArray;
  5991. /* readonly */
  5992. bool isBool;
  5993. /* readonly */
  5994. bool isNull;
  5995. /* readonly */
  5996. bool isNumber;
  5997. /* readonly */
  5998. bool isObject;
  5999. /* readonly */
  6000. bool isString;
  6001. /* readonly */
  6002. Array<String> keys;
  6003. /* readonly */
  6004. JSONNumberType numberType;
  6005. /* readonly */
  6006. String numberTypeName;
  6007. /* readonly */
  6008. uint size;
  6009. /* readonly */
  6010. JSONValueType valueType;
  6011. /* readonly */
  6012. String valueTypeName;
  6013. /* readonly */
  6014. Array<JSONValue> values;
  6015. };
  6016. class JoystickState
  6017. {
  6018. public:
  6019. // Properties:
  6020. /* readonly */
  6021. Array<float> axisPosition;
  6022. /* readonly */
  6023. Array<bool> buttonDown;
  6024. /* readonly */
  6025. Array<bool> buttonPress;
  6026. /* readonly */
  6027. bool controller;
  6028. /* readonly */
  6029. Array<int> hatPosition;
  6030. int joystickID;
  6031. String name;
  6032. /* readonly */
  6033. uint numAxes;
  6034. /* readonly */
  6035. uint numButtons;
  6036. /* readonly */
  6037. uint numHats;
  6038. };
  6039. class Light
  6040. {
  6041. public:
  6042. // Methods:
  6043. void ApplyAttributes();
  6044. void DrawDebugGeometry(DebugRenderer, bool);
  6045. Variant GetAttribute(const String&) const;
  6046. ValueAnimation GetAttributeAnimation(const String&) const;
  6047. float GetAttributeAnimationSpeed(const String&) const;
  6048. float GetAttributeAnimationTime(const String&) const;
  6049. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6050. Variant GetAttributeDefault(const String&) const;
  6051. bool GetInterceptNetworkUpdate(const String&) const;
  6052. bool HasSubscribedToEvent(Object, const String&);
  6053. bool HasSubscribedToEvent(const String&);
  6054. bool IsInView(Camera) const;
  6055. bool Load(File);
  6056. bool Load(VectorBuffer&);
  6057. bool LoadJSON(const JSONValue&);
  6058. bool LoadXML(const XMLElement&);
  6059. void MarkNetworkUpdate() const;
  6060. void Remove();
  6061. void RemoveAttributeAnimation(const String&);
  6062. void RemoveInstanceDefault();
  6063. void RemoveObjectAnimation();
  6064. void ResetToDefault();
  6065. bool Save(File) const;
  6066. bool Save(VectorBuffer&) const;
  6067. bool SaveJSON(JSONValue&) const;
  6068. bool SaveXML(XMLElement&) const;
  6069. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6070. void SetAnimationTime(float);
  6071. bool SetAttribute(const String&, const Variant&);
  6072. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6073. void SetAttributeAnimationSpeed(const String&, float);
  6074. void SetAttributeAnimationTime(const String&, float);
  6075. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6076. void SetInterceptNetworkUpdate(const String&, bool);
  6077. // Properties:
  6078. bool animationEnabled;
  6079. float aspectRatio;
  6080. /* readonly */
  6081. Array<Variant> attributeDefaults;
  6082. /* readonly */
  6083. Array<AttributeInfo> attributeInfos;
  6084. Array<Variant> attributes;
  6085. /* readonly */
  6086. BoundingBox boundingBox;
  6087. float brightness;
  6088. bool castShadows;
  6089. /* readonly */
  6090. String category;
  6091. Color color;
  6092. /* readonly */
  6093. Color colorFromTemperature;
  6094. float drawDistance;
  6095. /* readonly */
  6096. Color effectiveColor;
  6097. /* readonly */
  6098. float effectiveSpecularIntensity;
  6099. bool enabled;
  6100. /* readonly */
  6101. bool enabledEffective;
  6102. float fadeDistance;
  6103. float fov;
  6104. /* readonly */
  6105. Frustum frustum;
  6106. /* readonly */
  6107. uint id;
  6108. /* readonly */
  6109. bool inView;
  6110. float length;
  6111. uint lightMask;
  6112. LightType lightType;
  6113. float lodBias;
  6114. uint maxLights;
  6115. /* readonly */
  6116. bool negative;
  6117. /* readonly */
  6118. Node node;
  6119. /* readonly */
  6120. uint numAttributes;
  6121. /* readonly */
  6122. int numShadowSplits;
  6123. ObjectAnimation objectAnimation;
  6124. bool occludee;
  6125. bool occluder;
  6126. bool perVertex;
  6127. float radius;
  6128. Texture rampTexture;
  6129. float range;
  6130. /* readonly */
  6131. int refs;
  6132. /* readonly */
  6133. bool replicated;
  6134. BiasParameters shadowBias;
  6135. CascadeParameters shadowCascade;
  6136. float shadowDistance;
  6137. float shadowFadeDistance;
  6138. FocusParameters shadowFocus;
  6139. float shadowIntensity;
  6140. uint shadowMask;
  6141. float shadowMaxExtrusion;
  6142. float shadowNearFarRatio;
  6143. float shadowResolution;
  6144. Texture shapeTexture;
  6145. float specularIntensity;
  6146. float temperature;
  6147. bool temporary;
  6148. /* readonly */
  6149. StringHash type;
  6150. /* readonly */
  6151. String typeName;
  6152. bool usePhysicalValues;
  6153. uint viewMask;
  6154. /* readonly */
  6155. int weakRefs;
  6156. /* readonly */
  6157. BoundingBox worldBoundingBox;
  6158. uint zoneMask;
  6159. };
  6160. class LineEdit
  6161. {
  6162. public:
  6163. LineEdit();
  6164. LineEdit(const String&in);
  6165. // Methods:
  6166. void AddChild(UIElement);
  6167. void AddTag(const String&);
  6168. void AddTags(const String&, int8 = ';');
  6169. void ApplyAttributes();
  6170. void BringToFront();
  6171. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6172. void DisableLayoutUpdate();
  6173. IntVector2 ElementToScreen(const IntVector2&);
  6174. void EnableLayoutUpdate();
  6175. uint FindChild(UIElement) const;
  6176. Variant GetAttribute(const String&) const;
  6177. ValueAnimation GetAttributeAnimation(const String&) const;
  6178. float GetAttributeAnimationSpeed(const String&) const;
  6179. float GetAttributeAnimationTime(const String&) const;
  6180. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6181. Variant GetAttributeDefault(const String&) const;
  6182. UIElement GetChild(const String&, bool = false) const;
  6183. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6184. Array<UIElement> GetChildren(bool = false) const;
  6185. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6186. UIElement GetElementEventSender() const;
  6187. bool GetInterceptNetworkUpdate(const String&) const;
  6188. uint GetNumChildren(bool) const;
  6189. bool HasSubscribedToEvent(Object, const String&);
  6190. bool HasSubscribedToEvent(const String&);
  6191. bool HasTag(const String&) const;
  6192. void InsertChild(uint, UIElement);
  6193. bool IsChildOf(UIElement) const;
  6194. bool IsInside(IntVector2, bool);
  6195. bool IsInsideCombined(IntVector2, bool);
  6196. bool Load(File);
  6197. bool Load(VectorBuffer&);
  6198. UIElement LoadChildXML(XMLFile, XMLFile);
  6199. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6200. bool LoadJSON(const JSONValue&);
  6201. bool LoadXML(File);
  6202. bool LoadXML(VectorBuffer&);
  6203. bool LoadXML(XMLFile, XMLFile);
  6204. bool LoadXML(const XMLElement&, XMLFile);
  6205. bool LoadXML(const XMLElement&);
  6206. void MarkNetworkUpdate() const;
  6207. void Remove();
  6208. void RemoveAllChildren();
  6209. void RemoveAllTags();
  6210. void RemoveAttributeAnimation(const String&);
  6211. void RemoveChild(UIElement, uint = 0);
  6212. void RemoveChild(uint);
  6213. void RemoveInstanceDefault();
  6214. void RemoveObjectAnimation();
  6215. bool RemoveTag(const String&);
  6216. void ResetDeepEnabled();
  6217. void ResetToDefault();
  6218. bool Save(File) const;
  6219. bool Save(VectorBuffer&) const;
  6220. bool SaveJSON(JSONValue&) const;
  6221. bool SaveXML(File, const String& = "\t");
  6222. bool SaveXML(VectorBuffer&, const String& = "\t");
  6223. bool SaveXML(XMLElement&) const;
  6224. IntVector2 ScreenToElement(const IntVector2&);
  6225. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6226. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6227. void SetAnimationTime(float);
  6228. bool SetAttribute(const String&, const Variant&);
  6229. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6230. void SetAttributeAnimationSpeed(const String&, float);
  6231. void SetAttributeAnimationTime(const String&, float);
  6232. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6233. void SetDeepEnabled(bool);
  6234. void SetDisabledOffset(int, int);
  6235. void SetEnabledRecursive(bool);
  6236. void SetFixedHeight(int);
  6237. void SetFixedSize(int, int);
  6238. void SetFixedWidth(int);
  6239. void SetFullImageRect();
  6240. void SetHoverOffset(int, int);
  6241. void SetInterceptNetworkUpdate(const String&, bool);
  6242. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6243. void SetMaxAnchor(float, float);
  6244. void SetMaxSize(int, int);
  6245. void SetMinAnchor(float, float);
  6246. void SetMinSize(int, int);
  6247. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6248. void SetPivot(float, float);
  6249. void SetPosition(int, int);
  6250. void SetSize(int, int);
  6251. bool SetStyle(const String&, XMLFile = null);
  6252. bool SetStyle(const XMLElement&);
  6253. bool SetStyleAuto(XMLFile = null);
  6254. void UpdateLayout();
  6255. const Variant& GetVar(const StringHash&);
  6256. // Properties:
  6257. bool animationEnabled;
  6258. /* readonly */
  6259. Array<Variant> attributeDefaults;
  6260. /* readonly */
  6261. Array<AttributeInfo> attributeInfos;
  6262. Array<Variant> attributes;
  6263. BlendMode blendMode;
  6264. IntRect border;
  6265. bool bringToBack;
  6266. bool bringToFront;
  6267. /* readonly */
  6268. String category;
  6269. /* readonly */
  6270. IntVector2 childOffset;
  6271. /* readonly */
  6272. Array<UIElement> children;
  6273. IntRect clipBorder;
  6274. bool clipChildren;
  6275. /* writeonly */
  6276. Color color;
  6277. /* readonly */
  6278. bool colorGradient;
  6279. Array<Color> colors;
  6280. /* readonly */
  6281. IntRect combinedScreenRect;
  6282. /* readonly */
  6283. BorderImage cursor;
  6284. float cursorBlinkRate;
  6285. bool cursorMovable;
  6286. uint cursorPosition;
  6287. XMLFile defaultStyle;
  6288. /* readonly */
  6289. float derivedOpacity;
  6290. IntVector2 disabledOffset;
  6291. /* readonly */
  6292. uint dragButtonCombo;
  6293. /* readonly */
  6294. int dragButtonCount;
  6295. uint dragDropMode;
  6296. uint echoCharacter;
  6297. bool editable;
  6298. bool elementEventSender;
  6299. bool enableAnchor;
  6300. bool enabled;
  6301. /* readonly */
  6302. bool enabledSelf;
  6303. /* readonly */
  6304. bool fixedHeight;
  6305. /* readonly */
  6306. bool fixedSize;
  6307. /* readonly */
  6308. bool fixedWidth;
  6309. bool focus;
  6310. FocusMode focusMode;
  6311. int height;
  6312. HorizontalAlignment horizontalAlignment;
  6313. IntVector2 hoverOffset;
  6314. /* readonly */
  6315. bool hovering;
  6316. IntRect imageBorder;
  6317. IntRect imageRect;
  6318. int indent;
  6319. int indentSpacing;
  6320. /* readonly */
  6321. int indentWidth;
  6322. bool internal;
  6323. IntRect layoutBorder;
  6324. Vector2 layoutFlexScale;
  6325. LayoutMode layoutMode;
  6326. int layoutSpacing;
  6327. Material material;
  6328. Vector2 maxAnchor;
  6329. int maxHeight;
  6330. uint maxLength;
  6331. IntVector2 maxOffset;
  6332. IntVector2 maxSize;
  6333. int maxWidth;
  6334. Vector2 minAnchor;
  6335. int minHeight;
  6336. IntVector2 minOffset;
  6337. IntVector2 minSize;
  6338. int minWidth;
  6339. String name;
  6340. /* readonly */
  6341. uint numAllChildren;
  6342. /* readonly */
  6343. uint numAttributes;
  6344. /* readonly */
  6345. uint numChildren;
  6346. ObjectAnimation objectAnimation;
  6347. float opacity;
  6348. UIElement parent;
  6349. Vector2 pivot;
  6350. IntVector2 position;
  6351. int priority;
  6352. /* readonly */
  6353. int refs;
  6354. /* readonly */
  6355. UIElement root;
  6356. /* readonly */
  6357. IntVector2 screenPosition;
  6358. bool selected;
  6359. IntVector2 size;
  6360. bool sortChildren;
  6361. String style;
  6362. /* readonly */
  6363. Array<String> tags;
  6364. bool temporary;
  6365. String text;
  6366. bool textCopyable;
  6367. /* readonly */
  6368. Text textElement;
  6369. bool textSelectable;
  6370. Texture texture;
  6371. bool tiled;
  6372. TraversalMode traversalMode;
  6373. /* readonly */
  6374. StringHash type;
  6375. /* readonly */
  6376. String typeName;
  6377. bool useDerivedOpacity;
  6378. /* readonly */
  6379. VariantMap vars;
  6380. VerticalAlignment verticalAlignment;
  6381. bool visible;
  6382. /* readonly */
  6383. bool visibleEffective;
  6384. /* readonly */
  6385. int weakRefs;
  6386. int width;
  6387. };
  6388. class ListView
  6389. {
  6390. public:
  6391. ListView();
  6392. ListView(const String&in);
  6393. // Methods:
  6394. void AddChild(UIElement);
  6395. void AddItem(UIElement);
  6396. void AddSelection(uint);
  6397. void AddTag(const String&);
  6398. void AddTags(const String&, int8 = ';');
  6399. void ApplyAttributes();
  6400. void BringToFront();
  6401. void ChangeSelection(int, bool);
  6402. void ClearSelection();
  6403. void CopySelectedItemsToClipboard();
  6404. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6405. void DisableInternalLayoutUpdate();
  6406. void DisableLayoutUpdate();
  6407. IntVector2 ElementToScreen(const IntVector2&);
  6408. void EnableInternalLayoutUpdate();
  6409. void EnableLayoutUpdate();
  6410. void Expand(uint, bool, bool = false);
  6411. uint FindChild(UIElement) const;
  6412. uint FindItem(UIElement);
  6413. Variant GetAttribute(const String&) const;
  6414. ValueAnimation GetAttributeAnimation(const String&) const;
  6415. float GetAttributeAnimationSpeed(const String&) const;
  6416. float GetAttributeAnimationTime(const String&) const;
  6417. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6418. Variant GetAttributeDefault(const String&) const;
  6419. UIElement GetChild(const String&, bool = false) const;
  6420. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6421. Array<UIElement> GetChildren(bool = false) const;
  6422. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6423. UIElement GetElementEventSender() const;
  6424. bool GetInterceptNetworkUpdate(const String&) const;
  6425. Array<UIElement> GetItems() const;
  6426. uint GetNumChildren(bool) const;
  6427. bool HasSubscribedToEvent(Object, const String&);
  6428. bool HasSubscribedToEvent(const String&);
  6429. bool HasTag(const String&) const;
  6430. void InsertChild(uint, UIElement);
  6431. void InsertItem(uint, UIElement, UIElement = null);
  6432. bool IsChildOf(UIElement) const;
  6433. bool IsExpanded(uint) const;
  6434. bool IsInside(IntVector2, bool);
  6435. bool IsInsideCombined(IntVector2, bool);
  6436. bool IsSelected(uint) const;
  6437. bool Load(File);
  6438. bool Load(VectorBuffer&);
  6439. UIElement LoadChildXML(XMLFile, XMLFile);
  6440. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6441. bool LoadJSON(const JSONValue&);
  6442. bool LoadXML(File);
  6443. bool LoadXML(VectorBuffer&);
  6444. bool LoadXML(XMLFile, XMLFile);
  6445. bool LoadXML(const XMLElement&, XMLFile);
  6446. bool LoadXML(const XMLElement&);
  6447. void MarkNetworkUpdate() const;
  6448. void Remove();
  6449. void RemoveAllChildren();
  6450. void RemoveAllItems();
  6451. void RemoveAllTags();
  6452. void RemoveAttributeAnimation(const String&);
  6453. void RemoveChild(UIElement, uint = 0);
  6454. void RemoveChild(uint);
  6455. void RemoveInstanceDefault();
  6456. void RemoveItem(UIElement, uint = 0);
  6457. void RemoveItem(uint);
  6458. void RemoveObjectAnimation();
  6459. void RemoveSelection(uint);
  6460. bool RemoveTag(const String&);
  6461. void ResetDeepEnabled();
  6462. void ResetToDefault();
  6463. bool Save(File) const;
  6464. bool Save(VectorBuffer&) const;
  6465. bool SaveJSON(JSONValue&) const;
  6466. bool SaveXML(File, const String& = "\t");
  6467. bool SaveXML(VectorBuffer&, const String& = "\t");
  6468. bool SaveXML(XMLElement&) const;
  6469. IntVector2 ScreenToElement(const IntVector2&);
  6470. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6471. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6472. void SetAnimationTime(float);
  6473. bool SetAttribute(const String&, const Variant&);
  6474. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6475. void SetAttributeAnimationSpeed(const String&, float);
  6476. void SetAttributeAnimationTime(const String&, float);
  6477. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6478. void SetDeepEnabled(bool);
  6479. void SetEnabledRecursive(bool);
  6480. void SetFixedHeight(int);
  6481. void SetFixedSize(int, int);
  6482. void SetFixedWidth(int);
  6483. void SetInterceptNetworkUpdate(const String&, bool);
  6484. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6485. void SetMaxAnchor(float, float);
  6486. void SetMaxSize(int, int);
  6487. void SetMinAnchor(float, float);
  6488. void SetMinSize(int, int);
  6489. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6490. void SetPivot(float, float);
  6491. void SetPosition(int, int);
  6492. void SetScrollBarsVisible(bool, bool);
  6493. void SetSelections(Array<uint>);
  6494. void SetSize(int, int);
  6495. bool SetStyle(const String&, XMLFile = null);
  6496. bool SetStyle(const XMLElement&);
  6497. bool SetStyleAuto(XMLFile = null);
  6498. void SetViewPosition(int, int);
  6499. void ToggleExpand(uint, bool = false);
  6500. void ToggleSelection(uint);
  6501. void UpdateInternalLayout();
  6502. void UpdateLayout();
  6503. const Variant& GetVar(const StringHash&);
  6504. // Properties:
  6505. bool animationEnabled;
  6506. /* readonly */
  6507. Array<Variant> attributeDefaults;
  6508. /* readonly */
  6509. Array<AttributeInfo> attributeInfos;
  6510. Array<Variant> attributes;
  6511. bool autoDisableChildren;
  6512. float autoDisableThreshold;
  6513. int baseIndent;
  6514. bool bringToBack;
  6515. bool bringToFront;
  6516. /* readonly */
  6517. String category;
  6518. /* readonly */
  6519. IntVector2 childOffset;
  6520. /* readonly */
  6521. Array<UIElement> children;
  6522. bool clearSelectionOnDefocus;
  6523. IntRect clipBorder;
  6524. bool clipChildren;
  6525. /* writeonly */
  6526. Color color;
  6527. /* readonly */
  6528. bool colorGradient;
  6529. Array<Color> colors;
  6530. /* readonly */
  6531. IntRect combinedScreenRect;
  6532. /* readonly */
  6533. UIElement contentElement;
  6534. XMLFile defaultStyle;
  6535. /* readonly */
  6536. float derivedOpacity;
  6537. /* readonly */
  6538. uint dragButtonCombo;
  6539. /* readonly */
  6540. int dragButtonCount;
  6541. uint dragDropMode;
  6542. bool editable;
  6543. bool elementEventSender;
  6544. bool enableAnchor;
  6545. bool enabled;
  6546. /* readonly */
  6547. bool enabledSelf;
  6548. /* readonly */
  6549. bool fixedHeight;
  6550. /* readonly */
  6551. bool fixedSize;
  6552. /* readonly */
  6553. bool fixedWidth;
  6554. bool focus;
  6555. FocusMode focusMode;
  6556. int height;
  6557. bool hierarchyMode;
  6558. HighlightMode highlightMode;
  6559. HorizontalAlignment horizontalAlignment;
  6560. /* readonly */
  6561. ScrollBar horizontalScrollBar;
  6562. /* readonly */
  6563. bool hovering;
  6564. int indent;
  6565. int indentSpacing;
  6566. /* readonly */
  6567. int indentWidth;
  6568. bool internal;
  6569. /* readonly */
  6570. Array<UIElement> items;
  6571. IntRect layoutBorder;
  6572. Vector2 layoutFlexScale;
  6573. LayoutMode layoutMode;
  6574. int layoutSpacing;
  6575. Vector2 maxAnchor;
  6576. int maxHeight;
  6577. IntVector2 maxOffset;
  6578. IntVector2 maxSize;
  6579. int maxWidth;
  6580. Vector2 minAnchor;
  6581. int minHeight;
  6582. IntVector2 minOffset;
  6583. IntVector2 minSize;
  6584. int minWidth;
  6585. bool multiselect;
  6586. String name;
  6587. /* readonly */
  6588. uint numAllChildren;
  6589. /* readonly */
  6590. uint numAttributes;
  6591. /* readonly */
  6592. uint numChildren;
  6593. /* readonly */
  6594. uint numItems;
  6595. ObjectAnimation objectAnimation;
  6596. float opacity;
  6597. float pageStep;
  6598. UIElement parent;
  6599. Vector2 pivot;
  6600. IntVector2 position;
  6601. int priority;
  6602. /* readonly */
  6603. int refs;
  6604. /* readonly */
  6605. UIElement root;
  6606. /* readonly */
  6607. IntVector2 screenPosition;
  6608. bool scrollBarsAutoVisible;
  6609. float scrollDeceleration;
  6610. /* readonly */
  6611. BorderImage scrollPanel;
  6612. float scrollSnapEpsilon;
  6613. float scrollStep;
  6614. bool selectOnClickEnd;
  6615. bool selected;
  6616. /* readonly */
  6617. UIElement selectedItem;
  6618. /* readonly */
  6619. Array<UIElement> selectedItems;
  6620. uint selection;
  6621. /* readonly */
  6622. Array<uint> selections;
  6623. IntVector2 size;
  6624. bool sortChildren;
  6625. String style;
  6626. /* readonly */
  6627. Array<String> tags;
  6628. bool temporary;
  6629. TraversalMode traversalMode;
  6630. /* readonly */
  6631. StringHash type;
  6632. /* readonly */
  6633. String typeName;
  6634. bool useDerivedOpacity;
  6635. /* readonly */
  6636. VariantMap vars;
  6637. VerticalAlignment verticalAlignment;
  6638. /* readonly */
  6639. ScrollBar verticalScrollBar;
  6640. IntVector2 viewPosition;
  6641. bool visible;
  6642. /* readonly */
  6643. bool visibleEffective;
  6644. /* readonly */
  6645. int weakRefs;
  6646. int width;
  6647. };
  6648. class Localization
  6649. {
  6650. public:
  6651. // Methods:
  6652. String Get(const String&);
  6653. String GetLanguage(int);
  6654. int GetLanguageIndex(const String&);
  6655. bool HasSubscribedToEvent(Object, const String&);
  6656. bool HasSubscribedToEvent(const String&);
  6657. void LoadJSONFile(const String&, const String = String ( "" ) const);
  6658. void LoadMultipleLanguageJSON(const JSONValue&);
  6659. void LoadSingleLanguageJSON(const JSONValue&, const String& = String ( "" ) const);
  6660. void Reset();
  6661. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6662. void SetLanguage(const String&);
  6663. void SetLanguage(int);
  6664. // Properties:
  6665. /* readonly */
  6666. String category;
  6667. /* readonly */
  6668. String language;
  6669. /* readonly */
  6670. int languageIndex;
  6671. /* readonly */
  6672. int numLanguages;
  6673. /* readonly */
  6674. int refs;
  6675. /* readonly */
  6676. StringHash type;
  6677. /* readonly */
  6678. String typeName;
  6679. /* readonly */
  6680. int weakRefs;
  6681. };
  6682. class Log
  6683. {
  6684. public:
  6685. // Methods:
  6686. void Close();
  6687. void Debug(const String&);
  6688. void Error(const String&);
  6689. bool HasSubscribedToEvent(Object, const String&);
  6690. bool HasSubscribedToEvent(const String&);
  6691. void Info(const String&);
  6692. void Open(const String&);
  6693. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6694. void Trace(const String&);
  6695. void Warning(const String&);
  6696. void Write(const String&, bool = false);
  6697. // Properties:
  6698. /* readonly */
  6699. String category;
  6700. /* readonly */
  6701. String lastMessage;
  6702. int level;
  6703. bool quiet;
  6704. /* readonly */
  6705. int refs;
  6706. bool timeStamp;
  6707. /* readonly */
  6708. StringHash type;
  6709. /* readonly */
  6710. String typeName;
  6711. /* readonly */
  6712. int weakRefs;
  6713. };
  6714. class Material
  6715. {
  6716. public:
  6717. Material();
  6718. Material(const String&in);
  6719. // Methods:
  6720. Material Clone(const String& = String ( )) const;
  6721. Pass GetPass(uint, const String&);
  6722. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6723. float GetShaderParameterAnimationSpeed(const String&) const;
  6724. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6725. bool HasSubscribedToEvent(Object, const String&);
  6726. bool HasSubscribedToEvent(const String&);
  6727. bool Load(File);
  6728. bool Load(VectorBuffer&);
  6729. bool Load(const JSONValue&);
  6730. bool Load(const String&);
  6731. bool Load(const XMLElement&);
  6732. void RemoveShaderParameter(const String&);
  6733. bool Save(File) const;
  6734. bool Save(JSONValue&) const;
  6735. bool Save(VectorBuffer&) const;
  6736. bool Save(XMLElement&) const;
  6737. bool Save(const String&) const;
  6738. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6739. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6740. void SetShaderParameterAnimationSpeed(const String&, float);
  6741. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6742. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6743. void SetUVTransform(const Vector2&, float, const Vector2&);
  6744. void SetUVTransform(const Vector2&, float, float);
  6745. void SortTechniques();
  6746. // Properties:
  6747. bool alphaToCoverage;
  6748. /* readonly */
  6749. String category;
  6750. CullMode cullMode;
  6751. BiasParameters depthBias;
  6752. FillMode fillMode;
  6753. bool lineAntiAlias;
  6754. /* readonly */
  6755. uint memoryUse;
  6756. String name;
  6757. uint numTechniques;
  6758. bool occlusion;
  6759. String pixelShaderDefines;
  6760. /* readonly */
  6761. int refs;
  6762. uint8 renderOrder;
  6763. Scene scene;
  6764. /* readonly */
  6765. Array<String> shaderParameterNames;
  6766. Array<Variant> shaderParameters;
  6767. CullMode shadowCullMode;
  6768. /* readonly */
  6769. Array<TechniqueEntry> techniqueEntries;
  6770. /* readonly */
  6771. Array<Technique> techniques;
  6772. Array<Texture> textures;
  6773. /* readonly */
  6774. StringHash type;
  6775. /* readonly */
  6776. String typeName;
  6777. /* readonly */
  6778. uint useTimer;
  6779. String vertexShaderDefines;
  6780. /* readonly */
  6781. int weakRefs;
  6782. };
  6783. class Matrix2
  6784. {
  6785. public:
  6786. Matrix2();
  6787. Matrix2(const Matrix2&in);
  6788. Matrix2(float, float, float, float);
  6789. // Methods:
  6790. bool Equals(const Matrix2&) const;
  6791. Matrix2 Inverse() const;
  6792. Vector2 Scale() const;
  6793. Matrix2 Scaled(const Vector2&) const;
  6794. void SetScale(const Vector2&);
  6795. void SetScale(float);
  6796. String ToString() const;
  6797. Matrix2 Transpose() const;
  6798. // Properties:
  6799. float m00;
  6800. float m01;
  6801. float m10;
  6802. float m11;
  6803. };
  6804. class Matrix3
  6805. {
  6806. public:
  6807. Matrix3();
  6808. Matrix3(const Matrix3&in);
  6809. Matrix3(float, float, float, float, float, float, float, float, float);
  6810. // Methods:
  6811. bool Equals(const Matrix3&) const;
  6812. Matrix3 Inverse() const;
  6813. Vector3 Scale() const;
  6814. Matrix3 Scaled(const Vector3&) const;
  6815. void SetScale(const Vector3&);
  6816. void SetScale(float);
  6817. String ToString() const;
  6818. Matrix3 Transpose() const;
  6819. // Properties:
  6820. float m00;
  6821. float m01;
  6822. float m02;
  6823. float m10;
  6824. float m11;
  6825. float m12;
  6826. float m20;
  6827. float m21;
  6828. float m22;
  6829. };
  6830. class Matrix3x4
  6831. {
  6832. public:
  6833. Matrix3x4();
  6834. Matrix3x4(const Matrix3x4&in);
  6835. Matrix3x4(const Matrix3&in);
  6836. Matrix3x4(const Matrix4&in);
  6837. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6838. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6839. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6840. // Methods:
  6841. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6842. bool Equals(const Matrix3x4&) const;
  6843. Matrix3x4 Inverse() const;
  6844. Quaternion Rotation() const;
  6845. Matrix3 RotationMatrix() const;
  6846. Vector3 Scale() const;
  6847. void SetRotation(const Matrix3&);
  6848. void SetScale(const Vector3&);
  6849. void SetScale(float);
  6850. void SetTranslation(const Vector3&);
  6851. Matrix3 ToMatrix3() const;
  6852. Matrix4 ToMatrix4() const;
  6853. String ToString() const;
  6854. Vector3 Translation() const;
  6855. // Properties:
  6856. float m00;
  6857. float m01;
  6858. float m02;
  6859. float m03;
  6860. float m10;
  6861. float m11;
  6862. float m12;
  6863. float m13;
  6864. float m20;
  6865. float m21;
  6866. float m22;
  6867. float m23;
  6868. };
  6869. class Matrix4
  6870. {
  6871. public:
  6872. Matrix4();
  6873. Matrix4(const Matrix4&in);
  6874. Matrix4(const Matrix3&in);
  6875. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6876. // Methods:
  6877. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6878. bool Equals(const Matrix4&) const;
  6879. Matrix4 Inverse() const;
  6880. Quaternion Rotation() const;
  6881. Matrix3 RotationMatrix() const;
  6882. Vector3 Scale() const;
  6883. void SetRotation(const Matrix3&);
  6884. void SetScale(const Vector3&);
  6885. void SetScale(float);
  6886. void SetTranslation(const Vector3&);
  6887. Matrix3 ToMatrix3() const;
  6888. String ToString() const;
  6889. Vector3 Translation() const;
  6890. Matrix4 Transpose() const;
  6891. // Properties:
  6892. float m00;
  6893. float m01;
  6894. float m02;
  6895. float m03;
  6896. float m10;
  6897. float m11;
  6898. float m12;
  6899. float m13;
  6900. float m20;
  6901. float m21;
  6902. float m22;
  6903. float m23;
  6904. float m30;
  6905. float m31;
  6906. float m32;
  6907. float m33;
  6908. };
  6909. class Menu
  6910. {
  6911. public:
  6912. Menu();
  6913. Menu(const String&in);
  6914. // Methods:
  6915. void AddChild(UIElement);
  6916. void AddTag(const String&);
  6917. void AddTags(const String&, int8 = ';');
  6918. void ApplyAttributes();
  6919. void BringToFront();
  6920. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6921. void DisableLayoutUpdate();
  6922. IntVector2 ElementToScreen(const IntVector2&);
  6923. void EnableLayoutUpdate();
  6924. uint FindChild(UIElement) const;
  6925. Variant GetAttribute(const String&) const;
  6926. ValueAnimation GetAttributeAnimation(const String&) const;
  6927. float GetAttributeAnimationSpeed(const String&) const;
  6928. float GetAttributeAnimationTime(const String&) const;
  6929. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6930. Variant GetAttributeDefault(const String&) const;
  6931. UIElement GetChild(const String&, bool = false) const;
  6932. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6933. Array<UIElement> GetChildren(bool = false) const;
  6934. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6935. UIElement GetElementEventSender() const;
  6936. bool GetInterceptNetworkUpdate(const String&) const;
  6937. uint GetNumChildren(bool) const;
  6938. bool HasSubscribedToEvent(Object, const String&);
  6939. bool HasSubscribedToEvent(const String&);
  6940. bool HasTag(const String&) const;
  6941. void InsertChild(uint, UIElement);
  6942. bool IsChildOf(UIElement) const;
  6943. bool IsInside(IntVector2, bool);
  6944. bool IsInsideCombined(IntVector2, bool);
  6945. bool Load(File);
  6946. bool Load(VectorBuffer&);
  6947. UIElement LoadChildXML(XMLFile, XMLFile);
  6948. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6949. bool LoadJSON(const JSONValue&);
  6950. bool LoadXML(File);
  6951. bool LoadXML(VectorBuffer&);
  6952. bool LoadXML(XMLFile, XMLFile);
  6953. bool LoadXML(const XMLElement&, XMLFile);
  6954. bool LoadXML(const XMLElement&);
  6955. void MarkNetworkUpdate() const;
  6956. void Remove();
  6957. void RemoveAllChildren();
  6958. void RemoveAllTags();
  6959. void RemoveAttributeAnimation(const String&);
  6960. void RemoveChild(UIElement, uint = 0);
  6961. void RemoveChild(uint);
  6962. void RemoveInstanceDefault();
  6963. void RemoveObjectAnimation();
  6964. bool RemoveTag(const String&);
  6965. void ResetDeepEnabled();
  6966. void ResetToDefault();
  6967. bool Save(File) const;
  6968. bool Save(VectorBuffer&) const;
  6969. bool SaveJSON(JSONValue&) const;
  6970. bool SaveXML(File, const String& = "\t");
  6971. bool SaveXML(VectorBuffer&, const String& = "\t");
  6972. bool SaveXML(XMLElement&) const;
  6973. IntVector2 ScreenToElement(const IntVector2&);
  6974. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6975. void SetAccelerator(int, int);
  6976. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6977. void SetAnimationTime(float);
  6978. bool SetAttribute(const String&, const Variant&);
  6979. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6980. void SetAttributeAnimationSpeed(const String&, float);
  6981. void SetAttributeAnimationTime(const String&, float);
  6982. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6983. void SetDeepEnabled(bool);
  6984. void SetDisabledOffset(int, int);
  6985. void SetEnabledRecursive(bool);
  6986. void SetFixedHeight(int);
  6987. void SetFixedSize(int, int);
  6988. void SetFixedWidth(int);
  6989. void SetFullImageRect();
  6990. void SetHoverOffset(int, int);
  6991. void SetInterceptNetworkUpdate(const String&, bool);
  6992. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6993. void SetMaxAnchor(float, float);
  6994. void SetMaxSize(int, int);
  6995. void SetMinAnchor(float, float);
  6996. void SetMinSize(int, int);
  6997. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6998. void SetPivot(float, float);
  6999. void SetPopupOffset(int, int);
  7000. void SetPosition(int, int);
  7001. void SetPressedChildOffset(int, int);
  7002. void SetPressedOffset(int, int);
  7003. void SetRepeat(float, float);
  7004. void SetSize(int, int);
  7005. bool SetStyle(const String&, XMLFile = null);
  7006. bool SetStyle(const XMLElement&);
  7007. bool SetStyleAuto(XMLFile = null);
  7008. void UpdateLayout();
  7009. const Variant& GetVar(const StringHash&);
  7010. // Properties:
  7011. /* readonly */
  7012. int acceleratorKey;
  7013. /* readonly */
  7014. int acceleratorQualifiers;
  7015. bool animationEnabled;
  7016. /* readonly */
  7017. Array<Variant> attributeDefaults;
  7018. /* readonly */
  7019. Array<AttributeInfo> attributeInfos;
  7020. Array<Variant> attributes;
  7021. BlendMode blendMode;
  7022. IntRect border;
  7023. bool bringToBack;
  7024. bool bringToFront;
  7025. /* readonly */
  7026. String category;
  7027. /* readonly */
  7028. IntVector2 childOffset;
  7029. /* readonly */
  7030. Array<UIElement> children;
  7031. IntRect clipBorder;
  7032. bool clipChildren;
  7033. /* writeonly */
  7034. Color color;
  7035. /* readonly */
  7036. bool colorGradient;
  7037. Array<Color> colors;
  7038. /* readonly */
  7039. IntRect combinedScreenRect;
  7040. XMLFile defaultStyle;
  7041. /* readonly */
  7042. float derivedOpacity;
  7043. IntVector2 disabledOffset;
  7044. /* readonly */
  7045. uint dragButtonCombo;
  7046. /* readonly */
  7047. int dragButtonCount;
  7048. uint dragDropMode;
  7049. bool editable;
  7050. bool elementEventSender;
  7051. bool enableAnchor;
  7052. bool enabled;
  7053. /* readonly */
  7054. bool enabledSelf;
  7055. /* readonly */
  7056. bool fixedHeight;
  7057. /* readonly */
  7058. bool fixedSize;
  7059. /* readonly */
  7060. bool fixedWidth;
  7061. bool focus;
  7062. FocusMode focusMode;
  7063. int height;
  7064. HorizontalAlignment horizontalAlignment;
  7065. IntVector2 hoverOffset;
  7066. /* readonly */
  7067. bool hovering;
  7068. IntRect imageBorder;
  7069. IntRect imageRect;
  7070. int indent;
  7071. int indentSpacing;
  7072. /* readonly */
  7073. int indentWidth;
  7074. bool internal;
  7075. IntRect layoutBorder;
  7076. Vector2 layoutFlexScale;
  7077. LayoutMode layoutMode;
  7078. int layoutSpacing;
  7079. Material material;
  7080. Vector2 maxAnchor;
  7081. int maxHeight;
  7082. IntVector2 maxOffset;
  7083. IntVector2 maxSize;
  7084. int maxWidth;
  7085. Vector2 minAnchor;
  7086. int minHeight;
  7087. IntVector2 minOffset;
  7088. IntVector2 minSize;
  7089. int minWidth;
  7090. String name;
  7091. /* readonly */
  7092. uint numAllChildren;
  7093. /* readonly */
  7094. uint numAttributes;
  7095. /* readonly */
  7096. uint numChildren;
  7097. ObjectAnimation objectAnimation;
  7098. float opacity;
  7099. UIElement parent;
  7100. Vector2 pivot;
  7101. UIElement popup;
  7102. IntVector2 popupOffset;
  7103. IntVector2 position;
  7104. /* readonly */
  7105. bool pressed;
  7106. IntVector2 pressedChildOffset;
  7107. IntVector2 pressedOffset;
  7108. int priority;
  7109. /* readonly */
  7110. int refs;
  7111. float repeatDelay;
  7112. float repeatRate;
  7113. /* readonly */
  7114. UIElement root;
  7115. /* readonly */
  7116. IntVector2 screenPosition;
  7117. bool selected;
  7118. bool showPopup;
  7119. IntVector2 size;
  7120. bool sortChildren;
  7121. String style;
  7122. /* readonly */
  7123. Array<String> tags;
  7124. bool temporary;
  7125. Texture texture;
  7126. bool tiled;
  7127. TraversalMode traversalMode;
  7128. /* readonly */
  7129. StringHash type;
  7130. /* readonly */
  7131. String typeName;
  7132. bool useDerivedOpacity;
  7133. /* readonly */
  7134. VariantMap vars;
  7135. VerticalAlignment verticalAlignment;
  7136. bool visible;
  7137. /* readonly */
  7138. bool visibleEffective;
  7139. /* readonly */
  7140. int weakRefs;
  7141. int width;
  7142. };
  7143. class MessageBox
  7144. {
  7145. public:
  7146. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7147. // Methods:
  7148. bool HasSubscribedToEvent(Object, const String&);
  7149. bool HasSubscribedToEvent(const String&);
  7150. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7151. // Properties:
  7152. /* readonly */
  7153. String category;
  7154. String message;
  7155. /* readonly */
  7156. int refs;
  7157. String title;
  7158. /* readonly */
  7159. StringHash type;
  7160. /* readonly */
  7161. String typeName;
  7162. /* readonly */
  7163. int weakRefs;
  7164. /* readonly */
  7165. UIElement window;
  7166. };
  7167. class Model
  7168. {
  7169. public:
  7170. Model();
  7171. Model(const String&in);
  7172. // Methods:
  7173. void AddMetadata(const String&, const Variant&);
  7174. Model Clone(const String& = String ( )) const;
  7175. Geometry GetGeometry(uint, uint) const;
  7176. bool HasSubscribedToEvent(Object, const String&);
  7177. bool HasSubscribedToEvent(const String&);
  7178. bool Load(File);
  7179. bool Load(VectorBuffer&);
  7180. bool Load(const String&);
  7181. void RemoveAllMetadata();
  7182. void RemoveMetadata(const String&);
  7183. bool Save(File) const;
  7184. bool Save(VectorBuffer&) const;
  7185. bool Save(const String&) const;
  7186. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7187. bool SetGeometry(uint, uint, Geometry);
  7188. bool SetIndexBuffers(Array<IndexBuffer>);
  7189. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7190. // Properties:
  7191. BoundingBox boundingBox;
  7192. /* readonly */
  7193. String category;
  7194. Array<Vector3> geometryCenters;
  7195. /* readonly */
  7196. bool hasMetadata;
  7197. /* readonly */
  7198. uint memoryUse;
  7199. Array<Variant> metadata;
  7200. String name;
  7201. uint numGeometries;
  7202. Array<uint> numGeometryLodLevels;
  7203. /* readonly */
  7204. uint numMorphs;
  7205. /* readonly */
  7206. int refs;
  7207. /* readonly */
  7208. Skeleton skeleton;
  7209. /* readonly */
  7210. StringHash type;
  7211. /* readonly */
  7212. String typeName;
  7213. /* readonly */
  7214. uint useTimer;
  7215. /* readonly */
  7216. int weakRefs;
  7217. };
  7218. class NamedPipe
  7219. {
  7220. public:
  7221. NamedPipe();
  7222. NamedPipe(const String&in, bool);
  7223. // Methods:
  7224. void Close();
  7225. bool HasSubscribedToEvent(Object, const String&);
  7226. bool HasSubscribedToEvent(const String&);
  7227. bool Open(const String&, bool);
  7228. Array<uint8> Read(uint);
  7229. bool ReadBool();
  7230. BoundingBox ReadBoundingBox();
  7231. int8 ReadByte();
  7232. Color ReadColor();
  7233. double ReadDouble();
  7234. String ReadFileID();
  7235. float ReadFloat();
  7236. int ReadInt();
  7237. int64 ReadInt64();
  7238. IntRect ReadIntRect();
  7239. IntVector2 ReadIntVector2();
  7240. String ReadLine();
  7241. Matrix3 ReadMatrix3();
  7242. Matrix3x4 ReadMatrix3x4();
  7243. Matrix4 ReadMatrix4();
  7244. uint ReadNetID();
  7245. Quaternion ReadPackedQuaternion();
  7246. Vector3 ReadPackedVector3(float);
  7247. Quaternion ReadQuaternion();
  7248. int16 ReadShort();
  7249. String ReadString();
  7250. StringHash ReadStringHash();
  7251. uint8 ReadUByte();
  7252. uint ReadUInt();
  7253. uint64 ReadUInt64();
  7254. uint16 ReadUShort();
  7255. uint ReadVLE();
  7256. Variant ReadVariant();
  7257. VariantMap ReadVariantMap();
  7258. Vector2 ReadVector2();
  7259. Vector3 ReadVector3();
  7260. Vector4 ReadVector4();
  7261. VectorBuffer ReadVectorBuffer(uint);
  7262. uint Seek(uint);
  7263. uint SeekRelative(int);
  7264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7265. uint Tell() const;
  7266. uint Write(Array<uint8>);
  7267. bool WriteBool(bool);
  7268. bool WriteBoundingBox(const BoundingBox&);
  7269. bool WriteByte(int8);
  7270. bool WriteColor(const Color&);
  7271. bool WriteDouble(double);
  7272. bool WriteFileID(const String&);
  7273. bool WriteFloat(float);
  7274. bool WriteInt(int);
  7275. bool WriteInt64(int64);
  7276. bool WriteIntRect(const IntRect&);
  7277. bool WriteIntVector2(const IntVector2&);
  7278. bool WriteLine(const String&);
  7279. bool WriteMatrix3(const Matrix3&);
  7280. bool WriteMatrix3x4(const Matrix3x4&);
  7281. bool WriteMatrix4(const Matrix4&);
  7282. bool WriteNetID(uint);
  7283. bool WritePackedQuaternion(const Quaternion&);
  7284. bool WritePackedVector3(const Vector3&, float);
  7285. bool WriteQuaternion(const Quaternion&);
  7286. bool WriteShort(int16);
  7287. bool WriteString(const String&);
  7288. bool WriteStringHash(const StringHash&);
  7289. bool WriteUByte(uint8);
  7290. bool WriteUInt(uint);
  7291. bool WriteUInt64(uint64);
  7292. bool WriteUShort(uint16);
  7293. bool WriteVLE(uint);
  7294. bool WriteVariant(const Variant&);
  7295. bool WriteVariantMap(const VariantMap&);
  7296. bool WriteVector2(const Vector2&);
  7297. bool WriteVector3(const Vector3&);
  7298. bool WriteVector4(const Vector4&);
  7299. bool WriteVectorBuffer(const VectorBuffer&);
  7300. // Properties:
  7301. /* readonly */
  7302. String category;
  7303. /* readonly */
  7304. uint checksum;
  7305. /* readonly */
  7306. bool eof;
  7307. /* readonly */
  7308. String name;
  7309. /* readonly */
  7310. bool open;
  7311. /* readonly */
  7312. uint position;
  7313. /* readonly */
  7314. int refs;
  7315. /* readonly */
  7316. bool server;
  7317. /* readonly */
  7318. uint size;
  7319. /* readonly */
  7320. StringHash type;
  7321. /* readonly */
  7322. String typeName;
  7323. /* readonly */
  7324. int weakRefs;
  7325. };
  7326. class NavArea
  7327. {
  7328. public:
  7329. // Methods:
  7330. void ApplyAttributes();
  7331. void DrawDebugGeometry(DebugRenderer, bool);
  7332. Variant GetAttribute(const String&) const;
  7333. ValueAnimation GetAttributeAnimation(const String&) const;
  7334. float GetAttributeAnimationSpeed(const String&) const;
  7335. float GetAttributeAnimationTime(const String&) const;
  7336. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7337. Variant GetAttributeDefault(const String&) const;
  7338. bool GetInterceptNetworkUpdate(const String&) const;
  7339. bool HasSubscribedToEvent(Object, const String&);
  7340. bool HasSubscribedToEvent(const String&);
  7341. bool Load(File);
  7342. bool Load(VectorBuffer&);
  7343. bool LoadJSON(const JSONValue&);
  7344. bool LoadXML(const XMLElement&);
  7345. void MarkNetworkUpdate() const;
  7346. void Remove();
  7347. void RemoveAttributeAnimation(const String&);
  7348. void RemoveInstanceDefault();
  7349. void RemoveObjectAnimation();
  7350. void ResetToDefault();
  7351. bool Save(File) const;
  7352. bool Save(VectorBuffer&) const;
  7353. bool SaveJSON(JSONValue&) const;
  7354. bool SaveXML(XMLElement&) const;
  7355. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7356. void SetAnimationTime(float);
  7357. bool SetAttribute(const String&, const Variant&);
  7358. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7359. void SetAttributeAnimationSpeed(const String&, float);
  7360. void SetAttributeAnimationTime(const String&, float);
  7361. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7362. void SetInterceptNetworkUpdate(const String&, bool);
  7363. // Properties:
  7364. bool animationEnabled;
  7365. uint areaID;
  7366. /* readonly */
  7367. Array<Variant> attributeDefaults;
  7368. /* readonly */
  7369. Array<AttributeInfo> attributeInfos;
  7370. Array<Variant> attributes;
  7371. BoundingBox boundingBox;
  7372. /* readonly */
  7373. String category;
  7374. bool enabled;
  7375. /* readonly */
  7376. bool enabledEffective;
  7377. /* readonly */
  7378. uint id;
  7379. /* readonly */
  7380. Node node;
  7381. /* readonly */
  7382. uint numAttributes;
  7383. ObjectAnimation objectAnimation;
  7384. /* readonly */
  7385. int refs;
  7386. /* readonly */
  7387. bool replicated;
  7388. bool temporary;
  7389. /* readonly */
  7390. StringHash type;
  7391. /* readonly */
  7392. String typeName;
  7393. /* readonly */
  7394. int weakRefs;
  7395. /* readonly */
  7396. BoundingBox worldBoundingBox;
  7397. };
  7398. class Navigable
  7399. {
  7400. public:
  7401. // Methods:
  7402. void ApplyAttributes();
  7403. void DrawDebugGeometry(DebugRenderer, bool);
  7404. Variant GetAttribute(const String&) const;
  7405. ValueAnimation GetAttributeAnimation(const String&) const;
  7406. float GetAttributeAnimationSpeed(const String&) const;
  7407. float GetAttributeAnimationTime(const String&) const;
  7408. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7409. Variant GetAttributeDefault(const String&) const;
  7410. bool GetInterceptNetworkUpdate(const String&) const;
  7411. bool HasSubscribedToEvent(Object, const String&);
  7412. bool HasSubscribedToEvent(const String&);
  7413. bool Load(File);
  7414. bool Load(VectorBuffer&);
  7415. bool LoadJSON(const JSONValue&);
  7416. bool LoadXML(const XMLElement&);
  7417. void MarkNetworkUpdate() const;
  7418. void Remove();
  7419. void RemoveAttributeAnimation(const String&);
  7420. void RemoveInstanceDefault();
  7421. void RemoveObjectAnimation();
  7422. void ResetToDefault();
  7423. bool Save(File) const;
  7424. bool Save(VectorBuffer&) const;
  7425. bool SaveJSON(JSONValue&) const;
  7426. bool SaveXML(XMLElement&) const;
  7427. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7428. void SetAnimationTime(float);
  7429. bool SetAttribute(const String&, const Variant&);
  7430. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7431. void SetAttributeAnimationSpeed(const String&, float);
  7432. void SetAttributeAnimationTime(const String&, float);
  7433. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7434. void SetInterceptNetworkUpdate(const String&, bool);
  7435. // Properties:
  7436. bool animationEnabled;
  7437. /* readonly */
  7438. Array<Variant> attributeDefaults;
  7439. /* readonly */
  7440. Array<AttributeInfo> attributeInfos;
  7441. Array<Variant> attributes;
  7442. /* readonly */
  7443. String category;
  7444. bool enabled;
  7445. /* readonly */
  7446. bool enabledEffective;
  7447. /* readonly */
  7448. uint id;
  7449. /* readonly */
  7450. Node node;
  7451. /* readonly */
  7452. uint numAttributes;
  7453. ObjectAnimation objectAnimation;
  7454. bool recursive;
  7455. /* readonly */
  7456. int refs;
  7457. /* readonly */
  7458. bool replicated;
  7459. bool temporary;
  7460. /* readonly */
  7461. StringHash type;
  7462. /* readonly */
  7463. String typeName;
  7464. /* readonly */
  7465. int weakRefs;
  7466. };
  7467. class NavigationMesh
  7468. {
  7469. public:
  7470. // Methods:
  7471. bool AddTile(const VectorBuffer&) const;
  7472. bool Allocate(const BoundingBox&, uint);
  7473. void ApplyAttributes();
  7474. bool Build();
  7475. bool Build(const BoundingBox&);
  7476. bool Build(const IntVector2&, const IntVector2&);
  7477. void DrawDebugGeometry(DebugRenderer, bool);
  7478. void DrawDebugGeometry(bool);
  7479. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7480. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7481. float GetAreaCost(uint) const;
  7482. Variant GetAttribute(const String&) const;
  7483. ValueAnimation GetAttributeAnimation(const String&) const;
  7484. float GetAttributeAnimationSpeed(const String&) const;
  7485. float GetAttributeAnimationTime(const String&) const;
  7486. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7487. Variant GetAttributeDefault(const String&) const;
  7488. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7489. bool GetInterceptNetworkUpdate(const String&) const;
  7490. Vector3 GetRandomPoint();
  7491. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7492. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  7493. VectorBuffer GetTileData(const IntVector2&) const;
  7494. IntVector2 GetTileIndex(const Vector3&) const;
  7495. bool HasSubscribedToEvent(Object, const String&);
  7496. bool HasSubscribedToEvent(const String&);
  7497. bool HasTile(const IntVector2&) const;
  7498. bool Load(File);
  7499. bool Load(VectorBuffer&);
  7500. bool LoadJSON(const JSONValue&);
  7501. bool LoadXML(const XMLElement&);
  7502. void MarkNetworkUpdate() const;
  7503. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7504. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7505. void Remove();
  7506. void RemoveAllTiles();
  7507. void RemoveAttributeAnimation(const String&);
  7508. void RemoveInstanceDefault();
  7509. void RemoveObjectAnimation();
  7510. void RemoveTile(const IntVector2&);
  7511. void ResetToDefault();
  7512. bool Save(File) const;
  7513. bool Save(VectorBuffer&) const;
  7514. bool SaveJSON(JSONValue&) const;
  7515. bool SaveXML(XMLElement&) const;
  7516. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7517. void SetAnimationTime(float);
  7518. void SetAreaCost(uint, float);
  7519. bool SetAttribute(const String&, const Variant&);
  7520. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7521. void SetAttributeAnimationSpeed(const String&, float);
  7522. void SetAttributeAnimationTime(const String&, float);
  7523. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7524. void SetInterceptNetworkUpdate(const String&, bool);
  7525. // Properties:
  7526. float agentHeight;
  7527. float agentMaxClimb;
  7528. float agentMaxSlope;
  7529. float agentRadius;
  7530. bool animationEnabled;
  7531. /* readonly */
  7532. Array<Variant> attributeDefaults;
  7533. /* readonly */
  7534. Array<AttributeInfo> attributeInfos;
  7535. Array<Variant> attributes;
  7536. /* readonly */
  7537. BoundingBox boundingBox;
  7538. /* readonly */
  7539. String category;
  7540. float cellHeight;
  7541. float cellSize;
  7542. float detailSampleDistance;
  7543. float detailSampleMaxError;
  7544. bool drawNavAreas;
  7545. bool drawOffMeshConnections;
  7546. float edgeMaxError;
  7547. float edgeMaxLength;
  7548. bool enabled;
  7549. /* readonly */
  7550. bool enabledEffective;
  7551. /* readonly */
  7552. uint id;
  7553. /* readonly */
  7554. bool initialized;
  7555. /* readonly */
  7556. Node node;
  7557. /* readonly */
  7558. uint numAttributes;
  7559. /* readonly */
  7560. IntVector2 numTiles;
  7561. ObjectAnimation objectAnimation;
  7562. Vector3 padding;
  7563. NavmeshPartitionType partitionType;
  7564. /* readonly */
  7565. int refs;
  7566. float regionMergeSize;
  7567. float regionMinSize;
  7568. /* readonly */
  7569. bool replicated;
  7570. bool temporary;
  7571. int tileSize;
  7572. /* readonly */
  7573. StringHash type;
  7574. /* readonly */
  7575. String typeName;
  7576. /* readonly */
  7577. int weakRefs;
  7578. /* readonly */
  7579. BoundingBox worldBoundingBox;
  7580. };
  7581. class Network
  7582. {
  7583. public:
  7584. // Methods:
  7585. bool AttemptNATPunchtrough(const String&, Scene, const VariantMap& = VariantMap ( ));
  7586. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7587. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7588. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7589. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7590. bool CheckRemoteEvent(const String&) const;
  7591. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7592. void Disconnect(int = 0);
  7593. bool DiscoverHosts(uint16);
  7594. bool HasSubscribedToEvent(Object, const String&);
  7595. bool HasSubscribedToEvent(const String&);
  7596. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7597. void RegisterRemoteEvent(const String&) const;
  7598. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7599. void SendPackageToClients(Scene, PackageFile);
  7600. bool SetDiscoveryBeacon(const VariantMap& = VariantMap ( ));
  7601. void SetNATServerInfo(const String&, uint16);
  7602. bool SetPassword(const String&);
  7603. void StartNATClient() const;
  7604. bool StartServer(uint16, uint = 128);
  7605. void StopServer();
  7606. void UnregisterAllRemoteEvents();
  7607. void UnregisterRemoteEvent(const String&) const;
  7608. // Properties:
  7609. /* readonly */
  7610. String category;
  7611. /* readonly */
  7612. Array<Connection> clientConnections;
  7613. /* readonly */
  7614. String guid;
  7615. String packageCacheDir;
  7616. /* readonly */
  7617. int refs;
  7618. /* readonly */
  7619. Connection serverConnection;
  7620. /* readonly */
  7621. bool serverRunning;
  7622. int simulatedLatency;
  7623. float simulatedPacketLoss;
  7624. /* readonly */
  7625. String startNATClient;
  7626. /* readonly */
  7627. StringHash type;
  7628. /* readonly */
  7629. String typeName;
  7630. int updateFps;
  7631. /* readonly */
  7632. int weakRefs;
  7633. };
  7634. class NetworkPriority
  7635. {
  7636. public:
  7637. // Methods:
  7638. void ApplyAttributes();
  7639. void DrawDebugGeometry(DebugRenderer, bool);
  7640. Variant GetAttribute(const String&) const;
  7641. ValueAnimation GetAttributeAnimation(const String&) const;
  7642. float GetAttributeAnimationSpeed(const String&) const;
  7643. float GetAttributeAnimationTime(const String&) const;
  7644. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7645. Variant GetAttributeDefault(const String&) const;
  7646. bool GetInterceptNetworkUpdate(const String&) const;
  7647. bool HasSubscribedToEvent(Object, const String&);
  7648. bool HasSubscribedToEvent(const String&);
  7649. bool Load(File);
  7650. bool Load(VectorBuffer&);
  7651. bool LoadJSON(const JSONValue&);
  7652. bool LoadXML(const XMLElement&);
  7653. void MarkNetworkUpdate() const;
  7654. void Remove();
  7655. void RemoveAttributeAnimation(const String&);
  7656. void RemoveInstanceDefault();
  7657. void RemoveObjectAnimation();
  7658. void ResetToDefault();
  7659. bool Save(File) const;
  7660. bool Save(VectorBuffer&) const;
  7661. bool SaveJSON(JSONValue&) const;
  7662. bool SaveXML(XMLElement&) const;
  7663. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7664. void SetAnimationTime(float);
  7665. bool SetAttribute(const String&, const Variant&);
  7666. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7667. void SetAttributeAnimationSpeed(const String&, float);
  7668. void SetAttributeAnimationTime(const String&, float);
  7669. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7670. void SetInterceptNetworkUpdate(const String&, bool);
  7671. // Properties:
  7672. bool alwaysUpdateOwner;
  7673. bool animationEnabled;
  7674. /* readonly */
  7675. Array<Variant> attributeDefaults;
  7676. /* readonly */
  7677. Array<AttributeInfo> attributeInfos;
  7678. Array<Variant> attributes;
  7679. float basePriority;
  7680. /* readonly */
  7681. String category;
  7682. float distanceFactor;
  7683. bool enabled;
  7684. /* readonly */
  7685. bool enabledEffective;
  7686. /* readonly */
  7687. uint id;
  7688. float minPriority;
  7689. /* readonly */
  7690. Node node;
  7691. /* readonly */
  7692. uint numAttributes;
  7693. ObjectAnimation objectAnimation;
  7694. /* readonly */
  7695. int refs;
  7696. /* readonly */
  7697. bool replicated;
  7698. bool temporary;
  7699. /* readonly */
  7700. StringHash type;
  7701. /* readonly */
  7702. String typeName;
  7703. /* readonly */
  7704. int weakRefs;
  7705. };
  7706. class Node
  7707. {
  7708. public:
  7709. Node();
  7710. Node(const String&in);
  7711. // Methods:
  7712. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7713. void AddTag(const String&);
  7714. void AddTags(const String&, int8 = ';');
  7715. void ApplyAttributes();
  7716. Node Clone(CreateMode = REPLICATED);
  7717. Component CloneComponent(Component, CreateMode, uint = 0);
  7718. Component CloneComponent(Component, uint = 0);
  7719. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7720. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7721. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7722. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7723. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7724. Variant GetAttribute(const String&) const;
  7725. ValueAnimation GetAttributeAnimation(const String&) const;
  7726. float GetAttributeAnimationSpeed(const String&) const;
  7727. float GetAttributeAnimationTime(const String&) const;
  7728. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7729. Variant GetAttributeDefault(const String&) const;
  7730. Node GetChild(const String&, bool = false) const;
  7731. Array<Node> GetChildren(bool = false) const;
  7732. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7733. Array<Node> GetChildrenWithScript(bool = false) const;
  7734. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7735. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7736. Component GetComponent(const String&, bool = false) const;
  7737. Array<Component> GetComponents() const;
  7738. Array<Component> GetComponents(const String&, bool = false) const;
  7739. bool GetInterceptNetworkUpdate(const String&) const;
  7740. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7741. Component GetParentComponent(const String&, bool = false) const;
  7742. ScriptObject GetScriptObject() const;
  7743. ScriptObject GetScriptObject(const String&) const;
  7744. bool HasComponent(const String&) const;
  7745. bool HasSubscribedToEvent(Object, const String&);
  7746. bool HasSubscribedToEvent(const String&);
  7747. bool HasTag(const String&);
  7748. bool IsChildOf(Node) const;
  7749. bool Load(File);
  7750. bool Load(VectorBuffer&);
  7751. bool LoadJSON(const JSONValue&);
  7752. bool LoadXML(const XMLElement&);
  7753. Vector3 LocalToWorld(const Vector3&) const;
  7754. Vector3 LocalToWorld(const Vector4&) const;
  7755. Vector2 LocalToWorld2D(const Vector2&) const;
  7756. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7757. void MarkDirty();
  7758. void MarkNetworkUpdate() const;
  7759. void Pitch(float, TransformSpace = TS_LOCAL);
  7760. void Remove();
  7761. void RemoveAllChildren();
  7762. void RemoveAllComponents();
  7763. void RemoveAllTags();
  7764. void RemoveAttributeAnimation(const String&);
  7765. void RemoveChild(Node);
  7766. void RemoveChildren(bool, bool, bool);
  7767. void RemoveComponent(Component);
  7768. void RemoveComponent(const String&);
  7769. void RemoveComponents(bool, bool);
  7770. void RemoveComponents(const String&);
  7771. void RemoveInstanceDefault();
  7772. void RemoveObjectAnimation();
  7773. bool RemoveTag(const String&);
  7774. void ReorderComponent(Component, uint);
  7775. void ResetDeepEnabled();
  7776. void ResetToDefault();
  7777. void Roll(float, TransformSpace = TS_LOCAL);
  7778. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7779. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7780. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7781. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7782. bool Save(File) const;
  7783. bool Save(VectorBuffer&) const;
  7784. bool SaveJSON(File);
  7785. bool SaveJSON(JSONValue&) const;
  7786. bool SaveJSON(VectorBuffer&);
  7787. bool SaveXML(File, const String& = "\t");
  7788. bool SaveXML(VectorBuffer&, const String& = "\t");
  7789. bool SaveXML(XMLElement&) const;
  7790. void Scale(const Vector3&);
  7791. void Scale(float);
  7792. void Scale2D(const Vector2&);
  7793. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7794. void SetAnimationTime(float);
  7795. bool SetAttribute(const String&, const Variant&);
  7796. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7797. void SetAttributeAnimationSpeed(const String&, float);
  7798. void SetAttributeAnimationTime(const String&, float);
  7799. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7800. void SetDeepEnabled(bool);
  7801. void SetEnabledRecursive(bool);
  7802. void SetInterceptNetworkUpdate(const String&, bool);
  7803. void SetPosition2D(float, float);
  7804. void SetScale(float);
  7805. void SetScale2D(float, float);
  7806. void SetTransform(const Matrix3x4&);
  7807. void SetTransform(const Vector3&, const Quaternion&);
  7808. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7809. void SetTransform(const Vector3&, const Quaternion&, float);
  7810. void SetTransform2D(const Vector2&, float);
  7811. void SetTransform2D(const Vector2&, float, const Vector2&);
  7812. void SetTransform2D(const Vector2&, float, float);
  7813. void SetWorldTransform(const Vector3&, const Quaternion&);
  7814. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7815. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7816. void SetWorldTransform2D(const Vector2&, float);
  7817. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7818. void SetWorldTransform2D(const Vector2&, float, float);
  7819. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7820. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7821. Vector3 WorldToLocal(const Vector3&) const;
  7822. Vector3 WorldToLocal(const Vector4&) const;
  7823. Vector2 WorldToLocal2D(const Vector2&) const;
  7824. void Yaw(float, TransformSpace = TS_LOCAL);
  7825. // Properties:
  7826. /* readonly */
  7827. Array<Node> allChildrenByName;
  7828. bool animationEnabled;
  7829. /* readonly */
  7830. Array<Variant> attributeDefaults;
  7831. /* readonly */
  7832. Array<AttributeInfo> attributeInfos;
  7833. Array<Variant> attributes;
  7834. /* readonly */
  7835. String category;
  7836. /* readonly */
  7837. Array<Node> children;
  7838. /* readonly */
  7839. Array<Node> childrenByName;
  7840. /* readonly */
  7841. Array<Component> components;
  7842. Vector3 direction;
  7843. bool enabled;
  7844. /* readonly */
  7845. bool enabledSelf;
  7846. uint id;
  7847. String name;
  7848. /* readonly */
  7849. uint numAllChildren;
  7850. /* readonly */
  7851. uint numAttributes;
  7852. /* readonly */
  7853. uint numChildren;
  7854. /* readonly */
  7855. uint numComponents;
  7856. ObjectAnimation objectAnimation;
  7857. Connection owner;
  7858. Node parent;
  7859. Vector3 position;
  7860. Vector2 position2D;
  7861. /* readonly */
  7862. int refs;
  7863. /* readonly */
  7864. bool replicated;
  7865. /* readonly */
  7866. Vector3 right;
  7867. Quaternion rotation;
  7868. float rotation2D;
  7869. Vector3 scale;
  7870. Vector2 scale2D;
  7871. /* readonly */
  7872. Scene scene;
  7873. /* readonly */
  7874. ScriptObject scriptObject;
  7875. /* readonly */
  7876. Vector3 signedWorldScale;
  7877. /* readonly */
  7878. Array<String> tags;
  7879. bool temporary;
  7880. /* readonly */
  7881. Matrix3x4 transform;
  7882. /* readonly */
  7883. StringHash type;
  7884. /* readonly */
  7885. String typeName;
  7886. /* readonly */
  7887. Vector3 up;
  7888. /* readonly */
  7889. VariantMap vars;
  7890. /* readonly */
  7891. int weakRefs;
  7892. Vector3 worldDirection;
  7893. Vector3 worldPosition;
  7894. Vector2 worldPosition2D;
  7895. /* readonly */
  7896. Vector3 worldRight;
  7897. Quaternion worldRotation;
  7898. float worldRotation2D;
  7899. Vector3 worldScale;
  7900. Vector2 worldScale2D;
  7901. /* readonly */
  7902. Matrix3x4 worldTransform;
  7903. /* readonly */
  7904. Vector3 worldUp;
  7905. };
  7906. class Object
  7907. {
  7908. public:
  7909. // Methods:
  7910. bool HasSubscribedToEvent(Object, const String&);
  7911. bool HasSubscribedToEvent(const String&);
  7912. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7913. // Properties:
  7914. /* readonly */
  7915. String category;
  7916. /* readonly */
  7917. int refs;
  7918. /* readonly */
  7919. StringHash type;
  7920. /* readonly */
  7921. String typeName;
  7922. /* readonly */
  7923. int weakRefs;
  7924. };
  7925. class ObjectAnimation
  7926. {
  7927. public:
  7928. ObjectAnimation();
  7929. ObjectAnimation(const String&in);
  7930. // Methods:
  7931. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7932. ValueAnimation GetAttributeAnimation(const String&) const;
  7933. float GetAttributeAnimationSpeed(const String&) const;
  7934. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7935. bool HasSubscribedToEvent(Object, const String&);
  7936. bool HasSubscribedToEvent(const String&);
  7937. bool Load(File);
  7938. bool Load(VectorBuffer&);
  7939. bool Load(const String&);
  7940. void RemoveAttributeAnimation(ValueAnimation);
  7941. void RemoveAttributeAnimation(const String&);
  7942. bool Save(File) const;
  7943. bool Save(VectorBuffer&) const;
  7944. bool Save(const String&) const;
  7945. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7946. // Properties:
  7947. /* readonly */
  7948. Array<Variant> attributeAnimations;
  7949. /* readonly */
  7950. String category;
  7951. /* readonly */
  7952. uint memoryUse;
  7953. String name;
  7954. /* readonly */
  7955. int refs;
  7956. /* readonly */
  7957. Array<Variant> speeds;
  7958. /* readonly */
  7959. StringHash type;
  7960. /* readonly */
  7961. String typeName;
  7962. /* readonly */
  7963. uint useTimer;
  7964. /* readonly */
  7965. int weakRefs;
  7966. /* readonly */
  7967. Array<Variant> wrapModes;
  7968. };
  7969. class Obstacle
  7970. {
  7971. public:
  7972. // Methods:
  7973. void ApplyAttributes();
  7974. void DrawDebugGeometry(DebugRenderer, bool);
  7975. void DrawDebugGeometry(bool);
  7976. Variant GetAttribute(const String&) const;
  7977. ValueAnimation GetAttributeAnimation(const String&) const;
  7978. float GetAttributeAnimationSpeed(const String&) const;
  7979. float GetAttributeAnimationTime(const String&) const;
  7980. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7981. Variant GetAttributeDefault(const String&) const;
  7982. bool GetInterceptNetworkUpdate(const String&) const;
  7983. bool HasSubscribedToEvent(Object, const String&);
  7984. bool HasSubscribedToEvent(const String&);
  7985. bool Load(File);
  7986. bool Load(VectorBuffer&);
  7987. bool LoadJSON(const JSONValue&);
  7988. bool LoadXML(const XMLElement&);
  7989. void MarkNetworkUpdate() const;
  7990. void Remove();
  7991. void RemoveAttributeAnimation(const String&);
  7992. void RemoveInstanceDefault();
  7993. void RemoveObjectAnimation();
  7994. void ResetToDefault();
  7995. bool Save(File) const;
  7996. bool Save(VectorBuffer&) const;
  7997. bool SaveJSON(JSONValue&) const;
  7998. bool SaveXML(XMLElement&) const;
  7999. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8000. void SetAnimationTime(float);
  8001. bool SetAttribute(const String&, const Variant&);
  8002. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8003. void SetAttributeAnimationSpeed(const String&, float);
  8004. void SetAttributeAnimationTime(const String&, float);
  8005. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8006. void SetInterceptNetworkUpdate(const String&, bool);
  8007. // Properties:
  8008. bool animationEnabled;
  8009. /* readonly */
  8010. Array<Variant> attributeDefaults;
  8011. /* readonly */
  8012. Array<AttributeInfo> attributeInfos;
  8013. Array<Variant> attributes;
  8014. /* readonly */
  8015. String category;
  8016. bool enabled;
  8017. /* readonly */
  8018. bool enabledEffective;
  8019. float height;
  8020. /* readonly */
  8021. uint id;
  8022. /* readonly */
  8023. Node node;
  8024. /* readonly */
  8025. uint numAttributes;
  8026. ObjectAnimation objectAnimation;
  8027. /* readonly */
  8028. uint obstacleId;
  8029. float radius;
  8030. /* readonly */
  8031. int refs;
  8032. /* readonly */
  8033. bool replicated;
  8034. bool temporary;
  8035. /* readonly */
  8036. StringHash type;
  8037. /* readonly */
  8038. String typeName;
  8039. /* readonly */
  8040. int weakRefs;
  8041. };
  8042. class Octree
  8043. {
  8044. public:
  8045. // Methods:
  8046. void AddManualDrawable(Drawable);
  8047. void ApplyAttributes();
  8048. void DrawDebugGeometry(DebugRenderer, bool);
  8049. void DrawDebugGeometry(bool) const;
  8050. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8051. Variant GetAttribute(const String&) const;
  8052. ValueAnimation GetAttributeAnimation(const String&) const;
  8053. float GetAttributeAnimationSpeed(const String&) const;
  8054. float GetAttributeAnimationTime(const String&) const;
  8055. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8056. Variant GetAttributeDefault(const String&) const;
  8057. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8058. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8059. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8060. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8061. bool GetInterceptNetworkUpdate(const String&) const;
  8062. bool HasSubscribedToEvent(Object, const String&);
  8063. bool HasSubscribedToEvent(const String&);
  8064. bool Load(File);
  8065. bool Load(VectorBuffer&);
  8066. bool LoadJSON(const JSONValue&);
  8067. bool LoadXML(const XMLElement&);
  8068. void MarkNetworkUpdate() const;
  8069. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8070. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8071. void Remove();
  8072. void RemoveAttributeAnimation(const String&);
  8073. void RemoveInstanceDefault();
  8074. void RemoveManualDrawable(Drawable);
  8075. void RemoveObjectAnimation();
  8076. void ResetToDefault();
  8077. bool Save(File) const;
  8078. bool Save(VectorBuffer&) const;
  8079. bool SaveJSON(JSONValue&) const;
  8080. bool SaveXML(XMLElement&) const;
  8081. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8082. void SetAnimationTime(float);
  8083. bool SetAttribute(const String&, const Variant&);
  8084. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8085. void SetAttributeAnimationSpeed(const String&, float);
  8086. void SetAttributeAnimationTime(const String&, float);
  8087. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8088. void SetInterceptNetworkUpdate(const String&, bool);
  8089. void SetSize(const BoundingBox&, uint);
  8090. // Properties:
  8091. bool animationEnabled;
  8092. /* readonly */
  8093. Array<Variant> attributeDefaults;
  8094. /* readonly */
  8095. Array<AttributeInfo> attributeInfos;
  8096. Array<Variant> attributes;
  8097. /* readonly */
  8098. String category;
  8099. bool enabled;
  8100. /* readonly */
  8101. bool enabledEffective;
  8102. /* readonly */
  8103. uint id;
  8104. /* readonly */
  8105. Node node;
  8106. /* readonly */
  8107. uint numAttributes;
  8108. /* readonly */
  8109. uint numLevels;
  8110. ObjectAnimation objectAnimation;
  8111. /* readonly */
  8112. int refs;
  8113. /* readonly */
  8114. bool replicated;
  8115. bool temporary;
  8116. /* readonly */
  8117. StringHash type;
  8118. /* readonly */
  8119. String typeName;
  8120. /* readonly */
  8121. int weakRefs;
  8122. /* readonly */
  8123. BoundingBox worldBoundingBox;
  8124. };
  8125. class OffMeshConnection
  8126. {
  8127. public:
  8128. // Methods:
  8129. void ApplyAttributes();
  8130. void DrawDebugGeometry(DebugRenderer, bool);
  8131. Variant GetAttribute(const String&) const;
  8132. ValueAnimation GetAttributeAnimation(const String&) const;
  8133. float GetAttributeAnimationSpeed(const String&) const;
  8134. float GetAttributeAnimationTime(const String&) const;
  8135. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8136. Variant GetAttributeDefault(const String&) const;
  8137. bool GetInterceptNetworkUpdate(const String&) const;
  8138. bool HasSubscribedToEvent(Object, const String&);
  8139. bool HasSubscribedToEvent(const String&);
  8140. bool Load(File);
  8141. bool Load(VectorBuffer&);
  8142. bool LoadJSON(const JSONValue&);
  8143. bool LoadXML(const XMLElement&);
  8144. void MarkNetworkUpdate() const;
  8145. void Remove();
  8146. void RemoveAttributeAnimation(const String&);
  8147. void RemoveInstanceDefault();
  8148. void RemoveObjectAnimation();
  8149. void ResetToDefault();
  8150. bool Save(File) const;
  8151. bool Save(VectorBuffer&) const;
  8152. bool SaveJSON(JSONValue&) const;
  8153. bool SaveXML(XMLElement&) const;
  8154. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8155. void SetAnimationTime(float);
  8156. bool SetAttribute(const String&, const Variant&);
  8157. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8158. void SetAttributeAnimationSpeed(const String&, float);
  8159. void SetAttributeAnimationTime(const String&, float);
  8160. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8161. void SetInterceptNetworkUpdate(const String&, bool);
  8162. // Properties:
  8163. bool animationEnabled;
  8164. uint areaID;
  8165. /* readonly */
  8166. Array<Variant> attributeDefaults;
  8167. /* readonly */
  8168. Array<AttributeInfo> attributeInfos;
  8169. Array<Variant> attributes;
  8170. bool bidirectional;
  8171. /* readonly */
  8172. String category;
  8173. bool enabled;
  8174. /* readonly */
  8175. bool enabledEffective;
  8176. Node endPoint;
  8177. /* readonly */
  8178. uint id;
  8179. uint mask;
  8180. /* readonly */
  8181. Node node;
  8182. /* readonly */
  8183. uint numAttributes;
  8184. ObjectAnimation objectAnimation;
  8185. float radius;
  8186. /* readonly */
  8187. int refs;
  8188. /* readonly */
  8189. bool replicated;
  8190. bool temporary;
  8191. /* readonly */
  8192. StringHash type;
  8193. /* readonly */
  8194. String typeName;
  8195. /* readonly */
  8196. int weakRefs;
  8197. };
  8198. class PackageFile
  8199. {
  8200. public:
  8201. PackageFile();
  8202. PackageFile(const String&in, uint startOffset = 0);
  8203. // Methods:
  8204. bool Exists(const String&) const;
  8205. Array<String> GetEntryNames() const;
  8206. bool HasSubscribedToEvent(Object, const String&);
  8207. bool HasSubscribedToEvent(const String&);
  8208. bool Open(const String&, uint = 0) const;
  8209. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8210. bool compressed() const;
  8211. // Properties:
  8212. /* readonly */
  8213. String category;
  8214. /* readonly */
  8215. uint checksum;
  8216. /* readonly */
  8217. String name;
  8218. /* readonly */
  8219. uint numFiles;
  8220. /* readonly */
  8221. int refs;
  8222. /* readonly */
  8223. uint totalDataSize;
  8224. /* readonly */
  8225. uint totalSize;
  8226. /* readonly */
  8227. StringHash type;
  8228. /* readonly */
  8229. String typeName;
  8230. /* readonly */
  8231. int weakRefs;
  8232. };
  8233. class ParticleEffect
  8234. {
  8235. public:
  8236. ParticleEffect();
  8237. ParticleEffect(const String&in);
  8238. // Methods:
  8239. void AddColorFrame(ColorFrame);
  8240. void AddColorTime(const Color&, float);
  8241. void AddTextureFrame(TextureFrame);
  8242. void AddTextureTime(const Rect&, float);
  8243. ParticleEffect Clone(const String& = String ( )) const;
  8244. ColorFrame GetColorFrame(uint) const;
  8245. TextureFrame GetTextureFrame(uint) const;
  8246. bool HasSubscribedToEvent(Object, const String&);
  8247. bool HasSubscribedToEvent(const String&);
  8248. bool Load(File);
  8249. bool Load(VectorBuffer&);
  8250. bool Load(const String&);
  8251. bool Load(const XMLElement&);
  8252. void RemoveColorFrame(uint);
  8253. void RemoveTextureFrame(uint);
  8254. bool Save(File) const;
  8255. bool Save(VectorBuffer&) const;
  8256. bool Save(XMLElement&) const;
  8257. bool Save(const String&) const;
  8258. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8259. void SetColorFrame(uint, ColorFrame);
  8260. void SetTextureFrame(uint, TextureFrame);
  8261. void SortColorFrames();
  8262. void SortTextureFrames();
  8263. // Properties:
  8264. float activeTime;
  8265. float animationLodBias;
  8266. /* readonly */
  8267. String category;
  8268. Vector3 constantForce;
  8269. float dampingForce;
  8270. Vector3 emitterSize;
  8271. EmitterType emitterType;
  8272. FaceCameraMode faceCameraMode;
  8273. bool fixedScreenSize;
  8274. float inactiveTime;
  8275. Material material;
  8276. Vector3 maxDirection;
  8277. float maxEmissionRate;
  8278. Vector2 maxParticleSize;
  8279. float maxRotation;
  8280. float maxRotationSpeed;
  8281. float maxTimeToLive;
  8282. float maxVelocity;
  8283. /* readonly */
  8284. uint memoryUse;
  8285. Vector3 minDirection;
  8286. float minEmissionRate;
  8287. Vector2 minParticleSize;
  8288. float minRotation;
  8289. float minRotationSpeed;
  8290. float minTimeToLive;
  8291. float minVelocity;
  8292. String name;
  8293. uint numColorFrames;
  8294. uint numParticles;
  8295. uint numTextureFrames;
  8296. /* readonly */
  8297. int refs;
  8298. bool relative;
  8299. bool scaled;
  8300. float sizeAdd;
  8301. float sizeMul;
  8302. bool sorted;
  8303. /* readonly */
  8304. StringHash type;
  8305. /* readonly */
  8306. String typeName;
  8307. bool updateInvisible;
  8308. /* readonly */
  8309. uint useTimer;
  8310. /* readonly */
  8311. int weakRefs;
  8312. };
  8313. class ParticleEffect2D
  8314. {
  8315. public:
  8316. ParticleEffect2D();
  8317. ParticleEffect2D(const String&in);
  8318. // Methods:
  8319. ParticleEffect2D Clone(const String& = String ( )) const;
  8320. bool HasSubscribedToEvent(Object, const String&);
  8321. bool HasSubscribedToEvent(const String&);
  8322. bool Load(File);
  8323. bool Load(VectorBuffer&);
  8324. bool Load(const String&);
  8325. bool Save(File) const;
  8326. bool Save(VectorBuffer&) const;
  8327. bool Save(const String&) const;
  8328. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8329. // Properties:
  8330. /* readonly */
  8331. String category;
  8332. /* readonly */
  8333. uint memoryUse;
  8334. String name;
  8335. /* readonly */
  8336. int refs;
  8337. /* readonly */
  8338. StringHash type;
  8339. /* readonly */
  8340. String typeName;
  8341. /* readonly */
  8342. uint useTimer;
  8343. /* readonly */
  8344. int weakRefs;
  8345. };
  8346. class ParticleEmitter
  8347. {
  8348. public:
  8349. // Methods:
  8350. void ApplyAttributes();
  8351. void ApplyEffect();
  8352. void Commit();
  8353. void DrawDebugGeometry(DebugRenderer, bool);
  8354. Variant GetAttribute(const String&) const;
  8355. ValueAnimation GetAttributeAnimation(const String&) const;
  8356. float GetAttributeAnimationSpeed(const String&) const;
  8357. float GetAttributeAnimationTime(const String&) const;
  8358. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8359. Variant GetAttributeDefault(const String&) const;
  8360. bool GetInterceptNetworkUpdate(const String&) const;
  8361. bool HasSubscribedToEvent(Object, const String&);
  8362. bool HasSubscribedToEvent(const String&);
  8363. bool IsInView(Camera) const;
  8364. bool Load(File);
  8365. bool Load(VectorBuffer&);
  8366. bool LoadJSON(const JSONValue&);
  8367. bool LoadXML(const XMLElement&);
  8368. void MarkNetworkUpdate() const;
  8369. void Remove();
  8370. void RemoveAllParticles();
  8371. void RemoveAttributeAnimation(const String&);
  8372. void RemoveInstanceDefault();
  8373. void RemoveObjectAnimation();
  8374. void Reset();
  8375. void ResetEmissionTimer();
  8376. void ResetToDefault();
  8377. bool Save(File) const;
  8378. bool Save(VectorBuffer&) const;
  8379. bool SaveJSON(JSONValue&) const;
  8380. bool SaveXML(XMLElement&) const;
  8381. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8382. void SetAnimationTime(float);
  8383. bool SetAttribute(const String&, const Variant&);
  8384. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8385. void SetAttributeAnimationSpeed(const String&, float);
  8386. void SetAttributeAnimationTime(const String&, float);
  8387. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8388. void SetInterceptNetworkUpdate(const String&, bool);
  8389. // Properties:
  8390. bool animationEnabled;
  8391. float animationLodBias;
  8392. /* readonly */
  8393. Array<Variant> attributeDefaults;
  8394. /* readonly */
  8395. Array<AttributeInfo> attributeInfos;
  8396. Array<Variant> attributes;
  8397. AutoRemoveMode autoRemoveMode;
  8398. /* readonly */
  8399. Array<Billboard> billboards;
  8400. /* readonly */
  8401. BoundingBox boundingBox;
  8402. bool castShadows;
  8403. /* readonly */
  8404. String category;
  8405. float drawDistance;
  8406. ParticleEffect effect;
  8407. bool emitting;
  8408. bool enabled;
  8409. /* readonly */
  8410. bool enabledEffective;
  8411. FaceCameraMode faceCameraMode;
  8412. bool fixedScreenSize;
  8413. /* readonly */
  8414. uint id;
  8415. /* readonly */
  8416. bool inView;
  8417. uint lightMask;
  8418. float lodBias;
  8419. Material material;
  8420. uint maxLights;
  8421. /* readonly */
  8422. Node node;
  8423. /* readonly */
  8424. uint numAttributes;
  8425. uint numBillboards;
  8426. uint numParticles;
  8427. ObjectAnimation objectAnimation;
  8428. bool occludee;
  8429. bool occluder;
  8430. /* readonly */
  8431. int refs;
  8432. bool relative;
  8433. /* readonly */
  8434. bool replicated;
  8435. bool scaled;
  8436. bool serializeParticles;
  8437. float shadowDistance;
  8438. uint shadowMask;
  8439. bool sorted;
  8440. bool temporary;
  8441. /* readonly */
  8442. StringHash type;
  8443. /* readonly */
  8444. String typeName;
  8445. uint viewMask;
  8446. /* readonly */
  8447. int weakRefs;
  8448. /* readonly */
  8449. BoundingBox worldBoundingBox;
  8450. /* readonly */
  8451. Zone zone;
  8452. uint zoneMask;
  8453. };
  8454. class ParticleEmitter2D
  8455. {
  8456. public:
  8457. // Methods:
  8458. void ApplyAttributes();
  8459. void DrawDebugGeometry(DebugRenderer, bool);
  8460. Variant GetAttribute(const String&) const;
  8461. ValueAnimation GetAttributeAnimation(const String&) const;
  8462. float GetAttributeAnimationSpeed(const String&) const;
  8463. float GetAttributeAnimationTime(const String&) const;
  8464. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8465. Variant GetAttributeDefault(const String&) const;
  8466. bool GetInterceptNetworkUpdate(const String&) const;
  8467. bool HasSubscribedToEvent(Object, const String&);
  8468. bool HasSubscribedToEvent(const String&);
  8469. bool IsInView(Camera) const;
  8470. bool Load(File);
  8471. bool Load(VectorBuffer&);
  8472. bool LoadJSON(const JSONValue&);
  8473. bool LoadXML(const XMLElement&);
  8474. void MarkNetworkUpdate() const;
  8475. void Remove();
  8476. void RemoveAttributeAnimation(const String&);
  8477. void RemoveInstanceDefault();
  8478. void RemoveObjectAnimation();
  8479. void ResetToDefault();
  8480. bool Save(File) const;
  8481. bool Save(VectorBuffer&) const;
  8482. bool SaveJSON(JSONValue&) const;
  8483. bool SaveXML(XMLElement&) const;
  8484. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8485. void SetAnimationTime(float);
  8486. bool SetAttribute(const String&, const Variant&);
  8487. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8488. void SetAttributeAnimationSpeed(const String&, float);
  8489. void SetAttributeAnimationTime(const String&, float);
  8490. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8491. void SetInterceptNetworkUpdate(const String&, bool);
  8492. // Properties:
  8493. bool animationEnabled;
  8494. /* readonly */
  8495. Array<Variant> attributeDefaults;
  8496. /* readonly */
  8497. Array<AttributeInfo> attributeInfos;
  8498. Array<Variant> attributes;
  8499. BlendMode blendMode;
  8500. /* readonly */
  8501. BoundingBox boundingBox;
  8502. bool castShadows;
  8503. /* readonly */
  8504. String category;
  8505. float drawDistance;
  8506. ParticleEffect2D effect;
  8507. bool emitting;
  8508. bool enabled;
  8509. /* readonly */
  8510. bool enabledEffective;
  8511. /* readonly */
  8512. uint id;
  8513. /* readonly */
  8514. bool inView;
  8515. int layer;
  8516. uint lightMask;
  8517. float lodBias;
  8518. uint maxLights;
  8519. /* readonly */
  8520. Node node;
  8521. /* readonly */
  8522. uint numAttributes;
  8523. ObjectAnimation objectAnimation;
  8524. bool occludee;
  8525. bool occluder;
  8526. int orderInLayer;
  8527. /* readonly */
  8528. int refs;
  8529. /* readonly */
  8530. bool replicated;
  8531. float shadowDistance;
  8532. uint shadowMask;
  8533. Sprite2D sprite;
  8534. bool temporary;
  8535. /* readonly */
  8536. StringHash type;
  8537. /* readonly */
  8538. String typeName;
  8539. uint viewMask;
  8540. /* readonly */
  8541. int weakRefs;
  8542. /* readonly */
  8543. BoundingBox worldBoundingBox;
  8544. uint zoneMask;
  8545. };
  8546. class Pass
  8547. {
  8548. public:
  8549. // Properties:
  8550. bool alphaToCoverage;
  8551. BlendMode blendMode;
  8552. CullMode cullMode;
  8553. CompareMode depthTestMode;
  8554. bool depthWrite;
  8555. bool desktop;
  8556. PassLightingMode lightingMode;
  8557. String pixelShader;
  8558. String pixelShaderDefineExcludes;
  8559. String pixelShaderDefines;
  8560. /* readonly */
  8561. int refs;
  8562. String vertexShader;
  8563. String vertexShaderDefineExcludes;
  8564. String vertexShaderDefines;
  8565. /* readonly */
  8566. int weakRefs;
  8567. };
  8568. class PhysicsRaycastResult
  8569. {
  8570. public:
  8571. ~PhysicsRaycastResult();
  8572. PhysicsRaycastResult();
  8573. // Properties:
  8574. /* readonly */
  8575. RigidBody body;
  8576. float distance;
  8577. float hitFraction;
  8578. Vector3 normal;
  8579. Vector3 position;
  8580. };
  8581. class PhysicsRaycastResult2D
  8582. {
  8583. public:
  8584. ~PhysicsRaycastResult2D();
  8585. PhysicsRaycastResult2D();
  8586. // Properties:
  8587. /* readonly */
  8588. RigidBody2D body;
  8589. float distance;
  8590. Vector2 normal;
  8591. Vector2 position;
  8592. };
  8593. class PhysicsWorld
  8594. {
  8595. public:
  8596. // Methods:
  8597. void ApplyAttributes();
  8598. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8599. void DrawDebugGeometry(DebugRenderer, bool);
  8600. void DrawDebugGeometry(bool);
  8601. Variant GetAttribute(const String&) const;
  8602. ValueAnimation GetAttributeAnimation(const String&) const;
  8603. float GetAttributeAnimationSpeed(const String&) const;
  8604. float GetAttributeAnimationTime(const String&) const;
  8605. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8606. Variant GetAttributeDefault(const String&) const;
  8607. Array<RigidBody> GetCollidingBodies(RigidBody);
  8608. bool GetInterceptNetworkUpdate(const String&) const;
  8609. Array<RigidBody> GetRigidBodies(RigidBody);
  8610. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8611. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8612. bool HasSubscribedToEvent(Object, const String&);
  8613. bool HasSubscribedToEvent(const String&);
  8614. bool Load(File);
  8615. bool Load(VectorBuffer&);
  8616. bool LoadJSON(const JSONValue&);
  8617. bool LoadXML(const XMLElement&);
  8618. void MarkNetworkUpdate() const;
  8619. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8620. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8621. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff, float = 0.1f);
  8622. void Remove();
  8623. void RemoveAttributeAnimation(const String&);
  8624. void RemoveCachedGeometry(Model);
  8625. void RemoveInstanceDefault();
  8626. void RemoveObjectAnimation();
  8627. void ResetToDefault();
  8628. bool Save(File) const;
  8629. bool Save(VectorBuffer&) const;
  8630. bool SaveJSON(JSONValue&) const;
  8631. bool SaveXML(XMLElement&) const;
  8632. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8633. void SetAnimationTime(float);
  8634. bool SetAttribute(const String&, const Variant&);
  8635. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8636. void SetAttributeAnimationSpeed(const String&, float);
  8637. void SetAttributeAnimationTime(const String&, float);
  8638. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8639. void SetInterceptNetworkUpdate(const String&, bool);
  8640. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8641. void Update(float);
  8642. void UpdateCollisions();
  8643. // Properties:
  8644. bool animationEnabled;
  8645. /* readonly */
  8646. Array<Variant> attributeDefaults;
  8647. /* readonly */
  8648. Array<AttributeInfo> attributeInfos;
  8649. Array<Variant> attributes;
  8650. /* readonly */
  8651. String category;
  8652. bool enabled;
  8653. /* readonly */
  8654. bool enabledEffective;
  8655. int fps;
  8656. Vector3 gravity;
  8657. /* readonly */
  8658. uint id;
  8659. bool internalEdge;
  8660. bool interpolation;
  8661. int maxSubSteps;
  8662. /* readonly */
  8663. Node node;
  8664. /* readonly */
  8665. uint numAttributes;
  8666. int numIterations;
  8667. ObjectAnimation objectAnimation;
  8668. /* readonly */
  8669. int refs;
  8670. /* readonly */
  8671. bool replicated;
  8672. bool splitImpulse;
  8673. bool temporary;
  8674. /* readonly */
  8675. StringHash type;
  8676. /* readonly */
  8677. String typeName;
  8678. bool updateEnabled;
  8679. /* readonly */
  8680. int weakRefs;
  8681. };
  8682. class PhysicsWorld2D
  8683. {
  8684. public:
  8685. // Methods:
  8686. void ApplyAttributes();
  8687. void DrawDebugGeometry() const;
  8688. void DrawDebugGeometry(DebugRenderer, bool);
  8689. Variant GetAttribute(const String&) const;
  8690. ValueAnimation GetAttributeAnimation(const String&) const;
  8691. float GetAttributeAnimationSpeed(const String&) const;
  8692. float GetAttributeAnimationTime(const String&) const;
  8693. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8694. Variant GetAttributeDefault(const String&) const;
  8695. bool GetInterceptNetworkUpdate(const String&) const;
  8696. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8697. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8698. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8699. bool HasSubscribedToEvent(Object, const String&);
  8700. bool HasSubscribedToEvent(const String&);
  8701. bool Load(File);
  8702. bool Load(VectorBuffer&);
  8703. bool LoadJSON(const JSONValue&);
  8704. bool LoadXML(const XMLElement&);
  8705. void MarkNetworkUpdate() const;
  8706. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8707. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8708. void Remove();
  8709. void RemoveAttributeAnimation(const String&);
  8710. void RemoveInstanceDefault();
  8711. void RemoveObjectAnimation();
  8712. void ResetToDefault();
  8713. bool Save(File) const;
  8714. bool Save(VectorBuffer&) const;
  8715. bool SaveJSON(JSONValue&) const;
  8716. bool SaveXML(XMLElement&) const;
  8717. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8718. void SetAnimationTime(float);
  8719. bool SetAttribute(const String&, const Variant&);
  8720. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8721. void SetAttributeAnimationSpeed(const String&, float);
  8722. void SetAttributeAnimationTime(const String&, float);
  8723. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8724. void SetInterceptNetworkUpdate(const String&, bool);
  8725. // Properties:
  8726. bool allowSleeping;
  8727. bool animationEnabled;
  8728. /* readonly */
  8729. Array<Variant> attributeDefaults;
  8730. /* readonly */
  8731. Array<AttributeInfo> attributeInfos;
  8732. Array<Variant> attributes;
  8733. bool autoClearForces;
  8734. /* readonly */
  8735. String category;
  8736. bool continuousPhysics;
  8737. bool drawAabb;
  8738. bool drawCenterOfMass;
  8739. bool drawJoint;
  8740. bool drawPair;
  8741. bool drawShape;
  8742. bool enabled;
  8743. /* readonly */
  8744. bool enabledEffective;
  8745. Vector2 gravity;
  8746. /* readonly */
  8747. uint id;
  8748. /* readonly */
  8749. Node node;
  8750. /* readonly */
  8751. uint numAttributes;
  8752. ObjectAnimation objectAnimation;
  8753. uint positionIterations;
  8754. /* readonly */
  8755. int refs;
  8756. /* readonly */
  8757. bool replicated;
  8758. bool subStepping;
  8759. bool temporary;
  8760. /* readonly */
  8761. StringHash type;
  8762. /* readonly */
  8763. String typeName;
  8764. bool updateEnabled;
  8765. uint velocityIterations;
  8766. bool warmStarting;
  8767. /* readonly */
  8768. int weakRefs;
  8769. };
  8770. class Plane
  8771. {
  8772. public:
  8773. Plane();
  8774. Plane(const Plane&in);
  8775. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8776. Plane(const Vector3&in, const Vector3&in);
  8777. Plane(const Vector4&in);
  8778. // Methods:
  8779. void Define(const Vector3&, const Vector3&);
  8780. void Define(const Vector3&, const Vector3&, const Vector3&);
  8781. void Define(const Vector4&);
  8782. float Distance(const Vector3&) const;
  8783. Vector3 Project(const Vector3&) const;
  8784. Vector3 Reflect(const Vector3&) const;
  8785. Vector4 ToVector4() const;
  8786. void Transform(const Matrix3&);
  8787. void Transform(const Matrix3x4&);
  8788. void Transform(const Matrix4&);
  8789. Plane Transformed(const Matrix3&) const;
  8790. Plane Transformed(const Matrix3x4&) const;
  8791. Plane Transformed(const Matrix4&) const;
  8792. // Properties:
  8793. Vector3 absNormal;
  8794. float d;
  8795. Vector3 normal;
  8796. /* readonly */
  8797. Matrix3x4 reflectionMatrix;
  8798. };
  8799. class Polyhedron
  8800. {
  8801. public:
  8802. ~Polyhedron();
  8803. Polyhedron();
  8804. Polyhedron(const Polyhedron&in);
  8805. Polyhedron(const BoundingBox&in);
  8806. Polyhedron(const Frustum&in);
  8807. // Methods:
  8808. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8809. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8810. void AddFace(const Array<Vector3>);
  8811. void Clear();
  8812. void Clip(const BoundingBox&);
  8813. void Clip(const Frustum&);
  8814. void Define(const BoundingBox&);
  8815. void Define(const Frustum&);
  8816. void Transform(const Matrix3&);
  8817. void Transform(const Matrix3x4&);
  8818. Polyhedron Transformed(const Matrix3&) const;
  8819. Polyhedron Transformed(const Matrix3x4&) const;
  8820. // Properties:
  8821. /* readonly */
  8822. Array<Array<Vector3>> face;
  8823. /* readonly */
  8824. uint numFaces;
  8825. };
  8826. class ProgressBar
  8827. {
  8828. public:
  8829. // Methods:
  8830. void ChangeValue(float);
  8831. bool HasSubscribedToEvent(Object, const String&);
  8832. bool HasSubscribedToEvent(const String&);
  8833. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8834. void SetLoadingPercentStyle(const String&);
  8835. // Properties:
  8836. /* readonly */
  8837. String category;
  8838. /* readonly */
  8839. BorderImage knob;
  8840. Orientation orientation;
  8841. float range;
  8842. /* readonly */
  8843. int refs;
  8844. bool showPercentText;
  8845. /* readonly */
  8846. StringHash type;
  8847. /* readonly */
  8848. String typeName;
  8849. float value;
  8850. /* readonly */
  8851. int weakRefs;
  8852. };
  8853. class PropertySet2D
  8854. {
  8855. public:
  8856. // Methods:
  8857. bool HasProperty(const String&) const;
  8858. const String& GetProperty(const String&) const;
  8859. // Properties:
  8860. /* readonly */
  8861. int refs;
  8862. /* readonly */
  8863. int weakRefs;
  8864. };
  8865. class Quaternion
  8866. {
  8867. public:
  8868. Quaternion();
  8869. Quaternion(const Quaternion&in);
  8870. Quaternion(float, float, float, float);
  8871. Quaternion(float, const Vector3&in);
  8872. Quaternion(float);
  8873. Quaternion(float, float, float);
  8874. Quaternion(const Vector3&in);
  8875. Quaternion(const Vector3&in, const Vector3&in);
  8876. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8877. Quaternion(const Matrix3&in);
  8878. // Methods:
  8879. Quaternion Conjugate() const;
  8880. float DotProduct(const Quaternion&) const;
  8881. bool Equals(const Quaternion&) const;
  8882. void FromAngleAxis(float, const Vector3&);
  8883. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8884. void FromEulerAngles(float, float, float);
  8885. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8886. void FromRotationMatrix(const Matrix3&);
  8887. void FromRotationTo(const Vector3&, const Vector3&);
  8888. Quaternion Inverse() const;
  8889. bool IsNaN() const;
  8890. float LengthSquared() const;
  8891. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8892. void Normalize();
  8893. Quaternion Normalized() const;
  8894. Quaternion Slerp(const Quaternion&, float) const;
  8895. String ToString() const;
  8896. // Properties:
  8897. /* readonly */
  8898. float angle;
  8899. /* readonly */
  8900. Vector3 axis;
  8901. /* readonly */
  8902. Vector3 eulerAngles;
  8903. /* readonly */
  8904. float pitch;
  8905. /* readonly */
  8906. float roll;
  8907. /* readonly */
  8908. Matrix3 rotationMatrix;
  8909. float w;
  8910. float x;
  8911. float y;
  8912. /* readonly */
  8913. float yaw;
  8914. float z;
  8915. };
  8916. class Ray
  8917. {
  8918. public:
  8919. Ray();
  8920. Ray(const Ray&in);
  8921. Ray(const Vector3&in, const Vector3&in);
  8922. // Methods:
  8923. Vector3 ClosestPoint(const Ray&) const;
  8924. void Define(const Vector3&, const Vector3&);
  8925. float Distance(const Vector3&) const;
  8926. float HitDistance(const BoundingBox&) const;
  8927. float HitDistance(const Frustum&, bool = true) const;
  8928. float HitDistance(const Plane&) const;
  8929. float HitDistance(const Sphere&) const;
  8930. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8931. Vector3 Project(const Vector3&) const;
  8932. Ray Transformed(const Matrix3x4&) const;
  8933. // Properties:
  8934. Vector3 direction;
  8935. Vector3 origin;
  8936. };
  8937. class RayQueryResult
  8938. {
  8939. public:
  8940. RayQueryResult();
  8941. // Properties:
  8942. float distance;
  8943. /* readonly */
  8944. Drawable drawable;
  8945. /* readonly */
  8946. Node node;
  8947. Vector3 normal;
  8948. Vector3 position;
  8949. uint subObject;
  8950. Vector2 textureUV;
  8951. };
  8952. class RaycastVehicle
  8953. {
  8954. public:
  8955. // Methods:
  8956. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8957. void ApplyAttributes();
  8958. void DrawDebugGeometry(DebugRenderer, bool);
  8959. Variant GetAttribute(const String&) const;
  8960. ValueAnimation GetAttributeAnimation(const String&) const;
  8961. float GetAttributeAnimationSpeed(const String&) const;
  8962. float GetAttributeAnimationTime(const String&) const;
  8963. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8964. Variant GetAttributeDefault(const String&) const;
  8965. float GetBrake(int);
  8966. Vector3 GetContactNormal(int);
  8967. Vector3 GetContactPosition(int);
  8968. float GetEngineForce(int);
  8969. bool GetInterceptNetworkUpdate(const String&) const;
  8970. float GetMaxSuspensionTravel(int);
  8971. float GetSteeringValue(int);
  8972. Vector3 GetWheelAxle(int);
  8973. Vector3 GetWheelConnectionPoint(int);
  8974. float GetWheelDampingCompression(int);
  8975. float GetWheelDampingRelaxation(int);
  8976. Vector3 GetWheelDirection(int);
  8977. float GetWheelFrictionSlip(int);
  8978. float GetWheelMaxSuspensionForce(int);
  8979. Node GetWheelNode(int);
  8980. Vector3 GetWheelPosition(int);
  8981. float GetWheelRadius(int);
  8982. float GetWheelRestLength(int);
  8983. float GetWheelRollInfluence(int);
  8984. Vector3 GetWheelRotation(int);
  8985. float GetWheelSideSlipSpeed(int);
  8986. float GetWheelSkidInfo(int);
  8987. float GetWheelSkidInfoCumulative(int);
  8988. float GetWheelSuspensionStiffness(int);
  8989. bool HasSubscribedToEvent(Object, const String&);
  8990. bool HasSubscribedToEvent(const String&);
  8991. void Init();
  8992. bool IsFrontWheel(int);
  8993. bool Load(File);
  8994. bool Load(VectorBuffer&);
  8995. bool LoadJSON(const JSONValue&);
  8996. bool LoadXML(const XMLElement&);
  8997. void MarkNetworkUpdate() const;
  8998. void Remove();
  8999. void RemoveAttributeAnimation(const String&);
  9000. void RemoveInstanceDefault();
  9001. void RemoveObjectAnimation();
  9002. void ResetSuspension();
  9003. void ResetToDefault();
  9004. void ResetWheels();
  9005. bool Save(File) const;
  9006. bool Save(VectorBuffer&) const;
  9007. bool SaveJSON(JSONValue&) const;
  9008. bool SaveXML(XMLElement&) const;
  9009. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9010. void SetAnimationTime(float);
  9011. bool SetAttribute(const String&, const Variant&);
  9012. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9013. void SetAttributeAnimationSpeed(const String&, float);
  9014. void SetAttributeAnimationTime(const String&, float);
  9015. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9016. void SetBrake(int, float);
  9017. void SetEngineForce(int, float);
  9018. void SetInterceptNetworkUpdate(const String&, bool);
  9019. void SetMaxSuspensionTravel(int, float);
  9020. void SetSteeringValue(int, float);
  9021. void SetWheelAxle(int, Vector3);
  9022. void SetWheelDampingCompression(int, float);
  9023. void SetWheelDampingRelaxation(int, float);
  9024. void SetWheelDirection(int, Vector3);
  9025. void SetWheelFrictionSlip(int, float);
  9026. void SetWheelMaxSuspensionForce(int, float);
  9027. void SetWheelRadius(int, float);
  9028. void SetWheelRestLength(int, float);
  9029. void SetWheelRollInfluence(int, float);
  9030. void SetWheelSkidInfo(int, float);
  9031. void SetWheelSkidInfoCumulative(int, float);
  9032. void SetWheelSuspensionStiffness(int, float);
  9033. void UpdateWheelTransform(int, bool);
  9034. bool WheelIsGrounded(int);
  9035. // Properties:
  9036. bool animationEnabled;
  9037. /* readonly */
  9038. Array<Variant> attributeDefaults;
  9039. /* readonly */
  9040. Array<AttributeInfo> attributeInfos;
  9041. Array<Variant> attributes;
  9042. /* readonly */
  9043. String category;
  9044. IntVector3 coordinateSystem;
  9045. bool enabled;
  9046. /* readonly */
  9047. bool enabledEffective;
  9048. /* readonly */
  9049. uint id;
  9050. float inAirRPM;
  9051. float maxSideSlipSpeed;
  9052. /* readonly */
  9053. Node node;
  9054. /* readonly */
  9055. uint numAttributes;
  9056. /* readonly */
  9057. int numWheels;
  9058. ObjectAnimation objectAnimation;
  9059. /* readonly */
  9060. int refs;
  9061. /* readonly */
  9062. bool replicated;
  9063. bool temporary;
  9064. /* readonly */
  9065. StringHash type;
  9066. /* readonly */
  9067. String typeName;
  9068. /* readonly */
  9069. int weakRefs;
  9070. // Constants:
  9071. static const IntVector3 FORWARD_RIGHT_UP;
  9072. static const IntVector3 FORWARD_UP_RIGHT;
  9073. static const IntVector3 RIGHT_FORWARD_UP;
  9074. static const IntVector3 RIGHT_UP_FORWARD;
  9075. static const IntVector3 UP_FORWARD_RIGHT;
  9076. static const IntVector3 UP_RIGHT_FORWARD;
  9077. };
  9078. class Rect
  9079. {
  9080. public:
  9081. Rect();
  9082. Rect(const Rect&in);
  9083. Rect(float, float, float, float);
  9084. Rect(const Vector2&in, const Vector2&in);
  9085. Rect(const Vector4&in);
  9086. // Methods:
  9087. void Clear();
  9088. void Clip(const Rect&);
  9089. void Define(const Vector2&);
  9090. void Define(const Vector2&, const Vector2&);
  9091. bool Defined() const;
  9092. bool Equals(const Rect&) const;
  9093. Intersection IsInside(const Rect&) const;
  9094. Intersection IsInside(const Vector2&) const;
  9095. void Merge(const Rect&);
  9096. void Merge(const Vector2&);
  9097. Vector4 ToVector4() const;
  9098. // Properties:
  9099. float bottom;
  9100. /* readonly */
  9101. Vector2 center;
  9102. /* readonly */
  9103. Vector2 halfSize;
  9104. float left;
  9105. Vector2 max;
  9106. Vector2 min;
  9107. float right;
  9108. /* readonly */
  9109. Vector2 size;
  9110. float top;
  9111. };
  9112. class RefCounted
  9113. {
  9114. public:
  9115. // Properties:
  9116. /* readonly */
  9117. int refs;
  9118. /* readonly */
  9119. int weakRefs;
  9120. };
  9121. class RenderPath
  9122. {
  9123. public:
  9124. RenderPath();
  9125. // Methods:
  9126. void AddCommand(const RenderPathCommand&);
  9127. void AddRenderTarget(const RenderTargetInfo&);
  9128. bool Append(XMLFile);
  9129. RenderPath Clone();
  9130. void InsertCommand(uint, const RenderPathCommand&);
  9131. bool Load(XMLFile);
  9132. void RemoveCommand(uint);
  9133. void RemoveCommands(const String&);
  9134. void RemoveRenderTarget(const String&);
  9135. void RemoveRenderTarget(uint);
  9136. void RemoveRenderTargts(const String&);
  9137. void SetEnabled(const String&, bool);
  9138. void ToggleEnabled(const String&);
  9139. // Properties:
  9140. /* readonly */
  9141. Array<bool> added;
  9142. Array<RenderPathCommand> commands;
  9143. /* readonly */
  9144. Array<bool> enabled;
  9145. /* readonly */
  9146. uint numCommands;
  9147. /* readonly */
  9148. uint numRenderTargets;
  9149. /* readonly */
  9150. int refs;
  9151. Array<RenderTargetInfo> renderTargets;
  9152. Array<Variant> shaderParameters;
  9153. /* readonly */
  9154. int weakRefs;
  9155. };
  9156. class RenderPathCommand
  9157. {
  9158. public:
  9159. ~RenderPathCommand();
  9160. RenderPathCommand();
  9161. RenderPathCommand(const RenderPathCommand&in);
  9162. // Methods:
  9163. void RemoveShaderParameter(const String&);
  9164. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  9165. // Properties:
  9166. BlendMode blendMode;
  9167. Color clearColor;
  9168. float clearDepth;
  9169. uint clearFlags;
  9170. uint clearStencil;
  9171. String depthStencilName;
  9172. bool enabled;
  9173. String eventName;
  9174. bool markToStencil;
  9175. String metadata;
  9176. uint numOutputs;
  9177. Array<CubeMapFace> outputFaces;
  9178. Array<String> outputNames;
  9179. String pass;
  9180. String pixelShaderDefines;
  9181. String pixelShaderName;
  9182. Array<Variant> shaderParameters;
  9183. RenderCommandSortMode sortMode;
  9184. String tag;
  9185. Array<String> textureNames;
  9186. RenderCommandType type;
  9187. bool useFogColor;
  9188. bool useLitBase;
  9189. bool vertexLights;
  9190. String vertexShaderDefines;
  9191. String vertexShaderName;
  9192. };
  9193. class RenderSurface
  9194. {
  9195. public:
  9196. // Methods:
  9197. void QueueUpdate();
  9198. // Properties:
  9199. /* readonly */
  9200. int height;
  9201. RenderSurface linkedDepthStencil;
  9202. RenderSurface linkedRenderTarget;
  9203. uint numViewports;
  9204. /* readonly */
  9205. Texture parentTexture;
  9206. /* readonly */
  9207. bool resolveDirty;
  9208. RenderSurfaceUpdateMode updateMode;
  9209. /* readonly */
  9210. TextureUsage usage;
  9211. Array<Viewport> viewports;
  9212. /* readonly */
  9213. int width;
  9214. };
  9215. class RenderTargetInfo
  9216. {
  9217. public:
  9218. ~RenderTargetInfo();
  9219. RenderTargetInfo();
  9220. RenderTargetInfo(const RenderTargetInfo&in);
  9221. // Properties:
  9222. bool autoResolve;
  9223. bool cubemap;
  9224. bool enabled;
  9225. bool filtered;
  9226. uint format;
  9227. int multiSample;
  9228. String name;
  9229. bool persistent;
  9230. bool sRGB;
  9231. Vector2 size;
  9232. RenderTargetSizeMode sizeMode;
  9233. String tag;
  9234. };
  9235. class Renderer
  9236. {
  9237. public:
  9238. // Methods:
  9239. void DrawDebugGeometry(bool) const;
  9240. Viewport GetViewportForScene(Scene, uint);
  9241. bool HasSubscribedToEvent(Object, const String&);
  9242. bool HasSubscribedToEvent(const String&);
  9243. void ReloadShaders() const;
  9244. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9245. void SetDefaultRenderPath(XMLFile);
  9246. void SetVSMShadowParameters(float, float);
  9247. // Properties:
  9248. /* readonly */
  9249. String category;
  9250. /* readonly */
  9251. Material defaultLightRamp;
  9252. /* readonly */
  9253. Material defaultLightSpot;
  9254. /* readonly */
  9255. Material defaultMaterial;
  9256. RenderPath defaultRenderPath;
  9257. Technique defaultTechnique;
  9258. /* readonly */
  9259. Zone defaultZone;
  9260. bool drawShadows;
  9261. bool dynamicInstancing;
  9262. bool hdrRendering;
  9263. int materialQuality;
  9264. int maxOccluderTriangles;
  9265. int maxShadowMaps;
  9266. int maxSortedInstances;
  9267. int minInstances;
  9268. float mobileNormalOffsetMul;
  9269. float mobileShadowBiasAdd;
  9270. float mobileShadowBiasMul;
  9271. /* readonly */
  9272. uint numBatches;
  9273. int numExtraInstancingBufferElements;
  9274. /* readonly */
  9275. Array<uint> numGeometries;
  9276. /* readonly */
  9277. Array<uint> numLights;
  9278. /* readonly */
  9279. Array<uint> numOccluders;
  9280. /* readonly */
  9281. uint numPrimitives;
  9282. /* readonly */
  9283. Array<uint> numShadowMaps;
  9284. uint numViewports;
  9285. /* readonly */
  9286. uint numViews;
  9287. float occluderSizeThreshold;
  9288. int occlusionBufferSize;
  9289. /* readonly */
  9290. int refs;
  9291. bool reuseShadowMaps;
  9292. int shadowMapSize;
  9293. ShadowQuality shadowQuality;
  9294. float shadowSoftness;
  9295. bool specularLighting;
  9296. int textureAnisotropy;
  9297. TextureFilterMode textureFilterMode;
  9298. int textureQuality;
  9299. bool threadedOcclusion;
  9300. /* readonly */
  9301. StringHash type;
  9302. /* readonly */
  9303. String typeName;
  9304. Array<Viewport> viewports;
  9305. int vsmMultiSample;
  9306. Vector2 vsmShadowParameters;
  9307. /* readonly */
  9308. int weakRefs;
  9309. };
  9310. class Resource
  9311. {
  9312. public:
  9313. // Methods:
  9314. bool HasSubscribedToEvent(Object, const String&);
  9315. bool HasSubscribedToEvent(const String&);
  9316. bool Load(File);
  9317. bool Load(VectorBuffer&);
  9318. bool Load(const String&);
  9319. bool Save(File) const;
  9320. bool Save(VectorBuffer&) const;
  9321. bool Save(const String&) const;
  9322. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9323. // Properties:
  9324. /* readonly */
  9325. String category;
  9326. /* readonly */
  9327. uint memoryUse;
  9328. String name;
  9329. /* readonly */
  9330. int refs;
  9331. /* readonly */
  9332. StringHash type;
  9333. /* readonly */
  9334. String typeName;
  9335. /* readonly */
  9336. uint useTimer;
  9337. /* readonly */
  9338. int weakRefs;
  9339. };
  9340. class ResourceCache
  9341. {
  9342. public:
  9343. // Methods:
  9344. bool AddManualResource(Resource);
  9345. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9346. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9347. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9348. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9349. bool Exists(const String&) const;
  9350. Resource GetExistingResource(StringHash, const String&);
  9351. Resource GetExistingResource(const String&, const String&);
  9352. File GetFile(const String&);
  9353. String GetPreferredResourceDir(const String&) const;
  9354. Resource GetResource(StringHash, const String&, bool = true);
  9355. Resource GetResource(const String&, const String&, bool = true);
  9356. String GetResourceFileName(const String&) const;
  9357. Array<Resource> GetResources(StringHash);
  9358. Array<Resource> GetResources(const String&);
  9359. bool HasSubscribedToEvent(Object, const String&);
  9360. bool HasSubscribedToEvent(const String&);
  9361. void ReleaseAllResources(bool = false);
  9362. void ReleaseResource(const String&, const String&, bool = false);
  9363. void ReleaseResources(StringHash, bool = false);
  9364. void ReleaseResources(const String&, bool = false);
  9365. void ReleaseResources(const String&, const String&, bool = false);
  9366. bool ReloadResource(Resource);
  9367. void ReloadResourceWithDependencies(const String&);
  9368. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9369. void RemovePackageFile(const String&, bool = true, bool = false);
  9370. void RemoveResourceDir(const String&);
  9371. String SanitateResourceDirName(const String&) const;
  9372. String SanitateResourceName(const String&) const;
  9373. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9374. // Properties:
  9375. bool autoReloadResources;
  9376. /* readonly */
  9377. String category;
  9378. int finishBackgroundResourcesMs;
  9379. Array<uint64> memoryBudget;
  9380. /* readonly */
  9381. Array<uint64> memoryUse;
  9382. /* readonly */
  9383. uint numBackgroundLoadResources;
  9384. /* readonly */
  9385. Array<PackageFile> packageFiles;
  9386. /* readonly */
  9387. int refs;
  9388. /* readonly */
  9389. Array<String> resourceDirs;
  9390. bool returnFailedResources;
  9391. /* readonly */
  9392. bool seachPackagesFirst;
  9393. /* writeonly */
  9394. bool searchPackagesFirst;
  9395. /* readonly */
  9396. uint64 totalMemoryUse;
  9397. /* readonly */
  9398. StringHash type;
  9399. /* readonly */
  9400. String typeName;
  9401. /* readonly */
  9402. int weakRefs;
  9403. };
  9404. class ResourceRef
  9405. {
  9406. public:
  9407. ~ResourceRef();
  9408. ResourceRef();
  9409. ResourceRef(const ResourceRef&in);
  9410. ResourceRef(const String&in, const String&in);
  9411. // Properties:
  9412. String name;
  9413. StringHash type;
  9414. };
  9415. class ResourceRefList
  9416. {
  9417. public:
  9418. ~ResourceRefList();
  9419. ResourceRefList();
  9420. ResourceRefList(const ResourceRefList&in);
  9421. // Methods:
  9422. void Resize(uint);
  9423. // Properties:
  9424. /* readonly */
  9425. bool empty;
  9426. /* readonly */
  9427. uint length;
  9428. Array<String> names;
  9429. StringHash type;
  9430. };
  9431. class RibbonTrail
  9432. {
  9433. public:
  9434. // Methods:
  9435. void ApplyAttributes();
  9436. void Commit();
  9437. void DrawDebugGeometry(DebugRenderer, bool);
  9438. Variant GetAttribute(const String&) const;
  9439. ValueAnimation GetAttributeAnimation(const String&) const;
  9440. float GetAttributeAnimationSpeed(const String&) const;
  9441. float GetAttributeAnimationTime(const String&) const;
  9442. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9443. Variant GetAttributeDefault(const String&) const;
  9444. bool GetInterceptNetworkUpdate(const String&) const;
  9445. bool HasSubscribedToEvent(Object, const String&);
  9446. bool HasSubscribedToEvent(const String&);
  9447. bool IsInView(Camera) const;
  9448. bool Load(File);
  9449. bool Load(VectorBuffer&);
  9450. bool LoadJSON(const JSONValue&);
  9451. bool LoadXML(const XMLElement&);
  9452. void MarkNetworkUpdate() const;
  9453. void Remove();
  9454. void RemoveAttributeAnimation(const String&);
  9455. void RemoveInstanceDefault();
  9456. void RemoveObjectAnimation();
  9457. void ResetToDefault();
  9458. bool Save(File) const;
  9459. bool Save(VectorBuffer&) const;
  9460. bool SaveJSON(JSONValue&) const;
  9461. bool SaveXML(XMLElement&) const;
  9462. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9463. void SetAnimationTime(float);
  9464. bool SetAttribute(const String&, const Variant&);
  9465. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9466. void SetAttributeAnimationSpeed(const String&, float);
  9467. void SetAttributeAnimationTime(const String&, float);
  9468. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9469. void SetInterceptNetworkUpdate(const String&, bool);
  9470. // Properties:
  9471. bool animationEnabled;
  9472. float animationLodBias;
  9473. /* readonly */
  9474. Array<Variant> attributeDefaults;
  9475. /* readonly */
  9476. Array<AttributeInfo> attributeInfos;
  9477. Array<Variant> attributes;
  9478. Vector3 baseVelocity;
  9479. /* readonly */
  9480. BoundingBox boundingBox;
  9481. bool castShadows;
  9482. /* readonly */
  9483. String category;
  9484. float drawDistance;
  9485. bool emitting;
  9486. bool enabled;
  9487. /* readonly */
  9488. bool enabledEffective;
  9489. Color endColor;
  9490. float endScale;
  9491. /* readonly */
  9492. uint id;
  9493. /* readonly */
  9494. bool inView;
  9495. float lifetime;
  9496. uint lightMask;
  9497. float lodBias;
  9498. Material material;
  9499. uint maxLights;
  9500. /* readonly */
  9501. Node node;
  9502. /* readonly */
  9503. uint numAttributes;
  9504. ObjectAnimation objectAnimation;
  9505. bool occludee;
  9506. bool occluder;
  9507. /* readonly */
  9508. int refs;
  9509. /* readonly */
  9510. bool replicated;
  9511. float shadowDistance;
  9512. uint shadowMask;
  9513. bool sorted;
  9514. Color startColor;
  9515. float startScale;
  9516. uint tailColumn;
  9517. bool temporary;
  9518. TrailType trailType;
  9519. /* readonly */
  9520. StringHash type;
  9521. /* readonly */
  9522. String typeName;
  9523. bool updateInvisible;
  9524. float vertexDistance;
  9525. uint viewMask;
  9526. /* readonly */
  9527. int weakRefs;
  9528. float width;
  9529. /* readonly */
  9530. BoundingBox worldBoundingBox;
  9531. /* readonly */
  9532. Zone zone;
  9533. uint zoneMask;
  9534. };
  9535. class RigidBody
  9536. {
  9537. public:
  9538. // Methods:
  9539. void Activate();
  9540. void ApplyAttributes();
  9541. void ApplyForce(const Vector3&);
  9542. void ApplyForce(const Vector3&, const Vector3&);
  9543. void ApplyImpulse(const Vector3&);
  9544. void ApplyImpulse(const Vector3&, const Vector3&);
  9545. void ApplyTorque(const Vector3&);
  9546. void ApplyTorqueImpulse(const Vector3&);
  9547. void DisableMassUpdate();
  9548. void DrawDebugGeometry(DebugRenderer, bool);
  9549. void EnableMassUpdate();
  9550. Variant GetAttribute(const String&) const;
  9551. ValueAnimation GetAttributeAnimation(const String&) const;
  9552. float GetAttributeAnimationSpeed(const String&) const;
  9553. float GetAttributeAnimationTime(const String&) const;
  9554. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9555. Variant GetAttributeDefault(const String&) const;
  9556. bool GetInterceptNetworkUpdate(const String&) const;
  9557. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9558. bool HasSubscribedToEvent(Object, const String&);
  9559. bool HasSubscribedToEvent(const String&);
  9560. bool Load(File);
  9561. bool Load(VectorBuffer&);
  9562. bool LoadJSON(const JSONValue&);
  9563. bool LoadXML(const XMLElement&);
  9564. void MarkNetworkUpdate() const;
  9565. void ReAddBodyToWorld();
  9566. void Remove();
  9567. void RemoveAttributeAnimation(const String&);
  9568. void RemoveInstanceDefault();
  9569. void RemoveObjectAnimation();
  9570. void ResetForces();
  9571. void ResetToDefault();
  9572. bool Save(File) const;
  9573. bool Save(VectorBuffer&) const;
  9574. bool SaveJSON(JSONValue&) const;
  9575. bool SaveXML(XMLElement&) const;
  9576. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9577. void SetAnimationTime(float);
  9578. bool SetAttribute(const String&, const Variant&);
  9579. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9580. void SetAttributeAnimationSpeed(const String&, float);
  9581. void SetAttributeAnimationTime(const String&, float);
  9582. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9583. void SetCollisionLayerAndMask(uint, uint);
  9584. void SetInterceptNetworkUpdate(const String&, bool);
  9585. void SetTransform(const Vector3&, const Quaternion&);
  9586. // Properties:
  9587. /* readonly */
  9588. bool active;
  9589. float angularDamping;
  9590. Vector3 angularFactor;
  9591. float angularRestThreshold;
  9592. Vector3 angularVelocity;
  9593. bool animationEnabled;
  9594. Vector3 anisotropicFriction;
  9595. /* readonly */
  9596. Array<Variant> attributeDefaults;
  9597. /* readonly */
  9598. Array<AttributeInfo> attributeInfos;
  9599. Array<Variant> attributes;
  9600. /* readonly */
  9601. String category;
  9602. float ccdMotionThreshold;
  9603. float ccdRadius;
  9604. /* readonly */
  9605. Vector3 centerOfMass;
  9606. /* readonly */
  9607. Array<RigidBody> collidingBodies;
  9608. CollisionEventMode collisionEventMode;
  9609. uint collisionLayer;
  9610. uint collisionMask;
  9611. float contactProcessingThreshold;
  9612. bool enabled;
  9613. /* readonly */
  9614. bool enabledEffective;
  9615. float friction;
  9616. Vector3 gravityOverride;
  9617. /* readonly */
  9618. uint id;
  9619. bool kinematic;
  9620. float linearDamping;
  9621. Vector3 linearFactor;
  9622. float linearRestThreshold;
  9623. Vector3 linearVelocity;
  9624. float mass;
  9625. /* readonly */
  9626. Node node;
  9627. /* readonly */
  9628. uint numAttributes;
  9629. ObjectAnimation objectAnimation;
  9630. Vector3 position;
  9631. /* readonly */
  9632. int refs;
  9633. /* readonly */
  9634. bool replicated;
  9635. float restitution;
  9636. float rollingFriction;
  9637. Quaternion rotation;
  9638. bool temporary;
  9639. bool trigger;
  9640. /* readonly */
  9641. StringHash type;
  9642. /* readonly */
  9643. String typeName;
  9644. bool useGravity;
  9645. /* readonly */
  9646. int weakRefs;
  9647. };
  9648. class RigidBody2D
  9649. {
  9650. public:
  9651. // Methods:
  9652. void ApplyAngularImpulse(float, bool);
  9653. void ApplyAttributes();
  9654. void ApplyForce(const Vector2&, const Vector2&, bool);
  9655. void ApplyForceToCenter(const Vector2&, bool);
  9656. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9657. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9658. void ApplyTorque(float, bool);
  9659. void DrawDebugGeometry(DebugRenderer, bool);
  9660. Variant GetAttribute(const String&) const;
  9661. ValueAnimation GetAttributeAnimation(const String&) const;
  9662. float GetAttributeAnimationSpeed(const String&) const;
  9663. float GetAttributeAnimationTime(const String&) const;
  9664. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9665. Variant GetAttributeDefault(const String&) const;
  9666. bool GetInterceptNetworkUpdate(const String&) const;
  9667. bool HasSubscribedToEvent(Object, const String&);
  9668. bool HasSubscribedToEvent(const String&);
  9669. bool Load(File);
  9670. bool Load(VectorBuffer&);
  9671. bool LoadJSON(const JSONValue&);
  9672. bool LoadXML(const XMLElement&);
  9673. void MarkNetworkUpdate() const;
  9674. void Remove();
  9675. void RemoveAttributeAnimation(const String&);
  9676. void RemoveInstanceDefault();
  9677. void RemoveObjectAnimation();
  9678. void ResetToDefault();
  9679. bool Save(File) const;
  9680. bool Save(VectorBuffer&) const;
  9681. bool SaveJSON(JSONValue&) const;
  9682. bool SaveXML(XMLElement&) const;
  9683. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9684. void SetAnimationTime(float);
  9685. bool SetAttribute(const String&, const Variant&);
  9686. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9687. void SetAttributeAnimationSpeed(const String&, float);
  9688. void SetAttributeAnimationTime(const String&, float);
  9689. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9690. void SetInterceptNetworkUpdate(const String&, bool);
  9691. // Properties:
  9692. bool allowSleep;
  9693. float angularDamping;
  9694. bool animationEnabled;
  9695. /* readonly */
  9696. Array<Variant> attributeDefaults;
  9697. /* readonly */
  9698. Array<AttributeInfo> attributeInfos;
  9699. Array<Variant> attributes;
  9700. bool awake;
  9701. BodyType2D bodyType;
  9702. bool bullet;
  9703. /* readonly */
  9704. String category;
  9705. bool enabled;
  9706. /* readonly */
  9707. bool enabledEffective;
  9708. bool fixedRotation;
  9709. float gravityScale;
  9710. /* readonly */
  9711. uint id;
  9712. float inertia;
  9713. float linearDamping;
  9714. Vector2 linearVelocity;
  9715. float mass;
  9716. Vector2 massCenter;
  9717. /* readonly */
  9718. Node node;
  9719. /* readonly */
  9720. uint numAttributes;
  9721. ObjectAnimation objectAnimation;
  9722. /* readonly */
  9723. int refs;
  9724. /* readonly */
  9725. bool replicated;
  9726. bool temporary;
  9727. /* readonly */
  9728. StringHash type;
  9729. /* readonly */
  9730. String typeName;
  9731. bool useFixtureMass;
  9732. /* readonly */
  9733. int weakRefs;
  9734. };
  9735. class Scene
  9736. {
  9737. public:
  9738. Scene();
  9739. Scene(const String&in);
  9740. // Methods:
  9741. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9742. void AddRequiredPackageFile(PackageFile);
  9743. void AddTag(const String&);
  9744. void AddTags(const String&, int8 = ';');
  9745. void ApplyAttributes();
  9746. void Clear(bool = true, bool = true);
  9747. void ClearRequiredPackageFiles();
  9748. Component CloneComponent(Component, CreateMode, uint = 0);
  9749. Component CloneComponent(Component, uint = 0);
  9750. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9751. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9752. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9753. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9754. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9755. Variant GetAttribute(const String&) const;
  9756. ValueAnimation GetAttributeAnimation(const String&) const;
  9757. float GetAttributeAnimationSpeed(const String&) const;
  9758. float GetAttributeAnimationTime(const String&) const;
  9759. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9760. Variant GetAttributeDefault(const String&) const;
  9761. Node GetChild(const String&, bool = false) const;
  9762. Array<Node> GetChildren(bool = false) const;
  9763. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9764. Array<Node> GetChildrenWithScript(bool = false) const;
  9765. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9766. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9767. Component GetComponent(const String&, bool = false) const;
  9768. Component GetComponent(uint) const;
  9769. Array<Component> GetComponents() const;
  9770. Array<Component> GetComponents(const String&, bool = false) const;
  9771. bool GetInterceptNetworkUpdate(const String&) const;
  9772. Node GetNode(uint) const;
  9773. Array<Node> GetNodesWithTag(const String&) const;
  9774. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9775. Component GetParentComponent(const String&, bool = false) const;
  9776. ScriptObject GetScriptObject() const;
  9777. ScriptObject GetScriptObject(const String&) const;
  9778. bool HasComponent(const String&) const;
  9779. bool HasSubscribedToEvent(Object, const String&);
  9780. bool HasSubscribedToEvent(const String&);
  9781. bool HasTag(const String&);
  9782. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9783. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9784. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9785. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9786. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9787. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9788. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9789. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9790. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9791. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9792. bool IsChildOf(Node) const;
  9793. bool Load(File);
  9794. bool Load(VectorBuffer&);
  9795. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9796. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9797. bool LoadJSON(File);
  9798. bool LoadJSON(VectorBuffer&);
  9799. bool LoadJSON(const JSONValue&);
  9800. bool LoadXML(File);
  9801. bool LoadXML(VectorBuffer&);
  9802. bool LoadXML(const XMLElement&);
  9803. Vector3 LocalToWorld(const Vector3&) const;
  9804. Vector3 LocalToWorld(const Vector4&) const;
  9805. Vector2 LocalToWorld2D(const Vector2&) const;
  9806. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9807. void MarkNetworkUpdate() const;
  9808. void Pitch(float, TransformSpace = TS_LOCAL);
  9809. void RegisterVar(const String&);
  9810. void Remove();
  9811. void RemoveAllChildren();
  9812. void RemoveAllComponents();
  9813. void RemoveAllTags();
  9814. void RemoveAttributeAnimation(const String&);
  9815. void RemoveChild(Node);
  9816. void RemoveChildren(bool, bool, bool);
  9817. void RemoveComponent(Component);
  9818. void RemoveComponent(const String&);
  9819. void RemoveComponents(bool, bool);
  9820. void RemoveComponents(const String&);
  9821. void RemoveInstanceDefault();
  9822. void RemoveObjectAnimation();
  9823. bool RemoveTag(const String&);
  9824. void ReorderComponent(Component, uint);
  9825. void ResetToDefault();
  9826. void Roll(float, TransformSpace = TS_LOCAL);
  9827. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9828. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9829. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9830. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9831. bool Save(File) const;
  9832. bool Save(VectorBuffer&) const;
  9833. bool SaveJSON(File, const String& = "\t");
  9834. bool SaveJSON(JSONValue&) const;
  9835. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9836. bool SaveXML(File, const String& = "\t");
  9837. bool SaveXML(VectorBuffer&, const String& = "\t");
  9838. bool SaveXML(XMLElement&) const;
  9839. void Scale(const Vector3&);
  9840. void Scale(float);
  9841. void Scale2D(const Vector2&);
  9842. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9843. void SetAnimationTime(float);
  9844. bool SetAttribute(const String&, const Variant&);
  9845. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9846. void SetAttributeAnimationSpeed(const String&, float);
  9847. void SetAttributeAnimationTime(const String&, float);
  9848. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9849. void SetInterceptNetworkUpdate(const String&, bool);
  9850. void SetPosition2D(float, float);
  9851. void SetScale(float);
  9852. void SetScale2D(float, float);
  9853. void SetTransform(const Matrix3x4&);
  9854. void SetTransform(const Vector3&, const Quaternion&);
  9855. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9856. void SetTransform(const Vector3&, const Quaternion&, float);
  9857. void SetTransform2D(const Vector2&, float);
  9858. void SetTransform2D(const Vector2&, float, const Vector2&);
  9859. void SetTransform2D(const Vector2&, float, float);
  9860. void SetWorldTransform(const Vector3&, const Quaternion&);
  9861. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9862. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9863. void SetWorldTransform2D(const Vector2&, float);
  9864. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9865. void SetWorldTransform2D(const Vector2&, float, float);
  9866. void StopAsyncLoading();
  9867. const String& GetVarName(StringHash) const;
  9868. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9869. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9870. void UnregisterAllVars(const String&);
  9871. void UnregisterVar(const String&);
  9872. void Update(float);
  9873. Vector3 WorldToLocal(const Vector3&) const;
  9874. Vector3 WorldToLocal(const Vector4&) const;
  9875. Vector2 WorldToLocal2D(const Vector2&) const;
  9876. void Yaw(float, TransformSpace = TS_LOCAL);
  9877. // Properties:
  9878. /* readonly */
  9879. Array<Node> allChildrenByName;
  9880. bool animationEnabled;
  9881. /* readonly */
  9882. LoadMode asyncLoadMode;
  9883. /* readonly */
  9884. bool asyncLoading;
  9885. int asyncLoadingMs;
  9886. /* readonly */
  9887. float asyncProgress;
  9888. /* readonly */
  9889. Array<Variant> attributeDefaults;
  9890. /* readonly */
  9891. Array<AttributeInfo> attributeInfos;
  9892. Array<Variant> attributes;
  9893. /* readonly */
  9894. String category;
  9895. /* readonly */
  9896. uint checksum;
  9897. /* readonly */
  9898. Array<Node> children;
  9899. /* readonly */
  9900. Array<Node> childrenByName;
  9901. /* readonly */
  9902. Array<Component> components;
  9903. /* readonly */
  9904. DebugRenderer debugRenderer;
  9905. Vector3 direction;
  9906. float elapsedTime;
  9907. /* readonly */
  9908. String fileName;
  9909. uint id;
  9910. String name;
  9911. /* readonly */
  9912. uint numAllChildren;
  9913. /* readonly */
  9914. uint numAttributes;
  9915. /* readonly */
  9916. uint numChildren;
  9917. /* readonly */
  9918. uint numComponents;
  9919. ObjectAnimation objectAnimation;
  9920. /* readonly */
  9921. Octree octree;
  9922. Node parent;
  9923. /* readonly */
  9924. PhysicsWorld physicsWorld;
  9925. /* readonly */
  9926. PhysicsWorld2D physicsWorld2D;
  9927. Vector3 position;
  9928. Vector2 position2D;
  9929. /* readonly */
  9930. int refs;
  9931. /* readonly */
  9932. bool replicated;
  9933. /* readonly */
  9934. Array<PackageFile> requiredPackageFiles;
  9935. /* readonly */
  9936. Vector3 right;
  9937. Quaternion rotation;
  9938. float rotation2D;
  9939. Vector3 scale;
  9940. Vector2 scale2D;
  9941. /* readonly */
  9942. ScriptObject scriptObject;
  9943. /* readonly */
  9944. Vector3 signedWorldScale;
  9945. float smoothingConstant;
  9946. float snapThreshold;
  9947. /* readonly */
  9948. Array<String> tags;
  9949. bool temporary;
  9950. float timeScale;
  9951. /* readonly */
  9952. Matrix3x4 transform;
  9953. /* readonly */
  9954. StringHash type;
  9955. /* readonly */
  9956. String typeName;
  9957. /* readonly */
  9958. Vector3 up;
  9959. bool updateEnabled;
  9960. /* readonly */
  9961. VariantMap vars;
  9962. /* readonly */
  9963. int weakRefs;
  9964. Vector3 worldDirection;
  9965. Vector3 worldPosition;
  9966. Vector2 worldPosition2D;
  9967. /* readonly */
  9968. Vector3 worldRight;
  9969. Quaternion worldRotation;
  9970. float worldRotation2D;
  9971. Vector3 worldScale;
  9972. Vector2 worldScale2D;
  9973. /* readonly */
  9974. Matrix3x4 worldTransform;
  9975. /* readonly */
  9976. Vector3 worldUp;
  9977. };
  9978. class Script
  9979. {
  9980. public:
  9981. // Methods:
  9982. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9983. bool Execute(const String&);
  9984. bool HasSubscribedToEvent(Object, const String&);
  9985. bool HasSubscribedToEvent(const String&);
  9986. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9987. // Properties:
  9988. /* readonly */
  9989. String category;
  9990. Scene defaultScene;
  9991. ScriptFile defaultScriptFile;
  9992. bool executeConsoleCommands;
  9993. /* readonly */
  9994. int refs;
  9995. /* readonly */
  9996. StringHash type;
  9997. /* readonly */
  9998. String typeName;
  9999. /* readonly */
  10000. int weakRefs;
  10001. };
  10002. class ScriptFile
  10003. {
  10004. public:
  10005. ScriptFile();
  10006. ScriptFile(const String&in);
  10007. // Methods:
  10008. void ClearDelayedExecute(const String& = String ( ));
  10009. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  10010. bool Execute(const String&, const Array<Variant> = null);
  10011. bool HasSubscribedToEvent(Object, const String&);
  10012. bool HasSubscribedToEvent(const String&);
  10013. bool Load(File);
  10014. bool Load(VectorBuffer&);
  10015. bool Load(const String&);
  10016. bool Save(File) const;
  10017. bool Save(VectorBuffer&) const;
  10018. bool Save(const String&) const;
  10019. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10020. // Properties:
  10021. /* readonly */
  10022. String category;
  10023. /* readonly */
  10024. bool compiled;
  10025. /* readonly */
  10026. uint memoryUse;
  10027. String name;
  10028. /* readonly */
  10029. int refs;
  10030. /* readonly */
  10031. StringHash type;
  10032. /* readonly */
  10033. String typeName;
  10034. /* readonly */
  10035. uint useTimer;
  10036. /* readonly */
  10037. int weakRefs;
  10038. };
  10039. class ScriptInstance
  10040. {
  10041. public:
  10042. // Methods:
  10043. void ApplyAttributes();
  10044. void ClearDelayedExecute(const String& = String ( ));
  10045. bool CreateObject(ScriptFile, const String&);
  10046. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  10047. void DrawDebugGeometry(DebugRenderer, bool);
  10048. bool Execute(const String&, const Array<Variant> = null);
  10049. Variant GetAttribute(const String&) const;
  10050. ValueAnimation GetAttributeAnimation(const String&) const;
  10051. float GetAttributeAnimationSpeed(const String&) const;
  10052. float GetAttributeAnimationTime(const String&) const;
  10053. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10054. Variant GetAttributeDefault(const String&) const;
  10055. bool GetInterceptNetworkUpdate(const String&) const;
  10056. bool HasMethod(const String&) const;
  10057. bool HasSubscribedToEvent(Object, const String&);
  10058. bool HasSubscribedToEvent(const String&);
  10059. bool IsA(const String&) const;
  10060. bool Load(File);
  10061. bool Load(VectorBuffer&);
  10062. bool LoadJSON(const JSONValue&);
  10063. bool LoadXML(const XMLElement&);
  10064. void MarkNetworkUpdate() const;
  10065. void Remove();
  10066. void RemoveAttributeAnimation(const String&);
  10067. void RemoveInstanceDefault();
  10068. void RemoveObjectAnimation();
  10069. void ResetToDefault();
  10070. bool Save(File) const;
  10071. bool Save(VectorBuffer&) const;
  10072. bool SaveJSON(JSONValue&) const;
  10073. bool SaveXML(XMLElement&) const;
  10074. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10075. void SetAnimationTime(float);
  10076. bool SetAttribute(const String&, const Variant&);
  10077. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10078. void SetAttributeAnimationSpeed(const String&, float);
  10079. void SetAttributeAnimationTime(const String&, float);
  10080. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10081. void SetInterceptNetworkUpdate(const String&, bool);
  10082. // Properties:
  10083. bool animationEnabled;
  10084. /* readonly */
  10085. Array<Variant> attributeDefaults;
  10086. /* readonly */
  10087. Array<AttributeInfo> attributeInfos;
  10088. Array<Variant> attributes;
  10089. /* readonly */
  10090. String category;
  10091. String className;
  10092. bool enabled;
  10093. /* readonly */
  10094. bool enabledEffective;
  10095. /* readonly */
  10096. uint id;
  10097. /* readonly */
  10098. Node node;
  10099. /* readonly */
  10100. uint numAttributes;
  10101. ObjectAnimation objectAnimation;
  10102. /* readonly */
  10103. int refs;
  10104. /* readonly */
  10105. bool replicated;
  10106. ScriptFile scriptFile;
  10107. /* readonly */
  10108. ScriptObject scriptObject;
  10109. bool temporary;
  10110. /* readonly */
  10111. StringHash type;
  10112. /* readonly */
  10113. String typeName;
  10114. /* readonly */
  10115. int weakRefs;
  10116. };
  10117. class ScriptObject
  10118. {
  10119. public:
  10120. };
  10121. class ScrollBar
  10122. {
  10123. public:
  10124. ScrollBar();
  10125. ScrollBar(const String&in);
  10126. // Methods:
  10127. void AddChild(UIElement);
  10128. void AddTag(const String&);
  10129. void AddTags(const String&, int8 = ';');
  10130. void ApplyAttributes();
  10131. void BringToFront();
  10132. void ChangeValue(float);
  10133. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10134. void DisableLayoutUpdate();
  10135. IntVector2 ElementToScreen(const IntVector2&);
  10136. void EnableLayoutUpdate();
  10137. uint FindChild(UIElement) const;
  10138. Variant GetAttribute(const String&) const;
  10139. ValueAnimation GetAttributeAnimation(const String&) const;
  10140. float GetAttributeAnimationSpeed(const String&) const;
  10141. float GetAttributeAnimationTime(const String&) const;
  10142. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10143. Variant GetAttributeDefault(const String&) const;
  10144. UIElement GetChild(const String&, bool = false) const;
  10145. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10146. Array<UIElement> GetChildren(bool = false) const;
  10147. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10148. UIElement GetElementEventSender() const;
  10149. bool GetInterceptNetworkUpdate(const String&) const;
  10150. uint GetNumChildren(bool) const;
  10151. bool HasSubscribedToEvent(Object, const String&);
  10152. bool HasSubscribedToEvent(const String&);
  10153. bool HasTag(const String&) const;
  10154. void InsertChild(uint, UIElement);
  10155. bool IsChildOf(UIElement) const;
  10156. bool IsInside(IntVector2, bool);
  10157. bool IsInsideCombined(IntVector2, bool);
  10158. bool Load(File);
  10159. bool Load(VectorBuffer&);
  10160. UIElement LoadChildXML(XMLFile, XMLFile);
  10161. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10162. bool LoadJSON(const JSONValue&);
  10163. bool LoadXML(File);
  10164. bool LoadXML(VectorBuffer&);
  10165. bool LoadXML(XMLFile, XMLFile);
  10166. bool LoadXML(const XMLElement&, XMLFile);
  10167. bool LoadXML(const XMLElement&);
  10168. void MarkNetworkUpdate() const;
  10169. void Remove();
  10170. void RemoveAllChildren();
  10171. void RemoveAllTags();
  10172. void RemoveAttributeAnimation(const String&);
  10173. void RemoveChild(UIElement, uint = 0);
  10174. void RemoveChild(uint);
  10175. void RemoveInstanceDefault();
  10176. void RemoveObjectAnimation();
  10177. bool RemoveTag(const String&);
  10178. void ResetDeepEnabled();
  10179. void ResetToDefault();
  10180. bool Save(File) const;
  10181. bool Save(VectorBuffer&) const;
  10182. bool SaveJSON(JSONValue&) const;
  10183. bool SaveXML(File, const String& = "\t");
  10184. bool SaveXML(VectorBuffer&, const String& = "\t");
  10185. bool SaveXML(XMLElement&) const;
  10186. IntVector2 ScreenToElement(const IntVector2&);
  10187. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10188. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10189. void SetAnimationTime(float);
  10190. bool SetAttribute(const String&, const Variant&);
  10191. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10192. void SetAttributeAnimationSpeed(const String&, float);
  10193. void SetAttributeAnimationTime(const String&, float);
  10194. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10195. void SetDeepEnabled(bool);
  10196. void SetEnabledRecursive(bool);
  10197. void SetFixedHeight(int);
  10198. void SetFixedSize(int, int);
  10199. void SetFixedWidth(int);
  10200. void SetInterceptNetworkUpdate(const String&, bool);
  10201. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10202. void SetMaxAnchor(float, float);
  10203. void SetMaxSize(int, int);
  10204. void SetMinAnchor(float, float);
  10205. void SetMinSize(int, int);
  10206. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10207. void SetPivot(float, float);
  10208. void SetPosition(int, int);
  10209. void SetSize(int, int);
  10210. bool SetStyle(const String&, XMLFile = null);
  10211. bool SetStyle(const XMLElement&);
  10212. bool SetStyleAuto(XMLFile = null);
  10213. void StepBack();
  10214. void StepForward();
  10215. void UpdateLayout();
  10216. const Variant& GetVar(const StringHash&);
  10217. // Properties:
  10218. bool animationEnabled;
  10219. /* readonly */
  10220. Array<Variant> attributeDefaults;
  10221. /* readonly */
  10222. Array<AttributeInfo> attributeInfos;
  10223. Array<Variant> attributes;
  10224. /* readonly */
  10225. Button backButton;
  10226. bool bringToBack;
  10227. bool bringToFront;
  10228. /* readonly */
  10229. String category;
  10230. /* readonly */
  10231. IntVector2 childOffset;
  10232. /* readonly */
  10233. Array<UIElement> children;
  10234. IntRect clipBorder;
  10235. bool clipChildren;
  10236. /* writeonly */
  10237. Color color;
  10238. /* readonly */
  10239. bool colorGradient;
  10240. Array<Color> colors;
  10241. /* readonly */
  10242. IntRect combinedScreenRect;
  10243. XMLFile defaultStyle;
  10244. /* readonly */
  10245. float derivedOpacity;
  10246. /* readonly */
  10247. uint dragButtonCombo;
  10248. /* readonly */
  10249. int dragButtonCount;
  10250. uint dragDropMode;
  10251. bool editable;
  10252. /* readonly */
  10253. float effectiveScrollStep;
  10254. bool elementEventSender;
  10255. bool enableAnchor;
  10256. bool enabled;
  10257. /* readonly */
  10258. bool enabledSelf;
  10259. /* readonly */
  10260. bool fixedHeight;
  10261. /* readonly */
  10262. bool fixedSize;
  10263. /* readonly */
  10264. bool fixedWidth;
  10265. bool focus;
  10266. FocusMode focusMode;
  10267. /* readonly */
  10268. Button forwardButton;
  10269. int height;
  10270. HorizontalAlignment horizontalAlignment;
  10271. /* readonly */
  10272. bool hovering;
  10273. int indent;
  10274. int indentSpacing;
  10275. /* readonly */
  10276. int indentWidth;
  10277. bool internal;
  10278. IntRect layoutBorder;
  10279. Vector2 layoutFlexScale;
  10280. LayoutMode layoutMode;
  10281. int layoutSpacing;
  10282. Vector2 maxAnchor;
  10283. int maxHeight;
  10284. IntVector2 maxOffset;
  10285. IntVector2 maxSize;
  10286. int maxWidth;
  10287. Vector2 minAnchor;
  10288. int minHeight;
  10289. IntVector2 minOffset;
  10290. IntVector2 minSize;
  10291. int minWidth;
  10292. String name;
  10293. /* readonly */
  10294. uint numAllChildren;
  10295. /* readonly */
  10296. uint numAttributes;
  10297. /* readonly */
  10298. uint numChildren;
  10299. ObjectAnimation objectAnimation;
  10300. float opacity;
  10301. Orientation orientation;
  10302. UIElement parent;
  10303. Vector2 pivot;
  10304. IntVector2 position;
  10305. int priority;
  10306. float range;
  10307. /* readonly */
  10308. int refs;
  10309. /* readonly */
  10310. UIElement root;
  10311. /* readonly */
  10312. IntVector2 screenPosition;
  10313. float scrollStep;
  10314. bool selected;
  10315. IntVector2 size;
  10316. /* readonly */
  10317. Slider slider;
  10318. bool sortChildren;
  10319. float stepFactor;
  10320. String style;
  10321. /* readonly */
  10322. Array<String> tags;
  10323. bool temporary;
  10324. TraversalMode traversalMode;
  10325. /* readonly */
  10326. StringHash type;
  10327. /* readonly */
  10328. String typeName;
  10329. bool useDerivedOpacity;
  10330. float value;
  10331. /* readonly */
  10332. VariantMap vars;
  10333. VerticalAlignment verticalAlignment;
  10334. bool visible;
  10335. /* readonly */
  10336. bool visibleEffective;
  10337. /* readonly */
  10338. int weakRefs;
  10339. int width;
  10340. };
  10341. class ScrollView
  10342. {
  10343. public:
  10344. ScrollView();
  10345. ScrollView(const String&in);
  10346. // Methods:
  10347. void AddChild(UIElement);
  10348. void AddTag(const String&);
  10349. void AddTags(const String&, int8 = ';');
  10350. void ApplyAttributes();
  10351. void BringToFront();
  10352. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10353. void DisableLayoutUpdate();
  10354. IntVector2 ElementToScreen(const IntVector2&);
  10355. void EnableLayoutUpdate();
  10356. uint FindChild(UIElement) const;
  10357. Variant GetAttribute(const String&) const;
  10358. ValueAnimation GetAttributeAnimation(const String&) const;
  10359. float GetAttributeAnimationSpeed(const String&) const;
  10360. float GetAttributeAnimationTime(const String&) const;
  10361. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10362. Variant GetAttributeDefault(const String&) const;
  10363. UIElement GetChild(const String&, bool = false) const;
  10364. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10365. Array<UIElement> GetChildren(bool = false) const;
  10366. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10367. UIElement GetElementEventSender() const;
  10368. bool GetInterceptNetworkUpdate(const String&) const;
  10369. uint GetNumChildren(bool) const;
  10370. bool HasSubscribedToEvent(Object, const String&);
  10371. bool HasSubscribedToEvent(const String&);
  10372. bool HasTag(const String&) const;
  10373. void InsertChild(uint, UIElement);
  10374. bool IsChildOf(UIElement) const;
  10375. bool IsInside(IntVector2, bool);
  10376. bool IsInsideCombined(IntVector2, bool);
  10377. bool Load(File);
  10378. bool Load(VectorBuffer&);
  10379. UIElement LoadChildXML(XMLFile, XMLFile);
  10380. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10381. bool LoadJSON(const JSONValue&);
  10382. bool LoadXML(File);
  10383. bool LoadXML(VectorBuffer&);
  10384. bool LoadXML(XMLFile, XMLFile);
  10385. bool LoadXML(const XMLElement&, XMLFile);
  10386. bool LoadXML(const XMLElement&);
  10387. void MarkNetworkUpdate() const;
  10388. void Remove();
  10389. void RemoveAllChildren();
  10390. void RemoveAllTags();
  10391. void RemoveAttributeAnimation(const String&);
  10392. void RemoveChild(UIElement, uint = 0);
  10393. void RemoveChild(uint);
  10394. void RemoveInstanceDefault();
  10395. void RemoveObjectAnimation();
  10396. bool RemoveTag(const String&);
  10397. void ResetDeepEnabled();
  10398. void ResetToDefault();
  10399. bool Save(File) const;
  10400. bool Save(VectorBuffer&) const;
  10401. bool SaveJSON(JSONValue&) const;
  10402. bool SaveXML(File, const String& = "\t");
  10403. bool SaveXML(VectorBuffer&, const String& = "\t");
  10404. bool SaveXML(XMLElement&) const;
  10405. IntVector2 ScreenToElement(const IntVector2&);
  10406. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10407. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10408. void SetAnimationTime(float);
  10409. bool SetAttribute(const String&, const Variant&);
  10410. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10411. void SetAttributeAnimationSpeed(const String&, float);
  10412. void SetAttributeAnimationTime(const String&, float);
  10413. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10414. void SetDeepEnabled(bool);
  10415. void SetEnabledRecursive(bool);
  10416. void SetFixedHeight(int);
  10417. void SetFixedSize(int, int);
  10418. void SetFixedWidth(int);
  10419. void SetInterceptNetworkUpdate(const String&, bool);
  10420. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10421. void SetMaxAnchor(float, float);
  10422. void SetMaxSize(int, int);
  10423. void SetMinAnchor(float, float);
  10424. void SetMinSize(int, int);
  10425. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10426. void SetPivot(float, float);
  10427. void SetPosition(int, int);
  10428. void SetScrollBarsVisible(bool, bool);
  10429. void SetSize(int, int);
  10430. bool SetStyle(const String&, XMLFile = null);
  10431. bool SetStyle(const XMLElement&);
  10432. bool SetStyleAuto(XMLFile = null);
  10433. void SetViewPosition(int, int);
  10434. void UpdateLayout();
  10435. const Variant& GetVar(const StringHash&);
  10436. // Properties:
  10437. bool animationEnabled;
  10438. /* readonly */
  10439. Array<Variant> attributeDefaults;
  10440. /* readonly */
  10441. Array<AttributeInfo> attributeInfos;
  10442. Array<Variant> attributes;
  10443. bool autoDisableChildren;
  10444. float autoDisableThreshold;
  10445. bool bringToBack;
  10446. bool bringToFront;
  10447. /* readonly */
  10448. String category;
  10449. /* readonly */
  10450. IntVector2 childOffset;
  10451. /* readonly */
  10452. Array<UIElement> children;
  10453. IntRect clipBorder;
  10454. bool clipChildren;
  10455. /* writeonly */
  10456. Color color;
  10457. /* readonly */
  10458. bool colorGradient;
  10459. Array<Color> colors;
  10460. /* readonly */
  10461. IntRect combinedScreenRect;
  10462. UIElement contentElement;
  10463. XMLFile defaultStyle;
  10464. /* readonly */
  10465. float derivedOpacity;
  10466. /* readonly */
  10467. uint dragButtonCombo;
  10468. /* readonly */
  10469. int dragButtonCount;
  10470. uint dragDropMode;
  10471. bool editable;
  10472. bool elementEventSender;
  10473. bool enableAnchor;
  10474. bool enabled;
  10475. /* readonly */
  10476. bool enabledSelf;
  10477. /* readonly */
  10478. bool fixedHeight;
  10479. /* readonly */
  10480. bool fixedSize;
  10481. /* readonly */
  10482. bool fixedWidth;
  10483. bool focus;
  10484. FocusMode focusMode;
  10485. int height;
  10486. HorizontalAlignment horizontalAlignment;
  10487. /* readonly */
  10488. ScrollBar horizontalScrollBar;
  10489. bool horizontalScrollBarVisible;
  10490. /* readonly */
  10491. bool hovering;
  10492. int indent;
  10493. int indentSpacing;
  10494. /* readonly */
  10495. int indentWidth;
  10496. bool internal;
  10497. IntRect layoutBorder;
  10498. Vector2 layoutFlexScale;
  10499. LayoutMode layoutMode;
  10500. int layoutSpacing;
  10501. Vector2 maxAnchor;
  10502. int maxHeight;
  10503. IntVector2 maxOffset;
  10504. IntVector2 maxSize;
  10505. int maxWidth;
  10506. Vector2 minAnchor;
  10507. int minHeight;
  10508. IntVector2 minOffset;
  10509. IntVector2 minSize;
  10510. int minWidth;
  10511. String name;
  10512. /* readonly */
  10513. uint numAllChildren;
  10514. /* readonly */
  10515. uint numAttributes;
  10516. /* readonly */
  10517. uint numChildren;
  10518. ObjectAnimation objectAnimation;
  10519. float opacity;
  10520. float pageStep;
  10521. UIElement parent;
  10522. Vector2 pivot;
  10523. IntVector2 position;
  10524. int priority;
  10525. /* readonly */
  10526. int refs;
  10527. /* readonly */
  10528. UIElement root;
  10529. /* readonly */
  10530. IntVector2 screenPosition;
  10531. bool scrollBarsAutoVisible;
  10532. float scrollDeceleration;
  10533. /* readonly */
  10534. BorderImage scrollPanel;
  10535. float scrollSnapEpsilon;
  10536. float scrollStep;
  10537. bool selected;
  10538. IntVector2 size;
  10539. bool sortChildren;
  10540. String style;
  10541. /* readonly */
  10542. Array<String> tags;
  10543. bool temporary;
  10544. TraversalMode traversalMode;
  10545. /* readonly */
  10546. StringHash type;
  10547. /* readonly */
  10548. String typeName;
  10549. bool useDerivedOpacity;
  10550. /* readonly */
  10551. VariantMap vars;
  10552. VerticalAlignment verticalAlignment;
  10553. /* readonly */
  10554. ScrollBar verticalScrollBar;
  10555. bool verticalScrollBarVisible;
  10556. IntVector2 viewPosition;
  10557. bool visible;
  10558. /* readonly */
  10559. bool visibleEffective;
  10560. /* readonly */
  10561. int weakRefs;
  10562. int width;
  10563. };
  10564. class Serializable
  10565. {
  10566. public:
  10567. // Methods:
  10568. void ApplyAttributes();
  10569. Variant GetAttribute(const String&) const;
  10570. Variant GetAttributeDefault(const String&) const;
  10571. bool GetInterceptNetworkUpdate(const String&) const;
  10572. bool HasSubscribedToEvent(Object, const String&);
  10573. bool HasSubscribedToEvent(const String&);
  10574. bool Load(File);
  10575. bool Load(VectorBuffer&);
  10576. bool LoadJSON(const JSONValue&);
  10577. bool LoadXML(const XMLElement&);
  10578. void MarkNetworkUpdate() const;
  10579. void RemoveInstanceDefault();
  10580. void ResetToDefault();
  10581. bool Save(File) const;
  10582. bool Save(VectorBuffer&) const;
  10583. bool SaveJSON(JSONValue&) const;
  10584. bool SaveXML(XMLElement&) const;
  10585. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10586. bool SetAttribute(const String&, const Variant&);
  10587. void SetInterceptNetworkUpdate(const String&, bool);
  10588. // Properties:
  10589. /* readonly */
  10590. Array<Variant> attributeDefaults;
  10591. /* readonly */
  10592. Array<AttributeInfo> attributeInfos;
  10593. Array<Variant> attributes;
  10594. /* readonly */
  10595. String category;
  10596. /* readonly */
  10597. uint numAttributes;
  10598. /* readonly */
  10599. int refs;
  10600. bool temporary;
  10601. /* readonly */
  10602. StringHash type;
  10603. /* readonly */
  10604. String typeName;
  10605. /* readonly */
  10606. int weakRefs;
  10607. };
  10608. class Serializer
  10609. {
  10610. public:
  10611. // Methods:
  10612. uint Write(Array<uint8>);
  10613. bool WriteBool(bool);
  10614. bool WriteBoundingBox(const BoundingBox&);
  10615. bool WriteByte(int8);
  10616. bool WriteColor(const Color&);
  10617. bool WriteDouble(double);
  10618. bool WriteFileID(const String&);
  10619. bool WriteFloat(float);
  10620. bool WriteInt(int);
  10621. bool WriteInt64(int64);
  10622. bool WriteIntRect(const IntRect&);
  10623. bool WriteIntVector2(const IntVector2&);
  10624. bool WriteLine(const String&);
  10625. bool WriteMatrix3(const Matrix3&);
  10626. bool WriteMatrix3x4(const Matrix3x4&);
  10627. bool WriteMatrix4(const Matrix4&);
  10628. bool WriteNetID(uint);
  10629. bool WritePackedQuaternion(const Quaternion&);
  10630. bool WritePackedVector3(const Vector3&, float);
  10631. bool WriteQuaternion(const Quaternion&);
  10632. bool WriteShort(int16);
  10633. bool WriteString(const String&);
  10634. bool WriteStringHash(const StringHash&);
  10635. bool WriteUByte(uint8);
  10636. bool WriteUInt(uint);
  10637. bool WriteUInt64(uint64);
  10638. bool WriteUShort(uint16);
  10639. bool WriteVLE(uint);
  10640. bool WriteVariant(const Variant&);
  10641. bool WriteVariantMap(const VariantMap&);
  10642. bool WriteVector2(const Vector2&);
  10643. bool WriteVector3(const Vector3&);
  10644. bool WriteVector4(const Vector4&);
  10645. bool WriteVectorBuffer(const VectorBuffer&);
  10646. };
  10647. class Skeleton
  10648. {
  10649. public:
  10650. // Methods:
  10651. Bone GetBone(const String&) const;
  10652. uint GetBoneIndex(const String&) const;
  10653. Bone GetBoneParent(Bone) const;
  10654. void Reset();
  10655. // Properties:
  10656. /* readonly */
  10657. Array<Bone> bones;
  10658. /* readonly */
  10659. uint numBones;
  10660. /* readonly */
  10661. Bone rootBone;
  10662. };
  10663. class Skybox
  10664. {
  10665. public:
  10666. // Methods:
  10667. void ApplyAttributes();
  10668. void ApplyMaterialList(const String& = String ( ));
  10669. void DrawDebugGeometry(DebugRenderer, bool);
  10670. Variant GetAttribute(const String&) const;
  10671. ValueAnimation GetAttributeAnimation(const String&) const;
  10672. float GetAttributeAnimationSpeed(const String&) const;
  10673. float GetAttributeAnimationTime(const String&) const;
  10674. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10675. Variant GetAttributeDefault(const String&) const;
  10676. bool GetInterceptNetworkUpdate(const String&) const;
  10677. bool HasSubscribedToEvent(Object, const String&);
  10678. bool HasSubscribedToEvent(const String&);
  10679. bool IsInView(Camera) const;
  10680. bool Load(File);
  10681. bool Load(VectorBuffer&);
  10682. bool LoadJSON(const JSONValue&);
  10683. bool LoadXML(const XMLElement&);
  10684. void MarkNetworkUpdate() const;
  10685. void Remove();
  10686. void RemoveAttributeAnimation(const String&);
  10687. void RemoveInstanceDefault();
  10688. void RemoveObjectAnimation();
  10689. void ResetToDefault();
  10690. bool Save(File) const;
  10691. bool Save(VectorBuffer&) const;
  10692. bool SaveJSON(JSONValue&) const;
  10693. bool SaveXML(XMLElement&) const;
  10694. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10695. void SetAnimationTime(float);
  10696. bool SetAttribute(const String&, const Variant&);
  10697. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10698. void SetAttributeAnimationSpeed(const String&, float);
  10699. void SetAttributeAnimationTime(const String&, float);
  10700. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10701. void SetInterceptNetworkUpdate(const String&, bool);
  10702. // Properties:
  10703. bool animationEnabled;
  10704. /* readonly */
  10705. Array<Variant> attributeDefaults;
  10706. /* readonly */
  10707. Array<AttributeInfo> attributeInfos;
  10708. Array<Variant> attributes;
  10709. /* readonly */
  10710. BoundingBox boundingBox;
  10711. bool castShadows;
  10712. /* readonly */
  10713. String category;
  10714. float drawDistance;
  10715. bool enabled;
  10716. /* readonly */
  10717. bool enabledEffective;
  10718. /* readonly */
  10719. uint id;
  10720. /* readonly */
  10721. bool inView;
  10722. uint lightMask;
  10723. float lodBias;
  10724. Material material;
  10725. Array<Material> materials;
  10726. uint maxLights;
  10727. Model model;
  10728. /* readonly */
  10729. Node node;
  10730. /* readonly */
  10731. uint numAttributes;
  10732. /* readonly */
  10733. uint numGeometries;
  10734. ObjectAnimation objectAnimation;
  10735. bool occludee;
  10736. bool occluder;
  10737. /* readonly */
  10738. int refs;
  10739. /* readonly */
  10740. bool replicated;
  10741. float shadowDistance;
  10742. uint shadowMask;
  10743. bool temporary;
  10744. /* readonly */
  10745. StringHash type;
  10746. /* readonly */
  10747. String typeName;
  10748. uint viewMask;
  10749. /* readonly */
  10750. int weakRefs;
  10751. /* readonly */
  10752. BoundingBox worldBoundingBox;
  10753. /* readonly */
  10754. Zone zone;
  10755. uint zoneMask;
  10756. };
  10757. class Slider
  10758. {
  10759. public:
  10760. Slider();
  10761. Slider(const String&in);
  10762. // Methods:
  10763. void AddChild(UIElement);
  10764. void AddTag(const String&);
  10765. void AddTags(const String&, int8 = ';');
  10766. void ApplyAttributes();
  10767. void BringToFront();
  10768. void ChangeValue(float);
  10769. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10770. void DisableLayoutUpdate();
  10771. IntVector2 ElementToScreen(const IntVector2&);
  10772. void EnableLayoutUpdate();
  10773. uint FindChild(UIElement) const;
  10774. Variant GetAttribute(const String&) const;
  10775. ValueAnimation GetAttributeAnimation(const String&) const;
  10776. float GetAttributeAnimationSpeed(const String&) const;
  10777. float GetAttributeAnimationTime(const String&) const;
  10778. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10779. Variant GetAttributeDefault(const String&) const;
  10780. UIElement GetChild(const String&, bool = false) const;
  10781. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10782. Array<UIElement> GetChildren(bool = false) const;
  10783. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10784. UIElement GetElementEventSender() const;
  10785. bool GetInterceptNetworkUpdate(const String&) const;
  10786. uint GetNumChildren(bool) const;
  10787. bool HasSubscribedToEvent(Object, const String&);
  10788. bool HasSubscribedToEvent(const String&);
  10789. bool HasTag(const String&) const;
  10790. void InsertChild(uint, UIElement);
  10791. bool IsChildOf(UIElement) const;
  10792. bool IsInside(IntVector2, bool);
  10793. bool IsInsideCombined(IntVector2, bool);
  10794. bool Load(File);
  10795. bool Load(VectorBuffer&);
  10796. UIElement LoadChildXML(XMLFile, XMLFile);
  10797. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10798. bool LoadJSON(const JSONValue&);
  10799. bool LoadXML(File);
  10800. bool LoadXML(VectorBuffer&);
  10801. bool LoadXML(XMLFile, XMLFile);
  10802. bool LoadXML(const XMLElement&, XMLFile);
  10803. bool LoadXML(const XMLElement&);
  10804. void MarkNetworkUpdate() const;
  10805. void Remove();
  10806. void RemoveAllChildren();
  10807. void RemoveAllTags();
  10808. void RemoveAttributeAnimation(const String&);
  10809. void RemoveChild(UIElement, uint = 0);
  10810. void RemoveChild(uint);
  10811. void RemoveInstanceDefault();
  10812. void RemoveObjectAnimation();
  10813. bool RemoveTag(const String&);
  10814. void ResetDeepEnabled();
  10815. void ResetToDefault();
  10816. bool Save(File) const;
  10817. bool Save(VectorBuffer&) const;
  10818. bool SaveJSON(JSONValue&) const;
  10819. bool SaveXML(File, const String& = "\t");
  10820. bool SaveXML(VectorBuffer&, const String& = "\t");
  10821. bool SaveXML(XMLElement&) const;
  10822. IntVector2 ScreenToElement(const IntVector2&);
  10823. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10824. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10825. void SetAnimationTime(float);
  10826. bool SetAttribute(const String&, const Variant&);
  10827. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10828. void SetAttributeAnimationSpeed(const String&, float);
  10829. void SetAttributeAnimationTime(const String&, float);
  10830. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10831. void SetDeepEnabled(bool);
  10832. void SetDisabledOffset(int, int);
  10833. void SetEnabledRecursive(bool);
  10834. void SetFixedHeight(int);
  10835. void SetFixedSize(int, int);
  10836. void SetFixedWidth(int);
  10837. void SetFullImageRect();
  10838. void SetHoverOffset(int, int);
  10839. void SetInterceptNetworkUpdate(const String&, bool);
  10840. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10841. void SetMaxAnchor(float, float);
  10842. void SetMaxSize(int, int);
  10843. void SetMinAnchor(float, float);
  10844. void SetMinSize(int, int);
  10845. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10846. void SetPivot(float, float);
  10847. void SetPosition(int, int);
  10848. void SetSize(int, int);
  10849. bool SetStyle(const String&, XMLFile = null);
  10850. bool SetStyle(const XMLElement&);
  10851. bool SetStyleAuto(XMLFile = null);
  10852. void UpdateLayout();
  10853. const Variant& GetVar(const StringHash&);
  10854. // Properties:
  10855. bool animationEnabled;
  10856. /* readonly */
  10857. Array<Variant> attributeDefaults;
  10858. /* readonly */
  10859. Array<AttributeInfo> attributeInfos;
  10860. Array<Variant> attributes;
  10861. BlendMode blendMode;
  10862. IntRect border;
  10863. bool bringToBack;
  10864. bool bringToFront;
  10865. /* readonly */
  10866. String category;
  10867. /* readonly */
  10868. IntVector2 childOffset;
  10869. /* readonly */
  10870. Array<UIElement> children;
  10871. IntRect clipBorder;
  10872. bool clipChildren;
  10873. /* writeonly */
  10874. Color color;
  10875. /* readonly */
  10876. bool colorGradient;
  10877. Array<Color> colors;
  10878. /* readonly */
  10879. IntRect combinedScreenRect;
  10880. XMLFile defaultStyle;
  10881. /* readonly */
  10882. float derivedOpacity;
  10883. IntVector2 disabledOffset;
  10884. /* readonly */
  10885. uint dragButtonCombo;
  10886. /* readonly */
  10887. int dragButtonCount;
  10888. uint dragDropMode;
  10889. bool editable;
  10890. bool elementEventSender;
  10891. bool enableAnchor;
  10892. bool enabled;
  10893. /* readonly */
  10894. bool enabledSelf;
  10895. /* readonly */
  10896. bool fixedHeight;
  10897. /* readonly */
  10898. bool fixedSize;
  10899. /* readonly */
  10900. bool fixedWidth;
  10901. bool focus;
  10902. FocusMode focusMode;
  10903. int height;
  10904. HorizontalAlignment horizontalAlignment;
  10905. IntVector2 hoverOffset;
  10906. /* readonly */
  10907. bool hovering;
  10908. IntRect imageBorder;
  10909. IntRect imageRect;
  10910. int indent;
  10911. int indentSpacing;
  10912. /* readonly */
  10913. int indentWidth;
  10914. bool internal;
  10915. /* readonly */
  10916. BorderImage knob;
  10917. IntRect layoutBorder;
  10918. Vector2 layoutFlexScale;
  10919. LayoutMode layoutMode;
  10920. int layoutSpacing;
  10921. Material material;
  10922. Vector2 maxAnchor;
  10923. int maxHeight;
  10924. IntVector2 maxOffset;
  10925. IntVector2 maxSize;
  10926. int maxWidth;
  10927. Vector2 minAnchor;
  10928. int minHeight;
  10929. IntVector2 minOffset;
  10930. IntVector2 minSize;
  10931. int minWidth;
  10932. String name;
  10933. /* readonly */
  10934. uint numAllChildren;
  10935. /* readonly */
  10936. uint numAttributes;
  10937. /* readonly */
  10938. uint numChildren;
  10939. ObjectAnimation objectAnimation;
  10940. float opacity;
  10941. Orientation orientation;
  10942. UIElement parent;
  10943. Vector2 pivot;
  10944. IntVector2 position;
  10945. int priority;
  10946. float range;
  10947. /* readonly */
  10948. int refs;
  10949. float repeatRate;
  10950. /* readonly */
  10951. UIElement root;
  10952. /* readonly */
  10953. IntVector2 screenPosition;
  10954. bool selected;
  10955. IntVector2 size;
  10956. bool sortChildren;
  10957. String style;
  10958. /* readonly */
  10959. Array<String> tags;
  10960. bool temporary;
  10961. Texture texture;
  10962. bool tiled;
  10963. TraversalMode traversalMode;
  10964. /* readonly */
  10965. StringHash type;
  10966. /* readonly */
  10967. String typeName;
  10968. bool useDerivedOpacity;
  10969. float value;
  10970. /* readonly */
  10971. VariantMap vars;
  10972. VerticalAlignment verticalAlignment;
  10973. bool visible;
  10974. /* readonly */
  10975. bool visibleEffective;
  10976. /* readonly */
  10977. int weakRefs;
  10978. int width;
  10979. };
  10980. class SmoothedTransform
  10981. {
  10982. public:
  10983. // Methods:
  10984. void ApplyAttributes();
  10985. void DrawDebugGeometry(DebugRenderer, bool);
  10986. Variant GetAttribute(const String&) const;
  10987. ValueAnimation GetAttributeAnimation(const String&) const;
  10988. float GetAttributeAnimationSpeed(const String&) const;
  10989. float GetAttributeAnimationTime(const String&) const;
  10990. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10991. Variant GetAttributeDefault(const String&) const;
  10992. bool GetInterceptNetworkUpdate(const String&) const;
  10993. bool HasSubscribedToEvent(Object, const String&);
  10994. bool HasSubscribedToEvent(const String&);
  10995. bool Load(File);
  10996. bool Load(VectorBuffer&);
  10997. bool LoadJSON(const JSONValue&);
  10998. bool LoadXML(const XMLElement&);
  10999. void MarkNetworkUpdate() const;
  11000. void Remove();
  11001. void RemoveAttributeAnimation(const String&);
  11002. void RemoveInstanceDefault();
  11003. void RemoveObjectAnimation();
  11004. void ResetToDefault();
  11005. bool Save(File) const;
  11006. bool Save(VectorBuffer&) const;
  11007. bool SaveJSON(JSONValue&) const;
  11008. bool SaveXML(XMLElement&) const;
  11009. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11010. void SetAnimationTime(float);
  11011. bool SetAttribute(const String&, const Variant&);
  11012. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11013. void SetAttributeAnimationSpeed(const String&, float);
  11014. void SetAttributeAnimationTime(const String&, float);
  11015. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11016. void SetInterceptNetworkUpdate(const String&, bool);
  11017. void Update(float, float);
  11018. // Properties:
  11019. bool animationEnabled;
  11020. /* readonly */
  11021. Array<Variant> attributeDefaults;
  11022. /* readonly */
  11023. Array<AttributeInfo> attributeInfos;
  11024. Array<Variant> attributes;
  11025. /* readonly */
  11026. String category;
  11027. bool enabled;
  11028. /* readonly */
  11029. bool enabledEffective;
  11030. /* readonly */
  11031. uint id;
  11032. /* readonly */
  11033. bool inProgress;
  11034. /* readonly */
  11035. Node node;
  11036. /* readonly */
  11037. uint numAttributes;
  11038. ObjectAnimation objectAnimation;
  11039. /* readonly */
  11040. int refs;
  11041. /* readonly */
  11042. bool replicated;
  11043. Vector3 targetPosition;
  11044. Quaternion targetRotation;
  11045. Vector3 targetWorldPosition;
  11046. Quaternion targetWorldRotation;
  11047. bool temporary;
  11048. /* readonly */
  11049. StringHash type;
  11050. /* readonly */
  11051. String typeName;
  11052. /* readonly */
  11053. int weakRefs;
  11054. };
  11055. class Sound
  11056. {
  11057. public:
  11058. Sound();
  11059. Sound(const String&in);
  11060. // Methods:
  11061. void AddMetadata(const String&, const Variant&);
  11062. bool HasSubscribedToEvent(Object, const String&);
  11063. bool HasSubscribedToEvent(const String&);
  11064. bool Load(File);
  11065. bool Load(VectorBuffer&);
  11066. bool Load(const String&);
  11067. void RemoveAllMetadata();
  11068. void RemoveMetadata(const String&);
  11069. bool Save(File) const;
  11070. bool Save(VectorBuffer&) const;
  11071. bool Save(const String&) const;
  11072. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11073. // Properties:
  11074. /* readonly */
  11075. String category;
  11076. /* readonly */
  11077. bool compressed;
  11078. /* readonly */
  11079. float frequency;
  11080. /* readonly */
  11081. bool hasMetadata;
  11082. /* readonly */
  11083. float length;
  11084. bool looped;
  11085. /* readonly */
  11086. uint memoryUse;
  11087. Array<Variant> metadata;
  11088. String name;
  11089. /* readonly */
  11090. int refs;
  11091. /* readonly */
  11092. uint sampleSize;
  11093. /* readonly */
  11094. bool sixteenBit;
  11095. /* readonly */
  11096. bool stereo;
  11097. /* readonly */
  11098. StringHash type;
  11099. /* readonly */
  11100. String typeName;
  11101. /* readonly */
  11102. uint useTimer;
  11103. /* readonly */
  11104. int weakRefs;
  11105. };
  11106. class SoundListener
  11107. {
  11108. public:
  11109. // Methods:
  11110. void ApplyAttributes();
  11111. void DrawDebugGeometry(DebugRenderer, bool);
  11112. Variant GetAttribute(const String&) const;
  11113. ValueAnimation GetAttributeAnimation(const String&) const;
  11114. float GetAttributeAnimationSpeed(const String&) const;
  11115. float GetAttributeAnimationTime(const String&) const;
  11116. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11117. Variant GetAttributeDefault(const String&) const;
  11118. bool GetInterceptNetworkUpdate(const String&) const;
  11119. bool HasSubscribedToEvent(Object, const String&);
  11120. bool HasSubscribedToEvent(const String&);
  11121. bool Load(File);
  11122. bool Load(VectorBuffer&);
  11123. bool LoadJSON(const JSONValue&);
  11124. bool LoadXML(const XMLElement&);
  11125. void MarkNetworkUpdate() const;
  11126. void Remove();
  11127. void RemoveAttributeAnimation(const String&);
  11128. void RemoveInstanceDefault();
  11129. void RemoveObjectAnimation();
  11130. void ResetToDefault();
  11131. bool Save(File) const;
  11132. bool Save(VectorBuffer&) const;
  11133. bool SaveJSON(JSONValue&) const;
  11134. bool SaveXML(XMLElement&) const;
  11135. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11136. void SetAnimationTime(float);
  11137. bool SetAttribute(const String&, const Variant&);
  11138. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11139. void SetAttributeAnimationSpeed(const String&, float);
  11140. void SetAttributeAnimationTime(const String&, float);
  11141. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11142. void SetInterceptNetworkUpdate(const String&, bool);
  11143. // Properties:
  11144. bool animationEnabled;
  11145. /* readonly */
  11146. Array<Variant> attributeDefaults;
  11147. /* readonly */
  11148. Array<AttributeInfo> attributeInfos;
  11149. Array<Variant> attributes;
  11150. /* readonly */
  11151. String category;
  11152. bool enabled;
  11153. /* readonly */
  11154. bool enabledEffective;
  11155. /* readonly */
  11156. uint id;
  11157. /* readonly */
  11158. Node node;
  11159. /* readonly */
  11160. uint numAttributes;
  11161. ObjectAnimation objectAnimation;
  11162. /* readonly */
  11163. int refs;
  11164. /* readonly */
  11165. bool replicated;
  11166. bool temporary;
  11167. /* readonly */
  11168. StringHash type;
  11169. /* readonly */
  11170. String typeName;
  11171. /* readonly */
  11172. int weakRefs;
  11173. };
  11174. class SoundSource
  11175. {
  11176. public:
  11177. SoundSource();
  11178. // Methods:
  11179. void ApplyAttributes();
  11180. void DrawDebugGeometry(DebugRenderer, bool);
  11181. Variant GetAttribute(const String&) const;
  11182. ValueAnimation GetAttributeAnimation(const String&) const;
  11183. float GetAttributeAnimationSpeed(const String&) const;
  11184. float GetAttributeAnimationTime(const String&) const;
  11185. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11186. Variant GetAttributeDefault(const String&) const;
  11187. bool GetInterceptNetworkUpdate(const String&) const;
  11188. bool HasSubscribedToEvent(Object, const String&);
  11189. bool HasSubscribedToEvent(const String&);
  11190. bool Load(File);
  11191. bool Load(VectorBuffer&);
  11192. bool LoadJSON(const JSONValue&);
  11193. bool LoadXML(const XMLElement&);
  11194. void MarkNetworkUpdate() const;
  11195. void Play(Sound);
  11196. void Play(Sound, float);
  11197. void Play(Sound, float, float);
  11198. void Play(Sound, float, float, float);
  11199. void Remove();
  11200. void RemoveAttributeAnimation(const String&);
  11201. void RemoveInstanceDefault();
  11202. void RemoveObjectAnimation();
  11203. void ResetToDefault();
  11204. bool Save(File) const;
  11205. bool Save(VectorBuffer&) const;
  11206. bool SaveJSON(JSONValue&) const;
  11207. bool SaveXML(XMLElement&) const;
  11208. void Seek(float);
  11209. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11210. void SetAnimationTime(float);
  11211. bool SetAttribute(const String&, const Variant&);
  11212. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11213. void SetAttributeAnimationSpeed(const String&, float);
  11214. void SetAttributeAnimationTime(const String&, float);
  11215. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11216. void SetInterceptNetworkUpdate(const String&, bool);
  11217. void Stop();
  11218. // Properties:
  11219. bool animationEnabled;
  11220. /* readonly */
  11221. float attenuation;
  11222. /* readonly */
  11223. Array<Variant> attributeDefaults;
  11224. /* readonly */
  11225. Array<AttributeInfo> attributeInfos;
  11226. Array<Variant> attributes;
  11227. AutoRemoveMode autoRemoveMode;
  11228. /* readonly */
  11229. String category;
  11230. bool enabled;
  11231. /* readonly */
  11232. bool enabledEffective;
  11233. float frequency;
  11234. float gain;
  11235. /* readonly */
  11236. uint id;
  11237. /* readonly */
  11238. Node node;
  11239. /* readonly */
  11240. uint numAttributes;
  11241. ObjectAnimation objectAnimation;
  11242. float panning;
  11243. /* readonly */
  11244. bool playing;
  11245. /* readonly */
  11246. int refs;
  11247. /* readonly */
  11248. bool replicated;
  11249. /* readonly */
  11250. Sound sound;
  11251. String soundType;
  11252. bool temporary;
  11253. /* readonly */
  11254. float timePosition;
  11255. /* readonly */
  11256. StringHash type;
  11257. /* readonly */
  11258. String typeName;
  11259. /* readonly */
  11260. int weakRefs;
  11261. };
  11262. class SoundSource3D
  11263. {
  11264. public:
  11265. // Methods:
  11266. void ApplyAttributes();
  11267. void DrawDebugGeometry(DebugRenderer, bool);
  11268. Variant GetAttribute(const String&) const;
  11269. ValueAnimation GetAttributeAnimation(const String&) const;
  11270. float GetAttributeAnimationSpeed(const String&) const;
  11271. float GetAttributeAnimationTime(const String&) const;
  11272. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11273. Variant GetAttributeDefault(const String&) const;
  11274. bool GetInterceptNetworkUpdate(const String&) const;
  11275. bool HasSubscribedToEvent(Object, const String&);
  11276. bool HasSubscribedToEvent(const String&);
  11277. bool Load(File);
  11278. bool Load(VectorBuffer&);
  11279. bool LoadJSON(const JSONValue&);
  11280. bool LoadXML(const XMLElement&);
  11281. void MarkNetworkUpdate() const;
  11282. void Play(Sound);
  11283. void Play(Sound, float);
  11284. void Play(Sound, float, float);
  11285. void Play(Sound, float, float, float);
  11286. void Remove();
  11287. void RemoveAttributeAnimation(const String&);
  11288. void RemoveInstanceDefault();
  11289. void RemoveObjectAnimation();
  11290. void ResetToDefault();
  11291. bool Save(File) const;
  11292. bool Save(VectorBuffer&) const;
  11293. bool SaveJSON(JSONValue&) const;
  11294. bool SaveXML(XMLElement&) const;
  11295. void Seek(float);
  11296. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11297. void SetAngleAttenuation(float, float);
  11298. void SetAnimationTime(float);
  11299. bool SetAttribute(const String&, const Variant&);
  11300. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11301. void SetAttributeAnimationSpeed(const String&, float);
  11302. void SetAttributeAnimationTime(const String&, float);
  11303. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11304. void SetDistanceAttenuation(float, float, float);
  11305. void SetInterceptNetworkUpdate(const String&, bool);
  11306. void Stop();
  11307. // Properties:
  11308. bool animationEnabled;
  11309. /* readonly */
  11310. float attenuation;
  11311. /* readonly */
  11312. Array<Variant> attributeDefaults;
  11313. /* readonly */
  11314. Array<AttributeInfo> attributeInfos;
  11315. Array<Variant> attributes;
  11316. AutoRemoveMode autoRemoveMode;
  11317. /* readonly */
  11318. String category;
  11319. bool enabled;
  11320. /* readonly */
  11321. bool enabledEffective;
  11322. float farDistance;
  11323. float frequency;
  11324. float gain;
  11325. /* readonly */
  11326. uint id;
  11327. float innerAngle;
  11328. float nearDistance;
  11329. /* readonly */
  11330. Node node;
  11331. /* readonly */
  11332. uint numAttributes;
  11333. ObjectAnimation objectAnimation;
  11334. float outerAngle;
  11335. float panning;
  11336. /* readonly */
  11337. bool playing;
  11338. /* readonly */
  11339. int refs;
  11340. /* readonly */
  11341. bool replicated;
  11342. float rolloffFactor;
  11343. /* readonly */
  11344. Sound sound;
  11345. String soundType;
  11346. bool temporary;
  11347. /* readonly */
  11348. float timePosition;
  11349. /* readonly */
  11350. StringHash type;
  11351. /* readonly */
  11352. String typeName;
  11353. /* readonly */
  11354. int weakRefs;
  11355. };
  11356. class Sphere
  11357. {
  11358. public:
  11359. Sphere();
  11360. Sphere(const Sphere&in);
  11361. Sphere(const Vector3&in, float);
  11362. Sphere(const BoundingBox&in);
  11363. Sphere(const Frustum&in);
  11364. Sphere(const Polyhedron&in);
  11365. // Methods:
  11366. void Clear();
  11367. void Define(const BoundingBox&);
  11368. void Define(const Frustum&);
  11369. void Define(const Polyhedron&);
  11370. void Define(const Sphere&);
  11371. void Define(const Vector3&, float);
  11372. bool Defined() const;
  11373. float Distance(const Vector3&) const;
  11374. Vector3 GetLocalPoint(float, float) const;
  11375. Vector3 GetPoint(float, float) const;
  11376. Intersection IsInside(const BoundingBox&) const;
  11377. Intersection IsInside(const Sphere&) const;
  11378. Intersection IsInside(const Vector3&) const;
  11379. Intersection IsInsideFast(const BoundingBox&) const;
  11380. Intersection IsInsideFast(const Sphere&) const;
  11381. void Merge(const BoundingBox&);
  11382. void Merge(const Frustum&);
  11383. void Merge(const Sphere&);
  11384. void Merge(const Vector3&);
  11385. // Properties:
  11386. Vector3 center;
  11387. float radius;
  11388. };
  11389. class Spline
  11390. {
  11391. public:
  11392. Spline();
  11393. Spline(InterpolationMode);
  11394. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11395. Spline(const Spline&in);
  11396. // Methods:
  11397. void AddKnot(const Variant&);
  11398. void AddKnot(const Variant&, uint);
  11399. void Clear();
  11400. Variant GetPoint(float);
  11401. void RemoveKnot();
  11402. void RemoveKnot(uint);
  11403. // Properties:
  11404. InterpolationMode interpolationMode;
  11405. Array<Variant> knot;
  11406. Array<Variant> knots;
  11407. };
  11408. class SplinePath
  11409. {
  11410. public:
  11411. // Methods:
  11412. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11413. void ApplyAttributes();
  11414. void ClearControlPoints();
  11415. void DrawDebugGeometry(DebugRenderer, bool);
  11416. Variant GetAttribute(const String&) const;
  11417. ValueAnimation GetAttributeAnimation(const String&) const;
  11418. float GetAttributeAnimationSpeed(const String&) const;
  11419. float GetAttributeAnimationTime(const String&) const;
  11420. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11421. Variant GetAttributeDefault(const String&) const;
  11422. bool GetInterceptNetworkUpdate(const String&) const;
  11423. Vector3 GetPoint(float) const;
  11424. Vector3 GetPosition() const;
  11425. bool HasSubscribedToEvent(Object, const String&);
  11426. bool HasSubscribedToEvent(const String&);
  11427. bool Load(File);
  11428. bool Load(VectorBuffer&);
  11429. bool LoadJSON(const JSONValue&);
  11430. bool LoadXML(const XMLElement&);
  11431. void MarkNetworkUpdate() const;
  11432. void Move(float);
  11433. void Remove();
  11434. void RemoveAttributeAnimation(const String&);
  11435. void RemoveControlPoint(Node);
  11436. void RemoveInstanceDefault();
  11437. void RemoveObjectAnimation();
  11438. void Reset();
  11439. void ResetToDefault();
  11440. bool Save(File) const;
  11441. bool Save(VectorBuffer&) const;
  11442. bool SaveJSON(JSONValue&) const;
  11443. bool SaveXML(XMLElement&) const;
  11444. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11445. void SetAnimationTime(float);
  11446. bool SetAttribute(const String&, const Variant&);
  11447. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11448. void SetAttributeAnimationSpeed(const String&, float);
  11449. void SetAttributeAnimationTime(const String&, float);
  11450. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11451. void SetInterceptNetworkUpdate(const String&, bool);
  11452. void SetPosition(float);
  11453. // Properties:
  11454. bool animationEnabled;
  11455. /* readonly */
  11456. Array<Variant> attributeDefaults;
  11457. /* readonly */
  11458. Array<AttributeInfo> attributeInfos;
  11459. Array<Variant> attributes;
  11460. /* readonly */
  11461. String category;
  11462. Node controlledNode;
  11463. bool enabled;
  11464. /* readonly */
  11465. bool enabledEffective;
  11466. /* readonly */
  11467. uint id;
  11468. InterpolationMode interpolationMode;
  11469. /* readonly */
  11470. bool isFinished;
  11471. /* readonly */
  11472. float length;
  11473. /* readonly */
  11474. Node node;
  11475. /* readonly */
  11476. uint numAttributes;
  11477. ObjectAnimation objectAnimation;
  11478. /* readonly */
  11479. int refs;
  11480. /* readonly */
  11481. bool replicated;
  11482. float speed;
  11483. bool temporary;
  11484. /* readonly */
  11485. StringHash type;
  11486. /* readonly */
  11487. String typeName;
  11488. /* readonly */
  11489. int weakRefs;
  11490. };
  11491. class Sprite
  11492. {
  11493. public:
  11494. Sprite();
  11495. Sprite(const String&in);
  11496. // Methods:
  11497. void AddChild(UIElement);
  11498. void AddTag(const String&);
  11499. void AddTags(const String&, int8 = ';');
  11500. void ApplyAttributes();
  11501. void BringToFront();
  11502. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11503. void DisableLayoutUpdate();
  11504. IntVector2 ElementToScreen(const IntVector2&);
  11505. void EnableLayoutUpdate();
  11506. uint FindChild(UIElement) const;
  11507. Variant GetAttribute(const String&) const;
  11508. ValueAnimation GetAttributeAnimation(const String&) const;
  11509. float GetAttributeAnimationSpeed(const String&) const;
  11510. float GetAttributeAnimationTime(const String&) const;
  11511. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11512. Variant GetAttributeDefault(const String&) const;
  11513. UIElement GetChild(const String&, bool = false) const;
  11514. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11515. Array<UIElement> GetChildren(bool = false) const;
  11516. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11517. UIElement GetElementEventSender() const;
  11518. bool GetInterceptNetworkUpdate(const String&) const;
  11519. uint GetNumChildren(bool) const;
  11520. bool HasSubscribedToEvent(Object, const String&);
  11521. bool HasSubscribedToEvent(const String&);
  11522. bool HasTag(const String&) const;
  11523. void InsertChild(uint, UIElement);
  11524. bool IsChildOf(UIElement) const;
  11525. bool IsInside(IntVector2, bool);
  11526. bool IsInsideCombined(IntVector2, bool);
  11527. bool Load(File);
  11528. bool Load(VectorBuffer&);
  11529. UIElement LoadChildXML(XMLFile, XMLFile);
  11530. UIElement LoadChildXML(const XMLElement&, XMLFile);
  11531. bool LoadJSON(const JSONValue&);
  11532. bool LoadXML(File);
  11533. bool LoadXML(VectorBuffer&);
  11534. bool LoadXML(XMLFile, XMLFile);
  11535. bool LoadXML(const XMLElement&, XMLFile);
  11536. bool LoadXML(const XMLElement&);
  11537. void MarkNetworkUpdate() const;
  11538. void Remove();
  11539. void RemoveAllChildren();
  11540. void RemoveAllTags();
  11541. void RemoveAttributeAnimation(const String&);
  11542. void RemoveChild(UIElement, uint = 0);
  11543. void RemoveChild(uint);
  11544. void RemoveInstanceDefault();
  11545. void RemoveObjectAnimation();
  11546. bool RemoveTag(const String&);
  11547. void ResetDeepEnabled();
  11548. void ResetToDefault();
  11549. bool Save(File) const;
  11550. bool Save(VectorBuffer&) const;
  11551. bool SaveJSON(JSONValue&) const;
  11552. bool SaveXML(File, const String& = "\t");
  11553. bool SaveXML(VectorBuffer&, const String& = "\t");
  11554. bool SaveXML(XMLElement&) const;
  11555. IntVector2 ScreenToElement(const IntVector2&);
  11556. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11557. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11558. void SetAnimationTime(float);
  11559. bool SetAttribute(const String&, const Variant&);
  11560. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11561. void SetAttributeAnimationSpeed(const String&, float);
  11562. void SetAttributeAnimationTime(const String&, float);
  11563. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11564. void SetDeepEnabled(bool);
  11565. void SetEnabledRecursive(bool);
  11566. void SetFixedHeight(int);
  11567. void SetFixedSize(int, int);
  11568. void SetFixedWidth(int);
  11569. void SetFullImageRect();
  11570. void SetHotSpot(int, int);
  11571. void SetInterceptNetworkUpdate(const String&, bool);
  11572. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11573. void SetMaxAnchor(float, float);
  11574. void SetMaxSize(int, int);
  11575. void SetMinAnchor(float, float);
  11576. void SetMinSize(int, int);
  11577. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11578. void SetPivot(float, float);
  11579. void SetPosition(float, float);
  11580. void SetScale(float);
  11581. void SetScale(float, float);
  11582. void SetSize(int, int);
  11583. bool SetStyle(const String&, XMLFile = null);
  11584. bool SetStyle(const XMLElement&);
  11585. bool SetStyleAuto(XMLFile = null);
  11586. void UpdateLayout();
  11587. const Variant& GetVar(const StringHash&);
  11588. // Properties:
  11589. bool animationEnabled;
  11590. /* readonly */
  11591. Array<Variant> attributeDefaults;
  11592. /* readonly */
  11593. Array<AttributeInfo> attributeInfos;
  11594. Array<Variant> attributes;
  11595. BlendMode blendMode;
  11596. bool bringToBack;
  11597. bool bringToFront;
  11598. /* readonly */
  11599. String category;
  11600. /* readonly */
  11601. IntVector2 childOffset;
  11602. /* readonly */
  11603. Array<UIElement> children;
  11604. IntRect clipBorder;
  11605. bool clipChildren;
  11606. /* writeonly */
  11607. Color color;
  11608. /* readonly */
  11609. bool colorGradient;
  11610. Array<Color> colors;
  11611. /* readonly */
  11612. IntRect combinedScreenRect;
  11613. XMLFile defaultStyle;
  11614. /* readonly */
  11615. float derivedOpacity;
  11616. /* readonly */
  11617. uint dragButtonCombo;
  11618. /* readonly */
  11619. int dragButtonCount;
  11620. uint dragDropMode;
  11621. bool editable;
  11622. bool elementEventSender;
  11623. bool enableAnchor;
  11624. bool enabled;
  11625. /* readonly */
  11626. bool enabledSelf;
  11627. /* readonly */
  11628. bool fixedHeight;
  11629. /* readonly */
  11630. bool fixedSize;
  11631. /* readonly */
  11632. bool fixedWidth;
  11633. bool focus;
  11634. FocusMode focusMode;
  11635. int height;
  11636. HorizontalAlignment horizontalAlignment;
  11637. IntVector2 hotSpot;
  11638. /* readonly */
  11639. bool hovering;
  11640. IntRect imageRect;
  11641. int indent;
  11642. int indentSpacing;
  11643. /* readonly */
  11644. int indentWidth;
  11645. bool internal;
  11646. IntRect layoutBorder;
  11647. Vector2 layoutFlexScale;
  11648. LayoutMode layoutMode;
  11649. int layoutSpacing;
  11650. Vector2 maxAnchor;
  11651. int maxHeight;
  11652. IntVector2 maxOffset;
  11653. IntVector2 maxSize;
  11654. int maxWidth;
  11655. Vector2 minAnchor;
  11656. int minHeight;
  11657. IntVector2 minOffset;
  11658. IntVector2 minSize;
  11659. int minWidth;
  11660. String name;
  11661. /* readonly */
  11662. uint numAllChildren;
  11663. /* readonly */
  11664. uint numAttributes;
  11665. /* readonly */
  11666. uint numChildren;
  11667. ObjectAnimation objectAnimation;
  11668. float opacity;
  11669. UIElement parent;
  11670. Vector2 pivot;
  11671. Vector2 position;
  11672. int priority;
  11673. /* readonly */
  11674. int refs;
  11675. /* readonly */
  11676. UIElement root;
  11677. float rotation;
  11678. Vector2 scale;
  11679. /* readonly */
  11680. IntVector2 screenPosition;
  11681. bool selected;
  11682. IntVector2 size;
  11683. bool sortChildren;
  11684. String style;
  11685. /* readonly */
  11686. Array<String> tags;
  11687. bool temporary;
  11688. Texture texture;
  11689. TraversalMode traversalMode;
  11690. /* readonly */
  11691. StringHash type;
  11692. /* readonly */
  11693. String typeName;
  11694. bool useDerivedOpacity;
  11695. /* readonly */
  11696. VariantMap vars;
  11697. VerticalAlignment verticalAlignment;
  11698. bool visible;
  11699. /* readonly */
  11700. bool visibleEffective;
  11701. /* readonly */
  11702. int weakRefs;
  11703. int width;
  11704. };
  11705. class Sprite2D
  11706. {
  11707. public:
  11708. Sprite2D();
  11709. Sprite2D(const String&in);
  11710. // Methods:
  11711. bool HasSubscribedToEvent(Object, const String&);
  11712. bool HasSubscribedToEvent(const String&);
  11713. bool Load(File);
  11714. bool Load(VectorBuffer&);
  11715. bool Load(const String&);
  11716. bool Save(File) const;
  11717. bool Save(VectorBuffer&) const;
  11718. bool Save(const String&) const;
  11719. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11720. // Properties:
  11721. /* readonly */
  11722. String category;
  11723. Vector2 hotSpot;
  11724. /* readonly */
  11725. uint memoryUse;
  11726. String name;
  11727. IntVector2 offset;
  11728. IntRect rectangle;
  11729. /* readonly */
  11730. int refs;
  11731. Texture2D texture;
  11732. float textureEdgeOffset;
  11733. /* readonly */
  11734. StringHash type;
  11735. /* readonly */
  11736. String typeName;
  11737. /* readonly */
  11738. uint useTimer;
  11739. /* readonly */
  11740. int weakRefs;
  11741. };
  11742. class SpriteSheet2D
  11743. {
  11744. public:
  11745. SpriteSheet2D();
  11746. SpriteSheet2D(const String&in);
  11747. // Methods:
  11748. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11749. Sprite2D GetSprite(const String&);
  11750. bool HasSubscribedToEvent(Object, const String&);
  11751. bool HasSubscribedToEvent(const String&);
  11752. bool Load(File);
  11753. bool Load(VectorBuffer&);
  11754. bool Load(const String&);
  11755. bool Save(File) const;
  11756. bool Save(VectorBuffer&) const;
  11757. bool Save(const String&) const;
  11758. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11759. // Properties:
  11760. /* readonly */
  11761. String category;
  11762. /* readonly */
  11763. uint memoryUse;
  11764. String name;
  11765. /* readonly */
  11766. int refs;
  11767. Texture2D texture;
  11768. /* readonly */
  11769. StringHash type;
  11770. /* readonly */
  11771. String typeName;
  11772. /* readonly */
  11773. uint useTimer;
  11774. /* readonly */
  11775. int weakRefs;
  11776. };
  11777. class StaticModel
  11778. {
  11779. public:
  11780. // Methods:
  11781. void ApplyAttributes();
  11782. void ApplyMaterialList(const String& = String ( ));
  11783. void DrawDebugGeometry(DebugRenderer, bool);
  11784. Variant GetAttribute(const String&) const;
  11785. ValueAnimation GetAttributeAnimation(const String&) const;
  11786. float GetAttributeAnimationSpeed(const String&) const;
  11787. float GetAttributeAnimationTime(const String&) const;
  11788. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11789. Variant GetAttributeDefault(const String&) const;
  11790. bool GetInterceptNetworkUpdate(const String&) const;
  11791. bool HasSubscribedToEvent(Object, const String&);
  11792. bool HasSubscribedToEvent(const String&);
  11793. bool IsInView(Camera) const;
  11794. bool IsInside(const Vector3&) const;
  11795. bool IsInsideLocal(const Vector3&) const;
  11796. bool Load(File);
  11797. bool Load(VectorBuffer&);
  11798. bool LoadJSON(const JSONValue&);
  11799. bool LoadXML(const XMLElement&);
  11800. void MarkNetworkUpdate() const;
  11801. void Remove();
  11802. void RemoveAttributeAnimation(const String&);
  11803. void RemoveInstanceDefault();
  11804. void RemoveObjectAnimation();
  11805. void ResetToDefault();
  11806. bool Save(File) const;
  11807. bool Save(VectorBuffer&) const;
  11808. bool SaveJSON(JSONValue&) const;
  11809. bool SaveXML(XMLElement&) const;
  11810. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11811. void SetAnimationTime(float);
  11812. bool SetAttribute(const String&, const Variant&);
  11813. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11814. void SetAttributeAnimationSpeed(const String&, float);
  11815. void SetAttributeAnimationTime(const String&, float);
  11816. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11817. void SetInterceptNetworkUpdate(const String&, bool);
  11818. // Properties:
  11819. bool animationEnabled;
  11820. /* readonly */
  11821. Array<Variant> attributeDefaults;
  11822. /* readonly */
  11823. Array<AttributeInfo> attributeInfos;
  11824. Array<Variant> attributes;
  11825. /* readonly */
  11826. BoundingBox boundingBox;
  11827. bool castShadows;
  11828. /* readonly */
  11829. String category;
  11830. float drawDistance;
  11831. bool enabled;
  11832. /* readonly */
  11833. bool enabledEffective;
  11834. /* readonly */
  11835. uint id;
  11836. /* readonly */
  11837. bool inView;
  11838. uint lightMask;
  11839. float lodBias;
  11840. Material material;
  11841. Array<Material> materials;
  11842. uint maxLights;
  11843. Model model;
  11844. /* readonly */
  11845. Node node;
  11846. /* readonly */
  11847. uint numAttributes;
  11848. /* readonly */
  11849. uint numGeometries;
  11850. ObjectAnimation objectAnimation;
  11851. bool occludee;
  11852. bool occluder;
  11853. uint occlusionLodLevel;
  11854. /* readonly */
  11855. int refs;
  11856. /* readonly */
  11857. bool replicated;
  11858. float shadowDistance;
  11859. uint shadowMask;
  11860. bool temporary;
  11861. /* readonly */
  11862. StringHash type;
  11863. /* readonly */
  11864. String typeName;
  11865. uint viewMask;
  11866. /* readonly */
  11867. int weakRefs;
  11868. /* readonly */
  11869. BoundingBox worldBoundingBox;
  11870. uint zoneMask;
  11871. };
  11872. class StaticModelGroup
  11873. {
  11874. public:
  11875. // Methods:
  11876. void AddInstanceNode(Node);
  11877. void ApplyAttributes();
  11878. void ApplyMaterialList(const String& = String ( ));
  11879. void DrawDebugGeometry(DebugRenderer, bool);
  11880. Variant GetAttribute(const String&) const;
  11881. ValueAnimation GetAttributeAnimation(const String&) const;
  11882. float GetAttributeAnimationSpeed(const String&) const;
  11883. float GetAttributeAnimationTime(const String&) const;
  11884. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11885. Variant GetAttributeDefault(const String&) const;
  11886. bool GetInterceptNetworkUpdate(const String&) const;
  11887. bool HasSubscribedToEvent(Object, const String&);
  11888. bool HasSubscribedToEvent(const String&);
  11889. bool IsInView(Camera) const;
  11890. bool Load(File);
  11891. bool Load(VectorBuffer&);
  11892. bool LoadJSON(const JSONValue&);
  11893. bool LoadXML(const XMLElement&);
  11894. void MarkNetworkUpdate() const;
  11895. void Remove();
  11896. void RemoveAllInstanceNodes();
  11897. void RemoveAttributeAnimation(const String&);
  11898. void RemoveInstanceDefault();
  11899. void RemoveInstanceNode(Node);
  11900. void RemoveObjectAnimation();
  11901. void ResetToDefault();
  11902. bool Save(File) const;
  11903. bool Save(VectorBuffer&) const;
  11904. bool SaveJSON(JSONValue&) const;
  11905. bool SaveXML(XMLElement&) const;
  11906. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11907. void SetAnimationTime(float);
  11908. bool SetAttribute(const String&, const Variant&);
  11909. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11910. void SetAttributeAnimationSpeed(const String&, float);
  11911. void SetAttributeAnimationTime(const String&, float);
  11912. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11913. void SetInterceptNetworkUpdate(const String&, bool);
  11914. // Properties:
  11915. bool animationEnabled;
  11916. /* readonly */
  11917. Array<Variant> attributeDefaults;
  11918. /* readonly */
  11919. Array<AttributeInfo> attributeInfos;
  11920. Array<Variant> attributes;
  11921. /* readonly */
  11922. BoundingBox boundingBox;
  11923. bool castShadows;
  11924. /* readonly */
  11925. String category;
  11926. float drawDistance;
  11927. bool enabled;
  11928. /* readonly */
  11929. bool enabledEffective;
  11930. /* readonly */
  11931. uint id;
  11932. /* readonly */
  11933. bool inView;
  11934. /* readonly */
  11935. Array<Node> instanceNodes;
  11936. uint lightMask;
  11937. float lodBias;
  11938. Material material;
  11939. Array<Material> materials;
  11940. uint maxLights;
  11941. Model model;
  11942. /* readonly */
  11943. Node node;
  11944. /* readonly */
  11945. uint numAttributes;
  11946. /* readonly */
  11947. uint numGeometries;
  11948. /* readonly */
  11949. uint numInstanceNodes;
  11950. ObjectAnimation objectAnimation;
  11951. bool occludee;
  11952. bool occluder;
  11953. uint occlusionLodLevel;
  11954. /* readonly */
  11955. int refs;
  11956. /* readonly */
  11957. bool replicated;
  11958. float shadowDistance;
  11959. uint shadowMask;
  11960. bool temporary;
  11961. /* readonly */
  11962. StringHash type;
  11963. /* readonly */
  11964. String typeName;
  11965. uint viewMask;
  11966. /* readonly */
  11967. int weakRefs;
  11968. /* readonly */
  11969. BoundingBox worldBoundingBox;
  11970. /* readonly */
  11971. Zone zone;
  11972. uint zoneMask;
  11973. };
  11974. class StaticSprite2D
  11975. {
  11976. public:
  11977. // Methods:
  11978. void ApplyAttributes();
  11979. void DrawDebugGeometry(DebugRenderer, bool);
  11980. Variant GetAttribute(const String&) const;
  11981. ValueAnimation GetAttributeAnimation(const String&) const;
  11982. float GetAttributeAnimationSpeed(const String&) const;
  11983. float GetAttributeAnimationTime(const String&) const;
  11984. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11985. Variant GetAttributeDefault(const String&) const;
  11986. bool GetInterceptNetworkUpdate(const String&) const;
  11987. bool HasSubscribedToEvent(Object, const String&);
  11988. bool HasSubscribedToEvent(const String&);
  11989. bool IsInView(Camera) const;
  11990. bool Load(File);
  11991. bool Load(VectorBuffer&);
  11992. bool LoadJSON(const JSONValue&);
  11993. bool LoadXML(const XMLElement&);
  11994. void MarkNetworkUpdate() const;
  11995. void Remove();
  11996. void RemoveAttributeAnimation(const String&);
  11997. void RemoveInstanceDefault();
  11998. void RemoveObjectAnimation();
  11999. void ResetToDefault();
  12000. bool Save(File) const;
  12001. bool Save(VectorBuffer&) const;
  12002. bool SaveJSON(JSONValue&) const;
  12003. bool SaveXML(XMLElement&) const;
  12004. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12005. void SetAnimationTime(float);
  12006. bool SetAttribute(const String&, const Variant&);
  12007. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12008. void SetAttributeAnimationSpeed(const String&, float);
  12009. void SetAttributeAnimationTime(const String&, float);
  12010. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12011. void SetFlip(bool, bool, bool = false);
  12012. void SetInterceptNetworkUpdate(const String&, bool);
  12013. // Properties:
  12014. float alpha;
  12015. bool animationEnabled;
  12016. /* readonly */
  12017. Array<Variant> attributeDefaults;
  12018. /* readonly */
  12019. Array<AttributeInfo> attributeInfos;
  12020. Array<Variant> attributes;
  12021. BlendMode blendMode;
  12022. /* readonly */
  12023. BoundingBox boundingBox;
  12024. bool castShadows;
  12025. /* readonly */
  12026. String category;
  12027. Color color;
  12028. Material customMaterial;
  12029. float drawDistance;
  12030. Rect drawRect;
  12031. bool enabled;
  12032. /* readonly */
  12033. bool enabledEffective;
  12034. bool flipX;
  12035. bool flipY;
  12036. Vector2 hotSpot;
  12037. /* readonly */
  12038. uint id;
  12039. /* readonly */
  12040. bool inView;
  12041. int layer;
  12042. uint lightMask;
  12043. float lodBias;
  12044. uint maxLights;
  12045. /* readonly */
  12046. Node node;
  12047. /* readonly */
  12048. uint numAttributes;
  12049. ObjectAnimation objectAnimation;
  12050. bool occludee;
  12051. bool occluder;
  12052. int orderInLayer;
  12053. /* readonly */
  12054. int refs;
  12055. /* readonly */
  12056. bool replicated;
  12057. float shadowDistance;
  12058. uint shadowMask;
  12059. Sprite2D sprite;
  12060. bool swapXY;
  12061. bool temporary;
  12062. Rect textureRect;
  12063. /* readonly */
  12064. StringHash type;
  12065. /* readonly */
  12066. String typeName;
  12067. bool useDrawRect;
  12068. bool useHotSpot;
  12069. bool useTextureRect;
  12070. uint viewMask;
  12071. /* readonly */
  12072. int weakRefs;
  12073. /* readonly */
  12074. BoundingBox worldBoundingBox;
  12075. uint zoneMask;
  12076. };
  12077. class StretchableSprite2D
  12078. {
  12079. public:
  12080. // Methods:
  12081. void ApplyAttributes();
  12082. void DrawDebugGeometry(DebugRenderer, bool);
  12083. Variant GetAttribute(const String&) const;
  12084. ValueAnimation GetAttributeAnimation(const String&) const;
  12085. float GetAttributeAnimationSpeed(const String&) const;
  12086. float GetAttributeAnimationTime(const String&) const;
  12087. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12088. Variant GetAttributeDefault(const String&) const;
  12089. bool GetInterceptNetworkUpdate(const String&) const;
  12090. bool HasSubscribedToEvent(Object, const String&);
  12091. bool HasSubscribedToEvent(const String&);
  12092. bool IsInView(Camera) const;
  12093. bool Load(File);
  12094. bool Load(VectorBuffer&);
  12095. bool LoadJSON(const JSONValue&);
  12096. bool LoadXML(const XMLElement&);
  12097. void MarkNetworkUpdate() const;
  12098. void Remove();
  12099. void RemoveAttributeAnimation(const String&);
  12100. void RemoveInstanceDefault();
  12101. void RemoveObjectAnimation();
  12102. void ResetToDefault();
  12103. bool Save(File) const;
  12104. bool Save(VectorBuffer&) const;
  12105. bool SaveJSON(JSONValue&) const;
  12106. bool SaveXML(XMLElement&) const;
  12107. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12108. void SetAnimationTime(float);
  12109. bool SetAttribute(const String&, const Variant&);
  12110. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12111. void SetAttributeAnimationSpeed(const String&, float);
  12112. void SetAttributeAnimationTime(const String&, float);
  12113. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12114. void SetFlip(bool, bool, bool = false);
  12115. void SetInterceptNetworkUpdate(const String&, bool);
  12116. // Properties:
  12117. float alpha;
  12118. bool animationEnabled;
  12119. /* readonly */
  12120. Array<Variant> attributeDefaults;
  12121. /* readonly */
  12122. Array<AttributeInfo> attributeInfos;
  12123. Array<Variant> attributes;
  12124. BlendMode blendMode;
  12125. IntRect border;
  12126. /* readonly */
  12127. BoundingBox boundingBox;
  12128. bool castShadows;
  12129. /* readonly */
  12130. String category;
  12131. Color color;
  12132. Material customMaterial;
  12133. float drawDistance;
  12134. Rect drawRect;
  12135. bool enabled;
  12136. /* readonly */
  12137. bool enabledEffective;
  12138. bool flipX;
  12139. bool flipY;
  12140. Vector2 hotSpot;
  12141. /* readonly */
  12142. uint id;
  12143. /* readonly */
  12144. bool inView;
  12145. int layer;
  12146. uint lightMask;
  12147. float lodBias;
  12148. uint maxLights;
  12149. /* readonly */
  12150. Node node;
  12151. /* readonly */
  12152. uint numAttributes;
  12153. ObjectAnimation objectAnimation;
  12154. bool occludee;
  12155. bool occluder;
  12156. int orderInLayer;
  12157. /* readonly */
  12158. int refs;
  12159. /* readonly */
  12160. bool replicated;
  12161. float shadowDistance;
  12162. uint shadowMask;
  12163. Sprite2D sprite;
  12164. bool swapXY;
  12165. bool temporary;
  12166. Rect textureRect;
  12167. /* readonly */
  12168. StringHash type;
  12169. /* readonly */
  12170. String typeName;
  12171. bool useDrawRect;
  12172. bool useHotSpot;
  12173. bool useTextureRect;
  12174. uint viewMask;
  12175. /* readonly */
  12176. int weakRefs;
  12177. /* readonly */
  12178. BoundingBox worldBoundingBox;
  12179. uint zoneMask;
  12180. };
  12181. class String
  12182. {
  12183. public:
  12184. ~String();
  12185. String();
  12186. String(const String&in);
  12187. String(int);
  12188. String(uint);
  12189. String(float);
  12190. String(double);
  12191. String(bool);
  12192. String(const char*);
  12193. // Methods:
  12194. void AppendUTF8(uint);
  12195. uint AtUTF8(uint) const;
  12196. uint ByteOffsetUTF8(uint) const;
  12197. void Clear();
  12198. int Compare(const String&, bool = true) const;
  12199. bool Contains(const String&, bool = true) const;
  12200. bool Contains(uint8, bool = true) const;
  12201. bool EndsWith(const String&, bool = true) const;
  12202. uint Find(const String&, uint = 0, bool = true) const;
  12203. uint Find(uint8, uint = 0, bool = true) const;
  12204. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  12205. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  12206. void Join(Array<String>&, const String&);
  12207. uint NextUTF8Char(uint&) const;
  12208. void Replace(const String&, const String&, bool = true);
  12209. void Replace(uint8, uint8, bool = true);
  12210. void ReplaceUTF8(uint, uint);
  12211. String Replaced(const String&, const String&, bool = true) const;
  12212. String Replaced(uint8, uint8, bool = true) const;
  12213. void Resize(uint);
  12214. void SetUTF8FromLatin1(const String&);
  12215. Array<String> Split(uint8, bool = false) const;
  12216. bool StartsWith(const String&, bool = true) const;
  12217. String Substring(uint) const;
  12218. String Substring(uint, uint) const;
  12219. String SubstringUTF8(uint) const;
  12220. String SubstringUTF8(uint, uint) const;
  12221. bool ToBool() const;
  12222. Color ToColor() const;
  12223. double ToDouble() const;
  12224. float ToFloat() const;
  12225. int ToInt(int = 10) const;
  12226. int64 ToInt64(int = 10) const;
  12227. IntRect ToIntRect() const;
  12228. IntVector2 ToIntVector2() const;
  12229. IntVector3 ToIntVector3() const;
  12230. String ToLower() const;
  12231. Matrix3 ToMatrix3() const;
  12232. Matrix3x4 ToMatrix3x4() const;
  12233. Matrix4 ToMatrix4() const;
  12234. Quaternion ToQuaternion() const;
  12235. uint ToUInt(int = 10) const;
  12236. uint64 ToUInt64(int = 10) const;
  12237. String ToUpper() const;
  12238. Vector2 ToVector2() const;
  12239. Vector3 ToVector3() const;
  12240. Vector4 ToVector4(bool = false) const;
  12241. Variant ToVectorVariant() const;
  12242. String Trimmed() const;
  12243. // Properties:
  12244. /* readonly */
  12245. bool empty;
  12246. /* readonly */
  12247. uint length;
  12248. /* readonly */
  12249. uint utf8Length;
  12250. };
  12251. class StringHash
  12252. {
  12253. public:
  12254. StringHash();
  12255. StringHash(const StringHash&in);
  12256. StringHash(const String&in);
  12257. StringHash(uint);
  12258. // Methods:
  12259. String ToString() const;
  12260. // Properties:
  12261. /* readonly */
  12262. uint value;
  12263. };
  12264. class Technique
  12265. {
  12266. public:
  12267. Technique();
  12268. Technique(const String&in);
  12269. // Methods:
  12270. Technique Clone(const String& = String ( )) const;
  12271. Pass CreatePass(const String&);
  12272. Pass GetPass(const String&);
  12273. Pass GetSupportedPass(const String&);
  12274. bool HasPass(const String&) const;
  12275. bool HasSubscribedToEvent(Object, const String&);
  12276. bool HasSubscribedToEvent(const String&);
  12277. bool Load(File);
  12278. bool Load(VectorBuffer&);
  12279. bool Load(const String&);
  12280. void RemovePass(const String&);
  12281. bool Save(File) const;
  12282. bool Save(VectorBuffer&) const;
  12283. bool Save(const String&) const;
  12284. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12285. // Properties:
  12286. /* readonly */
  12287. String category;
  12288. bool desktop;
  12289. /* readonly */
  12290. uint memoryUse;
  12291. String name;
  12292. /* readonly */
  12293. uint numPasses;
  12294. /* readonly */
  12295. Array<String> passNames;
  12296. /* readonly */
  12297. Array<Pass> passes;
  12298. /* readonly */
  12299. int refs;
  12300. /* readonly */
  12301. bool supported;
  12302. /* readonly */
  12303. StringHash type;
  12304. /* readonly */
  12305. String typeName;
  12306. /* readonly */
  12307. uint useTimer;
  12308. /* readonly */
  12309. int weakRefs;
  12310. };
  12311. class TechniqueEntry
  12312. {
  12313. public:
  12314. ~TechniqueEntry();
  12315. TechniqueEntry();
  12316. TechniqueEntry(const TechniqueEntry&in);
  12317. // Properties:
  12318. float lodDistance;
  12319. int qualityLevel;
  12320. Technique technique;
  12321. };
  12322. class Terrain
  12323. {
  12324. public:
  12325. // Methods:
  12326. void ApplyAttributes();
  12327. void ApplyHeightMap();
  12328. void DrawDebugGeometry(DebugRenderer, bool);
  12329. Variant GetAttribute(const String&) const;
  12330. ValueAnimation GetAttributeAnimation(const String&) const;
  12331. float GetAttributeAnimationSpeed(const String&) const;
  12332. float GetAttributeAnimationTime(const String&) const;
  12333. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12334. Variant GetAttributeDefault(const String&) const;
  12335. float GetHeight(const Vector3&) const;
  12336. bool GetInterceptNetworkUpdate(const String&) const;
  12337. TerrainPatch GetNeighborPatch(int, int) const;
  12338. Vector3 GetNormal(const Vector3&) const;
  12339. TerrainPatch GetPatch(int, int) const;
  12340. bool HasSubscribedToEvent(Object, const String&);
  12341. bool HasSubscribedToEvent(const String&);
  12342. Vector3 HeightMapToWorld(const IntVector2&) const;
  12343. bool Load(File);
  12344. bool Load(VectorBuffer&);
  12345. bool LoadJSON(const JSONValue&);
  12346. bool LoadXML(const XMLElement&);
  12347. void MarkNetworkUpdate() const;
  12348. void Remove();
  12349. void RemoveAttributeAnimation(const String&);
  12350. void RemoveInstanceDefault();
  12351. void RemoveObjectAnimation();
  12352. void ResetToDefault();
  12353. bool Save(File) const;
  12354. bool Save(VectorBuffer&) const;
  12355. bool SaveJSON(JSONValue&) const;
  12356. bool SaveXML(XMLElement&) const;
  12357. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12358. void SetAnimationTime(float);
  12359. bool SetAttribute(const String&, const Variant&);
  12360. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12361. void SetAttributeAnimationSpeed(const String&, float);
  12362. void SetAttributeAnimationTime(const String&, float);
  12363. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12364. void SetInterceptNetworkUpdate(const String&, bool);
  12365. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12366. IntVector2 WorldToHeightMap(const Vector3&) const;
  12367. // Properties:
  12368. bool animationEnabled;
  12369. /* readonly */
  12370. Array<Variant> attributeDefaults;
  12371. /* readonly */
  12372. Array<AttributeInfo> attributeInfos;
  12373. Array<Variant> attributes;
  12374. bool castShadows;
  12375. /* readonly */
  12376. String category;
  12377. float drawDistance;
  12378. Terrain eastNeighbor;
  12379. bool enabled;
  12380. /* readonly */
  12381. bool enabledEffective;
  12382. Image heightMap;
  12383. /* readonly */
  12384. uint id;
  12385. uint lightMask;
  12386. float lodBias;
  12387. Material material;
  12388. uint maxLights;
  12389. uint maxLodLevels;
  12390. /* readonly */
  12391. Node node;
  12392. Terrain northNeighbor;
  12393. /* readonly */
  12394. uint numAttributes;
  12395. /* readonly */
  12396. IntVector2 numPatches;
  12397. /* readonly */
  12398. IntVector2 numVertices;
  12399. ObjectAnimation objectAnimation;
  12400. bool occludee;
  12401. bool occluder;
  12402. uint occlusionLodLevel;
  12403. int patchSize;
  12404. /* readonly */
  12405. Array<TerrainPatch> patches;
  12406. /* readonly */
  12407. int refs;
  12408. /* readonly */
  12409. bool replicated;
  12410. float shadowDistance;
  12411. uint shadowMask;
  12412. bool smoothing;
  12413. Terrain southNeighbor;
  12414. Vector3 spacing;
  12415. bool temporary;
  12416. /* readonly */
  12417. StringHash type;
  12418. /* readonly */
  12419. String typeName;
  12420. uint viewMask;
  12421. /* readonly */
  12422. int weakRefs;
  12423. Terrain westNeighbor;
  12424. uint zoneMask;
  12425. };
  12426. class TerrainPatch
  12427. {
  12428. public:
  12429. // Methods:
  12430. void ApplyAttributes();
  12431. void DrawDebugGeometry(DebugRenderer, bool);
  12432. Variant GetAttribute(const String&) const;
  12433. ValueAnimation GetAttributeAnimation(const String&) const;
  12434. float GetAttributeAnimationSpeed(const String&) const;
  12435. float GetAttributeAnimationTime(const String&) const;
  12436. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12437. Variant GetAttributeDefault(const String&) const;
  12438. bool GetInterceptNetworkUpdate(const String&) const;
  12439. bool HasSubscribedToEvent(Object, const String&);
  12440. bool HasSubscribedToEvent(const String&);
  12441. bool IsInView(Camera) const;
  12442. bool Load(File);
  12443. bool Load(VectorBuffer&);
  12444. bool LoadJSON(const JSONValue&);
  12445. bool LoadXML(const XMLElement&);
  12446. void MarkNetworkUpdate() const;
  12447. void Remove();
  12448. void RemoveAttributeAnimation(const String&);
  12449. void RemoveInstanceDefault();
  12450. void RemoveObjectAnimation();
  12451. void ResetToDefault();
  12452. bool Save(File) const;
  12453. bool Save(VectorBuffer&) const;
  12454. bool SaveJSON(JSONValue&) const;
  12455. bool SaveXML(XMLElement&) const;
  12456. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12457. void SetAnimationTime(float);
  12458. bool SetAttribute(const String&, const Variant&);
  12459. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12460. void SetAttributeAnimationSpeed(const String&, float);
  12461. void SetAttributeAnimationTime(const String&, float);
  12462. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12463. void SetInterceptNetworkUpdate(const String&, bool);
  12464. // Properties:
  12465. bool animationEnabled;
  12466. /* readonly */
  12467. Array<Variant> attributeDefaults;
  12468. /* readonly */
  12469. Array<AttributeInfo> attributeInfos;
  12470. Array<Variant> attributes;
  12471. /* readonly */
  12472. BoundingBox boundingBox;
  12473. bool castShadows;
  12474. /* readonly */
  12475. String category;
  12476. float drawDistance;
  12477. bool enabled;
  12478. /* readonly */
  12479. bool enabledEffective;
  12480. /* readonly */
  12481. uint id;
  12482. /* readonly */
  12483. bool inView;
  12484. uint lightMask;
  12485. float lodBias;
  12486. uint maxLights;
  12487. /* readonly */
  12488. Node node;
  12489. /* readonly */
  12490. uint numAttributes;
  12491. ObjectAnimation objectAnimation;
  12492. bool occludee;
  12493. bool occluder;
  12494. /* readonly */
  12495. int refs;
  12496. /* readonly */
  12497. bool replicated;
  12498. float shadowDistance;
  12499. uint shadowMask;
  12500. bool temporary;
  12501. /* readonly */
  12502. StringHash type;
  12503. /* readonly */
  12504. String typeName;
  12505. uint viewMask;
  12506. /* readonly */
  12507. int weakRefs;
  12508. /* readonly */
  12509. BoundingBox worldBoundingBox;
  12510. uint zoneMask;
  12511. };
  12512. class Text
  12513. {
  12514. public:
  12515. Text();
  12516. Text(const String&in);
  12517. // Methods:
  12518. void AddChild(UIElement);
  12519. void AddTag(const String&);
  12520. void AddTags(const String&, int8 = ';');
  12521. void ApplyAttributes();
  12522. void BringToFront();
  12523. void ClearSelection();
  12524. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12525. void DisableLayoutUpdate();
  12526. IntVector2 ElementToScreen(const IntVector2&);
  12527. void EnableLayoutUpdate();
  12528. uint FindChild(UIElement) const;
  12529. Variant GetAttribute(const String&) const;
  12530. ValueAnimation GetAttributeAnimation(const String&) const;
  12531. float GetAttributeAnimationSpeed(const String&) const;
  12532. float GetAttributeAnimationTime(const String&) const;
  12533. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12534. Variant GetAttributeDefault(const String&) const;
  12535. UIElement GetChild(const String&, bool = false) const;
  12536. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12537. Array<UIElement> GetChildren(bool = false) const;
  12538. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12539. UIElement GetElementEventSender() const;
  12540. bool GetInterceptNetworkUpdate(const String&) const;
  12541. uint GetNumChildren(bool) const;
  12542. bool HasSubscribedToEvent(Object, const String&);
  12543. bool HasSubscribedToEvent(const String&);
  12544. bool HasTag(const String&) const;
  12545. void InsertChild(uint, UIElement);
  12546. bool IsChildOf(UIElement) const;
  12547. bool IsInside(IntVector2, bool);
  12548. bool IsInsideCombined(IntVector2, bool);
  12549. bool Load(File);
  12550. bool Load(VectorBuffer&);
  12551. UIElement LoadChildXML(XMLFile, XMLFile);
  12552. UIElement LoadChildXML(const XMLElement&, XMLFile);
  12553. bool LoadJSON(const JSONValue&);
  12554. bool LoadXML(File);
  12555. bool LoadXML(VectorBuffer&);
  12556. bool LoadXML(XMLFile, XMLFile);
  12557. bool LoadXML(const XMLElement&, XMLFile);
  12558. bool LoadXML(const XMLElement&);
  12559. void MarkNetworkUpdate() const;
  12560. void Remove();
  12561. void RemoveAllChildren();
  12562. void RemoveAllTags();
  12563. void RemoveAttributeAnimation(const String&);
  12564. void RemoveChild(UIElement, uint = 0);
  12565. void RemoveChild(uint);
  12566. void RemoveInstanceDefault();
  12567. void RemoveObjectAnimation();
  12568. bool RemoveTag(const String&);
  12569. void ResetDeepEnabled();
  12570. void ResetToDefault();
  12571. bool Save(File) const;
  12572. bool Save(VectorBuffer&) const;
  12573. bool SaveJSON(JSONValue&) const;
  12574. bool SaveXML(File, const String& = "\t");
  12575. bool SaveXML(VectorBuffer&, const String& = "\t");
  12576. bool SaveXML(XMLElement&) const;
  12577. IntVector2 ScreenToElement(const IntVector2&);
  12578. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12579. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12580. void SetAnimationTime(float);
  12581. bool SetAttribute(const String&, const Variant&);
  12582. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12583. void SetAttributeAnimationSpeed(const String&, float);
  12584. void SetAttributeAnimationTime(const String&, float);
  12585. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12586. void SetDeepEnabled(bool);
  12587. void SetEnabledRecursive(bool);
  12588. void SetFixedHeight(int);
  12589. void SetFixedSize(int, int);
  12590. void SetFixedWidth(int);
  12591. bool SetFont(Font, float);
  12592. bool SetFont(const String&, float);
  12593. void SetInterceptNetworkUpdate(const String&, bool);
  12594. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12595. void SetMaxAnchor(float, float);
  12596. void SetMaxSize(int, int);
  12597. void SetMinAnchor(float, float);
  12598. void SetMinSize(int, int);
  12599. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12600. void SetPivot(float, float);
  12601. void SetPosition(int, int);
  12602. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12603. void SetSize(int, int);
  12604. bool SetStyle(const String&, XMLFile = null);
  12605. bool SetStyle(const XMLElement&);
  12606. bool SetStyleAuto(XMLFile = null);
  12607. void UpdateLayout();
  12608. const Variant& GetVar(const StringHash&);
  12609. // Properties:
  12610. bool animationEnabled;
  12611. /* readonly */
  12612. Array<Variant> attributeDefaults;
  12613. /* readonly */
  12614. Array<AttributeInfo> attributeInfos;
  12615. Array<Variant> attributes;
  12616. bool autoLocalizable;
  12617. bool bringToBack;
  12618. bool bringToFront;
  12619. /* readonly */
  12620. String category;
  12621. /* readonly */
  12622. Array<Vector2> charPositions;
  12623. /* readonly */
  12624. Array<Vector2> charSizes;
  12625. /* readonly */
  12626. IntVector2 childOffset;
  12627. /* readonly */
  12628. Array<UIElement> children;
  12629. IntRect clipBorder;
  12630. bool clipChildren;
  12631. /* writeonly */
  12632. Color color;
  12633. /* readonly */
  12634. bool colorGradient;
  12635. Array<Color> colors;
  12636. /* readonly */
  12637. IntRect combinedScreenRect;
  12638. XMLFile defaultStyle;
  12639. /* readonly */
  12640. float derivedOpacity;
  12641. /* readonly */
  12642. uint dragButtonCombo;
  12643. /* readonly */
  12644. int dragButtonCount;
  12645. uint dragDropMode;
  12646. bool editable;
  12647. Color effectColor;
  12648. bool effectRoundStroke;
  12649. IntVector2 effectShadowOffset;
  12650. int effectStrokeThickness;
  12651. bool elementEventSender;
  12652. bool enableAnchor;
  12653. bool enabled;
  12654. /* readonly */
  12655. bool enabledSelf;
  12656. /* readonly */
  12657. bool fixedHeight;
  12658. /* readonly */
  12659. bool fixedSize;
  12660. /* readonly */
  12661. bool fixedWidth;
  12662. bool focus;
  12663. FocusMode focusMode;
  12664. /* readonly */
  12665. Font font;
  12666. float fontSize;
  12667. int height;
  12668. HorizontalAlignment horizontalAlignment;
  12669. Color hoverColor;
  12670. /* readonly */
  12671. bool hovering;
  12672. int indent;
  12673. int indentSpacing;
  12674. /* readonly */
  12675. int indentWidth;
  12676. bool internal;
  12677. IntRect layoutBorder;
  12678. Vector2 layoutFlexScale;
  12679. LayoutMode layoutMode;
  12680. int layoutSpacing;
  12681. Vector2 maxAnchor;
  12682. int maxHeight;
  12683. IntVector2 maxOffset;
  12684. IntVector2 maxSize;
  12685. int maxWidth;
  12686. Vector2 minAnchor;
  12687. int minHeight;
  12688. IntVector2 minOffset;
  12689. IntVector2 minSize;
  12690. int minWidth;
  12691. String name;
  12692. /* readonly */
  12693. uint numAllChildren;
  12694. /* readonly */
  12695. uint numAttributes;
  12696. /* readonly */
  12697. uint numChars;
  12698. /* readonly */
  12699. uint numChildren;
  12700. /* readonly */
  12701. uint numRows;
  12702. ObjectAnimation objectAnimation;
  12703. float opacity;
  12704. UIElement parent;
  12705. Vector2 pivot;
  12706. IntVector2 position;
  12707. int priority;
  12708. /* readonly */
  12709. int refs;
  12710. /* readonly */
  12711. UIElement root;
  12712. /* readonly */
  12713. float rowHeight;
  12714. float rowSpacing;
  12715. /* readonly */
  12716. Array<float> rowWidths;
  12717. /* readonly */
  12718. IntVector2 screenPosition;
  12719. bool selected;
  12720. Color selectionColor;
  12721. /* readonly */
  12722. uint selectionLength;
  12723. /* readonly */
  12724. uint selectionStart;
  12725. IntVector2 size;
  12726. bool sortChildren;
  12727. String style;
  12728. /* readonly */
  12729. Array<String> tags;
  12730. bool temporary;
  12731. String text;
  12732. HorizontalAlignment textAlignment;
  12733. TextEffect textEffect;
  12734. TraversalMode traversalMode;
  12735. /* readonly */
  12736. StringHash type;
  12737. /* readonly */
  12738. String typeName;
  12739. bool useDerivedOpacity;
  12740. /* readonly */
  12741. VariantMap vars;
  12742. VerticalAlignment verticalAlignment;
  12743. bool visible;
  12744. /* readonly */
  12745. bool visibleEffective;
  12746. /* readonly */
  12747. int weakRefs;
  12748. int width;
  12749. bool wordwrap;
  12750. };
  12751. class Text3D
  12752. {
  12753. public:
  12754. // Methods:
  12755. void ApplyAttributes();
  12756. void DrawDebugGeometry(DebugRenderer, bool);
  12757. Variant GetAttribute(const String&) const;
  12758. ValueAnimation GetAttributeAnimation(const String&) const;
  12759. float GetAttributeAnimationSpeed(const String&) const;
  12760. float GetAttributeAnimationTime(const String&) const;
  12761. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12762. Variant GetAttributeDefault(const String&) const;
  12763. bool GetInterceptNetworkUpdate(const String&) const;
  12764. bool HasSubscribedToEvent(Object, const String&);
  12765. bool HasSubscribedToEvent(const String&);
  12766. bool IsInView(Camera) const;
  12767. bool Load(File);
  12768. bool Load(VectorBuffer&);
  12769. bool LoadJSON(const JSONValue&);
  12770. bool LoadXML(const XMLElement&);
  12771. void MarkNetworkUpdate() const;
  12772. void Remove();
  12773. void RemoveAttributeAnimation(const String&);
  12774. void RemoveInstanceDefault();
  12775. void RemoveObjectAnimation();
  12776. void ResetToDefault();
  12777. bool Save(File) const;
  12778. bool Save(VectorBuffer&) const;
  12779. bool SaveJSON(JSONValue&) const;
  12780. bool SaveXML(XMLElement&) const;
  12781. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12782. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12783. void SetAnimationTime(float);
  12784. bool SetAttribute(const String&, const Variant&);
  12785. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12786. void SetAttributeAnimationSpeed(const String&, float);
  12787. void SetAttributeAnimationTime(const String&, float);
  12788. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12789. bool SetFont(Font, float);
  12790. bool SetFont(const String&, float);
  12791. void SetInterceptNetworkUpdate(const String&, bool);
  12792. // Properties:
  12793. bool animationEnabled;
  12794. /* readonly */
  12795. Array<Variant> attributeDefaults;
  12796. /* readonly */
  12797. Array<AttributeInfo> attributeInfos;
  12798. Array<Variant> attributes;
  12799. /* readonly */
  12800. BoundingBox boundingBox;
  12801. bool castShadows;
  12802. /* readonly */
  12803. String category;
  12804. /* readonly */
  12805. Array<Vector2> charPositions;
  12806. /* readonly */
  12807. Array<Vector2> charSizes;
  12808. /* writeonly */
  12809. Color color;
  12810. Array<Color> colors;
  12811. float drawDistance;
  12812. Color effectColor;
  12813. float effectDepthBias;
  12814. bool effectRoundStroke;
  12815. IntVector2 effectShadowOffset;
  12816. int effectStrokeThickness;
  12817. bool enabled;
  12818. /* readonly */
  12819. bool enabledEffective;
  12820. FaceCameraMode faceCameraMode;
  12821. bool fixedScreenSize;
  12822. /* readonly */
  12823. Font font;
  12824. float fontSize;
  12825. /* readonly */
  12826. int height;
  12827. HorizontalAlignment horizontalAlignment;
  12828. /* readonly */
  12829. uint id;
  12830. /* readonly */
  12831. bool inView;
  12832. uint lightMask;
  12833. float lodBias;
  12834. Material material;
  12835. uint maxLights;
  12836. /* readonly */
  12837. Node node;
  12838. /* readonly */
  12839. uint numAttributes;
  12840. /* readonly */
  12841. uint numChars;
  12842. /* readonly */
  12843. uint numRows;
  12844. ObjectAnimation objectAnimation;
  12845. bool occludee;
  12846. bool occluder;
  12847. float opacity;
  12848. /* readonly */
  12849. int refs;
  12850. /* readonly */
  12851. bool replicated;
  12852. /* readonly */
  12853. float rowHeight;
  12854. float rowSpacing;
  12855. /* readonly */
  12856. Array<float> rowWidths;
  12857. float shadowDistance;
  12858. uint shadowMask;
  12859. bool temporary;
  12860. String text;
  12861. HorizontalAlignment textAlignment;
  12862. TextEffect textEffect;
  12863. /* readonly */
  12864. StringHash type;
  12865. /* readonly */
  12866. String typeName;
  12867. VerticalAlignment verticalAlignment;
  12868. uint viewMask;
  12869. /* readonly */
  12870. int weakRefs;
  12871. int width;
  12872. bool wordwrap;
  12873. /* readonly */
  12874. BoundingBox worldBoundingBox;
  12875. uint zoneMask;
  12876. };
  12877. class Texture
  12878. {
  12879. public:
  12880. Texture();
  12881. Texture(const String&in);
  12882. // Methods:
  12883. void AddMetadata(const String&, const Variant&);
  12884. void ClearDataLost();
  12885. bool HasSubscribedToEvent(Object, const String&);
  12886. bool HasSubscribedToEvent(const String&);
  12887. bool Load(File);
  12888. bool Load(VectorBuffer&);
  12889. bool Load(const String&);
  12890. void RemoveAllMetadata();
  12891. void RemoveMetadata(const String&);
  12892. bool Save(File) const;
  12893. bool Save(VectorBuffer&) const;
  12894. bool Save(const String&) const;
  12895. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12896. void SetNumLevels(uint);
  12897. // Properties:
  12898. Array<TextureAddressMode> addressMode;
  12899. uint anisotropy;
  12900. /* readonly */
  12901. bool autoResolve;
  12902. Texture backupTexture;
  12903. Color borderColor;
  12904. /* readonly */
  12905. String category;
  12906. /* readonly */
  12907. uint components;
  12908. /* readonly */
  12909. bool compressed;
  12910. /* readonly */
  12911. bool dataLost;
  12912. TextureFilterMode filterMode;
  12913. /* readonly */
  12914. uint format;
  12915. /* readonly */
  12916. bool hasMetadata;
  12917. /* readonly */
  12918. int height;
  12919. /* readonly */
  12920. Array<int> levelHeight;
  12921. /* readonly */
  12922. Array<int> levelWidth;
  12923. /* readonly */
  12924. uint levels;
  12925. /* readonly */
  12926. bool levelsDirty;
  12927. /* readonly */
  12928. uint memoryUse;
  12929. Array<Variant> metadata;
  12930. Array<int> mipsToSkip;
  12931. /* readonly */
  12932. int multiSample;
  12933. String name;
  12934. /* readonly */
  12935. int refs;
  12936. /* readonly */
  12937. bool resolveDirty;
  12938. bool sRGB;
  12939. /* readonly */
  12940. StringHash type;
  12941. /* readonly */
  12942. String typeName;
  12943. /* readonly */
  12944. TextureUsage usage;
  12945. /* readonly */
  12946. uint useTimer;
  12947. /* readonly */
  12948. int weakRefs;
  12949. /* readonly */
  12950. int width;
  12951. };
  12952. class Texture2D
  12953. {
  12954. public:
  12955. Texture2D();
  12956. Texture2D(const String&in);
  12957. // Methods:
  12958. void AddMetadata(const String&, const Variant&);
  12959. void ClearDataLost();
  12960. Image GetImage() const;
  12961. bool HasSubscribedToEvent(Object, const String&);
  12962. bool HasSubscribedToEvent(const String&);
  12963. bool Load(File);
  12964. bool Load(VectorBuffer&);
  12965. bool Load(const String&);
  12966. void RemoveAllMetadata();
  12967. void RemoveMetadata(const String&);
  12968. bool Save(File) const;
  12969. bool Save(VectorBuffer&) const;
  12970. bool Save(const String&) const;
  12971. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12972. bool SetData(Image, bool = false);
  12973. void SetNumLevels(uint);
  12974. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12975. // Properties:
  12976. Array<TextureAddressMode> addressMode;
  12977. uint anisotropy;
  12978. /* readonly */
  12979. bool autoResolve;
  12980. Texture backupTexture;
  12981. Color borderColor;
  12982. /* readonly */
  12983. String category;
  12984. /* readonly */
  12985. uint components;
  12986. /* readonly */
  12987. bool compressed;
  12988. /* readonly */
  12989. bool dataLost;
  12990. TextureFilterMode filterMode;
  12991. /* readonly */
  12992. uint format;
  12993. /* readonly */
  12994. bool hasMetadata;
  12995. /* readonly */
  12996. int height;
  12997. /* readonly */
  12998. Array<int> levelHeight;
  12999. /* readonly */
  13000. Array<int> levelWidth;
  13001. /* readonly */
  13002. uint levels;
  13003. /* readonly */
  13004. bool levelsDirty;
  13005. /* readonly */
  13006. uint memoryUse;
  13007. Array<Variant> metadata;
  13008. Array<int> mipsToSkip;
  13009. /* readonly */
  13010. int multiSample;
  13011. String name;
  13012. /* readonly */
  13013. int refs;
  13014. /* readonly */
  13015. RenderSurface renderSurface;
  13016. /* readonly */
  13017. bool resolveDirty;
  13018. bool sRGB;
  13019. /* readonly */
  13020. StringHash type;
  13021. /* readonly */
  13022. String typeName;
  13023. /* readonly */
  13024. TextureUsage usage;
  13025. /* readonly */
  13026. uint useTimer;
  13027. /* readonly */
  13028. int weakRefs;
  13029. /* readonly */
  13030. int width;
  13031. };
  13032. class Texture2DArray
  13033. {
  13034. public:
  13035. Texture2DArray();
  13036. Texture2DArray(const String&in);
  13037. // Methods:
  13038. void AddMetadata(const String&, const Variant&);
  13039. void ClearDataLost();
  13040. bool HasSubscribedToEvent(Object, const String&);
  13041. bool HasSubscribedToEvent(const String&);
  13042. bool Load(File);
  13043. bool Load(VectorBuffer&);
  13044. bool Load(const String&);
  13045. void RemoveAllMetadata();
  13046. void RemoveMetadata(const String&);
  13047. bool Save(File) const;
  13048. bool Save(VectorBuffer&) const;
  13049. bool Save(const String&) const;
  13050. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13051. bool SetData(uint, Image, bool = false);
  13052. void SetNumLevels(uint);
  13053. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13054. // Properties:
  13055. Array<TextureAddressMode> addressMode;
  13056. uint anisotropy;
  13057. /* readonly */
  13058. bool autoResolve;
  13059. Texture backupTexture;
  13060. Color borderColor;
  13061. /* readonly */
  13062. String category;
  13063. /* readonly */
  13064. uint components;
  13065. /* readonly */
  13066. bool compressed;
  13067. /* readonly */
  13068. bool dataLost;
  13069. TextureFilterMode filterMode;
  13070. /* readonly */
  13071. uint format;
  13072. /* readonly */
  13073. bool hasMetadata;
  13074. /* readonly */
  13075. int height;
  13076. uint layers;
  13077. /* readonly */
  13078. Array<int> levelHeight;
  13079. /* readonly */
  13080. Array<int> levelWidth;
  13081. /* readonly */
  13082. uint levels;
  13083. /* readonly */
  13084. bool levelsDirty;
  13085. /* readonly */
  13086. uint memoryUse;
  13087. Array<Variant> metadata;
  13088. Array<int> mipsToSkip;
  13089. /* readonly */
  13090. int multiSample;
  13091. String name;
  13092. /* readonly */
  13093. int refs;
  13094. /* readonly */
  13095. RenderSurface renderSurface;
  13096. /* readonly */
  13097. bool resolveDirty;
  13098. bool sRGB;
  13099. /* readonly */
  13100. StringHash type;
  13101. /* readonly */
  13102. String typeName;
  13103. /* readonly */
  13104. TextureUsage usage;
  13105. /* readonly */
  13106. uint useTimer;
  13107. /* readonly */
  13108. int weakRefs;
  13109. /* readonly */
  13110. int width;
  13111. };
  13112. class Texture3D
  13113. {
  13114. public:
  13115. Texture3D();
  13116. Texture3D(const String&in);
  13117. // Methods:
  13118. void AddMetadata(const String&, const Variant&);
  13119. void ClearDataLost();
  13120. bool HasSubscribedToEvent(Object, const String&);
  13121. bool HasSubscribedToEvent(const String&);
  13122. bool Load(File);
  13123. bool Load(VectorBuffer&);
  13124. bool Load(const String&);
  13125. void RemoveAllMetadata();
  13126. void RemoveMetadata(const String&);
  13127. bool Save(File) const;
  13128. bool Save(VectorBuffer&) const;
  13129. bool Save(const String&) const;
  13130. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13131. bool SetData(Image, bool = false);
  13132. void SetNumLevels(uint);
  13133. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13134. // Properties:
  13135. Array<TextureAddressMode> addressMode;
  13136. uint anisotropy;
  13137. /* readonly */
  13138. bool autoResolve;
  13139. Texture backupTexture;
  13140. Color borderColor;
  13141. /* readonly */
  13142. String category;
  13143. /* readonly */
  13144. uint components;
  13145. /* readonly */
  13146. bool compressed;
  13147. /* readonly */
  13148. bool dataLost;
  13149. TextureFilterMode filterMode;
  13150. /* readonly */
  13151. uint format;
  13152. /* readonly */
  13153. bool hasMetadata;
  13154. /* readonly */
  13155. int height;
  13156. /* readonly */
  13157. Array<int> levelHeight;
  13158. /* readonly */
  13159. Array<int> levelWidth;
  13160. /* readonly */
  13161. uint levels;
  13162. /* readonly */
  13163. bool levelsDirty;
  13164. /* readonly */
  13165. uint memoryUse;
  13166. Array<Variant> metadata;
  13167. Array<int> mipsToSkip;
  13168. /* readonly */
  13169. int multiSample;
  13170. String name;
  13171. /* readonly */
  13172. int refs;
  13173. /* readonly */
  13174. bool resolveDirty;
  13175. bool sRGB;
  13176. /* readonly */
  13177. StringHash type;
  13178. /* readonly */
  13179. String typeName;
  13180. /* readonly */
  13181. TextureUsage usage;
  13182. /* readonly */
  13183. uint useTimer;
  13184. /* readonly */
  13185. int weakRefs;
  13186. /* readonly */
  13187. int width;
  13188. };
  13189. class TextureCube
  13190. {
  13191. public:
  13192. TextureCube();
  13193. TextureCube(const String&in);
  13194. // Methods:
  13195. void AddMetadata(const String&, const Variant&);
  13196. void ClearDataLost();
  13197. Image GetImage(CubeMapFace) const;
  13198. bool HasSubscribedToEvent(Object, const String&);
  13199. bool HasSubscribedToEvent(const String&);
  13200. bool Load(File);
  13201. bool Load(VectorBuffer&);
  13202. bool Load(const String&);
  13203. void RemoveAllMetadata();
  13204. void RemoveMetadata(const String&);
  13205. bool Save(File) const;
  13206. bool Save(VectorBuffer&) const;
  13207. bool Save(const String&) const;
  13208. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13209. bool SetData(CubeMapFace, Image, bool = false);
  13210. void SetNumLevels(uint);
  13211. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  13212. // Properties:
  13213. Array<TextureAddressMode> addressMode;
  13214. uint anisotropy;
  13215. /* readonly */
  13216. bool autoResolve;
  13217. Texture backupTexture;
  13218. Color borderColor;
  13219. /* readonly */
  13220. String category;
  13221. /* readonly */
  13222. uint components;
  13223. /* readonly */
  13224. bool compressed;
  13225. /* readonly */
  13226. bool dataLost;
  13227. TextureFilterMode filterMode;
  13228. /* readonly */
  13229. uint format;
  13230. /* readonly */
  13231. bool hasMetadata;
  13232. /* readonly */
  13233. int height;
  13234. /* readonly */
  13235. Array<int> levelHeight;
  13236. /* readonly */
  13237. Array<int> levelWidth;
  13238. /* readonly */
  13239. uint levels;
  13240. /* readonly */
  13241. bool levelsDirty;
  13242. /* readonly */
  13243. uint memoryUse;
  13244. Array<Variant> metadata;
  13245. Array<int> mipsToSkip;
  13246. /* readonly */
  13247. int multiSample;
  13248. String name;
  13249. /* readonly */
  13250. int refs;
  13251. /* readonly */
  13252. Array<RenderSurface> renderSurfaces;
  13253. /* readonly */
  13254. bool resolveDirty;
  13255. bool sRGB;
  13256. /* readonly */
  13257. StringHash type;
  13258. /* readonly */
  13259. String typeName;
  13260. /* readonly */
  13261. TextureUsage usage;
  13262. /* readonly */
  13263. uint useTimer;
  13264. /* readonly */
  13265. int weakRefs;
  13266. /* readonly */
  13267. int width;
  13268. };
  13269. class TextureFrame
  13270. {
  13271. public:
  13272. // Properties:
  13273. float time;
  13274. Rect uv;
  13275. };
  13276. class Tile2D
  13277. {
  13278. public:
  13279. // Methods:
  13280. bool HasProperty(const String&) const;
  13281. const String& GetProperty(const String&) const;
  13282. // Properties:
  13283. /* readonly */
  13284. bool flipX;
  13285. /* readonly */
  13286. bool flipY;
  13287. /* readonly */
  13288. uint gid;
  13289. /* readonly */
  13290. int refs;
  13291. /* readonly */
  13292. Sprite2D sprite;
  13293. /* readonly */
  13294. bool swapXY;
  13295. /* readonly */
  13296. int weakRefs;
  13297. };
  13298. class TileMap2D
  13299. {
  13300. public:
  13301. // Methods:
  13302. void ApplyAttributes();
  13303. void DrawDebugGeometry(DebugRenderer, bool);
  13304. Variant GetAttribute(const String&) const;
  13305. ValueAnimation GetAttributeAnimation(const String&) const;
  13306. float GetAttributeAnimationSpeed(const String&) const;
  13307. float GetAttributeAnimationTime(const String&) const;
  13308. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13309. Variant GetAttributeDefault(const String&) const;
  13310. bool GetInterceptNetworkUpdate(const String&) const;
  13311. TileMapLayer2D GetLayer(uint) const;
  13312. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  13313. bool HasSubscribedToEvent(Object, const String&);
  13314. bool HasSubscribedToEvent(const String&);
  13315. bool Load(File);
  13316. bool Load(VectorBuffer&);
  13317. bool LoadJSON(const JSONValue&);
  13318. bool LoadXML(const XMLElement&);
  13319. void MarkNetworkUpdate() const;
  13320. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  13321. void Remove();
  13322. void RemoveAttributeAnimation(const String&);
  13323. void RemoveInstanceDefault();
  13324. void RemoveObjectAnimation();
  13325. void ResetToDefault();
  13326. bool Save(File) const;
  13327. bool Save(VectorBuffer&) const;
  13328. bool SaveJSON(JSONValue&) const;
  13329. bool SaveXML(XMLElement&) const;
  13330. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13331. void SetAnimationTime(float);
  13332. bool SetAttribute(const String&, const Variant&);
  13333. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13334. void SetAttributeAnimationSpeed(const String&, float);
  13335. void SetAttributeAnimationTime(const String&, float);
  13336. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13337. void SetInterceptNetworkUpdate(const String&, bool);
  13338. Vector2 TileIndexToPosition(int, int) const;
  13339. // Properties:
  13340. bool animationEnabled;
  13341. /* readonly */
  13342. Array<Variant> attributeDefaults;
  13343. /* readonly */
  13344. Array<AttributeInfo> attributeInfos;
  13345. Array<Variant> attributes;
  13346. /* readonly */
  13347. String category;
  13348. bool enabled;
  13349. /* readonly */
  13350. bool enabledEffective;
  13351. /* readonly */
  13352. uint id;
  13353. /* readonly */
  13354. TileMapInfo2D info;
  13355. /* readonly */
  13356. Node node;
  13357. /* readonly */
  13358. uint numAttributes;
  13359. /* readonly */
  13360. uint numLayers;
  13361. ObjectAnimation objectAnimation;
  13362. /* readonly */
  13363. int refs;
  13364. /* readonly */
  13365. bool replicated;
  13366. bool temporary;
  13367. TmxFile2D tmxFile;
  13368. /* readonly */
  13369. StringHash type;
  13370. /* readonly */
  13371. String typeName;
  13372. /* readonly */
  13373. int weakRefs;
  13374. };
  13375. class TileMapInfo2D
  13376. {
  13377. public:
  13378. // Properties:
  13379. int height;
  13380. /* readonly */
  13381. float mapHeight;
  13382. /* readonly */
  13383. float mapWidth;
  13384. Orientation2D orientation;
  13385. float tileHeight;
  13386. float tileWidth;
  13387. int width;
  13388. };
  13389. class TileMapLayer2D
  13390. {
  13391. public:
  13392. // Methods:
  13393. void ApplyAttributes();
  13394. void DrawDebugGeometry(DebugRenderer, bool);
  13395. Variant GetAttribute(const String&) const;
  13396. ValueAnimation GetAttributeAnimation(const String&) const;
  13397. float GetAttributeAnimationSpeed(const String&) const;
  13398. float GetAttributeAnimationTime(const String&) const;
  13399. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13400. Variant GetAttributeDefault(const String&) const;
  13401. bool GetInterceptNetworkUpdate(const String&) const;
  13402. TileMapObject2D GetObject(uint) const;
  13403. Node GetObjectNode(uint) const;
  13404. Tile2D GetTile(int, int) const;
  13405. Node GetTileNode(int, int) const;
  13406. bool HasProperty(const String&) const;
  13407. bool HasSubscribedToEvent(Object, const String&);
  13408. bool HasSubscribedToEvent(const String&);
  13409. bool Load(File);
  13410. bool Load(VectorBuffer&);
  13411. bool LoadJSON(const JSONValue&);
  13412. bool LoadXML(const XMLElement&);
  13413. void MarkNetworkUpdate() const;
  13414. void Remove();
  13415. void RemoveAttributeAnimation(const String&);
  13416. void RemoveInstanceDefault();
  13417. void RemoveObjectAnimation();
  13418. void ResetToDefault();
  13419. bool Save(File) const;
  13420. bool Save(VectorBuffer&) const;
  13421. bool SaveJSON(JSONValue&) const;
  13422. bool SaveXML(XMLElement&) const;
  13423. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13424. void SetAnimationTime(float);
  13425. bool SetAttribute(const String&, const Variant&);
  13426. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13427. void SetAttributeAnimationSpeed(const String&, float);
  13428. void SetAttributeAnimationTime(const String&, float);
  13429. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13430. void SetInterceptNetworkUpdate(const String&, bool);
  13431. const String& GetProperty(const String&) const;
  13432. // Properties:
  13433. bool animationEnabled;
  13434. /* readonly */
  13435. Array<Variant> attributeDefaults;
  13436. /* readonly */
  13437. Array<AttributeInfo> attributeInfos;
  13438. Array<Variant> attributes;
  13439. /* readonly */
  13440. String category;
  13441. int drawOrder;
  13442. bool enabled;
  13443. /* readonly */
  13444. bool enabledEffective;
  13445. /* readonly */
  13446. int height;
  13447. /* readonly */
  13448. uint id;
  13449. /* readonly */
  13450. Node imageNode;
  13451. /* readonly */
  13452. TileMapLayerType2D layerType;
  13453. /* readonly */
  13454. Node node;
  13455. /* readonly */
  13456. uint numAttributes;
  13457. /* readonly */
  13458. uint numObjects;
  13459. ObjectAnimation objectAnimation;
  13460. /* readonly */
  13461. int refs;
  13462. /* readonly */
  13463. bool replicated;
  13464. bool temporary;
  13465. /* readonly */
  13466. StringHash type;
  13467. /* readonly */
  13468. String typeName;
  13469. bool visible;
  13470. /* readonly */
  13471. int weakRefs;
  13472. /* readonly */
  13473. int width;
  13474. };
  13475. class TileMapObject2D
  13476. {
  13477. public:
  13478. // Methods:
  13479. bool HasProperty(const String&) const;
  13480. const String& GetProperty(const String&) const;
  13481. const Vector2& GetPoint(uint) const;
  13482. // Properties:
  13483. /* readonly */
  13484. String name;
  13485. /* readonly */
  13486. uint numPoints;
  13487. /* readonly */
  13488. TileObjectType2D objectType;
  13489. /* readonly */
  13490. Vector2 position;
  13491. /* readonly */
  13492. int refs;
  13493. /* readonly */
  13494. Vector2 size;
  13495. /* readonly */
  13496. bool tileFlipX;
  13497. /* readonly */
  13498. bool tileFlipY;
  13499. /* readonly */
  13500. uint tileGid;
  13501. /* readonly */
  13502. Sprite2D tileSprite;
  13503. /* readonly */
  13504. bool tileSwapXY;
  13505. /* readonly */
  13506. String type;
  13507. /* readonly */
  13508. int weakRefs;
  13509. };
  13510. class Time
  13511. {
  13512. public:
  13513. // Methods:
  13514. bool HasSubscribedToEvent(Object, const String&);
  13515. bool HasSubscribedToEvent(const String&);
  13516. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13517. // Properties:
  13518. /* readonly */
  13519. String category;
  13520. /* readonly */
  13521. float elapsedTime;
  13522. /* readonly */
  13523. uint frameNumber;
  13524. /* readonly */
  13525. float framesPerSecond;
  13526. /* readonly */
  13527. int refs;
  13528. /* readonly */
  13529. uint systemTime;
  13530. /* readonly */
  13531. uint timeSinceEpoch;
  13532. /* readonly */
  13533. String timeStamp;
  13534. /* readonly */
  13535. float timeStep;
  13536. /* readonly */
  13537. StringHash type;
  13538. /* readonly */
  13539. String typeName;
  13540. /* readonly */
  13541. int weakRefs;
  13542. };
  13543. class Timer
  13544. {
  13545. public:
  13546. Timer();
  13547. // Methods:
  13548. uint GetMSec(bool);
  13549. void Reset();
  13550. };
  13551. class TmxFile2D
  13552. {
  13553. public:
  13554. TmxFile2D();
  13555. TmxFile2D(const String&in);
  13556. // Methods:
  13557. bool HasSubscribedToEvent(Object, const String&);
  13558. bool HasSubscribedToEvent(const String&);
  13559. bool Load(File);
  13560. bool Load(VectorBuffer&);
  13561. bool Load(const String&);
  13562. bool Save(File) const;
  13563. bool Save(VectorBuffer&) const;
  13564. bool Save(const String&) const;
  13565. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13566. // Properties:
  13567. /* readonly */
  13568. String category;
  13569. float edgeOffset;
  13570. /* readonly */
  13571. uint memoryUse;
  13572. String name;
  13573. /* readonly */
  13574. int refs;
  13575. /* readonly */
  13576. StringHash type;
  13577. /* readonly */
  13578. String typeName;
  13579. /* readonly */
  13580. uint useTimer;
  13581. /* readonly */
  13582. int weakRefs;
  13583. };
  13584. class ToolTip
  13585. {
  13586. public:
  13587. ToolTip();
  13588. ToolTip(const String&in);
  13589. // Methods:
  13590. void AddChild(UIElement);
  13591. void AddTag(const String&);
  13592. void AddTags(const String&, int8 = ';');
  13593. void ApplyAttributes();
  13594. void BringToFront();
  13595. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13596. void DisableLayoutUpdate();
  13597. IntVector2 ElementToScreen(const IntVector2&);
  13598. void EnableLayoutUpdate();
  13599. uint FindChild(UIElement) const;
  13600. Variant GetAttribute(const String&) const;
  13601. ValueAnimation GetAttributeAnimation(const String&) const;
  13602. float GetAttributeAnimationSpeed(const String&) const;
  13603. float GetAttributeAnimationTime(const String&) const;
  13604. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13605. Variant GetAttributeDefault(const String&) const;
  13606. UIElement GetChild(const String&, bool = false) const;
  13607. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13608. Array<UIElement> GetChildren(bool = false) const;
  13609. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13610. UIElement GetElementEventSender() const;
  13611. bool GetInterceptNetworkUpdate(const String&) const;
  13612. uint GetNumChildren(bool) const;
  13613. bool HasSubscribedToEvent(Object, const String&);
  13614. bool HasSubscribedToEvent(const String&);
  13615. bool HasTag(const String&) const;
  13616. void InsertChild(uint, UIElement);
  13617. bool IsChildOf(UIElement) const;
  13618. bool IsInside(IntVector2, bool);
  13619. bool IsInsideCombined(IntVector2, bool);
  13620. bool Load(File);
  13621. bool Load(VectorBuffer&);
  13622. UIElement LoadChildXML(XMLFile, XMLFile);
  13623. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13624. bool LoadJSON(const JSONValue&);
  13625. bool LoadXML(File);
  13626. bool LoadXML(VectorBuffer&);
  13627. bool LoadXML(XMLFile, XMLFile);
  13628. bool LoadXML(const XMLElement&, XMLFile);
  13629. bool LoadXML(const XMLElement&);
  13630. void MarkNetworkUpdate() const;
  13631. void Remove();
  13632. void RemoveAllChildren();
  13633. void RemoveAllTags();
  13634. void RemoveAttributeAnimation(const String&);
  13635. void RemoveChild(UIElement, uint = 0);
  13636. void RemoveChild(uint);
  13637. void RemoveInstanceDefault();
  13638. void RemoveObjectAnimation();
  13639. bool RemoveTag(const String&);
  13640. void Reset();
  13641. void ResetDeepEnabled();
  13642. void ResetToDefault();
  13643. bool Save(File) const;
  13644. bool Save(VectorBuffer&) const;
  13645. bool SaveJSON(JSONValue&) const;
  13646. bool SaveXML(File, const String& = "\t");
  13647. bool SaveXML(VectorBuffer&, const String& = "\t");
  13648. bool SaveXML(XMLElement&) const;
  13649. IntVector2 ScreenToElement(const IntVector2&);
  13650. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13651. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13652. void SetAnimationTime(float);
  13653. bool SetAttribute(const String&, const Variant&);
  13654. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13655. void SetAttributeAnimationSpeed(const String&, float);
  13656. void SetAttributeAnimationTime(const String&, float);
  13657. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13658. void SetDeepEnabled(bool);
  13659. void SetEnabledRecursive(bool);
  13660. void SetFixedHeight(int);
  13661. void SetFixedSize(int, int);
  13662. void SetFixedWidth(int);
  13663. void SetInterceptNetworkUpdate(const String&, bool);
  13664. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13665. void SetMaxAnchor(float, float);
  13666. void SetMaxSize(int, int);
  13667. void SetMinAnchor(float, float);
  13668. void SetMinSize(int, int);
  13669. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13670. void SetPivot(float, float);
  13671. void SetPosition(int, int);
  13672. void SetSize(int, int);
  13673. bool SetStyle(const String&, XMLFile = null);
  13674. bool SetStyle(const XMLElement&);
  13675. bool SetStyleAuto(XMLFile = null);
  13676. void UpdateLayout();
  13677. const Variant& GetVar(const StringHash&);
  13678. void add_altTarget(UIElement);
  13679. // Properties:
  13680. bool animationEnabled;
  13681. /* readonly */
  13682. Array<Variant> attributeDefaults;
  13683. /* readonly */
  13684. Array<AttributeInfo> attributeInfos;
  13685. Array<Variant> attributes;
  13686. bool bringToBack;
  13687. bool bringToFront;
  13688. /* readonly */
  13689. String category;
  13690. /* readonly */
  13691. IntVector2 childOffset;
  13692. /* readonly */
  13693. Array<UIElement> children;
  13694. IntRect clipBorder;
  13695. bool clipChildren;
  13696. /* writeonly */
  13697. Color color;
  13698. /* readonly */
  13699. bool colorGradient;
  13700. Array<Color> colors;
  13701. /* readonly */
  13702. IntRect combinedScreenRect;
  13703. XMLFile defaultStyle;
  13704. float delay;
  13705. /* readonly */
  13706. float derivedOpacity;
  13707. /* readonly */
  13708. uint dragButtonCombo;
  13709. /* readonly */
  13710. int dragButtonCount;
  13711. uint dragDropMode;
  13712. bool editable;
  13713. bool elementEventSender;
  13714. bool enableAnchor;
  13715. bool enabled;
  13716. /* readonly */
  13717. bool enabledSelf;
  13718. /* readonly */
  13719. bool fixedHeight;
  13720. /* readonly */
  13721. bool fixedSize;
  13722. /* readonly */
  13723. bool fixedWidth;
  13724. bool focus;
  13725. FocusMode focusMode;
  13726. int height;
  13727. HorizontalAlignment horizontalAlignment;
  13728. /* readonly */
  13729. bool hovering;
  13730. int indent;
  13731. int indentSpacing;
  13732. /* readonly */
  13733. int indentWidth;
  13734. bool internal;
  13735. IntRect layoutBorder;
  13736. Vector2 layoutFlexScale;
  13737. LayoutMode layoutMode;
  13738. int layoutSpacing;
  13739. Vector2 maxAnchor;
  13740. int maxHeight;
  13741. IntVector2 maxOffset;
  13742. IntVector2 maxSize;
  13743. int maxWidth;
  13744. Vector2 minAnchor;
  13745. int minHeight;
  13746. IntVector2 minOffset;
  13747. IntVector2 minSize;
  13748. int minWidth;
  13749. String name;
  13750. /* readonly */
  13751. uint numAllChildren;
  13752. /* readonly */
  13753. uint numAttributes;
  13754. /* readonly */
  13755. uint numChildren;
  13756. ObjectAnimation objectAnimation;
  13757. float opacity;
  13758. UIElement parent;
  13759. Vector2 pivot;
  13760. IntVector2 position;
  13761. int priority;
  13762. /* readonly */
  13763. int refs;
  13764. /* readonly */
  13765. UIElement root;
  13766. /* readonly */
  13767. IntVector2 screenPosition;
  13768. bool selected;
  13769. IntVector2 size;
  13770. bool sortChildren;
  13771. String style;
  13772. /* readonly */
  13773. Array<String> tags;
  13774. bool temporary;
  13775. TraversalMode traversalMode;
  13776. /* readonly */
  13777. StringHash type;
  13778. /* readonly */
  13779. String typeName;
  13780. bool useDerivedOpacity;
  13781. /* readonly */
  13782. VariantMap vars;
  13783. VerticalAlignment verticalAlignment;
  13784. bool visible;
  13785. /* readonly */
  13786. bool visibleEffective;
  13787. /* readonly */
  13788. int weakRefs;
  13789. int width;
  13790. };
  13791. class TouchState
  13792. {
  13793. public:
  13794. // Properties:
  13795. IntVector2 delta;
  13796. IntVector2 lastPosition;
  13797. IntVector2 position;
  13798. float pressure;
  13799. int touchID;
  13800. /* readonly */
  13801. UIElement touchedElement;
  13802. };
  13803. class UI
  13804. {
  13805. public:
  13806. // Methods:
  13807. void Clear();
  13808. void DebugDraw(UIElement);
  13809. UIElement GetElementAt(const IntVector2&, bool = true);
  13810. UIElement GetElementAt(int, int, bool = true);
  13811. bool HasModalElement() const;
  13812. bool HasSubscribedToEvent(Object, const String&);
  13813. bool HasSubscribedToEvent(const String&);
  13814. bool IsDragging() const;
  13815. UIElement LoadLayout(File);
  13816. UIElement LoadLayout(File, XMLFile);
  13817. UIElement LoadLayout(VectorBuffer&);
  13818. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13819. UIElement LoadLayout(XMLFile);
  13820. UIElement LoadLayout(XMLFile, XMLFile);
  13821. bool SaveLayout(File, UIElement);
  13822. bool SaveLayout(VectorBuffer&, UIElement);
  13823. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13824. void SetCustomSize(int, int);
  13825. void SetFocusElement(UIElement, bool = false);
  13826. void SetHeight(float);
  13827. void SetWidth(float);
  13828. const Array<UIElement> GetDragElements();
  13829. // Properties:
  13830. /* readonly */
  13831. String category;
  13832. String clipBoardText;
  13833. Cursor cursor;
  13834. /* readonly */
  13835. IntVector2 cursorPosition;
  13836. IntVector2 customSize;
  13837. float defaultToolTipDelay;
  13838. float doubleClickInterval;
  13839. int dragBeginDistance;
  13840. float dragBeginInterval;
  13841. UIElement focusElement;
  13842. FontHintLevel fontHintLevel;
  13843. int fontOversampling;
  13844. float fontSubpixelThreshold;
  13845. bool forceAutoHint;
  13846. /* readonly */
  13847. UIElement frontElement;
  13848. float maxDoubleClickDistance;
  13849. int maxFontTextureSize;
  13850. /* readonly */
  13851. UIElement modalRoot;
  13852. bool nonFocusedMouseWheel;
  13853. /* readonly */
  13854. int refs;
  13855. /* readonly */
  13856. UIElement root;
  13857. float scale;
  13858. /* readonly */
  13859. StringHash type;
  13860. /* readonly */
  13861. String typeName;
  13862. bool useMutableGlyphs;
  13863. bool useScreenKeyboard;
  13864. bool useSystemClipboard;
  13865. /* readonly */
  13866. int weakRefs;
  13867. };
  13868. class UIComponent
  13869. {
  13870. public:
  13871. // Methods:
  13872. void ApplyAttributes();
  13873. Variant GetAttribute(const String&) const;
  13874. ValueAnimation GetAttributeAnimation(const String&) const;
  13875. float GetAttributeAnimationSpeed(const String&) const;
  13876. float GetAttributeAnimationTime(const String&) const;
  13877. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13878. Variant GetAttributeDefault(const String&) const;
  13879. bool GetInterceptNetworkUpdate(const String&) const;
  13880. bool HasSubscribedToEvent(Object, const String&);
  13881. bool HasSubscribedToEvent(const String&);
  13882. bool Load(File);
  13883. bool Load(VectorBuffer&);
  13884. bool LoadJSON(const JSONValue&);
  13885. bool LoadXML(const XMLElement&);
  13886. void MarkNetworkUpdate() const;
  13887. void Remove();
  13888. void RemoveAttributeAnimation(const String&);
  13889. void RemoveInstanceDefault();
  13890. void RemoveObjectAnimation();
  13891. void ResetToDefault();
  13892. bool Save(File) const;
  13893. bool Save(VectorBuffer&) const;
  13894. bool SaveJSON(JSONValue&) const;
  13895. bool SaveXML(XMLElement&) const;
  13896. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13897. void SetAnimationTime(float);
  13898. bool SetAttribute(const String&, const Variant&);
  13899. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13900. void SetAttributeAnimationSpeed(const String&, float);
  13901. void SetAttributeAnimationTime(const String&, float);
  13902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13903. void SetInterceptNetworkUpdate(const String&, bool);
  13904. // Properties:
  13905. bool animationEnabled;
  13906. /* readonly */
  13907. Array<Variant> attributeDefaults;
  13908. /* readonly */
  13909. Array<AttributeInfo> attributeInfos;
  13910. Array<Variant> attributes;
  13911. /* readonly */
  13912. String category;
  13913. bool enabled;
  13914. /* readonly */
  13915. bool enabledEffective;
  13916. /* readonly */
  13917. uint id;
  13918. /* readonly */
  13919. Material material;
  13920. /* readonly */
  13921. Node node;
  13922. /* readonly */
  13923. uint numAttributes;
  13924. ObjectAnimation objectAnimation;
  13925. /* readonly */
  13926. int refs;
  13927. /* readonly */
  13928. bool replicated;
  13929. /* readonly */
  13930. UIElement root;
  13931. bool temporary;
  13932. /* readonly */
  13933. Texture2D texture;
  13934. /* readonly */
  13935. StringHash type;
  13936. /* readonly */
  13937. String typeName;
  13938. /* readonly */
  13939. int weakRefs;
  13940. };
  13941. class UIElement
  13942. {
  13943. public:
  13944. UIElement();
  13945. UIElement(const String&in);
  13946. // Methods:
  13947. void AddChild(UIElement);
  13948. void AddTag(const String&);
  13949. void AddTags(const String&, int8 = ';');
  13950. void ApplyAttributes();
  13951. void BringToFront();
  13952. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13953. void DisableLayoutUpdate();
  13954. IntVector2 ElementToScreen(const IntVector2&);
  13955. void EnableLayoutUpdate();
  13956. uint FindChild(UIElement) const;
  13957. Variant GetAttribute(const String&) const;
  13958. ValueAnimation GetAttributeAnimation(const String&) const;
  13959. float GetAttributeAnimationSpeed(const String&) const;
  13960. float GetAttributeAnimationTime(const String&) const;
  13961. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13962. Variant GetAttributeDefault(const String&) const;
  13963. UIElement GetChild(const String&, bool = false) const;
  13964. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13965. Array<UIElement> GetChildren(bool = false) const;
  13966. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13967. UIElement GetElementEventSender() const;
  13968. bool GetInterceptNetworkUpdate(const String&) const;
  13969. uint GetNumChildren(bool) const;
  13970. bool HasSubscribedToEvent(Object, const String&);
  13971. bool HasSubscribedToEvent(const String&);
  13972. bool HasTag(const String&) const;
  13973. void InsertChild(uint, UIElement);
  13974. bool IsChildOf(UIElement) const;
  13975. bool IsInside(IntVector2, bool);
  13976. bool IsInsideCombined(IntVector2, bool);
  13977. bool Load(File);
  13978. bool Load(VectorBuffer&);
  13979. UIElement LoadChildXML(XMLFile, XMLFile);
  13980. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13981. bool LoadJSON(const JSONValue&);
  13982. bool LoadXML(File);
  13983. bool LoadXML(VectorBuffer&);
  13984. bool LoadXML(XMLFile, XMLFile);
  13985. bool LoadXML(const XMLElement&, XMLFile);
  13986. bool LoadXML(const XMLElement&);
  13987. void MarkNetworkUpdate() const;
  13988. void Remove();
  13989. void RemoveAllChildren();
  13990. void RemoveAllTags();
  13991. void RemoveAttributeAnimation(const String&);
  13992. void RemoveChild(UIElement, uint = 0);
  13993. void RemoveChild(uint);
  13994. void RemoveInstanceDefault();
  13995. void RemoveObjectAnimation();
  13996. bool RemoveTag(const String&);
  13997. void ResetDeepEnabled();
  13998. void ResetToDefault();
  13999. bool Save(File) const;
  14000. bool Save(VectorBuffer&) const;
  14001. bool SaveJSON(JSONValue&) const;
  14002. bool SaveXML(File, const String& = "\t");
  14003. bool SaveXML(VectorBuffer&, const String& = "\t");
  14004. bool SaveXML(XMLElement&) const;
  14005. IntVector2 ScreenToElement(const IntVector2&);
  14006. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14007. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14008. void SetAnimationTime(float);
  14009. bool SetAttribute(const String&, const Variant&);
  14010. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14011. void SetAttributeAnimationSpeed(const String&, float);
  14012. void SetAttributeAnimationTime(const String&, float);
  14013. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14014. void SetDeepEnabled(bool);
  14015. void SetEnabledRecursive(bool);
  14016. void SetFixedHeight(int);
  14017. void SetFixedSize(int, int);
  14018. void SetFixedWidth(int);
  14019. void SetInterceptNetworkUpdate(const String&, bool);
  14020. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14021. void SetMaxAnchor(float, float);
  14022. void SetMaxSize(int, int);
  14023. void SetMinAnchor(float, float);
  14024. void SetMinSize(int, int);
  14025. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14026. void SetPivot(float, float);
  14027. void SetPosition(int, int);
  14028. void SetSize(int, int);
  14029. bool SetStyle(const String&, XMLFile = null);
  14030. bool SetStyle(const XMLElement&);
  14031. bool SetStyleAuto(XMLFile = null);
  14032. void UpdateLayout();
  14033. const Variant& GetVar(const StringHash&);
  14034. // Properties:
  14035. bool animationEnabled;
  14036. /* readonly */
  14037. Array<Variant> attributeDefaults;
  14038. /* readonly */
  14039. Array<AttributeInfo> attributeInfos;
  14040. Array<Variant> attributes;
  14041. bool bringToBack;
  14042. bool bringToFront;
  14043. /* readonly */
  14044. String category;
  14045. /* readonly */
  14046. IntVector2 childOffset;
  14047. /* readonly */
  14048. Array<UIElement> children;
  14049. IntRect clipBorder;
  14050. bool clipChildren;
  14051. /* writeonly */
  14052. Color color;
  14053. /* readonly */
  14054. bool colorGradient;
  14055. Array<Color> colors;
  14056. /* readonly */
  14057. IntRect combinedScreenRect;
  14058. XMLFile defaultStyle;
  14059. /* readonly */
  14060. float derivedOpacity;
  14061. /* readonly */
  14062. uint dragButtonCombo;
  14063. /* readonly */
  14064. int dragButtonCount;
  14065. uint dragDropMode;
  14066. bool editable;
  14067. bool elementEventSender;
  14068. bool enableAnchor;
  14069. bool enabled;
  14070. /* readonly */
  14071. bool enabledSelf;
  14072. /* readonly */
  14073. bool fixedHeight;
  14074. /* readonly */
  14075. bool fixedSize;
  14076. /* readonly */
  14077. bool fixedWidth;
  14078. bool focus;
  14079. FocusMode focusMode;
  14080. int height;
  14081. HorizontalAlignment horizontalAlignment;
  14082. /* readonly */
  14083. bool hovering;
  14084. int indent;
  14085. int indentSpacing;
  14086. /* readonly */
  14087. int indentWidth;
  14088. bool internal;
  14089. IntRect layoutBorder;
  14090. Vector2 layoutFlexScale;
  14091. LayoutMode layoutMode;
  14092. int layoutSpacing;
  14093. Vector2 maxAnchor;
  14094. int maxHeight;
  14095. IntVector2 maxOffset;
  14096. IntVector2 maxSize;
  14097. int maxWidth;
  14098. Vector2 minAnchor;
  14099. int minHeight;
  14100. IntVector2 minOffset;
  14101. IntVector2 minSize;
  14102. int minWidth;
  14103. String name;
  14104. /* readonly */
  14105. uint numAllChildren;
  14106. /* readonly */
  14107. uint numAttributes;
  14108. /* readonly */
  14109. uint numChildren;
  14110. ObjectAnimation objectAnimation;
  14111. float opacity;
  14112. UIElement parent;
  14113. Vector2 pivot;
  14114. IntVector2 position;
  14115. int priority;
  14116. /* readonly */
  14117. int refs;
  14118. /* readonly */
  14119. UIElement root;
  14120. /* readonly */
  14121. IntVector2 screenPosition;
  14122. bool selected;
  14123. IntVector2 size;
  14124. bool sortChildren;
  14125. String style;
  14126. /* readonly */
  14127. Array<String> tags;
  14128. bool temporary;
  14129. TraversalMode traversalMode;
  14130. /* readonly */
  14131. StringHash type;
  14132. /* readonly */
  14133. String typeName;
  14134. bool useDerivedOpacity;
  14135. /* readonly */
  14136. VariantMap vars;
  14137. VerticalAlignment verticalAlignment;
  14138. bool visible;
  14139. /* readonly */
  14140. bool visibleEffective;
  14141. /* readonly */
  14142. int weakRefs;
  14143. int width;
  14144. };
  14145. class UISelectable
  14146. {
  14147. public:
  14148. UISelectable();
  14149. UISelectable(const String&in);
  14150. // Methods:
  14151. void AddChild(UIElement);
  14152. void AddTag(const String&);
  14153. void AddTags(const String&, int8 = ';');
  14154. void ApplyAttributes();
  14155. void BringToFront();
  14156. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14157. void DisableLayoutUpdate();
  14158. IntVector2 ElementToScreen(const IntVector2&);
  14159. void EnableLayoutUpdate();
  14160. uint FindChild(UIElement) const;
  14161. Variant GetAttribute(const String&) const;
  14162. ValueAnimation GetAttributeAnimation(const String&) const;
  14163. float GetAttributeAnimationSpeed(const String&) const;
  14164. float GetAttributeAnimationTime(const String&) const;
  14165. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14166. Variant GetAttributeDefault(const String&) const;
  14167. UIElement GetChild(const String&, bool = false) const;
  14168. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14169. Array<UIElement> GetChildren(bool = false) const;
  14170. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14171. UIElement GetElementEventSender() const;
  14172. bool GetInterceptNetworkUpdate(const String&) const;
  14173. uint GetNumChildren(bool) const;
  14174. bool HasSubscribedToEvent(Object, const String&);
  14175. bool HasSubscribedToEvent(const String&);
  14176. bool HasTag(const String&) const;
  14177. void InsertChild(uint, UIElement);
  14178. bool IsChildOf(UIElement) const;
  14179. bool IsInside(IntVector2, bool);
  14180. bool IsInsideCombined(IntVector2, bool);
  14181. bool Load(File);
  14182. bool Load(VectorBuffer&);
  14183. UIElement LoadChildXML(XMLFile, XMLFile);
  14184. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14185. bool LoadJSON(const JSONValue&);
  14186. bool LoadXML(File);
  14187. bool LoadXML(VectorBuffer&);
  14188. bool LoadXML(XMLFile, XMLFile);
  14189. bool LoadXML(const XMLElement&, XMLFile);
  14190. bool LoadXML(const XMLElement&);
  14191. void MarkNetworkUpdate() const;
  14192. void Remove();
  14193. void RemoveAllChildren();
  14194. void RemoveAllTags();
  14195. void RemoveAttributeAnimation(const String&);
  14196. void RemoveChild(UIElement, uint = 0);
  14197. void RemoveChild(uint);
  14198. void RemoveInstanceDefault();
  14199. void RemoveObjectAnimation();
  14200. bool RemoveTag(const String&);
  14201. void ResetDeepEnabled();
  14202. void ResetToDefault();
  14203. bool Save(File) const;
  14204. bool Save(VectorBuffer&) const;
  14205. bool SaveJSON(JSONValue&) const;
  14206. bool SaveXML(File, const String& = "\t");
  14207. bool SaveXML(VectorBuffer&, const String& = "\t");
  14208. bool SaveXML(XMLElement&) const;
  14209. IntVector2 ScreenToElement(const IntVector2&);
  14210. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14211. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14212. void SetAnimationTime(float);
  14213. bool SetAttribute(const String&, const Variant&);
  14214. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14215. void SetAttributeAnimationSpeed(const String&, float);
  14216. void SetAttributeAnimationTime(const String&, float);
  14217. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14218. void SetDeepEnabled(bool);
  14219. void SetEnabledRecursive(bool);
  14220. void SetFixedHeight(int);
  14221. void SetFixedSize(int, int);
  14222. void SetFixedWidth(int);
  14223. void SetInterceptNetworkUpdate(const String&, bool);
  14224. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14225. void SetMaxAnchor(float, float);
  14226. void SetMaxSize(int, int);
  14227. void SetMinAnchor(float, float);
  14228. void SetMinSize(int, int);
  14229. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14230. void SetPivot(float, float);
  14231. void SetPosition(int, int);
  14232. void SetSize(int, int);
  14233. bool SetStyle(const String&, XMLFile = null);
  14234. bool SetStyle(const XMLElement&);
  14235. bool SetStyleAuto(XMLFile = null);
  14236. void UpdateLayout();
  14237. const Variant& GetVar(const StringHash&);
  14238. // Properties:
  14239. bool animationEnabled;
  14240. /* readonly */
  14241. Array<Variant> attributeDefaults;
  14242. /* readonly */
  14243. Array<AttributeInfo> attributeInfos;
  14244. Array<Variant> attributes;
  14245. bool bringToBack;
  14246. bool bringToFront;
  14247. /* readonly */
  14248. String category;
  14249. /* readonly */
  14250. IntVector2 childOffset;
  14251. /* readonly */
  14252. Array<UIElement> children;
  14253. IntRect clipBorder;
  14254. bool clipChildren;
  14255. /* writeonly */
  14256. Color color;
  14257. /* readonly */
  14258. bool colorGradient;
  14259. Array<Color> colors;
  14260. /* readonly */
  14261. IntRect combinedScreenRect;
  14262. XMLFile defaultStyle;
  14263. /* readonly */
  14264. float derivedOpacity;
  14265. /* readonly */
  14266. uint dragButtonCombo;
  14267. /* readonly */
  14268. int dragButtonCount;
  14269. uint dragDropMode;
  14270. bool editable;
  14271. bool elementEventSender;
  14272. bool enableAnchor;
  14273. bool enabled;
  14274. /* readonly */
  14275. bool enabledSelf;
  14276. /* readonly */
  14277. bool fixedHeight;
  14278. /* readonly */
  14279. bool fixedSize;
  14280. /* readonly */
  14281. bool fixedWidth;
  14282. bool focus;
  14283. FocusMode focusMode;
  14284. int height;
  14285. HorizontalAlignment horizontalAlignment;
  14286. Color hoverColor;
  14287. /* readonly */
  14288. bool hovering;
  14289. int indent;
  14290. int indentSpacing;
  14291. /* readonly */
  14292. int indentWidth;
  14293. bool internal;
  14294. IntRect layoutBorder;
  14295. Vector2 layoutFlexScale;
  14296. LayoutMode layoutMode;
  14297. int layoutSpacing;
  14298. Vector2 maxAnchor;
  14299. int maxHeight;
  14300. IntVector2 maxOffset;
  14301. IntVector2 maxSize;
  14302. int maxWidth;
  14303. Vector2 minAnchor;
  14304. int minHeight;
  14305. IntVector2 minOffset;
  14306. IntVector2 minSize;
  14307. int minWidth;
  14308. String name;
  14309. /* readonly */
  14310. uint numAllChildren;
  14311. /* readonly */
  14312. uint numAttributes;
  14313. /* readonly */
  14314. uint numChildren;
  14315. ObjectAnimation objectAnimation;
  14316. float opacity;
  14317. UIElement parent;
  14318. Vector2 pivot;
  14319. IntVector2 position;
  14320. int priority;
  14321. /* readonly */
  14322. int refs;
  14323. /* readonly */
  14324. UIElement root;
  14325. /* readonly */
  14326. IntVector2 screenPosition;
  14327. bool selected;
  14328. Color selectionColor;
  14329. IntVector2 size;
  14330. bool sortChildren;
  14331. String style;
  14332. /* readonly */
  14333. Array<String> tags;
  14334. bool temporary;
  14335. TraversalMode traversalMode;
  14336. /* readonly */
  14337. StringHash type;
  14338. /* readonly */
  14339. String typeName;
  14340. bool useDerivedOpacity;
  14341. /* readonly */
  14342. VariantMap vars;
  14343. VerticalAlignment verticalAlignment;
  14344. bool visible;
  14345. /* readonly */
  14346. bool visibleEffective;
  14347. /* readonly */
  14348. int weakRefs;
  14349. int width;
  14350. };
  14351. class ValueAnimation
  14352. {
  14353. public:
  14354. ValueAnimation();
  14355. ValueAnimation(const String&in);
  14356. // Methods:
  14357. bool HasSubscribedToEvent(Object, const String&);
  14358. bool HasSubscribedToEvent(const String&);
  14359. bool Load(File);
  14360. bool Load(VectorBuffer&);
  14361. bool Load(const String&);
  14362. bool Save(File) const;
  14363. bool Save(VectorBuffer&) const;
  14364. bool Save(const String&) const;
  14365. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14366. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  14367. void SetKeyFrame(float, const Variant&);
  14368. // Properties:
  14369. /* readonly */
  14370. String category;
  14371. InterpMethod interpolationMethod;
  14372. /* readonly */
  14373. uint memoryUse;
  14374. String name;
  14375. /* readonly */
  14376. int refs;
  14377. float splineTension;
  14378. /* readonly */
  14379. StringHash type;
  14380. /* readonly */
  14381. String typeName;
  14382. /* readonly */
  14383. uint useTimer;
  14384. VariantType valueType;
  14385. /* readonly */
  14386. int weakRefs;
  14387. };
  14388. class Variant
  14389. {
  14390. public:
  14391. ~Variant();
  14392. Variant();
  14393. Variant(const Variant&in);
  14394. Variant(int);
  14395. Variant(uint);
  14396. Variant(int64);
  14397. Variant(uint64);
  14398. Variant(const StringHash&in);
  14399. Variant(bool);
  14400. Variant(float);
  14401. Variant(double);
  14402. Variant(const Vector2&in);
  14403. Variant(const Vector3&in);
  14404. Variant(const Vector4&in);
  14405. Variant(const Quaternion&in);
  14406. Variant(const Color&in);
  14407. Variant(const String&in);
  14408. Variant(const ResourceRef&in);
  14409. Variant(const ResourceRefList&in);
  14410. Variant(const Variant[]@);
  14411. Variant(const String[]@);
  14412. Variant(const VariantMap&in);
  14413. Variant(const Rect&in);
  14414. Variant(const IntRect&in);
  14415. Variant(const IntVector2&in);
  14416. Variant(const IntVector3&in);
  14417. Variant(RefCounted@);
  14418. Variant(ScriptObject@);
  14419. Variant(const Matrix3&in);
  14420. Variant(const Matrix3x4&in);
  14421. Variant(const Matrix4&in);
  14422. Variant(const String&in, const String&in);
  14423. Variant(VariantType, const String&in);
  14424. Variant(const VectorBuffer&in);
  14425. // Methods:
  14426. void Clear();
  14427. const Color& GetColor() const;
  14428. void FromString(VariantType, const String&);
  14429. void FromString(const String&, const String&);
  14430. bool GetBool() const;
  14431. VectorBuffer GetBuffer() const;
  14432. double GetDouble() const;
  14433. float GetFloat() const;
  14434. int GetInt() const;
  14435. int GetInt64() const;
  14436. RefCounted GetPtr() const;
  14437. ScriptObject GetScriptObject() const;
  14438. StringHash GetStringHash() const;
  14439. Array<String> GetStringVector() const;
  14440. uint GetUInt() const;
  14441. uint64 GetUInt64() const;
  14442. Array<Variant> GetVariantVector() const;
  14443. const IntRect& GetIntRect() const;
  14444. const IntVector2& GetIntVector2() const;
  14445. const IntVector3& GetIntVector3() const;
  14446. const Matrix3& GetMatrix3() const;
  14447. const Matrix3x4& GetMatrix3x4() const;
  14448. const Matrix4& GetMatrix4() const;
  14449. const Quaternion& GetQuaternion() const;
  14450. const Rect& GetRect() const;
  14451. const ResourceRef& GetResourceRef() const;
  14452. const ResourceRefList& GetResourceRefList() const;
  14453. const String& GetString() const;
  14454. String ToString() const;
  14455. const VariantMap& GetVariantMap() const;
  14456. const Vector2& GetVector2() const;
  14457. const Vector3& GetVector3() const;
  14458. const Vector4& GetVector4() const;
  14459. // Properties:
  14460. /* readonly */
  14461. bool empty;
  14462. /* readonly */
  14463. VariantType type;
  14464. /* readonly */
  14465. String typeName;
  14466. /* readonly */
  14467. bool zero;
  14468. };
  14469. class VariantMap
  14470. {
  14471. public:
  14472. ~VariantMap();
  14473. VariantMap();
  14474. VariantMap(const VariantMap&in);
  14475. // Methods:
  14476. void Clear();
  14477. bool Contains(StringHash) const;
  14478. bool Contains(const String&) const;
  14479. bool Erase(StringHash);
  14480. bool Erase(const String&);
  14481. // Properties:
  14482. /* readonly */
  14483. Array<StringHash> keys;
  14484. /* readonly */
  14485. uint length;
  14486. /* readonly */
  14487. Array<Variant> values;
  14488. };
  14489. class Vector2
  14490. {
  14491. public:
  14492. Vector2();
  14493. Vector2(const Vector2&in);
  14494. Vector2(const IntVector2&in);
  14495. Vector2(float, float);
  14496. Vector2(float[]&inout);
  14497. // Methods:
  14498. Vector2 Abs() const;
  14499. float AbsDotProduct(const Vector2&) const;
  14500. float Angle(const Vector2&) const;
  14501. float DotProduct(const Vector2&) const;
  14502. bool Equals(const Vector2&) const;
  14503. bool IsNaN() const;
  14504. Vector2 Lerp(const Vector2&, float) const;
  14505. void Normalize();
  14506. Vector2 Normalized() const;
  14507. float ProjectOntoAxis(const Vector2&) const;
  14508. String ToString() const;
  14509. // Properties:
  14510. /* readonly */
  14511. Array<float> data;
  14512. /* readonly */
  14513. float length;
  14514. /* readonly */
  14515. float lengthSquared;
  14516. float x;
  14517. float y;
  14518. // Constants:
  14519. static const Vector2 DOWN;
  14520. static const Vector2 LEFT;
  14521. static const Vector2 ONE;
  14522. static const Vector2 RIGHT;
  14523. static const Vector2 UP;
  14524. static const Vector2 ZERO;
  14525. };
  14526. class Vector3
  14527. {
  14528. public:
  14529. Vector3();
  14530. Vector3(const Vector3&in);
  14531. Vector3(const Vector2&in, float);
  14532. Vector3(const Vector2&in);
  14533. Vector3(const IntVector3&in);
  14534. Vector3(float, float, float);
  14535. Vector3(float, float);
  14536. Vector3(float[]&inout);
  14537. // Methods:
  14538. Vector3 Abs() const;
  14539. float AbsDotProduct(const Vector3&) const;
  14540. float Angle(const Vector3&) const;
  14541. Vector3 CrossProduct(const Vector3&) const;
  14542. float DistanceToPlane(const Vector3&, const Vector3&) const;
  14543. float DistanceToPoint(const Vector3&) const;
  14544. float DotProduct(const Vector3&) const;
  14545. bool Equals(const Vector3&) const;
  14546. bool IsNaN() const;
  14547. Vector3 Lerp(const Vector3&, float) const;
  14548. void Normalize();
  14549. Vector3 Normalized() const;
  14550. Vector3 Orthogonalize(const Vector3&) const;
  14551. float ProjectOntoAxis(const Vector3&) const;
  14552. Vector3 ProjectOntoLine(const Vector3&, const Vector3&, bool = false) const;
  14553. Vector3 ProjectOntoPlane(const Vector3&, const Vector3&) const;
  14554. String ToString() const;
  14555. // Properties:
  14556. /* readonly */
  14557. Array<float> data;
  14558. /* readonly */
  14559. float length;
  14560. /* readonly */
  14561. float lengthSquared;
  14562. float x;
  14563. float y;
  14564. float z;
  14565. // Constants:
  14566. static const Vector3 BACK;
  14567. static const Vector3 DOWN;
  14568. static const Vector3 FORWARD;
  14569. static const Vector3 LEFT;
  14570. static const Vector3 ONE;
  14571. static const Vector3 RIGHT;
  14572. static const Vector3 UP;
  14573. static const Vector3 ZERO;
  14574. };
  14575. class Vector4
  14576. {
  14577. public:
  14578. Vector4();
  14579. Vector4(const Vector4&in);
  14580. Vector4(float, float, float, float);
  14581. Vector4(const Vector3&in, float);
  14582. Vector4(float[]&inout);
  14583. // Methods:
  14584. Vector4 Abs() const;
  14585. float AbsDotProduct(const Vector4&) const;
  14586. float DotProduct(const Vector4&) const;
  14587. bool Equals(const Vector4&) const;
  14588. bool IsNaN() const;
  14589. Vector4 Lerp(const Vector4&, float) const;
  14590. float ProjectOntoAxis(const Vector3&) const;
  14591. String ToString() const;
  14592. // Properties:
  14593. /* readonly */
  14594. Array<float> data;
  14595. float w;
  14596. float x;
  14597. float y;
  14598. float z;
  14599. };
  14600. class VectorBuffer
  14601. {
  14602. public:
  14603. ~VectorBuffer();
  14604. VectorBuffer();
  14605. VectorBuffer(const VectorBuffer&in);
  14606. VectorBuffer(Deserializer@, uint);
  14607. // Methods:
  14608. void Clear();
  14609. Array<uint8> Read(uint);
  14610. bool ReadBool();
  14611. BoundingBox ReadBoundingBox();
  14612. int8 ReadByte();
  14613. Color ReadColor();
  14614. double ReadDouble();
  14615. String ReadFileID();
  14616. float ReadFloat();
  14617. int ReadInt();
  14618. int64 ReadInt64();
  14619. IntRect ReadIntRect();
  14620. IntVector2 ReadIntVector2();
  14621. String ReadLine();
  14622. Matrix3 ReadMatrix3();
  14623. Matrix3x4 ReadMatrix3x4();
  14624. Matrix4 ReadMatrix4();
  14625. uint ReadNetID();
  14626. Quaternion ReadPackedQuaternion();
  14627. Vector3 ReadPackedVector3(float);
  14628. Quaternion ReadQuaternion();
  14629. int16 ReadShort();
  14630. String ReadString();
  14631. StringHash ReadStringHash();
  14632. uint8 ReadUByte();
  14633. uint ReadUInt();
  14634. uint64 ReadUInt64();
  14635. uint16 ReadUShort();
  14636. uint ReadVLE();
  14637. Variant ReadVariant();
  14638. VariantMap ReadVariantMap();
  14639. Vector2 ReadVector2();
  14640. Vector3 ReadVector3();
  14641. Vector4 ReadVector4();
  14642. VectorBuffer ReadVectorBuffer(uint);
  14643. void Resize(uint);
  14644. uint Seek(uint);
  14645. uint SeekRelative(int);
  14646. void SetData(Deserializer, uint);
  14647. uint Tell() const;
  14648. uint Write(Array<uint8>);
  14649. bool WriteBool(bool);
  14650. bool WriteBoundingBox(const BoundingBox&);
  14651. bool WriteByte(int8);
  14652. bool WriteColor(const Color&);
  14653. bool WriteDouble(double);
  14654. bool WriteFileID(const String&);
  14655. bool WriteFloat(float);
  14656. bool WriteInt(int);
  14657. bool WriteInt64(int64);
  14658. bool WriteIntRect(const IntRect&);
  14659. bool WriteIntVector2(const IntVector2&);
  14660. bool WriteLine(const String&);
  14661. bool WriteMatrix3(const Matrix3&);
  14662. bool WriteMatrix3x4(const Matrix3x4&);
  14663. bool WriteMatrix4(const Matrix4&);
  14664. bool WriteNetID(uint);
  14665. bool WritePackedQuaternion(const Quaternion&);
  14666. bool WritePackedVector3(const Vector3&, float);
  14667. bool WriteQuaternion(const Quaternion&);
  14668. bool WriteShort(int16);
  14669. bool WriteString(const String&);
  14670. bool WriteStringHash(const StringHash&);
  14671. bool WriteUByte(uint8);
  14672. bool WriteUInt(uint);
  14673. bool WriteUInt64(uint64);
  14674. bool WriteUShort(uint16);
  14675. bool WriteVLE(uint);
  14676. bool WriteVariant(const Variant&);
  14677. bool WriteVariantMap(const VariantMap&);
  14678. bool WriteVector2(const Vector2&);
  14679. bool WriteVector3(const Vector3&);
  14680. bool WriteVector4(const Vector4&);
  14681. bool WriteVectorBuffer(const VectorBuffer&);
  14682. // Properties:
  14683. /* readonly */
  14684. uint checksum;
  14685. /* readonly */
  14686. bool eof;
  14687. /* readonly */
  14688. String name;
  14689. /* readonly */
  14690. uint position;
  14691. /* readonly */
  14692. uint size;
  14693. };
  14694. class VertexBuffer
  14695. {
  14696. public:
  14697. VertexBuffer();
  14698. // Methods:
  14699. VectorBuffer GetData() const;
  14700. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14701. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14702. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14703. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14704. bool HasSubscribedToEvent(Object, const String&);
  14705. bool HasSubscribedToEvent(const String&);
  14706. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14707. bool SetData(VectorBuffer&);
  14708. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14709. void SetSize(uint, Array<VertexElement>, bool = false);
  14710. void SetSize(uint, uint, bool = false);
  14711. // Properties:
  14712. /* readonly */
  14713. String category;
  14714. /* readonly */
  14715. bool dynamic;
  14716. /* readonly */
  14717. uint elementMask;
  14718. /* readonly */
  14719. Array<VertexElement> elements;
  14720. /* readonly */
  14721. int refs;
  14722. bool shadowed;
  14723. /* readonly */
  14724. StringHash type;
  14725. /* readonly */
  14726. String typeName;
  14727. /* readonly */
  14728. uint vertexCount;
  14729. /* readonly */
  14730. uint vertexSize;
  14731. /* readonly */
  14732. int weakRefs;
  14733. };
  14734. class VertexElement
  14735. {
  14736. public:
  14737. ~VertexElement();
  14738. VertexElement();
  14739. VertexElement(const VertexElement&in);
  14740. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14741. // Properties:
  14742. uint8 index;
  14743. uint offset;
  14744. bool perInstance;
  14745. VertexElementSemantic semantic;
  14746. VertexElementType type;
  14747. };
  14748. class View3D
  14749. {
  14750. public:
  14751. View3D();
  14752. View3D(const String&in);
  14753. // Methods:
  14754. void AddChild(UIElement);
  14755. void AddTag(const String&);
  14756. void AddTags(const String&, int8 = ';');
  14757. void ApplyAttributes();
  14758. void BringToFront();
  14759. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14760. void DisableLayoutUpdate();
  14761. IntVector2 ElementToScreen(const IntVector2&);
  14762. void EnableLayoutUpdate();
  14763. uint FindChild(UIElement) const;
  14764. Variant GetAttribute(const String&) const;
  14765. ValueAnimation GetAttributeAnimation(const String&) const;
  14766. float GetAttributeAnimationSpeed(const String&) const;
  14767. float GetAttributeAnimationTime(const String&) const;
  14768. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14769. Variant GetAttributeDefault(const String&) const;
  14770. UIElement GetChild(const String&, bool = false) const;
  14771. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14772. Array<UIElement> GetChildren(bool = false) const;
  14773. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14774. UIElement GetElementEventSender() const;
  14775. bool GetInterceptNetworkUpdate(const String&) const;
  14776. uint GetNumChildren(bool) const;
  14777. bool HasSubscribedToEvent(Object, const String&);
  14778. bool HasSubscribedToEvent(const String&);
  14779. bool HasTag(const String&) const;
  14780. void InsertChild(uint, UIElement);
  14781. bool IsChildOf(UIElement) const;
  14782. bool IsInside(IntVector2, bool);
  14783. bool IsInsideCombined(IntVector2, bool);
  14784. bool Load(File);
  14785. bool Load(VectorBuffer&);
  14786. UIElement LoadChildXML(XMLFile, XMLFile);
  14787. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14788. bool LoadJSON(const JSONValue&);
  14789. bool LoadXML(File);
  14790. bool LoadXML(VectorBuffer&);
  14791. bool LoadXML(XMLFile, XMLFile);
  14792. bool LoadXML(const XMLElement&, XMLFile);
  14793. bool LoadXML(const XMLElement&);
  14794. void MarkNetworkUpdate() const;
  14795. void QueueUpdate();
  14796. void Remove();
  14797. void RemoveAllChildren();
  14798. void RemoveAllTags();
  14799. void RemoveAttributeAnimation(const String&);
  14800. void RemoveChild(UIElement, uint = 0);
  14801. void RemoveChild(uint);
  14802. void RemoveInstanceDefault();
  14803. void RemoveObjectAnimation();
  14804. bool RemoveTag(const String&);
  14805. void ResetDeepEnabled();
  14806. void ResetToDefault();
  14807. bool Save(File) const;
  14808. bool Save(VectorBuffer&) const;
  14809. bool SaveJSON(JSONValue&) const;
  14810. bool SaveXML(File, const String& = "\t");
  14811. bool SaveXML(VectorBuffer&, const String& = "\t");
  14812. bool SaveXML(XMLElement&) const;
  14813. IntVector2 ScreenToElement(const IntVector2&);
  14814. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14815. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14816. void SetAnimationTime(float);
  14817. bool SetAttribute(const String&, const Variant&);
  14818. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14819. void SetAttributeAnimationSpeed(const String&, float);
  14820. void SetAttributeAnimationTime(const String&, float);
  14821. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14822. void SetDeepEnabled(bool);
  14823. void SetDisabledOffset(int, int);
  14824. void SetEnabledRecursive(bool);
  14825. void SetFixedHeight(int);
  14826. void SetFixedSize(int, int);
  14827. void SetFixedWidth(int);
  14828. void SetFullImageRect();
  14829. void SetHoverOffset(int, int);
  14830. void SetInterceptNetworkUpdate(const String&, bool);
  14831. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14832. void SetMaxAnchor(float, float);
  14833. void SetMaxSize(int, int);
  14834. void SetMinAnchor(float, float);
  14835. void SetMinSize(int, int);
  14836. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14837. void SetPivot(float, float);
  14838. void SetPosition(int, int);
  14839. void SetSize(int, int);
  14840. bool SetStyle(const String&, XMLFile = null);
  14841. bool SetStyle(const XMLElement&);
  14842. bool SetStyleAuto(XMLFile = null);
  14843. void SetView(Scene, Camera, bool = true);
  14844. void UpdateLayout();
  14845. const Variant& GetVar(const StringHash&);
  14846. // Properties:
  14847. bool animationEnabled;
  14848. /* readonly */
  14849. Array<Variant> attributeDefaults;
  14850. /* readonly */
  14851. Array<AttributeInfo> attributeInfos;
  14852. Array<Variant> attributes;
  14853. bool autoUpdate;
  14854. BlendMode blendMode;
  14855. IntRect border;
  14856. bool bringToBack;
  14857. bool bringToFront;
  14858. /* readonly */
  14859. Node cameraNode;
  14860. /* readonly */
  14861. String category;
  14862. /* readonly */
  14863. IntVector2 childOffset;
  14864. /* readonly */
  14865. Array<UIElement> children;
  14866. IntRect clipBorder;
  14867. bool clipChildren;
  14868. /* writeonly */
  14869. Color color;
  14870. /* readonly */
  14871. bool colorGradient;
  14872. Array<Color> colors;
  14873. /* readonly */
  14874. IntRect combinedScreenRect;
  14875. XMLFile defaultStyle;
  14876. /* readonly */
  14877. Texture2D depthTexture;
  14878. /* readonly */
  14879. float derivedOpacity;
  14880. IntVector2 disabledOffset;
  14881. /* readonly */
  14882. uint dragButtonCombo;
  14883. /* readonly */
  14884. int dragButtonCount;
  14885. uint dragDropMode;
  14886. bool editable;
  14887. bool elementEventSender;
  14888. bool enableAnchor;
  14889. bool enabled;
  14890. /* readonly */
  14891. bool enabledSelf;
  14892. /* readonly */
  14893. bool fixedHeight;
  14894. bool fixedHeightResizing;
  14895. /* readonly */
  14896. bool fixedSize;
  14897. /* readonly */
  14898. bool fixedWidth;
  14899. bool fixedWidthResizing;
  14900. bool focus;
  14901. FocusMode focusMode;
  14902. uint format;
  14903. int height;
  14904. HorizontalAlignment horizontalAlignment;
  14905. IntVector2 hoverOffset;
  14906. /* readonly */
  14907. bool hovering;
  14908. IntRect imageBorder;
  14909. IntRect imageRect;
  14910. int indent;
  14911. int indentSpacing;
  14912. /* readonly */
  14913. int indentWidth;
  14914. bool internal;
  14915. IntRect layoutBorder;
  14916. Vector2 layoutFlexScale;
  14917. LayoutMode layoutMode;
  14918. int layoutSpacing;
  14919. Material material;
  14920. Vector2 maxAnchor;
  14921. int maxHeight;
  14922. IntVector2 maxOffset;
  14923. IntVector2 maxSize;
  14924. int maxWidth;
  14925. Vector2 minAnchor;
  14926. int minHeight;
  14927. IntVector2 minOffset;
  14928. IntVector2 minSize;
  14929. int minWidth;
  14930. bool modal;
  14931. bool modalAutoDismiss;
  14932. Color modalFrameColor;
  14933. IntVector2 modalFrameSize;
  14934. Color modalShadeColor;
  14935. bool movable;
  14936. String name;
  14937. /* readonly */
  14938. uint numAllChildren;
  14939. /* readonly */
  14940. uint numAttributes;
  14941. /* readonly */
  14942. uint numChildren;
  14943. ObjectAnimation objectAnimation;
  14944. float opacity;
  14945. UIElement parent;
  14946. Vector2 pivot;
  14947. IntVector2 position;
  14948. int priority;
  14949. /* readonly */
  14950. int refs;
  14951. /* readonly */
  14952. Texture2D renderTexture;
  14953. bool resizable;
  14954. IntRect resizeBorder;
  14955. /* readonly */
  14956. UIElement root;
  14957. /* readonly */
  14958. Scene scene;
  14959. /* readonly */
  14960. IntVector2 screenPosition;
  14961. bool selected;
  14962. IntVector2 size;
  14963. bool sortChildren;
  14964. String style;
  14965. /* readonly */
  14966. Array<String> tags;
  14967. bool temporary;
  14968. Texture texture;
  14969. bool tiled;
  14970. TraversalMode traversalMode;
  14971. /* readonly */
  14972. StringHash type;
  14973. /* readonly */
  14974. String typeName;
  14975. bool useDerivedOpacity;
  14976. /* readonly */
  14977. VariantMap vars;
  14978. VerticalAlignment verticalAlignment;
  14979. /* readonly */
  14980. Viewport viewport;
  14981. bool visible;
  14982. /* readonly */
  14983. bool visibleEffective;
  14984. /* readonly */
  14985. int weakRefs;
  14986. int width;
  14987. };
  14988. class Viewport
  14989. {
  14990. public:
  14991. Viewport();
  14992. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14993. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14994. // Methods:
  14995. Ray GetScreenRay(int, int) const;
  14996. bool HasSubscribedToEvent(Object, const String&);
  14997. bool HasSubscribedToEvent(const String&);
  14998. Vector3 ScreenToWorldPoint(int, int, float) const;
  14999. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15000. bool SetRenderPath(XMLFile);
  15001. IntVector2 WorldToScreenPoint(const Vector3&) const;
  15002. // Properties:
  15003. Camera camera;
  15004. /* readonly */
  15005. String category;
  15006. Camera cullCamera;
  15007. bool drawDebug;
  15008. IntRect rect;
  15009. /* readonly */
  15010. int refs;
  15011. RenderPath renderPath;
  15012. Scene scene;
  15013. /* readonly */
  15014. StringHash type;
  15015. /* readonly */
  15016. String typeName;
  15017. /* readonly */
  15018. int weakRefs;
  15019. };
  15020. class WeakHandle
  15021. {
  15022. public:
  15023. ~WeakHandle();
  15024. WeakHandle();
  15025. WeakHandle(const WeakHandle&in);
  15026. WeakHandle(RefCounted@);
  15027. // Methods:
  15028. RefCounted Get() const;
  15029. // Properties:
  15030. /* readonly */
  15031. bool expired;
  15032. /* readonly */
  15033. int refs;
  15034. /* readonly */
  15035. int weakRefs;
  15036. };
  15037. class Window
  15038. {
  15039. public:
  15040. Window();
  15041. Window(const String&in);
  15042. // Methods:
  15043. void AddChild(UIElement);
  15044. void AddTag(const String&);
  15045. void AddTags(const String&, int8 = ';');
  15046. void ApplyAttributes();
  15047. void BringToFront();
  15048. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  15049. void DisableLayoutUpdate();
  15050. IntVector2 ElementToScreen(const IntVector2&);
  15051. void EnableLayoutUpdate();
  15052. uint FindChild(UIElement) const;
  15053. Variant GetAttribute(const String&) const;
  15054. ValueAnimation GetAttributeAnimation(const String&) const;
  15055. float GetAttributeAnimationSpeed(const String&) const;
  15056. float GetAttributeAnimationTime(const String&) const;
  15057. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15058. Variant GetAttributeDefault(const String&) const;
  15059. UIElement GetChild(const String&, bool = false) const;
  15060. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  15061. Array<UIElement> GetChildren(bool = false) const;
  15062. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  15063. UIElement GetElementEventSender() const;
  15064. bool GetInterceptNetworkUpdate(const String&) const;
  15065. uint GetNumChildren(bool) const;
  15066. bool HasSubscribedToEvent(Object, const String&);
  15067. bool HasSubscribedToEvent(const String&);
  15068. bool HasTag(const String&) const;
  15069. void InsertChild(uint, UIElement);
  15070. bool IsChildOf(UIElement) const;
  15071. bool IsInside(IntVector2, bool);
  15072. bool IsInsideCombined(IntVector2, bool);
  15073. bool Load(File);
  15074. bool Load(VectorBuffer&);
  15075. UIElement LoadChildXML(XMLFile, XMLFile);
  15076. UIElement LoadChildXML(const XMLElement&, XMLFile);
  15077. bool LoadJSON(const JSONValue&);
  15078. bool LoadXML(File);
  15079. bool LoadXML(VectorBuffer&);
  15080. bool LoadXML(XMLFile, XMLFile);
  15081. bool LoadXML(const XMLElement&, XMLFile);
  15082. bool LoadXML(const XMLElement&);
  15083. void MarkNetworkUpdate() const;
  15084. void Remove();
  15085. void RemoveAllChildren();
  15086. void RemoveAllTags();
  15087. void RemoveAttributeAnimation(const String&);
  15088. void RemoveChild(UIElement, uint = 0);
  15089. void RemoveChild(uint);
  15090. void RemoveInstanceDefault();
  15091. void RemoveObjectAnimation();
  15092. bool RemoveTag(const String&);
  15093. void ResetDeepEnabled();
  15094. void ResetToDefault();
  15095. bool Save(File) const;
  15096. bool Save(VectorBuffer&) const;
  15097. bool SaveJSON(JSONValue&) const;
  15098. bool SaveXML(File, const String& = "\t");
  15099. bool SaveXML(VectorBuffer&, const String& = "\t");
  15100. bool SaveXML(XMLElement&) const;
  15101. IntVector2 ScreenToElement(const IntVector2&);
  15102. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15103. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  15104. void SetAnimationTime(float);
  15105. bool SetAttribute(const String&, const Variant&);
  15106. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15107. void SetAttributeAnimationSpeed(const String&, float);
  15108. void SetAttributeAnimationTime(const String&, float);
  15109. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15110. void SetDeepEnabled(bool);
  15111. void SetDisabledOffset(int, int);
  15112. void SetEnabledRecursive(bool);
  15113. void SetFixedHeight(int);
  15114. void SetFixedSize(int, int);
  15115. void SetFixedWidth(int);
  15116. void SetFullImageRect();
  15117. void SetHoverOffset(int, int);
  15118. void SetInterceptNetworkUpdate(const String&, bool);
  15119. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  15120. void SetMaxAnchor(float, float);
  15121. void SetMaxSize(int, int);
  15122. void SetMinAnchor(float, float);
  15123. void SetMinSize(int, int);
  15124. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  15125. void SetPivot(float, float);
  15126. void SetPosition(int, int);
  15127. void SetSize(int, int);
  15128. bool SetStyle(const String&, XMLFile = null);
  15129. bool SetStyle(const XMLElement&);
  15130. bool SetStyleAuto(XMLFile = null);
  15131. void UpdateLayout();
  15132. const Variant& GetVar(const StringHash&);
  15133. // Properties:
  15134. bool animationEnabled;
  15135. /* readonly */
  15136. Array<Variant> attributeDefaults;
  15137. /* readonly */
  15138. Array<AttributeInfo> attributeInfos;
  15139. Array<Variant> attributes;
  15140. BlendMode blendMode;
  15141. IntRect border;
  15142. bool bringToBack;
  15143. bool bringToFront;
  15144. /* readonly */
  15145. String category;
  15146. /* readonly */
  15147. IntVector2 childOffset;
  15148. /* readonly */
  15149. Array<UIElement> children;
  15150. IntRect clipBorder;
  15151. bool clipChildren;
  15152. /* writeonly */
  15153. Color color;
  15154. /* readonly */
  15155. bool colorGradient;
  15156. Array<Color> colors;
  15157. /* readonly */
  15158. IntRect combinedScreenRect;
  15159. XMLFile defaultStyle;
  15160. /* readonly */
  15161. float derivedOpacity;
  15162. IntVector2 disabledOffset;
  15163. /* readonly */
  15164. uint dragButtonCombo;
  15165. /* readonly */
  15166. int dragButtonCount;
  15167. uint dragDropMode;
  15168. bool editable;
  15169. bool elementEventSender;
  15170. bool enableAnchor;
  15171. bool enabled;
  15172. /* readonly */
  15173. bool enabledSelf;
  15174. /* readonly */
  15175. bool fixedHeight;
  15176. bool fixedHeightResizing;
  15177. /* readonly */
  15178. bool fixedSize;
  15179. /* readonly */
  15180. bool fixedWidth;
  15181. bool fixedWidthResizing;
  15182. bool focus;
  15183. FocusMode focusMode;
  15184. int height;
  15185. HorizontalAlignment horizontalAlignment;
  15186. IntVector2 hoverOffset;
  15187. /* readonly */
  15188. bool hovering;
  15189. IntRect imageBorder;
  15190. IntRect imageRect;
  15191. int indent;
  15192. int indentSpacing;
  15193. /* readonly */
  15194. int indentWidth;
  15195. bool internal;
  15196. IntRect layoutBorder;
  15197. Vector2 layoutFlexScale;
  15198. LayoutMode layoutMode;
  15199. int layoutSpacing;
  15200. Material material;
  15201. Vector2 maxAnchor;
  15202. int maxHeight;
  15203. IntVector2 maxOffset;
  15204. IntVector2 maxSize;
  15205. int maxWidth;
  15206. Vector2 minAnchor;
  15207. int minHeight;
  15208. IntVector2 minOffset;
  15209. IntVector2 minSize;
  15210. int minWidth;
  15211. bool modal;
  15212. bool modalAutoDismiss;
  15213. Color modalFrameColor;
  15214. IntVector2 modalFrameSize;
  15215. Color modalShadeColor;
  15216. bool movable;
  15217. String name;
  15218. /* readonly */
  15219. uint numAllChildren;
  15220. /* readonly */
  15221. uint numAttributes;
  15222. /* readonly */
  15223. uint numChildren;
  15224. ObjectAnimation objectAnimation;
  15225. float opacity;
  15226. UIElement parent;
  15227. Vector2 pivot;
  15228. IntVector2 position;
  15229. int priority;
  15230. /* readonly */
  15231. int refs;
  15232. bool resizable;
  15233. IntRect resizeBorder;
  15234. /* readonly */
  15235. UIElement root;
  15236. /* readonly */
  15237. IntVector2 screenPosition;
  15238. bool selected;
  15239. IntVector2 size;
  15240. bool sortChildren;
  15241. String style;
  15242. /* readonly */
  15243. Array<String> tags;
  15244. bool temporary;
  15245. Texture texture;
  15246. bool tiled;
  15247. TraversalMode traversalMode;
  15248. /* readonly */
  15249. StringHash type;
  15250. /* readonly */
  15251. String typeName;
  15252. bool useDerivedOpacity;
  15253. /* readonly */
  15254. VariantMap vars;
  15255. VerticalAlignment verticalAlignment;
  15256. bool visible;
  15257. /* readonly */
  15258. bool visibleEffective;
  15259. /* readonly */
  15260. int weakRefs;
  15261. int width;
  15262. };
  15263. class XMLElement
  15264. {
  15265. public:
  15266. ~XMLElement();
  15267. XMLElement();
  15268. XMLElement(const XMLElement&in);
  15269. // Methods:
  15270. bool AppendChild(XMLElement, bool);
  15271. XMLElement CreateChild(const String&);
  15272. String GetAttribute(const String& = String ( )) const;
  15273. String GetAttributeLower(const String&) const;
  15274. Array<String> GetAttributeNames() const;
  15275. String GetAttributeUpper(const String&) const;
  15276. bool GetBool(const String&) const;
  15277. BoundingBox GetBoundingBox() const;
  15278. XMLElement GetChild(const String& = String ( )) const;
  15279. Color GetColor(const String&) const;
  15280. double GetDouble(const String&) const;
  15281. float GetFloat(const String&) const;
  15282. int GetInt(const String&) const;
  15283. int64 GetInt64(const String&) const;
  15284. IntRect GetIntRect(const String&) const;
  15285. IntVector2 GetIntVector2(const String&) const;
  15286. IntVector3 GetIntVector3(const String&) const;
  15287. Matrix3 GetMatrix3(const String&) const;
  15288. Matrix3x4 GetMatrix3x4(const String&) const;
  15289. Matrix4 GetMatrix4(const String&) const;
  15290. XMLElement GetNext(const String& = String ( )) const;
  15291. XMLElement GetOrCreateChild(const String&);
  15292. Quaternion GetQuaternion(const String&) const;
  15293. ResourceRef GetResourceRef() const;
  15294. ResourceRefList GetResourceRefList() const;
  15295. uint GetUInt(const String&) const;
  15296. uint64 GetUInt64(const String&) const;
  15297. String GetValue() const;
  15298. Variant GetVariant() const;
  15299. VariantMap GetVariantMap() const;
  15300. Array<Variant> GetVariantVector() const;
  15301. Vector2 GetVector2(const String&) const;
  15302. Vector3 GetVector3(const String&) const;
  15303. Vector4 GetVector4(const String&) const;
  15304. Variant GetVectorVariant(const String&) const;
  15305. bool HasAttribute(const String&) const;
  15306. bool HasChild(const String&) const;
  15307. bool Remove();
  15308. bool RemoveAttribute(const String& = String ( ));
  15309. bool RemoveChild(const String&);
  15310. bool RemoveChild(const XMLElement&);
  15311. bool RemoveChildren(const String& = String ( ));
  15312. XPathResultSet Select(const String&);
  15313. XPathResultSet SelectPrepared(const XPathQuery&);
  15314. XMLElement SelectSingle(const String&);
  15315. XMLElement SelectSinglePrepared(const XPathQuery&);
  15316. bool SetAttribute(const String&);
  15317. bool SetAttribute(const String&, const String&);
  15318. bool SetBool(const String&, bool);
  15319. bool SetBoundingBox(const BoundingBox&);
  15320. bool SetColor(const String&, const Color&);
  15321. bool SetDouble(const String&, double);
  15322. bool SetFloat(const String&, float);
  15323. bool SetInt(const String&, int);
  15324. bool SetInt64(const String&, int64);
  15325. bool SetIntRect(const String&, const IntRect&);
  15326. bool SetIntVector2(const String&, const IntVector2&);
  15327. bool SetIntVector3(const String&, const IntVector3&);
  15328. bool SetMatrix3(const String&, const Matrix3&);
  15329. bool SetMatrix3x4(const String&, const Matrix3x4&);
  15330. bool SetMatrix4(const String&, const Matrix4&);
  15331. bool SetQuaternion(const String&, const Quaternion&);
  15332. bool SetResourceRef(const String&, const ResourceRef&);
  15333. bool SetResourceRefList(const String&, const ResourceRefList&);
  15334. bool SetUInt(const String&, uint);
  15335. bool SetUInt64(const String&, uint64);
  15336. bool SetValue(const String&);
  15337. bool SetVariant(const Variant&);
  15338. bool SetVariantMap(const VariantMap&);
  15339. bool SetVariantVector(Array<Variant>);
  15340. bool SetVector2(const String&, const Vector2&);
  15341. bool SetVector3(const String&, const Vector3&);
  15342. bool SetVector4(const String&, const Vector4&);
  15343. bool SetVectorVariant(const String&, const Variant&);
  15344. // Properties:
  15345. /* readonly */
  15346. XMLFile file;
  15347. /* readonly */
  15348. bool isNull;
  15349. /* readonly */
  15350. String name;
  15351. /* readonly */
  15352. XMLElement nextResult;
  15353. /* readonly */
  15354. bool notNull;
  15355. /* readonly */
  15356. uint numAttributes;
  15357. /* readonly */
  15358. XMLElement parent;
  15359. String value;
  15360. };
  15361. class XMLFile
  15362. {
  15363. public:
  15364. XMLFile();
  15365. XMLFile(const String&in);
  15366. // Methods:
  15367. XMLElement CreateRoot(const String&);
  15368. bool FromString(const String&);
  15369. XMLElement GetOrCreateRoot(const String&);
  15370. XMLElement GetRoot(const String& = String ( ));
  15371. bool HasSubscribedToEvent(Object, const String&);
  15372. bool HasSubscribedToEvent(const String&);
  15373. bool Load(File);
  15374. bool Load(VectorBuffer&);
  15375. bool Load(const String&);
  15376. void Patch(XMLFile);
  15377. void Patch(const XMLElement&);
  15378. bool Save(File) const;
  15379. bool Save(File, const String&) const;
  15380. bool Save(VectorBuffer&) const;
  15381. bool Save(const String&) const;
  15382. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15383. String ToString(const String& = String ( "\t" )) const;
  15384. // Properties:
  15385. /* readonly */
  15386. String category;
  15387. /* readonly */
  15388. uint memoryUse;
  15389. String name;
  15390. /* readonly */
  15391. int refs;
  15392. /* readonly */
  15393. XMLElement root;
  15394. /* readonly */
  15395. StringHash type;
  15396. /* readonly */
  15397. String typeName;
  15398. /* readonly */
  15399. uint useTimer;
  15400. /* readonly */
  15401. int weakRefs;
  15402. };
  15403. class XPathQuery
  15404. {
  15405. public:
  15406. ~XPathQuery();
  15407. XPathQuery();
  15408. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  15409. // Methods:
  15410. void Bind();
  15411. void Clear();
  15412. XPathResultSet Evaluate(const XMLElement&);
  15413. bool EvaluateToBool(const XMLElement&);
  15414. float EvaluateToFloat(const XMLElement&);
  15415. String EvaluateToString(const XMLElement&);
  15416. bool SetQuery(const String&, const String& = String ( ), bool = true);
  15417. bool SetVariable(const String&, bool);
  15418. bool SetVariable(const String&, const String&);
  15419. bool SetVariable(const String&, const XPathResultSet&);
  15420. bool SetVariable(const String&, float);
  15421. // Properties:
  15422. String query;
  15423. };
  15424. class XPathResultSet
  15425. {
  15426. public:
  15427. ~XPathResultSet();
  15428. XPathResultSet();
  15429. XPathResultSet(const XPathResultSet&in);
  15430. // Properties:
  15431. /* readonly */
  15432. bool empty;
  15433. /* readonly */
  15434. XMLElement firstResult;
  15435. /* readonly */
  15436. uint size;
  15437. };
  15438. class Zone
  15439. {
  15440. public:
  15441. // Methods:
  15442. void ApplyAttributes();
  15443. void DrawDebugGeometry(DebugRenderer, bool);
  15444. Variant GetAttribute(const String&) const;
  15445. ValueAnimation GetAttributeAnimation(const String&) const;
  15446. float GetAttributeAnimationSpeed(const String&) const;
  15447. float GetAttributeAnimationTime(const String&) const;
  15448. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15449. Variant GetAttributeDefault(const String&) const;
  15450. bool GetInterceptNetworkUpdate(const String&) const;
  15451. bool HasSubscribedToEvent(Object, const String&);
  15452. bool HasSubscribedToEvent(const String&);
  15453. bool IsInView(Camera) const;
  15454. bool Load(File);
  15455. bool Load(VectorBuffer&);
  15456. bool LoadJSON(const JSONValue&);
  15457. bool LoadXML(const XMLElement&);
  15458. void MarkNetworkUpdate() const;
  15459. void Remove();
  15460. void RemoveAttributeAnimation(const String&);
  15461. void RemoveInstanceDefault();
  15462. void RemoveObjectAnimation();
  15463. void ResetToDefault();
  15464. bool Save(File) const;
  15465. bool Save(VectorBuffer&) const;
  15466. bool SaveJSON(JSONValue&) const;
  15467. bool SaveXML(XMLElement&) const;
  15468. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15469. void SetAnimationTime(float);
  15470. bool SetAttribute(const String&, const Variant&);
  15471. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15472. void SetAttributeAnimationSpeed(const String&, float);
  15473. void SetAttributeAnimationTime(const String&, float);
  15474. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15475. void SetInterceptNetworkUpdate(const String&, bool);
  15476. // Properties:
  15477. Color ambientColor;
  15478. /* readonly */
  15479. Color ambientEndColor;
  15480. bool ambientGradient;
  15481. /* readonly */
  15482. Color ambientStartColor;
  15483. bool animationEnabled;
  15484. /* readonly */
  15485. Array<Variant> attributeDefaults;
  15486. /* readonly */
  15487. Array<AttributeInfo> attributeInfos;
  15488. Array<Variant> attributes;
  15489. BoundingBox boundingBox;
  15490. bool castShadows;
  15491. /* readonly */
  15492. String category;
  15493. float drawDistance;
  15494. bool enabled;
  15495. /* readonly */
  15496. bool enabledEffective;
  15497. Color fogColor;
  15498. float fogEnd;
  15499. float fogHeight;
  15500. float fogHeightScale;
  15501. float fogStart;
  15502. bool heightFog;
  15503. /* readonly */
  15504. uint id;
  15505. /* readonly */
  15506. bool inView;
  15507. /* readonly */
  15508. Matrix3x4 inverseWorldTransform;
  15509. uint lightMask;
  15510. float lodBias;
  15511. uint maxLights;
  15512. /* readonly */
  15513. Node node;
  15514. /* readonly */
  15515. uint numAttributes;
  15516. ObjectAnimation objectAnimation;
  15517. bool occludee;
  15518. bool occluder;
  15519. bool override;
  15520. int priority;
  15521. /* readonly */
  15522. int refs;
  15523. /* readonly */
  15524. bool replicated;
  15525. float shadowDistance;
  15526. uint shadowMask;
  15527. bool temporary;
  15528. /* readonly */
  15529. StringHash type;
  15530. /* readonly */
  15531. String typeName;
  15532. uint viewMask;
  15533. /* readonly */
  15534. int weakRefs;
  15535. /* readonly */
  15536. BoundingBox worldBoundingBox;
  15537. uint zoneMask;
  15538. Texture zoneTexture;
  15539. };
  15540. // Enumerations
  15541. enum AnimationBlendMode
  15542. {
  15543. ABM_LERP,
  15544. ABM_ADDITIVE,
  15545. };
  15546. enum AnimationChannel
  15547. {
  15548. CHANNEL_POSITION,
  15549. CHANNEL_ROTATION,
  15550. CHANNEL_SCALE,
  15551. };
  15552. enum AttributeMode
  15553. {
  15554. AM_FILE,
  15555. AM_NET,
  15556. AM_DEFAULT,
  15557. AM_LATESTDATA,
  15558. AM_NOEDIT,
  15559. AM_NODEID,
  15560. AM_COMPONENTID,
  15561. AM_NODEIDVECTOR,
  15562. AM_FILEREADONLY,
  15563. };
  15564. enum AutoRemoveMode
  15565. {
  15566. REMOVE_DISABLED,
  15567. REMOVE_COMPONENT,
  15568. REMOVE_NODE,
  15569. };
  15570. enum BlendMode
  15571. {
  15572. BLEND_REPLACE,
  15573. BLEND_ADD,
  15574. BLEND_MULTIPLY,
  15575. BLEND_ALPHA,
  15576. BLEND_ADDALPHA,
  15577. BLEND_PREMULALPHA,
  15578. BLEND_INVDESTALPHA,
  15579. BLEND_SUBTRACT,
  15580. BLEND_SUBTRACTALPHA,
  15581. };
  15582. enum BodyType2D
  15583. {
  15584. BT_STATIC,
  15585. BT_KINEMATIC,
  15586. BT_DYNAMIC,
  15587. };
  15588. enum ClearTarget
  15589. {
  15590. CLEAR_COLOR,
  15591. CLEAR_DEPTH,
  15592. CLEAR_STENCIL,
  15593. };
  15594. enum CollisionEventMode
  15595. {
  15596. COLLISION_NEVER,
  15597. COLLISION_ACTIVE,
  15598. COLLISION_ALWAYS,
  15599. };
  15600. enum CompareMode
  15601. {
  15602. CMP_ALWAYS,
  15603. CMP_EQUAL,
  15604. CMP_NOTEQUAL,
  15605. CMP_LESS,
  15606. CMP_LESSEQUAL,
  15607. CMP_GREATER,
  15608. CMP_GREATEREQUAL,
  15609. };
  15610. enum CompressedFormat
  15611. {
  15612. CF_NONE,
  15613. CF_RGBA,
  15614. CF_DXT1,
  15615. CF_DXT3,
  15616. CF_DXT5,
  15617. CF_ETC1,
  15618. CF_PVRTC_RGB_2BPP,
  15619. CF_PVRTC_RGBA_2BPP,
  15620. CF_PVRTC_RGB_4BPP,
  15621. CF_PVRTC_RGBA_4BPP,
  15622. };
  15623. enum ConstraintType
  15624. {
  15625. CONSTRAINT_POINT,
  15626. CONSTRAINT_HINGE,
  15627. CONSTRAINT_SLIDER,
  15628. CONSTRAINT_CONETWIST,
  15629. };
  15630. enum ControllerAxis
  15631. {
  15632. CONTROLLER_AXIS_LEFTX,
  15633. CONTROLLER_AXIS_LEFTY,
  15634. CONTROLLER_AXIS_RIGHTX,
  15635. CONTROLLER_AXIS_RIGHTY,
  15636. CONTROLLER_AXIS_TRIGGERLEFT,
  15637. CONTROLLER_AXIS_TRIGGERRIGHT,
  15638. };
  15639. enum ControllerButton
  15640. {
  15641. CONTROLLER_BUTTON_A,
  15642. CONTROLLER_BUTTON_B,
  15643. CONTROLLER_BUTTON_X,
  15644. CONTROLLER_BUTTON_Y,
  15645. CONTROLLER_BUTTON_BACK,
  15646. CONTROLLER_BUTTON_GUIDE,
  15647. CONTROLLER_BUTTON_START,
  15648. CONTROLLER_BUTTON_LEFTSTICK,
  15649. CONTROLLER_BUTTON_RIGHTSTICK,
  15650. CONTROLLER_BUTTON_LEFTSHOULDER,
  15651. CONTROLLER_BUTTON_RIGHTSHOULDER,
  15652. CONTROLLER_BUTTON_DPAD_UP,
  15653. CONTROLLER_BUTTON_DPAD_DOWN,
  15654. CONTROLLER_BUTTON_DPAD_LEFT,
  15655. CONTROLLER_BUTTON_DPAD_RIGHT,
  15656. };
  15657. enum Corner
  15658. {
  15659. C_TOPLEFT,
  15660. C_TOPRIGHT,
  15661. C_BOTTOMLEFT,
  15662. C_BOTTOMRIGHT,
  15663. };
  15664. enum CreateMode
  15665. {
  15666. REPLICATED,
  15667. LOCAL,
  15668. };
  15669. enum CrowdAgentRequestedTarget
  15670. {
  15671. CA_REQUESTEDTARGET_NONE,
  15672. CA_REQUESTEDTARGET_POSITION,
  15673. CA_REQUESTEDTARGET_VELOCITY,
  15674. };
  15675. enum CrowdAgentState
  15676. {
  15677. CA_STATE_INVALID,
  15678. CA_STATE_WALKING,
  15679. CA_STATE_OFFMESH,
  15680. };
  15681. enum CrowdAgentTargetState
  15682. {
  15683. CA_TARGET_NONE,
  15684. CA_TARGET_FAILED,
  15685. CA_TARGET_VALID,
  15686. CA_TARGET_REQUESTING,
  15687. CA_TARGET_WAITINGFORQUEUE,
  15688. CA_TARGET_WAITINGFORPATH,
  15689. CA_TARGET_VELOCITY,
  15690. };
  15691. enum CubeMapFace
  15692. {
  15693. FACE_POSITIVE_X,
  15694. FACE_NEGATIVE_X,
  15695. FACE_POSITIVE_Y,
  15696. FACE_NEGATIVE_Y,
  15697. FACE_POSITIVE_Z,
  15698. FACE_NEGATIVE_Z,
  15699. };
  15700. enum CullMode
  15701. {
  15702. CULL_NONE,
  15703. CULL_CCW,
  15704. CULL_CW,
  15705. };
  15706. enum CursorShape
  15707. {
  15708. CS_NORMAL,
  15709. CS_IBEAM,
  15710. CS_CROSS,
  15711. CS_RESIZEVERTICAL,
  15712. CS_RESIZEDIAGONAL_TOPRIGHT,
  15713. CS_RESIZEHORIZONTAL,
  15714. CS_RESIZEDIAGONAL_TOPLEFT,
  15715. CS_RESIZE_ALL,
  15716. CS_ACCEPTDROP,
  15717. CS_REJECTDROP,
  15718. CS_BUSY,
  15719. CS_BUSY_ARROW,
  15720. };
  15721. enum DBAPI
  15722. {
  15723. DBAPI_SQLITE,
  15724. DBAPI_ODBC,
  15725. };
  15726. enum DragAndDropMode
  15727. {
  15728. DD_DISABLED,
  15729. DD_SOURCE,
  15730. DD_TARGET,
  15731. DD_SOURCE_AND_TARGET,
  15732. };
  15733. enum DumpMode
  15734. {
  15735. DOXYGEN,
  15736. C_HEADER,
  15737. };
  15738. enum EmitterType
  15739. {
  15740. EMITTER_SPHERE,
  15741. EMITTER_BOX,
  15742. EMITTER_SPHEREVOLUME,
  15743. EMITTER_CYLINDER,
  15744. EMITTER_RING,
  15745. };
  15746. enum EmitterType2D
  15747. {
  15748. EMITTER_TYPE_GRAVITY,
  15749. EMITTER_TYPE_RADIAL,
  15750. };
  15751. enum FaceCameraMode
  15752. {
  15753. FC_NONE,
  15754. FC_ROTATE_XYZ,
  15755. FC_ROTATE_Y,
  15756. FC_LOOKAT_XYZ,
  15757. FC_LOOKAT_Y,
  15758. FC_LOOKAT_MIXED,
  15759. FC_DIRECTION,
  15760. };
  15761. enum FileMode
  15762. {
  15763. FILE_READ,
  15764. FILE_WRITE,
  15765. FILE_READWRITE,
  15766. };
  15767. enum FillMode
  15768. {
  15769. FILL_SOLID,
  15770. FILL_WIREFRAME,
  15771. FILL_POINT,
  15772. };
  15773. enum FocusMode
  15774. {
  15775. FM_NOTFOCUSABLE,
  15776. FM_RESETFOCUS,
  15777. FM_FOCUSABLE,
  15778. FM_FOCUSABLE_DEFOCUSABLE,
  15779. };
  15780. enum FontHintLevel
  15781. {
  15782. FONT_HINT_LEVEL_NONE,
  15783. FONT_HINT_LEVEL_LIGHT,
  15784. FONT_HINT_LEVEL_NORMAL,
  15785. };
  15786. enum FontType
  15787. {
  15788. FONT_NONE,
  15789. FONT_FREETYPE,
  15790. FONT_BITMAP,
  15791. };
  15792. enum HatPosition
  15793. {
  15794. HAT_CENTER,
  15795. HAT_UP,
  15796. HAT_RIGHT,
  15797. HAT_DOWN,
  15798. HAT_LEFT,
  15799. };
  15800. enum HighlightMode
  15801. {
  15802. HM_NEVER,
  15803. HM_FOCUS,
  15804. HM_ALWAYS,
  15805. };
  15806. enum HorizontalAlignment
  15807. {
  15808. HA_LEFT,
  15809. HA_CENTER,
  15810. HA_RIGHT,
  15811. HA_CUSTOM,
  15812. };
  15813. enum HttpRequestState
  15814. {
  15815. HTTP_INITIALIZING,
  15816. HTTP_ERROR,
  15817. HTTP_OPEN,
  15818. HTTP_CLOSED,
  15819. };
  15820. enum IKAlgorithm
  15821. {
  15822. ONE_BONE,
  15823. TWO_BONE,
  15824. FABRIK,
  15825. };
  15826. enum InterpMethod
  15827. {
  15828. IM_NONE,
  15829. IM_LINEAR,
  15830. IM_SPLINE,
  15831. };
  15832. enum InterpolationMode
  15833. {
  15834. BEZIER_CURVE,
  15835. CATMULL_ROM_CURVE,
  15836. LINEAR_CURVE,
  15837. CATMULL_ROM_FULL_CURVE,
  15838. };
  15839. enum Intersection
  15840. {
  15841. OUTSIDE,
  15842. INTERSECTS,
  15843. INSIDE,
  15844. };
  15845. enum JSONNumberType
  15846. {
  15847. JSONNT_NAN,
  15848. JSONNT_INT,
  15849. JSONNT_UINT,
  15850. JSONNT_FLOAT_DOUBLE,
  15851. };
  15852. enum JSONValueType
  15853. {
  15854. JSON_NULL,
  15855. JSON_BOOL,
  15856. JSON_NUMBER,
  15857. JSON_STRING,
  15858. JSON_ARRAY,
  15859. JSON_OBJECT,
  15860. };
  15861. enum Key
  15862. {
  15863. KEY_UNKNOWN,
  15864. KEY_A,
  15865. KEY_B,
  15866. KEY_C,
  15867. KEY_D,
  15868. KEY_E,
  15869. KEY_F,
  15870. KEY_G,
  15871. KEY_H,
  15872. KEY_I,
  15873. KEY_J,
  15874. KEY_K,
  15875. KEY_L,
  15876. KEY_M,
  15877. KEY_N,
  15878. KEY_O,
  15879. KEY_P,
  15880. KEY_Q,
  15881. KEY_R,
  15882. KEY_S,
  15883. KEY_T,
  15884. KEY_U,
  15885. KEY_V,
  15886. KEY_W,
  15887. KEY_X,
  15888. KEY_Y,
  15889. KEY_Z,
  15890. KEY_0,
  15891. KEY_1,
  15892. KEY_2,
  15893. KEY_3,
  15894. KEY_4,
  15895. KEY_5,
  15896. KEY_6,
  15897. KEY_7,
  15898. KEY_8,
  15899. KEY_9,
  15900. KEY_BACKSPACE,
  15901. KEY_TAB,
  15902. KEY_RETURN,
  15903. KEY_RETURN2,
  15904. KEY_KP_ENTER,
  15905. KEY_SHIFT,
  15906. KEY_CTRL,
  15907. KEY_ALT,
  15908. KEY_GUI,
  15909. KEY_PAUSE,
  15910. KEY_CAPSLOCK,
  15911. KEY_ESCAPE,
  15912. KEY_SPACE,
  15913. KEY_PAGEUP,
  15914. KEY_PAGEDOWN,
  15915. KEY_END,
  15916. KEY_HOME,
  15917. KEY_LEFT,
  15918. KEY_UP,
  15919. KEY_RIGHT,
  15920. KEY_DOWN,
  15921. KEY_SELECT,
  15922. KEY_PRINTSCREEN,
  15923. KEY_INSERT,
  15924. KEY_DELETE,
  15925. KEY_LGUI,
  15926. KEY_RGUI,
  15927. KEY_APPLICATION,
  15928. KEY_KP_0,
  15929. KEY_KP_1,
  15930. KEY_KP_2,
  15931. KEY_KP_3,
  15932. KEY_KP_4,
  15933. KEY_KP_5,
  15934. KEY_KP_6,
  15935. KEY_KP_7,
  15936. KEY_KP_8,
  15937. KEY_KP_9,
  15938. KEY_KP_MULTIPLY,
  15939. KEY_KP_PLUS,
  15940. KEY_KP_MINUS,
  15941. KEY_KP_PERIOD,
  15942. KEY_KP_DIVIDE,
  15943. KEY_F1,
  15944. KEY_F2,
  15945. KEY_F3,
  15946. KEY_F4,
  15947. KEY_F5,
  15948. KEY_F6,
  15949. KEY_F7,
  15950. KEY_F8,
  15951. KEY_F9,
  15952. KEY_F10,
  15953. KEY_F11,
  15954. KEY_F12,
  15955. KEY_F13,
  15956. KEY_F14,
  15957. KEY_F15,
  15958. KEY_F16,
  15959. KEY_F17,
  15960. KEY_F18,
  15961. KEY_F19,
  15962. KEY_F20,
  15963. KEY_F21,
  15964. KEY_F22,
  15965. KEY_F23,
  15966. KEY_F24,
  15967. KEY_NUMLOCKCLEAR,
  15968. KEY_SCROLLLOCK,
  15969. KEY_LSHIFT,
  15970. KEY_RSHIFT,
  15971. KEY_LCTRL,
  15972. KEY_RCTRL,
  15973. KEY_LALT,
  15974. KEY_RALT,
  15975. KEY_AC_BACK,
  15976. KEY_AC_BOOKMARKS,
  15977. KEY_AC_FORWARD,
  15978. KEY_AC_HOME,
  15979. KEY_AC_REFRESH,
  15980. KEY_AC_SEARCH,
  15981. KEY_AC_STOP,
  15982. KEY_AGAIN,
  15983. KEY_ALTERASE,
  15984. KEY_AMPERSAND,
  15985. KEY_ASTERISK,
  15986. KEY_AT,
  15987. KEY_AUDIOMUTE,
  15988. KEY_AUDIONEXT,
  15989. KEY_AUDIOPLAY,
  15990. KEY_AUDIOPREV,
  15991. KEY_AUDIOSTOP,
  15992. KEY_BACKQUOTE,
  15993. KEY_BACKSLASH,
  15994. KEY_BRIGHTNESSDOWN,
  15995. KEY_BRIGHTNESSUP,
  15996. KEY_CALCULATOR,
  15997. KEY_CANCEL,
  15998. KEY_CARET,
  15999. KEY_CLEAR,
  16000. KEY_CLEARAGAIN,
  16001. KEY_COLON,
  16002. KEY_COMMA,
  16003. KEY_COMPUTER,
  16004. KEY_COPY,
  16005. KEY_CRSEL,
  16006. KEY_CURRENCYSUBUNIT,
  16007. KEY_CURRENCYUNIT,
  16008. KEY_CUT,
  16009. KEY_DECIMALSEPARATOR,
  16010. KEY_DISPLAYSWITCH,
  16011. KEY_DOLLAR,
  16012. KEY_EJECT,
  16013. KEY_EQUALS,
  16014. KEY_EXCLAIM,
  16015. KEY_EXSEL,
  16016. KEY_FIND,
  16017. KEY_GREATER,
  16018. KEY_HASH,
  16019. KEY_HELP,
  16020. KEY_KBDILLUMDOWN,
  16021. KEY_KBDILLUMTOGGLE,
  16022. KEY_KBDILLUMUP,
  16023. KEY_KP_00,
  16024. KEY_KP_000,
  16025. KEY_KP_A,
  16026. KEY_KP_AMPERSAND,
  16027. KEY_KP_AT,
  16028. KEY_KP_B,
  16029. KEY_KP_BACKSPACE,
  16030. KEY_KP_BINARY,
  16031. KEY_KP_C,
  16032. KEY_KP_CLEAR,
  16033. KEY_KP_CLEARENTRY,
  16034. KEY_KP_COLON,
  16035. KEY_KP_COMMA,
  16036. KEY_KP_D,
  16037. KEY_KP_DBLAMPERSAND,
  16038. KEY_KP_DBLVERTICALBAR,
  16039. KEY_KP_DECIMAL,
  16040. KEY_KP_E,
  16041. KEY_KP_EQUALS,
  16042. KEY_KP_EQUALSAS400,
  16043. KEY_KP_EXCLAM,
  16044. KEY_KP_F,
  16045. KEY_KP_GREATER,
  16046. KEY_KP_HASH,
  16047. KEY_KP_HEXADECIMAL,
  16048. KEY_KP_LEFTBRACE,
  16049. KEY_KP_LEFTPAREN,
  16050. KEY_KP_LESS,
  16051. KEY_KP_MEMADD,
  16052. KEY_KP_MEMCLEAR,
  16053. KEY_KP_MEMDIVIDE,
  16054. KEY_KP_MEMMULTIPLY,
  16055. KEY_KP_MEMRECALL,
  16056. KEY_KP_MEMSTORE,
  16057. KEY_KP_MEMSUBTRACT,
  16058. KEY_KP_OCTAL,
  16059. KEY_KP_PERCENT,
  16060. KEY_KP_PLUSMINUS,
  16061. KEY_KP_POWER,
  16062. KEY_KP_RIGHTBRACE,
  16063. KEY_KP_RIGHTPAREN,
  16064. KEY_KP_SPACE,
  16065. KEY_KP_TAB,
  16066. KEY_KP_VERTICALBAR,
  16067. KEY_KP_XOR,
  16068. KEY_LEFTBRACKET,
  16069. KEY_LEFTPAREN,
  16070. KEY_LESS,
  16071. KEY_MAIL,
  16072. KEY_MEDIASELECT,
  16073. KEY_MENU,
  16074. KEY_MINUS,
  16075. KEY_MODE,
  16076. KEY_MUTE,
  16077. KEY_OPER,
  16078. KEY_OUT,
  16079. KEY_PASTE,
  16080. KEY_PERCENT,
  16081. KEY_PERIOD,
  16082. KEY_PLUS,
  16083. KEY_POWER,
  16084. KEY_PRIOR,
  16085. KEY_QUESTION,
  16086. KEY_QUOTE,
  16087. KEY_QUOTEDBL,
  16088. KEY_RIGHTBRACKET,
  16089. KEY_RIGHTPAREN,
  16090. KEY_SEMICOLON,
  16091. KEY_SEPARATOR,
  16092. KEY_SLASH,
  16093. KEY_SLEEP,
  16094. KEY_STOP,
  16095. KEY_SYSREQ,
  16096. KEY_THOUSANDSSEPARATOR,
  16097. KEY_UNDERSCORE,
  16098. KEY_UNDO,
  16099. KEY_VOLUMEDOWN,
  16100. KEY_VOLUMEUP,
  16101. KEY_WWW,
  16102. };
  16103. enum LayoutMode
  16104. {
  16105. LM_FREE,
  16106. LM_HORIZONTAL,
  16107. LM_VERTICAL,
  16108. };
  16109. enum LightType
  16110. {
  16111. LIGHT_DIRECTIONAL,
  16112. LIGHT_SPOT,
  16113. LIGHT_POINT,
  16114. };
  16115. enum LoadMode
  16116. {
  16117. LOAD_RESOURCES_ONLY,
  16118. LOAD_SCENE,
  16119. LOAD_SCENE_AND_RESOURCES,
  16120. };
  16121. enum LoopMode2D
  16122. {
  16123. LM_DEFAULT,
  16124. LM_FORCE_LOOPED,
  16125. LM_FORCE_CLAMPED,
  16126. };
  16127. enum MaterialQuality
  16128. {
  16129. QUALITY_LOW,
  16130. QUALITY_MEDIUM,
  16131. QUALITY_HIGH,
  16132. QUALITY_MAX,
  16133. };
  16134. enum MouseButton
  16135. {
  16136. MOUSEB_LEFT,
  16137. MOUSEB_MIDDLE,
  16138. MOUSEB_RIGHT,
  16139. };
  16140. enum MouseMode
  16141. {
  16142. MM_ABSOLUTE,
  16143. MM_RELATIVE,
  16144. MM_WRAP,
  16145. MM_FREE,
  16146. };
  16147. enum NavigationPushiness
  16148. {
  16149. NAVIGATIONPUSHINESS_LOW,
  16150. NAVIGATIONPUSHINESS_MEDIUM,
  16151. NAVIGATIONPUSHINESS_HIGH,
  16152. NAVIGATIONPUSHINESS_NONE,
  16153. };
  16154. enum NavigationQuality
  16155. {
  16156. NAVIGATIONQUALITY_LOW,
  16157. NAVIGATIONQUALITY_MEDIUM,
  16158. NAVIGATIONQUALITY_HIGH,
  16159. };
  16160. enum NavmeshPartitionType
  16161. {
  16162. NAVMESH_PARTITION_WATERSHED,
  16163. NAVMESH_PARTITION_MONOTONE,
  16164. };
  16165. enum Orientation
  16166. {
  16167. O_HORIZONTAL,
  16168. O_VERTICAL,
  16169. };
  16170. enum Orientation2D
  16171. {
  16172. O_ORTHOGONAL,
  16173. O_ISOMETRIC,
  16174. O_STAGGERED,
  16175. O_HEXAGONAL,
  16176. };
  16177. enum PassLightingMode
  16178. {
  16179. LIGHTING_UNLIT,
  16180. LIGHTING_PERVERTEX,
  16181. LIGHTING_PERPIXEL,
  16182. };
  16183. enum PrimitiveType
  16184. {
  16185. TRIANGLE_LIST,
  16186. LINE_LIST,
  16187. POINT_LIST,
  16188. TRIANGLE_STRIP,
  16189. LINE_STRIP,
  16190. TRIANGLE_FAN,
  16191. };
  16192. enum Qualifier
  16193. {
  16194. QUAL_SHIFT,
  16195. QUAL_CTRL,
  16196. QUAL_ALT,
  16197. QUAL_ANY,
  16198. };
  16199. enum RayQueryLevel
  16200. {
  16201. RAY_AABB,
  16202. RAY_OBB,
  16203. RAY_TRIANGLE,
  16204. RAY_TRIANGLE_UV,
  16205. };
  16206. enum RenderCommandSortMode
  16207. {
  16208. SORT_FRONTTOBACK,
  16209. SORT_BACKTOFRONT,
  16210. };
  16211. enum RenderCommandType
  16212. {
  16213. CMD_NONE,
  16214. CMD_CLEAR,
  16215. CMD_SCENEPASS,
  16216. CMD_QUAD,
  16217. CMD_FORWARDLIGHTS,
  16218. CMD_LIGHTVOLUMES,
  16219. CMD_RENDERUI,
  16220. CMD_SENDEVENT,
  16221. };
  16222. enum RenderSurfaceUpdateMode
  16223. {
  16224. SURFACE_MANUALUPDATE,
  16225. SURFACE_UPDATEVISIBLE,
  16226. SURFACE_UPDATEALWAYS,
  16227. };
  16228. enum RenderTargetSizeMode
  16229. {
  16230. SIZE_ABSOLUTE,
  16231. SIZE_VIEWPORTDIVISOR,
  16232. SIZE_VIEWPORTMULTIPLIER,
  16233. };
  16234. enum Scancode
  16235. {
  16236. SCANCODE_UNKNOWN,
  16237. SCANCODE_CTRL,
  16238. SCANCODE_SHIFT,
  16239. SCANCODE_ALT,
  16240. SCANCODE_GUI,
  16241. SCANCODE_A,
  16242. SCANCODE_B,
  16243. SCANCODE_C,
  16244. SCANCODE_D,
  16245. SCANCODE_E,
  16246. SCANCODE_F,
  16247. SCANCODE_G,
  16248. SCANCODE_H,
  16249. SCANCODE_I,
  16250. SCANCODE_J,
  16251. SCANCODE_K,
  16252. SCANCODE_L,
  16253. SCANCODE_M,
  16254. SCANCODE_N,
  16255. SCANCODE_O,
  16256. SCANCODE_P,
  16257. SCANCODE_Q,
  16258. SCANCODE_R,
  16259. SCANCODE_S,
  16260. SCANCODE_T,
  16261. SCANCODE_U,
  16262. SCANCODE_V,
  16263. SCANCODE_W,
  16264. SCANCODE_X,
  16265. SCANCODE_Y,
  16266. SCANCODE_Z,
  16267. SCANCODE_1,
  16268. SCANCODE_2,
  16269. SCANCODE_3,
  16270. SCANCODE_4,
  16271. SCANCODE_5,
  16272. SCANCODE_6,
  16273. SCANCODE_7,
  16274. SCANCODE_8,
  16275. SCANCODE_9,
  16276. SCANCODE_0,
  16277. SCANCODE_RETURN,
  16278. SCANCODE_ESCAPE,
  16279. SCANCODE_BACKSPACE,
  16280. SCANCODE_TAB,
  16281. SCANCODE_SPACE,
  16282. SCANCODE_MINUS,
  16283. SCANCODE_EQUALS,
  16284. SCANCODE_LEFTBRACKET,
  16285. SCANCODE_RIGHTBRACKET,
  16286. SCANCODE_BACKSLASH,
  16287. SCANCODE_NONUSHASH,
  16288. SCANCODE_SEMICOLON,
  16289. SCANCODE_APOSTROPHE,
  16290. SCANCODE_GRAVE,
  16291. SCANCODE_COMMA,
  16292. SCANCODE_PERIOD,
  16293. SCANCODE_SLASH,
  16294. SCANCODE_CAPSLOCK,
  16295. SCANCODE_F1,
  16296. SCANCODE_F2,
  16297. SCANCODE_F3,
  16298. SCANCODE_F4,
  16299. SCANCODE_F5,
  16300. SCANCODE_F6,
  16301. SCANCODE_F7,
  16302. SCANCODE_F8,
  16303. SCANCODE_F9,
  16304. SCANCODE_F10,
  16305. SCANCODE_F11,
  16306. SCANCODE_F12,
  16307. SCANCODE_PRINTSCREEN,
  16308. SCANCODE_SCROLLLOCK,
  16309. SCANCODE_PAUSE,
  16310. SCANCODE_INSERT,
  16311. SCANCODE_HOME,
  16312. SCANCODE_PAGEUP,
  16313. SCANCODE_DELETE,
  16314. SCANCODE_END,
  16315. SCANCODE_PAGEDOWN,
  16316. SCANCODE_RIGHT,
  16317. SCANCODE_LEFT,
  16318. SCANCODE_DOWN,
  16319. SCANCODE_UP,
  16320. SCANCODE_NUMLOCKCLEAR,
  16321. SCANCODE_KP_DIVIDE,
  16322. SCANCODE_KP_MULTIPLY,
  16323. SCANCODE_KP_MINUS,
  16324. SCANCODE_KP_PLUS,
  16325. SCANCODE_KP_ENTER,
  16326. SCANCODE_KP_1,
  16327. SCANCODE_KP_2,
  16328. SCANCODE_KP_3,
  16329. SCANCODE_KP_4,
  16330. SCANCODE_KP_5,
  16331. SCANCODE_KP_6,
  16332. SCANCODE_KP_7,
  16333. SCANCODE_KP_8,
  16334. SCANCODE_KP_9,
  16335. SCANCODE_KP_0,
  16336. SCANCODE_KP_PERIOD,
  16337. SCANCODE_NONUSBACKSLASH,
  16338. SCANCODE_APPLICATION,
  16339. SCANCODE_POWER,
  16340. SCANCODE_KP_EQUALS,
  16341. SCANCODE_F13,
  16342. SCANCODE_F14,
  16343. SCANCODE_F15,
  16344. SCANCODE_F16,
  16345. SCANCODE_F17,
  16346. SCANCODE_F18,
  16347. SCANCODE_F19,
  16348. SCANCODE_F20,
  16349. SCANCODE_F21,
  16350. SCANCODE_F22,
  16351. SCANCODE_F23,
  16352. SCANCODE_F24,
  16353. SCANCODE_EXECUTE,
  16354. SCANCODE_HELP,
  16355. SCANCODE_MENU,
  16356. SCANCODE_SELECT,
  16357. SCANCODE_STOP,
  16358. SCANCODE_AGAIN,
  16359. SCANCODE_UNDO,
  16360. SCANCODE_CUT,
  16361. SCANCODE_COPY,
  16362. SCANCODE_PASTE,
  16363. SCANCODE_FIND,
  16364. SCANCODE_MUTE,
  16365. SCANCODE_VOLUMEUP,
  16366. SCANCODE_VOLUMEDOWN,
  16367. SCANCODE_KP_COMMA,
  16368. SCANCODE_KP_EQUALSAS400,
  16369. SCANCODE_INTERNATIONAL1,
  16370. SCANCODE_INTERNATIONAL2,
  16371. SCANCODE_INTERNATIONAL3,
  16372. SCANCODE_INTERNATIONAL4,
  16373. SCANCODE_INTERNATIONAL5,
  16374. SCANCODE_INTERNATIONAL6,
  16375. SCANCODE_INTERNATIONAL7,
  16376. SCANCODE_INTERNATIONAL8,
  16377. SCANCODE_INTERNATIONAL9,
  16378. SCANCODE_LANG1,
  16379. SCANCODE_LANG2,
  16380. SCANCODE_LANG3,
  16381. SCANCODE_LANG4,
  16382. SCANCODE_LANG5,
  16383. SCANCODE_LANG6,
  16384. SCANCODE_LANG7,
  16385. SCANCODE_LANG8,
  16386. SCANCODE_LANG9,
  16387. SCANCODE_ALTERASE,
  16388. SCANCODE_SYSREQ,
  16389. SCANCODE_CANCEL,
  16390. SCANCODE_CLEAR,
  16391. SCANCODE_PRIOR,
  16392. SCANCODE_RETURN2,
  16393. SCANCODE_SEPARATOR,
  16394. SCANCODE_OUT,
  16395. SCANCODE_OPER,
  16396. SCANCODE_CLEARAGAIN,
  16397. SCANCODE_CRSEL,
  16398. SCANCODE_EXSEL,
  16399. SCANCODE_KP_00,
  16400. SCANCODE_KP_000,
  16401. SCANCODE_THOUSANDSSEPARATOR,
  16402. SCANCODE_DECIMALSEPARATOR,
  16403. SCANCODE_CURRENCYUNIT,
  16404. SCANCODE_CURRENCYSUBUNIT,
  16405. SCANCODE_KP_LEFTPAREN,
  16406. SCANCODE_KP_RIGHTPAREN,
  16407. SCANCODE_KP_LEFTBRACE,
  16408. SCANCODE_KP_RIGHTBRACE,
  16409. SCANCODE_KP_TAB,
  16410. SCANCODE_KP_BACKSPACE,
  16411. SCANCODE_KP_A,
  16412. SCANCODE_KP_B,
  16413. SCANCODE_KP_C,
  16414. SCANCODE_KP_D,
  16415. SCANCODE_KP_E,
  16416. SCANCODE_KP_F,
  16417. SCANCODE_KP_XOR,
  16418. SCANCODE_KP_POWER,
  16419. SCANCODE_KP_PERCENT,
  16420. SCANCODE_KP_LESS,
  16421. SCANCODE_KP_GREATER,
  16422. SCANCODE_KP_AMPERSAND,
  16423. SCANCODE_KP_DBLAMPERSAND,
  16424. SCANCODE_KP_VERTICALBAR,
  16425. SCANCODE_KP_DBLVERTICALBAR,
  16426. SCANCODE_KP_COLON,
  16427. SCANCODE_KP_HASH,
  16428. SCANCODE_KP_SPACE,
  16429. SCANCODE_KP_AT,
  16430. SCANCODE_KP_EXCLAM,
  16431. SCANCODE_KP_MEMSTORE,
  16432. SCANCODE_KP_MEMRECALL,
  16433. SCANCODE_KP_MEMCLEAR,
  16434. SCANCODE_KP_MEMADD,
  16435. SCANCODE_KP_MEMSUBTRACT,
  16436. SCANCODE_KP_MEMMULTIPLY,
  16437. SCANCODE_KP_MEMDIVIDE,
  16438. SCANCODE_KP_PLUSMINUS,
  16439. SCANCODE_KP_CLEAR,
  16440. SCANCODE_KP_CLEARENTRY,
  16441. SCANCODE_KP_BINARY,
  16442. SCANCODE_KP_OCTAL,
  16443. SCANCODE_KP_DECIMAL,
  16444. SCANCODE_KP_HEXADECIMAL,
  16445. SCANCODE_LCTRL,
  16446. SCANCODE_LSHIFT,
  16447. SCANCODE_LALT,
  16448. SCANCODE_LGUI,
  16449. SCANCODE_RCTRL,
  16450. SCANCODE_RSHIFT,
  16451. SCANCODE_RALT,
  16452. SCANCODE_RGUI,
  16453. SCANCODE_MODE,
  16454. SCANCODE_AUDIONEXT,
  16455. SCANCODE_AUDIOPREV,
  16456. SCANCODE_AUDIOSTOP,
  16457. SCANCODE_AUDIOPLAY,
  16458. SCANCODE_AUDIOMUTE,
  16459. SCANCODE_MEDIASELECT,
  16460. SCANCODE_WWW,
  16461. SCANCODE_MAIL,
  16462. SCANCODE_CALCULATOR,
  16463. SCANCODE_COMPUTER,
  16464. SCANCODE_AC_SEARCH,
  16465. SCANCODE_AC_HOME,
  16466. SCANCODE_AC_BACK,
  16467. SCANCODE_AC_FORWARD,
  16468. SCANCODE_AC_STOP,
  16469. SCANCODE_AC_REFRESH,
  16470. SCANCODE_AC_BOOKMARKS,
  16471. SCANCODE_BRIGHTNESSDOWN,
  16472. SCANCODE_BRIGHTNESSUP,
  16473. SCANCODE_DISPLAYSWITCH,
  16474. SCANCODE_KBDILLUMTOGGLE,
  16475. SCANCODE_KBDILLUMDOWN,
  16476. SCANCODE_KBDILLUMUP,
  16477. SCANCODE_EJECT,
  16478. SCANCODE_SLEEP,
  16479. SCANCODE_APP1,
  16480. SCANCODE_APP2,
  16481. };
  16482. enum ShadowQuality
  16483. {
  16484. SHADOWQUALITY_SIMPLE_16BIT,
  16485. SHADOWQUALITY_SIMPLE_24BIT,
  16486. SHADOWQUALITY_PCF_16BIT,
  16487. SHADOWQUALITY_PCF_24BIT,
  16488. SHADOWQUALITY_VSM,
  16489. SHADOWQUALITY_BLUR_VSM,
  16490. };
  16491. enum ShapeType
  16492. {
  16493. SHAPE_BOX,
  16494. SHAPE_SPHERE,
  16495. SHAPE_STATICPLANE,
  16496. SHAPE_CYLINDER,
  16497. SHAPE_CAPSULE,
  16498. SHAPE_CONE,
  16499. SHAPE_TRIANGLEMESH,
  16500. SHAPE_CONVEXHULL,
  16501. SHAPE_TERRAIN,
  16502. };
  16503. enum TextEffect
  16504. {
  16505. TE_NONE,
  16506. TE_SHADOW,
  16507. TE_STROKE,
  16508. };
  16509. enum TextureAddressMode
  16510. {
  16511. ADDRESS_WRAP,
  16512. ADDRESS_MIRROR,
  16513. ADDRESS_CLAMP,
  16514. ADDRESS_BORDER,
  16515. };
  16516. enum TextureCoordinate
  16517. {
  16518. COORD_U,
  16519. COORD_V,
  16520. COORD_W,
  16521. };
  16522. enum TextureFilterMode
  16523. {
  16524. FILTER_NEAREST,
  16525. FILTER_BILINEAR,
  16526. FILTER_TRILINEAR,
  16527. FILTER_ANISOTROPIC,
  16528. FILTER_NEAREST_ANISOTROPIC,
  16529. FILTER_DEFAULT,
  16530. };
  16531. enum TextureUnit
  16532. {
  16533. TU_DIFFUSE,
  16534. TU_ALBEDOBUFFER,
  16535. TU_NORMAL,
  16536. TU_NORMALBUFFER,
  16537. TU_SPECULAR,
  16538. TU_EMISSIVE,
  16539. TU_ENVIRONMENT,
  16540. TU_LIGHTRAMP,
  16541. TU_LIGHTSHAPE,
  16542. TU_SHADOWMAP,
  16543. TU_CUSTOM1,
  16544. TU_CUSTOM2,
  16545. TU_VOLUMEMAP,
  16546. TU_FACESELECT,
  16547. TU_INDIRECTION,
  16548. TU_DEPTHBUFFER,
  16549. TU_LIGHTBUFFER,
  16550. TU_ZONE,
  16551. MAX_MATERIAL_TEXTURE_UNITS,
  16552. MAX_TEXTURE_UNITS,
  16553. };
  16554. enum TextureUsage
  16555. {
  16556. TEXTURE_STATIC,
  16557. TEXTURE_DYNAMIC,
  16558. TEXTURE_RENDERTARGET,
  16559. TEXTURE_DEPTHSTENCIL,
  16560. };
  16561. enum TileMapLayerType2D
  16562. {
  16563. LT_TILE_LAYER,
  16564. LT_OBJECT_GROUP,
  16565. LT_IMAGE_LAYER,
  16566. LT_INVALID,
  16567. };
  16568. enum TileObjectType2D
  16569. {
  16570. OT_RECTANGLE,
  16571. OT_ELLIPSE,
  16572. OT_POLYGON,
  16573. OT_POLYLINE,
  16574. OT_TILE,
  16575. OT_INVALID,
  16576. };
  16577. enum TrailType
  16578. {
  16579. TT_FACE_CAMERA,
  16580. TT_BONE,
  16581. };
  16582. enum TransformSpace
  16583. {
  16584. TS_LOCAL,
  16585. TS_PARENT,
  16586. TS_WORLD,
  16587. };
  16588. enum TraversalMode
  16589. {
  16590. TM_BREADTH_FIRST,
  16591. TM_DEPTH_FIRST,
  16592. };
  16593. enum VariantType
  16594. {
  16595. VAR_NONE,
  16596. VAR_INT,
  16597. VAR_BOOL,
  16598. VAR_FLOAT,
  16599. VAR_VECTOR2,
  16600. VAR_VECTOR3,
  16601. VAR_VECTOR4,
  16602. VAR_QUATERNION,
  16603. VAR_COLOR,
  16604. VAR_STRING,
  16605. VAR_BUFFER,
  16606. VAR_VOIDPTR,
  16607. VAR_RESOURCEREF,
  16608. VAR_RESOURCEREFLIST,
  16609. VAR_VARIANTVECTOR,
  16610. VAR_VARIANTMAP,
  16611. VAR_INTRECT,
  16612. VAR_INTVECTOR2,
  16613. VAR_INTVECTOR3,
  16614. VAR_PTR,
  16615. VAR_MATRIX3,
  16616. VAR_MATRIX3X4,
  16617. VAR_MATRIX4,
  16618. VAR_DOUBLE,
  16619. VAR_STRINGVECTOR,
  16620. VAR_RECT,
  16621. };
  16622. enum VertexElementSemantic
  16623. {
  16624. SEM_POSITION,
  16625. SEM_NORMAL,
  16626. SEM_BINORMAL,
  16627. SEM_TANGENT,
  16628. SEM_TEXCOORD,
  16629. SEM_COLOR,
  16630. SEM_BLENDWEIGHTS,
  16631. SEM_BLENDINDICES,
  16632. SEM_OBJECTINDEX,
  16633. MAX_VERTEX_ELEMENT_SEMANTICS,
  16634. };
  16635. enum VertexElementType
  16636. {
  16637. TYPE_INT,
  16638. TYPE_FLOAT,
  16639. TYPE_VECTOR2,
  16640. TYPE_VECTOR3,
  16641. TYPE_VECTOR4,
  16642. TYPE_UBYTE4,
  16643. TYPE_UBYTE4_NORM,
  16644. MAX_VERTEX_ELEMENT_TYPES,
  16645. };
  16646. enum VertexMask
  16647. {
  16648. MASK_NONE,
  16649. MASK_POSITION,
  16650. MASK_NORMAL,
  16651. MASK_COLOR,
  16652. MASK_TEXCOORD1,
  16653. MASK_TEXCOORD2,
  16654. MASK_CUBETEXCOORD1,
  16655. MASK_CUBETEXCOORD2,
  16656. MASK_TANGENT,
  16657. MASK_BLENDWEIGHTS,
  16658. MASK_BLENDINDICES,
  16659. MASK_INSTANCEMATRIX1,
  16660. MASK_INSTANCEMATRIX2,
  16661. MASK_INSTANCEMATRIX3,
  16662. MASK_OBJECTINDEX,
  16663. };
  16664. enum VerticalAlignment
  16665. {
  16666. VA_TOP,
  16667. VA_CENTER,
  16668. VA_BOTTOM,
  16669. VA_CUSTOM,
  16670. };
  16671. enum ViewOverride
  16672. {
  16673. VO_NONE,
  16674. VO_LOW_MATERIAL_QUALITY,
  16675. VO_DISABLE_SHADOWS,
  16676. VO_DISABLE_OCCLUSION,
  16677. };
  16678. enum WrapMode
  16679. {
  16680. WM_LOOP,
  16681. WM_ONCE,
  16682. WM_CLAMP,
  16683. };
  16684. // Global functions
  16685. float Abs(float);
  16686. float Acos(float);
  16687. String AddTrailingSlash(const String&);
  16688. float Asin(float);
  16689. float Atan(float);
  16690. float Atan2(float, float);
  16691. float Ceil(float);
  16692. int CeilToInt(float);
  16693. float Clamp(float, float, float);
  16694. int Clamp(int, int, int);
  16695. void ClearDelayedExecute(const String& = String ( ));
  16696. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  16697. float Cos(float);
  16698. uint CountSetBits(uint);
  16699. Object CreateObject(const String&);
  16700. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  16701. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  16702. bool Equals(float, float);
  16703. void ErrorDialog(const String&, const String&);
  16704. float Floor(float);
  16705. int FloorToInt(float);
  16706. float Fract(float);
  16707. uint GetAlphaFormat();
  16708. Array<String> GetArguments();
  16709. String GetConsoleInput();
  16710. uint GetDepthStencilFormat();
  16711. Object GetEventSender();
  16712. String GetExtension(const String&, bool = true);
  16713. String GetFileName(const String&);
  16714. String GetFileNameAndExtension(const String&, bool = false);
  16715. String GetFileSizeString(uint64);
  16716. uint GetFloat16Format();
  16717. uint GetFloat32Format();
  16718. uint GetFormat(const String&);
  16719. Variant GetGlobalVar(const String&);
  16720. String GetHostName();
  16721. String GetInternalPath(const String&);
  16722. uint GetLinearDepthFormat();
  16723. String GetLoginName();
  16724. uint GetLuminanceAlphaFormat();
  16725. uint GetLuminanceFormat();
  16726. uint GetMaxBones();
  16727. String GetMiniDumpDir();
  16728. uint GetNumLogicalCPUs();
  16729. uint GetNumPhysicalCPUs();
  16730. String GetOSVersion();
  16731. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  16732. Array<String> GetObjectCategories();
  16733. Array<String> GetObjectsByCategory(const String&);
  16734. String GetParentPath(const String&);
  16735. String GetPath(const String&);
  16736. String GetPlatform();
  16737. uint GetRG16Format();
  16738. uint GetRGBA16Format();
  16739. uint GetRGBAFloat16Format();
  16740. uint GetRGBAFloat32Format();
  16741. uint GetRGBAFormat();
  16742. uint GetRGBFormat();
  16743. uint GetRGFloat16Format();
  16744. uint GetRGFloat32Format();
  16745. uint GetRandomSeed();
  16746. uint GetReadableDepthFormat();
  16747. String GetTextureUnitName(TextureUnit);
  16748. uint64 GetTotalMemory();
  16749. VariantType GetVariantTypeFromName(const String&);
  16750. String GetVariantTypeName(VariantType);
  16751. bool HasSubscribedToEvent(Object, const String&);
  16752. bool HasSubscribedToEvent(const String&);
  16753. float InverseLerp(float, float, float);
  16754. bool IsAbsolutePath(const String&);
  16755. bool IsAlpha(uint);
  16756. bool IsDigit(uint);
  16757. bool IsNaN(double);
  16758. bool IsNaN(float);
  16759. bool IsPowerOfTwo(uint);
  16760. bool IsReplicatedID(uint);
  16761. String Join(Array<String>&, const String&);
  16762. float Lerp(float, float, float);
  16763. float Ln(float);
  16764. uint LogBaseTwo(uint);
  16765. void MarkNetworkUpdate();
  16766. float Max(float, float);
  16767. int Max(int, int);
  16768. float Min(float, float);
  16769. int Min(int, int);
  16770. float Mod(float, float);
  16771. uint NextPowerOfTwo(uint);
  16772. void OpenConsoleWindow();
  16773. float Pow(float, float);
  16774. void Print(bool, bool = false);
  16775. void Print(const String&, bool = false);
  16776. void Print(const Variant&, bool = false);
  16777. void Print(float, bool = false);
  16778. void Print(int, bool = false);
  16779. void Print(int64, bool = false);
  16780. void Print(uint, bool = false);
  16781. void Print(uint64, bool = false);
  16782. void PrintCallStack(bool = false);
  16783. float Random();
  16784. float Random(float);
  16785. float Random(float, float);
  16786. int RandomInt();
  16787. int RandomInt(int);
  16788. int RandomInt(int, int);
  16789. float RandomNormal(float, float);
  16790. void RegisterEventName(const String&);
  16791. void Remove();
  16792. String RemoveTrailingSlash(const String&);
  16793. String ReplaceExtension(const String&, const String&);
  16794. float Round(float);
  16795. int RoundToInt(float);
  16796. uint SDBMHash(uint, uint8);
  16797. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  16798. void SetGlobalVar(const String&, Variant&);
  16799. void SetMiniDumpDir(const String&);
  16800. void SetRandomSeed(uint);
  16801. float Sign(float);
  16802. float Sin(float);
  16803. float SmoothStep(float, float, float);
  16804. float Sqrt(float);
  16805. float StableRandom(const Vector2&);
  16806. float StableRandom(const Vector3&);
  16807. float StableRandom(float);
  16808. const String& GetTypeName(StringHash);
  16809. void SubscribeToEvent(Object, const String&, const String&);
  16810. void SubscribeToEvent(const String&, const String&);
  16811. float Tan(float);
  16812. uint ToLower(uint);
  16813. String ToStringHex(int);
  16814. uint ToUpper(uint);
  16815. void UnsubscribeFromAllEvents();
  16816. void UnsubscribeFromAllEventsExcept(Array<String>);
  16817. void UnsubscribeFromEvent(Object, const String&);
  16818. void UnsubscribeFromEvent(const String&);
  16819. void UnsubscribeFromEvents(Object);
  16820. Vector2 VectorCeil(const Vector2&);
  16821. Vector3 VectorCeil(const Vector3&);
  16822. Vector4 VectorCeil(const Vector4&);
  16823. IntVector2 VectorCeilToInt(const Vector2&);
  16824. IntVector3 VectorCeilToInt(const Vector3&);
  16825. Vector2 VectorFloor(const Vector2&);
  16826. Vector3 VectorFloor(const Vector3&);
  16827. Vector4 VectorFloor(const Vector4&);
  16828. IntVector2 VectorFloorToInt(const Vector2&);
  16829. IntVector3 VectorFloorToInt(const Vector3&);
  16830. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  16831. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  16832. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  16833. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  16834. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  16835. Vector2 VectorMax(const Vector2&, const Vector2&);
  16836. Vector3 VectorMax(const Vector3&, const Vector3&);
  16837. Vector4 VectorMax(const Vector4&, const Vector4&);
  16838. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  16839. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  16840. Vector2 VectorMin(const Vector2&, const Vector2&);
  16841. Vector3 VectorMin(const Vector3&, const Vector3&);
  16842. Vector4 VectorMin(const Vector4&, const Vector4&);
  16843. Vector2 VectorRound(const Vector2&);
  16844. Vector3 VectorRound(const Vector3&);
  16845. Vector4 VectorRound(const Vector4&);
  16846. IntVector2 VectorRoundToInt(const Vector2&);
  16847. IntVector3 VectorRoundToInt(const Vector3&);
  16848. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  16849. // Global properties
  16850. DBAPI DBAPI;
  16851. Audio audio;
  16852. ResourceCache cache;
  16853. Console console;
  16854. Database database;
  16855. DebugHud debugHud;
  16856. DebugRenderer debugRenderer;
  16857. Engine engine;
  16858. FileSystem fileSystem;
  16859. VariantMap globalVars;
  16860. Graphics graphics;
  16861. Input input;
  16862. Localization localization;
  16863. Log log;
  16864. Network network;
  16865. Node node;
  16866. Octree octree;
  16867. PhysicsWorld physicsWorld;
  16868. PhysicsWorld2D physicsWorld2D;
  16869. Renderer renderer;
  16870. ResourceCache resourceCache;
  16871. Scene scene;
  16872. Script script;
  16873. ScriptFile scriptFile;
  16874. ScriptInstance self;
  16875. Time time;
  16876. UI ui;
  16877. // Global constants
  16878. Color BLACK;
  16879. Color BLUE;
  16880. Color CYAN;
  16881. uint DEBUGHUD_SHOW_ALL;
  16882. uint DEBUGHUD_SHOW_EVENTPROFILER;
  16883. uint DEBUGHUD_SHOW_MEMORY;
  16884. uint DEBUGHUD_SHOW_MODE;
  16885. uint DEBUGHUD_SHOW_NONE;
  16886. uint DEBUGHUD_SHOW_PROFILER;
  16887. uint DEBUGHUD_SHOW_STATS;
  16888. uint DEFAULT_LIGHTMASK;
  16889. uint DEFAULT_VIEWMASK;
  16890. uint DRAWABLE_ANY;
  16891. uint DRAWABLE_GEOMETRY;
  16892. uint DRAWABLE_GEOMETRY2D;
  16893. uint DRAWABLE_LIGHT;
  16894. uint DRAWABLE_ZONE;
  16895. uint FIRST_LOCAL_ID;
  16896. uint FIRST_REPLICATED_ID;
  16897. uint FLIP_ALL;
  16898. uint FLIP_DIAGONAL;
  16899. uint FLIP_HORIZONTAL;
  16900. uint FLIP_RESERVED;
  16901. uint FLIP_VERTICAL;
  16902. Color GRAY;
  16903. Color GREEN;
  16904. uint LAST_LOCAL_ID;
  16905. uint LAST_REPLICATED_ID;
  16906. int LOG_DEBUG;
  16907. int LOG_ERROR;
  16908. int LOG_INFO;
  16909. int LOG_NONE;
  16910. int LOG_TRACE;
  16911. int LOG_WARNING;
  16912. Color MAGENTA;
  16913. float M_DEGTORAD;
  16914. float M_DEGTORAD_2;
  16915. float M_EPSILON;
  16916. float M_HALF_PI;
  16917. float M_INFINITY;
  16918. float M_LARGE_EPSILON;
  16919. float M_LARGE_VALUE;
  16920. int M_MAX_INT;
  16921. uint M_MAX_UNSIGNED;
  16922. int M_MIN_INT;
  16923. uint M_MIN_UNSIGNED;
  16924. float M_PI;
  16925. float M_RADTODEG;
  16926. uint NPOS;
  16927. float PIXEL_SIZE;
  16928. Color RED;
  16929. uint SCAN_DIRS;
  16930. uint SCAN_FILES;
  16931. uint SCAN_HIDDEN;
  16932. String SOUND_AMBIENT;
  16933. String SOUND_EFFECT;
  16934. String SOUND_MASTER;
  16935. String SOUND_MUSIC;
  16936. String SOUND_VOICE;
  16937. Color TRANSPARENT_BLACK;
  16938. Color WHITE;
  16939. Color YELLOW;