AngelScriptAPI.h 420 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454
  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 SetEnabledRecursive(bool);
  887. void SetFixedHeight(int);
  888. void SetFixedSize(int, int);
  889. void SetFixedWidth(int);
  890. void SetFullImageRect();
  891. void SetHoverOffset(int, int);
  892. void SetInterceptNetworkUpdate(const String&, bool);
  893. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  894. void SetMaxAnchor(float, float);
  895. void SetMaxSize(int, int);
  896. void SetMinAnchor(float, float);
  897. void SetMinSize(int, int);
  898. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  899. void SetPivot(float, float);
  900. void SetPosition(int, int);
  901. void SetSize(int, int);
  902. bool SetStyle(const String&, XMLFile = null);
  903. bool SetStyle(const XMLElement&);
  904. bool SetStyleAuto(XMLFile = null);
  905. void UpdateLayout();
  906. const Variant& GetVar(const StringHash&);
  907. // Properties:
  908. bool animationEnabled;
  909. /* readonly */
  910. Array<Variant> attributeDefaults;
  911. /* readonly */
  912. Array<AttributeInfo> attributeInfos;
  913. Array<Variant> attributes;
  914. BlendMode blendMode;
  915. IntRect border;
  916. bool bringToBack;
  917. bool bringToFront;
  918. /* readonly */
  919. String category;
  920. /* readonly */
  921. IntVector2 childOffset;
  922. /* readonly */
  923. Array<UIElement> children;
  924. IntRect clipBorder;
  925. bool clipChildren;
  926. /* writeonly */
  927. Color color;
  928. /* readonly */
  929. bool colorGradient;
  930. Array<Color> colors;
  931. /* readonly */
  932. IntRect combinedScreenRect;
  933. XMLFile defaultStyle;
  934. /* readonly */
  935. float derivedOpacity;
  936. /* readonly */
  937. uint dragButtonCombo;
  938. /* readonly */
  939. int dragButtonCount;
  940. uint dragDropMode;
  941. bool editable;
  942. bool elementEventSender;
  943. bool enableAnchor;
  944. bool enabled;
  945. /* readonly */
  946. bool enabledSelf;
  947. /* readonly */
  948. bool fixedHeight;
  949. /* readonly */
  950. bool fixedSize;
  951. /* readonly */
  952. bool fixedWidth;
  953. bool focus;
  954. FocusMode focusMode;
  955. int height;
  956. HorizontalAlignment horizontalAlignment;
  957. IntVector2 hoverOffset;
  958. /* readonly */
  959. bool hovering;
  960. IntRect imageBorder;
  961. IntRect imageRect;
  962. int indent;
  963. int indentSpacing;
  964. /* readonly */
  965. int indentWidth;
  966. bool internal;
  967. IntRect layoutBorder;
  968. Vector2 layoutFlexScale;
  969. LayoutMode layoutMode;
  970. int layoutSpacing;
  971. Material material;
  972. Vector2 maxAnchor;
  973. int maxHeight;
  974. IntVector2 maxOffset;
  975. IntVector2 maxSize;
  976. int maxWidth;
  977. Vector2 minAnchor;
  978. int minHeight;
  979. IntVector2 minOffset;
  980. IntVector2 minSize;
  981. int minWidth;
  982. String name;
  983. /* readonly */
  984. uint numAllChildren;
  985. /* readonly */
  986. uint numAttributes;
  987. /* readonly */
  988. uint numChildren;
  989. ObjectAnimation objectAnimation;
  990. float opacity;
  991. UIElement parent;
  992. Vector2 pivot;
  993. IntVector2 position;
  994. int priority;
  995. /* readonly */
  996. int refs;
  997. /* readonly */
  998. UIElement root;
  999. /* readonly */
  1000. IntVector2 screenPosition;
  1001. bool selected;
  1002. IntVector2 size;
  1003. bool sortChildren;
  1004. String style;
  1005. /* readonly */
  1006. Array<String> tags;
  1007. bool temporary;
  1008. Texture texture;
  1009. bool tiled;
  1010. TraversalMode traversalMode;
  1011. /* readonly */
  1012. StringHash type;
  1013. /* readonly */
  1014. String typeName;
  1015. bool useDerivedOpacity;
  1016. /* readonly */
  1017. VariantMap vars;
  1018. VerticalAlignment verticalAlignment;
  1019. bool visible;
  1020. /* readonly */
  1021. bool visibleEffective;
  1022. /* readonly */
  1023. int weakRefs;
  1024. int width;
  1025. };
  1026. class BoundingBox
  1027. {
  1028. public:
  1029. BoundingBox();
  1030. BoundingBox(const BoundingBox&in);
  1031. BoundingBox(const Rect&in);
  1032. BoundingBox(const Vector3&in, const Vector3&in);
  1033. BoundingBox(float, float);
  1034. BoundingBox(const Frustum&in);
  1035. BoundingBox(const Polyhedron&in);
  1036. BoundingBox(const Sphere&in);
  1037. // Methods:
  1038. void Clear();
  1039. void Clip(const BoundingBox&);
  1040. void Define(const BoundingBox&);
  1041. void Define(const Frustum&);
  1042. void Define(const Polyhedron&);
  1043. void Define(const Sphere&);
  1044. void Define(const Vector3&);
  1045. void Define(const Vector3&, const Vector3&);
  1046. void Define(float, float);
  1047. bool Defined() const;
  1048. float DistanceToPoint(const Vector3&) const;
  1049. Intersection IsInside(const BoundingBox&) const;
  1050. Intersection IsInside(const Sphere&) const;
  1051. Intersection IsInside(const Vector3&) const;
  1052. Intersection IsInsideFast(const BoundingBox&) const;
  1053. Intersection IsInsideFast(const Sphere&) const;
  1054. void Merge(const BoundingBox&);
  1055. void Merge(const Frustum&);
  1056. void Merge(const Polyhedron&);
  1057. void Merge(const Sphere&);
  1058. void Merge(const Vector3&);
  1059. Rect Projected(const Matrix4&) const;
  1060. String ToString() const;
  1061. void Transform(const Matrix3&);
  1062. void Transform(const Matrix3x4&);
  1063. BoundingBox Transformed(const Matrix3&) const;
  1064. BoundingBox Transformed(const Matrix3x4&) const;
  1065. // Properties:
  1066. /* readonly */
  1067. Vector3 center;
  1068. /* readonly */
  1069. Vector3 halfSize;
  1070. Vector3 max;
  1071. Vector3 min;
  1072. /* readonly */
  1073. Vector3 size;
  1074. };
  1075. class Button
  1076. {
  1077. public:
  1078. Button();
  1079. Button(const String&in);
  1080. // Methods:
  1081. void AddChild(UIElement);
  1082. void AddTag(const String&);
  1083. void AddTags(const String&, int8 = ';');
  1084. void ApplyAttributes();
  1085. void BringToFront();
  1086. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1087. void DisableLayoutUpdate();
  1088. IntVector2 ElementToScreen(const IntVector2&);
  1089. void EnableLayoutUpdate();
  1090. uint FindChild(UIElement) const;
  1091. Variant GetAttribute(const String&) const;
  1092. ValueAnimation GetAttributeAnimation(const String&) const;
  1093. float GetAttributeAnimationSpeed(const String&) const;
  1094. float GetAttributeAnimationTime(const String&) const;
  1095. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1096. Variant GetAttributeDefault(const String&) const;
  1097. UIElement GetChild(const String&, bool = false) const;
  1098. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1099. Array<UIElement> GetChildren(bool = false) const;
  1100. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1101. UIElement GetElementEventSender() const;
  1102. bool GetInterceptNetworkUpdate(const String&) const;
  1103. uint GetNumChildren(bool) const;
  1104. bool HasSubscribedToEvent(Object, const String&);
  1105. bool HasSubscribedToEvent(const String&);
  1106. bool HasTag(const String&) const;
  1107. void InsertChild(uint, UIElement);
  1108. bool IsChildOf(UIElement) const;
  1109. bool IsInside(IntVector2, bool);
  1110. bool IsInsideCombined(IntVector2, bool);
  1111. bool Load(File);
  1112. bool Load(VectorBuffer&);
  1113. UIElement LoadChildXML(XMLFile, XMLFile);
  1114. UIElement LoadChildXML(const XMLElement&, XMLFile);
  1115. bool LoadJSON(const JSONValue&);
  1116. bool LoadXML(File);
  1117. bool LoadXML(VectorBuffer&);
  1118. bool LoadXML(XMLFile, XMLFile);
  1119. bool LoadXML(const XMLElement&, XMLFile);
  1120. bool LoadXML(const XMLElement&);
  1121. void MarkNetworkUpdate() const;
  1122. void Remove();
  1123. void RemoveAllChildren();
  1124. void RemoveAllTags();
  1125. void RemoveAttributeAnimation(const String&);
  1126. void RemoveChild(UIElement, uint = 0);
  1127. void RemoveChild(uint);
  1128. void RemoveInstanceDefault();
  1129. void RemoveObjectAnimation();
  1130. bool RemoveTag(const String&);
  1131. void ResetDeepEnabled();
  1132. void ResetToDefault();
  1133. bool Save(File) const;
  1134. bool Save(VectorBuffer&) const;
  1135. bool SaveJSON(JSONValue&) const;
  1136. bool SaveXML(File, const String& = "\t");
  1137. bool SaveXML(VectorBuffer&, const String& = "\t");
  1138. bool SaveXML(XMLElement&) const;
  1139. IntVector2 ScreenToElement(const IntVector2&);
  1140. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1141. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1142. void SetAnimationTime(float);
  1143. bool SetAttribute(const String&, const Variant&);
  1144. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1145. void SetAttributeAnimationSpeed(const String&, float);
  1146. void SetAttributeAnimationTime(const String&, float);
  1147. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1148. void SetDeepEnabled(bool);
  1149. void SetDisabledOffset(int, int);
  1150. void SetEnabledRecursive(bool);
  1151. void SetFixedHeight(int);
  1152. void SetFixedSize(int, int);
  1153. void SetFixedWidth(int);
  1154. void SetFullImageRect();
  1155. void SetHoverOffset(int, int);
  1156. void SetInterceptNetworkUpdate(const String&, bool);
  1157. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1158. void SetMaxAnchor(float, float);
  1159. void SetMaxSize(int, int);
  1160. void SetMinAnchor(float, float);
  1161. void SetMinSize(int, int);
  1162. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1163. void SetPivot(float, float);
  1164. void SetPosition(int, int);
  1165. void SetPressedChildOffset(int, int);
  1166. void SetPressedOffset(int, int);
  1167. void SetRepeat(float, float);
  1168. void SetSize(int, int);
  1169. bool SetStyle(const String&, XMLFile = null);
  1170. bool SetStyle(const XMLElement&);
  1171. bool SetStyleAuto(XMLFile = null);
  1172. void UpdateLayout();
  1173. const Variant& GetVar(const StringHash&);
  1174. // Properties:
  1175. bool animationEnabled;
  1176. /* readonly */
  1177. Array<Variant> attributeDefaults;
  1178. /* readonly */
  1179. Array<AttributeInfo> attributeInfos;
  1180. Array<Variant> attributes;
  1181. BlendMode blendMode;
  1182. IntRect border;
  1183. bool bringToBack;
  1184. bool bringToFront;
  1185. /* readonly */
  1186. String category;
  1187. /* readonly */
  1188. IntVector2 childOffset;
  1189. /* readonly */
  1190. Array<UIElement> children;
  1191. IntRect clipBorder;
  1192. bool clipChildren;
  1193. /* writeonly */
  1194. Color color;
  1195. /* readonly */
  1196. bool colorGradient;
  1197. Array<Color> colors;
  1198. /* readonly */
  1199. IntRect combinedScreenRect;
  1200. XMLFile defaultStyle;
  1201. /* readonly */
  1202. float derivedOpacity;
  1203. IntVector2 disabledOffset;
  1204. /* readonly */
  1205. uint dragButtonCombo;
  1206. /* readonly */
  1207. int dragButtonCount;
  1208. uint dragDropMode;
  1209. bool editable;
  1210. bool elementEventSender;
  1211. bool enableAnchor;
  1212. bool enabled;
  1213. /* readonly */
  1214. bool enabledSelf;
  1215. /* readonly */
  1216. bool fixedHeight;
  1217. /* readonly */
  1218. bool fixedSize;
  1219. /* readonly */
  1220. bool fixedWidth;
  1221. bool focus;
  1222. FocusMode focusMode;
  1223. int height;
  1224. HorizontalAlignment horizontalAlignment;
  1225. IntVector2 hoverOffset;
  1226. /* readonly */
  1227. bool hovering;
  1228. IntRect imageBorder;
  1229. IntRect imageRect;
  1230. int indent;
  1231. int indentSpacing;
  1232. /* readonly */
  1233. int indentWidth;
  1234. bool internal;
  1235. IntRect layoutBorder;
  1236. Vector2 layoutFlexScale;
  1237. LayoutMode layoutMode;
  1238. int layoutSpacing;
  1239. Material material;
  1240. Vector2 maxAnchor;
  1241. int maxHeight;
  1242. IntVector2 maxOffset;
  1243. IntVector2 maxSize;
  1244. int maxWidth;
  1245. Vector2 minAnchor;
  1246. int minHeight;
  1247. IntVector2 minOffset;
  1248. IntVector2 minSize;
  1249. int minWidth;
  1250. String name;
  1251. /* readonly */
  1252. uint numAllChildren;
  1253. /* readonly */
  1254. uint numAttributes;
  1255. /* readonly */
  1256. uint numChildren;
  1257. ObjectAnimation objectAnimation;
  1258. float opacity;
  1259. UIElement parent;
  1260. Vector2 pivot;
  1261. IntVector2 position;
  1262. /* readonly */
  1263. bool pressed;
  1264. IntVector2 pressedChildOffset;
  1265. IntVector2 pressedOffset;
  1266. int priority;
  1267. /* readonly */
  1268. int refs;
  1269. float repeatDelay;
  1270. float repeatRate;
  1271. /* readonly */
  1272. UIElement root;
  1273. /* readonly */
  1274. IntVector2 screenPosition;
  1275. bool selected;
  1276. IntVector2 size;
  1277. bool sortChildren;
  1278. String style;
  1279. /* readonly */
  1280. Array<String> tags;
  1281. bool temporary;
  1282. Texture texture;
  1283. bool tiled;
  1284. TraversalMode traversalMode;
  1285. /* readonly */
  1286. StringHash type;
  1287. /* readonly */
  1288. String typeName;
  1289. bool useDerivedOpacity;
  1290. /* readonly */
  1291. VariantMap vars;
  1292. VerticalAlignment verticalAlignment;
  1293. bool visible;
  1294. /* readonly */
  1295. bool visibleEffective;
  1296. /* readonly */
  1297. int weakRefs;
  1298. int width;
  1299. };
  1300. class Camera
  1301. {
  1302. public:
  1303. // Methods:
  1304. void ApplyAttributes();
  1305. void DrawDebugGeometry(DebugRenderer, bool);
  1306. Variant GetAttribute(const String&) const;
  1307. ValueAnimation GetAttributeAnimation(const String&) const;
  1308. float GetAttributeAnimationSpeed(const String&) const;
  1309. float GetAttributeAnimationTime(const String&) const;
  1310. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1311. Variant GetAttributeDefault(const String&) const;
  1312. float GetDistance(const Vector3&) const;
  1313. float GetDistanceSquared(const Vector3&) const;
  1314. bool GetInterceptNetworkUpdate(const String&) const;
  1315. Ray GetScreenRay(float, float) const;
  1316. Frustum GetSplitFrustum(float, float) const;
  1317. bool HasSubscribedToEvent(Object, const String&);
  1318. bool HasSubscribedToEvent(const String&);
  1319. bool Load(File);
  1320. bool Load(VectorBuffer&);
  1321. bool LoadJSON(const JSONValue&);
  1322. bool LoadXML(const XMLElement&);
  1323. void MarkNetworkUpdate() const;
  1324. void Remove();
  1325. void RemoveAttributeAnimation(const String&);
  1326. void RemoveInstanceDefault();
  1327. void RemoveObjectAnimation();
  1328. void ResetToDefault();
  1329. bool Save(File) const;
  1330. bool Save(VectorBuffer&) const;
  1331. bool SaveJSON(JSONValue&) const;
  1332. bool SaveXML(XMLElement&) const;
  1333. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1334. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1335. void SetAnimationTime(float);
  1336. bool SetAttribute(const String&, const Variant&);
  1337. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1338. void SetAttributeAnimationSpeed(const String&, float);
  1339. void SetAttributeAnimationTime(const String&, float);
  1340. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1341. void SetInterceptNetworkUpdate(const String&, bool);
  1342. void SetOrthoSize(const Vector2&);
  1343. Vector2 WorldToScreenPoint(const Vector3&) const;
  1344. // Properties:
  1345. bool animationEnabled;
  1346. float aspectRatio;
  1347. /* readonly */
  1348. Array<Variant> attributeDefaults;
  1349. /* readonly */
  1350. Array<AttributeInfo> attributeInfos;
  1351. Array<Variant> attributes;
  1352. bool autoAspectRatio;
  1353. /* readonly */
  1354. String category;
  1355. Plane clipPlane;
  1356. /* readonly */
  1357. Matrix3x4 effectiveWorldTransform;
  1358. bool enabled;
  1359. /* readonly */
  1360. bool enabledEffective;
  1361. float farClip;
  1362. FillMode fillMode;
  1363. float fov;
  1364. /* readonly */
  1365. Frustum frustum;
  1366. /* readonly */
  1367. Matrix4 gpuProjection;
  1368. /* readonly */
  1369. float halfViewSize;
  1370. /* readonly */
  1371. uint id;
  1372. float lodBias;
  1373. float nearClip;
  1374. /* readonly */
  1375. Node node;
  1376. /* readonly */
  1377. uint numAttributes;
  1378. ObjectAnimation objectAnimation;
  1379. float orthoSize;
  1380. bool orthographic;
  1381. Matrix4 projection;
  1382. Vector2 projectionOffset;
  1383. Plane reflectionPlane;
  1384. /* readonly */
  1385. int refs;
  1386. /* readonly */
  1387. bool replicated;
  1388. bool temporary;
  1389. /* readonly */
  1390. StringHash type;
  1391. /* readonly */
  1392. String typeName;
  1393. bool useClipping;
  1394. bool useReflection;
  1395. /* readonly */
  1396. Matrix3x4 view;
  1397. uint viewMask;
  1398. uint viewOverrideFlags;
  1399. /* readonly */
  1400. Frustum viewSpaceFrustum;
  1401. /* readonly */
  1402. int weakRefs;
  1403. float zoom;
  1404. };
  1405. class CascadeParameters
  1406. {
  1407. public:
  1408. CascadeParameters();
  1409. CascadeParameters(const CascadeParameters&in);
  1410. CascadeParameters(float, float, float, float, float, float biasAutoAdjust = 1.0);
  1411. // Properties:
  1412. float biasAutoAdjust;
  1413. float fadeStart;
  1414. float split1;
  1415. float split2;
  1416. float split3;
  1417. float split4;
  1418. };
  1419. class CheckBox
  1420. {
  1421. public:
  1422. CheckBox();
  1423. CheckBox(const String&in);
  1424. // Methods:
  1425. void AddChild(UIElement);
  1426. void AddTag(const String&);
  1427. void AddTags(const String&, int8 = ';');
  1428. void ApplyAttributes();
  1429. void BringToFront();
  1430. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1431. void DisableLayoutUpdate();
  1432. IntVector2 ElementToScreen(const IntVector2&);
  1433. void EnableLayoutUpdate();
  1434. uint FindChild(UIElement) const;
  1435. Variant GetAttribute(const String&) const;
  1436. ValueAnimation GetAttributeAnimation(const String&) const;
  1437. float GetAttributeAnimationSpeed(const String&) const;
  1438. float GetAttributeAnimationTime(const String&) const;
  1439. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1440. Variant GetAttributeDefault(const String&) const;
  1441. UIElement GetChild(const String&, bool = false) const;
  1442. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1443. Array<UIElement> GetChildren(bool = false) const;
  1444. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  1445. UIElement GetElementEventSender() const;
  1446. bool GetInterceptNetworkUpdate(const String&) const;
  1447. uint GetNumChildren(bool) const;
  1448. bool HasSubscribedToEvent(Object, const String&);
  1449. bool HasSubscribedToEvent(const String&);
  1450. bool HasTag(const String&) const;
  1451. void InsertChild(uint, UIElement);
  1452. bool IsChildOf(UIElement) const;
  1453. bool IsInside(IntVector2, bool);
  1454. bool IsInsideCombined(IntVector2, bool);
  1455. bool Load(File);
  1456. bool Load(VectorBuffer&);
  1457. UIElement LoadChildXML(XMLFile, XMLFile);
  1458. UIElement LoadChildXML(const XMLElement&, XMLFile);
  1459. bool LoadJSON(const JSONValue&);
  1460. bool LoadXML(File);
  1461. bool LoadXML(VectorBuffer&);
  1462. bool LoadXML(XMLFile, XMLFile);
  1463. bool LoadXML(const XMLElement&, XMLFile);
  1464. bool LoadXML(const XMLElement&);
  1465. void MarkNetworkUpdate() const;
  1466. void Remove();
  1467. void RemoveAllChildren();
  1468. void RemoveAllTags();
  1469. void RemoveAttributeAnimation(const String&);
  1470. void RemoveChild(UIElement, uint = 0);
  1471. void RemoveChild(uint);
  1472. void RemoveInstanceDefault();
  1473. void RemoveObjectAnimation();
  1474. bool RemoveTag(const String&);
  1475. void ResetDeepEnabled();
  1476. void ResetToDefault();
  1477. bool Save(File) const;
  1478. bool Save(VectorBuffer&) const;
  1479. bool SaveJSON(JSONValue&) const;
  1480. bool SaveXML(File, const String& = "\t");
  1481. bool SaveXML(VectorBuffer&, const String& = "\t");
  1482. bool SaveXML(XMLElement&) const;
  1483. IntVector2 ScreenToElement(const IntVector2&);
  1484. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1485. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1486. void SetAnimationTime(float);
  1487. bool SetAttribute(const String&, const Variant&);
  1488. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1489. void SetAttributeAnimationSpeed(const String&, float);
  1490. void SetAttributeAnimationTime(const String&, float);
  1491. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1492. void SetCheckedOffset(int, int);
  1493. void SetDeepEnabled(bool);
  1494. void SetEnabledRecursive(bool);
  1495. void SetFixedHeight(int);
  1496. void SetFixedSize(int, int);
  1497. void SetFixedWidth(int);
  1498. void SetFullImageRect();
  1499. void SetHoverOffset(int, int);
  1500. void SetInterceptNetworkUpdate(const String&, bool);
  1501. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1502. void SetMaxAnchor(float, float);
  1503. void SetMaxSize(int, int);
  1504. void SetMinAnchor(float, float);
  1505. void SetMinSize(int, int);
  1506. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1507. void SetPivot(float, float);
  1508. void SetPosition(int, int);
  1509. void SetSize(int, int);
  1510. bool SetStyle(const String&, XMLFile = null);
  1511. bool SetStyle(const XMLElement&);
  1512. bool SetStyleAuto(XMLFile = null);
  1513. void UpdateLayout();
  1514. const Variant& GetVar(const StringHash&);
  1515. // Properties:
  1516. bool animationEnabled;
  1517. /* readonly */
  1518. Array<Variant> attributeDefaults;
  1519. /* readonly */
  1520. Array<AttributeInfo> attributeInfos;
  1521. Array<Variant> attributes;
  1522. BlendMode blendMode;
  1523. IntRect border;
  1524. bool bringToBack;
  1525. bool bringToFront;
  1526. /* readonly */
  1527. String category;
  1528. bool checked;
  1529. IntVector2 checkedOffset;
  1530. /* readonly */
  1531. IntVector2 childOffset;
  1532. /* readonly */
  1533. Array<UIElement> children;
  1534. IntRect clipBorder;
  1535. bool clipChildren;
  1536. /* writeonly */
  1537. Color color;
  1538. /* readonly */
  1539. bool colorGradient;
  1540. Array<Color> colors;
  1541. /* readonly */
  1542. IntRect combinedScreenRect;
  1543. XMLFile defaultStyle;
  1544. /* readonly */
  1545. float derivedOpacity;
  1546. /* readonly */
  1547. uint dragButtonCombo;
  1548. /* readonly */
  1549. int dragButtonCount;
  1550. uint dragDropMode;
  1551. bool editable;
  1552. bool elementEventSender;
  1553. bool enableAnchor;
  1554. bool enabled;
  1555. /* readonly */
  1556. bool enabledSelf;
  1557. /* readonly */
  1558. bool fixedHeight;
  1559. /* readonly */
  1560. bool fixedSize;
  1561. /* readonly */
  1562. bool fixedWidth;
  1563. bool focus;
  1564. FocusMode focusMode;
  1565. int height;
  1566. HorizontalAlignment horizontalAlignment;
  1567. IntVector2 hoverOffset;
  1568. /* readonly */
  1569. bool hovering;
  1570. IntRect imageBorder;
  1571. IntRect imageRect;
  1572. int indent;
  1573. int indentSpacing;
  1574. /* readonly */
  1575. int indentWidth;
  1576. bool internal;
  1577. IntRect layoutBorder;
  1578. Vector2 layoutFlexScale;
  1579. LayoutMode layoutMode;
  1580. int layoutSpacing;
  1581. Material material;
  1582. Vector2 maxAnchor;
  1583. int maxHeight;
  1584. IntVector2 maxOffset;
  1585. IntVector2 maxSize;
  1586. int maxWidth;
  1587. Vector2 minAnchor;
  1588. int minHeight;
  1589. IntVector2 minOffset;
  1590. IntVector2 minSize;
  1591. int minWidth;
  1592. String name;
  1593. /* readonly */
  1594. uint numAllChildren;
  1595. /* readonly */
  1596. uint numAttributes;
  1597. /* readonly */
  1598. uint numChildren;
  1599. ObjectAnimation objectAnimation;
  1600. float opacity;
  1601. UIElement parent;
  1602. Vector2 pivot;
  1603. IntVector2 position;
  1604. int priority;
  1605. /* readonly */
  1606. int refs;
  1607. /* readonly */
  1608. UIElement root;
  1609. /* readonly */
  1610. IntVector2 screenPosition;
  1611. bool selected;
  1612. IntVector2 size;
  1613. bool sortChildren;
  1614. String style;
  1615. /* readonly */
  1616. Array<String> tags;
  1617. bool temporary;
  1618. Texture texture;
  1619. bool tiled;
  1620. TraversalMode traversalMode;
  1621. /* readonly */
  1622. StringHash type;
  1623. /* readonly */
  1624. String typeName;
  1625. bool useDerivedOpacity;
  1626. /* readonly */
  1627. VariantMap vars;
  1628. VerticalAlignment verticalAlignment;
  1629. bool visible;
  1630. /* readonly */
  1631. bool visibleEffective;
  1632. /* readonly */
  1633. int weakRefs;
  1634. int width;
  1635. };
  1636. class CollisionBox2D
  1637. {
  1638. public:
  1639. // Methods:
  1640. void ApplyAttributes();
  1641. void DrawDebugGeometry(DebugRenderer, bool);
  1642. Variant GetAttribute(const String&) const;
  1643. ValueAnimation GetAttributeAnimation(const String&) const;
  1644. float GetAttributeAnimationSpeed(const String&) const;
  1645. float GetAttributeAnimationTime(const String&) const;
  1646. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1647. Variant GetAttributeDefault(const String&) const;
  1648. bool GetInterceptNetworkUpdate(const String&) const;
  1649. bool HasSubscribedToEvent(Object, const String&);
  1650. bool HasSubscribedToEvent(const String&);
  1651. bool Load(File);
  1652. bool Load(VectorBuffer&);
  1653. bool LoadJSON(const JSONValue&);
  1654. bool LoadXML(const XMLElement&);
  1655. void MarkNetworkUpdate() const;
  1656. void Remove();
  1657. void RemoveAttributeAnimation(const String&);
  1658. void RemoveInstanceDefault();
  1659. void RemoveObjectAnimation();
  1660. void ResetToDefault();
  1661. bool Save(File) const;
  1662. bool Save(VectorBuffer&) const;
  1663. bool SaveJSON(JSONValue&) const;
  1664. bool SaveXML(XMLElement&) const;
  1665. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1666. void SetAnimationTime(float);
  1667. bool SetAttribute(const String&, const Variant&);
  1668. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1669. void SetAttributeAnimationSpeed(const String&, float);
  1670. void SetAttributeAnimationTime(const String&, float);
  1671. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1672. void SetCenter(float, float);
  1673. void SetInterceptNetworkUpdate(const String&, bool);
  1674. void SetSize(float, float);
  1675. // Properties:
  1676. float angle;
  1677. bool animationEnabled;
  1678. /* readonly */
  1679. Array<Variant> attributeDefaults;
  1680. /* readonly */
  1681. Array<AttributeInfo> attributeInfos;
  1682. Array<Variant> attributes;
  1683. /* readonly */
  1684. String category;
  1685. int categoryBits;
  1686. Vector2 center;
  1687. float density;
  1688. bool enabled;
  1689. /* readonly */
  1690. bool enabledEffective;
  1691. float friction;
  1692. int groupIndex;
  1693. /* readonly */
  1694. uint id;
  1695. /* readonly */
  1696. float inertia;
  1697. int maskBits;
  1698. /* readonly */
  1699. float mass;
  1700. /* readonly */
  1701. Vector2 massCenter;
  1702. /* readonly */
  1703. Node node;
  1704. /* readonly */
  1705. uint numAttributes;
  1706. ObjectAnimation objectAnimation;
  1707. /* readonly */
  1708. int refs;
  1709. /* readonly */
  1710. bool replicated;
  1711. float restitution;
  1712. Vector2 size;
  1713. bool temporary;
  1714. bool trigger;
  1715. /* readonly */
  1716. StringHash type;
  1717. /* readonly */
  1718. String typeName;
  1719. /* readonly */
  1720. int weakRefs;
  1721. };
  1722. class CollisionChain2D
  1723. {
  1724. public:
  1725. // Methods:
  1726. void ApplyAttributes();
  1727. void DrawDebugGeometry(DebugRenderer, bool);
  1728. Variant GetAttribute(const String&) const;
  1729. ValueAnimation GetAttributeAnimation(const String&) const;
  1730. float GetAttributeAnimationSpeed(const String&) const;
  1731. float GetAttributeAnimationTime(const String&) const;
  1732. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1733. Variant GetAttributeDefault(const String&) const;
  1734. bool GetInterceptNetworkUpdate(const String&) const;
  1735. Array<Vector2> GetVertices() const;
  1736. bool HasSubscribedToEvent(Object, const String&);
  1737. bool HasSubscribedToEvent(const String&);
  1738. bool Load(File);
  1739. bool Load(VectorBuffer&);
  1740. bool LoadJSON(const JSONValue&);
  1741. bool LoadXML(const XMLElement&);
  1742. void MarkNetworkUpdate() const;
  1743. void Remove();
  1744. void RemoveAttributeAnimation(const String&);
  1745. void RemoveInstanceDefault();
  1746. void RemoveObjectAnimation();
  1747. void ResetToDefault();
  1748. bool Save(File) const;
  1749. bool Save(VectorBuffer&) const;
  1750. bool SaveJSON(JSONValue&) const;
  1751. bool SaveXML(XMLElement&) const;
  1752. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1753. void SetAnimationTime(float);
  1754. bool SetAttribute(const String&, const Variant&);
  1755. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1756. void SetAttributeAnimationSpeed(const String&, float);
  1757. void SetAttributeAnimationTime(const String&, float);
  1758. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1759. void SetInterceptNetworkUpdate(const String&, bool);
  1760. void SetVertex(uint, const Vector2&);
  1761. void SetVertices(Array<Vector2>);
  1762. const Vector2& GetVertex(uint) const;
  1763. // Properties:
  1764. bool animationEnabled;
  1765. /* readonly */
  1766. Array<Variant> attributeDefaults;
  1767. /* readonly */
  1768. Array<AttributeInfo> attributeInfos;
  1769. Array<Variant> attributes;
  1770. /* readonly */
  1771. String category;
  1772. int categoryBits;
  1773. float density;
  1774. bool enabled;
  1775. /* readonly */
  1776. bool enabledEffective;
  1777. float friction;
  1778. int groupIndex;
  1779. /* readonly */
  1780. uint id;
  1781. /* readonly */
  1782. float inertia;
  1783. bool loop;
  1784. int maskBits;
  1785. /* readonly */
  1786. float mass;
  1787. /* readonly */
  1788. Vector2 massCenter;
  1789. /* readonly */
  1790. Node node;
  1791. /* readonly */
  1792. uint numAttributes;
  1793. ObjectAnimation objectAnimation;
  1794. /* readonly */
  1795. int refs;
  1796. /* readonly */
  1797. bool replicated;
  1798. float restitution;
  1799. bool temporary;
  1800. bool trigger;
  1801. /* readonly */
  1802. StringHash type;
  1803. /* readonly */
  1804. String typeName;
  1805. uint vertexCount;
  1806. /* readonly */
  1807. int weakRefs;
  1808. };
  1809. class CollisionCircle2D
  1810. {
  1811. public:
  1812. // Methods:
  1813. void ApplyAttributes();
  1814. void DrawDebugGeometry(DebugRenderer, bool);
  1815. Variant GetAttribute(const String&) const;
  1816. ValueAnimation GetAttributeAnimation(const String&) const;
  1817. float GetAttributeAnimationSpeed(const String&) const;
  1818. float GetAttributeAnimationTime(const String&) const;
  1819. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1820. Variant GetAttributeDefault(const String&) const;
  1821. bool GetInterceptNetworkUpdate(const String&) const;
  1822. bool HasSubscribedToEvent(Object, const String&);
  1823. bool HasSubscribedToEvent(const String&);
  1824. bool Load(File);
  1825. bool Load(VectorBuffer&);
  1826. bool LoadJSON(const JSONValue&);
  1827. bool LoadXML(const XMLElement&);
  1828. void MarkNetworkUpdate() const;
  1829. void Remove();
  1830. void RemoveAttributeAnimation(const String&);
  1831. void RemoveInstanceDefault();
  1832. void RemoveObjectAnimation();
  1833. void ResetToDefault();
  1834. bool Save(File) const;
  1835. bool Save(VectorBuffer&) const;
  1836. bool SaveJSON(JSONValue&) const;
  1837. bool SaveXML(XMLElement&) const;
  1838. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1839. void SetAnimationTime(float);
  1840. bool SetAttribute(const String&, const Variant&);
  1841. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1842. void SetAttributeAnimationSpeed(const String&, float);
  1843. void SetAttributeAnimationTime(const String&, float);
  1844. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1845. void SetCenter(float, float);
  1846. void SetInterceptNetworkUpdate(const String&, bool);
  1847. // Properties:
  1848. bool animationEnabled;
  1849. /* readonly */
  1850. Array<Variant> attributeDefaults;
  1851. /* readonly */
  1852. Array<AttributeInfo> attributeInfos;
  1853. Array<Variant> attributes;
  1854. /* readonly */
  1855. String category;
  1856. int categoryBits;
  1857. Vector2 center;
  1858. float density;
  1859. bool enabled;
  1860. /* readonly */
  1861. bool enabledEffective;
  1862. float friction;
  1863. int groupIndex;
  1864. /* readonly */
  1865. uint id;
  1866. /* readonly */
  1867. float inertia;
  1868. int maskBits;
  1869. /* readonly */
  1870. float mass;
  1871. /* readonly */
  1872. Vector2 massCenter;
  1873. /* readonly */
  1874. Node node;
  1875. /* readonly */
  1876. uint numAttributes;
  1877. ObjectAnimation objectAnimation;
  1878. float radius;
  1879. /* readonly */
  1880. int refs;
  1881. /* readonly */
  1882. bool replicated;
  1883. float restitution;
  1884. bool temporary;
  1885. bool trigger;
  1886. /* readonly */
  1887. StringHash type;
  1888. /* readonly */
  1889. String typeName;
  1890. /* readonly */
  1891. int weakRefs;
  1892. };
  1893. class CollisionEdge2D
  1894. {
  1895. public:
  1896. // Methods:
  1897. void ApplyAttributes();
  1898. void DrawDebugGeometry(DebugRenderer, bool);
  1899. Variant GetAttribute(const String&) const;
  1900. ValueAnimation GetAttributeAnimation(const String&) const;
  1901. float GetAttributeAnimationSpeed(const String&) const;
  1902. float GetAttributeAnimationTime(const String&) const;
  1903. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1904. Variant GetAttributeDefault(const String&) const;
  1905. bool GetInterceptNetworkUpdate(const String&) const;
  1906. bool HasSubscribedToEvent(Object, const String&);
  1907. bool HasSubscribedToEvent(const String&);
  1908. bool Load(File);
  1909. bool Load(VectorBuffer&);
  1910. bool LoadJSON(const JSONValue&);
  1911. bool LoadXML(const XMLElement&);
  1912. void MarkNetworkUpdate() const;
  1913. void Remove();
  1914. void RemoveAttributeAnimation(const String&);
  1915. void RemoveInstanceDefault();
  1916. void RemoveObjectAnimation();
  1917. void ResetToDefault();
  1918. bool Save(File) const;
  1919. bool Save(VectorBuffer&) const;
  1920. bool SaveJSON(JSONValue&) const;
  1921. bool SaveXML(XMLElement&) const;
  1922. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1923. void SetAnimationTime(float);
  1924. bool SetAttribute(const String&, const Variant&);
  1925. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1926. void SetAttributeAnimationSpeed(const String&, float);
  1927. void SetAttributeAnimationTime(const String&, float);
  1928. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1929. void SetInterceptNetworkUpdate(const String&, bool);
  1930. void SetVertices(const Vector2&, const Vector2&);
  1931. // Properties:
  1932. bool animationEnabled;
  1933. /* readonly */
  1934. Array<Variant> attributeDefaults;
  1935. /* readonly */
  1936. Array<AttributeInfo> attributeInfos;
  1937. Array<Variant> attributes;
  1938. /* readonly */
  1939. String category;
  1940. int categoryBits;
  1941. float density;
  1942. bool enabled;
  1943. /* readonly */
  1944. bool enabledEffective;
  1945. float friction;
  1946. int groupIndex;
  1947. /* readonly */
  1948. uint id;
  1949. /* readonly */
  1950. float inertia;
  1951. int maskBits;
  1952. /* readonly */
  1953. float mass;
  1954. /* readonly */
  1955. Vector2 massCenter;
  1956. /* readonly */
  1957. Node node;
  1958. /* readonly */
  1959. uint numAttributes;
  1960. ObjectAnimation objectAnimation;
  1961. /* readonly */
  1962. int refs;
  1963. /* readonly */
  1964. bool replicated;
  1965. float restitution;
  1966. bool temporary;
  1967. bool trigger;
  1968. /* readonly */
  1969. StringHash type;
  1970. /* readonly */
  1971. String typeName;
  1972. Vector2 vertex1;
  1973. Vector2 vertex2;
  1974. /* readonly */
  1975. int weakRefs;
  1976. };
  1977. class CollisionPolygon2D
  1978. {
  1979. public:
  1980. // Methods:
  1981. void ApplyAttributes();
  1982. void DrawDebugGeometry(DebugRenderer, bool);
  1983. Variant GetAttribute(const String&) const;
  1984. ValueAnimation GetAttributeAnimation(const String&) const;
  1985. float GetAttributeAnimationSpeed(const String&) const;
  1986. float GetAttributeAnimationTime(const String&) const;
  1987. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1988. Variant GetAttributeDefault(const String&) const;
  1989. bool GetInterceptNetworkUpdate(const String&) const;
  1990. Array<Vector2> GetVertices() const;
  1991. bool HasSubscribedToEvent(Object, const String&);
  1992. bool HasSubscribedToEvent(const String&);
  1993. bool Load(File);
  1994. bool Load(VectorBuffer&);
  1995. bool LoadJSON(const JSONValue&);
  1996. bool LoadXML(const XMLElement&);
  1997. void MarkNetworkUpdate() const;
  1998. void Remove();
  1999. void RemoveAttributeAnimation(const String&);
  2000. void RemoveInstanceDefault();
  2001. void RemoveObjectAnimation();
  2002. void ResetToDefault();
  2003. bool Save(File) const;
  2004. bool Save(VectorBuffer&) const;
  2005. bool SaveJSON(JSONValue&) const;
  2006. bool SaveXML(XMLElement&) const;
  2007. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2008. void SetAnimationTime(float);
  2009. bool SetAttribute(const String&, const Variant&);
  2010. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2011. void SetAttributeAnimationSpeed(const String&, float);
  2012. void SetAttributeAnimationTime(const String&, float);
  2013. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2014. void SetInterceptNetworkUpdate(const String&, bool);
  2015. void SetVertex(uint, const Vector2&);
  2016. void SetVertices(Array<Vector2>);
  2017. const Vector2& GetVertex(uint) const;
  2018. // Properties:
  2019. bool animationEnabled;
  2020. /* readonly */
  2021. Array<Variant> attributeDefaults;
  2022. /* readonly */
  2023. Array<AttributeInfo> attributeInfos;
  2024. Array<Variant> attributes;
  2025. /* readonly */
  2026. String category;
  2027. int categoryBits;
  2028. float density;
  2029. bool enabled;
  2030. /* readonly */
  2031. bool enabledEffective;
  2032. float friction;
  2033. int groupIndex;
  2034. /* readonly */
  2035. uint id;
  2036. /* readonly */
  2037. float inertia;
  2038. int maskBits;
  2039. /* readonly */
  2040. float mass;
  2041. /* readonly */
  2042. Vector2 massCenter;
  2043. /* readonly */
  2044. Node node;
  2045. /* readonly */
  2046. uint numAttributes;
  2047. ObjectAnimation objectAnimation;
  2048. /* readonly */
  2049. int refs;
  2050. /* readonly */
  2051. bool replicated;
  2052. float restitution;
  2053. bool temporary;
  2054. bool trigger;
  2055. /* readonly */
  2056. StringHash type;
  2057. /* readonly */
  2058. String typeName;
  2059. uint vertexCount;
  2060. /* readonly */
  2061. int weakRefs;
  2062. };
  2063. class CollisionShape
  2064. {
  2065. public:
  2066. // Methods:
  2067. void ApplyAttributes();
  2068. void DrawDebugGeometry(DebugRenderer, bool);
  2069. Variant GetAttribute(const String&) const;
  2070. ValueAnimation GetAttributeAnimation(const String&) const;
  2071. float GetAttributeAnimationSpeed(const String&) const;
  2072. float GetAttributeAnimationTime(const String&) const;
  2073. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2074. Variant GetAttributeDefault(const String&) const;
  2075. bool GetInterceptNetworkUpdate(const String&) const;
  2076. bool HasSubscribedToEvent(Object, const String&);
  2077. bool HasSubscribedToEvent(const String&);
  2078. bool Load(File);
  2079. bool Load(VectorBuffer&);
  2080. bool LoadJSON(const JSONValue&);
  2081. bool LoadXML(const XMLElement&);
  2082. void MarkNetworkUpdate() const;
  2083. void Remove();
  2084. void RemoveAttributeAnimation(const String&);
  2085. void RemoveInstanceDefault();
  2086. void RemoveObjectAnimation();
  2087. void ResetToDefault();
  2088. bool Save(File) const;
  2089. bool Save(VectorBuffer&) const;
  2090. bool SaveJSON(JSONValue&) const;
  2091. bool SaveXML(XMLElement&) const;
  2092. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2093. void SetAnimationTime(float);
  2094. bool SetAttribute(const String&, const Variant&);
  2095. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2096. void SetAttributeAnimationSpeed(const String&, float);
  2097. void SetAttributeAnimationTime(const String&, float);
  2098. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2099. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2100. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2101. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2102. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2103. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2104. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2105. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2106. void SetInterceptNetworkUpdate(const String&, bool);
  2107. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2108. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2109. void SetTerrain(uint = 0);
  2110. void SetTransform(const Vector3&, const Quaternion&);
  2111. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  2112. // Properties:
  2113. bool animationEnabled;
  2114. /* readonly */
  2115. Array<Variant> attributeDefaults;
  2116. /* readonly */
  2117. Array<AttributeInfo> attributeInfos;
  2118. Array<Variant> attributes;
  2119. /* readonly */
  2120. String category;
  2121. bool enabled;
  2122. /* readonly */
  2123. bool enabledEffective;
  2124. /* readonly */
  2125. uint id;
  2126. uint lodLevel;
  2127. float margin;
  2128. Model model;
  2129. /* readonly */
  2130. Node node;
  2131. /* readonly */
  2132. uint numAttributes;
  2133. ObjectAnimation objectAnimation;
  2134. Vector3 position;
  2135. /* readonly */
  2136. int refs;
  2137. /* readonly */
  2138. bool replicated;
  2139. Quaternion rotation;
  2140. ShapeType shapeType;
  2141. Vector3 size;
  2142. bool temporary;
  2143. /* readonly */
  2144. StringHash type;
  2145. /* readonly */
  2146. String typeName;
  2147. /* readonly */
  2148. int weakRefs;
  2149. /* readonly */
  2150. BoundingBox worldBoundingBox;
  2151. };
  2152. class CollisionShape2D
  2153. {
  2154. public:
  2155. // Methods:
  2156. void ApplyAttributes();
  2157. void DrawDebugGeometry(DebugRenderer, bool);
  2158. Variant GetAttribute(const String&) const;
  2159. ValueAnimation GetAttributeAnimation(const String&) const;
  2160. float GetAttributeAnimationSpeed(const String&) const;
  2161. float GetAttributeAnimationTime(const String&) const;
  2162. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2163. Variant GetAttributeDefault(const String&) const;
  2164. bool GetInterceptNetworkUpdate(const String&) const;
  2165. bool HasSubscribedToEvent(Object, const String&);
  2166. bool HasSubscribedToEvent(const String&);
  2167. bool Load(File);
  2168. bool Load(VectorBuffer&);
  2169. bool LoadJSON(const JSONValue&);
  2170. bool LoadXML(const XMLElement&);
  2171. void MarkNetworkUpdate() const;
  2172. void Remove();
  2173. void RemoveAttributeAnimation(const String&);
  2174. void RemoveInstanceDefault();
  2175. void RemoveObjectAnimation();
  2176. void ResetToDefault();
  2177. bool Save(File) const;
  2178. bool Save(VectorBuffer&) const;
  2179. bool SaveJSON(JSONValue&) const;
  2180. bool SaveXML(XMLElement&) const;
  2181. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2182. void SetAnimationTime(float);
  2183. bool SetAttribute(const String&, const Variant&);
  2184. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2185. void SetAttributeAnimationSpeed(const String&, float);
  2186. void SetAttributeAnimationTime(const String&, float);
  2187. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2188. void SetInterceptNetworkUpdate(const String&, bool);
  2189. // Properties:
  2190. bool animationEnabled;
  2191. /* readonly */
  2192. Array<Variant> attributeDefaults;
  2193. /* readonly */
  2194. Array<AttributeInfo> attributeInfos;
  2195. Array<Variant> attributes;
  2196. /* readonly */
  2197. String category;
  2198. int categoryBits;
  2199. float density;
  2200. bool enabled;
  2201. /* readonly */
  2202. bool enabledEffective;
  2203. float friction;
  2204. int groupIndex;
  2205. /* readonly */
  2206. uint id;
  2207. /* readonly */
  2208. float inertia;
  2209. int maskBits;
  2210. /* readonly */
  2211. float mass;
  2212. /* readonly */
  2213. Vector2 massCenter;
  2214. /* readonly */
  2215. Node node;
  2216. /* readonly */
  2217. uint numAttributes;
  2218. ObjectAnimation objectAnimation;
  2219. /* readonly */
  2220. int refs;
  2221. /* readonly */
  2222. bool replicated;
  2223. float restitution;
  2224. bool temporary;
  2225. bool trigger;
  2226. /* readonly */
  2227. StringHash type;
  2228. /* readonly */
  2229. String typeName;
  2230. /* readonly */
  2231. int weakRefs;
  2232. };
  2233. class Color
  2234. {
  2235. public:
  2236. Color();
  2237. Color(const Color&in);
  2238. Color(float, float, float, float);
  2239. Color(float, float, float);
  2240. Color(float[]&inout);
  2241. // Methods:
  2242. Color Abs() const;
  2243. float Average() const;
  2244. float Chroma() const;
  2245. void Clip(bool);
  2246. bool Equals() const;
  2247. void FromHSL(float, float, float, float);
  2248. void FromHSV(float, float, float, float);
  2249. void FromUInt(uint);
  2250. float Hue() const;
  2251. void Invert(bool);
  2252. Color Lerp(const Color&, float) const;
  2253. float Lightness() const;
  2254. float Luma() const;
  2255. float MaxRGB() const;
  2256. float MinRGB() const;
  2257. float Range() const;
  2258. float SaturationHSL() const;
  2259. float SaturationHSV() const;
  2260. float SumRGB() const;
  2261. Vector3 ToHSL() const;
  2262. Vector3 ToHSV() const;
  2263. String ToString() const;
  2264. uint ToUInt() const;
  2265. float Value() const;
  2266. // Properties:
  2267. float a;
  2268. float b;
  2269. /* readonly */
  2270. Array<float> data;
  2271. float g;
  2272. float r;
  2273. /* readonly */
  2274. Vector3 rgb;
  2275. /* readonly */
  2276. Vector4 rgba;
  2277. };
  2278. class ColorFrame
  2279. {
  2280. public:
  2281. // Properties:
  2282. Color color;
  2283. float time;
  2284. };
  2285. class Component
  2286. {
  2287. public:
  2288. // Methods:
  2289. void ApplyAttributes();
  2290. void DrawDebugGeometry(DebugRenderer, bool);
  2291. Variant GetAttribute(const String&) const;
  2292. ValueAnimation GetAttributeAnimation(const String&) const;
  2293. float GetAttributeAnimationSpeed(const String&) const;
  2294. float GetAttributeAnimationTime(const String&) const;
  2295. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2296. Variant GetAttributeDefault(const String&) const;
  2297. bool GetInterceptNetworkUpdate(const String&) const;
  2298. bool HasSubscribedToEvent(Object, const String&);
  2299. bool HasSubscribedToEvent(const String&);
  2300. bool Load(File);
  2301. bool Load(VectorBuffer&);
  2302. bool LoadJSON(const JSONValue&);
  2303. bool LoadXML(const XMLElement&);
  2304. void MarkNetworkUpdate() const;
  2305. void Remove();
  2306. void RemoveAttributeAnimation(const String&);
  2307. void RemoveInstanceDefault();
  2308. void RemoveObjectAnimation();
  2309. void ResetToDefault();
  2310. bool Save(File) const;
  2311. bool Save(VectorBuffer&) const;
  2312. bool SaveJSON(JSONValue&) const;
  2313. bool SaveXML(XMLElement&) const;
  2314. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2315. void SetAnimationTime(float);
  2316. bool SetAttribute(const String&, const Variant&);
  2317. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2318. void SetAttributeAnimationSpeed(const String&, float);
  2319. void SetAttributeAnimationTime(const String&, float);
  2320. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2321. void SetInterceptNetworkUpdate(const String&, bool);
  2322. // Properties:
  2323. bool animationEnabled;
  2324. /* readonly */
  2325. Array<Variant> attributeDefaults;
  2326. /* readonly */
  2327. Array<AttributeInfo> attributeInfos;
  2328. Array<Variant> attributes;
  2329. /* readonly */
  2330. String category;
  2331. bool enabled;
  2332. /* readonly */
  2333. bool enabledEffective;
  2334. /* readonly */
  2335. uint id;
  2336. /* readonly */
  2337. Node node;
  2338. /* readonly */
  2339. uint numAttributes;
  2340. ObjectAnimation objectAnimation;
  2341. /* readonly */
  2342. int refs;
  2343. /* readonly */
  2344. bool replicated;
  2345. bool temporary;
  2346. /* readonly */
  2347. StringHash type;
  2348. /* readonly */
  2349. String typeName;
  2350. /* readonly */
  2351. int weakRefs;
  2352. };
  2353. class Connection
  2354. {
  2355. public:
  2356. // Methods:
  2357. void Disconnect(int = 0);
  2358. bool HasSubscribedToEvent(Object, const String&);
  2359. bool HasSubscribedToEvent(const String&);
  2360. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2361. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  2362. void SendPackageToClient(PackageFile);
  2363. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  2364. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  2365. String ToString() const;
  2366. // Properties:
  2367. /* readonly */
  2368. String address;
  2369. /* readonly */
  2370. float bytesInPerSec;
  2371. /* readonly */
  2372. float bytesOutPerSec;
  2373. /* readonly */
  2374. String category;
  2375. /* readonly */
  2376. bool client;
  2377. /* readonly */
  2378. bool connectPending;
  2379. /* readonly */
  2380. bool connected;
  2381. Controls controls;
  2382. /* readonly */
  2383. String downloadName;
  2384. /* readonly */
  2385. float downloadProgress;
  2386. VariantMap identity;
  2387. /* readonly */
  2388. uint lastHeardTime;
  2389. bool logStatistics;
  2390. /* readonly */
  2391. uint numDownloads;
  2392. /* readonly */
  2393. int packetsInPerSec;
  2394. /* readonly */
  2395. int packetsOutPerSec;
  2396. /* readonly */
  2397. uint16 port;
  2398. Vector3 position;
  2399. /* readonly */
  2400. int refs;
  2401. Quaternion rotation;
  2402. /* readonly */
  2403. float roundTripTime;
  2404. Scene scene;
  2405. /* readonly */
  2406. bool sceneLoaded;
  2407. uint8 timeStamp;
  2408. /* readonly */
  2409. StringHash type;
  2410. /* readonly */
  2411. String typeName;
  2412. /* readonly */
  2413. int weakRefs;
  2414. };
  2415. class Console
  2416. {
  2417. public:
  2418. // Methods:
  2419. void AddAutoComplete(const String&);
  2420. void CopySelectedRows() const;
  2421. bool HasSubscribedToEvent(Object, const String&);
  2422. bool HasSubscribedToEvent(const String&);
  2423. void RemoveAutoComplete(const String&);
  2424. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2425. void Toggle();
  2426. void UpdateElements();
  2427. // Properties:
  2428. bool autoVisibleOnError;
  2429. /* readonly */
  2430. BorderImage background;
  2431. /* readonly */
  2432. String category;
  2433. /* readonly */
  2434. Button closeButton;
  2435. String commandInterpreter;
  2436. XMLFile defaultStyle;
  2437. bool focusOnShow;
  2438. /* readonly */
  2439. uint historyPosition;
  2440. /* readonly */
  2441. Array<String> historyRow;
  2442. /* readonly */
  2443. LineEdit lineEdit;
  2444. uint numBufferedRows;
  2445. uint numHistoryRows;
  2446. uint numRows;
  2447. /* readonly */
  2448. int refs;
  2449. /* readonly */
  2450. StringHash type;
  2451. /* readonly */
  2452. String typeName;
  2453. bool visible;
  2454. /* readonly */
  2455. int weakRefs;
  2456. };
  2457. class Constraint
  2458. {
  2459. public:
  2460. // Methods:
  2461. void ApplyAttributes();
  2462. void DrawDebugGeometry(DebugRenderer, bool);
  2463. Variant GetAttribute(const String&) const;
  2464. ValueAnimation GetAttributeAnimation(const String&) const;
  2465. float GetAttributeAnimationSpeed(const String&) const;
  2466. float GetAttributeAnimationTime(const String&) const;
  2467. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2468. Variant GetAttributeDefault(const String&) const;
  2469. bool GetInterceptNetworkUpdate(const String&) const;
  2470. bool HasSubscribedToEvent(Object, const String&);
  2471. bool HasSubscribedToEvent(const String&);
  2472. bool Load(File);
  2473. bool Load(VectorBuffer&);
  2474. bool LoadJSON(const JSONValue&);
  2475. bool LoadXML(const XMLElement&);
  2476. void MarkNetworkUpdate() const;
  2477. void Remove();
  2478. void RemoveAttributeAnimation(const String&);
  2479. void RemoveInstanceDefault();
  2480. void RemoveObjectAnimation();
  2481. void ResetToDefault();
  2482. bool Save(File) const;
  2483. bool Save(VectorBuffer&) const;
  2484. bool SaveJSON(JSONValue&) const;
  2485. bool SaveXML(XMLElement&) const;
  2486. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2487. void SetAnimationTime(float);
  2488. bool SetAttribute(const String&, const Variant&);
  2489. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2490. void SetAttributeAnimationSpeed(const String&, float);
  2491. void SetAttributeAnimationTime(const String&, float);
  2492. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2493. void SetInterceptNetworkUpdate(const String&, bool);
  2494. // Properties:
  2495. bool animationEnabled;
  2496. /* readonly */
  2497. Array<Variant> attributeDefaults;
  2498. /* readonly */
  2499. Array<AttributeInfo> attributeInfos;
  2500. Array<Variant> attributes;
  2501. /* writeonly */
  2502. Vector3 axis;
  2503. /* readonly */
  2504. String category;
  2505. float cfm;
  2506. ConstraintType constraintType;
  2507. bool disableCollision;
  2508. bool enabled;
  2509. /* readonly */
  2510. bool enabledEffective;
  2511. float erp;
  2512. Vector2 highLimit;
  2513. /* readonly */
  2514. uint id;
  2515. Vector2 lowLimit;
  2516. /* readonly */
  2517. Node node;
  2518. /* readonly */
  2519. uint numAttributes;
  2520. ObjectAnimation objectAnimation;
  2521. /* writeonly */
  2522. Vector3 otherAxis;
  2523. RigidBody otherBody;
  2524. Vector3 otherPosition;
  2525. Quaternion otherRotation;
  2526. /* readonly */
  2527. RigidBody ownBody;
  2528. Vector3 position;
  2529. /* readonly */
  2530. int refs;
  2531. /* readonly */
  2532. bool replicated;
  2533. Quaternion rotation;
  2534. bool temporary;
  2535. /* readonly */
  2536. StringHash type;
  2537. /* readonly */
  2538. String typeName;
  2539. /* readonly */
  2540. int weakRefs;
  2541. Vector3 worldPosition;
  2542. };
  2543. class Constraint2D
  2544. {
  2545. public:
  2546. // Methods:
  2547. void ApplyAttributes();
  2548. void DrawDebugGeometry(DebugRenderer, bool);
  2549. Variant GetAttribute(const String&) const;
  2550. ValueAnimation GetAttributeAnimation(const String&) const;
  2551. float GetAttributeAnimationSpeed(const String&) const;
  2552. float GetAttributeAnimationTime(const String&) const;
  2553. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2554. Variant GetAttributeDefault(const String&) const;
  2555. bool GetInterceptNetworkUpdate(const String&) const;
  2556. bool HasSubscribedToEvent(Object, const String&);
  2557. bool HasSubscribedToEvent(const String&);
  2558. bool Load(File);
  2559. bool Load(VectorBuffer&);
  2560. bool LoadJSON(const JSONValue&);
  2561. bool LoadXML(const XMLElement&);
  2562. void MarkNetworkUpdate() const;
  2563. void Remove();
  2564. void RemoveAttributeAnimation(const String&);
  2565. void RemoveInstanceDefault();
  2566. void RemoveObjectAnimation();
  2567. void ResetToDefault();
  2568. bool Save(File) const;
  2569. bool Save(VectorBuffer&) const;
  2570. bool SaveJSON(JSONValue&) const;
  2571. bool SaveXML(XMLElement&) const;
  2572. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2573. void SetAnimationTime(float);
  2574. bool SetAttribute(const String&, const Variant&);
  2575. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2576. void SetAttributeAnimationSpeed(const String&, float);
  2577. void SetAttributeAnimationTime(const String&, float);
  2578. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2579. void SetInterceptNetworkUpdate(const String&, bool);
  2580. // Properties:
  2581. bool animationEnabled;
  2582. /* readonly */
  2583. Array<Variant> attributeDefaults;
  2584. /* readonly */
  2585. Array<AttributeInfo> attributeInfos;
  2586. Array<Variant> attributes;
  2587. /* readonly */
  2588. String category;
  2589. bool collideConnected;
  2590. bool enabled;
  2591. /* readonly */
  2592. bool enabledEffective;
  2593. /* readonly */
  2594. uint id;
  2595. /* readonly */
  2596. Node node;
  2597. /* readonly */
  2598. uint numAttributes;
  2599. ObjectAnimation objectAnimation;
  2600. RigidBody2D otherBody;
  2601. /* readonly */
  2602. RigidBody2D ownerBody;
  2603. /* readonly */
  2604. int refs;
  2605. /* readonly */
  2606. bool replicated;
  2607. bool temporary;
  2608. /* readonly */
  2609. StringHash type;
  2610. /* readonly */
  2611. String typeName;
  2612. /* readonly */
  2613. int weakRefs;
  2614. };
  2615. class ConstraintDistance2D
  2616. {
  2617. public:
  2618. // Methods:
  2619. void ApplyAttributes();
  2620. void DrawDebugGeometry(DebugRenderer, bool);
  2621. Variant GetAttribute(const String&) const;
  2622. ValueAnimation GetAttributeAnimation(const String&) const;
  2623. float GetAttributeAnimationSpeed(const String&) const;
  2624. float GetAttributeAnimationTime(const String&) const;
  2625. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2626. Variant GetAttributeDefault(const String&) const;
  2627. bool GetInterceptNetworkUpdate(const String&) const;
  2628. bool HasSubscribedToEvent(Object, const String&);
  2629. bool HasSubscribedToEvent(const String&);
  2630. bool Load(File);
  2631. bool Load(VectorBuffer&);
  2632. bool LoadJSON(const JSONValue&);
  2633. bool LoadXML(const XMLElement&);
  2634. void MarkNetworkUpdate() const;
  2635. void Remove();
  2636. void RemoveAttributeAnimation(const String&);
  2637. void RemoveInstanceDefault();
  2638. void RemoveObjectAnimation();
  2639. void ResetToDefault();
  2640. bool Save(File) const;
  2641. bool Save(VectorBuffer&) const;
  2642. bool SaveJSON(JSONValue&) const;
  2643. bool SaveXML(XMLElement&) const;
  2644. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2645. void SetAnimationTime(float);
  2646. bool SetAttribute(const String&, const Variant&);
  2647. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2648. void SetAttributeAnimationSpeed(const String&, float);
  2649. void SetAttributeAnimationTime(const String&, float);
  2650. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2651. void SetInterceptNetworkUpdate(const String&, bool);
  2652. // Properties:
  2653. bool animationEnabled;
  2654. /* readonly */
  2655. Array<Variant> attributeDefaults;
  2656. /* readonly */
  2657. Array<AttributeInfo> attributeInfos;
  2658. Array<Variant> attributes;
  2659. /* readonly */
  2660. String category;
  2661. bool collideConnected;
  2662. float dampingRatio;
  2663. bool enabled;
  2664. /* readonly */
  2665. bool enabledEffective;
  2666. float frequencyHz;
  2667. /* readonly */
  2668. uint id;
  2669. float length;
  2670. /* readonly */
  2671. Node node;
  2672. /* readonly */
  2673. uint numAttributes;
  2674. ObjectAnimation objectAnimation;
  2675. RigidBody2D otherBody;
  2676. Vector2 otherBodyAnchor;
  2677. /* readonly */
  2678. RigidBody2D ownerBody;
  2679. Vector2 ownerBodyAnchor;
  2680. /* readonly */
  2681. int refs;
  2682. /* readonly */
  2683. bool replicated;
  2684. bool temporary;
  2685. /* readonly */
  2686. StringHash type;
  2687. /* readonly */
  2688. String typeName;
  2689. /* readonly */
  2690. int weakRefs;
  2691. };
  2692. class ConstraintFriction2D
  2693. {
  2694. public:
  2695. // Methods:
  2696. void ApplyAttributes();
  2697. void DrawDebugGeometry(DebugRenderer, bool);
  2698. Variant GetAttribute(const String&) const;
  2699. ValueAnimation GetAttributeAnimation(const String&) const;
  2700. float GetAttributeAnimationSpeed(const String&) const;
  2701. float GetAttributeAnimationTime(const String&) const;
  2702. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2703. Variant GetAttributeDefault(const String&) const;
  2704. bool GetInterceptNetworkUpdate(const String&) const;
  2705. bool HasSubscribedToEvent(Object, const String&);
  2706. bool HasSubscribedToEvent(const String&);
  2707. bool Load(File);
  2708. bool Load(VectorBuffer&);
  2709. bool LoadJSON(const JSONValue&);
  2710. bool LoadXML(const XMLElement&);
  2711. void MarkNetworkUpdate() const;
  2712. void Remove();
  2713. void RemoveAttributeAnimation(const String&);
  2714. void RemoveInstanceDefault();
  2715. void RemoveObjectAnimation();
  2716. void ResetToDefault();
  2717. bool Save(File) const;
  2718. bool Save(VectorBuffer&) const;
  2719. bool SaveJSON(JSONValue&) const;
  2720. bool SaveXML(XMLElement&) const;
  2721. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2722. void SetAnimationTime(float);
  2723. bool SetAttribute(const String&, const Variant&);
  2724. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2725. void SetAttributeAnimationSpeed(const String&, float);
  2726. void SetAttributeAnimationTime(const String&, float);
  2727. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2728. void SetInterceptNetworkUpdate(const String&, bool);
  2729. // Properties:
  2730. Vector2 anchor;
  2731. bool animationEnabled;
  2732. /* readonly */
  2733. Array<Variant> attributeDefaults;
  2734. /* readonly */
  2735. Array<AttributeInfo> attributeInfos;
  2736. Array<Variant> attributes;
  2737. /* readonly */
  2738. String category;
  2739. bool collideConnected;
  2740. bool enabled;
  2741. /* readonly */
  2742. bool enabledEffective;
  2743. /* readonly */
  2744. uint id;
  2745. float maxForce;
  2746. float maxTorque;
  2747. /* readonly */
  2748. Node node;
  2749. /* readonly */
  2750. uint numAttributes;
  2751. ObjectAnimation objectAnimation;
  2752. RigidBody2D otherBody;
  2753. /* readonly */
  2754. RigidBody2D ownerBody;
  2755. /* readonly */
  2756. int refs;
  2757. /* readonly */
  2758. bool replicated;
  2759. bool temporary;
  2760. /* readonly */
  2761. StringHash type;
  2762. /* readonly */
  2763. String typeName;
  2764. /* readonly */
  2765. int weakRefs;
  2766. };
  2767. class ConstraintGear2D
  2768. {
  2769. public:
  2770. // Methods:
  2771. void ApplyAttributes();
  2772. void DrawDebugGeometry(DebugRenderer, bool);
  2773. Variant GetAttribute(const String&) const;
  2774. ValueAnimation GetAttributeAnimation(const String&) const;
  2775. float GetAttributeAnimationSpeed(const String&) const;
  2776. float GetAttributeAnimationTime(const String&) const;
  2777. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2778. Variant GetAttributeDefault(const String&) const;
  2779. bool GetInterceptNetworkUpdate(const String&) const;
  2780. bool HasSubscribedToEvent(Object, const String&);
  2781. bool HasSubscribedToEvent(const String&);
  2782. bool Load(File);
  2783. bool Load(VectorBuffer&);
  2784. bool LoadJSON(const JSONValue&);
  2785. bool LoadXML(const XMLElement&);
  2786. void MarkNetworkUpdate() const;
  2787. void Remove();
  2788. void RemoveAttributeAnimation(const String&);
  2789. void RemoveInstanceDefault();
  2790. void RemoveObjectAnimation();
  2791. void ResetToDefault();
  2792. bool Save(File) const;
  2793. bool Save(VectorBuffer&) const;
  2794. bool SaveJSON(JSONValue&) const;
  2795. bool SaveXML(XMLElement&) const;
  2796. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2797. void SetAnimationTime(float);
  2798. bool SetAttribute(const String&, const Variant&);
  2799. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2800. void SetAttributeAnimationSpeed(const String&, float);
  2801. void SetAttributeAnimationTime(const String&, float);
  2802. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2803. void SetInterceptNetworkUpdate(const String&, bool);
  2804. // Properties:
  2805. bool animationEnabled;
  2806. /* readonly */
  2807. Array<Variant> attributeDefaults;
  2808. /* readonly */
  2809. Array<AttributeInfo> attributeInfos;
  2810. Array<Variant> attributes;
  2811. /* readonly */
  2812. String category;
  2813. bool collideConnected;
  2814. bool enabled;
  2815. /* readonly */
  2816. bool enabledEffective;
  2817. /* readonly */
  2818. uint id;
  2819. /* readonly */
  2820. Node node;
  2821. /* readonly */
  2822. uint numAttributes;
  2823. ObjectAnimation objectAnimation;
  2824. RigidBody2D otherBody;
  2825. Constraint2D otherConstraint;
  2826. /* readonly */
  2827. RigidBody2D ownerBody;
  2828. Constraint2D ownerConstraint;
  2829. float ratio;
  2830. /* readonly */
  2831. int refs;
  2832. /* readonly */
  2833. bool replicated;
  2834. bool temporary;
  2835. /* readonly */
  2836. StringHash type;
  2837. /* readonly */
  2838. String typeName;
  2839. /* readonly */
  2840. int weakRefs;
  2841. };
  2842. class ConstraintMotor2D
  2843. {
  2844. public:
  2845. // Methods:
  2846. void ApplyAttributes();
  2847. void DrawDebugGeometry(DebugRenderer, bool);
  2848. Variant GetAttribute(const String&) const;
  2849. ValueAnimation GetAttributeAnimation(const String&) const;
  2850. float GetAttributeAnimationSpeed(const String&) const;
  2851. float GetAttributeAnimationTime(const String&) const;
  2852. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2853. Variant GetAttributeDefault(const String&) const;
  2854. bool GetInterceptNetworkUpdate(const String&) const;
  2855. bool HasSubscribedToEvent(Object, const String&);
  2856. bool HasSubscribedToEvent(const String&);
  2857. bool Load(File);
  2858. bool Load(VectorBuffer&);
  2859. bool LoadJSON(const JSONValue&);
  2860. bool LoadXML(const XMLElement&);
  2861. void MarkNetworkUpdate() const;
  2862. void Remove();
  2863. void RemoveAttributeAnimation(const String&);
  2864. void RemoveInstanceDefault();
  2865. void RemoveObjectAnimation();
  2866. void ResetToDefault();
  2867. bool Save(File) const;
  2868. bool Save(VectorBuffer&) const;
  2869. bool SaveJSON(JSONValue&) const;
  2870. bool SaveXML(XMLElement&) const;
  2871. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2872. void SetAnimationTime(float);
  2873. bool SetAttribute(const String&, const Variant&);
  2874. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2875. void SetAttributeAnimationSpeed(const String&, float);
  2876. void SetAttributeAnimationTime(const String&, float);
  2877. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2878. void SetInterceptNetworkUpdate(const String&, bool);
  2879. // Properties:
  2880. float angularOffset;
  2881. bool animationEnabled;
  2882. /* readonly */
  2883. Array<Variant> attributeDefaults;
  2884. /* readonly */
  2885. Array<AttributeInfo> attributeInfos;
  2886. Array<Variant> attributes;
  2887. /* readonly */
  2888. String category;
  2889. bool collideConnected;
  2890. float correctionFactor;
  2891. bool enabled;
  2892. /* readonly */
  2893. bool enabledEffective;
  2894. /* readonly */
  2895. uint id;
  2896. Vector2 linearOffset;
  2897. float maxForce;
  2898. float maxTorque;
  2899. /* readonly */
  2900. Node node;
  2901. /* readonly */
  2902. uint numAttributes;
  2903. ObjectAnimation objectAnimation;
  2904. RigidBody2D otherBody;
  2905. /* readonly */
  2906. RigidBody2D ownerBody;
  2907. /* readonly */
  2908. int refs;
  2909. /* readonly */
  2910. bool replicated;
  2911. bool temporary;
  2912. /* readonly */
  2913. StringHash type;
  2914. /* readonly */
  2915. String typeName;
  2916. /* readonly */
  2917. int weakRefs;
  2918. };
  2919. class ConstraintMouse2D
  2920. {
  2921. public:
  2922. // Methods:
  2923. void ApplyAttributes();
  2924. void DrawDebugGeometry(DebugRenderer, bool);
  2925. Variant GetAttribute(const String&) const;
  2926. ValueAnimation GetAttributeAnimation(const String&) const;
  2927. float GetAttributeAnimationSpeed(const String&) const;
  2928. float GetAttributeAnimationTime(const String&) const;
  2929. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2930. Variant GetAttributeDefault(const String&) const;
  2931. bool GetInterceptNetworkUpdate(const String&) const;
  2932. bool HasSubscribedToEvent(Object, const String&);
  2933. bool HasSubscribedToEvent(const String&);
  2934. bool Load(File);
  2935. bool Load(VectorBuffer&);
  2936. bool LoadJSON(const JSONValue&);
  2937. bool LoadXML(const XMLElement&);
  2938. void MarkNetworkUpdate() const;
  2939. void Remove();
  2940. void RemoveAttributeAnimation(const String&);
  2941. void RemoveInstanceDefault();
  2942. void RemoveObjectAnimation();
  2943. void ResetToDefault();
  2944. bool Save(File) const;
  2945. bool Save(VectorBuffer&) const;
  2946. bool SaveJSON(JSONValue&) const;
  2947. bool SaveXML(XMLElement&) const;
  2948. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2949. void SetAnimationTime(float);
  2950. bool SetAttribute(const String&, const Variant&);
  2951. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2952. void SetAttributeAnimationSpeed(const String&, float);
  2953. void SetAttributeAnimationTime(const String&, float);
  2954. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2955. void SetInterceptNetworkUpdate(const String&, bool);
  2956. // Properties:
  2957. bool animationEnabled;
  2958. /* readonly */
  2959. Array<Variant> attributeDefaults;
  2960. /* readonly */
  2961. Array<AttributeInfo> attributeInfos;
  2962. Array<Variant> attributes;
  2963. /* readonly */
  2964. String category;
  2965. bool collideConnected;
  2966. float dampingRatio;
  2967. bool enabled;
  2968. /* readonly */
  2969. bool enabledEffective;
  2970. float frequencyHz;
  2971. /* readonly */
  2972. uint id;
  2973. float maxForce;
  2974. /* readonly */
  2975. Node node;
  2976. /* readonly */
  2977. uint numAttributes;
  2978. ObjectAnimation objectAnimation;
  2979. RigidBody2D otherBody;
  2980. /* readonly */
  2981. RigidBody2D ownerBody;
  2982. /* readonly */
  2983. int refs;
  2984. /* readonly */
  2985. bool replicated;
  2986. Vector2 target;
  2987. bool temporary;
  2988. /* readonly */
  2989. StringHash type;
  2990. /* readonly */
  2991. String typeName;
  2992. /* readonly */
  2993. int weakRefs;
  2994. };
  2995. class ConstraintPrismatic2D
  2996. {
  2997. public:
  2998. // Methods:
  2999. void ApplyAttributes();
  3000. void DrawDebugGeometry(DebugRenderer, bool);
  3001. Variant GetAttribute(const String&) const;
  3002. ValueAnimation GetAttributeAnimation(const String&) const;
  3003. float GetAttributeAnimationSpeed(const String&) const;
  3004. float GetAttributeAnimationTime(const String&) const;
  3005. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3006. Variant GetAttributeDefault(const String&) const;
  3007. bool GetInterceptNetworkUpdate(const String&) const;
  3008. bool HasSubscribedToEvent(Object, const String&);
  3009. bool HasSubscribedToEvent(const String&);
  3010. bool Load(File);
  3011. bool Load(VectorBuffer&);
  3012. bool LoadJSON(const JSONValue&);
  3013. bool LoadXML(const XMLElement&);
  3014. void MarkNetworkUpdate() const;
  3015. void Remove();
  3016. void RemoveAttributeAnimation(const String&);
  3017. void RemoveInstanceDefault();
  3018. void RemoveObjectAnimation();
  3019. void ResetToDefault();
  3020. bool Save(File) const;
  3021. bool Save(VectorBuffer&) const;
  3022. bool SaveJSON(JSONValue&) const;
  3023. bool SaveXML(XMLElement&) const;
  3024. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3025. void SetAnimationTime(float);
  3026. bool SetAttribute(const String&, const Variant&);
  3027. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3028. void SetAttributeAnimationSpeed(const String&, float);
  3029. void SetAttributeAnimationTime(const String&, float);
  3030. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3031. void SetInterceptNetworkUpdate(const String&, bool);
  3032. // Properties:
  3033. Vector2 anchor;
  3034. bool animationEnabled;
  3035. /* readonly */
  3036. Array<Variant> attributeDefaults;
  3037. /* readonly */
  3038. Array<AttributeInfo> attributeInfos;
  3039. Array<Variant> attributes;
  3040. Vector2 axis;
  3041. /* readonly */
  3042. String category;
  3043. bool collideConnected;
  3044. bool enableLimit;
  3045. bool enableMotor;
  3046. bool enabled;
  3047. /* readonly */
  3048. bool enabledEffective;
  3049. /* readonly */
  3050. uint id;
  3051. float lowerTranslation;
  3052. float maxMotorForce;
  3053. float motorSpeed;
  3054. /* readonly */
  3055. Node node;
  3056. /* readonly */
  3057. uint numAttributes;
  3058. ObjectAnimation objectAnimation;
  3059. RigidBody2D otherBody;
  3060. /* readonly */
  3061. RigidBody2D ownerBody;
  3062. /* readonly */
  3063. int refs;
  3064. /* readonly */
  3065. bool replicated;
  3066. bool temporary;
  3067. /* readonly */
  3068. StringHash type;
  3069. /* readonly */
  3070. String typeName;
  3071. float upperTranslation;
  3072. /* readonly */
  3073. int weakRefs;
  3074. };
  3075. class ConstraintPulley2D
  3076. {
  3077. public:
  3078. // Methods:
  3079. void ApplyAttributes();
  3080. void DrawDebugGeometry(DebugRenderer, bool);
  3081. Variant GetAttribute(const String&) const;
  3082. ValueAnimation GetAttributeAnimation(const String&) const;
  3083. float GetAttributeAnimationSpeed(const String&) const;
  3084. float GetAttributeAnimationTime(const String&) const;
  3085. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3086. Variant GetAttributeDefault(const String&) const;
  3087. bool GetInterceptNetworkUpdate(const String&) const;
  3088. bool HasSubscribedToEvent(Object, const String&);
  3089. bool HasSubscribedToEvent(const String&);
  3090. bool Load(File);
  3091. bool Load(VectorBuffer&);
  3092. bool LoadJSON(const JSONValue&);
  3093. bool LoadXML(const XMLElement&);
  3094. void MarkNetworkUpdate() const;
  3095. void Remove();
  3096. void RemoveAttributeAnimation(const String&);
  3097. void RemoveInstanceDefault();
  3098. void RemoveObjectAnimation();
  3099. void ResetToDefault();
  3100. bool Save(File) const;
  3101. bool Save(VectorBuffer&) const;
  3102. bool SaveJSON(JSONValue&) const;
  3103. bool SaveXML(XMLElement&) const;
  3104. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3105. void SetAnimationTime(float);
  3106. bool SetAttribute(const String&, const Variant&);
  3107. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3108. void SetAttributeAnimationSpeed(const String&, float);
  3109. void SetAttributeAnimationTime(const String&, float);
  3110. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3111. void SetInterceptNetworkUpdate(const String&, bool);
  3112. // Properties:
  3113. bool animationEnabled;
  3114. /* readonly */
  3115. Array<Variant> attributeDefaults;
  3116. /* readonly */
  3117. Array<AttributeInfo> attributeInfos;
  3118. Array<Variant> attributes;
  3119. /* readonly */
  3120. String category;
  3121. bool collideConnected;
  3122. bool enabled;
  3123. /* readonly */
  3124. bool enabledEffective;
  3125. /* readonly */
  3126. uint id;
  3127. /* readonly */
  3128. Node node;
  3129. /* readonly */
  3130. uint numAttributes;
  3131. ObjectAnimation objectAnimation;
  3132. RigidBody2D otherBody;
  3133. Vector2 otherBodyAnchor;
  3134. Vector2 otherBodyGroundAnchor;
  3135. /* readonly */
  3136. RigidBody2D ownerBody;
  3137. Vector2 ownerBodyAnchor;
  3138. Vector2 ownerBodyGroundAnchor;
  3139. float ratio;
  3140. /* readonly */
  3141. int refs;
  3142. /* readonly */
  3143. bool replicated;
  3144. bool temporary;
  3145. /* readonly */
  3146. StringHash type;
  3147. /* readonly */
  3148. String typeName;
  3149. /* readonly */
  3150. int weakRefs;
  3151. };
  3152. class ConstraintRevolute2D
  3153. {
  3154. public:
  3155. // Methods:
  3156. void ApplyAttributes();
  3157. void DrawDebugGeometry(DebugRenderer, bool);
  3158. Variant GetAttribute(const String&) const;
  3159. ValueAnimation GetAttributeAnimation(const String&) const;
  3160. float GetAttributeAnimationSpeed(const String&) const;
  3161. float GetAttributeAnimationTime(const String&) const;
  3162. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3163. Variant GetAttributeDefault(const String&) const;
  3164. bool GetInterceptNetworkUpdate(const String&) const;
  3165. bool HasSubscribedToEvent(Object, const String&);
  3166. bool HasSubscribedToEvent(const String&);
  3167. bool Load(File);
  3168. bool Load(VectorBuffer&);
  3169. bool LoadJSON(const JSONValue&);
  3170. bool LoadXML(const XMLElement&);
  3171. void MarkNetworkUpdate() const;
  3172. void Remove();
  3173. void RemoveAttributeAnimation(const String&);
  3174. void RemoveInstanceDefault();
  3175. void RemoveObjectAnimation();
  3176. void ResetToDefault();
  3177. bool Save(File) const;
  3178. bool Save(VectorBuffer&) const;
  3179. bool SaveJSON(JSONValue&) const;
  3180. bool SaveXML(XMLElement&) const;
  3181. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3182. void SetAnimationTime(float);
  3183. bool SetAttribute(const String&, const Variant&);
  3184. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3185. void SetAttributeAnimationSpeed(const String&, float);
  3186. void SetAttributeAnimationTime(const String&, float);
  3187. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3188. void SetInterceptNetworkUpdate(const String&, bool);
  3189. // Properties:
  3190. Vector2 anchor;
  3191. bool animationEnabled;
  3192. /* readonly */
  3193. Array<Variant> attributeDefaults;
  3194. /* readonly */
  3195. Array<AttributeInfo> attributeInfos;
  3196. Array<Variant> attributes;
  3197. /* readonly */
  3198. String category;
  3199. bool collideConnected;
  3200. bool enableLimit;
  3201. bool enableMotor;
  3202. bool enabled;
  3203. /* readonly */
  3204. bool enabledEffective;
  3205. /* readonly */
  3206. uint id;
  3207. float lowerAngle;
  3208. float maxMotorTorque;
  3209. float motorSpeed;
  3210. /* readonly */
  3211. Node node;
  3212. /* readonly */
  3213. uint numAttributes;
  3214. ObjectAnimation objectAnimation;
  3215. RigidBody2D otherBody;
  3216. /* readonly */
  3217. RigidBody2D ownerBody;
  3218. /* readonly */
  3219. int refs;
  3220. /* readonly */
  3221. bool replicated;
  3222. bool temporary;
  3223. /* readonly */
  3224. StringHash type;
  3225. /* readonly */
  3226. String typeName;
  3227. float upperAngle;
  3228. /* readonly */
  3229. int weakRefs;
  3230. };
  3231. class ConstraintRope2D
  3232. {
  3233. public:
  3234. // Methods:
  3235. void ApplyAttributes();
  3236. void DrawDebugGeometry(DebugRenderer, bool);
  3237. Variant GetAttribute(const String&) const;
  3238. ValueAnimation GetAttributeAnimation(const String&) const;
  3239. float GetAttributeAnimationSpeed(const String&) const;
  3240. float GetAttributeAnimationTime(const String&) const;
  3241. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3242. Variant GetAttributeDefault(const String&) const;
  3243. bool GetInterceptNetworkUpdate(const String&) const;
  3244. bool HasSubscribedToEvent(Object, const String&);
  3245. bool HasSubscribedToEvent(const String&);
  3246. bool Load(File);
  3247. bool Load(VectorBuffer&);
  3248. bool LoadJSON(const JSONValue&);
  3249. bool LoadXML(const XMLElement&);
  3250. void MarkNetworkUpdate() const;
  3251. void Remove();
  3252. void RemoveAttributeAnimation(const String&);
  3253. void RemoveInstanceDefault();
  3254. void RemoveObjectAnimation();
  3255. void ResetToDefault();
  3256. bool Save(File) const;
  3257. bool Save(VectorBuffer&) const;
  3258. bool SaveJSON(JSONValue&) const;
  3259. bool SaveXML(XMLElement&) const;
  3260. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3261. void SetAnimationTime(float);
  3262. bool SetAttribute(const String&, const Variant&);
  3263. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3264. void SetAttributeAnimationSpeed(const String&, float);
  3265. void SetAttributeAnimationTime(const String&, float);
  3266. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3267. void SetInterceptNetworkUpdate(const String&, bool);
  3268. // Properties:
  3269. bool animationEnabled;
  3270. /* readonly */
  3271. Array<Variant> attributeDefaults;
  3272. /* readonly */
  3273. Array<AttributeInfo> attributeInfos;
  3274. Array<Variant> attributes;
  3275. /* readonly */
  3276. String category;
  3277. bool collideConnected;
  3278. bool enabled;
  3279. /* readonly */
  3280. bool enabledEffective;
  3281. /* readonly */
  3282. uint id;
  3283. float maxLength;
  3284. /* readonly */
  3285. Node node;
  3286. /* readonly */
  3287. uint numAttributes;
  3288. ObjectAnimation objectAnimation;
  3289. RigidBody2D otherBody;
  3290. Vector2 otherBodyAnchor;
  3291. /* readonly */
  3292. RigidBody2D ownerBody;
  3293. Vector2 ownerBodyAnchor;
  3294. /* readonly */
  3295. int refs;
  3296. /* readonly */
  3297. bool replicated;
  3298. bool temporary;
  3299. /* readonly */
  3300. StringHash type;
  3301. /* readonly */
  3302. String typeName;
  3303. /* readonly */
  3304. int weakRefs;
  3305. };
  3306. class ConstraintWeld2D
  3307. {
  3308. public:
  3309. // Methods:
  3310. void ApplyAttributes();
  3311. void DrawDebugGeometry(DebugRenderer, bool);
  3312. Variant GetAttribute(const String&) const;
  3313. ValueAnimation GetAttributeAnimation(const String&) const;
  3314. float GetAttributeAnimationSpeed(const String&) const;
  3315. float GetAttributeAnimationTime(const String&) const;
  3316. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3317. Variant GetAttributeDefault(const String&) const;
  3318. bool GetInterceptNetworkUpdate(const String&) const;
  3319. bool HasSubscribedToEvent(Object, const String&);
  3320. bool HasSubscribedToEvent(const String&);
  3321. bool Load(File);
  3322. bool Load(VectorBuffer&);
  3323. bool LoadJSON(const JSONValue&);
  3324. bool LoadXML(const XMLElement&);
  3325. void MarkNetworkUpdate() const;
  3326. void Remove();
  3327. void RemoveAttributeAnimation(const String&);
  3328. void RemoveInstanceDefault();
  3329. void RemoveObjectAnimation();
  3330. void ResetToDefault();
  3331. bool Save(File) const;
  3332. bool Save(VectorBuffer&) const;
  3333. bool SaveJSON(JSONValue&) const;
  3334. bool SaveXML(XMLElement&) const;
  3335. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3336. void SetAnimationTime(float);
  3337. bool SetAttribute(const String&, const Variant&);
  3338. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3339. void SetAttributeAnimationSpeed(const String&, float);
  3340. void SetAttributeAnimationTime(const String&, float);
  3341. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3342. void SetInterceptNetworkUpdate(const String&, bool);
  3343. // Properties:
  3344. Vector2 anchor;
  3345. bool animationEnabled;
  3346. /* readonly */
  3347. Array<Variant> attributeDefaults;
  3348. /* readonly */
  3349. Array<AttributeInfo> attributeInfos;
  3350. Array<Variant> attributes;
  3351. /* readonly */
  3352. String category;
  3353. bool collideConnected;
  3354. float dampingRatio;
  3355. bool enabled;
  3356. /* readonly */
  3357. bool enabledEffective;
  3358. float frequencyHz;
  3359. /* readonly */
  3360. uint id;
  3361. /* readonly */
  3362. Node node;
  3363. /* readonly */
  3364. uint numAttributes;
  3365. ObjectAnimation objectAnimation;
  3366. RigidBody2D otherBody;
  3367. /* readonly */
  3368. RigidBody2D ownerBody;
  3369. /* readonly */
  3370. int refs;
  3371. /* readonly */
  3372. bool replicated;
  3373. bool temporary;
  3374. /* readonly */
  3375. StringHash type;
  3376. /* readonly */
  3377. String typeName;
  3378. /* readonly */
  3379. int weakRefs;
  3380. };
  3381. class ConstraintWheel2D
  3382. {
  3383. public:
  3384. // Methods:
  3385. void ApplyAttributes();
  3386. void DrawDebugGeometry(DebugRenderer, bool);
  3387. Variant GetAttribute(const String&) const;
  3388. ValueAnimation GetAttributeAnimation(const String&) const;
  3389. float GetAttributeAnimationSpeed(const String&) const;
  3390. float GetAttributeAnimationTime(const String&) const;
  3391. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3392. Variant GetAttributeDefault(const String&) const;
  3393. bool GetInterceptNetworkUpdate(const String&) const;
  3394. bool HasSubscribedToEvent(Object, const String&);
  3395. bool HasSubscribedToEvent(const String&);
  3396. bool Load(File);
  3397. bool Load(VectorBuffer&);
  3398. bool LoadJSON(const JSONValue&);
  3399. bool LoadXML(const XMLElement&);
  3400. void MarkNetworkUpdate() const;
  3401. void Remove();
  3402. void RemoveAttributeAnimation(const String&);
  3403. void RemoveInstanceDefault();
  3404. void RemoveObjectAnimation();
  3405. void ResetToDefault();
  3406. bool Save(File) const;
  3407. bool Save(VectorBuffer&) const;
  3408. bool SaveJSON(JSONValue&) const;
  3409. bool SaveXML(XMLElement&) const;
  3410. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3411. void SetAnimationTime(float);
  3412. bool SetAttribute(const String&, const Variant&);
  3413. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3414. void SetAttributeAnimationSpeed(const String&, float);
  3415. void SetAttributeAnimationTime(const String&, float);
  3416. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3417. void SetInterceptNetworkUpdate(const String&, bool);
  3418. // Properties:
  3419. Vector2 anchor;
  3420. bool animationEnabled;
  3421. /* readonly */
  3422. Array<Variant> attributeDefaults;
  3423. /* readonly */
  3424. Array<AttributeInfo> attributeInfos;
  3425. Array<Variant> attributes;
  3426. Vector2 axis;
  3427. /* readonly */
  3428. String category;
  3429. bool collideConnected;
  3430. float dampingRatio;
  3431. bool enableMotor;
  3432. bool enabled;
  3433. /* readonly */
  3434. bool enabledEffective;
  3435. float frequencyHz;
  3436. /* readonly */
  3437. uint id;
  3438. float maxMotorTorque;
  3439. float motorSpeed;
  3440. /* readonly */
  3441. Node node;
  3442. /* readonly */
  3443. uint numAttributes;
  3444. ObjectAnimation objectAnimation;
  3445. RigidBody2D otherBody;
  3446. /* readonly */
  3447. RigidBody2D ownerBody;
  3448. /* readonly */
  3449. int refs;
  3450. /* readonly */
  3451. bool replicated;
  3452. bool temporary;
  3453. /* readonly */
  3454. StringHash type;
  3455. /* readonly */
  3456. String typeName;
  3457. /* readonly */
  3458. int weakRefs;
  3459. };
  3460. class Controls
  3461. {
  3462. public:
  3463. ~Controls();
  3464. Controls();
  3465. Controls(const Controls&in);
  3466. // Methods:
  3467. bool IsDown(uint) const;
  3468. bool IsPressed(uint, const Controls&) const;
  3469. void Reset();
  3470. void Set(uint, bool);
  3471. // Properties:
  3472. uint buttons;
  3473. VariantMap extraData;
  3474. float pitch;
  3475. float yaw;
  3476. };
  3477. class CrowdAgent
  3478. {
  3479. public:
  3480. // Methods:
  3481. void ApplyAttributes();
  3482. void DrawDebugGeometry(DebugRenderer, bool);
  3483. void DrawDebugGeometry(bool);
  3484. Variant GetAttribute(const String&) const;
  3485. ValueAnimation GetAttributeAnimation(const String&) const;
  3486. float GetAttributeAnimationSpeed(const String&) const;
  3487. float GetAttributeAnimationTime(const String&) const;
  3488. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3489. Variant GetAttributeDefault(const String&) const;
  3490. bool GetInterceptNetworkUpdate(const String&) const;
  3491. bool HasSubscribedToEvent(Object, const String&);
  3492. bool HasSubscribedToEvent(const String&);
  3493. bool Load(File);
  3494. bool Load(VectorBuffer&);
  3495. bool LoadJSON(const JSONValue&);
  3496. bool LoadXML(const XMLElement&);
  3497. void MarkNetworkUpdate() const;
  3498. void Remove();
  3499. void RemoveAttributeAnimation(const String&);
  3500. void RemoveInstanceDefault();
  3501. void RemoveObjectAnimation();
  3502. void ResetTarget();
  3503. void ResetToDefault();
  3504. bool Save(File) const;
  3505. bool Save(VectorBuffer&) const;
  3506. bool SaveJSON(JSONValue&) const;
  3507. bool SaveXML(XMLElement&) const;
  3508. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3509. void SetAnimationTime(float);
  3510. bool SetAttribute(const String&, const Variant&);
  3511. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3512. void SetAttributeAnimationSpeed(const String&, float);
  3513. void SetAttributeAnimationTime(const String&, float);
  3514. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3515. void SetInterceptNetworkUpdate(const String&, bool);
  3516. // Properties:
  3517. /* readonly */
  3518. Vector3 actualVelocity;
  3519. /* readonly */
  3520. CrowdAgentState agentState;
  3521. bool animationEnabled;
  3522. /* readonly */
  3523. bool arrived;
  3524. /* readonly */
  3525. Array<Variant> attributeDefaults;
  3526. /* readonly */
  3527. Array<AttributeInfo> attributeInfos;
  3528. Array<Variant> attributes;
  3529. /* readonly */
  3530. String category;
  3531. /* readonly */
  3532. Vector3 desiredVelocity;
  3533. bool enabled;
  3534. /* readonly */
  3535. bool enabledEffective;
  3536. float height;
  3537. /* readonly */
  3538. uint id;
  3539. /* readonly */
  3540. bool inCrowd;
  3541. float maxAccel;
  3542. float maxSpeed;
  3543. NavigationPushiness navigationPushiness;
  3544. NavigationQuality navigationQuality;
  3545. /* readonly */
  3546. Node node;
  3547. /* readonly */
  3548. uint numAttributes;
  3549. ObjectAnimation objectAnimation;
  3550. uint obstacleAvoidanceType;
  3551. /* readonly */
  3552. Vector3 position;
  3553. uint queryFilterType;
  3554. float radius;
  3555. /* readonly */
  3556. int refs;
  3557. /* readonly */
  3558. bool replicated;
  3559. /* readonly */
  3560. bool requestedTarget;
  3561. /* readonly */
  3562. CrowdAgentRequestedTarget requestedTargetType;
  3563. Vector3 targetPosition;
  3564. /* readonly */
  3565. CrowdAgentTargetState targetState;
  3566. Vector3 targetVelocity;
  3567. bool temporary;
  3568. /* readonly */
  3569. StringHash type;
  3570. /* readonly */
  3571. String typeName;
  3572. bool updateNodePosition;
  3573. /* readonly */
  3574. int weakRefs;
  3575. };
  3576. class CrowdManager
  3577. {
  3578. public:
  3579. // Methods:
  3580. void ApplyAttributes();
  3581. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint);
  3582. void DrawDebugGeometry(DebugRenderer, bool);
  3583. void DrawDebugGeometry(bool);
  3584. Vector3 FindNearestPoint(const Vector3&, int);
  3585. Array<CrowdAgent> GetAgents(Node = null, bool = true);
  3586. float GetAreaCost(uint, uint);
  3587. Variant GetAttribute(const String&) const;
  3588. ValueAnimation GetAttributeAnimation(const String&) const;
  3589. float GetAttributeAnimationSpeed(const String&) const;
  3590. float GetAttributeAnimationTime(const String&) const;
  3591. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3592. Variant GetAttributeDefault(const String&) const;
  3593. float GetDistanceToWall(const Vector3&, float, int);
  3594. uint16 GetExcludeFlags(uint);
  3595. uint16 GetIncludeFlags(uint);
  3596. bool GetInterceptNetworkUpdate(const String&) const;
  3597. Vector3 GetRandomPoint(int);
  3598. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  3599. bool HasSubscribedToEvent(Object, const String&);
  3600. bool HasSubscribedToEvent(const String&);
  3601. bool Load(File);
  3602. bool Load(VectorBuffer&);
  3603. bool LoadJSON(const JSONValue&);
  3604. bool LoadXML(const XMLElement&);
  3605. void MarkNetworkUpdate() const;
  3606. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, uint = 3);
  3607. Vector3 Raycast(const Vector3&, const Vector3&, int);
  3608. void Remove();
  3609. void RemoveAttributeAnimation(const String&);
  3610. void RemoveInstanceDefault();
  3611. void RemoveObjectAnimation();
  3612. void ResetCrowdTarget(Node = null);
  3613. void ResetToDefault();
  3614. bool Save(File) const;
  3615. bool Save(VectorBuffer&) const;
  3616. bool SaveJSON(JSONValue&) const;
  3617. bool SaveXML(XMLElement&) const;
  3618. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3619. void SetAnimationTime(float);
  3620. void SetAreaCost(uint, uint, float);
  3621. bool SetAttribute(const String&, const Variant&);
  3622. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3623. void SetAttributeAnimationSpeed(const String&, float);
  3624. void SetAttributeAnimationTime(const String&, float);
  3625. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3626. void SetCrowdTarget(const Vector3&, Node = null);
  3627. void SetCrowdVelocity(const Vector3&, Node = null);
  3628. void SetExcludeFlags(uint, uint16);
  3629. void SetIncludeFlags(uint, uint16);
  3630. void SetInterceptNetworkUpdate(const String&, bool);
  3631. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  3632. // Properties:
  3633. bool animationEnabled;
  3634. /* readonly */
  3635. Array<Variant> attributeDefaults;
  3636. /* readonly */
  3637. Array<AttributeInfo> attributeInfos;
  3638. Array<Variant> attributes;
  3639. /* readonly */
  3640. String category;
  3641. bool enabled;
  3642. /* readonly */
  3643. bool enabledEffective;
  3644. /* readonly */
  3645. uint id;
  3646. float maxAgentRadius;
  3647. int maxAgents;
  3648. NavigationMesh navMesh;
  3649. /* readonly */
  3650. Node node;
  3651. /* readonly */
  3652. Array<uint> numAreas;
  3653. /* readonly */
  3654. uint numAttributes;
  3655. /* readonly */
  3656. uint numObstacleAvoidanceTypes;
  3657. /* readonly */
  3658. uint numQueryFilterTypes;
  3659. ObjectAnimation objectAnimation;
  3660. /* readonly */
  3661. int refs;
  3662. /* readonly */
  3663. bool replicated;
  3664. bool temporary;
  3665. /* readonly */
  3666. StringHash type;
  3667. /* readonly */
  3668. String typeName;
  3669. /* readonly */
  3670. int weakRefs;
  3671. };
  3672. class CrowdObstacleAvoidanceParams
  3673. {
  3674. public:
  3675. // Properties:
  3676. uint8 adaptiveDepth;
  3677. uint8 adaptiveDivs;
  3678. uint8 adaptiveRings;
  3679. uint8 gridSize;
  3680. float horizTime;
  3681. float velBias;
  3682. float weightCurVel;
  3683. float weightDesVel;
  3684. float weightSide;
  3685. float weightToi;
  3686. };
  3687. class Cursor
  3688. {
  3689. public:
  3690. Cursor();
  3691. Cursor(const String&in);
  3692. // Methods:
  3693. void AddChild(UIElement);
  3694. void AddTag(const String&);
  3695. void AddTags(const String&, int8 = ';');
  3696. void ApplyAttributes();
  3697. void BringToFront();
  3698. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3699. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  3700. void DefineShape(const String&, Texture, const IntRect&, const IntVector2&);
  3701. void DisableLayoutUpdate();
  3702. IntVector2 ElementToScreen(const IntVector2&);
  3703. void EnableLayoutUpdate();
  3704. uint FindChild(UIElement) const;
  3705. Variant GetAttribute(const String&) const;
  3706. ValueAnimation GetAttributeAnimation(const String&) const;
  3707. float GetAttributeAnimationSpeed(const String&) const;
  3708. float GetAttributeAnimationTime(const String&) const;
  3709. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3710. Variant GetAttributeDefault(const String&) const;
  3711. UIElement GetChild(const String&, bool = false) const;
  3712. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3713. Array<UIElement> GetChildren(bool = false) const;
  3714. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3715. UIElement GetElementEventSender() const;
  3716. bool GetInterceptNetworkUpdate(const String&) const;
  3717. uint GetNumChildren(bool) const;
  3718. bool HasSubscribedToEvent(Object, const String&);
  3719. bool HasSubscribedToEvent(const String&);
  3720. bool HasTag(const String&) const;
  3721. void InsertChild(uint, UIElement);
  3722. bool IsChildOf(UIElement) const;
  3723. bool IsInside(IntVector2, bool);
  3724. bool IsInsideCombined(IntVector2, bool);
  3725. bool Load(File);
  3726. bool Load(VectorBuffer&);
  3727. UIElement LoadChildXML(XMLFile, XMLFile);
  3728. UIElement LoadChildXML(const XMLElement&, XMLFile);
  3729. bool LoadJSON(const JSONValue&);
  3730. bool LoadXML(File);
  3731. bool LoadXML(VectorBuffer&);
  3732. bool LoadXML(XMLFile, XMLFile);
  3733. bool LoadXML(const XMLElement&, XMLFile);
  3734. bool LoadXML(const XMLElement&);
  3735. void MarkNetworkUpdate() const;
  3736. void Remove();
  3737. void RemoveAllChildren();
  3738. void RemoveAllTags();
  3739. void RemoveAttributeAnimation(const String&);
  3740. void RemoveChild(UIElement, uint = 0);
  3741. void RemoveChild(uint);
  3742. void RemoveInstanceDefault();
  3743. void RemoveObjectAnimation();
  3744. bool RemoveTag(const String&);
  3745. void ResetDeepEnabled();
  3746. void ResetToDefault();
  3747. bool Save(File) const;
  3748. bool Save(VectorBuffer&) const;
  3749. bool SaveJSON(JSONValue&) const;
  3750. bool SaveXML(File, const String& = "\t");
  3751. bool SaveXML(VectorBuffer&, const String& = "\t");
  3752. bool SaveXML(XMLElement&) const;
  3753. IntVector2 ScreenToElement(const IntVector2&);
  3754. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3755. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3756. void SetAnimationTime(float);
  3757. bool SetAttribute(const String&, const Variant&);
  3758. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3759. void SetAttributeAnimationSpeed(const String&, float);
  3760. void SetAttributeAnimationTime(const String&, float);
  3761. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3762. void SetDeepEnabled(bool);
  3763. void SetEnabledRecursive(bool);
  3764. void SetFixedHeight(int);
  3765. void SetFixedSize(int, int);
  3766. void SetFixedWidth(int);
  3767. void SetFullImageRect();
  3768. void SetHoverOffset(int, int);
  3769. void SetInterceptNetworkUpdate(const String&, bool);
  3770. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3771. void SetMaxAnchor(float, float);
  3772. void SetMaxSize(int, int);
  3773. void SetMinAnchor(float, float);
  3774. void SetMinSize(int, int);
  3775. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3776. void SetPivot(float, float);
  3777. void SetPosition(int, int);
  3778. void SetShape(CursorShape);
  3779. void SetShape(const String&);
  3780. void SetSize(int, int);
  3781. bool SetStyle(const String&, XMLFile = null);
  3782. bool SetStyle(const XMLElement&);
  3783. bool SetStyleAuto(XMLFile = null);
  3784. void UpdateLayout();
  3785. const Variant& GetVar(const StringHash&);
  3786. // Properties:
  3787. bool animationEnabled;
  3788. /* readonly */
  3789. Array<Variant> attributeDefaults;
  3790. /* readonly */
  3791. Array<AttributeInfo> attributeInfos;
  3792. Array<Variant> attributes;
  3793. BlendMode blendMode;
  3794. IntRect border;
  3795. bool bringToBack;
  3796. bool bringToFront;
  3797. /* readonly */
  3798. String category;
  3799. /* readonly */
  3800. IntVector2 childOffset;
  3801. /* readonly */
  3802. Array<UIElement> children;
  3803. IntRect clipBorder;
  3804. bool clipChildren;
  3805. /* writeonly */
  3806. Color color;
  3807. /* readonly */
  3808. bool colorGradient;
  3809. Array<Color> colors;
  3810. /* readonly */
  3811. IntRect combinedScreenRect;
  3812. XMLFile defaultStyle;
  3813. /* readonly */
  3814. float derivedOpacity;
  3815. /* readonly */
  3816. uint dragButtonCombo;
  3817. /* readonly */
  3818. int dragButtonCount;
  3819. uint dragDropMode;
  3820. bool editable;
  3821. bool elementEventSender;
  3822. bool enableAnchor;
  3823. bool enabled;
  3824. /* readonly */
  3825. bool enabledSelf;
  3826. /* readonly */
  3827. bool fixedHeight;
  3828. /* readonly */
  3829. bool fixedSize;
  3830. /* readonly */
  3831. bool fixedWidth;
  3832. bool focus;
  3833. FocusMode focusMode;
  3834. int height;
  3835. HorizontalAlignment horizontalAlignment;
  3836. IntVector2 hoverOffset;
  3837. /* readonly */
  3838. bool hovering;
  3839. IntRect imageBorder;
  3840. IntRect imageRect;
  3841. int indent;
  3842. int indentSpacing;
  3843. /* readonly */
  3844. int indentWidth;
  3845. bool internal;
  3846. IntRect layoutBorder;
  3847. Vector2 layoutFlexScale;
  3848. LayoutMode layoutMode;
  3849. int layoutSpacing;
  3850. Material material;
  3851. Vector2 maxAnchor;
  3852. int maxHeight;
  3853. IntVector2 maxOffset;
  3854. IntVector2 maxSize;
  3855. int maxWidth;
  3856. Vector2 minAnchor;
  3857. int minHeight;
  3858. IntVector2 minOffset;
  3859. IntVector2 minSize;
  3860. int minWidth;
  3861. String name;
  3862. /* readonly */
  3863. uint numAllChildren;
  3864. /* readonly */
  3865. uint numAttributes;
  3866. /* readonly */
  3867. uint numChildren;
  3868. ObjectAnimation objectAnimation;
  3869. float opacity;
  3870. UIElement parent;
  3871. Vector2 pivot;
  3872. IntVector2 position;
  3873. int priority;
  3874. /* readonly */
  3875. int refs;
  3876. /* readonly */
  3877. UIElement root;
  3878. /* readonly */
  3879. IntVector2 screenPosition;
  3880. bool selected;
  3881. String shape;
  3882. IntVector2 size;
  3883. bool sortChildren;
  3884. String style;
  3885. /* readonly */
  3886. Array<String> tags;
  3887. bool temporary;
  3888. Texture texture;
  3889. bool tiled;
  3890. TraversalMode traversalMode;
  3891. /* readonly */
  3892. StringHash type;
  3893. /* readonly */
  3894. String typeName;
  3895. bool useDerivedOpacity;
  3896. bool useSystemShapes;
  3897. /* readonly */
  3898. VariantMap vars;
  3899. VerticalAlignment verticalAlignment;
  3900. bool visible;
  3901. /* readonly */
  3902. bool visibleEffective;
  3903. /* readonly */
  3904. int weakRefs;
  3905. int width;
  3906. };
  3907. class CustomGeometry
  3908. {
  3909. public:
  3910. // Methods:
  3911. void ApplyAttributes();
  3912. void BeginGeometry(uint, PrimitiveType);
  3913. void Clear();
  3914. void Commit();
  3915. void DefineColor(const Color&);
  3916. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3917. void DefineNormal(const Vector3&);
  3918. void DefineTangent(const Vector4&);
  3919. void DefineTexCoord(const Vector2&);
  3920. void DefineVertex(const Vector3&);
  3921. void DrawDebugGeometry(DebugRenderer, bool);
  3922. Variant GetAttribute(const String&) const;
  3923. ValueAnimation GetAttributeAnimation(const String&) const;
  3924. float GetAttributeAnimationSpeed(const String&) const;
  3925. float GetAttributeAnimationTime(const String&) const;
  3926. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3927. Variant GetAttributeDefault(const String&) const;
  3928. bool GetInterceptNetworkUpdate(const String&) const;
  3929. CustomGeometryVertex GetVertex(uint, uint);
  3930. bool HasSubscribedToEvent(Object, const String&);
  3931. bool HasSubscribedToEvent(const String&);
  3932. bool IsInView(Camera) const;
  3933. bool Load(File);
  3934. bool Load(VectorBuffer&);
  3935. bool LoadJSON(const JSONValue&);
  3936. bool LoadXML(const XMLElement&);
  3937. void MarkNetworkUpdate() const;
  3938. void Remove();
  3939. void RemoveAttributeAnimation(const String&);
  3940. void RemoveInstanceDefault();
  3941. void RemoveObjectAnimation();
  3942. void ResetToDefault();
  3943. bool Save(File) const;
  3944. bool Save(VectorBuffer&) const;
  3945. bool SaveJSON(JSONValue&) const;
  3946. bool SaveXML(XMLElement&) const;
  3947. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3948. void SetAnimationTime(float);
  3949. bool SetAttribute(const String&, const Variant&);
  3950. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3951. void SetAttributeAnimationSpeed(const String&, float);
  3952. void SetAttributeAnimationTime(const String&, float);
  3953. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3954. void SetInterceptNetworkUpdate(const String&, bool);
  3955. // Properties:
  3956. bool animationEnabled;
  3957. /* readonly */
  3958. Array<Variant> attributeDefaults;
  3959. /* readonly */
  3960. Array<AttributeInfo> attributeInfos;
  3961. Array<Variant> attributes;
  3962. /* readonly */
  3963. BoundingBox boundingBox;
  3964. bool castShadows;
  3965. /* readonly */
  3966. String category;
  3967. float drawDistance;
  3968. bool dynamic;
  3969. bool enabled;
  3970. /* readonly */
  3971. bool enabledEffective;
  3972. /* readonly */
  3973. uint id;
  3974. /* readonly */
  3975. bool inView;
  3976. uint lightMask;
  3977. float lodBias;
  3978. /* writeonly */
  3979. Material material;
  3980. Array<Material> materials;
  3981. uint maxLights;
  3982. /* readonly */
  3983. Node node;
  3984. /* readonly */
  3985. uint numAttributes;
  3986. uint numGeometries;
  3987. /* readonly */
  3988. Array<uint> numVertices;
  3989. ObjectAnimation objectAnimation;
  3990. bool occludee;
  3991. bool occluder;
  3992. /* readonly */
  3993. int refs;
  3994. /* readonly */
  3995. bool replicated;
  3996. float shadowDistance;
  3997. uint shadowMask;
  3998. bool temporary;
  3999. /* readonly */
  4000. StringHash type;
  4001. /* readonly */
  4002. String typeName;
  4003. uint viewMask;
  4004. /* readonly */
  4005. int weakRefs;
  4006. /* readonly */
  4007. BoundingBox worldBoundingBox;
  4008. /* readonly */
  4009. Zone zone;
  4010. uint zoneMask;
  4011. };
  4012. class CustomGeometryVertex
  4013. {
  4014. public:
  4015. // Properties:
  4016. uint color;
  4017. Vector3 normal;
  4018. Vector3 position;
  4019. Vector4 tangent;
  4020. Vector2 texCoord;
  4021. };
  4022. class Database
  4023. {
  4024. public:
  4025. // Methods:
  4026. DbConnection Connect(const String&);
  4027. void Disconnect(DbConnection);
  4028. bool HasSubscribedToEvent(Object, const String&);
  4029. bool HasSubscribedToEvent(const String&);
  4030. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4031. // Properties:
  4032. /* readonly */
  4033. String category;
  4034. uint poolSize;
  4035. /* readonly */
  4036. bool pooling;
  4037. /* readonly */
  4038. int refs;
  4039. /* readonly */
  4040. StringHash type;
  4041. /* readonly */
  4042. String typeName;
  4043. /* readonly */
  4044. int weakRefs;
  4045. };
  4046. class DbConnection
  4047. {
  4048. public:
  4049. // Methods:
  4050. DbResult Execute(const String&, bool = false);
  4051. bool HasSubscribedToEvent(Object, const String&);
  4052. bool HasSubscribedToEvent(const String&);
  4053. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4054. // Properties:
  4055. /* readonly */
  4056. String category;
  4057. /* readonly */
  4058. bool connected;
  4059. /* readonly */
  4060. String connectionString;
  4061. /* readonly */
  4062. int refs;
  4063. /* readonly */
  4064. StringHash type;
  4065. /* readonly */
  4066. String typeName;
  4067. /* readonly */
  4068. int weakRefs;
  4069. };
  4070. class DbResult
  4071. {
  4072. public:
  4073. ~DbResult();
  4074. DbResult();
  4075. DbResult(const DbResult&in);
  4076. // Properties:
  4077. /* readonly */
  4078. Array<String> columns;
  4079. /* readonly */
  4080. int64 numAffectedRows;
  4081. /* readonly */
  4082. uint numColumns;
  4083. /* readonly */
  4084. uint numRows;
  4085. /* readonly */
  4086. Array<Array<Variant>> row;
  4087. };
  4088. class DebugHud
  4089. {
  4090. public:
  4091. // Methods:
  4092. void ClearAppStats();
  4093. bool HasSubscribedToEvent(Object, const String&);
  4094. bool HasSubscribedToEvent(const String&);
  4095. void ResetAppStats(const String&);
  4096. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4097. void SetAppStats(const String&, const String&);
  4098. void SetAppStats(const String&, const Variant&);
  4099. void Toggle(uint);
  4100. void ToggleAll();
  4101. void Update();
  4102. // Properties:
  4103. /* readonly */
  4104. String category;
  4105. XMLFile defaultStyle;
  4106. /* readonly */
  4107. Text memoryText;
  4108. uint mode;
  4109. /* readonly */
  4110. Text modeText;
  4111. float profilerInterval;
  4112. uint profilerMaxDepth;
  4113. /* readonly */
  4114. Text profilerText;
  4115. /* readonly */
  4116. int refs;
  4117. /* readonly */
  4118. Text statsText;
  4119. /* readonly */
  4120. StringHash type;
  4121. /* readonly */
  4122. String typeName;
  4123. bool useRendererStats;
  4124. /* readonly */
  4125. int weakRefs;
  4126. };
  4127. class DebugRenderer
  4128. {
  4129. public:
  4130. // Methods:
  4131. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  4132. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  4133. void AddCross(const Vector3&, float, const Color&, bool = true);
  4134. void AddFrustum(const Frustum&, const Color&, bool = true);
  4135. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  4136. void AddNode(Node, float = 1.0, bool = true);
  4137. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4138. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  4139. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  4140. void AddSkeleton(Skeleton, const Color&, bool = true);
  4141. void AddSphere(const Sphere&, const Color&, bool = true);
  4142. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  4143. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  4144. void ApplyAttributes();
  4145. void DrawDebugGeometry(DebugRenderer, bool);
  4146. Variant GetAttribute(const String&) const;
  4147. ValueAnimation GetAttributeAnimation(const String&) const;
  4148. float GetAttributeAnimationSpeed(const String&) const;
  4149. float GetAttributeAnimationTime(const String&) const;
  4150. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4151. Variant GetAttributeDefault(const String&) const;
  4152. bool GetInterceptNetworkUpdate(const String&) const;
  4153. bool HasSubscribedToEvent(Object, const String&);
  4154. bool HasSubscribedToEvent(const String&);
  4155. bool Load(File);
  4156. bool Load(VectorBuffer&);
  4157. bool LoadJSON(const JSONValue&);
  4158. bool LoadXML(const XMLElement&);
  4159. void MarkNetworkUpdate() const;
  4160. void Remove();
  4161. void RemoveAttributeAnimation(const String&);
  4162. void RemoveInstanceDefault();
  4163. void RemoveObjectAnimation();
  4164. void ResetToDefault();
  4165. bool Save(File) const;
  4166. bool Save(VectorBuffer&) const;
  4167. bool SaveJSON(JSONValue&) const;
  4168. bool SaveXML(XMLElement&) const;
  4169. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4170. void SetAnimationTime(float);
  4171. bool SetAttribute(const String&, const Variant&);
  4172. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4173. void SetAttributeAnimationSpeed(const String&, float);
  4174. void SetAttributeAnimationTime(const String&, float);
  4175. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4176. void SetInterceptNetworkUpdate(const String&, bool);
  4177. // Properties:
  4178. bool animationEnabled;
  4179. /* readonly */
  4180. Array<Variant> attributeDefaults;
  4181. /* readonly */
  4182. Array<AttributeInfo> attributeInfos;
  4183. Array<Variant> attributes;
  4184. /* readonly */
  4185. String category;
  4186. bool enabled;
  4187. /* readonly */
  4188. bool enabledEffective;
  4189. /* readonly */
  4190. uint id;
  4191. bool lineAntiAlias;
  4192. /* readonly */
  4193. Node node;
  4194. /* readonly */
  4195. uint numAttributes;
  4196. ObjectAnimation objectAnimation;
  4197. /* readonly */
  4198. int refs;
  4199. /* readonly */
  4200. bool replicated;
  4201. bool temporary;
  4202. /* readonly */
  4203. StringHash type;
  4204. /* readonly */
  4205. String typeName;
  4206. /* readonly */
  4207. int weakRefs;
  4208. };
  4209. class DecalSet
  4210. {
  4211. public:
  4212. // Methods:
  4213. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  4214. void ApplyAttributes();
  4215. void DrawDebugGeometry(DebugRenderer, bool);
  4216. Variant GetAttribute(const String&) const;
  4217. ValueAnimation GetAttributeAnimation(const String&) const;
  4218. float GetAttributeAnimationSpeed(const String&) const;
  4219. float GetAttributeAnimationTime(const String&) const;
  4220. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4221. Variant GetAttributeDefault(const String&) const;
  4222. bool GetInterceptNetworkUpdate(const String&) const;
  4223. bool HasSubscribedToEvent(Object, const String&);
  4224. bool HasSubscribedToEvent(const String&);
  4225. bool IsInView(Camera) const;
  4226. bool Load(File);
  4227. bool Load(VectorBuffer&);
  4228. bool LoadJSON(const JSONValue&);
  4229. bool LoadXML(const XMLElement&);
  4230. void MarkNetworkUpdate() const;
  4231. void Remove();
  4232. void RemoveAllDecals();
  4233. void RemoveAttributeAnimation(const String&);
  4234. void RemoveDecals(uint);
  4235. void RemoveInstanceDefault();
  4236. void RemoveObjectAnimation();
  4237. void ResetToDefault();
  4238. bool Save(File) const;
  4239. bool Save(VectorBuffer&) const;
  4240. bool SaveJSON(JSONValue&) const;
  4241. bool SaveXML(XMLElement&) const;
  4242. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4243. void SetAnimationTime(float);
  4244. bool SetAttribute(const String&, const Variant&);
  4245. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4246. void SetAttributeAnimationSpeed(const String&, float);
  4247. void SetAttributeAnimationTime(const String&, float);
  4248. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4249. void SetInterceptNetworkUpdate(const String&, bool);
  4250. // Properties:
  4251. bool animationEnabled;
  4252. /* readonly */
  4253. Array<Variant> attributeDefaults;
  4254. /* readonly */
  4255. Array<AttributeInfo> attributeInfos;
  4256. Array<Variant> attributes;
  4257. /* readonly */
  4258. BoundingBox boundingBox;
  4259. bool castShadows;
  4260. /* readonly */
  4261. String category;
  4262. float drawDistance;
  4263. bool enabled;
  4264. /* readonly */
  4265. bool enabledEffective;
  4266. /* readonly */
  4267. uint id;
  4268. /* readonly */
  4269. bool inView;
  4270. uint lightMask;
  4271. float lodBias;
  4272. Material material;
  4273. uint maxIndices;
  4274. uint maxLights;
  4275. uint maxVertices;
  4276. /* readonly */
  4277. Node node;
  4278. /* readonly */
  4279. uint numAttributes;
  4280. /* readonly */
  4281. uint numDecals;
  4282. /* readonly */
  4283. uint numIndices;
  4284. /* readonly */
  4285. uint numVertices;
  4286. ObjectAnimation objectAnimation;
  4287. bool occludee;
  4288. bool occluder;
  4289. bool optimizeBufferSize;
  4290. /* readonly */
  4291. int refs;
  4292. /* readonly */
  4293. bool replicated;
  4294. float shadowDistance;
  4295. uint shadowMask;
  4296. bool temporary;
  4297. /* readonly */
  4298. StringHash type;
  4299. /* readonly */
  4300. String typeName;
  4301. uint viewMask;
  4302. /* readonly */
  4303. int weakRefs;
  4304. /* readonly */
  4305. BoundingBox worldBoundingBox;
  4306. /* readonly */
  4307. Zone zone;
  4308. uint zoneMask;
  4309. };
  4310. class Deserializer
  4311. {
  4312. public:
  4313. // Methods:
  4314. Array<uint8> Read(uint);
  4315. bool ReadBool();
  4316. BoundingBox ReadBoundingBox();
  4317. int8 ReadByte();
  4318. Color ReadColor();
  4319. double ReadDouble();
  4320. String ReadFileID();
  4321. float ReadFloat();
  4322. int ReadInt();
  4323. int64 ReadInt64();
  4324. IntRect ReadIntRect();
  4325. IntVector2 ReadIntVector2();
  4326. String ReadLine();
  4327. Matrix3 ReadMatrix3();
  4328. Matrix3x4 ReadMatrix3x4();
  4329. Matrix4 ReadMatrix4();
  4330. uint ReadNetID();
  4331. Quaternion ReadPackedQuaternion();
  4332. Vector3 ReadPackedVector3(float);
  4333. Quaternion ReadQuaternion();
  4334. int16 ReadShort();
  4335. String ReadString();
  4336. StringHash ReadStringHash();
  4337. uint8 ReadUByte();
  4338. uint ReadUInt();
  4339. uint64 ReadUInt64();
  4340. uint16 ReadUShort();
  4341. uint ReadVLE();
  4342. Variant ReadVariant();
  4343. VariantMap ReadVariantMap();
  4344. Vector2 ReadVector2();
  4345. Vector3 ReadVector3();
  4346. Vector4 ReadVector4();
  4347. VectorBuffer ReadVectorBuffer(uint);
  4348. uint Seek(uint);
  4349. uint SeekRelative(int);
  4350. uint Tell() const;
  4351. // Properties:
  4352. /* readonly */
  4353. uint checksum;
  4354. /* readonly */
  4355. bool eof;
  4356. /* readonly */
  4357. String name;
  4358. /* readonly */
  4359. uint position;
  4360. /* readonly */
  4361. uint size;
  4362. };
  4363. class Dictionary
  4364. {
  4365. public:
  4366. Dictionary();
  4367. // Methods:
  4368. void Clear();
  4369. void Erase(const String&);
  4370. bool Exists(const String&) const;
  4371. bool Get(const String&, void*) const;
  4372. bool Get(const String&, double&) const;
  4373. bool Get(const String&, int64&) const;
  4374. void Set(const String&, const void*);
  4375. void Set(const String&, const double&);
  4376. void Set(const String&, const int64&);
  4377. // Properties:
  4378. /* readonly */
  4379. bool empty;
  4380. /* readonly */
  4381. Array<String> keys;
  4382. /* readonly */
  4383. uint length;
  4384. };
  4385. class DictionaryValue
  4386. {
  4387. public:
  4388. ~DictionaryValue();
  4389. DictionaryValue();
  4390. };
  4391. class Drawable
  4392. {
  4393. public:
  4394. // Methods:
  4395. void ApplyAttributes();
  4396. void DrawDebugGeometry(DebugRenderer, bool);
  4397. Variant GetAttribute(const String&) const;
  4398. ValueAnimation GetAttributeAnimation(const String&) const;
  4399. float GetAttributeAnimationSpeed(const String&) const;
  4400. float GetAttributeAnimationTime(const String&) const;
  4401. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4402. Variant GetAttributeDefault(const String&) const;
  4403. bool GetInterceptNetworkUpdate(const String&) const;
  4404. bool HasSubscribedToEvent(Object, const String&);
  4405. bool HasSubscribedToEvent(const String&);
  4406. bool IsInView(Camera) const;
  4407. bool Load(File);
  4408. bool Load(VectorBuffer&);
  4409. bool LoadJSON(const JSONValue&);
  4410. bool LoadXML(const XMLElement&);
  4411. void MarkNetworkUpdate() const;
  4412. void Remove();
  4413. void RemoveAttributeAnimation(const String&);
  4414. void RemoveInstanceDefault();
  4415. void RemoveObjectAnimation();
  4416. void ResetToDefault();
  4417. bool Save(File) const;
  4418. bool Save(VectorBuffer&) const;
  4419. bool SaveJSON(JSONValue&) const;
  4420. bool SaveXML(XMLElement&) const;
  4421. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4422. void SetAnimationTime(float);
  4423. bool SetAttribute(const String&, const Variant&);
  4424. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4425. void SetAttributeAnimationSpeed(const String&, float);
  4426. void SetAttributeAnimationTime(const String&, float);
  4427. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4428. void SetInterceptNetworkUpdate(const String&, bool);
  4429. // Properties:
  4430. bool animationEnabled;
  4431. /* readonly */
  4432. Array<Variant> attributeDefaults;
  4433. /* readonly */
  4434. Array<AttributeInfo> attributeInfos;
  4435. Array<Variant> attributes;
  4436. /* readonly */
  4437. BoundingBox boundingBox;
  4438. bool castShadows;
  4439. /* readonly */
  4440. String category;
  4441. float drawDistance;
  4442. bool enabled;
  4443. /* readonly */
  4444. bool enabledEffective;
  4445. /* readonly */
  4446. uint id;
  4447. /* readonly */
  4448. bool inView;
  4449. uint lightMask;
  4450. float lodBias;
  4451. uint maxLights;
  4452. /* readonly */
  4453. Node node;
  4454. /* readonly */
  4455. uint numAttributes;
  4456. ObjectAnimation objectAnimation;
  4457. bool occludee;
  4458. bool occluder;
  4459. /* readonly */
  4460. int refs;
  4461. /* readonly */
  4462. bool replicated;
  4463. float shadowDistance;
  4464. uint shadowMask;
  4465. bool temporary;
  4466. /* readonly */
  4467. StringHash type;
  4468. /* readonly */
  4469. String typeName;
  4470. uint viewMask;
  4471. /* readonly */
  4472. int weakRefs;
  4473. /* readonly */
  4474. BoundingBox worldBoundingBox;
  4475. uint zoneMask;
  4476. };
  4477. class Drawable2D
  4478. {
  4479. public:
  4480. // Methods:
  4481. void ApplyAttributes();
  4482. void DrawDebugGeometry(DebugRenderer, bool);
  4483. Variant GetAttribute(const String&) const;
  4484. ValueAnimation GetAttributeAnimation(const String&) const;
  4485. float GetAttributeAnimationSpeed(const String&) const;
  4486. float GetAttributeAnimationTime(const String&) const;
  4487. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4488. Variant GetAttributeDefault(const String&) const;
  4489. bool GetInterceptNetworkUpdate(const String&) const;
  4490. bool HasSubscribedToEvent(Object, const String&);
  4491. bool HasSubscribedToEvent(const String&);
  4492. bool IsInView(Camera) const;
  4493. bool Load(File);
  4494. bool Load(VectorBuffer&);
  4495. bool LoadJSON(const JSONValue&);
  4496. bool LoadXML(const XMLElement&);
  4497. void MarkNetworkUpdate() const;
  4498. void Remove();
  4499. void RemoveAttributeAnimation(const String&);
  4500. void RemoveInstanceDefault();
  4501. void RemoveObjectAnimation();
  4502. void ResetToDefault();
  4503. bool Save(File) const;
  4504. bool Save(VectorBuffer&) const;
  4505. bool SaveJSON(JSONValue&) const;
  4506. bool SaveXML(XMLElement&) const;
  4507. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4508. void SetAnimationTime(float);
  4509. bool SetAttribute(const String&, const Variant&);
  4510. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4511. void SetAttributeAnimationSpeed(const String&, float);
  4512. void SetAttributeAnimationTime(const String&, float);
  4513. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4514. void SetInterceptNetworkUpdate(const String&, bool);
  4515. // Properties:
  4516. bool animationEnabled;
  4517. /* readonly */
  4518. Array<Variant> attributeDefaults;
  4519. /* readonly */
  4520. Array<AttributeInfo> attributeInfos;
  4521. Array<Variant> attributes;
  4522. /* readonly */
  4523. BoundingBox boundingBox;
  4524. bool castShadows;
  4525. /* readonly */
  4526. String category;
  4527. float drawDistance;
  4528. bool enabled;
  4529. /* readonly */
  4530. bool enabledEffective;
  4531. /* readonly */
  4532. uint id;
  4533. /* readonly */
  4534. bool inView;
  4535. int layer;
  4536. uint lightMask;
  4537. float lodBias;
  4538. uint maxLights;
  4539. /* readonly */
  4540. Node node;
  4541. /* readonly */
  4542. uint numAttributes;
  4543. ObjectAnimation objectAnimation;
  4544. bool occludee;
  4545. bool occluder;
  4546. int orderInLayer;
  4547. /* readonly */
  4548. int refs;
  4549. /* readonly */
  4550. bool replicated;
  4551. float shadowDistance;
  4552. uint shadowMask;
  4553. bool temporary;
  4554. /* readonly */
  4555. StringHash type;
  4556. /* readonly */
  4557. String typeName;
  4558. uint viewMask;
  4559. /* readonly */
  4560. int weakRefs;
  4561. /* readonly */
  4562. BoundingBox worldBoundingBox;
  4563. uint zoneMask;
  4564. };
  4565. class DropDownList
  4566. {
  4567. public:
  4568. DropDownList();
  4569. DropDownList(const String&in);
  4570. // Methods:
  4571. void AddChild(UIElement);
  4572. void AddItem(UIElement);
  4573. void AddTag(const String&);
  4574. void AddTags(const String&, int8 = ';');
  4575. void ApplyAttributes();
  4576. void BringToFront();
  4577. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4578. void DisableLayoutUpdate();
  4579. IntVector2 ElementToScreen(const IntVector2&);
  4580. void EnableLayoutUpdate();
  4581. uint FindChild(UIElement) const;
  4582. Variant GetAttribute(const String&) const;
  4583. ValueAnimation GetAttributeAnimation(const String&) const;
  4584. float GetAttributeAnimationSpeed(const String&) const;
  4585. float GetAttributeAnimationTime(const String&) const;
  4586. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4587. Variant GetAttributeDefault(const String&) const;
  4588. UIElement GetChild(const String&, bool = false) const;
  4589. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4590. Array<UIElement> GetChildren(bool = false) const;
  4591. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  4592. UIElement GetElementEventSender() const;
  4593. bool GetInterceptNetworkUpdate(const String&) const;
  4594. Array<UIElement> GetItems() const;
  4595. uint GetNumChildren(bool) const;
  4596. bool HasSubscribedToEvent(Object, const String&);
  4597. bool HasSubscribedToEvent(const String&);
  4598. bool HasTag(const String&) const;
  4599. void InsertChild(uint, UIElement);
  4600. void InsertItem(uint, UIElement);
  4601. bool IsChildOf(UIElement) const;
  4602. bool IsInside(IntVector2, bool);
  4603. bool IsInsideCombined(IntVector2, bool);
  4604. bool Load(File);
  4605. bool Load(VectorBuffer&);
  4606. UIElement LoadChildXML(XMLFile, XMLFile);
  4607. UIElement LoadChildXML(const XMLElement&, XMLFile);
  4608. bool LoadJSON(const JSONValue&);
  4609. bool LoadXML(File);
  4610. bool LoadXML(VectorBuffer&);
  4611. bool LoadXML(XMLFile, XMLFile);
  4612. bool LoadXML(const XMLElement&, XMLFile);
  4613. bool LoadXML(const XMLElement&);
  4614. void MarkNetworkUpdate() const;
  4615. void Remove();
  4616. void RemoveAllChildren();
  4617. void RemoveAllItems();
  4618. void RemoveAllTags();
  4619. void RemoveAttributeAnimation(const String&);
  4620. void RemoveChild(UIElement, uint = 0);
  4621. void RemoveChild(uint);
  4622. void RemoveInstanceDefault();
  4623. void RemoveItem(UIElement);
  4624. void RemoveItem(uint);
  4625. void RemoveObjectAnimation();
  4626. bool RemoveTag(const String&);
  4627. void ResetDeepEnabled();
  4628. void ResetToDefault();
  4629. bool Save(File) const;
  4630. bool Save(VectorBuffer&) const;
  4631. bool SaveJSON(JSONValue&) const;
  4632. bool SaveXML(File, const String& = "\t");
  4633. bool SaveXML(VectorBuffer&, const String& = "\t");
  4634. bool SaveXML(XMLElement&) const;
  4635. IntVector2 ScreenToElement(const IntVector2&);
  4636. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4637. void SetAccelerator(int, int);
  4638. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4639. void SetAnimationTime(float);
  4640. bool SetAttribute(const String&, const Variant&);
  4641. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4642. void SetAttributeAnimationSpeed(const String&, float);
  4643. void SetAttributeAnimationTime(const String&, float);
  4644. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4645. void SetDeepEnabled(bool);
  4646. void SetDisabledOffset(int, int);
  4647. void SetEnabledRecursive(bool);
  4648. void SetFixedHeight(int);
  4649. void SetFixedSize(int, int);
  4650. void SetFixedWidth(int);
  4651. void SetFullImageRect();
  4652. void SetHoverOffset(int, int);
  4653. void SetInterceptNetworkUpdate(const String&, bool);
  4654. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4655. void SetMaxAnchor(float, float);
  4656. void SetMaxSize(int, int);
  4657. void SetMinAnchor(float, float);
  4658. void SetMinSize(int, int);
  4659. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4660. void SetPivot(float, float);
  4661. void SetPosition(int, int);
  4662. void SetPressedChildOffset(int, int);
  4663. void SetPressedOffset(int, int);
  4664. void SetRepeat(float, float);
  4665. void SetSize(int, int);
  4666. bool SetStyle(const String&, XMLFile = null);
  4667. bool SetStyle(const XMLElement&);
  4668. bool SetStyleAuto(XMLFile = null);
  4669. void UpdateLayout();
  4670. const Variant& GetVar(const StringHash&);
  4671. UIElement getPopup() const;
  4672. // Properties:
  4673. /* readonly */
  4674. int acceleratorKey;
  4675. /* readonly */
  4676. int acceleratorQualifiers;
  4677. bool animationEnabled;
  4678. /* readonly */
  4679. Array<Variant> attributeDefaults;
  4680. /* readonly */
  4681. Array<AttributeInfo> attributeInfos;
  4682. Array<Variant> attributes;
  4683. BlendMode blendMode;
  4684. IntRect border;
  4685. bool bringToBack;
  4686. bool bringToFront;
  4687. /* readonly */
  4688. String category;
  4689. /* readonly */
  4690. IntVector2 childOffset;
  4691. /* readonly */
  4692. Array<UIElement> children;
  4693. IntRect clipBorder;
  4694. bool clipChildren;
  4695. /* writeonly */
  4696. Color color;
  4697. /* readonly */
  4698. bool colorGradient;
  4699. Array<Color> colors;
  4700. /* readonly */
  4701. IntRect combinedScreenRect;
  4702. XMLFile defaultStyle;
  4703. /* readonly */
  4704. float derivedOpacity;
  4705. IntVector2 disabledOffset;
  4706. /* readonly */
  4707. uint dragButtonCombo;
  4708. /* readonly */
  4709. int dragButtonCount;
  4710. uint dragDropMode;
  4711. bool editable;
  4712. bool elementEventSender;
  4713. bool enableAnchor;
  4714. bool enabled;
  4715. /* readonly */
  4716. bool enabledSelf;
  4717. /* readonly */
  4718. bool fixedHeight;
  4719. /* readonly */
  4720. bool fixedSize;
  4721. /* readonly */
  4722. bool fixedWidth;
  4723. bool focus;
  4724. FocusMode focusMode;
  4725. int height;
  4726. HorizontalAlignment horizontalAlignment;
  4727. IntVector2 hoverOffset;
  4728. /* readonly */
  4729. bool hovering;
  4730. IntRect imageBorder;
  4731. IntRect imageRect;
  4732. int indent;
  4733. int indentSpacing;
  4734. /* readonly */
  4735. int indentWidth;
  4736. bool internal;
  4737. /* readonly */
  4738. Array<UIElement> items;
  4739. IntRect layoutBorder;
  4740. Vector2 layoutFlexScale;
  4741. LayoutMode layoutMode;
  4742. int layoutSpacing;
  4743. /* readonly */
  4744. ListView listView;
  4745. Material material;
  4746. Vector2 maxAnchor;
  4747. int maxHeight;
  4748. IntVector2 maxOffset;
  4749. IntVector2 maxSize;
  4750. int maxWidth;
  4751. Vector2 minAnchor;
  4752. int minHeight;
  4753. IntVector2 minOffset;
  4754. IntVector2 minSize;
  4755. int minWidth;
  4756. String name;
  4757. /* readonly */
  4758. uint numAllChildren;
  4759. /* readonly */
  4760. uint numAttributes;
  4761. /* readonly */
  4762. uint numChildren;
  4763. /* readonly */
  4764. uint numItems;
  4765. ObjectAnimation objectAnimation;
  4766. float opacity;
  4767. UIElement parent;
  4768. Vector2 pivot;
  4769. /* readonly */
  4770. UIElement placeholder;
  4771. String placeholderText;
  4772. IntVector2 position;
  4773. /* readonly */
  4774. bool pressed;
  4775. IntVector2 pressedChildOffset;
  4776. IntVector2 pressedOffset;
  4777. int priority;
  4778. /* readonly */
  4779. int refs;
  4780. float repeatDelay;
  4781. float repeatRate;
  4782. bool resizePopup;
  4783. /* readonly */
  4784. UIElement root;
  4785. /* readonly */
  4786. IntVector2 screenPosition;
  4787. bool selected;
  4788. /* readonly */
  4789. UIElement selectedItem;
  4790. uint selection;
  4791. bool showPopup;
  4792. IntVector2 size;
  4793. bool sortChildren;
  4794. String style;
  4795. /* readonly */
  4796. Array<String> tags;
  4797. bool temporary;
  4798. Texture texture;
  4799. bool tiled;
  4800. TraversalMode traversalMode;
  4801. /* readonly */
  4802. StringHash type;
  4803. /* readonly */
  4804. String typeName;
  4805. bool useDerivedOpacity;
  4806. /* readonly */
  4807. VariantMap vars;
  4808. VerticalAlignment verticalAlignment;
  4809. bool visible;
  4810. /* readonly */
  4811. bool visibleEffective;
  4812. /* readonly */
  4813. int weakRefs;
  4814. int width;
  4815. };
  4816. class DynamicNavigationMesh
  4817. {
  4818. public:
  4819. // Methods:
  4820. bool AddTile(const VectorBuffer&) const;
  4821. bool Allocate(const BoundingBox&, uint);
  4822. void ApplyAttributes();
  4823. bool Build();
  4824. bool Build(const BoundingBox&);
  4825. bool Build(const IntVector2&, const IntVector2&);
  4826. void DrawDebugGeometry(DebugRenderer, bool);
  4827. void DrawDebugGeometry(bool);
  4828. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4829. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4830. float GetAreaCost(uint) const;
  4831. Variant GetAttribute(const String&) const;
  4832. ValueAnimation GetAttributeAnimation(const String&) const;
  4833. float GetAttributeAnimationSpeed(const String&) const;
  4834. float GetAttributeAnimationTime(const String&) const;
  4835. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4836. Variant GetAttributeDefault(const String&) const;
  4837. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4838. bool GetInterceptNetworkUpdate(const String&) const;
  4839. Vector3 GetRandomPoint();
  4840. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4841. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  4842. VectorBuffer GetTileData(const IntVector2&) const;
  4843. IntVector2 GetTileIndex(const Vector3&) const;
  4844. bool HasSubscribedToEvent(Object, const String&);
  4845. bool HasSubscribedToEvent(const String&);
  4846. bool HasTile(const IntVector2&) const;
  4847. bool Load(File);
  4848. bool Load(VectorBuffer&);
  4849. bool LoadJSON(const JSONValue&);
  4850. bool LoadXML(const XMLElement&);
  4851. void MarkNetworkUpdate() const;
  4852. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  4853. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4854. void Remove();
  4855. void RemoveAllTiles();
  4856. void RemoveAttributeAnimation(const String&);
  4857. void RemoveInstanceDefault();
  4858. void RemoveObjectAnimation();
  4859. void RemoveTile(const IntVector2&);
  4860. void ResetToDefault();
  4861. bool Save(File) const;
  4862. bool Save(VectorBuffer&) const;
  4863. bool SaveJSON(JSONValue&) const;
  4864. bool SaveXML(XMLElement&) const;
  4865. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4866. void SetAnimationTime(float);
  4867. void SetAreaCost(uint, float);
  4868. bool SetAttribute(const String&, const Variant&);
  4869. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4870. void SetAttributeAnimationSpeed(const String&, float);
  4871. void SetAttributeAnimationTime(const String&, float);
  4872. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4873. void SetInterceptNetworkUpdate(const String&, bool);
  4874. // Properties:
  4875. float agentHeight;
  4876. float agentMaxClimb;
  4877. float agentMaxSlope;
  4878. float agentRadius;
  4879. bool animationEnabled;
  4880. /* readonly */
  4881. Array<Variant> attributeDefaults;
  4882. /* readonly */
  4883. Array<AttributeInfo> attributeInfos;
  4884. Array<Variant> attributes;
  4885. /* readonly */
  4886. BoundingBox boundingBox;
  4887. /* readonly */
  4888. String category;
  4889. float cellHeight;
  4890. float cellSize;
  4891. float detailSampleDistance;
  4892. float detailSampleMaxError;
  4893. bool drawNavAreas;
  4894. bool drawObstacles;
  4895. bool drawOffMeshConnections;
  4896. float edgeMaxError;
  4897. float edgeMaxLength;
  4898. bool enabled;
  4899. /* readonly */
  4900. bool enabledEffective;
  4901. /* readonly */
  4902. uint id;
  4903. /* readonly */
  4904. bool initialized;
  4905. bool maxLayers;
  4906. uint maxObstacles;
  4907. /* readonly */
  4908. Node node;
  4909. /* readonly */
  4910. uint numAttributes;
  4911. /* readonly */
  4912. IntVector2 numTiles;
  4913. ObjectAnimation objectAnimation;
  4914. Vector3 padding;
  4915. NavmeshPartitionType partitionType;
  4916. /* readonly */
  4917. int refs;
  4918. float regionMergeSize;
  4919. float regionMinSize;
  4920. /* readonly */
  4921. bool replicated;
  4922. bool temporary;
  4923. int tileSize;
  4924. /* readonly */
  4925. StringHash type;
  4926. /* readonly */
  4927. String typeName;
  4928. /* readonly */
  4929. int weakRefs;
  4930. /* readonly */
  4931. BoundingBox worldBoundingBox;
  4932. };
  4933. class Engine
  4934. {
  4935. public:
  4936. // Methods:
  4937. Console CreateConsole();
  4938. DebugHud CreateDebugHud();
  4939. void DumpMemory();
  4940. void DumpProfiler();
  4941. void DumpResources(bool = false);
  4942. void Exit();
  4943. bool HasSubscribedToEvent(Object, const String&);
  4944. bool HasSubscribedToEvent(const String&);
  4945. void RunFrame();
  4946. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4947. // Properties:
  4948. bool autoExit;
  4949. /* readonly */
  4950. String category;
  4951. /* readonly */
  4952. bool exiting;
  4953. /* readonly */
  4954. bool headless;
  4955. /* readonly */
  4956. bool initialized;
  4957. int maxFps;
  4958. int maxInactiveFps;
  4959. int minFps;
  4960. bool pauseMinimized;
  4961. /* readonly */
  4962. int refs;
  4963. int timeStepSmoothing;
  4964. /* readonly */
  4965. StringHash type;
  4966. /* readonly */
  4967. String typeName;
  4968. /* readonly */
  4969. int weakRefs;
  4970. };
  4971. class File
  4972. {
  4973. public:
  4974. File();
  4975. File(const String&in, FileMode mode = FILE_READ);
  4976. // Methods:
  4977. void Close();
  4978. bool HasSubscribedToEvent(Object, const String&);
  4979. bool HasSubscribedToEvent(const String&);
  4980. bool Open(const String&, FileMode = FILE_READ);
  4981. Array<uint8> Read(uint);
  4982. bool ReadBool();
  4983. BoundingBox ReadBoundingBox();
  4984. int8 ReadByte();
  4985. Color ReadColor();
  4986. double ReadDouble();
  4987. String ReadFileID();
  4988. float ReadFloat();
  4989. int ReadInt();
  4990. int64 ReadInt64();
  4991. IntRect ReadIntRect();
  4992. IntVector2 ReadIntVector2();
  4993. String ReadLine();
  4994. Matrix3 ReadMatrix3();
  4995. Matrix3x4 ReadMatrix3x4();
  4996. Matrix4 ReadMatrix4();
  4997. uint ReadNetID();
  4998. Quaternion ReadPackedQuaternion();
  4999. Vector3 ReadPackedVector3(float);
  5000. Quaternion ReadQuaternion();
  5001. int16 ReadShort();
  5002. String ReadString();
  5003. StringHash ReadStringHash();
  5004. uint8 ReadUByte();
  5005. uint ReadUInt();
  5006. uint64 ReadUInt64();
  5007. uint16 ReadUShort();
  5008. uint ReadVLE();
  5009. Variant ReadVariant();
  5010. VariantMap ReadVariantMap();
  5011. Vector2 ReadVector2();
  5012. Vector3 ReadVector3();
  5013. Vector4 ReadVector4();
  5014. VectorBuffer ReadVectorBuffer(uint);
  5015. uint Seek(uint);
  5016. uint SeekRelative(int);
  5017. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5018. uint Tell() const;
  5019. uint Write(Array<uint8>);
  5020. bool WriteBool(bool);
  5021. bool WriteBoundingBox(const BoundingBox&);
  5022. bool WriteByte(int8);
  5023. bool WriteColor(const Color&);
  5024. bool WriteDouble(double);
  5025. bool WriteFileID(const String&);
  5026. bool WriteFloat(float);
  5027. bool WriteInt(int);
  5028. bool WriteInt64(int64);
  5029. bool WriteIntRect(const IntRect&);
  5030. bool WriteIntVector2(const IntVector2&);
  5031. bool WriteLine(const String&);
  5032. bool WriteMatrix3(const Matrix3&);
  5033. bool WriteMatrix3x4(const Matrix3x4&);
  5034. bool WriteMatrix4(const Matrix4&);
  5035. bool WriteNetID(uint);
  5036. bool WritePackedQuaternion(const Quaternion&);
  5037. bool WritePackedVector3(const Vector3&, float);
  5038. bool WriteQuaternion(const Quaternion&);
  5039. bool WriteShort(int16);
  5040. bool WriteString(const String&);
  5041. bool WriteStringHash(const StringHash&);
  5042. bool WriteUByte(uint8);
  5043. bool WriteUInt(uint);
  5044. bool WriteUInt64(uint64);
  5045. bool WriteUShort(uint16);
  5046. bool WriteVLE(uint);
  5047. bool WriteVariant(const Variant&);
  5048. bool WriteVariantMap(const VariantMap&);
  5049. bool WriteVector2(const Vector2&);
  5050. bool WriteVector3(const Vector3&);
  5051. bool WriteVector4(const Vector4&);
  5052. bool WriteVectorBuffer(const VectorBuffer&);
  5053. // Properties:
  5054. /* readonly */
  5055. String category;
  5056. /* readonly */
  5057. uint checksum;
  5058. /* readonly */
  5059. bool eof;
  5060. /* readonly */
  5061. FileMode mode;
  5062. /* readonly */
  5063. String name;
  5064. /* readonly */
  5065. bool open;
  5066. /* readonly */
  5067. bool packaged;
  5068. /* readonly */
  5069. uint position;
  5070. /* readonly */
  5071. int refs;
  5072. /* readonly */
  5073. uint size;
  5074. /* readonly */
  5075. StringHash type;
  5076. /* readonly */
  5077. String typeName;
  5078. /* readonly */
  5079. int weakRefs;
  5080. };
  5081. class FileSelector
  5082. {
  5083. public:
  5084. FileSelector();
  5085. // Methods:
  5086. bool HasSubscribedToEvent(Object, const String&);
  5087. bool HasSubscribedToEvent(const String&);
  5088. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5089. void SetButtonTexts(const String&, const String&);
  5090. void SetFilters(Array<String>, uint);
  5091. void UpdateElements();
  5092. // Properties:
  5093. /* readonly */
  5094. Button cancelButton;
  5095. /* readonly */
  5096. String category;
  5097. XMLFile defaultStyle;
  5098. bool directoryMode;
  5099. /* readonly */
  5100. ListView fileList;
  5101. String fileName;
  5102. /* readonly */
  5103. LineEdit fileNameEdit;
  5104. /* readonly */
  5105. String filter;
  5106. /* readonly */
  5107. uint filterIndex;
  5108. /* readonly */
  5109. DropDownList filterList;
  5110. /* readonly */
  5111. Button okButton;
  5112. String path;
  5113. /* readonly */
  5114. LineEdit pathEdit;
  5115. /* readonly */
  5116. int refs;
  5117. String title;
  5118. /* readonly */
  5119. Text titleText;
  5120. /* readonly */
  5121. StringHash type;
  5122. /* readonly */
  5123. String typeName;
  5124. /* readonly */
  5125. int weakRefs;
  5126. /* readonly */
  5127. Window window;
  5128. };
  5129. class FileSystem
  5130. {
  5131. public:
  5132. // Methods:
  5133. bool Copy(const String&, const String&);
  5134. bool CreateDir(const String&);
  5135. bool Delete(const String&);
  5136. bool DirExists(const String&) const;
  5137. bool FileExists(const String&) const;
  5138. String GetAppPreferencesDir(const String&, const String&) const;
  5139. uint GetLastModifiedTime(const String&) const;
  5140. bool HasSubscribedToEvent(Object, const String&);
  5141. bool HasSubscribedToEvent(const String&);
  5142. bool Rename(const String&, const String&);
  5143. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  5144. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5145. bool SetLastModifiedTime(const String&, uint);
  5146. int SystemCommand(const String&, bool = false);
  5147. uint SystemCommandAsync(const String&);
  5148. bool SystemOpen(const String&, const String&);
  5149. int SystemRun(const String&, Array<String>);
  5150. uint SystemRunAsync(const String&, Array<String>);
  5151. // Properties:
  5152. /* readonly */
  5153. String category;
  5154. String currentDir;
  5155. bool executeConsoleCommands;
  5156. /* readonly */
  5157. String programDir;
  5158. /* readonly */
  5159. int refs;
  5160. /* readonly */
  5161. String temporaryDir;
  5162. /* readonly */
  5163. StringHash type;
  5164. /* readonly */
  5165. String typeName;
  5166. /* readonly */
  5167. String userDocumentsDir;
  5168. /* readonly */
  5169. int weakRefs;
  5170. };
  5171. class FocusParameters
  5172. {
  5173. public:
  5174. FocusParameters();
  5175. FocusParameters(const FocusParameters&in);
  5176. FocusParameters(bool, bool, bool, float, float);
  5177. // Properties:
  5178. bool autoSize;
  5179. bool focus;
  5180. float minView;
  5181. bool nonUniform;
  5182. float quantize;
  5183. };
  5184. class Font
  5185. {
  5186. public:
  5187. Font();
  5188. Font(const String&in);
  5189. // Methods:
  5190. IntVector2 GetTotalGlyphOffset(float) const;
  5191. bool HasSubscribedToEvent(Object, const String&);
  5192. bool HasSubscribedToEvent(const String&);
  5193. bool Load(File);
  5194. bool Load(VectorBuffer&);
  5195. bool Load(const String&);
  5196. bool Save(File) const;
  5197. bool Save(VectorBuffer&) const;
  5198. bool Save(const String&) const;
  5199. bool SaveXML(File, int, bool = false, const String& = "\t");
  5200. bool SaveXML(VectorBuffer&, int, bool = false, const String& = "\t");
  5201. bool SaveXML(const String&, int, bool = false, const String& = "\t");
  5202. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5203. // Properties:
  5204. IntVector2 absoluteGlyphOffset;
  5205. /* readonly */
  5206. String category;
  5207. /* readonly */
  5208. FontType fontType;
  5209. /* readonly */
  5210. uint memoryUse;
  5211. String name;
  5212. /* readonly */
  5213. int refs;
  5214. Vector2 scaledGlyphOffset;
  5215. /* readonly */
  5216. StringHash type;
  5217. /* readonly */
  5218. String typeName;
  5219. /* readonly */
  5220. uint useTimer;
  5221. /* readonly */
  5222. int weakRefs;
  5223. };
  5224. class Frustum
  5225. {
  5226. public:
  5227. ~Frustum();
  5228. Frustum();
  5229. Frustum(const Frustum&in);
  5230. // Methods:
  5231. void Define(const BoundingBox&, const Matrix3x4&);
  5232. void Define(const Matrix4&);
  5233. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  5234. void Define(float, float, float, float, float, const Matrix3x4&);
  5235. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  5236. void DefineSplit(const Matrix4&, float, float);
  5237. float Distance(const Vector3&) const;
  5238. Intersection IsInside(const BoundingBox&);
  5239. Intersection IsInside(const Sphere&);
  5240. Intersection IsInside(const Vector3&);
  5241. Intersection IsInsideFast(const BoundingBox&) const;
  5242. Intersection IsInsideFast(const Sphere&) const;
  5243. void Transform(const Matrix3&);
  5244. void Transform(const Matrix3x4&);
  5245. Frustum Transformed(const Matrix3&) const;
  5246. Frustum Transformed(const Matrix3x4&) const;
  5247. // Properties:
  5248. /* readonly */
  5249. Array<Vector3> vertices;
  5250. };
  5251. class Geometry
  5252. {
  5253. public:
  5254. Geometry();
  5255. // Methods:
  5256. bool HasSubscribedToEvent(Object, const String&);
  5257. bool HasSubscribedToEvent(const String&);
  5258. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5259. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  5260. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  5261. void SetIndexBuffer(IndexBuffer);
  5262. bool SetVertexBuffer(uint, VertexBuffer);
  5263. // Properties:
  5264. /* readonly */
  5265. String category;
  5266. /* readonly */
  5267. bool empty;
  5268. IndexBuffer indexBuffer;
  5269. /* readonly */
  5270. uint indexCount;
  5271. /* readonly */
  5272. uint indexStart;
  5273. float lodDistance;
  5274. uint numVertexBuffers;
  5275. /* readonly */
  5276. PrimitiveType primitiveType;
  5277. /* readonly */
  5278. int refs;
  5279. /* readonly */
  5280. StringHash type;
  5281. /* readonly */
  5282. String typeName;
  5283. /* readonly */
  5284. Array<VertexBuffer> vertexBuffers;
  5285. /* readonly */
  5286. uint vertexCount;
  5287. /* readonly */
  5288. uint vertexStart;
  5289. /* readonly */
  5290. int weakRefs;
  5291. };
  5292. class Graphics
  5293. {
  5294. public:
  5295. // Methods:
  5296. void BeginDumpShaders(const String&);
  5297. void Close();
  5298. void EndDumpShaders();
  5299. bool HasSubscribedToEvent(Object, const String&);
  5300. bool HasSubscribedToEvent(const String&);
  5301. void Maximize();
  5302. void Minimize();
  5303. void PrecacheShaders(File);
  5304. void PrecacheShaders(VectorBuffer&);
  5305. void Raise();
  5306. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5307. bool SetMode(int, int);
  5308. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  5309. void SetWindowPosition(int, int);
  5310. bool TakeScreenShot(Image);
  5311. bool ToggleFullscreen();
  5312. // Properties:
  5313. /* readonly */
  5314. String apiName;
  5315. /* readonly */
  5316. bool borderless;
  5317. /* readonly */
  5318. String category;
  5319. /* readonly */
  5320. int currentMonitor;
  5321. /* readonly */
  5322. bool deferredSupport;
  5323. /* readonly */
  5324. Array<IntVector2> desktopResolution;
  5325. /* readonly */
  5326. bool deviceLost;
  5327. /* readonly */
  5328. Array<Vector3> displayDPI;
  5329. bool dither;
  5330. bool flushGPU;
  5331. /* readonly */
  5332. bool fullscreen;
  5333. /* readonly */
  5334. bool hardwareShadowSupport;
  5335. /* readonly */
  5336. int height;
  5337. /* readonly */
  5338. bool initialized;
  5339. /* readonly */
  5340. bool instancingSupport;
  5341. /* readonly */
  5342. bool lightPrepassSupport;
  5343. /* readonly */
  5344. bool maximized;
  5345. /* readonly */
  5346. int monitorCount;
  5347. /* readonly */
  5348. int multiSample;
  5349. /* readonly */
  5350. Array<int> multiSampleLevels;
  5351. /* readonly */
  5352. uint numBatches;
  5353. /* readonly */
  5354. uint numPrimitives;
  5355. String orientations;
  5356. /* readonly */
  5357. bool readableDepthSupport;
  5358. /* readonly */
  5359. int refs;
  5360. /* readonly */
  5361. bool resizable;
  5362. /* readonly */
  5363. Array<Array<IntVector3>> resolutions;
  5364. bool sRGB;
  5365. /* readonly */
  5366. bool sRGBSupport;
  5367. /* readonly */
  5368. bool sRGBWriteSupport;
  5369. String shaderCacheDir;
  5370. /* readonly */
  5371. IntVector2 size;
  5372. /* readonly */
  5373. bool tripleBuffer;
  5374. /* readonly */
  5375. StringHash type;
  5376. /* readonly */
  5377. String typeName;
  5378. /* readonly */
  5379. bool vsync;
  5380. /* readonly */
  5381. int weakRefs;
  5382. /* readonly */
  5383. int width;
  5384. /* writeonly */
  5385. Image windowIcon;
  5386. IntVector2 windowPosition;
  5387. String windowTitle;
  5388. };
  5389. class HttpRequest
  5390. {
  5391. public:
  5392. // Methods:
  5393. Array<uint8> Read(uint);
  5394. bool ReadBool();
  5395. BoundingBox ReadBoundingBox();
  5396. int8 ReadByte();
  5397. Color ReadColor();
  5398. double ReadDouble();
  5399. String ReadFileID();
  5400. float ReadFloat();
  5401. int ReadInt();
  5402. int64 ReadInt64();
  5403. IntRect ReadIntRect();
  5404. IntVector2 ReadIntVector2();
  5405. String ReadLine();
  5406. Matrix3 ReadMatrix3();
  5407. Matrix3x4 ReadMatrix3x4();
  5408. Matrix4 ReadMatrix4();
  5409. uint ReadNetID();
  5410. Quaternion ReadPackedQuaternion();
  5411. Vector3 ReadPackedVector3(float);
  5412. Quaternion ReadQuaternion();
  5413. int16 ReadShort();
  5414. String ReadString();
  5415. StringHash ReadStringHash();
  5416. uint8 ReadUByte();
  5417. uint ReadUInt();
  5418. uint64 ReadUInt64();
  5419. uint16 ReadUShort();
  5420. uint ReadVLE();
  5421. Variant ReadVariant();
  5422. VariantMap ReadVariantMap();
  5423. Vector2 ReadVector2();
  5424. Vector3 ReadVector3();
  5425. Vector4 ReadVector4();
  5426. VectorBuffer ReadVectorBuffer(uint);
  5427. uint Seek(uint);
  5428. uint SeekRelative(int);
  5429. uint Tell() const;
  5430. // Properties:
  5431. /* readonly */
  5432. uint availableSize;
  5433. /* readonly */
  5434. uint checksum;
  5435. /* readonly */
  5436. bool eof;
  5437. /* readonly */
  5438. String error;
  5439. /* readonly */
  5440. String name;
  5441. /* readonly */
  5442. bool open;
  5443. /* readonly */
  5444. uint position;
  5445. /* readonly */
  5446. int refs;
  5447. /* readonly */
  5448. uint size;
  5449. /* readonly */
  5450. HttpRequestState state;
  5451. /* readonly */
  5452. String url;
  5453. /* readonly */
  5454. String verb;
  5455. /* readonly */
  5456. int weakRefs;
  5457. };
  5458. class IKEffector
  5459. {
  5460. public:
  5461. // Methods:
  5462. void ApplyAttributes();
  5463. void DrawDebugGeometry(DebugRenderer, bool);
  5464. void DrawDebugGeometry(bool);
  5465. Variant GetAttribute(const String&) const;
  5466. ValueAnimation GetAttributeAnimation(const String&) const;
  5467. float GetAttributeAnimationSpeed(const String&) const;
  5468. float GetAttributeAnimationTime(const String&) const;
  5469. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5470. Variant GetAttributeDefault(const String&) const;
  5471. bool GetInterceptNetworkUpdate(const String&) const;
  5472. bool HasSubscribedToEvent(Object, const String&);
  5473. bool HasSubscribedToEvent(const String&);
  5474. bool Load(File);
  5475. bool Load(VectorBuffer&);
  5476. bool LoadJSON(const JSONValue&);
  5477. bool LoadXML(const XMLElement&);
  5478. void MarkNetworkUpdate() const;
  5479. void Remove();
  5480. void RemoveAttributeAnimation(const String&);
  5481. void RemoveInstanceDefault();
  5482. void RemoveObjectAnimation();
  5483. void ResetToDefault();
  5484. bool Save(File) const;
  5485. bool Save(VectorBuffer&) const;
  5486. bool SaveJSON(JSONValue&) const;
  5487. bool SaveXML(XMLElement&) const;
  5488. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5489. void SetAnimationTime(float);
  5490. bool SetAttribute(const String&, const Variant&);
  5491. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5492. void SetAttributeAnimationSpeed(const String&, float);
  5493. void SetAttributeAnimationTime(const String&, float);
  5494. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5495. void SetInterceptNetworkUpdate(const String&, bool);
  5496. // Properties:
  5497. bool animationEnabled;
  5498. /* readonly */
  5499. Array<Variant> attributeDefaults;
  5500. /* readonly */
  5501. Array<AttributeInfo> attributeInfos;
  5502. Array<Variant> attributes;
  5503. /* readonly */
  5504. String category;
  5505. uint chainLength;
  5506. bool enabled;
  5507. /* readonly */
  5508. bool enabledEffective;
  5509. /* readonly */
  5510. uint id;
  5511. /* readonly */
  5512. Node node;
  5513. /* readonly */
  5514. uint numAttributes;
  5515. ObjectAnimation objectAnimation;
  5516. /* readonly */
  5517. int refs;
  5518. /* readonly */
  5519. bool replicated;
  5520. float rotationDecay;
  5521. float rotationWeight;
  5522. String targetName;
  5523. Node targetNode;
  5524. Vector3 targetPosition;
  5525. Quaternion targetRotation;
  5526. bool temporary;
  5527. /* readonly */
  5528. StringHash type;
  5529. /* readonly */
  5530. String typeName;
  5531. /* readonly */
  5532. int weakRefs;
  5533. float weight;
  5534. };
  5535. class IKSolver
  5536. {
  5537. public:
  5538. // Methods:
  5539. void ApplyActivePoseToScene();
  5540. void ApplyAttributes();
  5541. void ApplyOriginalPoseToActivePose();
  5542. void ApplyOriginalPoseToScene();
  5543. void ApplySceneToActivePose();
  5544. void ApplySceneToInitialPose();
  5545. void CalculateJointRotations();
  5546. void DrawDebugGeometry(DebugRenderer, bool);
  5547. void DrawDebugGeometry(bool);
  5548. Variant GetAttribute(const String&) const;
  5549. ValueAnimation GetAttributeAnimation(const String&) const;
  5550. float GetAttributeAnimationSpeed(const String&) const;
  5551. float GetAttributeAnimationTime(const String&) const;
  5552. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5553. Variant GetAttributeDefault(const String&) const;
  5554. bool GetInterceptNetworkUpdate(const String&) const;
  5555. bool HasSubscribedToEvent(Object, const String&);
  5556. bool HasSubscribedToEvent(const String&);
  5557. bool Load(File);
  5558. bool Load(VectorBuffer&);
  5559. bool LoadJSON(const JSONValue&);
  5560. bool LoadXML(const XMLElement&);
  5561. void MarkNetworkUpdate() const;
  5562. void RebuildChainTrees();
  5563. void RecalculateSegmentLengths();
  5564. void Remove();
  5565. void RemoveAttributeAnimation(const String&);
  5566. void RemoveInstanceDefault();
  5567. void RemoveObjectAnimation();
  5568. void ResetToDefault();
  5569. bool Save(File) const;
  5570. bool Save(VectorBuffer&) const;
  5571. bool SaveJSON(JSONValue&) const;
  5572. bool SaveXML(XMLElement&) const;
  5573. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5574. void SetAnimationTime(float);
  5575. bool SetAttribute(const String&, const Variant&);
  5576. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5577. void SetAttributeAnimationSpeed(const String&, float);
  5578. void SetAttributeAnimationTime(const String&, float);
  5579. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5580. void SetInterceptNetworkUpdate(const String&, bool);
  5581. void Solve();
  5582. // Properties:
  5583. bool AUTO_SOLVE;
  5584. bool CONSTRAINTS;
  5585. bool JOINT_ROTATIONS;
  5586. bool TARGET_ROTATIONS;
  5587. bool UPDATE_ACTIVE_POSE;
  5588. bool UPDATE_ORIGINAL_POSE;
  5589. bool USE_ORIGINAL_POSE;
  5590. IKAlgorithm algorithm;
  5591. bool animationEnabled;
  5592. /* readonly */
  5593. Array<Variant> attributeDefaults;
  5594. /* readonly */
  5595. Array<AttributeInfo> attributeInfos;
  5596. Array<Variant> attributes;
  5597. /* readonly */
  5598. String category;
  5599. bool enabled;
  5600. /* readonly */
  5601. bool enabledEffective;
  5602. /* readonly */
  5603. uint id;
  5604. uint maximumIterations;
  5605. /* readonly */
  5606. Node node;
  5607. /* readonly */
  5608. uint numAttributes;
  5609. ObjectAnimation objectAnimation;
  5610. /* readonly */
  5611. int refs;
  5612. /* readonly */
  5613. bool replicated;
  5614. bool temporary;
  5615. float tolerance;
  5616. /* readonly */
  5617. StringHash type;
  5618. /* readonly */
  5619. String typeName;
  5620. /* readonly */
  5621. int weakRefs;
  5622. };
  5623. class Image
  5624. {
  5625. public:
  5626. Image();
  5627. Image(const String&in);
  5628. // Methods:
  5629. void Clear(const Color&);
  5630. void ClearInt(uint);
  5631. bool FlipHorizontal();
  5632. bool FlipVertical();
  5633. Color GetPixel(int, int) const;
  5634. Color GetPixel(int, int, int) const;
  5635. Color GetPixelBilinear(float, float) const;
  5636. uint GetPixelInt(int, int) const;
  5637. uint GetPixelInt(int, int, int) const;
  5638. Color GetPixelTrilinear(float, float, float) const;
  5639. Image GetSubimage(const IntRect&) const;
  5640. bool HasSubscribedToEvent(Object, const String&);
  5641. bool HasSubscribedToEvent(const String&);
  5642. bool Load(File);
  5643. bool Load(VectorBuffer&);
  5644. bool Load(const String&);
  5645. bool LoadColorLUT(File);
  5646. bool LoadColorLUT(VectorBuffer&);
  5647. bool Resize(int, int);
  5648. bool Save(File) const;
  5649. bool Save(VectorBuffer&) const;
  5650. bool Save(const String&) const;
  5651. bool SaveBMP(const String&) const;
  5652. bool SaveDDS(const String&) const;
  5653. bool SaveJPG(const String&, int) const;
  5654. bool SavePNG(const String&) const;
  5655. bool SaveTGA(const String&) const;
  5656. bool SaveWEBP(const String&, float = 0.0f) const;
  5657. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5658. void SetPixel(int, int, const Color&);
  5659. void SetPixel(int, int, int, const Color&);
  5660. void SetPixelInt(int, int, int, uint);
  5661. void SetPixelInt(int, int, uint);
  5662. bool SetSize(int, int, int, uint);
  5663. bool SetSize(int, int, uint);
  5664. bool SetSubimage(const Image, const IntRect&) const;
  5665. // Properties:
  5666. /* readonly */
  5667. bool array;
  5668. /* readonly */
  5669. String category;
  5670. /* readonly */
  5671. uint components;
  5672. /* readonly */
  5673. bool compressed;
  5674. /* readonly */
  5675. CompressedFormat compressedFormat;
  5676. /* readonly */
  5677. bool cubemap;
  5678. /* readonly */
  5679. int depth;
  5680. /* readonly */
  5681. bool hasAlphaChannel;
  5682. /* readonly */
  5683. int height;
  5684. /* readonly */
  5685. uint memoryUse;
  5686. String name;
  5687. /* readonly */
  5688. uint numCompressedLevels;
  5689. /* readonly */
  5690. int refs;
  5691. /* readonly */
  5692. bool sRGB;
  5693. /* readonly */
  5694. StringHash type;
  5695. /* readonly */
  5696. String typeName;
  5697. /* readonly */
  5698. uint useTimer;
  5699. /* readonly */
  5700. int weakRefs;
  5701. /* readonly */
  5702. int width;
  5703. };
  5704. class IndexBuffer
  5705. {
  5706. public:
  5707. IndexBuffer();
  5708. // Methods:
  5709. VectorBuffer GetData();
  5710. bool HasSubscribedToEvent(Object, const String&);
  5711. bool HasSubscribedToEvent(const String&);
  5712. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5713. bool SetData(VectorBuffer&);
  5714. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  5715. void SetSize(uint, bool, bool = false);
  5716. // Properties:
  5717. /* readonly */
  5718. String category;
  5719. /* readonly */
  5720. bool dynamic;
  5721. /* readonly */
  5722. uint indexCount;
  5723. /* readonly */
  5724. uint indexSize;
  5725. /* readonly */
  5726. int refs;
  5727. bool shadowed;
  5728. /* readonly */
  5729. StringHash type;
  5730. /* readonly */
  5731. String typeName;
  5732. /* readonly */
  5733. int weakRefs;
  5734. };
  5735. class Input
  5736. {
  5737. public:
  5738. // Methods:
  5739. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  5740. void CenterMousePosition();
  5741. int GetKeyFromName(const String&) const;
  5742. int GetKeyFromScancode(int) const;
  5743. String GetKeyName(int) const;
  5744. int GetScancodeFromKey(int) const;
  5745. int GetScancodeFromName(const String&) const;
  5746. String GetScancodeName(int) const;
  5747. bool HasSubscribedToEvent(Object, const String&);
  5748. bool HasSubscribedToEvent(const String&);
  5749. uint LoadGestures(File);
  5750. uint LoadGestures(VectorBuffer&);
  5751. bool RecordGesture();
  5752. void RemoveAllGestures();
  5753. bool RemoveGesture(uint);
  5754. bool RemoveScreenJoystick(int);
  5755. void ResetMouseGrabbed();
  5756. void ResetMouseMode();
  5757. void ResetMouseVisible();
  5758. bool SaveGesture(File, uint);
  5759. bool SaveGesture(VectorBuffer&, uint);
  5760. bool SaveGestures(File);
  5761. bool SaveGestures(VectorBuffer&);
  5762. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5763. void SetMouseGrabbed(bool, bool = false);
  5764. void SetMouseMode(MouseMode, bool = false);
  5765. void SetMouseVisible(bool, bool = false);
  5766. // Properties:
  5767. /* readonly */
  5768. String category;
  5769. /* readonly */
  5770. bool focus;
  5771. /* readonly */
  5772. Vector2 inputScale;
  5773. /* readonly */
  5774. Array<JoystickState> joysticks;
  5775. /* readonly */
  5776. Array<JoystickState> joysticksByIndex;
  5777. /* readonly */
  5778. Array<JoystickState> joysticksByName;
  5779. /* readonly */
  5780. Array<bool> keyDown;
  5781. /* readonly */
  5782. Array<bool> keyPress;
  5783. /* readonly */
  5784. bool minimized;
  5785. /* readonly */
  5786. Array<bool> mouseButtonDown;
  5787. /* readonly */
  5788. Array<bool> mouseButtonPress;
  5789. bool mouseGrabbed;
  5790. /* readonly */
  5791. bool mouseLocked;
  5792. MouseMode mouseMode;
  5793. /* readonly */
  5794. IntVector2 mouseMove;
  5795. /* readonly */
  5796. int mouseMoveWheel;
  5797. /* readonly */
  5798. int mouseMoveX;
  5799. /* readonly */
  5800. int mouseMoveY;
  5801. IntVector2 mousePosition;
  5802. bool mouseVisible;
  5803. /* readonly */
  5804. uint numJoysticks;
  5805. /* readonly */
  5806. uint numTouches;
  5807. /* readonly */
  5808. Array<bool> qualifierDown;
  5809. /* readonly */
  5810. Array<bool> qualifierPress;
  5811. /* readonly */
  5812. int qualifiers;
  5813. /* readonly */
  5814. int refs;
  5815. /* readonly */
  5816. Array<bool> scancodeDown;
  5817. /* readonly */
  5818. Array<bool> scancodePress;
  5819. Array<bool> screenJoystickVisible;
  5820. /* readonly */
  5821. bool screenKeyboardSupport;
  5822. bool screenKeyboardVisible;
  5823. bool toggleFullscreen;
  5824. bool touchEmulation;
  5825. /* readonly */
  5826. Array<TouchState> touches;
  5827. /* readonly */
  5828. StringHash type;
  5829. /* readonly */
  5830. String typeName;
  5831. /* readonly */
  5832. int weakRefs;
  5833. };
  5834. class IntRect
  5835. {
  5836. public:
  5837. IntRect();
  5838. IntRect(const IntRect&in);
  5839. IntRect(int, int, int, int);
  5840. IntRect(const IntVector2&in, const IntVector2&in);
  5841. IntRect(int[]&inout);
  5842. // Methods:
  5843. int Clip(const IntRect&);
  5844. Intersection IsInside(const IntVector2&) const;
  5845. int Merge(const IntRect&);
  5846. // Properties:
  5847. int bottom;
  5848. /* readonly */
  5849. Array<int> data;
  5850. /* readonly */
  5851. int height;
  5852. int left;
  5853. int right;
  5854. /* readonly */
  5855. IntVector2 size;
  5856. int top;
  5857. /* readonly */
  5858. int width;
  5859. };
  5860. class IntVector2
  5861. {
  5862. public:
  5863. IntVector2();
  5864. IntVector2(const IntVector2&in);
  5865. IntVector2(int, int);
  5866. IntVector2(int[]&inout);
  5867. // Methods:
  5868. float Length() const;
  5869. uint ToHash() const;
  5870. String ToString() const;
  5871. // Properties:
  5872. /* readonly */
  5873. Array<int> data;
  5874. int x;
  5875. int y;
  5876. // Constants:
  5877. static const IntVector2 DOWN;
  5878. static const IntVector2 LEFT;
  5879. static const IntVector2 ONE;
  5880. static const IntVector2 RIGHT;
  5881. static const IntVector2 UP;
  5882. static const IntVector2 ZERO;
  5883. };
  5884. class IntVector3
  5885. {
  5886. public:
  5887. IntVector3();
  5888. IntVector3(const IntVector3&in);
  5889. IntVector3(int, int, int);
  5890. IntVector3(int[]&inout);
  5891. // Methods:
  5892. float Length() const;
  5893. uint ToHash() const;
  5894. String ToString() const;
  5895. // Properties:
  5896. /* readonly */
  5897. Array<int> data;
  5898. int x;
  5899. int y;
  5900. int z;
  5901. // Constants:
  5902. static const IntVector3 BACK;
  5903. static const IntVector3 DOWN;
  5904. static const IntVector3 FORWARD;
  5905. static const IntVector3 LEFT;
  5906. static const IntVector3 ONE;
  5907. static const IntVector3 RIGHT;
  5908. static const IntVector3 UP;
  5909. static const IntVector3 ZERO;
  5910. };
  5911. class JSONFile
  5912. {
  5913. public:
  5914. JSONFile();
  5915. JSONFile(const String&in);
  5916. // Methods:
  5917. bool FromString(const String&);
  5918. JSONValue& GetRoot();
  5919. bool HasSubscribedToEvent(Object, const String&);
  5920. bool HasSubscribedToEvent(const String&);
  5921. bool Load(File);
  5922. bool Load(VectorBuffer&);
  5923. bool Load(const String&);
  5924. bool Save(File) const;
  5925. bool Save(File, const String&) const;
  5926. bool Save(VectorBuffer&) const;
  5927. bool Save(const String&) const;
  5928. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5929. String ToString(const String& = String ( "\t" )) const;
  5930. // Properties:
  5931. /* readonly */
  5932. String category;
  5933. /* readonly */
  5934. uint memoryUse;
  5935. String name;
  5936. /* readonly */
  5937. int refs;
  5938. /* readonly */
  5939. JSONValue root;
  5940. /* readonly */
  5941. StringHash type;
  5942. /* readonly */
  5943. String typeName;
  5944. /* readonly */
  5945. uint useTimer;
  5946. /* readonly */
  5947. int weakRefs;
  5948. };
  5949. class JSONValue
  5950. {
  5951. public:
  5952. ~JSONValue();
  5953. JSONValue();
  5954. JSONValue(bool);
  5955. JSONValue(int);
  5956. JSONValue(uint);
  5957. JSONValue(float);
  5958. JSONValue(double);
  5959. JSONValue(const String&in);
  5960. JSONValue(const JSONValue&in);
  5961. // Methods:
  5962. void Clear();
  5963. bool Contains(const String&) const;
  5964. void Erase(const String&);
  5965. void Erase(uint, uint = 1);
  5966. bool GetBool(bool = false) const;
  5967. double GetDouble(double = 0) const;
  5968. float GetFloat(float = 0) const;
  5969. int GetInt(int = 0) const;
  5970. uint GetUInt(uint = 0) const;
  5971. Variant GetVariant(Variant = Variant ( )) const;
  5972. VariantMap GetVariantMap(VariantMap = VariantMap ( )) const;
  5973. void Insert(uint, const JSONValue&);
  5974. const JSONValue& Get(const String&) const;
  5975. void Pop();
  5976. void Push(const JSONValue&);
  5977. void Resize(uint);
  5978. void Set(const String&, const JSONValue&);
  5979. void SetVariant(const Variant&);
  5980. void SetVariantMap(const VariantMap&);
  5981. const String& GetString(const String& = String ( "" )) const;
  5982. // Properties:
  5983. /* readonly */
  5984. bool isArray;
  5985. /* readonly */
  5986. bool isBool;
  5987. /* readonly */
  5988. bool isNull;
  5989. /* readonly */
  5990. bool isNumber;
  5991. /* readonly */
  5992. bool isObject;
  5993. /* readonly */
  5994. bool isString;
  5995. /* readonly */
  5996. Array<String> keys;
  5997. /* readonly */
  5998. JSONNumberType numberType;
  5999. /* readonly */
  6000. String numberTypeName;
  6001. /* readonly */
  6002. uint size;
  6003. /* readonly */
  6004. JSONValueType valueType;
  6005. /* readonly */
  6006. String valueTypeName;
  6007. /* readonly */
  6008. Array<JSONValue> values;
  6009. };
  6010. class JoystickState
  6011. {
  6012. public:
  6013. // Properties:
  6014. /* readonly */
  6015. Array<float> axisPosition;
  6016. /* readonly */
  6017. Array<bool> buttonDown;
  6018. /* readonly */
  6019. Array<bool> buttonPress;
  6020. /* readonly */
  6021. bool controller;
  6022. /* readonly */
  6023. Array<int> hatPosition;
  6024. int joystickID;
  6025. String name;
  6026. /* readonly */
  6027. uint numAxes;
  6028. /* readonly */
  6029. uint numButtons;
  6030. /* readonly */
  6031. uint numHats;
  6032. };
  6033. class Light
  6034. {
  6035. public:
  6036. // Methods:
  6037. void ApplyAttributes();
  6038. void DrawDebugGeometry(DebugRenderer, bool);
  6039. Variant GetAttribute(const String&) const;
  6040. ValueAnimation GetAttributeAnimation(const String&) const;
  6041. float GetAttributeAnimationSpeed(const String&) const;
  6042. float GetAttributeAnimationTime(const String&) const;
  6043. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6044. Variant GetAttributeDefault(const String&) const;
  6045. bool GetInterceptNetworkUpdate(const String&) const;
  6046. bool HasSubscribedToEvent(Object, const String&);
  6047. bool HasSubscribedToEvent(const String&);
  6048. bool IsInView(Camera) const;
  6049. bool Load(File);
  6050. bool Load(VectorBuffer&);
  6051. bool LoadJSON(const JSONValue&);
  6052. bool LoadXML(const XMLElement&);
  6053. void MarkNetworkUpdate() const;
  6054. void Remove();
  6055. void RemoveAttributeAnimation(const String&);
  6056. void RemoveInstanceDefault();
  6057. void RemoveObjectAnimation();
  6058. void ResetToDefault();
  6059. bool Save(File) const;
  6060. bool Save(VectorBuffer&) const;
  6061. bool SaveJSON(JSONValue&) const;
  6062. bool SaveXML(XMLElement&) const;
  6063. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6064. void SetAnimationTime(float);
  6065. bool SetAttribute(const String&, const Variant&);
  6066. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6067. void SetAttributeAnimationSpeed(const String&, float);
  6068. void SetAttributeAnimationTime(const String&, float);
  6069. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6070. void SetInterceptNetworkUpdate(const String&, bool);
  6071. // Properties:
  6072. bool animationEnabled;
  6073. float aspectRatio;
  6074. /* readonly */
  6075. Array<Variant> attributeDefaults;
  6076. /* readonly */
  6077. Array<AttributeInfo> attributeInfos;
  6078. Array<Variant> attributes;
  6079. /* readonly */
  6080. BoundingBox boundingBox;
  6081. float brightness;
  6082. bool castShadows;
  6083. /* readonly */
  6084. String category;
  6085. Color color;
  6086. /* readonly */
  6087. Color colorFromTemperature;
  6088. float drawDistance;
  6089. /* readonly */
  6090. Color effectiveColor;
  6091. /* readonly */
  6092. float effectiveSpecularIntensity;
  6093. bool enabled;
  6094. /* readonly */
  6095. bool enabledEffective;
  6096. float fadeDistance;
  6097. float fov;
  6098. /* readonly */
  6099. Frustum frustum;
  6100. /* readonly */
  6101. uint id;
  6102. /* readonly */
  6103. bool inView;
  6104. float length;
  6105. uint lightMask;
  6106. LightType lightType;
  6107. float lodBias;
  6108. uint maxLights;
  6109. /* readonly */
  6110. bool negative;
  6111. /* readonly */
  6112. Node node;
  6113. /* readonly */
  6114. uint numAttributes;
  6115. /* readonly */
  6116. int numShadowSplits;
  6117. ObjectAnimation objectAnimation;
  6118. bool occludee;
  6119. bool occluder;
  6120. bool perVertex;
  6121. float radius;
  6122. Texture rampTexture;
  6123. float range;
  6124. /* readonly */
  6125. int refs;
  6126. /* readonly */
  6127. bool replicated;
  6128. BiasParameters shadowBias;
  6129. CascadeParameters shadowCascade;
  6130. float shadowDistance;
  6131. float shadowFadeDistance;
  6132. FocusParameters shadowFocus;
  6133. float shadowIntensity;
  6134. uint shadowMask;
  6135. float shadowMaxExtrusion;
  6136. float shadowNearFarRatio;
  6137. float shadowResolution;
  6138. Texture shapeTexture;
  6139. float specularIntensity;
  6140. float temperature;
  6141. bool temporary;
  6142. /* readonly */
  6143. StringHash type;
  6144. /* readonly */
  6145. String typeName;
  6146. bool usePhysicalValues;
  6147. uint viewMask;
  6148. /* readonly */
  6149. int weakRefs;
  6150. /* readonly */
  6151. BoundingBox worldBoundingBox;
  6152. uint zoneMask;
  6153. };
  6154. class LineEdit
  6155. {
  6156. public:
  6157. LineEdit();
  6158. LineEdit(const String&in);
  6159. // Methods:
  6160. void AddChild(UIElement);
  6161. void AddTag(const String&);
  6162. void AddTags(const String&, int8 = ';');
  6163. void ApplyAttributes();
  6164. void BringToFront();
  6165. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6166. void DisableLayoutUpdate();
  6167. IntVector2 ElementToScreen(const IntVector2&);
  6168. void EnableLayoutUpdate();
  6169. uint FindChild(UIElement) const;
  6170. Variant GetAttribute(const String&) const;
  6171. ValueAnimation GetAttributeAnimation(const String&) const;
  6172. float GetAttributeAnimationSpeed(const String&) const;
  6173. float GetAttributeAnimationTime(const String&) const;
  6174. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6175. Variant GetAttributeDefault(const String&) const;
  6176. UIElement GetChild(const String&, bool = false) const;
  6177. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6178. Array<UIElement> GetChildren(bool = false) const;
  6179. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6180. UIElement GetElementEventSender() const;
  6181. bool GetInterceptNetworkUpdate(const String&) const;
  6182. uint GetNumChildren(bool) const;
  6183. bool HasSubscribedToEvent(Object, const String&);
  6184. bool HasSubscribedToEvent(const String&);
  6185. bool HasTag(const String&) const;
  6186. void InsertChild(uint, UIElement);
  6187. bool IsChildOf(UIElement) const;
  6188. bool IsInside(IntVector2, bool);
  6189. bool IsInsideCombined(IntVector2, bool);
  6190. bool Load(File);
  6191. bool Load(VectorBuffer&);
  6192. UIElement LoadChildXML(XMLFile, XMLFile);
  6193. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6194. bool LoadJSON(const JSONValue&);
  6195. bool LoadXML(File);
  6196. bool LoadXML(VectorBuffer&);
  6197. bool LoadXML(XMLFile, XMLFile);
  6198. bool LoadXML(const XMLElement&, XMLFile);
  6199. bool LoadXML(const XMLElement&);
  6200. void MarkNetworkUpdate() const;
  6201. void Remove();
  6202. void RemoveAllChildren();
  6203. void RemoveAllTags();
  6204. void RemoveAttributeAnimation(const String&);
  6205. void RemoveChild(UIElement, uint = 0);
  6206. void RemoveChild(uint);
  6207. void RemoveInstanceDefault();
  6208. void RemoveObjectAnimation();
  6209. bool RemoveTag(const String&);
  6210. void ResetDeepEnabled();
  6211. void ResetToDefault();
  6212. bool Save(File) const;
  6213. bool Save(VectorBuffer&) const;
  6214. bool SaveJSON(JSONValue&) const;
  6215. bool SaveXML(File, const String& = "\t");
  6216. bool SaveXML(VectorBuffer&, const String& = "\t");
  6217. bool SaveXML(XMLElement&) const;
  6218. IntVector2 ScreenToElement(const IntVector2&);
  6219. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6220. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6221. void SetAnimationTime(float);
  6222. bool SetAttribute(const String&, const Variant&);
  6223. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6224. void SetAttributeAnimationSpeed(const String&, float);
  6225. void SetAttributeAnimationTime(const String&, float);
  6226. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6227. void SetDeepEnabled(bool);
  6228. void SetEnabledRecursive(bool);
  6229. void SetFixedHeight(int);
  6230. void SetFixedSize(int, int);
  6231. void SetFixedWidth(int);
  6232. void SetFullImageRect();
  6233. void SetHoverOffset(int, int);
  6234. void SetInterceptNetworkUpdate(const String&, bool);
  6235. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6236. void SetMaxAnchor(float, float);
  6237. void SetMaxSize(int, int);
  6238. void SetMinAnchor(float, float);
  6239. void SetMinSize(int, int);
  6240. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6241. void SetPivot(float, float);
  6242. void SetPosition(int, int);
  6243. void SetSize(int, int);
  6244. bool SetStyle(const String&, XMLFile = null);
  6245. bool SetStyle(const XMLElement&);
  6246. bool SetStyleAuto(XMLFile = null);
  6247. void UpdateLayout();
  6248. const Variant& GetVar(const StringHash&);
  6249. // Properties:
  6250. bool animationEnabled;
  6251. /* readonly */
  6252. Array<Variant> attributeDefaults;
  6253. /* readonly */
  6254. Array<AttributeInfo> attributeInfos;
  6255. Array<Variant> attributes;
  6256. BlendMode blendMode;
  6257. IntRect border;
  6258. bool bringToBack;
  6259. bool bringToFront;
  6260. /* readonly */
  6261. String category;
  6262. /* readonly */
  6263. IntVector2 childOffset;
  6264. /* readonly */
  6265. Array<UIElement> children;
  6266. IntRect clipBorder;
  6267. bool clipChildren;
  6268. /* writeonly */
  6269. Color color;
  6270. /* readonly */
  6271. bool colorGradient;
  6272. Array<Color> colors;
  6273. /* readonly */
  6274. IntRect combinedScreenRect;
  6275. /* readonly */
  6276. BorderImage cursor;
  6277. float cursorBlinkRate;
  6278. bool cursorMovable;
  6279. uint cursorPosition;
  6280. XMLFile defaultStyle;
  6281. /* readonly */
  6282. float derivedOpacity;
  6283. /* readonly */
  6284. uint dragButtonCombo;
  6285. /* readonly */
  6286. int dragButtonCount;
  6287. uint dragDropMode;
  6288. uint echoCharacter;
  6289. bool editable;
  6290. bool elementEventSender;
  6291. bool enableAnchor;
  6292. bool enabled;
  6293. /* readonly */
  6294. bool enabledSelf;
  6295. /* readonly */
  6296. bool fixedHeight;
  6297. /* readonly */
  6298. bool fixedSize;
  6299. /* readonly */
  6300. bool fixedWidth;
  6301. bool focus;
  6302. FocusMode focusMode;
  6303. int height;
  6304. HorizontalAlignment horizontalAlignment;
  6305. IntVector2 hoverOffset;
  6306. /* readonly */
  6307. bool hovering;
  6308. IntRect imageBorder;
  6309. IntRect imageRect;
  6310. int indent;
  6311. int indentSpacing;
  6312. /* readonly */
  6313. int indentWidth;
  6314. bool internal;
  6315. IntRect layoutBorder;
  6316. Vector2 layoutFlexScale;
  6317. LayoutMode layoutMode;
  6318. int layoutSpacing;
  6319. Material material;
  6320. Vector2 maxAnchor;
  6321. int maxHeight;
  6322. uint maxLength;
  6323. IntVector2 maxOffset;
  6324. IntVector2 maxSize;
  6325. int maxWidth;
  6326. Vector2 minAnchor;
  6327. int minHeight;
  6328. IntVector2 minOffset;
  6329. IntVector2 minSize;
  6330. int minWidth;
  6331. String name;
  6332. /* readonly */
  6333. uint numAllChildren;
  6334. /* readonly */
  6335. uint numAttributes;
  6336. /* readonly */
  6337. uint numChildren;
  6338. ObjectAnimation objectAnimation;
  6339. float opacity;
  6340. UIElement parent;
  6341. Vector2 pivot;
  6342. IntVector2 position;
  6343. int priority;
  6344. /* readonly */
  6345. int refs;
  6346. /* readonly */
  6347. UIElement root;
  6348. /* readonly */
  6349. IntVector2 screenPosition;
  6350. bool selected;
  6351. IntVector2 size;
  6352. bool sortChildren;
  6353. String style;
  6354. /* readonly */
  6355. Array<String> tags;
  6356. bool temporary;
  6357. String text;
  6358. bool textCopyable;
  6359. /* readonly */
  6360. Text textElement;
  6361. bool textSelectable;
  6362. Texture texture;
  6363. bool tiled;
  6364. TraversalMode traversalMode;
  6365. /* readonly */
  6366. StringHash type;
  6367. /* readonly */
  6368. String typeName;
  6369. bool useDerivedOpacity;
  6370. /* readonly */
  6371. VariantMap vars;
  6372. VerticalAlignment verticalAlignment;
  6373. bool visible;
  6374. /* readonly */
  6375. bool visibleEffective;
  6376. /* readonly */
  6377. int weakRefs;
  6378. int width;
  6379. };
  6380. class ListView
  6381. {
  6382. public:
  6383. ListView();
  6384. ListView(const String&in);
  6385. // Methods:
  6386. void AddChild(UIElement);
  6387. void AddItem(UIElement);
  6388. void AddSelection(uint);
  6389. void AddTag(const String&);
  6390. void AddTags(const String&, int8 = ';');
  6391. void ApplyAttributes();
  6392. void BringToFront();
  6393. void ChangeSelection(int, bool);
  6394. void ClearSelection();
  6395. void CopySelectedItemsToClipboard();
  6396. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6397. void DisableInternalLayoutUpdate();
  6398. void DisableLayoutUpdate();
  6399. IntVector2 ElementToScreen(const IntVector2&);
  6400. void EnableInternalLayoutUpdate();
  6401. void EnableLayoutUpdate();
  6402. void Expand(uint, bool, bool = false);
  6403. uint FindChild(UIElement) const;
  6404. uint FindItem(UIElement);
  6405. Variant GetAttribute(const String&) const;
  6406. ValueAnimation GetAttributeAnimation(const String&) const;
  6407. float GetAttributeAnimationSpeed(const String&) const;
  6408. float GetAttributeAnimationTime(const String&) const;
  6409. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6410. Variant GetAttributeDefault(const String&) const;
  6411. UIElement GetChild(const String&, bool = false) const;
  6412. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6413. Array<UIElement> GetChildren(bool = false) const;
  6414. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6415. UIElement GetElementEventSender() const;
  6416. bool GetInterceptNetworkUpdate(const String&) const;
  6417. Array<UIElement> GetItems() const;
  6418. uint GetNumChildren(bool) const;
  6419. bool HasSubscribedToEvent(Object, const String&);
  6420. bool HasSubscribedToEvent(const String&);
  6421. bool HasTag(const String&) const;
  6422. void InsertChild(uint, UIElement);
  6423. void InsertItem(uint, UIElement, UIElement = null);
  6424. bool IsChildOf(UIElement) const;
  6425. bool IsExpanded(uint) const;
  6426. bool IsInside(IntVector2, bool);
  6427. bool IsInsideCombined(IntVector2, bool);
  6428. bool IsSelected(uint) const;
  6429. bool Load(File);
  6430. bool Load(VectorBuffer&);
  6431. UIElement LoadChildXML(XMLFile, XMLFile);
  6432. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6433. bool LoadJSON(const JSONValue&);
  6434. bool LoadXML(File);
  6435. bool LoadXML(VectorBuffer&);
  6436. bool LoadXML(XMLFile, XMLFile);
  6437. bool LoadXML(const XMLElement&, XMLFile);
  6438. bool LoadXML(const XMLElement&);
  6439. void MarkNetworkUpdate() const;
  6440. void Remove();
  6441. void RemoveAllChildren();
  6442. void RemoveAllItems();
  6443. void RemoveAllTags();
  6444. void RemoveAttributeAnimation(const String&);
  6445. void RemoveChild(UIElement, uint = 0);
  6446. void RemoveChild(uint);
  6447. void RemoveInstanceDefault();
  6448. void RemoveItem(UIElement, uint = 0);
  6449. void RemoveItem(uint);
  6450. void RemoveObjectAnimation();
  6451. void RemoveSelection(uint);
  6452. bool RemoveTag(const String&);
  6453. void ResetDeepEnabled();
  6454. void ResetToDefault();
  6455. bool Save(File) const;
  6456. bool Save(VectorBuffer&) const;
  6457. bool SaveJSON(JSONValue&) const;
  6458. bool SaveXML(File, const String& = "\t");
  6459. bool SaveXML(VectorBuffer&, const String& = "\t");
  6460. bool SaveXML(XMLElement&) const;
  6461. IntVector2 ScreenToElement(const IntVector2&);
  6462. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6463. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6464. void SetAnimationTime(float);
  6465. bool SetAttribute(const String&, const Variant&);
  6466. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6467. void SetAttributeAnimationSpeed(const String&, float);
  6468. void SetAttributeAnimationTime(const String&, float);
  6469. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6470. void SetDeepEnabled(bool);
  6471. void SetEnabledRecursive(bool);
  6472. void SetFixedHeight(int);
  6473. void SetFixedSize(int, int);
  6474. void SetFixedWidth(int);
  6475. void SetInterceptNetworkUpdate(const String&, bool);
  6476. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6477. void SetMaxAnchor(float, float);
  6478. void SetMaxSize(int, int);
  6479. void SetMinAnchor(float, float);
  6480. void SetMinSize(int, int);
  6481. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6482. void SetPivot(float, float);
  6483. void SetPosition(int, int);
  6484. void SetScrollBarsVisible(bool, bool);
  6485. void SetSelections(Array<uint>);
  6486. void SetSize(int, int);
  6487. bool SetStyle(const String&, XMLFile = null);
  6488. bool SetStyle(const XMLElement&);
  6489. bool SetStyleAuto(XMLFile = null);
  6490. void SetViewPosition(int, int);
  6491. void ToggleExpand(uint, bool = false);
  6492. void ToggleSelection(uint);
  6493. void UpdateInternalLayout();
  6494. void UpdateLayout();
  6495. const Variant& GetVar(const StringHash&);
  6496. // Properties:
  6497. bool animationEnabled;
  6498. /* readonly */
  6499. Array<Variant> attributeDefaults;
  6500. /* readonly */
  6501. Array<AttributeInfo> attributeInfos;
  6502. Array<Variant> attributes;
  6503. bool autoDisableChildren;
  6504. float autoDisableThreshold;
  6505. int baseIndent;
  6506. bool bringToBack;
  6507. bool bringToFront;
  6508. /* readonly */
  6509. String category;
  6510. /* readonly */
  6511. IntVector2 childOffset;
  6512. /* readonly */
  6513. Array<UIElement> children;
  6514. bool clearSelectionOnDefocus;
  6515. IntRect clipBorder;
  6516. bool clipChildren;
  6517. /* writeonly */
  6518. Color color;
  6519. /* readonly */
  6520. bool colorGradient;
  6521. Array<Color> colors;
  6522. /* readonly */
  6523. IntRect combinedScreenRect;
  6524. /* readonly */
  6525. UIElement contentElement;
  6526. XMLFile defaultStyle;
  6527. /* readonly */
  6528. float derivedOpacity;
  6529. /* readonly */
  6530. uint dragButtonCombo;
  6531. /* readonly */
  6532. int dragButtonCount;
  6533. uint dragDropMode;
  6534. bool editable;
  6535. bool elementEventSender;
  6536. bool enableAnchor;
  6537. bool enabled;
  6538. /* readonly */
  6539. bool enabledSelf;
  6540. /* readonly */
  6541. bool fixedHeight;
  6542. /* readonly */
  6543. bool fixedSize;
  6544. /* readonly */
  6545. bool fixedWidth;
  6546. bool focus;
  6547. FocusMode focusMode;
  6548. int height;
  6549. bool hierarchyMode;
  6550. HighlightMode highlightMode;
  6551. HorizontalAlignment horizontalAlignment;
  6552. /* readonly */
  6553. ScrollBar horizontalScrollBar;
  6554. /* readonly */
  6555. bool hovering;
  6556. int indent;
  6557. int indentSpacing;
  6558. /* readonly */
  6559. int indentWidth;
  6560. bool internal;
  6561. /* readonly */
  6562. Array<UIElement> items;
  6563. IntRect layoutBorder;
  6564. Vector2 layoutFlexScale;
  6565. LayoutMode layoutMode;
  6566. int layoutSpacing;
  6567. Vector2 maxAnchor;
  6568. int maxHeight;
  6569. IntVector2 maxOffset;
  6570. IntVector2 maxSize;
  6571. int maxWidth;
  6572. Vector2 minAnchor;
  6573. int minHeight;
  6574. IntVector2 minOffset;
  6575. IntVector2 minSize;
  6576. int minWidth;
  6577. bool multiselect;
  6578. String name;
  6579. /* readonly */
  6580. uint numAllChildren;
  6581. /* readonly */
  6582. uint numAttributes;
  6583. /* readonly */
  6584. uint numChildren;
  6585. /* readonly */
  6586. uint numItems;
  6587. ObjectAnimation objectAnimation;
  6588. float opacity;
  6589. float pageStep;
  6590. UIElement parent;
  6591. Vector2 pivot;
  6592. IntVector2 position;
  6593. int priority;
  6594. /* readonly */
  6595. int refs;
  6596. /* readonly */
  6597. UIElement root;
  6598. /* readonly */
  6599. IntVector2 screenPosition;
  6600. bool scrollBarsAutoVisible;
  6601. float scrollDeceleration;
  6602. /* readonly */
  6603. BorderImage scrollPanel;
  6604. float scrollSnapEpsilon;
  6605. float scrollStep;
  6606. bool selectOnClickEnd;
  6607. bool selected;
  6608. /* readonly */
  6609. UIElement selectedItem;
  6610. /* readonly */
  6611. Array<UIElement> selectedItems;
  6612. uint selection;
  6613. /* readonly */
  6614. Array<uint> selections;
  6615. IntVector2 size;
  6616. bool sortChildren;
  6617. String style;
  6618. /* readonly */
  6619. Array<String> tags;
  6620. bool temporary;
  6621. TraversalMode traversalMode;
  6622. /* readonly */
  6623. StringHash type;
  6624. /* readonly */
  6625. String typeName;
  6626. bool useDerivedOpacity;
  6627. /* readonly */
  6628. VariantMap vars;
  6629. VerticalAlignment verticalAlignment;
  6630. /* readonly */
  6631. ScrollBar verticalScrollBar;
  6632. IntVector2 viewPosition;
  6633. bool visible;
  6634. /* readonly */
  6635. bool visibleEffective;
  6636. /* readonly */
  6637. int weakRefs;
  6638. int width;
  6639. };
  6640. class Localization
  6641. {
  6642. public:
  6643. // Methods:
  6644. String Get(const String&);
  6645. String GetLanguage(int);
  6646. int GetLanguageIndex(const String&);
  6647. bool HasSubscribedToEvent(Object, const String&);
  6648. bool HasSubscribedToEvent(const String&);
  6649. void LoadJSONFile(const String&, const String = String ( "" ) const);
  6650. void LoadMultipleLanguageJSON(const JSONValue&);
  6651. void LoadSingleLanguageJSON(const JSONValue&, const String& = String ( "" ) const);
  6652. void Reset();
  6653. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6654. void SetLanguage(const String&);
  6655. void SetLanguage(int);
  6656. // Properties:
  6657. /* readonly */
  6658. String category;
  6659. /* readonly */
  6660. String language;
  6661. /* readonly */
  6662. int languageIndex;
  6663. /* readonly */
  6664. int numLanguages;
  6665. /* readonly */
  6666. int refs;
  6667. /* readonly */
  6668. StringHash type;
  6669. /* readonly */
  6670. String typeName;
  6671. /* readonly */
  6672. int weakRefs;
  6673. };
  6674. class Log
  6675. {
  6676. public:
  6677. // Methods:
  6678. void Close();
  6679. void Debug(const String&);
  6680. void Error(const String&);
  6681. bool HasSubscribedToEvent(Object, const String&);
  6682. bool HasSubscribedToEvent(const String&);
  6683. void Info(const String&);
  6684. void Open(const String&);
  6685. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6686. void Trace(const String&);
  6687. void Warning(const String&);
  6688. void Write(const String&, bool = false);
  6689. // Properties:
  6690. /* readonly */
  6691. String category;
  6692. /* readonly */
  6693. String lastMessage;
  6694. int level;
  6695. bool quiet;
  6696. /* readonly */
  6697. int refs;
  6698. bool timeStamp;
  6699. /* readonly */
  6700. StringHash type;
  6701. /* readonly */
  6702. String typeName;
  6703. /* readonly */
  6704. int weakRefs;
  6705. };
  6706. class Material
  6707. {
  6708. public:
  6709. Material();
  6710. Material(const String&in);
  6711. // Methods:
  6712. Material Clone(const String& = String ( )) const;
  6713. Pass GetPass(uint, const String&);
  6714. ValueAnimation GetShaderParameterAnimation(const String&) const;
  6715. float GetShaderParameterAnimationSpeed(const String&) const;
  6716. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  6717. bool HasSubscribedToEvent(Object, const String&);
  6718. bool HasSubscribedToEvent(const String&);
  6719. bool Load(File);
  6720. bool Load(VectorBuffer&);
  6721. bool Load(const JSONValue&);
  6722. bool Load(const String&);
  6723. bool Load(const XMLElement&);
  6724. void RemoveShaderParameter(const String&);
  6725. bool Save(File) const;
  6726. bool Save(JSONValue&) const;
  6727. bool Save(VectorBuffer&) const;
  6728. bool Save(XMLElement&) const;
  6729. bool Save(const String&) const;
  6730. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6731. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6732. void SetShaderParameterAnimationSpeed(const String&, float);
  6733. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  6734. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  6735. void SetUVTransform(const Vector2&, float, const Vector2&);
  6736. void SetUVTransform(const Vector2&, float, float);
  6737. void SortTechniques();
  6738. // Properties:
  6739. bool alphaToCoverage;
  6740. /* readonly */
  6741. String category;
  6742. CullMode cullMode;
  6743. BiasParameters depthBias;
  6744. FillMode fillMode;
  6745. bool lineAntiAlias;
  6746. /* readonly */
  6747. uint memoryUse;
  6748. String name;
  6749. uint numTechniques;
  6750. bool occlusion;
  6751. String pixelShaderDefines;
  6752. /* readonly */
  6753. int refs;
  6754. uint8 renderOrder;
  6755. Scene scene;
  6756. /* readonly */
  6757. Array<String> shaderParameterNames;
  6758. Array<Variant> shaderParameters;
  6759. CullMode shadowCullMode;
  6760. /* readonly */
  6761. Array<TechniqueEntry> techniqueEntries;
  6762. /* readonly */
  6763. Array<Technique> techniques;
  6764. Array<Texture> textures;
  6765. /* readonly */
  6766. StringHash type;
  6767. /* readonly */
  6768. String typeName;
  6769. /* readonly */
  6770. uint useTimer;
  6771. String vertexShaderDefines;
  6772. /* readonly */
  6773. int weakRefs;
  6774. };
  6775. class Matrix2
  6776. {
  6777. public:
  6778. Matrix2();
  6779. Matrix2(const Matrix2&in);
  6780. Matrix2(float, float, float, float);
  6781. // Methods:
  6782. bool Equals(const Matrix2&) const;
  6783. Matrix2 Inverse() const;
  6784. Vector2 Scale() const;
  6785. Matrix2 Scaled(const Vector2&) const;
  6786. void SetScale(const Vector2&);
  6787. void SetScale(float);
  6788. String ToString() const;
  6789. Matrix2 Transpose() const;
  6790. // Properties:
  6791. float m00;
  6792. float m01;
  6793. float m10;
  6794. float m11;
  6795. };
  6796. class Matrix3
  6797. {
  6798. public:
  6799. Matrix3();
  6800. Matrix3(const Matrix3&in);
  6801. Matrix3(float, float, float, float, float, float, float, float, float);
  6802. // Methods:
  6803. bool Equals(const Matrix3&) const;
  6804. Matrix3 Inverse() const;
  6805. Vector3 Scale() const;
  6806. Matrix3 Scaled(const Vector3&) const;
  6807. void SetScale(const Vector3&);
  6808. void SetScale(float);
  6809. String ToString() const;
  6810. Matrix3 Transpose() const;
  6811. // Properties:
  6812. float m00;
  6813. float m01;
  6814. float m02;
  6815. float m10;
  6816. float m11;
  6817. float m12;
  6818. float m20;
  6819. float m21;
  6820. float m22;
  6821. };
  6822. class Matrix3x4
  6823. {
  6824. public:
  6825. Matrix3x4();
  6826. Matrix3x4(const Matrix3x4&in);
  6827. Matrix3x4(const Matrix3&in);
  6828. Matrix3x4(const Matrix4&in);
  6829. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  6830. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  6831. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  6832. // Methods:
  6833. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6834. bool Equals(const Matrix3x4&) const;
  6835. Matrix3x4 Inverse() const;
  6836. Quaternion Rotation() const;
  6837. Matrix3 RotationMatrix() const;
  6838. Vector3 Scale() const;
  6839. void SetRotation(const Matrix3&);
  6840. void SetScale(const Vector3&);
  6841. void SetScale(float);
  6842. void SetTranslation(const Vector3&);
  6843. Matrix3 ToMatrix3() const;
  6844. Matrix4 ToMatrix4() const;
  6845. String ToString() const;
  6846. Vector3 Translation() const;
  6847. // Properties:
  6848. float m00;
  6849. float m01;
  6850. float m02;
  6851. float m03;
  6852. float m10;
  6853. float m11;
  6854. float m12;
  6855. float m13;
  6856. float m20;
  6857. float m21;
  6858. float m22;
  6859. float m23;
  6860. };
  6861. class Matrix4
  6862. {
  6863. public:
  6864. Matrix4();
  6865. Matrix4(const Matrix4&in);
  6866. Matrix4(const Matrix3&in);
  6867. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  6868. // Methods:
  6869. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  6870. bool Equals(const Matrix4&) const;
  6871. Matrix4 Inverse() const;
  6872. Quaternion Rotation() const;
  6873. Matrix3 RotationMatrix() const;
  6874. Vector3 Scale() const;
  6875. void SetRotation(const Matrix3&);
  6876. void SetScale(const Vector3&);
  6877. void SetScale(float);
  6878. void SetTranslation(const Vector3&);
  6879. Matrix3 ToMatrix3() const;
  6880. String ToString() const;
  6881. Vector3 Translation() const;
  6882. Matrix4 Transpose() const;
  6883. // Properties:
  6884. float m00;
  6885. float m01;
  6886. float m02;
  6887. float m03;
  6888. float m10;
  6889. float m11;
  6890. float m12;
  6891. float m13;
  6892. float m20;
  6893. float m21;
  6894. float m22;
  6895. float m23;
  6896. float m30;
  6897. float m31;
  6898. float m32;
  6899. float m33;
  6900. };
  6901. class Menu
  6902. {
  6903. public:
  6904. Menu();
  6905. Menu(const String&in);
  6906. // Methods:
  6907. void AddChild(UIElement);
  6908. void AddTag(const String&);
  6909. void AddTags(const String&, int8 = ';');
  6910. void ApplyAttributes();
  6911. void BringToFront();
  6912. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6913. void DisableLayoutUpdate();
  6914. IntVector2 ElementToScreen(const IntVector2&);
  6915. void EnableLayoutUpdate();
  6916. uint FindChild(UIElement) const;
  6917. Variant GetAttribute(const String&) const;
  6918. ValueAnimation GetAttributeAnimation(const String&) const;
  6919. float GetAttributeAnimationSpeed(const String&) const;
  6920. float GetAttributeAnimationTime(const String&) const;
  6921. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6922. Variant GetAttributeDefault(const String&) const;
  6923. UIElement GetChild(const String&, bool = false) const;
  6924. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  6925. Array<UIElement> GetChildren(bool = false) const;
  6926. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  6927. UIElement GetElementEventSender() const;
  6928. bool GetInterceptNetworkUpdate(const String&) const;
  6929. uint GetNumChildren(bool) const;
  6930. bool HasSubscribedToEvent(Object, const String&);
  6931. bool HasSubscribedToEvent(const String&);
  6932. bool HasTag(const String&) const;
  6933. void InsertChild(uint, UIElement);
  6934. bool IsChildOf(UIElement) const;
  6935. bool IsInside(IntVector2, bool);
  6936. bool IsInsideCombined(IntVector2, bool);
  6937. bool Load(File);
  6938. bool Load(VectorBuffer&);
  6939. UIElement LoadChildXML(XMLFile, XMLFile);
  6940. UIElement LoadChildXML(const XMLElement&, XMLFile);
  6941. bool LoadJSON(const JSONValue&);
  6942. bool LoadXML(File);
  6943. bool LoadXML(VectorBuffer&);
  6944. bool LoadXML(XMLFile, XMLFile);
  6945. bool LoadXML(const XMLElement&, XMLFile);
  6946. bool LoadXML(const XMLElement&);
  6947. void MarkNetworkUpdate() const;
  6948. void Remove();
  6949. void RemoveAllChildren();
  6950. void RemoveAllTags();
  6951. void RemoveAttributeAnimation(const String&);
  6952. void RemoveChild(UIElement, uint = 0);
  6953. void RemoveChild(uint);
  6954. void RemoveInstanceDefault();
  6955. void RemoveObjectAnimation();
  6956. bool RemoveTag(const String&);
  6957. void ResetDeepEnabled();
  6958. void ResetToDefault();
  6959. bool Save(File) const;
  6960. bool Save(VectorBuffer&) const;
  6961. bool SaveJSON(JSONValue&) const;
  6962. bool SaveXML(File, const String& = "\t");
  6963. bool SaveXML(VectorBuffer&, const String& = "\t");
  6964. bool SaveXML(XMLElement&) const;
  6965. IntVector2 ScreenToElement(const IntVector2&);
  6966. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6967. void SetAccelerator(int, int);
  6968. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6969. void SetAnimationTime(float);
  6970. bool SetAttribute(const String&, const Variant&);
  6971. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6972. void SetAttributeAnimationSpeed(const String&, float);
  6973. void SetAttributeAnimationTime(const String&, float);
  6974. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6975. void SetDeepEnabled(bool);
  6976. void SetDisabledOffset(int, int);
  6977. void SetEnabledRecursive(bool);
  6978. void SetFixedHeight(int);
  6979. void SetFixedSize(int, int);
  6980. void SetFixedWidth(int);
  6981. void SetFullImageRect();
  6982. void SetHoverOffset(int, int);
  6983. void SetInterceptNetworkUpdate(const String&, bool);
  6984. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6985. void SetMaxAnchor(float, float);
  6986. void SetMaxSize(int, int);
  6987. void SetMinAnchor(float, float);
  6988. void SetMinSize(int, int);
  6989. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6990. void SetPivot(float, float);
  6991. void SetPopupOffset(int, int);
  6992. void SetPosition(int, int);
  6993. void SetPressedChildOffset(int, int);
  6994. void SetPressedOffset(int, int);
  6995. void SetRepeat(float, float);
  6996. void SetSize(int, int);
  6997. bool SetStyle(const String&, XMLFile = null);
  6998. bool SetStyle(const XMLElement&);
  6999. bool SetStyleAuto(XMLFile = null);
  7000. void UpdateLayout();
  7001. const Variant& GetVar(const StringHash&);
  7002. // Properties:
  7003. /* readonly */
  7004. int acceleratorKey;
  7005. /* readonly */
  7006. int acceleratorQualifiers;
  7007. bool animationEnabled;
  7008. /* readonly */
  7009. Array<Variant> attributeDefaults;
  7010. /* readonly */
  7011. Array<AttributeInfo> attributeInfos;
  7012. Array<Variant> attributes;
  7013. BlendMode blendMode;
  7014. IntRect border;
  7015. bool bringToBack;
  7016. bool bringToFront;
  7017. /* readonly */
  7018. String category;
  7019. /* readonly */
  7020. IntVector2 childOffset;
  7021. /* readonly */
  7022. Array<UIElement> children;
  7023. IntRect clipBorder;
  7024. bool clipChildren;
  7025. /* writeonly */
  7026. Color color;
  7027. /* readonly */
  7028. bool colorGradient;
  7029. Array<Color> colors;
  7030. /* readonly */
  7031. IntRect combinedScreenRect;
  7032. XMLFile defaultStyle;
  7033. /* readonly */
  7034. float derivedOpacity;
  7035. IntVector2 disabledOffset;
  7036. /* readonly */
  7037. uint dragButtonCombo;
  7038. /* readonly */
  7039. int dragButtonCount;
  7040. uint dragDropMode;
  7041. bool editable;
  7042. bool elementEventSender;
  7043. bool enableAnchor;
  7044. bool enabled;
  7045. /* readonly */
  7046. bool enabledSelf;
  7047. /* readonly */
  7048. bool fixedHeight;
  7049. /* readonly */
  7050. bool fixedSize;
  7051. /* readonly */
  7052. bool fixedWidth;
  7053. bool focus;
  7054. FocusMode focusMode;
  7055. int height;
  7056. HorizontalAlignment horizontalAlignment;
  7057. IntVector2 hoverOffset;
  7058. /* readonly */
  7059. bool hovering;
  7060. IntRect imageBorder;
  7061. IntRect imageRect;
  7062. int indent;
  7063. int indentSpacing;
  7064. /* readonly */
  7065. int indentWidth;
  7066. bool internal;
  7067. IntRect layoutBorder;
  7068. Vector2 layoutFlexScale;
  7069. LayoutMode layoutMode;
  7070. int layoutSpacing;
  7071. Material material;
  7072. Vector2 maxAnchor;
  7073. int maxHeight;
  7074. IntVector2 maxOffset;
  7075. IntVector2 maxSize;
  7076. int maxWidth;
  7077. Vector2 minAnchor;
  7078. int minHeight;
  7079. IntVector2 minOffset;
  7080. IntVector2 minSize;
  7081. int minWidth;
  7082. String name;
  7083. /* readonly */
  7084. uint numAllChildren;
  7085. /* readonly */
  7086. uint numAttributes;
  7087. /* readonly */
  7088. uint numChildren;
  7089. ObjectAnimation objectAnimation;
  7090. float opacity;
  7091. UIElement parent;
  7092. Vector2 pivot;
  7093. UIElement popup;
  7094. IntVector2 popupOffset;
  7095. IntVector2 position;
  7096. /* readonly */
  7097. bool pressed;
  7098. IntVector2 pressedChildOffset;
  7099. IntVector2 pressedOffset;
  7100. int priority;
  7101. /* readonly */
  7102. int refs;
  7103. float repeatDelay;
  7104. float repeatRate;
  7105. /* readonly */
  7106. UIElement root;
  7107. /* readonly */
  7108. IntVector2 screenPosition;
  7109. bool selected;
  7110. bool showPopup;
  7111. IntVector2 size;
  7112. bool sortChildren;
  7113. String style;
  7114. /* readonly */
  7115. Array<String> tags;
  7116. bool temporary;
  7117. Texture texture;
  7118. bool tiled;
  7119. TraversalMode traversalMode;
  7120. /* readonly */
  7121. StringHash type;
  7122. /* readonly */
  7123. String typeName;
  7124. bool useDerivedOpacity;
  7125. /* readonly */
  7126. VariantMap vars;
  7127. VerticalAlignment verticalAlignment;
  7128. bool visible;
  7129. /* readonly */
  7130. bool visibleEffective;
  7131. /* readonly */
  7132. int weakRefs;
  7133. int width;
  7134. };
  7135. class MessageBox
  7136. {
  7137. public:
  7138. MessageBox(const String&in messageString = String ( ), const String&in titleString = String ( ), XMLFile& layoutFile = null, XMLFile& styleFile = null);
  7139. // Methods:
  7140. bool HasSubscribedToEvent(Object, const String&);
  7141. bool HasSubscribedToEvent(const String&);
  7142. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7143. // Properties:
  7144. /* readonly */
  7145. String category;
  7146. String message;
  7147. /* readonly */
  7148. int refs;
  7149. String title;
  7150. /* readonly */
  7151. StringHash type;
  7152. /* readonly */
  7153. String typeName;
  7154. /* readonly */
  7155. int weakRefs;
  7156. /* readonly */
  7157. UIElement window;
  7158. };
  7159. class Model
  7160. {
  7161. public:
  7162. Model();
  7163. Model(const String&in);
  7164. // Methods:
  7165. void AddMetadata(const String&, const Variant&);
  7166. Model Clone(const String& = String ( )) const;
  7167. Geometry GetGeometry(uint, uint) const;
  7168. bool HasSubscribedToEvent(Object, const String&);
  7169. bool HasSubscribedToEvent(const String&);
  7170. bool Load(File);
  7171. bool Load(VectorBuffer&);
  7172. bool Load(const String&);
  7173. void RemoveAllMetadata();
  7174. void RemoveMetadata(const String&);
  7175. bool Save(File) const;
  7176. bool Save(VectorBuffer&) const;
  7177. bool Save(const String&) const;
  7178. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7179. bool SetGeometry(uint, uint, Geometry);
  7180. bool SetIndexBuffers(Array<IndexBuffer>);
  7181. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  7182. // Properties:
  7183. BoundingBox boundingBox;
  7184. /* readonly */
  7185. String category;
  7186. Array<Vector3> geometryCenters;
  7187. /* readonly */
  7188. bool hasMetadata;
  7189. /* readonly */
  7190. uint memoryUse;
  7191. Array<Variant> metadata;
  7192. String name;
  7193. uint numGeometries;
  7194. Array<uint> numGeometryLodLevels;
  7195. /* readonly */
  7196. uint numMorphs;
  7197. /* readonly */
  7198. int refs;
  7199. /* readonly */
  7200. Skeleton skeleton;
  7201. /* readonly */
  7202. StringHash type;
  7203. /* readonly */
  7204. String typeName;
  7205. /* readonly */
  7206. uint useTimer;
  7207. /* readonly */
  7208. int weakRefs;
  7209. };
  7210. class NamedPipe
  7211. {
  7212. public:
  7213. NamedPipe();
  7214. NamedPipe(const String&in, bool);
  7215. // Methods:
  7216. void Close();
  7217. bool HasSubscribedToEvent(Object, const String&);
  7218. bool HasSubscribedToEvent(const String&);
  7219. bool Open(const String&, bool);
  7220. Array<uint8> Read(uint);
  7221. bool ReadBool();
  7222. BoundingBox ReadBoundingBox();
  7223. int8 ReadByte();
  7224. Color ReadColor();
  7225. double ReadDouble();
  7226. String ReadFileID();
  7227. float ReadFloat();
  7228. int ReadInt();
  7229. int64 ReadInt64();
  7230. IntRect ReadIntRect();
  7231. IntVector2 ReadIntVector2();
  7232. String ReadLine();
  7233. Matrix3 ReadMatrix3();
  7234. Matrix3x4 ReadMatrix3x4();
  7235. Matrix4 ReadMatrix4();
  7236. uint ReadNetID();
  7237. Quaternion ReadPackedQuaternion();
  7238. Vector3 ReadPackedVector3(float);
  7239. Quaternion ReadQuaternion();
  7240. int16 ReadShort();
  7241. String ReadString();
  7242. StringHash ReadStringHash();
  7243. uint8 ReadUByte();
  7244. uint ReadUInt();
  7245. uint64 ReadUInt64();
  7246. uint16 ReadUShort();
  7247. uint ReadVLE();
  7248. Variant ReadVariant();
  7249. VariantMap ReadVariantMap();
  7250. Vector2 ReadVector2();
  7251. Vector3 ReadVector3();
  7252. Vector4 ReadVector4();
  7253. VectorBuffer ReadVectorBuffer(uint);
  7254. uint Seek(uint);
  7255. uint SeekRelative(int);
  7256. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7257. uint Tell() const;
  7258. uint Write(Array<uint8>);
  7259. bool WriteBool(bool);
  7260. bool WriteBoundingBox(const BoundingBox&);
  7261. bool WriteByte(int8);
  7262. bool WriteColor(const Color&);
  7263. bool WriteDouble(double);
  7264. bool WriteFileID(const String&);
  7265. bool WriteFloat(float);
  7266. bool WriteInt(int);
  7267. bool WriteInt64(int64);
  7268. bool WriteIntRect(const IntRect&);
  7269. bool WriteIntVector2(const IntVector2&);
  7270. bool WriteLine(const String&);
  7271. bool WriteMatrix3(const Matrix3&);
  7272. bool WriteMatrix3x4(const Matrix3x4&);
  7273. bool WriteMatrix4(const Matrix4&);
  7274. bool WriteNetID(uint);
  7275. bool WritePackedQuaternion(const Quaternion&);
  7276. bool WritePackedVector3(const Vector3&, float);
  7277. bool WriteQuaternion(const Quaternion&);
  7278. bool WriteShort(int16);
  7279. bool WriteString(const String&);
  7280. bool WriteStringHash(const StringHash&);
  7281. bool WriteUByte(uint8);
  7282. bool WriteUInt(uint);
  7283. bool WriteUInt64(uint64);
  7284. bool WriteUShort(uint16);
  7285. bool WriteVLE(uint);
  7286. bool WriteVariant(const Variant&);
  7287. bool WriteVariantMap(const VariantMap&);
  7288. bool WriteVector2(const Vector2&);
  7289. bool WriteVector3(const Vector3&);
  7290. bool WriteVector4(const Vector4&);
  7291. bool WriteVectorBuffer(const VectorBuffer&);
  7292. // Properties:
  7293. /* readonly */
  7294. String category;
  7295. /* readonly */
  7296. uint checksum;
  7297. /* readonly */
  7298. bool eof;
  7299. /* readonly */
  7300. String name;
  7301. /* readonly */
  7302. bool open;
  7303. /* readonly */
  7304. uint position;
  7305. /* readonly */
  7306. int refs;
  7307. /* readonly */
  7308. bool server;
  7309. /* readonly */
  7310. uint size;
  7311. /* readonly */
  7312. StringHash type;
  7313. /* readonly */
  7314. String typeName;
  7315. /* readonly */
  7316. int weakRefs;
  7317. };
  7318. class NavArea
  7319. {
  7320. public:
  7321. // Methods:
  7322. void ApplyAttributes();
  7323. void DrawDebugGeometry(DebugRenderer, bool);
  7324. Variant GetAttribute(const String&) const;
  7325. ValueAnimation GetAttributeAnimation(const String&) const;
  7326. float GetAttributeAnimationSpeed(const String&) const;
  7327. float GetAttributeAnimationTime(const String&) const;
  7328. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7329. Variant GetAttributeDefault(const String&) const;
  7330. bool GetInterceptNetworkUpdate(const String&) const;
  7331. bool HasSubscribedToEvent(Object, const String&);
  7332. bool HasSubscribedToEvent(const String&);
  7333. bool Load(File);
  7334. bool Load(VectorBuffer&);
  7335. bool LoadJSON(const JSONValue&);
  7336. bool LoadXML(const XMLElement&);
  7337. void MarkNetworkUpdate() const;
  7338. void Remove();
  7339. void RemoveAttributeAnimation(const String&);
  7340. void RemoveInstanceDefault();
  7341. void RemoveObjectAnimation();
  7342. void ResetToDefault();
  7343. bool Save(File) const;
  7344. bool Save(VectorBuffer&) const;
  7345. bool SaveJSON(JSONValue&) const;
  7346. bool SaveXML(XMLElement&) const;
  7347. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7348. void SetAnimationTime(float);
  7349. bool SetAttribute(const String&, const Variant&);
  7350. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7351. void SetAttributeAnimationSpeed(const String&, float);
  7352. void SetAttributeAnimationTime(const String&, float);
  7353. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7354. void SetInterceptNetworkUpdate(const String&, bool);
  7355. // Properties:
  7356. bool animationEnabled;
  7357. uint areaID;
  7358. /* readonly */
  7359. Array<Variant> attributeDefaults;
  7360. /* readonly */
  7361. Array<AttributeInfo> attributeInfos;
  7362. Array<Variant> attributes;
  7363. BoundingBox boundingBox;
  7364. /* readonly */
  7365. String category;
  7366. bool enabled;
  7367. /* readonly */
  7368. bool enabledEffective;
  7369. /* readonly */
  7370. uint id;
  7371. /* readonly */
  7372. Node node;
  7373. /* readonly */
  7374. uint numAttributes;
  7375. ObjectAnimation objectAnimation;
  7376. /* readonly */
  7377. int refs;
  7378. /* readonly */
  7379. bool replicated;
  7380. bool temporary;
  7381. /* readonly */
  7382. StringHash type;
  7383. /* readonly */
  7384. String typeName;
  7385. /* readonly */
  7386. int weakRefs;
  7387. /* readonly */
  7388. BoundingBox worldBoundingBox;
  7389. };
  7390. class Navigable
  7391. {
  7392. public:
  7393. // Methods:
  7394. void ApplyAttributes();
  7395. void DrawDebugGeometry(DebugRenderer, bool);
  7396. Variant GetAttribute(const String&) const;
  7397. ValueAnimation GetAttributeAnimation(const String&) const;
  7398. float GetAttributeAnimationSpeed(const String&) const;
  7399. float GetAttributeAnimationTime(const String&) const;
  7400. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7401. Variant GetAttributeDefault(const String&) const;
  7402. bool GetInterceptNetworkUpdate(const String&) const;
  7403. bool HasSubscribedToEvent(Object, const String&);
  7404. bool HasSubscribedToEvent(const String&);
  7405. bool Load(File);
  7406. bool Load(VectorBuffer&);
  7407. bool LoadJSON(const JSONValue&);
  7408. bool LoadXML(const XMLElement&);
  7409. void MarkNetworkUpdate() const;
  7410. void Remove();
  7411. void RemoveAttributeAnimation(const String&);
  7412. void RemoveInstanceDefault();
  7413. void RemoveObjectAnimation();
  7414. void ResetToDefault();
  7415. bool Save(File) const;
  7416. bool Save(VectorBuffer&) const;
  7417. bool SaveJSON(JSONValue&) const;
  7418. bool SaveXML(XMLElement&) const;
  7419. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7420. void SetAnimationTime(float);
  7421. bool SetAttribute(const String&, const Variant&);
  7422. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7423. void SetAttributeAnimationSpeed(const String&, float);
  7424. void SetAttributeAnimationTime(const String&, float);
  7425. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7426. void SetInterceptNetworkUpdate(const String&, bool);
  7427. // Properties:
  7428. bool animationEnabled;
  7429. /* readonly */
  7430. Array<Variant> attributeDefaults;
  7431. /* readonly */
  7432. Array<AttributeInfo> attributeInfos;
  7433. Array<Variant> attributes;
  7434. /* readonly */
  7435. String category;
  7436. bool enabled;
  7437. /* readonly */
  7438. bool enabledEffective;
  7439. /* readonly */
  7440. uint id;
  7441. /* readonly */
  7442. Node node;
  7443. /* readonly */
  7444. uint numAttributes;
  7445. ObjectAnimation objectAnimation;
  7446. bool recursive;
  7447. /* readonly */
  7448. int refs;
  7449. /* readonly */
  7450. bool replicated;
  7451. bool temporary;
  7452. /* readonly */
  7453. StringHash type;
  7454. /* readonly */
  7455. String typeName;
  7456. /* readonly */
  7457. int weakRefs;
  7458. };
  7459. class NavigationMesh
  7460. {
  7461. public:
  7462. // Methods:
  7463. bool AddTile(const VectorBuffer&) const;
  7464. bool Allocate(const BoundingBox&, uint);
  7465. void ApplyAttributes();
  7466. bool Build();
  7467. bool Build(const BoundingBox&);
  7468. bool Build(const IntVector2&, const IntVector2&);
  7469. void DrawDebugGeometry(DebugRenderer, bool);
  7470. void DrawDebugGeometry(bool);
  7471. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7472. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7473. float GetAreaCost(uint) const;
  7474. Variant GetAttribute(const String&) const;
  7475. ValueAnimation GetAttributeAnimation(const String&) const;
  7476. float GetAttributeAnimationSpeed(const String&) const;
  7477. float GetAttributeAnimationTime(const String&) const;
  7478. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7479. Variant GetAttributeDefault(const String&) const;
  7480. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7481. bool GetInterceptNetworkUpdate(const String&) const;
  7482. Vector3 GetRandomPoint();
  7483. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7484. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  7485. VectorBuffer GetTileData(const IntVector2&) const;
  7486. IntVector2 GetTileIndex(const Vector3&) const;
  7487. bool HasSubscribedToEvent(Object, const String&);
  7488. bool HasSubscribedToEvent(const String&);
  7489. bool HasTile(const IntVector2&) const;
  7490. bool Load(File);
  7491. bool Load(VectorBuffer&);
  7492. bool LoadJSON(const JSONValue&);
  7493. bool LoadXML(const XMLElement&);
  7494. void MarkNetworkUpdate() const;
  7495. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), int = 3);
  7496. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  7497. void Remove();
  7498. void RemoveAllTiles();
  7499. void RemoveAttributeAnimation(const String&);
  7500. void RemoveInstanceDefault();
  7501. void RemoveObjectAnimation();
  7502. void RemoveTile(const IntVector2&);
  7503. void ResetToDefault();
  7504. bool Save(File) const;
  7505. bool Save(VectorBuffer&) const;
  7506. bool SaveJSON(JSONValue&) const;
  7507. bool SaveXML(XMLElement&) const;
  7508. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7509. void SetAnimationTime(float);
  7510. void SetAreaCost(uint, float);
  7511. bool SetAttribute(const String&, const Variant&);
  7512. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7513. void SetAttributeAnimationSpeed(const String&, float);
  7514. void SetAttributeAnimationTime(const String&, float);
  7515. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7516. void SetInterceptNetworkUpdate(const String&, bool);
  7517. // Properties:
  7518. float agentHeight;
  7519. float agentMaxClimb;
  7520. float agentMaxSlope;
  7521. float agentRadius;
  7522. bool animationEnabled;
  7523. /* readonly */
  7524. Array<Variant> attributeDefaults;
  7525. /* readonly */
  7526. Array<AttributeInfo> attributeInfos;
  7527. Array<Variant> attributes;
  7528. /* readonly */
  7529. BoundingBox boundingBox;
  7530. /* readonly */
  7531. String category;
  7532. float cellHeight;
  7533. float cellSize;
  7534. float detailSampleDistance;
  7535. float detailSampleMaxError;
  7536. bool drawNavAreas;
  7537. bool drawOffMeshConnections;
  7538. float edgeMaxError;
  7539. float edgeMaxLength;
  7540. bool enabled;
  7541. /* readonly */
  7542. bool enabledEffective;
  7543. /* readonly */
  7544. uint id;
  7545. /* readonly */
  7546. bool initialized;
  7547. /* readonly */
  7548. Node node;
  7549. /* readonly */
  7550. uint numAttributes;
  7551. /* readonly */
  7552. IntVector2 numTiles;
  7553. ObjectAnimation objectAnimation;
  7554. Vector3 padding;
  7555. NavmeshPartitionType partitionType;
  7556. /* readonly */
  7557. int refs;
  7558. float regionMergeSize;
  7559. float regionMinSize;
  7560. /* readonly */
  7561. bool replicated;
  7562. bool temporary;
  7563. int tileSize;
  7564. /* readonly */
  7565. StringHash type;
  7566. /* readonly */
  7567. String typeName;
  7568. /* readonly */
  7569. int weakRefs;
  7570. /* readonly */
  7571. BoundingBox worldBoundingBox;
  7572. };
  7573. class Network
  7574. {
  7575. public:
  7576. // Methods:
  7577. bool AttemptNATPunchtrough(const String&, Scene, const VariantMap& = VariantMap ( ));
  7578. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  7579. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  7580. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  7581. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  7582. bool CheckRemoteEvent(const String&) const;
  7583. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  7584. void Disconnect(int = 0);
  7585. bool DiscoverHosts(uint16);
  7586. bool HasSubscribedToEvent(Object, const String&);
  7587. bool HasSubscribedToEvent(const String&);
  7588. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  7589. void RegisterRemoteEvent(const String&) const;
  7590. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7591. void SendPackageToClients(Scene, PackageFile);
  7592. bool SetDiscoveryBeacon(const VariantMap& = VariantMap ( ));
  7593. void SetNATServerInfo(const String&, uint16);
  7594. bool SetPassword(const String&);
  7595. void StartNATClient() const;
  7596. bool StartServer(uint16);
  7597. void StopServer();
  7598. void UnregisterAllRemoteEvents();
  7599. void UnregisterRemoteEvent(const String&) const;
  7600. // Properties:
  7601. /* readonly */
  7602. String category;
  7603. /* readonly */
  7604. Array<Connection> clientConnections;
  7605. /* readonly */
  7606. String guid;
  7607. String packageCacheDir;
  7608. /* readonly */
  7609. int refs;
  7610. /* readonly */
  7611. Connection serverConnection;
  7612. /* readonly */
  7613. bool serverRunning;
  7614. int simulatedLatency;
  7615. float simulatedPacketLoss;
  7616. /* readonly */
  7617. String startNATClient;
  7618. /* readonly */
  7619. StringHash type;
  7620. /* readonly */
  7621. String typeName;
  7622. int updateFps;
  7623. /* readonly */
  7624. int weakRefs;
  7625. };
  7626. class NetworkPriority
  7627. {
  7628. public:
  7629. // Methods:
  7630. void ApplyAttributes();
  7631. void DrawDebugGeometry(DebugRenderer, bool);
  7632. Variant GetAttribute(const String&) const;
  7633. ValueAnimation GetAttributeAnimation(const String&) const;
  7634. float GetAttributeAnimationSpeed(const String&) const;
  7635. float GetAttributeAnimationTime(const String&) const;
  7636. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7637. Variant GetAttributeDefault(const String&) const;
  7638. bool GetInterceptNetworkUpdate(const String&) const;
  7639. bool HasSubscribedToEvent(Object, const String&);
  7640. bool HasSubscribedToEvent(const String&);
  7641. bool Load(File);
  7642. bool Load(VectorBuffer&);
  7643. bool LoadJSON(const JSONValue&);
  7644. bool LoadXML(const XMLElement&);
  7645. void MarkNetworkUpdate() const;
  7646. void Remove();
  7647. void RemoveAttributeAnimation(const String&);
  7648. void RemoveInstanceDefault();
  7649. void RemoveObjectAnimation();
  7650. void ResetToDefault();
  7651. bool Save(File) const;
  7652. bool Save(VectorBuffer&) const;
  7653. bool SaveJSON(JSONValue&) const;
  7654. bool SaveXML(XMLElement&) const;
  7655. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7656. void SetAnimationTime(float);
  7657. bool SetAttribute(const String&, const Variant&);
  7658. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7659. void SetAttributeAnimationSpeed(const String&, float);
  7660. void SetAttributeAnimationTime(const String&, float);
  7661. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7662. void SetInterceptNetworkUpdate(const String&, bool);
  7663. // Properties:
  7664. bool alwaysUpdateOwner;
  7665. bool animationEnabled;
  7666. /* readonly */
  7667. Array<Variant> attributeDefaults;
  7668. /* readonly */
  7669. Array<AttributeInfo> attributeInfos;
  7670. Array<Variant> attributes;
  7671. float basePriority;
  7672. /* readonly */
  7673. String category;
  7674. float distanceFactor;
  7675. bool enabled;
  7676. /* readonly */
  7677. bool enabledEffective;
  7678. /* readonly */
  7679. uint id;
  7680. float minPriority;
  7681. /* readonly */
  7682. Node node;
  7683. /* readonly */
  7684. uint numAttributes;
  7685. ObjectAnimation objectAnimation;
  7686. /* readonly */
  7687. int refs;
  7688. /* readonly */
  7689. bool replicated;
  7690. bool temporary;
  7691. /* readonly */
  7692. StringHash type;
  7693. /* readonly */
  7694. String typeName;
  7695. /* readonly */
  7696. int weakRefs;
  7697. };
  7698. class Node
  7699. {
  7700. public:
  7701. Node();
  7702. Node(const String&in);
  7703. // Methods:
  7704. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7705. void AddTag(const String&);
  7706. void AddTags(const String&, int8 = ';');
  7707. void ApplyAttributes();
  7708. Node Clone(CreateMode = REPLICATED);
  7709. Component CloneComponent(Component, CreateMode, uint = 0);
  7710. Component CloneComponent(Component, uint = 0);
  7711. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  7712. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7713. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7714. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7715. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7716. Variant GetAttribute(const String&) const;
  7717. ValueAnimation GetAttributeAnimation(const String&) const;
  7718. float GetAttributeAnimationSpeed(const String&) const;
  7719. float GetAttributeAnimationTime(const String&) const;
  7720. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7721. Variant GetAttributeDefault(const String&) const;
  7722. Node GetChild(const String&, bool = false) const;
  7723. Array<Node> GetChildren(bool = false) const;
  7724. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7725. Array<Node> GetChildrenWithScript(bool = false) const;
  7726. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7727. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  7728. Component GetComponent(const String&, bool = false) const;
  7729. Array<Component> GetComponents() const;
  7730. Array<Component> GetComponents(const String&, bool = false) const;
  7731. bool GetInterceptNetworkUpdate(const String&) const;
  7732. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7733. Component GetParentComponent(const String&, bool = false) const;
  7734. ScriptObject GetScriptObject() const;
  7735. ScriptObject GetScriptObject(const String&) const;
  7736. bool HasComponent(const String&) const;
  7737. bool HasSubscribedToEvent(Object, const String&);
  7738. bool HasSubscribedToEvent(const String&);
  7739. bool HasTag(const String&);
  7740. bool IsChildOf(Node) const;
  7741. bool Load(File);
  7742. bool Load(VectorBuffer&);
  7743. bool LoadJSON(const JSONValue&);
  7744. bool LoadXML(const XMLElement&);
  7745. Vector3 LocalToWorld(const Vector3&) const;
  7746. Vector3 LocalToWorld(const Vector4&) const;
  7747. Vector2 LocalToWorld2D(const Vector2&) const;
  7748. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7749. void MarkDirty();
  7750. void MarkNetworkUpdate() const;
  7751. void Pitch(float, TransformSpace = TS_LOCAL);
  7752. void Remove();
  7753. void RemoveAllChildren();
  7754. void RemoveAllComponents();
  7755. void RemoveAllTags();
  7756. void RemoveAttributeAnimation(const String&);
  7757. void RemoveChild(Node);
  7758. void RemoveChildren(bool, bool, bool);
  7759. void RemoveComponent(Component);
  7760. void RemoveComponent(const String&);
  7761. void RemoveComponents(bool, bool);
  7762. void RemoveComponents(const String&);
  7763. void RemoveInstanceDefault();
  7764. void RemoveObjectAnimation();
  7765. bool RemoveTag(const String&);
  7766. void ReorderComponent(Component, uint);
  7767. void ResetDeepEnabled();
  7768. void ResetToDefault();
  7769. void Roll(float, TransformSpace = TS_LOCAL);
  7770. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7771. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7772. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7773. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7774. bool Save(File) const;
  7775. bool Save(VectorBuffer&) const;
  7776. bool SaveJSON(File);
  7777. bool SaveJSON(JSONValue&) const;
  7778. bool SaveJSON(VectorBuffer&);
  7779. bool SaveXML(File, const String& = "\t");
  7780. bool SaveXML(VectorBuffer&, const String& = "\t");
  7781. bool SaveXML(XMLElement&) const;
  7782. void Scale(const Vector3&);
  7783. void Scale(float);
  7784. void Scale2D(const Vector2&);
  7785. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7786. void SetAnimationTime(float);
  7787. bool SetAttribute(const String&, const Variant&);
  7788. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7789. void SetAttributeAnimationSpeed(const String&, float);
  7790. void SetAttributeAnimationTime(const String&, float);
  7791. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7792. void SetDeepEnabled(bool);
  7793. void SetEnabledRecursive(bool);
  7794. void SetInterceptNetworkUpdate(const String&, bool);
  7795. void SetPosition2D(float, float);
  7796. void SetScale(float);
  7797. void SetScale2D(float, float);
  7798. void SetTransform(const Matrix3x4&);
  7799. void SetTransform(const Vector3&, const Quaternion&);
  7800. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7801. void SetTransform(const Vector3&, const Quaternion&, float);
  7802. void SetTransform2D(const Vector2&, float);
  7803. void SetTransform2D(const Vector2&, float, const Vector2&);
  7804. void SetTransform2D(const Vector2&, float, float);
  7805. void SetWorldTransform(const Vector3&, const Quaternion&);
  7806. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7807. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7808. void SetWorldTransform2D(const Vector2&, float);
  7809. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7810. void SetWorldTransform2D(const Vector2&, float, float);
  7811. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7812. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7813. Vector3 WorldToLocal(const Vector3&) const;
  7814. Vector3 WorldToLocal(const Vector4&) const;
  7815. Vector2 WorldToLocal2D(const Vector2&) const;
  7816. void Yaw(float, TransformSpace = TS_LOCAL);
  7817. // Properties:
  7818. /* readonly */
  7819. Array<Node> allChildrenByName;
  7820. bool animationEnabled;
  7821. /* readonly */
  7822. Array<Variant> attributeDefaults;
  7823. /* readonly */
  7824. Array<AttributeInfo> attributeInfos;
  7825. Array<Variant> attributes;
  7826. /* readonly */
  7827. String category;
  7828. /* readonly */
  7829. Array<Node> children;
  7830. /* readonly */
  7831. Array<Node> childrenByName;
  7832. /* readonly */
  7833. Array<Component> components;
  7834. Vector3 direction;
  7835. bool enabled;
  7836. /* readonly */
  7837. bool enabledSelf;
  7838. uint id;
  7839. String name;
  7840. /* readonly */
  7841. uint numAllChildren;
  7842. /* readonly */
  7843. uint numAttributes;
  7844. /* readonly */
  7845. uint numChildren;
  7846. /* readonly */
  7847. uint numComponents;
  7848. ObjectAnimation objectAnimation;
  7849. Connection owner;
  7850. Node parent;
  7851. Vector3 position;
  7852. Vector2 position2D;
  7853. /* readonly */
  7854. int refs;
  7855. /* readonly */
  7856. bool replicated;
  7857. /* readonly */
  7858. Vector3 right;
  7859. Quaternion rotation;
  7860. float rotation2D;
  7861. Vector3 scale;
  7862. Vector2 scale2D;
  7863. /* readonly */
  7864. Scene scene;
  7865. /* readonly */
  7866. ScriptObject scriptObject;
  7867. /* readonly */
  7868. Vector3 signedWorldScale;
  7869. /* readonly */
  7870. Array<String> tags;
  7871. bool temporary;
  7872. /* readonly */
  7873. Matrix3x4 transform;
  7874. /* readonly */
  7875. StringHash type;
  7876. /* readonly */
  7877. String typeName;
  7878. /* readonly */
  7879. Vector3 up;
  7880. /* readonly */
  7881. VariantMap vars;
  7882. /* readonly */
  7883. int weakRefs;
  7884. Vector3 worldDirection;
  7885. Vector3 worldPosition;
  7886. Vector2 worldPosition2D;
  7887. /* readonly */
  7888. Vector3 worldRight;
  7889. Quaternion worldRotation;
  7890. float worldRotation2D;
  7891. Vector3 worldScale;
  7892. Vector2 worldScale2D;
  7893. /* readonly */
  7894. Matrix3x4 worldTransform;
  7895. /* readonly */
  7896. Vector3 worldUp;
  7897. };
  7898. class Object
  7899. {
  7900. public:
  7901. // Methods:
  7902. bool HasSubscribedToEvent(Object, const String&);
  7903. bool HasSubscribedToEvent(const String&);
  7904. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7905. // Properties:
  7906. /* readonly */
  7907. String category;
  7908. /* readonly */
  7909. int refs;
  7910. /* readonly */
  7911. StringHash type;
  7912. /* readonly */
  7913. String typeName;
  7914. /* readonly */
  7915. int weakRefs;
  7916. };
  7917. class ObjectAnimation
  7918. {
  7919. public:
  7920. ObjectAnimation();
  7921. ObjectAnimation(const String&in);
  7922. // Methods:
  7923. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7924. ValueAnimation GetAttributeAnimation(const String&) const;
  7925. float GetAttributeAnimationSpeed(const String&) const;
  7926. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7927. bool HasSubscribedToEvent(Object, const String&);
  7928. bool HasSubscribedToEvent(const String&);
  7929. bool Load(File);
  7930. bool Load(VectorBuffer&);
  7931. bool Load(const String&);
  7932. void RemoveAttributeAnimation(ValueAnimation);
  7933. void RemoveAttributeAnimation(const String&);
  7934. bool Save(File) const;
  7935. bool Save(VectorBuffer&) const;
  7936. bool Save(const String&) const;
  7937. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7938. // Properties:
  7939. /* readonly */
  7940. Array<Variant> attributeAnimations;
  7941. /* readonly */
  7942. String category;
  7943. /* readonly */
  7944. uint memoryUse;
  7945. String name;
  7946. /* readonly */
  7947. int refs;
  7948. /* readonly */
  7949. Array<Variant> speeds;
  7950. /* readonly */
  7951. StringHash type;
  7952. /* readonly */
  7953. String typeName;
  7954. /* readonly */
  7955. uint useTimer;
  7956. /* readonly */
  7957. int weakRefs;
  7958. /* readonly */
  7959. Array<Variant> wrapModes;
  7960. };
  7961. class Obstacle
  7962. {
  7963. public:
  7964. // Methods:
  7965. void ApplyAttributes();
  7966. void DrawDebugGeometry(DebugRenderer, bool);
  7967. void DrawDebugGeometry(bool);
  7968. Variant GetAttribute(const String&) const;
  7969. ValueAnimation GetAttributeAnimation(const String&) const;
  7970. float GetAttributeAnimationSpeed(const String&) const;
  7971. float GetAttributeAnimationTime(const String&) const;
  7972. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7973. Variant GetAttributeDefault(const String&) const;
  7974. bool GetInterceptNetworkUpdate(const String&) const;
  7975. bool HasSubscribedToEvent(Object, const String&);
  7976. bool HasSubscribedToEvent(const String&);
  7977. bool Load(File);
  7978. bool Load(VectorBuffer&);
  7979. bool LoadJSON(const JSONValue&);
  7980. bool LoadXML(const XMLElement&);
  7981. void MarkNetworkUpdate() const;
  7982. void Remove();
  7983. void RemoveAttributeAnimation(const String&);
  7984. void RemoveInstanceDefault();
  7985. void RemoveObjectAnimation();
  7986. void ResetToDefault();
  7987. bool Save(File) const;
  7988. bool Save(VectorBuffer&) const;
  7989. bool SaveJSON(JSONValue&) const;
  7990. bool SaveXML(XMLElement&) const;
  7991. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7992. void SetAnimationTime(float);
  7993. bool SetAttribute(const String&, const Variant&);
  7994. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7995. void SetAttributeAnimationSpeed(const String&, float);
  7996. void SetAttributeAnimationTime(const String&, float);
  7997. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7998. void SetInterceptNetworkUpdate(const String&, bool);
  7999. // Properties:
  8000. bool animationEnabled;
  8001. /* readonly */
  8002. Array<Variant> attributeDefaults;
  8003. /* readonly */
  8004. Array<AttributeInfo> attributeInfos;
  8005. Array<Variant> attributes;
  8006. /* readonly */
  8007. String category;
  8008. bool enabled;
  8009. /* readonly */
  8010. bool enabledEffective;
  8011. float height;
  8012. /* readonly */
  8013. uint id;
  8014. /* readonly */
  8015. Node node;
  8016. /* readonly */
  8017. uint numAttributes;
  8018. ObjectAnimation objectAnimation;
  8019. /* readonly */
  8020. uint obstacleId;
  8021. float radius;
  8022. /* readonly */
  8023. int refs;
  8024. /* readonly */
  8025. bool replicated;
  8026. bool temporary;
  8027. /* readonly */
  8028. StringHash type;
  8029. /* readonly */
  8030. String typeName;
  8031. /* readonly */
  8032. int weakRefs;
  8033. };
  8034. class Octree
  8035. {
  8036. public:
  8037. // Methods:
  8038. void AddManualDrawable(Drawable);
  8039. void ApplyAttributes();
  8040. void DrawDebugGeometry(DebugRenderer, bool);
  8041. void DrawDebugGeometry(bool) const;
  8042. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8043. Variant GetAttribute(const String&) const;
  8044. ValueAnimation GetAttributeAnimation(const String&) const;
  8045. float GetAttributeAnimationSpeed(const String&) const;
  8046. float GetAttributeAnimationTime(const String&) const;
  8047. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8048. Variant GetAttributeDefault(const String&) const;
  8049. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8050. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8051. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8052. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  8053. bool GetInterceptNetworkUpdate(const String&) const;
  8054. bool HasSubscribedToEvent(Object, const String&);
  8055. bool HasSubscribedToEvent(const String&);
  8056. bool Load(File);
  8057. bool Load(VectorBuffer&);
  8058. bool LoadJSON(const JSONValue&);
  8059. bool LoadXML(const XMLElement&);
  8060. void MarkNetworkUpdate() const;
  8061. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8062. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  8063. void Remove();
  8064. void RemoveAttributeAnimation(const String&);
  8065. void RemoveInstanceDefault();
  8066. void RemoveManualDrawable(Drawable);
  8067. void RemoveObjectAnimation();
  8068. void ResetToDefault();
  8069. bool Save(File) const;
  8070. bool Save(VectorBuffer&) const;
  8071. bool SaveJSON(JSONValue&) const;
  8072. bool SaveXML(XMLElement&) const;
  8073. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8074. void SetAnimationTime(float);
  8075. bool SetAttribute(const String&, const Variant&);
  8076. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8077. void SetAttributeAnimationSpeed(const String&, float);
  8078. void SetAttributeAnimationTime(const String&, float);
  8079. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8080. void SetInterceptNetworkUpdate(const String&, bool);
  8081. void SetSize(const BoundingBox&, uint);
  8082. // Properties:
  8083. bool animationEnabled;
  8084. /* readonly */
  8085. Array<Variant> attributeDefaults;
  8086. /* readonly */
  8087. Array<AttributeInfo> attributeInfos;
  8088. Array<Variant> attributes;
  8089. /* readonly */
  8090. String category;
  8091. bool enabled;
  8092. /* readonly */
  8093. bool enabledEffective;
  8094. /* readonly */
  8095. uint id;
  8096. /* readonly */
  8097. Node node;
  8098. /* readonly */
  8099. uint numAttributes;
  8100. /* readonly */
  8101. uint numLevels;
  8102. ObjectAnimation objectAnimation;
  8103. /* readonly */
  8104. int refs;
  8105. /* readonly */
  8106. bool replicated;
  8107. bool temporary;
  8108. /* readonly */
  8109. StringHash type;
  8110. /* readonly */
  8111. String typeName;
  8112. /* readonly */
  8113. int weakRefs;
  8114. /* readonly */
  8115. BoundingBox worldBoundingBox;
  8116. };
  8117. class OffMeshConnection
  8118. {
  8119. public:
  8120. // Methods:
  8121. void ApplyAttributes();
  8122. void DrawDebugGeometry(DebugRenderer, bool);
  8123. Variant GetAttribute(const String&) const;
  8124. ValueAnimation GetAttributeAnimation(const String&) const;
  8125. float GetAttributeAnimationSpeed(const String&) const;
  8126. float GetAttributeAnimationTime(const String&) const;
  8127. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8128. Variant GetAttributeDefault(const String&) const;
  8129. bool GetInterceptNetworkUpdate(const String&) const;
  8130. bool HasSubscribedToEvent(Object, const String&);
  8131. bool HasSubscribedToEvent(const String&);
  8132. bool Load(File);
  8133. bool Load(VectorBuffer&);
  8134. bool LoadJSON(const JSONValue&);
  8135. bool LoadXML(const XMLElement&);
  8136. void MarkNetworkUpdate() const;
  8137. void Remove();
  8138. void RemoveAttributeAnimation(const String&);
  8139. void RemoveInstanceDefault();
  8140. void RemoveObjectAnimation();
  8141. void ResetToDefault();
  8142. bool Save(File) const;
  8143. bool Save(VectorBuffer&) const;
  8144. bool SaveJSON(JSONValue&) const;
  8145. bool SaveXML(XMLElement&) const;
  8146. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8147. void SetAnimationTime(float);
  8148. bool SetAttribute(const String&, const Variant&);
  8149. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8150. void SetAttributeAnimationSpeed(const String&, float);
  8151. void SetAttributeAnimationTime(const String&, float);
  8152. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8153. void SetInterceptNetworkUpdate(const String&, bool);
  8154. // Properties:
  8155. bool animationEnabled;
  8156. uint areaID;
  8157. /* readonly */
  8158. Array<Variant> attributeDefaults;
  8159. /* readonly */
  8160. Array<AttributeInfo> attributeInfos;
  8161. Array<Variant> attributes;
  8162. bool bidirectional;
  8163. /* readonly */
  8164. String category;
  8165. bool enabled;
  8166. /* readonly */
  8167. bool enabledEffective;
  8168. Node endPoint;
  8169. /* readonly */
  8170. uint id;
  8171. uint mask;
  8172. /* readonly */
  8173. Node node;
  8174. /* readonly */
  8175. uint numAttributes;
  8176. ObjectAnimation objectAnimation;
  8177. float radius;
  8178. /* readonly */
  8179. int refs;
  8180. /* readonly */
  8181. bool replicated;
  8182. bool temporary;
  8183. /* readonly */
  8184. StringHash type;
  8185. /* readonly */
  8186. String typeName;
  8187. /* readonly */
  8188. int weakRefs;
  8189. };
  8190. class PackageFile
  8191. {
  8192. public:
  8193. PackageFile();
  8194. PackageFile(const String&in, uint startOffset = 0);
  8195. // Methods:
  8196. bool Exists(const String&) const;
  8197. Array<String> GetEntryNames() const;
  8198. bool HasSubscribedToEvent(Object, const String&);
  8199. bool HasSubscribedToEvent(const String&);
  8200. bool Open(const String&, uint = 0) const;
  8201. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8202. bool compressed() const;
  8203. // Properties:
  8204. /* readonly */
  8205. String category;
  8206. /* readonly */
  8207. uint checksum;
  8208. /* readonly */
  8209. String name;
  8210. /* readonly */
  8211. uint numFiles;
  8212. /* readonly */
  8213. int refs;
  8214. /* readonly */
  8215. uint totalDataSize;
  8216. /* readonly */
  8217. uint totalSize;
  8218. /* readonly */
  8219. StringHash type;
  8220. /* readonly */
  8221. String typeName;
  8222. /* readonly */
  8223. int weakRefs;
  8224. };
  8225. class ParticleEffect
  8226. {
  8227. public:
  8228. ParticleEffect();
  8229. ParticleEffect(const String&in);
  8230. // Methods:
  8231. void AddColorFrame(ColorFrame);
  8232. void AddColorTime(const Color&, float);
  8233. void AddTextureFrame(TextureFrame);
  8234. void AddTextureTime(const Rect&, float);
  8235. ParticleEffect Clone(const String& = String ( )) const;
  8236. ColorFrame GetColorFrame(uint) const;
  8237. TextureFrame GetTextureFrame(uint) const;
  8238. bool HasSubscribedToEvent(Object, const String&);
  8239. bool HasSubscribedToEvent(const String&);
  8240. bool Load(File);
  8241. bool Load(VectorBuffer&);
  8242. bool Load(const String&);
  8243. bool Load(const XMLElement&);
  8244. void RemoveColorFrame(uint);
  8245. void RemoveTextureFrame(uint);
  8246. bool Save(File) const;
  8247. bool Save(VectorBuffer&) const;
  8248. bool Save(XMLElement&) const;
  8249. bool Save(const String&) const;
  8250. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8251. void SetColorFrame(uint, ColorFrame);
  8252. void SetTextureFrame(uint, TextureFrame);
  8253. void SortColorFrames();
  8254. void SortTextureFrames();
  8255. // Properties:
  8256. float activeTime;
  8257. float animationLodBias;
  8258. /* readonly */
  8259. String category;
  8260. Vector3 constantForce;
  8261. float dampingForce;
  8262. Vector3 emitterSize;
  8263. EmitterType emitterType;
  8264. FaceCameraMode faceCameraMode;
  8265. bool fixedScreenSize;
  8266. float inactiveTime;
  8267. Material material;
  8268. Vector3 maxDirection;
  8269. float maxEmissionRate;
  8270. Vector2 maxParticleSize;
  8271. float maxRotation;
  8272. float maxRotationSpeed;
  8273. float maxTimeToLive;
  8274. float maxVelocity;
  8275. /* readonly */
  8276. uint memoryUse;
  8277. Vector3 minDirection;
  8278. float minEmissionRate;
  8279. Vector2 minParticleSize;
  8280. float minRotation;
  8281. float minRotationSpeed;
  8282. float minTimeToLive;
  8283. float minVelocity;
  8284. String name;
  8285. uint numColorFrames;
  8286. uint numParticles;
  8287. uint numTextureFrames;
  8288. /* readonly */
  8289. int refs;
  8290. bool relative;
  8291. bool scaled;
  8292. float sizeAdd;
  8293. float sizeMul;
  8294. bool sorted;
  8295. /* readonly */
  8296. StringHash type;
  8297. /* readonly */
  8298. String typeName;
  8299. bool updateInvisible;
  8300. /* readonly */
  8301. uint useTimer;
  8302. /* readonly */
  8303. int weakRefs;
  8304. };
  8305. class ParticleEffect2D
  8306. {
  8307. public:
  8308. ParticleEffect2D();
  8309. ParticleEffect2D(const String&in);
  8310. // Methods:
  8311. ParticleEffect2D Clone(const String& = String ( )) const;
  8312. bool HasSubscribedToEvent(Object, const String&);
  8313. bool HasSubscribedToEvent(const String&);
  8314. bool Load(File);
  8315. bool Load(VectorBuffer&);
  8316. bool Load(const String&);
  8317. bool Save(File) const;
  8318. bool Save(VectorBuffer&) const;
  8319. bool Save(const String&) const;
  8320. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8321. // Properties:
  8322. /* readonly */
  8323. String category;
  8324. /* readonly */
  8325. uint memoryUse;
  8326. String name;
  8327. /* readonly */
  8328. int refs;
  8329. /* readonly */
  8330. StringHash type;
  8331. /* readonly */
  8332. String typeName;
  8333. /* readonly */
  8334. uint useTimer;
  8335. /* readonly */
  8336. int weakRefs;
  8337. };
  8338. class ParticleEmitter
  8339. {
  8340. public:
  8341. // Methods:
  8342. void ApplyAttributes();
  8343. void ApplyEffect();
  8344. void Commit();
  8345. void DrawDebugGeometry(DebugRenderer, bool);
  8346. Variant GetAttribute(const String&) const;
  8347. ValueAnimation GetAttributeAnimation(const String&) const;
  8348. float GetAttributeAnimationSpeed(const String&) const;
  8349. float GetAttributeAnimationTime(const String&) const;
  8350. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8351. Variant GetAttributeDefault(const String&) const;
  8352. bool GetInterceptNetworkUpdate(const String&) const;
  8353. bool HasSubscribedToEvent(Object, const String&);
  8354. bool HasSubscribedToEvent(const String&);
  8355. bool IsInView(Camera) const;
  8356. bool Load(File);
  8357. bool Load(VectorBuffer&);
  8358. bool LoadJSON(const JSONValue&);
  8359. bool LoadXML(const XMLElement&);
  8360. void MarkNetworkUpdate() const;
  8361. void Remove();
  8362. void RemoveAllParticles();
  8363. void RemoveAttributeAnimation(const String&);
  8364. void RemoveInstanceDefault();
  8365. void RemoveObjectAnimation();
  8366. void Reset();
  8367. void ResetEmissionTimer();
  8368. void ResetToDefault();
  8369. bool Save(File) const;
  8370. bool Save(VectorBuffer&) const;
  8371. bool SaveJSON(JSONValue&) const;
  8372. bool SaveXML(XMLElement&) const;
  8373. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8374. void SetAnimationTime(float);
  8375. bool SetAttribute(const String&, const Variant&);
  8376. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8377. void SetAttributeAnimationSpeed(const String&, float);
  8378. void SetAttributeAnimationTime(const String&, float);
  8379. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8380. void SetInterceptNetworkUpdate(const String&, bool);
  8381. // Properties:
  8382. bool animationEnabled;
  8383. float animationLodBias;
  8384. /* readonly */
  8385. Array<Variant> attributeDefaults;
  8386. /* readonly */
  8387. Array<AttributeInfo> attributeInfos;
  8388. Array<Variant> attributes;
  8389. AutoRemoveMode autoRemoveMode;
  8390. /* readonly */
  8391. Array<Billboard> billboards;
  8392. /* readonly */
  8393. BoundingBox boundingBox;
  8394. bool castShadows;
  8395. /* readonly */
  8396. String category;
  8397. float drawDistance;
  8398. ParticleEffect effect;
  8399. bool emitting;
  8400. bool enabled;
  8401. /* readonly */
  8402. bool enabledEffective;
  8403. FaceCameraMode faceCameraMode;
  8404. bool fixedScreenSize;
  8405. /* readonly */
  8406. uint id;
  8407. /* readonly */
  8408. bool inView;
  8409. uint lightMask;
  8410. float lodBias;
  8411. Material material;
  8412. uint maxLights;
  8413. /* readonly */
  8414. Node node;
  8415. /* readonly */
  8416. uint numAttributes;
  8417. uint numBillboards;
  8418. uint numParticles;
  8419. ObjectAnimation objectAnimation;
  8420. bool occludee;
  8421. bool occluder;
  8422. /* readonly */
  8423. int refs;
  8424. bool relative;
  8425. /* readonly */
  8426. bool replicated;
  8427. bool scaled;
  8428. bool serializeParticles;
  8429. float shadowDistance;
  8430. uint shadowMask;
  8431. bool sorted;
  8432. bool temporary;
  8433. /* readonly */
  8434. StringHash type;
  8435. /* readonly */
  8436. String typeName;
  8437. uint viewMask;
  8438. /* readonly */
  8439. int weakRefs;
  8440. /* readonly */
  8441. BoundingBox worldBoundingBox;
  8442. /* readonly */
  8443. Zone zone;
  8444. uint zoneMask;
  8445. };
  8446. class ParticleEmitter2D
  8447. {
  8448. public:
  8449. // Methods:
  8450. void ApplyAttributes();
  8451. void DrawDebugGeometry(DebugRenderer, bool);
  8452. Variant GetAttribute(const String&) const;
  8453. ValueAnimation GetAttributeAnimation(const String&) const;
  8454. float GetAttributeAnimationSpeed(const String&) const;
  8455. float GetAttributeAnimationTime(const String&) const;
  8456. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8457. Variant GetAttributeDefault(const String&) const;
  8458. bool GetInterceptNetworkUpdate(const String&) const;
  8459. bool HasSubscribedToEvent(Object, const String&);
  8460. bool HasSubscribedToEvent(const String&);
  8461. bool IsInView(Camera) const;
  8462. bool Load(File);
  8463. bool Load(VectorBuffer&);
  8464. bool LoadJSON(const JSONValue&);
  8465. bool LoadXML(const XMLElement&);
  8466. void MarkNetworkUpdate() const;
  8467. void Remove();
  8468. void RemoveAttributeAnimation(const String&);
  8469. void RemoveInstanceDefault();
  8470. void RemoveObjectAnimation();
  8471. void ResetToDefault();
  8472. bool Save(File) const;
  8473. bool Save(VectorBuffer&) const;
  8474. bool SaveJSON(JSONValue&) const;
  8475. bool SaveXML(XMLElement&) const;
  8476. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8477. void SetAnimationTime(float);
  8478. bool SetAttribute(const String&, const Variant&);
  8479. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8480. void SetAttributeAnimationSpeed(const String&, float);
  8481. void SetAttributeAnimationTime(const String&, float);
  8482. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8483. void SetInterceptNetworkUpdate(const String&, bool);
  8484. // Properties:
  8485. bool animationEnabled;
  8486. /* readonly */
  8487. Array<Variant> attributeDefaults;
  8488. /* readonly */
  8489. Array<AttributeInfo> attributeInfos;
  8490. Array<Variant> attributes;
  8491. BlendMode blendMode;
  8492. /* readonly */
  8493. BoundingBox boundingBox;
  8494. bool castShadows;
  8495. /* readonly */
  8496. String category;
  8497. float drawDistance;
  8498. ParticleEffect2D effect;
  8499. bool emitting;
  8500. bool enabled;
  8501. /* readonly */
  8502. bool enabledEffective;
  8503. /* readonly */
  8504. uint id;
  8505. /* readonly */
  8506. bool inView;
  8507. int layer;
  8508. uint lightMask;
  8509. float lodBias;
  8510. uint maxLights;
  8511. /* readonly */
  8512. Node node;
  8513. /* readonly */
  8514. uint numAttributes;
  8515. ObjectAnimation objectAnimation;
  8516. bool occludee;
  8517. bool occluder;
  8518. int orderInLayer;
  8519. /* readonly */
  8520. int refs;
  8521. /* readonly */
  8522. bool replicated;
  8523. float shadowDistance;
  8524. uint shadowMask;
  8525. Sprite2D sprite;
  8526. bool temporary;
  8527. /* readonly */
  8528. StringHash type;
  8529. /* readonly */
  8530. String typeName;
  8531. uint viewMask;
  8532. /* readonly */
  8533. int weakRefs;
  8534. /* readonly */
  8535. BoundingBox worldBoundingBox;
  8536. uint zoneMask;
  8537. };
  8538. class Pass
  8539. {
  8540. public:
  8541. // Properties:
  8542. bool alphaToCoverage;
  8543. BlendMode blendMode;
  8544. CullMode cullMode;
  8545. CompareMode depthTestMode;
  8546. bool depthWrite;
  8547. bool desktop;
  8548. PassLightingMode lightingMode;
  8549. String pixelShader;
  8550. String pixelShaderDefineExcludes;
  8551. String pixelShaderDefines;
  8552. /* readonly */
  8553. int refs;
  8554. String vertexShader;
  8555. String vertexShaderDefineExcludes;
  8556. String vertexShaderDefines;
  8557. /* readonly */
  8558. int weakRefs;
  8559. };
  8560. class PhysicsRaycastResult
  8561. {
  8562. public:
  8563. ~PhysicsRaycastResult();
  8564. PhysicsRaycastResult();
  8565. // Properties:
  8566. /* readonly */
  8567. RigidBody body;
  8568. float distance;
  8569. float hitFraction;
  8570. Vector3 normal;
  8571. Vector3 position;
  8572. };
  8573. class PhysicsRaycastResult2D
  8574. {
  8575. public:
  8576. ~PhysicsRaycastResult2D();
  8577. PhysicsRaycastResult2D();
  8578. // Properties:
  8579. /* readonly */
  8580. RigidBody2D body;
  8581. float distance;
  8582. Vector2 normal;
  8583. Vector2 position;
  8584. };
  8585. class PhysicsWorld
  8586. {
  8587. public:
  8588. // Methods:
  8589. void ApplyAttributes();
  8590. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  8591. void DrawDebugGeometry(DebugRenderer, bool);
  8592. void DrawDebugGeometry(bool);
  8593. Variant GetAttribute(const String&) const;
  8594. ValueAnimation GetAttributeAnimation(const String&) const;
  8595. float GetAttributeAnimationSpeed(const String&) const;
  8596. float GetAttributeAnimationTime(const String&) const;
  8597. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8598. Variant GetAttributeDefault(const String&) const;
  8599. Array<RigidBody> GetCollidingBodies(RigidBody);
  8600. bool GetInterceptNetworkUpdate(const String&) const;
  8601. Array<RigidBody> GetRigidBodies(RigidBody);
  8602. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  8603. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  8604. bool HasSubscribedToEvent(Object, const String&);
  8605. bool HasSubscribedToEvent(const String&);
  8606. bool Load(File);
  8607. bool Load(VectorBuffer&);
  8608. bool LoadJSON(const JSONValue&);
  8609. bool LoadXML(const XMLElement&);
  8610. void MarkNetworkUpdate() const;
  8611. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  8612. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  8613. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint = 0xffff, float = 0.1f);
  8614. void Remove();
  8615. void RemoveAttributeAnimation(const String&);
  8616. void RemoveCachedGeometry(Model);
  8617. void RemoveInstanceDefault();
  8618. void RemoveObjectAnimation();
  8619. void ResetToDefault();
  8620. bool Save(File) const;
  8621. bool Save(VectorBuffer&) const;
  8622. bool SaveJSON(JSONValue&) const;
  8623. bool SaveXML(XMLElement&) const;
  8624. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8625. void SetAnimationTime(float);
  8626. bool SetAttribute(const String&, const Variant&);
  8627. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8628. void SetAttributeAnimationSpeed(const String&, float);
  8629. void SetAttributeAnimationTime(const String&, float);
  8630. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8631. void SetInterceptNetworkUpdate(const String&, bool);
  8632. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint = 0xffff);
  8633. void Update(float);
  8634. void UpdateCollisions();
  8635. // Properties:
  8636. bool animationEnabled;
  8637. /* readonly */
  8638. Array<Variant> attributeDefaults;
  8639. /* readonly */
  8640. Array<AttributeInfo> attributeInfos;
  8641. Array<Variant> attributes;
  8642. /* readonly */
  8643. String category;
  8644. bool enabled;
  8645. /* readonly */
  8646. bool enabledEffective;
  8647. int fps;
  8648. Vector3 gravity;
  8649. /* readonly */
  8650. uint id;
  8651. bool internalEdge;
  8652. bool interpolation;
  8653. int maxSubSteps;
  8654. /* readonly */
  8655. Node node;
  8656. /* readonly */
  8657. uint numAttributes;
  8658. int numIterations;
  8659. ObjectAnimation objectAnimation;
  8660. /* readonly */
  8661. int refs;
  8662. /* readonly */
  8663. bool replicated;
  8664. bool splitImpulse;
  8665. bool temporary;
  8666. /* readonly */
  8667. StringHash type;
  8668. /* readonly */
  8669. String typeName;
  8670. bool updateEnabled;
  8671. /* readonly */
  8672. int weakRefs;
  8673. };
  8674. class PhysicsWorld2D
  8675. {
  8676. public:
  8677. // Methods:
  8678. void ApplyAttributes();
  8679. void DrawDebugGeometry() const;
  8680. void DrawDebugGeometry(DebugRenderer, bool);
  8681. Variant GetAttribute(const String&) const;
  8682. ValueAnimation GetAttributeAnimation(const String&) const;
  8683. float GetAttributeAnimationSpeed(const String&) const;
  8684. float GetAttributeAnimationTime(const String&) const;
  8685. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8686. Variant GetAttributeDefault(const String&) const;
  8687. bool GetInterceptNetworkUpdate(const String&) const;
  8688. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  8689. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  8690. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  8691. bool HasSubscribedToEvent(Object, const String&);
  8692. bool HasSubscribedToEvent(const String&);
  8693. bool Load(File);
  8694. bool Load(VectorBuffer&);
  8695. bool LoadJSON(const JSONValue&);
  8696. bool LoadXML(const XMLElement&);
  8697. void MarkNetworkUpdate() const;
  8698. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  8699. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  8700. void Remove();
  8701. void RemoveAttributeAnimation(const String&);
  8702. void RemoveInstanceDefault();
  8703. void RemoveObjectAnimation();
  8704. void ResetToDefault();
  8705. bool Save(File) const;
  8706. bool Save(VectorBuffer&) const;
  8707. bool SaveJSON(JSONValue&) const;
  8708. bool SaveXML(XMLElement&) const;
  8709. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8710. void SetAnimationTime(float);
  8711. bool SetAttribute(const String&, const Variant&);
  8712. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8713. void SetAttributeAnimationSpeed(const String&, float);
  8714. void SetAttributeAnimationTime(const String&, float);
  8715. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8716. void SetInterceptNetworkUpdate(const String&, bool);
  8717. // Properties:
  8718. bool allowSleeping;
  8719. bool animationEnabled;
  8720. /* readonly */
  8721. Array<Variant> attributeDefaults;
  8722. /* readonly */
  8723. Array<AttributeInfo> attributeInfos;
  8724. Array<Variant> attributes;
  8725. bool autoClearForces;
  8726. /* readonly */
  8727. String category;
  8728. bool continuousPhysics;
  8729. bool drawAabb;
  8730. bool drawCenterOfMass;
  8731. bool drawJoint;
  8732. bool drawPair;
  8733. bool drawShape;
  8734. bool enabled;
  8735. /* readonly */
  8736. bool enabledEffective;
  8737. Vector2 gravity;
  8738. /* readonly */
  8739. uint id;
  8740. /* readonly */
  8741. Node node;
  8742. /* readonly */
  8743. uint numAttributes;
  8744. ObjectAnimation objectAnimation;
  8745. uint positionIterations;
  8746. /* readonly */
  8747. int refs;
  8748. /* readonly */
  8749. bool replicated;
  8750. bool subStepping;
  8751. bool temporary;
  8752. /* readonly */
  8753. StringHash type;
  8754. /* readonly */
  8755. String typeName;
  8756. bool updateEnabled;
  8757. uint velocityIterations;
  8758. bool warmStarting;
  8759. /* readonly */
  8760. int weakRefs;
  8761. };
  8762. class Plane
  8763. {
  8764. public:
  8765. Plane();
  8766. Plane(const Plane&in);
  8767. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  8768. Plane(const Vector3&in, const Vector3&in);
  8769. Plane(const Vector4&in);
  8770. // Methods:
  8771. void Define(const Vector3&, const Vector3&);
  8772. void Define(const Vector3&, const Vector3&, const Vector3&);
  8773. void Define(const Vector4&);
  8774. float Distance(const Vector3&) const;
  8775. Vector3 Project(const Vector3&) const;
  8776. Vector3 Reflect(const Vector3&) const;
  8777. Vector4 ToVector4() const;
  8778. void Transform(const Matrix3&);
  8779. void Transform(const Matrix3x4&);
  8780. void Transform(const Matrix4&);
  8781. Plane Transformed(const Matrix3&) const;
  8782. Plane Transformed(const Matrix3x4&) const;
  8783. Plane Transformed(const Matrix4&) const;
  8784. // Properties:
  8785. Vector3 absNormal;
  8786. float d;
  8787. Vector3 normal;
  8788. /* readonly */
  8789. Matrix3x4 reflectionMatrix;
  8790. };
  8791. class Polyhedron
  8792. {
  8793. public:
  8794. ~Polyhedron();
  8795. Polyhedron();
  8796. Polyhedron(const Polyhedron&in);
  8797. Polyhedron(const BoundingBox&in);
  8798. Polyhedron(const Frustum&in);
  8799. // Methods:
  8800. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  8801. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  8802. void AddFace(const Array<Vector3>);
  8803. void Clear();
  8804. void Clip(const BoundingBox&);
  8805. void Clip(const Frustum&);
  8806. void Define(const BoundingBox&);
  8807. void Define(const Frustum&);
  8808. void Transform(const Matrix3&);
  8809. void Transform(const Matrix3x4&);
  8810. Polyhedron Transformed(const Matrix3&) const;
  8811. Polyhedron Transformed(const Matrix3x4&) const;
  8812. // Properties:
  8813. /* readonly */
  8814. Array<Array<Vector3>> face;
  8815. /* readonly */
  8816. uint numFaces;
  8817. };
  8818. class ProgressBar
  8819. {
  8820. public:
  8821. // Methods:
  8822. void ChangeValue(float);
  8823. bool HasSubscribedToEvent(Object, const String&);
  8824. bool HasSubscribedToEvent(const String&);
  8825. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8826. void SetLoadingPercentStyle(const String&);
  8827. // Properties:
  8828. /* readonly */
  8829. String category;
  8830. /* readonly */
  8831. BorderImage knob;
  8832. Orientation orientation;
  8833. float range;
  8834. /* readonly */
  8835. int refs;
  8836. bool showPercentText;
  8837. /* readonly */
  8838. StringHash type;
  8839. /* readonly */
  8840. String typeName;
  8841. float value;
  8842. /* readonly */
  8843. int weakRefs;
  8844. };
  8845. class PropertySet2D
  8846. {
  8847. public:
  8848. // Methods:
  8849. bool HasProperty(const String&) const;
  8850. const String& GetProperty(const String&) const;
  8851. // Properties:
  8852. /* readonly */
  8853. int refs;
  8854. /* readonly */
  8855. int weakRefs;
  8856. };
  8857. class Quaternion
  8858. {
  8859. public:
  8860. Quaternion();
  8861. Quaternion(const Quaternion&in);
  8862. Quaternion(float, float, float, float);
  8863. Quaternion(float, const Vector3&in);
  8864. Quaternion(float);
  8865. Quaternion(float, float, float);
  8866. Quaternion(const Vector3&in);
  8867. Quaternion(const Vector3&in, const Vector3&in);
  8868. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  8869. Quaternion(const Matrix3&in);
  8870. // Methods:
  8871. Quaternion Conjugate() const;
  8872. float DotProduct(const Quaternion&) const;
  8873. bool Equals(const Quaternion&) const;
  8874. void FromAngleAxis(float, const Vector3&);
  8875. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  8876. void FromEulerAngles(float, float, float);
  8877. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 ( 0.0 , 1.0 , 0.0 ));
  8878. void FromRotationMatrix(const Matrix3&);
  8879. void FromRotationTo(const Vector3&, const Vector3&);
  8880. Quaternion Inverse() const;
  8881. bool IsNaN() const;
  8882. float LengthSquared() const;
  8883. Quaternion Nlerp(const Quaternion&, float, bool) const;
  8884. void Normalize();
  8885. Quaternion Normalized() const;
  8886. Quaternion Slerp(const Quaternion&, float) const;
  8887. String ToString() const;
  8888. // Properties:
  8889. /* readonly */
  8890. float angle;
  8891. /* readonly */
  8892. Vector3 axis;
  8893. /* readonly */
  8894. Vector3 eulerAngles;
  8895. /* readonly */
  8896. float pitch;
  8897. /* readonly */
  8898. float roll;
  8899. /* readonly */
  8900. Matrix3 rotationMatrix;
  8901. float w;
  8902. float x;
  8903. float y;
  8904. /* readonly */
  8905. float yaw;
  8906. float z;
  8907. };
  8908. class Ray
  8909. {
  8910. public:
  8911. Ray();
  8912. Ray(const Ray&in);
  8913. Ray(const Vector3&in, const Vector3&in);
  8914. // Methods:
  8915. Vector3 ClosestPoint(const Ray&) const;
  8916. void Define(const Vector3&, const Vector3&);
  8917. float Distance(const Vector3&) const;
  8918. float HitDistance(const BoundingBox&) const;
  8919. float HitDistance(const Frustum&, bool = true) const;
  8920. float HitDistance(const Plane&) const;
  8921. float HitDistance(const Sphere&) const;
  8922. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  8923. Vector3 Project(const Vector3&) const;
  8924. Ray Transformed(const Matrix3x4&) const;
  8925. // Properties:
  8926. Vector3 direction;
  8927. Vector3 origin;
  8928. };
  8929. class RayQueryResult
  8930. {
  8931. public:
  8932. RayQueryResult();
  8933. // Properties:
  8934. float distance;
  8935. /* readonly */
  8936. Drawable drawable;
  8937. /* readonly */
  8938. Node node;
  8939. Vector3 normal;
  8940. Vector3 position;
  8941. uint subObject;
  8942. Vector2 textureUV;
  8943. };
  8944. class RaycastVehicle
  8945. {
  8946. public:
  8947. // Methods:
  8948. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  8949. void ApplyAttributes();
  8950. void DrawDebugGeometry(DebugRenderer, bool);
  8951. Variant GetAttribute(const String&) const;
  8952. ValueAnimation GetAttributeAnimation(const String&) const;
  8953. float GetAttributeAnimationSpeed(const String&) const;
  8954. float GetAttributeAnimationTime(const String&) const;
  8955. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8956. Variant GetAttributeDefault(const String&) const;
  8957. float GetBrake(int);
  8958. Vector3 GetContactNormal(int);
  8959. Vector3 GetContactPosition(int);
  8960. float GetEngineForce(int);
  8961. bool GetInterceptNetworkUpdate(const String&) const;
  8962. float GetMaxSuspensionTravel(int);
  8963. float GetSteeringValue(int);
  8964. Vector3 GetWheelAxle(int);
  8965. Vector3 GetWheelConnectionPoint(int);
  8966. float GetWheelDampingCompression(int);
  8967. float GetWheelDampingRelaxation(int);
  8968. Vector3 GetWheelDirection(int);
  8969. float GetWheelFrictionSlip(int);
  8970. Node GetWheelNode(int);
  8971. Vector3 GetWheelPosition(int);
  8972. float GetWheelRadius(int);
  8973. float GetWheelRestLength(int);
  8974. float GetWheelRollInfluence(int);
  8975. Vector3 GetWheelRotation(int);
  8976. float GetWheelSideSlipSpeed(int);
  8977. float GetWheelSkidInfo(int);
  8978. float GetWheelSkidInfoCumulative(int);
  8979. float GetWheelSuspensionStiffness(int);
  8980. bool HasSubscribedToEvent(Object, const String&);
  8981. bool HasSubscribedToEvent(const String&);
  8982. void Init();
  8983. bool IsFrontWheel(int);
  8984. bool Load(File);
  8985. bool Load(VectorBuffer&);
  8986. bool LoadJSON(const JSONValue&);
  8987. bool LoadXML(const XMLElement&);
  8988. void MarkNetworkUpdate() const;
  8989. void Remove();
  8990. void RemoveAttributeAnimation(const String&);
  8991. void RemoveInstanceDefault();
  8992. void RemoveObjectAnimation();
  8993. void ResetSuspension();
  8994. void ResetToDefault();
  8995. void ResetWheels();
  8996. bool Save(File) const;
  8997. bool Save(VectorBuffer&) const;
  8998. bool SaveJSON(JSONValue&) const;
  8999. bool SaveXML(XMLElement&) const;
  9000. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9001. void SetAnimationTime(float);
  9002. bool SetAttribute(const String&, const Variant&);
  9003. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9004. void SetAttributeAnimationSpeed(const String&, float);
  9005. void SetAttributeAnimationTime(const String&, float);
  9006. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9007. void SetBrake(int, float);
  9008. void SetEngineForce(int, float);
  9009. void SetInterceptNetworkUpdate(const String&, bool);
  9010. void SetMaxSuspensionTravel(int, float);
  9011. void SetSteeringValue(int, float);
  9012. void SetWheelAxle(int, Vector3);
  9013. void SetWheelDampingCompression(int, float);
  9014. void SetWheelDampingRelaxation(int, float);
  9015. void SetWheelDirection(int, Vector3);
  9016. void SetWheelFrictionSlip(int, float);
  9017. void SetWheelRadius(int, float);
  9018. void SetWheelRestLength(int, float);
  9019. void SetWheelRollInfluence(int, float);
  9020. void SetWheelSkidInfo(int, float);
  9021. void SetWheelSkidInfoCumulative(int, float);
  9022. void SetWheelSuspensionStiffness(int, float);
  9023. void UpdateWheelTransform(int, bool);
  9024. bool WheelIsGrounded(int);
  9025. // Properties:
  9026. bool animationEnabled;
  9027. /* readonly */
  9028. Array<Variant> attributeDefaults;
  9029. /* readonly */
  9030. Array<AttributeInfo> attributeInfos;
  9031. Array<Variant> attributes;
  9032. /* readonly */
  9033. String category;
  9034. IntVector3 coordinateSystem;
  9035. bool enabled;
  9036. /* readonly */
  9037. bool enabledEffective;
  9038. /* readonly */
  9039. uint id;
  9040. float inAirRPM;
  9041. float maxSideSlipSpeed;
  9042. /* readonly */
  9043. Node node;
  9044. /* readonly */
  9045. uint numAttributes;
  9046. /* readonly */
  9047. int numWheels;
  9048. ObjectAnimation objectAnimation;
  9049. /* readonly */
  9050. int refs;
  9051. /* readonly */
  9052. bool replicated;
  9053. bool temporary;
  9054. /* readonly */
  9055. StringHash type;
  9056. /* readonly */
  9057. String typeName;
  9058. /* readonly */
  9059. int weakRefs;
  9060. // Constants:
  9061. static const IntVector3 FORWARD_RIGHT_UP;
  9062. static const IntVector3 FORWARD_UP_RIGHT;
  9063. static const IntVector3 RIGHT_FORWARD_UP;
  9064. static const IntVector3 RIGHT_UP_FORWARD;
  9065. static const IntVector3 UP_FORWARD_RIGHT;
  9066. static const IntVector3 UP_RIGHT_FORWARD;
  9067. };
  9068. class Rect
  9069. {
  9070. public:
  9071. Rect();
  9072. Rect(const Rect&in);
  9073. Rect(float, float, float, float);
  9074. Rect(const Vector2&in, const Vector2&in);
  9075. Rect(const Vector4&in);
  9076. // Methods:
  9077. void Clear();
  9078. void Clip(const Rect&);
  9079. void Define(const Vector2&);
  9080. void Define(const Vector2&, const Vector2&);
  9081. bool Defined() const;
  9082. bool Equals(const Rect&) const;
  9083. Intersection IsInside(const Rect&) const;
  9084. Intersection IsInside(const Vector2&) const;
  9085. void Merge(const Rect&);
  9086. void Merge(const Vector2&);
  9087. Vector4 ToVector4() const;
  9088. // Properties:
  9089. float bottom;
  9090. /* readonly */
  9091. Vector2 center;
  9092. /* readonly */
  9093. Vector2 halfSize;
  9094. float left;
  9095. Vector2 max;
  9096. Vector2 min;
  9097. float right;
  9098. /* readonly */
  9099. Vector2 size;
  9100. float top;
  9101. };
  9102. class RefCounted
  9103. {
  9104. public:
  9105. // Properties:
  9106. /* readonly */
  9107. int refs;
  9108. /* readonly */
  9109. int weakRefs;
  9110. };
  9111. class RenderPath
  9112. {
  9113. public:
  9114. RenderPath();
  9115. // Methods:
  9116. void AddCommand(const RenderPathCommand&);
  9117. void AddRenderTarget(const RenderTargetInfo&);
  9118. bool Append(XMLFile);
  9119. RenderPath Clone();
  9120. void InsertCommand(uint, const RenderPathCommand&);
  9121. bool Load(XMLFile);
  9122. void RemoveCommand(uint);
  9123. void RemoveCommands(const String&);
  9124. void RemoveRenderTarget(const String&);
  9125. void RemoveRenderTarget(uint);
  9126. void RemoveRenderTargts(const String&);
  9127. void SetEnabled(const String&, bool);
  9128. void ToggleEnabled(const String&);
  9129. // Properties:
  9130. /* readonly */
  9131. Array<bool> added;
  9132. Array<RenderPathCommand> commands;
  9133. /* readonly */
  9134. Array<bool> enabled;
  9135. /* readonly */
  9136. uint numCommands;
  9137. /* readonly */
  9138. uint numRenderTargets;
  9139. /* readonly */
  9140. int refs;
  9141. Array<RenderTargetInfo> renderTargets;
  9142. Array<Variant> shaderParameters;
  9143. /* readonly */
  9144. int weakRefs;
  9145. };
  9146. class RenderPathCommand
  9147. {
  9148. public:
  9149. ~RenderPathCommand();
  9150. RenderPathCommand();
  9151. RenderPathCommand(const RenderPathCommand&in);
  9152. // Methods:
  9153. void RemoveShaderParameter(const String&);
  9154. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  9155. // Properties:
  9156. BlendMode blendMode;
  9157. Color clearColor;
  9158. float clearDepth;
  9159. uint clearFlags;
  9160. uint clearStencil;
  9161. String depthStencilName;
  9162. bool enabled;
  9163. String eventName;
  9164. bool markToStencil;
  9165. String metadata;
  9166. uint numOutputs;
  9167. Array<CubeMapFace> outputFaces;
  9168. Array<String> outputNames;
  9169. String pass;
  9170. String pixelShaderDefines;
  9171. String pixelShaderName;
  9172. Array<Variant> shaderParameters;
  9173. RenderCommandSortMode sortMode;
  9174. String tag;
  9175. Array<String> textureNames;
  9176. RenderCommandType type;
  9177. bool useFogColor;
  9178. bool useLitBase;
  9179. bool vertexLights;
  9180. String vertexShaderDefines;
  9181. String vertexShaderName;
  9182. };
  9183. class RenderSurface
  9184. {
  9185. public:
  9186. // Methods:
  9187. void QueueUpdate();
  9188. // Properties:
  9189. /* readonly */
  9190. int height;
  9191. RenderSurface linkedDepthStencil;
  9192. RenderSurface linkedRenderTarget;
  9193. uint numViewports;
  9194. /* readonly */
  9195. Texture parentTexture;
  9196. /* readonly */
  9197. bool resolveDirty;
  9198. RenderSurfaceUpdateMode updateMode;
  9199. /* readonly */
  9200. TextureUsage usage;
  9201. Array<Viewport> viewports;
  9202. /* readonly */
  9203. int width;
  9204. };
  9205. class RenderTargetInfo
  9206. {
  9207. public:
  9208. ~RenderTargetInfo();
  9209. RenderTargetInfo();
  9210. RenderTargetInfo(const RenderTargetInfo&in);
  9211. // Properties:
  9212. bool autoResolve;
  9213. bool cubemap;
  9214. bool enabled;
  9215. bool filtered;
  9216. uint format;
  9217. int multiSample;
  9218. String name;
  9219. bool persistent;
  9220. bool sRGB;
  9221. Vector2 size;
  9222. RenderTargetSizeMode sizeMode;
  9223. String tag;
  9224. };
  9225. class Renderer
  9226. {
  9227. public:
  9228. // Methods:
  9229. void DrawDebugGeometry(bool) const;
  9230. Viewport GetViewportForScene(Scene, uint);
  9231. bool HasSubscribedToEvent(Object, const String&);
  9232. bool HasSubscribedToEvent(const String&);
  9233. void ReloadShaders() const;
  9234. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9235. void SetDefaultRenderPath(XMLFile);
  9236. void SetVSMShadowParameters(float, float);
  9237. // Properties:
  9238. /* readonly */
  9239. String category;
  9240. /* readonly */
  9241. Material defaultLightRamp;
  9242. /* readonly */
  9243. Material defaultLightSpot;
  9244. /* readonly */
  9245. Material defaultMaterial;
  9246. RenderPath defaultRenderPath;
  9247. Technique defaultTechnique;
  9248. /* readonly */
  9249. Zone defaultZone;
  9250. bool drawShadows;
  9251. bool dynamicInstancing;
  9252. bool hdrRendering;
  9253. int materialQuality;
  9254. int maxOccluderTriangles;
  9255. int maxShadowMaps;
  9256. int maxSortedInstances;
  9257. int minInstances;
  9258. float mobileNormalOffsetMul;
  9259. float mobileShadowBiasAdd;
  9260. float mobileShadowBiasMul;
  9261. /* readonly */
  9262. uint numBatches;
  9263. int numExtraInstancingBufferElements;
  9264. /* readonly */
  9265. Array<uint> numGeometries;
  9266. /* readonly */
  9267. Array<uint> numLights;
  9268. /* readonly */
  9269. Array<uint> numOccluders;
  9270. /* readonly */
  9271. uint numPrimitives;
  9272. /* readonly */
  9273. Array<uint> numShadowMaps;
  9274. uint numViewports;
  9275. /* readonly */
  9276. uint numViews;
  9277. float occluderSizeThreshold;
  9278. int occlusionBufferSize;
  9279. /* readonly */
  9280. int refs;
  9281. bool reuseShadowMaps;
  9282. int shadowMapSize;
  9283. ShadowQuality shadowQuality;
  9284. float shadowSoftness;
  9285. bool specularLighting;
  9286. int textureAnisotropy;
  9287. TextureFilterMode textureFilterMode;
  9288. int textureQuality;
  9289. bool threadedOcclusion;
  9290. /* readonly */
  9291. StringHash type;
  9292. /* readonly */
  9293. String typeName;
  9294. Array<Viewport> viewports;
  9295. int vsmMultiSample;
  9296. Vector2 vsmShadowParameters;
  9297. /* readonly */
  9298. int weakRefs;
  9299. };
  9300. class Resource
  9301. {
  9302. public:
  9303. // Methods:
  9304. bool HasSubscribedToEvent(Object, const String&);
  9305. bool HasSubscribedToEvent(const String&);
  9306. bool Load(File);
  9307. bool Load(VectorBuffer&);
  9308. bool Load(const String&);
  9309. bool Save(File) const;
  9310. bool Save(VectorBuffer&) const;
  9311. bool Save(const String&) const;
  9312. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9313. // Properties:
  9314. /* readonly */
  9315. String category;
  9316. /* readonly */
  9317. uint memoryUse;
  9318. String name;
  9319. /* readonly */
  9320. int refs;
  9321. /* readonly */
  9322. StringHash type;
  9323. /* readonly */
  9324. String typeName;
  9325. /* readonly */
  9326. uint useTimer;
  9327. /* readonly */
  9328. int weakRefs;
  9329. };
  9330. class ResourceCache
  9331. {
  9332. public:
  9333. // Methods:
  9334. bool AddManualResource(Resource);
  9335. bool AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  9336. bool AddPackageFile(const String&, uint = M_MAX_UNSIGNED);
  9337. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  9338. bool BackgroundLoadResource(const String&, const String&, bool = true);
  9339. bool Exists(const String&) const;
  9340. Resource GetExistingResource(StringHash, const String&);
  9341. Resource GetExistingResource(const String&, const String&);
  9342. File GetFile(const String&);
  9343. String GetPreferredResourceDir(const String&) const;
  9344. Resource GetResource(StringHash, const String&, bool = true);
  9345. Resource GetResource(const String&, const String&, bool = true);
  9346. String GetResourceFileName(const String&) const;
  9347. Array<Resource> GetResources(StringHash);
  9348. Array<Resource> GetResources(const String&);
  9349. bool HasSubscribedToEvent(Object, const String&);
  9350. bool HasSubscribedToEvent(const String&);
  9351. void ReleaseAllResources(bool = false);
  9352. void ReleaseResource(const String&, const String&, bool = false);
  9353. void ReleaseResources(StringHash, bool = false);
  9354. void ReleaseResources(const String&, bool = false);
  9355. void ReleaseResources(const String&, const String&, bool = false);
  9356. bool ReloadResource(Resource);
  9357. void ReloadResourceWithDependencies(const String&);
  9358. void RemovePackageFile(PackageFile, bool = true, bool = false);
  9359. void RemovePackageFile(const String&, bool = true, bool = false);
  9360. void RemoveResourceDir(const String&);
  9361. String SanitateResourceDirName(const String&) const;
  9362. String SanitateResourceName(const String&) const;
  9363. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9364. // Properties:
  9365. bool autoReloadResources;
  9366. /* readonly */
  9367. String category;
  9368. int finishBackgroundResourcesMs;
  9369. Array<uint64> memoryBudget;
  9370. /* readonly */
  9371. Array<uint64> memoryUse;
  9372. /* readonly */
  9373. uint numBackgroundLoadResources;
  9374. /* readonly */
  9375. Array<PackageFile> packageFiles;
  9376. /* readonly */
  9377. int refs;
  9378. /* readonly */
  9379. Array<String> resourceDirs;
  9380. bool returnFailedResources;
  9381. /* readonly */
  9382. bool seachPackagesFirst;
  9383. /* writeonly */
  9384. bool searchPackagesFirst;
  9385. /* readonly */
  9386. uint64 totalMemoryUse;
  9387. /* readonly */
  9388. StringHash type;
  9389. /* readonly */
  9390. String typeName;
  9391. /* readonly */
  9392. int weakRefs;
  9393. };
  9394. class ResourceRef
  9395. {
  9396. public:
  9397. ~ResourceRef();
  9398. ResourceRef();
  9399. ResourceRef(const ResourceRef&in);
  9400. ResourceRef(const String&in, const String&in);
  9401. // Properties:
  9402. String name;
  9403. StringHash type;
  9404. };
  9405. class ResourceRefList
  9406. {
  9407. public:
  9408. ~ResourceRefList();
  9409. ResourceRefList();
  9410. ResourceRefList(const ResourceRefList&in);
  9411. // Methods:
  9412. void Resize(uint);
  9413. // Properties:
  9414. /* readonly */
  9415. bool empty;
  9416. /* readonly */
  9417. uint length;
  9418. Array<String> names;
  9419. StringHash type;
  9420. };
  9421. class RibbonTrail
  9422. {
  9423. public:
  9424. // Methods:
  9425. void ApplyAttributes();
  9426. void Commit();
  9427. void DrawDebugGeometry(DebugRenderer, bool);
  9428. Variant GetAttribute(const String&) const;
  9429. ValueAnimation GetAttributeAnimation(const String&) const;
  9430. float GetAttributeAnimationSpeed(const String&) const;
  9431. float GetAttributeAnimationTime(const String&) const;
  9432. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9433. Variant GetAttributeDefault(const String&) const;
  9434. bool GetInterceptNetworkUpdate(const String&) const;
  9435. bool HasSubscribedToEvent(Object, const String&);
  9436. bool HasSubscribedToEvent(const String&);
  9437. bool IsInView(Camera) const;
  9438. bool Load(File);
  9439. bool Load(VectorBuffer&);
  9440. bool LoadJSON(const JSONValue&);
  9441. bool LoadXML(const XMLElement&);
  9442. void MarkNetworkUpdate() const;
  9443. void Remove();
  9444. void RemoveAttributeAnimation(const String&);
  9445. void RemoveInstanceDefault();
  9446. void RemoveObjectAnimation();
  9447. void ResetToDefault();
  9448. bool Save(File) const;
  9449. bool Save(VectorBuffer&) const;
  9450. bool SaveJSON(JSONValue&) const;
  9451. bool SaveXML(XMLElement&) const;
  9452. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9453. void SetAnimationTime(float);
  9454. bool SetAttribute(const String&, const Variant&);
  9455. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9456. void SetAttributeAnimationSpeed(const String&, float);
  9457. void SetAttributeAnimationTime(const String&, float);
  9458. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9459. void SetInterceptNetworkUpdate(const String&, bool);
  9460. // Properties:
  9461. bool animationEnabled;
  9462. float animationLodBias;
  9463. /* readonly */
  9464. Array<Variant> attributeDefaults;
  9465. /* readonly */
  9466. Array<AttributeInfo> attributeInfos;
  9467. Array<Variant> attributes;
  9468. Vector3 baseVelocity;
  9469. /* readonly */
  9470. BoundingBox boundingBox;
  9471. bool castShadows;
  9472. /* readonly */
  9473. String category;
  9474. float drawDistance;
  9475. bool emitting;
  9476. bool enabled;
  9477. /* readonly */
  9478. bool enabledEffective;
  9479. Color endColor;
  9480. float endScale;
  9481. /* readonly */
  9482. uint id;
  9483. /* readonly */
  9484. bool inView;
  9485. float lifetime;
  9486. uint lightMask;
  9487. float lodBias;
  9488. Material material;
  9489. uint maxLights;
  9490. /* readonly */
  9491. Node node;
  9492. /* readonly */
  9493. uint numAttributes;
  9494. ObjectAnimation objectAnimation;
  9495. bool occludee;
  9496. bool occluder;
  9497. /* readonly */
  9498. int refs;
  9499. /* readonly */
  9500. bool replicated;
  9501. float shadowDistance;
  9502. uint shadowMask;
  9503. bool sorted;
  9504. Color startColor;
  9505. float startScale;
  9506. uint tailColumn;
  9507. bool temporary;
  9508. TrailType trailType;
  9509. /* readonly */
  9510. StringHash type;
  9511. /* readonly */
  9512. String typeName;
  9513. bool updateInvisible;
  9514. float vertexDistance;
  9515. uint viewMask;
  9516. /* readonly */
  9517. int weakRefs;
  9518. float width;
  9519. /* readonly */
  9520. BoundingBox worldBoundingBox;
  9521. /* readonly */
  9522. Zone zone;
  9523. uint zoneMask;
  9524. };
  9525. class RigidBody
  9526. {
  9527. public:
  9528. // Methods:
  9529. void Activate();
  9530. void ApplyAttributes();
  9531. void ApplyForce(const Vector3&);
  9532. void ApplyForce(const Vector3&, const Vector3&);
  9533. void ApplyImpulse(const Vector3&);
  9534. void ApplyImpulse(const Vector3&, const Vector3&);
  9535. void ApplyTorque(const Vector3&);
  9536. void ApplyTorqueImpulse(const Vector3&);
  9537. void DisableMassUpdate();
  9538. void DrawDebugGeometry(DebugRenderer, bool);
  9539. void EnableMassUpdate();
  9540. Variant GetAttribute(const String&) const;
  9541. ValueAnimation GetAttributeAnimation(const String&) const;
  9542. float GetAttributeAnimationSpeed(const String&) const;
  9543. float GetAttributeAnimationTime(const String&) const;
  9544. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9545. Variant GetAttributeDefault(const String&) const;
  9546. bool GetInterceptNetworkUpdate(const String&) const;
  9547. Vector3 GetVelocityAtPoint(const Vector3&) const;
  9548. bool HasSubscribedToEvent(Object, const String&);
  9549. bool HasSubscribedToEvent(const String&);
  9550. bool Load(File);
  9551. bool Load(VectorBuffer&);
  9552. bool LoadJSON(const JSONValue&);
  9553. bool LoadXML(const XMLElement&);
  9554. void MarkNetworkUpdate() const;
  9555. void ReAddBodyToWorld();
  9556. void Remove();
  9557. void RemoveAttributeAnimation(const String&);
  9558. void RemoveInstanceDefault();
  9559. void RemoveObjectAnimation();
  9560. void ResetForces();
  9561. void ResetToDefault();
  9562. bool Save(File) const;
  9563. bool Save(VectorBuffer&) const;
  9564. bool SaveJSON(JSONValue&) const;
  9565. bool SaveXML(XMLElement&) const;
  9566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9567. void SetAnimationTime(float);
  9568. bool SetAttribute(const String&, const Variant&);
  9569. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9570. void SetAttributeAnimationSpeed(const String&, float);
  9571. void SetAttributeAnimationTime(const String&, float);
  9572. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9573. void SetCollisionLayerAndMask(uint, uint);
  9574. void SetInterceptNetworkUpdate(const String&, bool);
  9575. void SetTransform(const Vector3&, const Quaternion&);
  9576. // Properties:
  9577. /* readonly */
  9578. bool active;
  9579. float angularDamping;
  9580. Vector3 angularFactor;
  9581. float angularRestThreshold;
  9582. Vector3 angularVelocity;
  9583. bool animationEnabled;
  9584. Vector3 anisotropicFriction;
  9585. /* readonly */
  9586. Array<Variant> attributeDefaults;
  9587. /* readonly */
  9588. Array<AttributeInfo> attributeInfos;
  9589. Array<Variant> attributes;
  9590. /* readonly */
  9591. String category;
  9592. float ccdMotionThreshold;
  9593. float ccdRadius;
  9594. /* readonly */
  9595. Vector3 centerOfMass;
  9596. /* readonly */
  9597. Array<RigidBody> collidingBodies;
  9598. CollisionEventMode collisionEventMode;
  9599. uint collisionLayer;
  9600. uint collisionMask;
  9601. float contactProcessingThreshold;
  9602. bool enabled;
  9603. /* readonly */
  9604. bool enabledEffective;
  9605. float friction;
  9606. Vector3 gravityOverride;
  9607. /* readonly */
  9608. uint id;
  9609. bool kinematic;
  9610. float linearDamping;
  9611. Vector3 linearFactor;
  9612. float linearRestThreshold;
  9613. Vector3 linearVelocity;
  9614. float mass;
  9615. /* readonly */
  9616. Node node;
  9617. /* readonly */
  9618. uint numAttributes;
  9619. ObjectAnimation objectAnimation;
  9620. Vector3 position;
  9621. /* readonly */
  9622. int refs;
  9623. /* readonly */
  9624. bool replicated;
  9625. float restitution;
  9626. float rollingFriction;
  9627. Quaternion rotation;
  9628. bool temporary;
  9629. bool trigger;
  9630. /* readonly */
  9631. StringHash type;
  9632. /* readonly */
  9633. String typeName;
  9634. bool useGravity;
  9635. /* readonly */
  9636. int weakRefs;
  9637. };
  9638. class RigidBody2D
  9639. {
  9640. public:
  9641. // Methods:
  9642. void ApplyAngularImpulse(float, bool);
  9643. void ApplyAttributes();
  9644. void ApplyForce(const Vector2&, const Vector2&, bool);
  9645. void ApplyForceToCenter(const Vector2&, bool);
  9646. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  9647. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  9648. void ApplyTorque(float, bool);
  9649. void DrawDebugGeometry(DebugRenderer, bool);
  9650. Variant GetAttribute(const String&) const;
  9651. ValueAnimation GetAttributeAnimation(const String&) const;
  9652. float GetAttributeAnimationSpeed(const String&) const;
  9653. float GetAttributeAnimationTime(const String&) const;
  9654. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9655. Variant GetAttributeDefault(const String&) const;
  9656. bool GetInterceptNetworkUpdate(const String&) const;
  9657. bool HasSubscribedToEvent(Object, const String&);
  9658. bool HasSubscribedToEvent(const String&);
  9659. bool Load(File);
  9660. bool Load(VectorBuffer&);
  9661. bool LoadJSON(const JSONValue&);
  9662. bool LoadXML(const XMLElement&);
  9663. void MarkNetworkUpdate() const;
  9664. void Remove();
  9665. void RemoveAttributeAnimation(const String&);
  9666. void RemoveInstanceDefault();
  9667. void RemoveObjectAnimation();
  9668. void ResetToDefault();
  9669. bool Save(File) const;
  9670. bool Save(VectorBuffer&) const;
  9671. bool SaveJSON(JSONValue&) const;
  9672. bool SaveXML(XMLElement&) const;
  9673. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9674. void SetAnimationTime(float);
  9675. bool SetAttribute(const String&, const Variant&);
  9676. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9677. void SetAttributeAnimationSpeed(const String&, float);
  9678. void SetAttributeAnimationTime(const String&, float);
  9679. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9680. void SetInterceptNetworkUpdate(const String&, bool);
  9681. // Properties:
  9682. bool allowSleep;
  9683. float angularDamping;
  9684. bool animationEnabled;
  9685. /* readonly */
  9686. Array<Variant> attributeDefaults;
  9687. /* readonly */
  9688. Array<AttributeInfo> attributeInfos;
  9689. Array<Variant> attributes;
  9690. bool awake;
  9691. BodyType2D bodyType;
  9692. bool bullet;
  9693. /* readonly */
  9694. String category;
  9695. bool enabled;
  9696. /* readonly */
  9697. bool enabledEffective;
  9698. bool fixedRotation;
  9699. float gravityScale;
  9700. /* readonly */
  9701. uint id;
  9702. float inertia;
  9703. float linearDamping;
  9704. Vector2 linearVelocity;
  9705. float mass;
  9706. Vector2 massCenter;
  9707. /* readonly */
  9708. Node node;
  9709. /* readonly */
  9710. uint numAttributes;
  9711. ObjectAnimation objectAnimation;
  9712. /* readonly */
  9713. int refs;
  9714. /* readonly */
  9715. bool replicated;
  9716. bool temporary;
  9717. /* readonly */
  9718. StringHash type;
  9719. /* readonly */
  9720. String typeName;
  9721. bool useFixtureMass;
  9722. /* readonly */
  9723. int weakRefs;
  9724. };
  9725. class Scene
  9726. {
  9727. public:
  9728. Scene();
  9729. Scene(const String&in);
  9730. // Methods:
  9731. void AddChild(Node, uint = M_MAX_UNSIGNED);
  9732. void AddRequiredPackageFile(PackageFile);
  9733. void AddTag(const String&);
  9734. void AddTags(const String&, int8 = ';');
  9735. void ApplyAttributes();
  9736. void Clear(bool = true, bool = true);
  9737. void ClearRequiredPackageFiles();
  9738. Component CloneComponent(Component, CreateMode, uint = 0);
  9739. Component CloneComponent(Component, uint = 0);
  9740. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0, bool = false);
  9741. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9742. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  9743. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  9744. Node CreateTemporaryChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  9745. Variant GetAttribute(const String&) const;
  9746. ValueAnimation GetAttributeAnimation(const String&) const;
  9747. float GetAttributeAnimationSpeed(const String&) const;
  9748. float GetAttributeAnimationTime(const String&) const;
  9749. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9750. Variant GetAttributeDefault(const String&) const;
  9751. Node GetChild(const String&, bool = false) const;
  9752. Array<Node> GetChildren(bool = false) const;
  9753. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  9754. Array<Node> GetChildrenWithScript(bool = false) const;
  9755. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  9756. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  9757. Component GetComponent(const String&, bool = false) const;
  9758. Component GetComponent(uint) const;
  9759. Array<Component> GetComponents() const;
  9760. Array<Component> GetComponents(const String&, bool = false) const;
  9761. bool GetInterceptNetworkUpdate(const String&) const;
  9762. Node GetNode(uint) const;
  9763. Array<Node> GetNodesWithTag(const String&) const;
  9764. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  9765. Component GetParentComponent(const String&, bool = false) const;
  9766. ScriptObject GetScriptObject() const;
  9767. ScriptObject GetScriptObject(const String&) const;
  9768. bool HasComponent(const String&) const;
  9769. bool HasSubscribedToEvent(Object, const String&);
  9770. bool HasSubscribedToEvent(const String&);
  9771. bool HasTag(const String&);
  9772. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9773. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9774. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9775. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9776. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9777. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9778. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9779. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9780. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9781. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  9782. bool IsChildOf(Node) const;
  9783. bool Load(File);
  9784. bool Load(VectorBuffer&);
  9785. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9786. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  9787. bool LoadJSON(File);
  9788. bool LoadJSON(VectorBuffer&);
  9789. bool LoadJSON(const JSONValue&);
  9790. bool LoadXML(File);
  9791. bool LoadXML(VectorBuffer&);
  9792. bool LoadXML(const XMLElement&);
  9793. Vector3 LocalToWorld(const Vector3&) const;
  9794. Vector3 LocalToWorld(const Vector4&) const;
  9795. Vector2 LocalToWorld2D(const Vector2&) const;
  9796. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  9797. void MarkNetworkUpdate() const;
  9798. void Pitch(float, TransformSpace = TS_LOCAL);
  9799. void RegisterVar(const String&);
  9800. void Remove();
  9801. void RemoveAllChildren();
  9802. void RemoveAllComponents();
  9803. void RemoveAllTags();
  9804. void RemoveAttributeAnimation(const String&);
  9805. void RemoveChild(Node);
  9806. void RemoveChildren(bool, bool, bool);
  9807. void RemoveComponent(Component);
  9808. void RemoveComponent(const String&);
  9809. void RemoveComponents(bool, bool);
  9810. void RemoveComponents(const String&);
  9811. void RemoveInstanceDefault();
  9812. void RemoveObjectAnimation();
  9813. bool RemoveTag(const String&);
  9814. void ReorderComponent(Component, uint);
  9815. void ResetToDefault();
  9816. void Roll(float, TransformSpace = TS_LOCAL);
  9817. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  9818. void Rotate2D(float, TransformSpace = TS_LOCAL);
  9819. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  9820. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  9821. bool Save(File) const;
  9822. bool Save(VectorBuffer&) const;
  9823. bool SaveJSON(File, const String& = "\t");
  9824. bool SaveJSON(JSONValue&) const;
  9825. bool SaveJSON(VectorBuffer&, const String& = "\t");
  9826. bool SaveXML(File, const String& = "\t");
  9827. bool SaveXML(VectorBuffer&, const String& = "\t");
  9828. bool SaveXML(XMLElement&) const;
  9829. void Scale(const Vector3&);
  9830. void Scale(float);
  9831. void Scale2D(const Vector2&);
  9832. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9833. void SetAnimationTime(float);
  9834. bool SetAttribute(const String&, const Variant&);
  9835. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9836. void SetAttributeAnimationSpeed(const String&, float);
  9837. void SetAttributeAnimationTime(const String&, float);
  9838. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9839. void SetInterceptNetworkUpdate(const String&, bool);
  9840. void SetPosition2D(float, float);
  9841. void SetScale(float);
  9842. void SetScale2D(float, float);
  9843. void SetTransform(const Matrix3x4&);
  9844. void SetTransform(const Vector3&, const Quaternion&);
  9845. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  9846. void SetTransform(const Vector3&, const Quaternion&, float);
  9847. void SetTransform2D(const Vector2&, float);
  9848. void SetTransform2D(const Vector2&, float, const Vector2&);
  9849. void SetTransform2D(const Vector2&, float, float);
  9850. void SetWorldTransform(const Vector3&, const Quaternion&);
  9851. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  9852. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  9853. void SetWorldTransform2D(const Vector2&, float);
  9854. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  9855. void SetWorldTransform2D(const Vector2&, float, float);
  9856. void StopAsyncLoading();
  9857. const String& GetVarName(StringHash) const;
  9858. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  9859. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  9860. void UnregisterAllVars(const String&);
  9861. void UnregisterVar(const String&);
  9862. void Update(float);
  9863. Vector3 WorldToLocal(const Vector3&) const;
  9864. Vector3 WorldToLocal(const Vector4&) const;
  9865. Vector2 WorldToLocal2D(const Vector2&) const;
  9866. void Yaw(float, TransformSpace = TS_LOCAL);
  9867. // Properties:
  9868. /* readonly */
  9869. Array<Node> allChildrenByName;
  9870. bool animationEnabled;
  9871. /* readonly */
  9872. LoadMode asyncLoadMode;
  9873. /* readonly */
  9874. bool asyncLoading;
  9875. int asyncLoadingMs;
  9876. /* readonly */
  9877. float asyncProgress;
  9878. /* readonly */
  9879. Array<Variant> attributeDefaults;
  9880. /* readonly */
  9881. Array<AttributeInfo> attributeInfos;
  9882. Array<Variant> attributes;
  9883. /* readonly */
  9884. String category;
  9885. /* readonly */
  9886. uint checksum;
  9887. /* readonly */
  9888. Array<Node> children;
  9889. /* readonly */
  9890. Array<Node> childrenByName;
  9891. /* readonly */
  9892. Array<Component> components;
  9893. /* readonly */
  9894. DebugRenderer debugRenderer;
  9895. Vector3 direction;
  9896. float elapsedTime;
  9897. /* readonly */
  9898. String fileName;
  9899. uint id;
  9900. String name;
  9901. /* readonly */
  9902. uint numAllChildren;
  9903. /* readonly */
  9904. uint numAttributes;
  9905. /* readonly */
  9906. uint numChildren;
  9907. /* readonly */
  9908. uint numComponents;
  9909. ObjectAnimation objectAnimation;
  9910. /* readonly */
  9911. Octree octree;
  9912. Node parent;
  9913. /* readonly */
  9914. PhysicsWorld physicsWorld;
  9915. /* readonly */
  9916. PhysicsWorld2D physicsWorld2D;
  9917. Vector3 position;
  9918. Vector2 position2D;
  9919. /* readonly */
  9920. int refs;
  9921. /* readonly */
  9922. bool replicated;
  9923. /* readonly */
  9924. Array<PackageFile> requiredPackageFiles;
  9925. /* readonly */
  9926. Vector3 right;
  9927. Quaternion rotation;
  9928. float rotation2D;
  9929. Vector3 scale;
  9930. Vector2 scale2D;
  9931. /* readonly */
  9932. ScriptObject scriptObject;
  9933. /* readonly */
  9934. Vector3 signedWorldScale;
  9935. float smoothingConstant;
  9936. float snapThreshold;
  9937. /* readonly */
  9938. Array<String> tags;
  9939. bool temporary;
  9940. float timeScale;
  9941. /* readonly */
  9942. Matrix3x4 transform;
  9943. /* readonly */
  9944. StringHash type;
  9945. /* readonly */
  9946. String typeName;
  9947. /* readonly */
  9948. Vector3 up;
  9949. bool updateEnabled;
  9950. /* readonly */
  9951. VariantMap vars;
  9952. /* readonly */
  9953. int weakRefs;
  9954. Vector3 worldDirection;
  9955. Vector3 worldPosition;
  9956. Vector2 worldPosition2D;
  9957. /* readonly */
  9958. Vector3 worldRight;
  9959. Quaternion worldRotation;
  9960. float worldRotation2D;
  9961. Vector3 worldScale;
  9962. Vector2 worldScale2D;
  9963. /* readonly */
  9964. Matrix3x4 worldTransform;
  9965. /* readonly */
  9966. Vector3 worldUp;
  9967. };
  9968. class Script
  9969. {
  9970. public:
  9971. // Methods:
  9972. void DumpAPI(DumpMode = DOXYGEN, const String& = String ( ));
  9973. bool Execute(const String&);
  9974. bool HasSubscribedToEvent(Object, const String&);
  9975. bool HasSubscribedToEvent(const String&);
  9976. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9977. // Properties:
  9978. /* readonly */
  9979. String category;
  9980. Scene defaultScene;
  9981. ScriptFile defaultScriptFile;
  9982. bool executeConsoleCommands;
  9983. /* readonly */
  9984. int refs;
  9985. /* readonly */
  9986. StringHash type;
  9987. /* readonly */
  9988. String typeName;
  9989. /* readonly */
  9990. int weakRefs;
  9991. };
  9992. class ScriptFile
  9993. {
  9994. public:
  9995. ScriptFile();
  9996. ScriptFile(const String&in);
  9997. // Methods:
  9998. void ClearDelayedExecute(const String& = String ( ));
  9999. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  10000. bool Execute(const String&, const Array<Variant> = null);
  10001. bool HasSubscribedToEvent(Object, const String&);
  10002. bool HasSubscribedToEvent(const String&);
  10003. bool Load(File);
  10004. bool Load(VectorBuffer&);
  10005. bool Load(const String&);
  10006. bool Save(File) const;
  10007. bool Save(VectorBuffer&) const;
  10008. bool Save(const String&) const;
  10009. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10010. // Properties:
  10011. /* readonly */
  10012. String category;
  10013. /* readonly */
  10014. bool compiled;
  10015. /* readonly */
  10016. uint memoryUse;
  10017. String name;
  10018. /* readonly */
  10019. int refs;
  10020. /* readonly */
  10021. StringHash type;
  10022. /* readonly */
  10023. String typeName;
  10024. /* readonly */
  10025. uint useTimer;
  10026. /* readonly */
  10027. int weakRefs;
  10028. };
  10029. class ScriptInstance
  10030. {
  10031. public:
  10032. // Methods:
  10033. void ApplyAttributes();
  10034. void ClearDelayedExecute(const String& = String ( ));
  10035. bool CreateObject(ScriptFile, const String&);
  10036. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  10037. void DrawDebugGeometry(DebugRenderer, bool);
  10038. bool Execute(const String&, const Array<Variant> = null);
  10039. Variant GetAttribute(const String&) const;
  10040. ValueAnimation GetAttributeAnimation(const String&) const;
  10041. float GetAttributeAnimationSpeed(const String&) const;
  10042. float GetAttributeAnimationTime(const String&) const;
  10043. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10044. Variant GetAttributeDefault(const String&) const;
  10045. bool GetInterceptNetworkUpdate(const String&) const;
  10046. bool HasMethod(const String&) const;
  10047. bool HasSubscribedToEvent(Object, const String&);
  10048. bool HasSubscribedToEvent(const String&);
  10049. bool IsA(const String&) const;
  10050. bool Load(File);
  10051. bool Load(VectorBuffer&);
  10052. bool LoadJSON(const JSONValue&);
  10053. bool LoadXML(const XMLElement&);
  10054. void MarkNetworkUpdate() const;
  10055. void Remove();
  10056. void RemoveAttributeAnimation(const String&);
  10057. void RemoveInstanceDefault();
  10058. void RemoveObjectAnimation();
  10059. void ResetToDefault();
  10060. bool Save(File) const;
  10061. bool Save(VectorBuffer&) const;
  10062. bool SaveJSON(JSONValue&) const;
  10063. bool SaveXML(XMLElement&) const;
  10064. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10065. void SetAnimationTime(float);
  10066. bool SetAttribute(const String&, const Variant&);
  10067. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10068. void SetAttributeAnimationSpeed(const String&, float);
  10069. void SetAttributeAnimationTime(const String&, float);
  10070. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10071. void SetInterceptNetworkUpdate(const String&, bool);
  10072. // Properties:
  10073. bool animationEnabled;
  10074. /* readonly */
  10075. Array<Variant> attributeDefaults;
  10076. /* readonly */
  10077. Array<AttributeInfo> attributeInfos;
  10078. Array<Variant> attributes;
  10079. /* readonly */
  10080. String category;
  10081. String className;
  10082. bool enabled;
  10083. /* readonly */
  10084. bool enabledEffective;
  10085. /* readonly */
  10086. uint id;
  10087. /* readonly */
  10088. Node node;
  10089. /* readonly */
  10090. uint numAttributes;
  10091. ObjectAnimation objectAnimation;
  10092. /* readonly */
  10093. int refs;
  10094. /* readonly */
  10095. bool replicated;
  10096. ScriptFile scriptFile;
  10097. /* readonly */
  10098. ScriptObject scriptObject;
  10099. bool temporary;
  10100. /* readonly */
  10101. StringHash type;
  10102. /* readonly */
  10103. String typeName;
  10104. /* readonly */
  10105. int weakRefs;
  10106. };
  10107. class ScriptObject
  10108. {
  10109. public:
  10110. };
  10111. class ScrollBar
  10112. {
  10113. public:
  10114. ScrollBar();
  10115. ScrollBar(const String&in);
  10116. // Methods:
  10117. void AddChild(UIElement);
  10118. void AddTag(const String&);
  10119. void AddTags(const String&, int8 = ';');
  10120. void ApplyAttributes();
  10121. void BringToFront();
  10122. void ChangeValue(float);
  10123. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10124. void DisableLayoutUpdate();
  10125. IntVector2 ElementToScreen(const IntVector2&);
  10126. void EnableLayoutUpdate();
  10127. uint FindChild(UIElement) const;
  10128. Variant GetAttribute(const String&) const;
  10129. ValueAnimation GetAttributeAnimation(const String&) const;
  10130. float GetAttributeAnimationSpeed(const String&) const;
  10131. float GetAttributeAnimationTime(const String&) const;
  10132. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10133. Variant GetAttributeDefault(const String&) const;
  10134. UIElement GetChild(const String&, bool = false) const;
  10135. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10136. Array<UIElement> GetChildren(bool = false) const;
  10137. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10138. UIElement GetElementEventSender() const;
  10139. bool GetInterceptNetworkUpdate(const String&) const;
  10140. uint GetNumChildren(bool) const;
  10141. bool HasSubscribedToEvent(Object, const String&);
  10142. bool HasSubscribedToEvent(const String&);
  10143. bool HasTag(const String&) const;
  10144. void InsertChild(uint, UIElement);
  10145. bool IsChildOf(UIElement) const;
  10146. bool IsInside(IntVector2, bool);
  10147. bool IsInsideCombined(IntVector2, bool);
  10148. bool Load(File);
  10149. bool Load(VectorBuffer&);
  10150. UIElement LoadChildXML(XMLFile, XMLFile);
  10151. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10152. bool LoadJSON(const JSONValue&);
  10153. bool LoadXML(File);
  10154. bool LoadXML(VectorBuffer&);
  10155. bool LoadXML(XMLFile, XMLFile);
  10156. bool LoadXML(const XMLElement&, XMLFile);
  10157. bool LoadXML(const XMLElement&);
  10158. void MarkNetworkUpdate() const;
  10159. void Remove();
  10160. void RemoveAllChildren();
  10161. void RemoveAllTags();
  10162. void RemoveAttributeAnimation(const String&);
  10163. void RemoveChild(UIElement, uint = 0);
  10164. void RemoveChild(uint);
  10165. void RemoveInstanceDefault();
  10166. void RemoveObjectAnimation();
  10167. bool RemoveTag(const String&);
  10168. void ResetDeepEnabled();
  10169. void ResetToDefault();
  10170. bool Save(File) const;
  10171. bool Save(VectorBuffer&) const;
  10172. bool SaveJSON(JSONValue&) const;
  10173. bool SaveXML(File, const String& = "\t");
  10174. bool SaveXML(VectorBuffer&, const String& = "\t");
  10175. bool SaveXML(XMLElement&) const;
  10176. IntVector2 ScreenToElement(const IntVector2&);
  10177. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10178. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10179. void SetAnimationTime(float);
  10180. bool SetAttribute(const String&, const Variant&);
  10181. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10182. void SetAttributeAnimationSpeed(const String&, float);
  10183. void SetAttributeAnimationTime(const String&, float);
  10184. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10185. void SetDeepEnabled(bool);
  10186. void SetEnabledRecursive(bool);
  10187. void SetFixedHeight(int);
  10188. void SetFixedSize(int, int);
  10189. void SetFixedWidth(int);
  10190. void SetInterceptNetworkUpdate(const String&, bool);
  10191. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10192. void SetMaxAnchor(float, float);
  10193. void SetMaxSize(int, int);
  10194. void SetMinAnchor(float, float);
  10195. void SetMinSize(int, int);
  10196. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10197. void SetPivot(float, float);
  10198. void SetPosition(int, int);
  10199. void SetSize(int, int);
  10200. bool SetStyle(const String&, XMLFile = null);
  10201. bool SetStyle(const XMLElement&);
  10202. bool SetStyleAuto(XMLFile = null);
  10203. void StepBack();
  10204. void StepForward();
  10205. void UpdateLayout();
  10206. const Variant& GetVar(const StringHash&);
  10207. // Properties:
  10208. bool animationEnabled;
  10209. /* readonly */
  10210. Array<Variant> attributeDefaults;
  10211. /* readonly */
  10212. Array<AttributeInfo> attributeInfos;
  10213. Array<Variant> attributes;
  10214. /* readonly */
  10215. Button backButton;
  10216. bool bringToBack;
  10217. bool bringToFront;
  10218. /* readonly */
  10219. String category;
  10220. /* readonly */
  10221. IntVector2 childOffset;
  10222. /* readonly */
  10223. Array<UIElement> children;
  10224. IntRect clipBorder;
  10225. bool clipChildren;
  10226. /* writeonly */
  10227. Color color;
  10228. /* readonly */
  10229. bool colorGradient;
  10230. Array<Color> colors;
  10231. /* readonly */
  10232. IntRect combinedScreenRect;
  10233. XMLFile defaultStyle;
  10234. /* readonly */
  10235. float derivedOpacity;
  10236. /* readonly */
  10237. uint dragButtonCombo;
  10238. /* readonly */
  10239. int dragButtonCount;
  10240. uint dragDropMode;
  10241. bool editable;
  10242. /* readonly */
  10243. float effectiveScrollStep;
  10244. bool elementEventSender;
  10245. bool enableAnchor;
  10246. bool enabled;
  10247. /* readonly */
  10248. bool enabledSelf;
  10249. /* readonly */
  10250. bool fixedHeight;
  10251. /* readonly */
  10252. bool fixedSize;
  10253. /* readonly */
  10254. bool fixedWidth;
  10255. bool focus;
  10256. FocusMode focusMode;
  10257. /* readonly */
  10258. Button forwardButton;
  10259. int height;
  10260. HorizontalAlignment horizontalAlignment;
  10261. /* readonly */
  10262. bool hovering;
  10263. int indent;
  10264. int indentSpacing;
  10265. /* readonly */
  10266. int indentWidth;
  10267. bool internal;
  10268. IntRect layoutBorder;
  10269. Vector2 layoutFlexScale;
  10270. LayoutMode layoutMode;
  10271. int layoutSpacing;
  10272. Vector2 maxAnchor;
  10273. int maxHeight;
  10274. IntVector2 maxOffset;
  10275. IntVector2 maxSize;
  10276. int maxWidth;
  10277. Vector2 minAnchor;
  10278. int minHeight;
  10279. IntVector2 minOffset;
  10280. IntVector2 minSize;
  10281. int minWidth;
  10282. String name;
  10283. /* readonly */
  10284. uint numAllChildren;
  10285. /* readonly */
  10286. uint numAttributes;
  10287. /* readonly */
  10288. uint numChildren;
  10289. ObjectAnimation objectAnimation;
  10290. float opacity;
  10291. Orientation orientation;
  10292. UIElement parent;
  10293. Vector2 pivot;
  10294. IntVector2 position;
  10295. int priority;
  10296. float range;
  10297. /* readonly */
  10298. int refs;
  10299. /* readonly */
  10300. UIElement root;
  10301. /* readonly */
  10302. IntVector2 screenPosition;
  10303. float scrollStep;
  10304. bool selected;
  10305. IntVector2 size;
  10306. /* readonly */
  10307. Slider slider;
  10308. bool sortChildren;
  10309. float stepFactor;
  10310. String style;
  10311. /* readonly */
  10312. Array<String> tags;
  10313. bool temporary;
  10314. TraversalMode traversalMode;
  10315. /* readonly */
  10316. StringHash type;
  10317. /* readonly */
  10318. String typeName;
  10319. bool useDerivedOpacity;
  10320. float value;
  10321. /* readonly */
  10322. VariantMap vars;
  10323. VerticalAlignment verticalAlignment;
  10324. bool visible;
  10325. /* readonly */
  10326. bool visibleEffective;
  10327. /* readonly */
  10328. int weakRefs;
  10329. int width;
  10330. };
  10331. class ScrollView
  10332. {
  10333. public:
  10334. ScrollView();
  10335. ScrollView(const String&in);
  10336. // Methods:
  10337. void AddChild(UIElement);
  10338. void AddTag(const String&);
  10339. void AddTags(const String&, int8 = ';');
  10340. void ApplyAttributes();
  10341. void BringToFront();
  10342. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10343. void DisableLayoutUpdate();
  10344. IntVector2 ElementToScreen(const IntVector2&);
  10345. void EnableLayoutUpdate();
  10346. uint FindChild(UIElement) const;
  10347. Variant GetAttribute(const String&) const;
  10348. ValueAnimation GetAttributeAnimation(const String&) const;
  10349. float GetAttributeAnimationSpeed(const String&) const;
  10350. float GetAttributeAnimationTime(const String&) const;
  10351. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10352. Variant GetAttributeDefault(const String&) const;
  10353. UIElement GetChild(const String&, bool = false) const;
  10354. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10355. Array<UIElement> GetChildren(bool = false) const;
  10356. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10357. UIElement GetElementEventSender() const;
  10358. bool GetInterceptNetworkUpdate(const String&) const;
  10359. uint GetNumChildren(bool) const;
  10360. bool HasSubscribedToEvent(Object, const String&);
  10361. bool HasSubscribedToEvent(const String&);
  10362. bool HasTag(const String&) const;
  10363. void InsertChild(uint, UIElement);
  10364. bool IsChildOf(UIElement) const;
  10365. bool IsInside(IntVector2, bool);
  10366. bool IsInsideCombined(IntVector2, bool);
  10367. bool Load(File);
  10368. bool Load(VectorBuffer&);
  10369. UIElement LoadChildXML(XMLFile, XMLFile);
  10370. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10371. bool LoadJSON(const JSONValue&);
  10372. bool LoadXML(File);
  10373. bool LoadXML(VectorBuffer&);
  10374. bool LoadXML(XMLFile, XMLFile);
  10375. bool LoadXML(const XMLElement&, XMLFile);
  10376. bool LoadXML(const XMLElement&);
  10377. void MarkNetworkUpdate() const;
  10378. void Remove();
  10379. void RemoveAllChildren();
  10380. void RemoveAllTags();
  10381. void RemoveAttributeAnimation(const String&);
  10382. void RemoveChild(UIElement, uint = 0);
  10383. void RemoveChild(uint);
  10384. void RemoveInstanceDefault();
  10385. void RemoveObjectAnimation();
  10386. bool RemoveTag(const String&);
  10387. void ResetDeepEnabled();
  10388. void ResetToDefault();
  10389. bool Save(File) const;
  10390. bool Save(VectorBuffer&) const;
  10391. bool SaveJSON(JSONValue&) const;
  10392. bool SaveXML(File, const String& = "\t");
  10393. bool SaveXML(VectorBuffer&, const String& = "\t");
  10394. bool SaveXML(XMLElement&) const;
  10395. IntVector2 ScreenToElement(const IntVector2&);
  10396. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10397. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10398. void SetAnimationTime(float);
  10399. bool SetAttribute(const String&, const Variant&);
  10400. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10401. void SetAttributeAnimationSpeed(const String&, float);
  10402. void SetAttributeAnimationTime(const String&, float);
  10403. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10404. void SetDeepEnabled(bool);
  10405. void SetEnabledRecursive(bool);
  10406. void SetFixedHeight(int);
  10407. void SetFixedSize(int, int);
  10408. void SetFixedWidth(int);
  10409. void SetInterceptNetworkUpdate(const String&, bool);
  10410. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10411. void SetMaxAnchor(float, float);
  10412. void SetMaxSize(int, int);
  10413. void SetMinAnchor(float, float);
  10414. void SetMinSize(int, int);
  10415. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10416. void SetPivot(float, float);
  10417. void SetPosition(int, int);
  10418. void SetScrollBarsVisible(bool, bool);
  10419. void SetSize(int, int);
  10420. bool SetStyle(const String&, XMLFile = null);
  10421. bool SetStyle(const XMLElement&);
  10422. bool SetStyleAuto(XMLFile = null);
  10423. void SetViewPosition(int, int);
  10424. void UpdateLayout();
  10425. const Variant& GetVar(const StringHash&);
  10426. // Properties:
  10427. bool animationEnabled;
  10428. /* readonly */
  10429. Array<Variant> attributeDefaults;
  10430. /* readonly */
  10431. Array<AttributeInfo> attributeInfos;
  10432. Array<Variant> attributes;
  10433. bool autoDisableChildren;
  10434. float autoDisableThreshold;
  10435. bool bringToBack;
  10436. bool bringToFront;
  10437. /* readonly */
  10438. String category;
  10439. /* readonly */
  10440. IntVector2 childOffset;
  10441. /* readonly */
  10442. Array<UIElement> children;
  10443. IntRect clipBorder;
  10444. bool clipChildren;
  10445. /* writeonly */
  10446. Color color;
  10447. /* readonly */
  10448. bool colorGradient;
  10449. Array<Color> colors;
  10450. /* readonly */
  10451. IntRect combinedScreenRect;
  10452. UIElement contentElement;
  10453. XMLFile defaultStyle;
  10454. /* readonly */
  10455. float derivedOpacity;
  10456. /* readonly */
  10457. uint dragButtonCombo;
  10458. /* readonly */
  10459. int dragButtonCount;
  10460. uint dragDropMode;
  10461. bool editable;
  10462. bool elementEventSender;
  10463. bool enableAnchor;
  10464. bool enabled;
  10465. /* readonly */
  10466. bool enabledSelf;
  10467. /* readonly */
  10468. bool fixedHeight;
  10469. /* readonly */
  10470. bool fixedSize;
  10471. /* readonly */
  10472. bool fixedWidth;
  10473. bool focus;
  10474. FocusMode focusMode;
  10475. int height;
  10476. HorizontalAlignment horizontalAlignment;
  10477. /* readonly */
  10478. ScrollBar horizontalScrollBar;
  10479. bool horizontalScrollBarVisible;
  10480. /* readonly */
  10481. bool hovering;
  10482. int indent;
  10483. int indentSpacing;
  10484. /* readonly */
  10485. int indentWidth;
  10486. bool internal;
  10487. IntRect layoutBorder;
  10488. Vector2 layoutFlexScale;
  10489. LayoutMode layoutMode;
  10490. int layoutSpacing;
  10491. Vector2 maxAnchor;
  10492. int maxHeight;
  10493. IntVector2 maxOffset;
  10494. IntVector2 maxSize;
  10495. int maxWidth;
  10496. Vector2 minAnchor;
  10497. int minHeight;
  10498. IntVector2 minOffset;
  10499. IntVector2 minSize;
  10500. int minWidth;
  10501. String name;
  10502. /* readonly */
  10503. uint numAllChildren;
  10504. /* readonly */
  10505. uint numAttributes;
  10506. /* readonly */
  10507. uint numChildren;
  10508. ObjectAnimation objectAnimation;
  10509. float opacity;
  10510. float pageStep;
  10511. UIElement parent;
  10512. Vector2 pivot;
  10513. IntVector2 position;
  10514. int priority;
  10515. /* readonly */
  10516. int refs;
  10517. /* readonly */
  10518. UIElement root;
  10519. /* readonly */
  10520. IntVector2 screenPosition;
  10521. bool scrollBarsAutoVisible;
  10522. float scrollDeceleration;
  10523. /* readonly */
  10524. BorderImage scrollPanel;
  10525. float scrollSnapEpsilon;
  10526. float scrollStep;
  10527. bool selected;
  10528. IntVector2 size;
  10529. bool sortChildren;
  10530. String style;
  10531. /* readonly */
  10532. Array<String> tags;
  10533. bool temporary;
  10534. TraversalMode traversalMode;
  10535. /* readonly */
  10536. StringHash type;
  10537. /* readonly */
  10538. String typeName;
  10539. bool useDerivedOpacity;
  10540. /* readonly */
  10541. VariantMap vars;
  10542. VerticalAlignment verticalAlignment;
  10543. /* readonly */
  10544. ScrollBar verticalScrollBar;
  10545. bool verticalScrollBarVisible;
  10546. IntVector2 viewPosition;
  10547. bool visible;
  10548. /* readonly */
  10549. bool visibleEffective;
  10550. /* readonly */
  10551. int weakRefs;
  10552. int width;
  10553. };
  10554. class Serializable
  10555. {
  10556. public:
  10557. // Methods:
  10558. void ApplyAttributes();
  10559. Variant GetAttribute(const String&) const;
  10560. Variant GetAttributeDefault(const String&) const;
  10561. bool GetInterceptNetworkUpdate(const String&) const;
  10562. bool HasSubscribedToEvent(Object, const String&);
  10563. bool HasSubscribedToEvent(const String&);
  10564. bool Load(File);
  10565. bool Load(VectorBuffer&);
  10566. bool LoadJSON(const JSONValue&);
  10567. bool LoadXML(const XMLElement&);
  10568. void MarkNetworkUpdate() const;
  10569. void RemoveInstanceDefault();
  10570. void ResetToDefault();
  10571. bool Save(File) const;
  10572. bool Save(VectorBuffer&) const;
  10573. bool SaveJSON(JSONValue&) const;
  10574. bool SaveXML(XMLElement&) const;
  10575. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10576. bool SetAttribute(const String&, const Variant&);
  10577. void SetInterceptNetworkUpdate(const String&, bool);
  10578. // Properties:
  10579. /* readonly */
  10580. Array<Variant> attributeDefaults;
  10581. /* readonly */
  10582. Array<AttributeInfo> attributeInfos;
  10583. Array<Variant> attributes;
  10584. /* readonly */
  10585. String category;
  10586. /* readonly */
  10587. uint numAttributes;
  10588. /* readonly */
  10589. int refs;
  10590. bool temporary;
  10591. /* readonly */
  10592. StringHash type;
  10593. /* readonly */
  10594. String typeName;
  10595. /* readonly */
  10596. int weakRefs;
  10597. };
  10598. class Serializer
  10599. {
  10600. public:
  10601. // Methods:
  10602. uint Write(Array<uint8>);
  10603. bool WriteBool(bool);
  10604. bool WriteBoundingBox(const BoundingBox&);
  10605. bool WriteByte(int8);
  10606. bool WriteColor(const Color&);
  10607. bool WriteDouble(double);
  10608. bool WriteFileID(const String&);
  10609. bool WriteFloat(float);
  10610. bool WriteInt(int);
  10611. bool WriteInt64(int64);
  10612. bool WriteIntRect(const IntRect&);
  10613. bool WriteIntVector2(const IntVector2&);
  10614. bool WriteLine(const String&);
  10615. bool WriteMatrix3(const Matrix3&);
  10616. bool WriteMatrix3x4(const Matrix3x4&);
  10617. bool WriteMatrix4(const Matrix4&);
  10618. bool WriteNetID(uint);
  10619. bool WritePackedQuaternion(const Quaternion&);
  10620. bool WritePackedVector3(const Vector3&, float);
  10621. bool WriteQuaternion(const Quaternion&);
  10622. bool WriteShort(int16);
  10623. bool WriteString(const String&);
  10624. bool WriteStringHash(const StringHash&);
  10625. bool WriteUByte(uint8);
  10626. bool WriteUInt(uint);
  10627. bool WriteUInt64(uint64);
  10628. bool WriteUShort(uint16);
  10629. bool WriteVLE(uint);
  10630. bool WriteVariant(const Variant&);
  10631. bool WriteVariantMap(const VariantMap&);
  10632. bool WriteVector2(const Vector2&);
  10633. bool WriteVector3(const Vector3&);
  10634. bool WriteVector4(const Vector4&);
  10635. bool WriteVectorBuffer(const VectorBuffer&);
  10636. };
  10637. class Skeleton
  10638. {
  10639. public:
  10640. // Methods:
  10641. Bone GetBone(const String&) const;
  10642. uint GetBoneIndex(const String&) const;
  10643. Bone GetBoneParent(Bone) const;
  10644. void Reset();
  10645. // Properties:
  10646. /* readonly */
  10647. Array<Bone> bones;
  10648. /* readonly */
  10649. uint numBones;
  10650. /* readonly */
  10651. Bone rootBone;
  10652. };
  10653. class Skybox
  10654. {
  10655. public:
  10656. // Methods:
  10657. void ApplyAttributes();
  10658. void ApplyMaterialList(const String& = String ( ));
  10659. void DrawDebugGeometry(DebugRenderer, bool);
  10660. Variant GetAttribute(const String&) const;
  10661. ValueAnimation GetAttributeAnimation(const String&) const;
  10662. float GetAttributeAnimationSpeed(const String&) const;
  10663. float GetAttributeAnimationTime(const String&) const;
  10664. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10665. Variant GetAttributeDefault(const String&) const;
  10666. bool GetInterceptNetworkUpdate(const String&) const;
  10667. bool HasSubscribedToEvent(Object, const String&);
  10668. bool HasSubscribedToEvent(const String&);
  10669. bool IsInView(Camera) const;
  10670. bool Load(File);
  10671. bool Load(VectorBuffer&);
  10672. bool LoadJSON(const JSONValue&);
  10673. bool LoadXML(const XMLElement&);
  10674. void MarkNetworkUpdate() const;
  10675. void Remove();
  10676. void RemoveAttributeAnimation(const String&);
  10677. void RemoveInstanceDefault();
  10678. void RemoveObjectAnimation();
  10679. void ResetToDefault();
  10680. bool Save(File) const;
  10681. bool Save(VectorBuffer&) const;
  10682. bool SaveJSON(JSONValue&) const;
  10683. bool SaveXML(XMLElement&) const;
  10684. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10685. void SetAnimationTime(float);
  10686. bool SetAttribute(const String&, const Variant&);
  10687. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10688. void SetAttributeAnimationSpeed(const String&, float);
  10689. void SetAttributeAnimationTime(const String&, float);
  10690. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10691. void SetInterceptNetworkUpdate(const String&, bool);
  10692. // Properties:
  10693. bool animationEnabled;
  10694. /* readonly */
  10695. Array<Variant> attributeDefaults;
  10696. /* readonly */
  10697. Array<AttributeInfo> attributeInfos;
  10698. Array<Variant> attributes;
  10699. /* readonly */
  10700. BoundingBox boundingBox;
  10701. bool castShadows;
  10702. /* readonly */
  10703. String category;
  10704. float drawDistance;
  10705. bool enabled;
  10706. /* readonly */
  10707. bool enabledEffective;
  10708. /* readonly */
  10709. uint id;
  10710. /* readonly */
  10711. bool inView;
  10712. uint lightMask;
  10713. float lodBias;
  10714. Material material;
  10715. Array<Material> materials;
  10716. uint maxLights;
  10717. Model model;
  10718. /* readonly */
  10719. Node node;
  10720. /* readonly */
  10721. uint numAttributes;
  10722. /* readonly */
  10723. uint numGeometries;
  10724. ObjectAnimation objectAnimation;
  10725. bool occludee;
  10726. bool occluder;
  10727. /* readonly */
  10728. int refs;
  10729. /* readonly */
  10730. bool replicated;
  10731. float shadowDistance;
  10732. uint shadowMask;
  10733. bool temporary;
  10734. /* readonly */
  10735. StringHash type;
  10736. /* readonly */
  10737. String typeName;
  10738. uint viewMask;
  10739. /* readonly */
  10740. int weakRefs;
  10741. /* readonly */
  10742. BoundingBox worldBoundingBox;
  10743. /* readonly */
  10744. Zone zone;
  10745. uint zoneMask;
  10746. };
  10747. class Slider
  10748. {
  10749. public:
  10750. Slider();
  10751. Slider(const String&in);
  10752. // Methods:
  10753. void AddChild(UIElement);
  10754. void AddTag(const String&);
  10755. void AddTags(const String&, int8 = ';');
  10756. void ApplyAttributes();
  10757. void BringToFront();
  10758. void ChangeValue(float);
  10759. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10760. void DisableLayoutUpdate();
  10761. IntVector2 ElementToScreen(const IntVector2&);
  10762. void EnableLayoutUpdate();
  10763. uint FindChild(UIElement) const;
  10764. Variant GetAttribute(const String&) const;
  10765. ValueAnimation GetAttributeAnimation(const String&) const;
  10766. float GetAttributeAnimationSpeed(const String&) const;
  10767. float GetAttributeAnimationTime(const String&) const;
  10768. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10769. Variant GetAttributeDefault(const String&) const;
  10770. UIElement GetChild(const String&, bool = false) const;
  10771. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10772. Array<UIElement> GetChildren(bool = false) const;
  10773. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10774. UIElement GetElementEventSender() const;
  10775. bool GetInterceptNetworkUpdate(const String&) const;
  10776. uint GetNumChildren(bool) const;
  10777. bool HasSubscribedToEvent(Object, const String&);
  10778. bool HasSubscribedToEvent(const String&);
  10779. bool HasTag(const String&) const;
  10780. void InsertChild(uint, UIElement);
  10781. bool IsChildOf(UIElement) const;
  10782. bool IsInside(IntVector2, bool);
  10783. bool IsInsideCombined(IntVector2, bool);
  10784. bool Load(File);
  10785. bool Load(VectorBuffer&);
  10786. UIElement LoadChildXML(XMLFile, XMLFile);
  10787. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10788. bool LoadJSON(const JSONValue&);
  10789. bool LoadXML(File);
  10790. bool LoadXML(VectorBuffer&);
  10791. bool LoadXML(XMLFile, XMLFile);
  10792. bool LoadXML(const XMLElement&, XMLFile);
  10793. bool LoadXML(const XMLElement&);
  10794. void MarkNetworkUpdate() const;
  10795. void Remove();
  10796. void RemoveAllChildren();
  10797. void RemoveAllTags();
  10798. void RemoveAttributeAnimation(const String&);
  10799. void RemoveChild(UIElement, uint = 0);
  10800. void RemoveChild(uint);
  10801. void RemoveInstanceDefault();
  10802. void RemoveObjectAnimation();
  10803. bool RemoveTag(const String&);
  10804. void ResetDeepEnabled();
  10805. void ResetToDefault();
  10806. bool Save(File) const;
  10807. bool Save(VectorBuffer&) const;
  10808. bool SaveJSON(JSONValue&) const;
  10809. bool SaveXML(File, const String& = "\t");
  10810. bool SaveXML(VectorBuffer&, const String& = "\t");
  10811. bool SaveXML(XMLElement&) const;
  10812. IntVector2 ScreenToElement(const IntVector2&);
  10813. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10814. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10815. void SetAnimationTime(float);
  10816. bool SetAttribute(const String&, const Variant&);
  10817. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10818. void SetAttributeAnimationSpeed(const String&, float);
  10819. void SetAttributeAnimationTime(const String&, float);
  10820. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10821. void SetDeepEnabled(bool);
  10822. void SetEnabledRecursive(bool);
  10823. void SetFixedHeight(int);
  10824. void SetFixedSize(int, int);
  10825. void SetFixedWidth(int);
  10826. void SetFullImageRect();
  10827. void SetHoverOffset(int, int);
  10828. void SetInterceptNetworkUpdate(const String&, bool);
  10829. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10830. void SetMaxAnchor(float, float);
  10831. void SetMaxSize(int, int);
  10832. void SetMinAnchor(float, float);
  10833. void SetMinSize(int, int);
  10834. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10835. void SetPivot(float, float);
  10836. void SetPosition(int, int);
  10837. void SetSize(int, int);
  10838. bool SetStyle(const String&, XMLFile = null);
  10839. bool SetStyle(const XMLElement&);
  10840. bool SetStyleAuto(XMLFile = null);
  10841. void UpdateLayout();
  10842. const Variant& GetVar(const StringHash&);
  10843. // Properties:
  10844. bool animationEnabled;
  10845. /* readonly */
  10846. Array<Variant> attributeDefaults;
  10847. /* readonly */
  10848. Array<AttributeInfo> attributeInfos;
  10849. Array<Variant> attributes;
  10850. BlendMode blendMode;
  10851. IntRect border;
  10852. bool bringToBack;
  10853. bool bringToFront;
  10854. /* readonly */
  10855. String category;
  10856. /* readonly */
  10857. IntVector2 childOffset;
  10858. /* readonly */
  10859. Array<UIElement> children;
  10860. IntRect clipBorder;
  10861. bool clipChildren;
  10862. /* writeonly */
  10863. Color color;
  10864. /* readonly */
  10865. bool colorGradient;
  10866. Array<Color> colors;
  10867. /* readonly */
  10868. IntRect combinedScreenRect;
  10869. XMLFile defaultStyle;
  10870. /* readonly */
  10871. float derivedOpacity;
  10872. /* readonly */
  10873. uint dragButtonCombo;
  10874. /* readonly */
  10875. int dragButtonCount;
  10876. uint dragDropMode;
  10877. bool editable;
  10878. bool elementEventSender;
  10879. bool enableAnchor;
  10880. bool enabled;
  10881. /* readonly */
  10882. bool enabledSelf;
  10883. /* readonly */
  10884. bool fixedHeight;
  10885. /* readonly */
  10886. bool fixedSize;
  10887. /* readonly */
  10888. bool fixedWidth;
  10889. bool focus;
  10890. FocusMode focusMode;
  10891. int height;
  10892. HorizontalAlignment horizontalAlignment;
  10893. IntVector2 hoverOffset;
  10894. /* readonly */
  10895. bool hovering;
  10896. IntRect imageBorder;
  10897. IntRect imageRect;
  10898. int indent;
  10899. int indentSpacing;
  10900. /* readonly */
  10901. int indentWidth;
  10902. bool internal;
  10903. /* readonly */
  10904. BorderImage knob;
  10905. IntRect layoutBorder;
  10906. Vector2 layoutFlexScale;
  10907. LayoutMode layoutMode;
  10908. int layoutSpacing;
  10909. Material material;
  10910. Vector2 maxAnchor;
  10911. int maxHeight;
  10912. IntVector2 maxOffset;
  10913. IntVector2 maxSize;
  10914. int maxWidth;
  10915. Vector2 minAnchor;
  10916. int minHeight;
  10917. IntVector2 minOffset;
  10918. IntVector2 minSize;
  10919. int minWidth;
  10920. String name;
  10921. /* readonly */
  10922. uint numAllChildren;
  10923. /* readonly */
  10924. uint numAttributes;
  10925. /* readonly */
  10926. uint numChildren;
  10927. ObjectAnimation objectAnimation;
  10928. float opacity;
  10929. Orientation orientation;
  10930. UIElement parent;
  10931. Vector2 pivot;
  10932. IntVector2 position;
  10933. int priority;
  10934. float range;
  10935. /* readonly */
  10936. int refs;
  10937. float repeatRate;
  10938. /* readonly */
  10939. UIElement root;
  10940. /* readonly */
  10941. IntVector2 screenPosition;
  10942. bool selected;
  10943. IntVector2 size;
  10944. bool sortChildren;
  10945. String style;
  10946. /* readonly */
  10947. Array<String> tags;
  10948. bool temporary;
  10949. Texture texture;
  10950. bool tiled;
  10951. TraversalMode traversalMode;
  10952. /* readonly */
  10953. StringHash type;
  10954. /* readonly */
  10955. String typeName;
  10956. bool useDerivedOpacity;
  10957. float value;
  10958. /* readonly */
  10959. VariantMap vars;
  10960. VerticalAlignment verticalAlignment;
  10961. bool visible;
  10962. /* readonly */
  10963. bool visibleEffective;
  10964. /* readonly */
  10965. int weakRefs;
  10966. int width;
  10967. };
  10968. class SmoothedTransform
  10969. {
  10970. public:
  10971. // Methods:
  10972. void ApplyAttributes();
  10973. void DrawDebugGeometry(DebugRenderer, bool);
  10974. Variant GetAttribute(const String&) const;
  10975. ValueAnimation GetAttributeAnimation(const String&) const;
  10976. float GetAttributeAnimationSpeed(const String&) const;
  10977. float GetAttributeAnimationTime(const String&) const;
  10978. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10979. Variant GetAttributeDefault(const String&) const;
  10980. bool GetInterceptNetworkUpdate(const String&) const;
  10981. bool HasSubscribedToEvent(Object, const String&);
  10982. bool HasSubscribedToEvent(const String&);
  10983. bool Load(File);
  10984. bool Load(VectorBuffer&);
  10985. bool LoadJSON(const JSONValue&);
  10986. bool LoadXML(const XMLElement&);
  10987. void MarkNetworkUpdate() const;
  10988. void Remove();
  10989. void RemoveAttributeAnimation(const String&);
  10990. void RemoveInstanceDefault();
  10991. void RemoveObjectAnimation();
  10992. void ResetToDefault();
  10993. bool Save(File) const;
  10994. bool Save(VectorBuffer&) const;
  10995. bool SaveJSON(JSONValue&) const;
  10996. bool SaveXML(XMLElement&) const;
  10997. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10998. void SetAnimationTime(float);
  10999. bool SetAttribute(const String&, const Variant&);
  11000. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11001. void SetAttributeAnimationSpeed(const String&, float);
  11002. void SetAttributeAnimationTime(const String&, float);
  11003. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11004. void SetInterceptNetworkUpdate(const String&, bool);
  11005. void Update(float, float);
  11006. // Properties:
  11007. bool animationEnabled;
  11008. /* readonly */
  11009. Array<Variant> attributeDefaults;
  11010. /* readonly */
  11011. Array<AttributeInfo> attributeInfos;
  11012. Array<Variant> attributes;
  11013. /* readonly */
  11014. String category;
  11015. bool enabled;
  11016. /* readonly */
  11017. bool enabledEffective;
  11018. /* readonly */
  11019. uint id;
  11020. /* readonly */
  11021. bool inProgress;
  11022. /* readonly */
  11023. Node node;
  11024. /* readonly */
  11025. uint numAttributes;
  11026. ObjectAnimation objectAnimation;
  11027. /* readonly */
  11028. int refs;
  11029. /* readonly */
  11030. bool replicated;
  11031. Vector3 targetPosition;
  11032. Quaternion targetRotation;
  11033. Vector3 targetWorldPosition;
  11034. Quaternion targetWorldRotation;
  11035. bool temporary;
  11036. /* readonly */
  11037. StringHash type;
  11038. /* readonly */
  11039. String typeName;
  11040. /* readonly */
  11041. int weakRefs;
  11042. };
  11043. class Sound
  11044. {
  11045. public:
  11046. Sound();
  11047. Sound(const String&in);
  11048. // Methods:
  11049. void AddMetadata(const String&, const Variant&);
  11050. bool HasSubscribedToEvent(Object, const String&);
  11051. bool HasSubscribedToEvent(const String&);
  11052. bool Load(File);
  11053. bool Load(VectorBuffer&);
  11054. bool Load(const String&);
  11055. void RemoveAllMetadata();
  11056. void RemoveMetadata(const String&);
  11057. bool Save(File) const;
  11058. bool Save(VectorBuffer&) const;
  11059. bool Save(const String&) const;
  11060. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11061. // Properties:
  11062. /* readonly */
  11063. String category;
  11064. /* readonly */
  11065. bool compressed;
  11066. /* readonly */
  11067. float frequency;
  11068. /* readonly */
  11069. bool hasMetadata;
  11070. /* readonly */
  11071. float length;
  11072. bool looped;
  11073. /* readonly */
  11074. uint memoryUse;
  11075. Array<Variant> metadata;
  11076. String name;
  11077. /* readonly */
  11078. int refs;
  11079. /* readonly */
  11080. uint sampleSize;
  11081. /* readonly */
  11082. bool sixteenBit;
  11083. /* readonly */
  11084. bool stereo;
  11085. /* readonly */
  11086. StringHash type;
  11087. /* readonly */
  11088. String typeName;
  11089. /* readonly */
  11090. uint useTimer;
  11091. /* readonly */
  11092. int weakRefs;
  11093. };
  11094. class SoundListener
  11095. {
  11096. public:
  11097. // Methods:
  11098. void ApplyAttributes();
  11099. void DrawDebugGeometry(DebugRenderer, bool);
  11100. Variant GetAttribute(const String&) const;
  11101. ValueAnimation GetAttributeAnimation(const String&) const;
  11102. float GetAttributeAnimationSpeed(const String&) const;
  11103. float GetAttributeAnimationTime(const String&) const;
  11104. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11105. Variant GetAttributeDefault(const String&) const;
  11106. bool GetInterceptNetworkUpdate(const String&) const;
  11107. bool HasSubscribedToEvent(Object, const String&);
  11108. bool HasSubscribedToEvent(const String&);
  11109. bool Load(File);
  11110. bool Load(VectorBuffer&);
  11111. bool LoadJSON(const JSONValue&);
  11112. bool LoadXML(const XMLElement&);
  11113. void MarkNetworkUpdate() const;
  11114. void Remove();
  11115. void RemoveAttributeAnimation(const String&);
  11116. void RemoveInstanceDefault();
  11117. void RemoveObjectAnimation();
  11118. void ResetToDefault();
  11119. bool Save(File) const;
  11120. bool Save(VectorBuffer&) const;
  11121. bool SaveJSON(JSONValue&) const;
  11122. bool SaveXML(XMLElement&) const;
  11123. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11124. void SetAnimationTime(float);
  11125. bool SetAttribute(const String&, const Variant&);
  11126. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11127. void SetAttributeAnimationSpeed(const String&, float);
  11128. void SetAttributeAnimationTime(const String&, float);
  11129. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11130. void SetInterceptNetworkUpdate(const String&, bool);
  11131. // Properties:
  11132. bool animationEnabled;
  11133. /* readonly */
  11134. Array<Variant> attributeDefaults;
  11135. /* readonly */
  11136. Array<AttributeInfo> attributeInfos;
  11137. Array<Variant> attributes;
  11138. /* readonly */
  11139. String category;
  11140. bool enabled;
  11141. /* readonly */
  11142. bool enabledEffective;
  11143. /* readonly */
  11144. uint id;
  11145. /* readonly */
  11146. Node node;
  11147. /* readonly */
  11148. uint numAttributes;
  11149. ObjectAnimation objectAnimation;
  11150. /* readonly */
  11151. int refs;
  11152. /* readonly */
  11153. bool replicated;
  11154. bool temporary;
  11155. /* readonly */
  11156. StringHash type;
  11157. /* readonly */
  11158. String typeName;
  11159. /* readonly */
  11160. int weakRefs;
  11161. };
  11162. class SoundSource
  11163. {
  11164. public:
  11165. SoundSource();
  11166. // Methods:
  11167. void ApplyAttributes();
  11168. void DrawDebugGeometry(DebugRenderer, bool);
  11169. Variant GetAttribute(const String&) const;
  11170. ValueAnimation GetAttributeAnimation(const String&) const;
  11171. float GetAttributeAnimationSpeed(const String&) const;
  11172. float GetAttributeAnimationTime(const String&) const;
  11173. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11174. Variant GetAttributeDefault(const String&) const;
  11175. bool GetInterceptNetworkUpdate(const String&) const;
  11176. bool HasSubscribedToEvent(Object, const String&);
  11177. bool HasSubscribedToEvent(const String&);
  11178. bool Load(File);
  11179. bool Load(VectorBuffer&);
  11180. bool LoadJSON(const JSONValue&);
  11181. bool LoadXML(const XMLElement&);
  11182. void MarkNetworkUpdate() const;
  11183. void Play(Sound);
  11184. void Play(Sound, float);
  11185. void Play(Sound, float, float);
  11186. void Play(Sound, float, float, float);
  11187. void Remove();
  11188. void RemoveAttributeAnimation(const String&);
  11189. void RemoveInstanceDefault();
  11190. void RemoveObjectAnimation();
  11191. void ResetToDefault();
  11192. bool Save(File) const;
  11193. bool Save(VectorBuffer&) const;
  11194. bool SaveJSON(JSONValue&) const;
  11195. bool SaveXML(XMLElement&) const;
  11196. void Seek(float);
  11197. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11198. void SetAnimationTime(float);
  11199. bool SetAttribute(const String&, const Variant&);
  11200. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11201. void SetAttributeAnimationSpeed(const String&, float);
  11202. void SetAttributeAnimationTime(const String&, float);
  11203. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11204. void SetInterceptNetworkUpdate(const String&, bool);
  11205. void Stop();
  11206. // Properties:
  11207. bool animationEnabled;
  11208. /* readonly */
  11209. float attenuation;
  11210. /* readonly */
  11211. Array<Variant> attributeDefaults;
  11212. /* readonly */
  11213. Array<AttributeInfo> attributeInfos;
  11214. Array<Variant> attributes;
  11215. AutoRemoveMode autoRemoveMode;
  11216. /* readonly */
  11217. String category;
  11218. bool enabled;
  11219. /* readonly */
  11220. bool enabledEffective;
  11221. float frequency;
  11222. float gain;
  11223. /* readonly */
  11224. uint id;
  11225. /* readonly */
  11226. Node node;
  11227. /* readonly */
  11228. uint numAttributes;
  11229. ObjectAnimation objectAnimation;
  11230. float panning;
  11231. /* readonly */
  11232. bool playing;
  11233. /* readonly */
  11234. int refs;
  11235. /* readonly */
  11236. bool replicated;
  11237. /* readonly */
  11238. Sound sound;
  11239. String soundType;
  11240. bool temporary;
  11241. /* readonly */
  11242. float timePosition;
  11243. /* readonly */
  11244. StringHash type;
  11245. /* readonly */
  11246. String typeName;
  11247. /* readonly */
  11248. int weakRefs;
  11249. };
  11250. class SoundSource3D
  11251. {
  11252. public:
  11253. // Methods:
  11254. void ApplyAttributes();
  11255. void DrawDebugGeometry(DebugRenderer, bool);
  11256. Variant GetAttribute(const String&) const;
  11257. ValueAnimation GetAttributeAnimation(const String&) const;
  11258. float GetAttributeAnimationSpeed(const String&) const;
  11259. float GetAttributeAnimationTime(const String&) const;
  11260. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11261. Variant GetAttributeDefault(const String&) const;
  11262. bool GetInterceptNetworkUpdate(const String&) const;
  11263. bool HasSubscribedToEvent(Object, const String&);
  11264. bool HasSubscribedToEvent(const String&);
  11265. bool Load(File);
  11266. bool Load(VectorBuffer&);
  11267. bool LoadJSON(const JSONValue&);
  11268. bool LoadXML(const XMLElement&);
  11269. void MarkNetworkUpdate() const;
  11270. void Play(Sound);
  11271. void Play(Sound, float);
  11272. void Play(Sound, float, float);
  11273. void Play(Sound, float, float, float);
  11274. void Remove();
  11275. void RemoveAttributeAnimation(const String&);
  11276. void RemoveInstanceDefault();
  11277. void RemoveObjectAnimation();
  11278. void ResetToDefault();
  11279. bool Save(File) const;
  11280. bool Save(VectorBuffer&) const;
  11281. bool SaveJSON(JSONValue&) const;
  11282. bool SaveXML(XMLElement&) const;
  11283. void Seek(float);
  11284. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11285. void SetAngleAttenuation(float, float);
  11286. void SetAnimationTime(float);
  11287. bool SetAttribute(const String&, const Variant&);
  11288. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11289. void SetAttributeAnimationSpeed(const String&, float);
  11290. void SetAttributeAnimationTime(const String&, float);
  11291. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11292. void SetDistanceAttenuation(float, float, float);
  11293. void SetInterceptNetworkUpdate(const String&, bool);
  11294. void Stop();
  11295. // Properties:
  11296. bool animationEnabled;
  11297. /* readonly */
  11298. float attenuation;
  11299. /* readonly */
  11300. Array<Variant> attributeDefaults;
  11301. /* readonly */
  11302. Array<AttributeInfo> attributeInfos;
  11303. Array<Variant> attributes;
  11304. AutoRemoveMode autoRemoveMode;
  11305. /* readonly */
  11306. String category;
  11307. bool enabled;
  11308. /* readonly */
  11309. bool enabledEffective;
  11310. float farDistance;
  11311. float frequency;
  11312. float gain;
  11313. /* readonly */
  11314. uint id;
  11315. float innerAngle;
  11316. float nearDistance;
  11317. /* readonly */
  11318. Node node;
  11319. /* readonly */
  11320. uint numAttributes;
  11321. ObjectAnimation objectAnimation;
  11322. float outerAngle;
  11323. float panning;
  11324. /* readonly */
  11325. bool playing;
  11326. /* readonly */
  11327. int refs;
  11328. /* readonly */
  11329. bool replicated;
  11330. float rolloffFactor;
  11331. /* readonly */
  11332. Sound sound;
  11333. String soundType;
  11334. bool temporary;
  11335. /* readonly */
  11336. float timePosition;
  11337. /* readonly */
  11338. StringHash type;
  11339. /* readonly */
  11340. String typeName;
  11341. /* readonly */
  11342. int weakRefs;
  11343. };
  11344. class Sphere
  11345. {
  11346. public:
  11347. Sphere();
  11348. Sphere(const Sphere&in);
  11349. Sphere(const Vector3&in, float);
  11350. Sphere(const BoundingBox&in);
  11351. Sphere(const Frustum&in);
  11352. Sphere(const Polyhedron&in);
  11353. // Methods:
  11354. void Clear();
  11355. void Define(const BoundingBox&);
  11356. void Define(const Frustum&);
  11357. void Define(const Polyhedron&);
  11358. void Define(const Sphere&);
  11359. void Define(const Vector3&, float);
  11360. bool Defined() const;
  11361. float Distance(const Vector3&) const;
  11362. Vector3 GetLocalPoint(float, float) const;
  11363. Vector3 GetPoint(float, float) const;
  11364. Intersection IsInside(const BoundingBox&) const;
  11365. Intersection IsInside(const Sphere&) const;
  11366. Intersection IsInside(const Vector3&) const;
  11367. Intersection IsInsideFast(const BoundingBox&) const;
  11368. Intersection IsInsideFast(const Sphere&) const;
  11369. void Merge(const BoundingBox&);
  11370. void Merge(const Frustum&);
  11371. void Merge(const Sphere&);
  11372. void Merge(const Vector3&);
  11373. // Properties:
  11374. Vector3 center;
  11375. float radius;
  11376. };
  11377. class Spline
  11378. {
  11379. public:
  11380. Spline();
  11381. Spline(InterpolationMode);
  11382. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  11383. Spline(const Spline&in);
  11384. // Methods:
  11385. void AddKnot(const Variant&);
  11386. void AddKnot(const Variant&, uint);
  11387. void Clear();
  11388. Variant GetPoint(float);
  11389. void RemoveKnot();
  11390. void RemoveKnot(uint);
  11391. // Properties:
  11392. InterpolationMode interpolationMode;
  11393. Array<Variant> knot;
  11394. Array<Variant> knots;
  11395. };
  11396. class SplinePath
  11397. {
  11398. public:
  11399. // Methods:
  11400. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  11401. void ApplyAttributes();
  11402. void ClearControlPoints();
  11403. void DrawDebugGeometry(DebugRenderer, bool);
  11404. Variant GetAttribute(const String&) const;
  11405. ValueAnimation GetAttributeAnimation(const String&) const;
  11406. float GetAttributeAnimationSpeed(const String&) const;
  11407. float GetAttributeAnimationTime(const String&) const;
  11408. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11409. Variant GetAttributeDefault(const String&) const;
  11410. bool GetInterceptNetworkUpdate(const String&) const;
  11411. Vector3 GetPoint(float) const;
  11412. Vector3 GetPosition() const;
  11413. bool HasSubscribedToEvent(Object, const String&);
  11414. bool HasSubscribedToEvent(const String&);
  11415. bool Load(File);
  11416. bool Load(VectorBuffer&);
  11417. bool LoadJSON(const JSONValue&);
  11418. bool LoadXML(const XMLElement&);
  11419. void MarkNetworkUpdate() const;
  11420. void Move(float);
  11421. void Remove();
  11422. void RemoveAttributeAnimation(const String&);
  11423. void RemoveControlPoint(Node);
  11424. void RemoveInstanceDefault();
  11425. void RemoveObjectAnimation();
  11426. void Reset();
  11427. void ResetToDefault();
  11428. bool Save(File) const;
  11429. bool Save(VectorBuffer&) const;
  11430. bool SaveJSON(JSONValue&) const;
  11431. bool SaveXML(XMLElement&) const;
  11432. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11433. void SetAnimationTime(float);
  11434. bool SetAttribute(const String&, const Variant&);
  11435. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11436. void SetAttributeAnimationSpeed(const String&, float);
  11437. void SetAttributeAnimationTime(const String&, float);
  11438. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11439. void SetInterceptNetworkUpdate(const String&, bool);
  11440. void SetPosition(float);
  11441. // Properties:
  11442. bool animationEnabled;
  11443. /* readonly */
  11444. Array<Variant> attributeDefaults;
  11445. /* readonly */
  11446. Array<AttributeInfo> attributeInfos;
  11447. Array<Variant> attributes;
  11448. /* readonly */
  11449. String category;
  11450. Node controlledNode;
  11451. bool enabled;
  11452. /* readonly */
  11453. bool enabledEffective;
  11454. /* readonly */
  11455. uint id;
  11456. InterpolationMode interpolationMode;
  11457. /* readonly */
  11458. bool isFinished;
  11459. /* readonly */
  11460. float length;
  11461. /* readonly */
  11462. Node node;
  11463. /* readonly */
  11464. uint numAttributes;
  11465. ObjectAnimation objectAnimation;
  11466. /* readonly */
  11467. int refs;
  11468. /* readonly */
  11469. bool replicated;
  11470. float speed;
  11471. bool temporary;
  11472. /* readonly */
  11473. StringHash type;
  11474. /* readonly */
  11475. String typeName;
  11476. /* readonly */
  11477. int weakRefs;
  11478. };
  11479. class Sprite
  11480. {
  11481. public:
  11482. Sprite();
  11483. Sprite(const String&in);
  11484. // Methods:
  11485. void AddChild(UIElement);
  11486. void AddTag(const String&);
  11487. void AddTags(const String&, int8 = ';');
  11488. void ApplyAttributes();
  11489. void BringToFront();
  11490. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  11491. void DisableLayoutUpdate();
  11492. IntVector2 ElementToScreen(const IntVector2&);
  11493. void EnableLayoutUpdate();
  11494. uint FindChild(UIElement) const;
  11495. Variant GetAttribute(const String&) const;
  11496. ValueAnimation GetAttributeAnimation(const String&) const;
  11497. float GetAttributeAnimationSpeed(const String&) const;
  11498. float GetAttributeAnimationTime(const String&) const;
  11499. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11500. Variant GetAttributeDefault(const String&) const;
  11501. UIElement GetChild(const String&, bool = false) const;
  11502. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  11503. Array<UIElement> GetChildren(bool = false) const;
  11504. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  11505. UIElement GetElementEventSender() const;
  11506. bool GetInterceptNetworkUpdate(const String&) const;
  11507. uint GetNumChildren(bool) const;
  11508. bool HasSubscribedToEvent(Object, const String&);
  11509. bool HasSubscribedToEvent(const String&);
  11510. bool HasTag(const String&) const;
  11511. void InsertChild(uint, UIElement);
  11512. bool IsChildOf(UIElement) const;
  11513. bool IsInside(IntVector2, bool);
  11514. bool IsInsideCombined(IntVector2, bool);
  11515. bool Load(File);
  11516. bool Load(VectorBuffer&);
  11517. UIElement LoadChildXML(XMLFile, XMLFile);
  11518. UIElement LoadChildXML(const XMLElement&, XMLFile);
  11519. bool LoadJSON(const JSONValue&);
  11520. bool LoadXML(File);
  11521. bool LoadXML(VectorBuffer&);
  11522. bool LoadXML(XMLFile, XMLFile);
  11523. bool LoadXML(const XMLElement&, XMLFile);
  11524. bool LoadXML(const XMLElement&);
  11525. void MarkNetworkUpdate() const;
  11526. void Remove();
  11527. void RemoveAllChildren();
  11528. void RemoveAllTags();
  11529. void RemoveAttributeAnimation(const String&);
  11530. void RemoveChild(UIElement, uint = 0);
  11531. void RemoveChild(uint);
  11532. void RemoveInstanceDefault();
  11533. void RemoveObjectAnimation();
  11534. bool RemoveTag(const String&);
  11535. void ResetDeepEnabled();
  11536. void ResetToDefault();
  11537. bool Save(File) const;
  11538. bool Save(VectorBuffer&) const;
  11539. bool SaveJSON(JSONValue&) const;
  11540. bool SaveXML(File, const String& = "\t");
  11541. bool SaveXML(VectorBuffer&, const String& = "\t");
  11542. bool SaveXML(XMLElement&) const;
  11543. IntVector2 ScreenToElement(const IntVector2&);
  11544. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11545. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  11546. void SetAnimationTime(float);
  11547. bool SetAttribute(const String&, const Variant&);
  11548. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11549. void SetAttributeAnimationSpeed(const String&, float);
  11550. void SetAttributeAnimationTime(const String&, float);
  11551. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11552. void SetDeepEnabled(bool);
  11553. void SetEnabledRecursive(bool);
  11554. void SetFixedHeight(int);
  11555. void SetFixedSize(int, int);
  11556. void SetFixedWidth(int);
  11557. void SetFullImageRect();
  11558. void SetHotSpot(int, int);
  11559. void SetInterceptNetworkUpdate(const String&, bool);
  11560. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  11561. void SetMaxAnchor(float, float);
  11562. void SetMaxSize(int, int);
  11563. void SetMinAnchor(float, float);
  11564. void SetMinSize(int, int);
  11565. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  11566. void SetPivot(float, float);
  11567. void SetPosition(float, float);
  11568. void SetScale(float);
  11569. void SetScale(float, float);
  11570. void SetSize(int, int);
  11571. bool SetStyle(const String&, XMLFile = null);
  11572. bool SetStyle(const XMLElement&);
  11573. bool SetStyleAuto(XMLFile = null);
  11574. void UpdateLayout();
  11575. const Variant& GetVar(const StringHash&);
  11576. // Properties:
  11577. bool animationEnabled;
  11578. /* readonly */
  11579. Array<Variant> attributeDefaults;
  11580. /* readonly */
  11581. Array<AttributeInfo> attributeInfos;
  11582. Array<Variant> attributes;
  11583. BlendMode blendMode;
  11584. bool bringToBack;
  11585. bool bringToFront;
  11586. /* readonly */
  11587. String category;
  11588. /* readonly */
  11589. IntVector2 childOffset;
  11590. /* readonly */
  11591. Array<UIElement> children;
  11592. IntRect clipBorder;
  11593. bool clipChildren;
  11594. /* writeonly */
  11595. Color color;
  11596. /* readonly */
  11597. bool colorGradient;
  11598. Array<Color> colors;
  11599. /* readonly */
  11600. IntRect combinedScreenRect;
  11601. XMLFile defaultStyle;
  11602. /* readonly */
  11603. float derivedOpacity;
  11604. /* readonly */
  11605. uint dragButtonCombo;
  11606. /* readonly */
  11607. int dragButtonCount;
  11608. uint dragDropMode;
  11609. bool editable;
  11610. bool elementEventSender;
  11611. bool enableAnchor;
  11612. bool enabled;
  11613. /* readonly */
  11614. bool enabledSelf;
  11615. /* readonly */
  11616. bool fixedHeight;
  11617. /* readonly */
  11618. bool fixedSize;
  11619. /* readonly */
  11620. bool fixedWidth;
  11621. bool focus;
  11622. FocusMode focusMode;
  11623. int height;
  11624. HorizontalAlignment horizontalAlignment;
  11625. IntVector2 hotSpot;
  11626. /* readonly */
  11627. bool hovering;
  11628. IntRect imageRect;
  11629. int indent;
  11630. int indentSpacing;
  11631. /* readonly */
  11632. int indentWidth;
  11633. bool internal;
  11634. IntRect layoutBorder;
  11635. Vector2 layoutFlexScale;
  11636. LayoutMode layoutMode;
  11637. int layoutSpacing;
  11638. Vector2 maxAnchor;
  11639. int maxHeight;
  11640. IntVector2 maxOffset;
  11641. IntVector2 maxSize;
  11642. int maxWidth;
  11643. Vector2 minAnchor;
  11644. int minHeight;
  11645. IntVector2 minOffset;
  11646. IntVector2 minSize;
  11647. int minWidth;
  11648. String name;
  11649. /* readonly */
  11650. uint numAllChildren;
  11651. /* readonly */
  11652. uint numAttributes;
  11653. /* readonly */
  11654. uint numChildren;
  11655. ObjectAnimation objectAnimation;
  11656. float opacity;
  11657. UIElement parent;
  11658. Vector2 pivot;
  11659. Vector2 position;
  11660. int priority;
  11661. /* readonly */
  11662. int refs;
  11663. /* readonly */
  11664. UIElement root;
  11665. float rotation;
  11666. Vector2 scale;
  11667. /* readonly */
  11668. IntVector2 screenPosition;
  11669. bool selected;
  11670. IntVector2 size;
  11671. bool sortChildren;
  11672. String style;
  11673. /* readonly */
  11674. Array<String> tags;
  11675. bool temporary;
  11676. Texture texture;
  11677. TraversalMode traversalMode;
  11678. /* readonly */
  11679. StringHash type;
  11680. /* readonly */
  11681. String typeName;
  11682. bool useDerivedOpacity;
  11683. /* readonly */
  11684. VariantMap vars;
  11685. VerticalAlignment verticalAlignment;
  11686. bool visible;
  11687. /* readonly */
  11688. bool visibleEffective;
  11689. /* readonly */
  11690. int weakRefs;
  11691. int width;
  11692. };
  11693. class Sprite2D
  11694. {
  11695. public:
  11696. Sprite2D();
  11697. Sprite2D(const String&in);
  11698. // Methods:
  11699. bool HasSubscribedToEvent(Object, const String&);
  11700. bool HasSubscribedToEvent(const String&);
  11701. bool Load(File);
  11702. bool Load(VectorBuffer&);
  11703. bool Load(const String&);
  11704. bool Save(File) const;
  11705. bool Save(VectorBuffer&) const;
  11706. bool Save(const String&) const;
  11707. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11708. // Properties:
  11709. /* readonly */
  11710. String category;
  11711. Vector2 hotSpot;
  11712. /* readonly */
  11713. uint memoryUse;
  11714. String name;
  11715. IntVector2 offset;
  11716. IntRect rectangle;
  11717. /* readonly */
  11718. int refs;
  11719. Texture2D texture;
  11720. float textureEdgeOffset;
  11721. /* readonly */
  11722. StringHash type;
  11723. /* readonly */
  11724. String typeName;
  11725. /* readonly */
  11726. uint useTimer;
  11727. /* readonly */
  11728. int weakRefs;
  11729. };
  11730. class SpriteSheet2D
  11731. {
  11732. public:
  11733. SpriteSheet2D();
  11734. SpriteSheet2D(const String&in);
  11735. // Methods:
  11736. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  11737. Sprite2D GetSprite(const String&);
  11738. bool HasSubscribedToEvent(Object, const String&);
  11739. bool HasSubscribedToEvent(const String&);
  11740. bool Load(File);
  11741. bool Load(VectorBuffer&);
  11742. bool Load(const String&);
  11743. bool Save(File) const;
  11744. bool Save(VectorBuffer&) const;
  11745. bool Save(const String&) const;
  11746. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11747. // Properties:
  11748. /* readonly */
  11749. String category;
  11750. /* readonly */
  11751. uint memoryUse;
  11752. String name;
  11753. /* readonly */
  11754. int refs;
  11755. Texture2D texture;
  11756. /* readonly */
  11757. StringHash type;
  11758. /* readonly */
  11759. String typeName;
  11760. /* readonly */
  11761. uint useTimer;
  11762. /* readonly */
  11763. int weakRefs;
  11764. };
  11765. class StaticModel
  11766. {
  11767. public:
  11768. // Methods:
  11769. void ApplyAttributes();
  11770. void ApplyMaterialList(const String& = String ( ));
  11771. void DrawDebugGeometry(DebugRenderer, bool);
  11772. Variant GetAttribute(const String&) const;
  11773. ValueAnimation GetAttributeAnimation(const String&) const;
  11774. float GetAttributeAnimationSpeed(const String&) const;
  11775. float GetAttributeAnimationTime(const String&) const;
  11776. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11777. Variant GetAttributeDefault(const String&) const;
  11778. bool GetInterceptNetworkUpdate(const String&) const;
  11779. bool HasSubscribedToEvent(Object, const String&);
  11780. bool HasSubscribedToEvent(const String&);
  11781. bool IsInView(Camera) const;
  11782. bool IsInside(const Vector3&) const;
  11783. bool IsInsideLocal(const Vector3&) const;
  11784. bool Load(File);
  11785. bool Load(VectorBuffer&);
  11786. bool LoadJSON(const JSONValue&);
  11787. bool LoadXML(const XMLElement&);
  11788. void MarkNetworkUpdate() const;
  11789. void Remove();
  11790. void RemoveAttributeAnimation(const String&);
  11791. void RemoveInstanceDefault();
  11792. void RemoveObjectAnimation();
  11793. void ResetToDefault();
  11794. bool Save(File) const;
  11795. bool Save(VectorBuffer&) const;
  11796. bool SaveJSON(JSONValue&) const;
  11797. bool SaveXML(XMLElement&) const;
  11798. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11799. void SetAnimationTime(float);
  11800. bool SetAttribute(const String&, const Variant&);
  11801. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11802. void SetAttributeAnimationSpeed(const String&, float);
  11803. void SetAttributeAnimationTime(const String&, float);
  11804. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11805. void SetInterceptNetworkUpdate(const String&, bool);
  11806. // Properties:
  11807. bool animationEnabled;
  11808. /* readonly */
  11809. Array<Variant> attributeDefaults;
  11810. /* readonly */
  11811. Array<AttributeInfo> attributeInfos;
  11812. Array<Variant> attributes;
  11813. /* readonly */
  11814. BoundingBox boundingBox;
  11815. bool castShadows;
  11816. /* readonly */
  11817. String category;
  11818. float drawDistance;
  11819. bool enabled;
  11820. /* readonly */
  11821. bool enabledEffective;
  11822. /* readonly */
  11823. uint id;
  11824. /* readonly */
  11825. bool inView;
  11826. uint lightMask;
  11827. float lodBias;
  11828. Material material;
  11829. Array<Material> materials;
  11830. uint maxLights;
  11831. Model model;
  11832. /* readonly */
  11833. Node node;
  11834. /* readonly */
  11835. uint numAttributes;
  11836. /* readonly */
  11837. uint numGeometries;
  11838. ObjectAnimation objectAnimation;
  11839. bool occludee;
  11840. bool occluder;
  11841. uint occlusionLodLevel;
  11842. /* readonly */
  11843. int refs;
  11844. /* readonly */
  11845. bool replicated;
  11846. float shadowDistance;
  11847. uint shadowMask;
  11848. bool temporary;
  11849. /* readonly */
  11850. StringHash type;
  11851. /* readonly */
  11852. String typeName;
  11853. uint viewMask;
  11854. /* readonly */
  11855. int weakRefs;
  11856. /* readonly */
  11857. BoundingBox worldBoundingBox;
  11858. uint zoneMask;
  11859. };
  11860. class StaticModelGroup
  11861. {
  11862. public:
  11863. // Methods:
  11864. void AddInstanceNode(Node);
  11865. void ApplyAttributes();
  11866. void ApplyMaterialList(const String& = String ( ));
  11867. void DrawDebugGeometry(DebugRenderer, bool);
  11868. Variant GetAttribute(const String&) const;
  11869. ValueAnimation GetAttributeAnimation(const String&) const;
  11870. float GetAttributeAnimationSpeed(const String&) const;
  11871. float GetAttributeAnimationTime(const String&) const;
  11872. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11873. Variant GetAttributeDefault(const String&) const;
  11874. bool GetInterceptNetworkUpdate(const String&) const;
  11875. bool HasSubscribedToEvent(Object, const String&);
  11876. bool HasSubscribedToEvent(const String&);
  11877. bool IsInView(Camera) const;
  11878. bool Load(File);
  11879. bool Load(VectorBuffer&);
  11880. bool LoadJSON(const JSONValue&);
  11881. bool LoadXML(const XMLElement&);
  11882. void MarkNetworkUpdate() const;
  11883. void Remove();
  11884. void RemoveAllInstanceNodes();
  11885. void RemoveAttributeAnimation(const String&);
  11886. void RemoveInstanceDefault();
  11887. void RemoveInstanceNode(Node);
  11888. void RemoveObjectAnimation();
  11889. void ResetToDefault();
  11890. bool Save(File) const;
  11891. bool Save(VectorBuffer&) const;
  11892. bool SaveJSON(JSONValue&) const;
  11893. bool SaveXML(XMLElement&) const;
  11894. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11895. void SetAnimationTime(float);
  11896. bool SetAttribute(const String&, const Variant&);
  11897. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11898. void SetAttributeAnimationSpeed(const String&, float);
  11899. void SetAttributeAnimationTime(const String&, float);
  11900. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11901. void SetInterceptNetworkUpdate(const String&, bool);
  11902. // Properties:
  11903. bool animationEnabled;
  11904. /* readonly */
  11905. Array<Variant> attributeDefaults;
  11906. /* readonly */
  11907. Array<AttributeInfo> attributeInfos;
  11908. Array<Variant> attributes;
  11909. /* readonly */
  11910. BoundingBox boundingBox;
  11911. bool castShadows;
  11912. /* readonly */
  11913. String category;
  11914. float drawDistance;
  11915. bool enabled;
  11916. /* readonly */
  11917. bool enabledEffective;
  11918. /* readonly */
  11919. uint id;
  11920. /* readonly */
  11921. bool inView;
  11922. /* readonly */
  11923. Array<Node> instanceNodes;
  11924. uint lightMask;
  11925. float lodBias;
  11926. Material material;
  11927. Array<Material> materials;
  11928. uint maxLights;
  11929. Model model;
  11930. /* readonly */
  11931. Node node;
  11932. /* readonly */
  11933. uint numAttributes;
  11934. /* readonly */
  11935. uint numGeometries;
  11936. /* readonly */
  11937. uint numInstanceNodes;
  11938. ObjectAnimation objectAnimation;
  11939. bool occludee;
  11940. bool occluder;
  11941. uint occlusionLodLevel;
  11942. /* readonly */
  11943. int refs;
  11944. /* readonly */
  11945. bool replicated;
  11946. float shadowDistance;
  11947. uint shadowMask;
  11948. bool temporary;
  11949. /* readonly */
  11950. StringHash type;
  11951. /* readonly */
  11952. String typeName;
  11953. uint viewMask;
  11954. /* readonly */
  11955. int weakRefs;
  11956. /* readonly */
  11957. BoundingBox worldBoundingBox;
  11958. /* readonly */
  11959. Zone zone;
  11960. uint zoneMask;
  11961. };
  11962. class StaticSprite2D
  11963. {
  11964. public:
  11965. // Methods:
  11966. void ApplyAttributes();
  11967. void DrawDebugGeometry(DebugRenderer, bool);
  11968. Variant GetAttribute(const String&) const;
  11969. ValueAnimation GetAttributeAnimation(const String&) const;
  11970. float GetAttributeAnimationSpeed(const String&) const;
  11971. float GetAttributeAnimationTime(const String&) const;
  11972. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11973. Variant GetAttributeDefault(const String&) const;
  11974. bool GetInterceptNetworkUpdate(const String&) const;
  11975. bool HasSubscribedToEvent(Object, const String&);
  11976. bool HasSubscribedToEvent(const String&);
  11977. bool IsInView(Camera) const;
  11978. bool Load(File);
  11979. bool Load(VectorBuffer&);
  11980. bool LoadJSON(const JSONValue&);
  11981. bool LoadXML(const XMLElement&);
  11982. void MarkNetworkUpdate() const;
  11983. void Remove();
  11984. void RemoveAttributeAnimation(const String&);
  11985. void RemoveInstanceDefault();
  11986. void RemoveObjectAnimation();
  11987. void ResetToDefault();
  11988. bool Save(File) const;
  11989. bool Save(VectorBuffer&) const;
  11990. bool SaveJSON(JSONValue&) const;
  11991. bool SaveXML(XMLElement&) const;
  11992. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11993. void SetAnimationTime(float);
  11994. bool SetAttribute(const String&, const Variant&);
  11995. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11996. void SetAttributeAnimationSpeed(const String&, float);
  11997. void SetAttributeAnimationTime(const String&, float);
  11998. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11999. void SetFlip(bool, bool, bool = false);
  12000. void SetInterceptNetworkUpdate(const String&, bool);
  12001. // Properties:
  12002. float alpha;
  12003. bool animationEnabled;
  12004. /* readonly */
  12005. Array<Variant> attributeDefaults;
  12006. /* readonly */
  12007. Array<AttributeInfo> attributeInfos;
  12008. Array<Variant> attributes;
  12009. BlendMode blendMode;
  12010. /* readonly */
  12011. BoundingBox boundingBox;
  12012. bool castShadows;
  12013. /* readonly */
  12014. String category;
  12015. Color color;
  12016. Material customMaterial;
  12017. float drawDistance;
  12018. Rect drawRect;
  12019. bool enabled;
  12020. /* readonly */
  12021. bool enabledEffective;
  12022. bool flipX;
  12023. bool flipY;
  12024. Vector2 hotSpot;
  12025. /* readonly */
  12026. uint id;
  12027. /* readonly */
  12028. bool inView;
  12029. int layer;
  12030. uint lightMask;
  12031. float lodBias;
  12032. uint maxLights;
  12033. /* readonly */
  12034. Node node;
  12035. /* readonly */
  12036. uint numAttributes;
  12037. ObjectAnimation objectAnimation;
  12038. bool occludee;
  12039. bool occluder;
  12040. int orderInLayer;
  12041. /* readonly */
  12042. int refs;
  12043. /* readonly */
  12044. bool replicated;
  12045. float shadowDistance;
  12046. uint shadowMask;
  12047. Sprite2D sprite;
  12048. bool swapXY;
  12049. bool temporary;
  12050. Rect textureRect;
  12051. /* readonly */
  12052. StringHash type;
  12053. /* readonly */
  12054. String typeName;
  12055. bool useDrawRect;
  12056. bool useHotSpot;
  12057. bool useTextureRect;
  12058. uint viewMask;
  12059. /* readonly */
  12060. int weakRefs;
  12061. /* readonly */
  12062. BoundingBox worldBoundingBox;
  12063. uint zoneMask;
  12064. };
  12065. class StretchableSprite2D
  12066. {
  12067. public:
  12068. // Methods:
  12069. void ApplyAttributes();
  12070. void DrawDebugGeometry(DebugRenderer, bool);
  12071. Variant GetAttribute(const String&) const;
  12072. ValueAnimation GetAttributeAnimation(const String&) const;
  12073. float GetAttributeAnimationSpeed(const String&) const;
  12074. float GetAttributeAnimationTime(const String&) const;
  12075. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12076. Variant GetAttributeDefault(const String&) const;
  12077. bool GetInterceptNetworkUpdate(const String&) const;
  12078. bool HasSubscribedToEvent(Object, const String&);
  12079. bool HasSubscribedToEvent(const String&);
  12080. bool IsInView(Camera) const;
  12081. bool Load(File);
  12082. bool Load(VectorBuffer&);
  12083. bool LoadJSON(const JSONValue&);
  12084. bool LoadXML(const XMLElement&);
  12085. void MarkNetworkUpdate() const;
  12086. void Remove();
  12087. void RemoveAttributeAnimation(const String&);
  12088. void RemoveInstanceDefault();
  12089. void RemoveObjectAnimation();
  12090. void ResetToDefault();
  12091. bool Save(File) const;
  12092. bool Save(VectorBuffer&) const;
  12093. bool SaveJSON(JSONValue&) const;
  12094. bool SaveXML(XMLElement&) const;
  12095. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12096. void SetAnimationTime(float);
  12097. bool SetAttribute(const String&, const Variant&);
  12098. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12099. void SetAttributeAnimationSpeed(const String&, float);
  12100. void SetAttributeAnimationTime(const String&, float);
  12101. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12102. void SetFlip(bool, bool, bool = false);
  12103. void SetInterceptNetworkUpdate(const String&, bool);
  12104. // Properties:
  12105. float alpha;
  12106. bool animationEnabled;
  12107. /* readonly */
  12108. Array<Variant> attributeDefaults;
  12109. /* readonly */
  12110. Array<AttributeInfo> attributeInfos;
  12111. Array<Variant> attributes;
  12112. BlendMode blendMode;
  12113. IntRect border;
  12114. /* readonly */
  12115. BoundingBox boundingBox;
  12116. bool castShadows;
  12117. /* readonly */
  12118. String category;
  12119. Color color;
  12120. Material customMaterial;
  12121. float drawDistance;
  12122. Rect drawRect;
  12123. bool enabled;
  12124. /* readonly */
  12125. bool enabledEffective;
  12126. bool flipX;
  12127. bool flipY;
  12128. Vector2 hotSpot;
  12129. /* readonly */
  12130. uint id;
  12131. /* readonly */
  12132. bool inView;
  12133. int layer;
  12134. uint lightMask;
  12135. float lodBias;
  12136. uint maxLights;
  12137. /* readonly */
  12138. Node node;
  12139. /* readonly */
  12140. uint numAttributes;
  12141. ObjectAnimation objectAnimation;
  12142. bool occludee;
  12143. bool occluder;
  12144. int orderInLayer;
  12145. /* readonly */
  12146. int refs;
  12147. /* readonly */
  12148. bool replicated;
  12149. float shadowDistance;
  12150. uint shadowMask;
  12151. Sprite2D sprite;
  12152. bool swapXY;
  12153. bool temporary;
  12154. Rect textureRect;
  12155. /* readonly */
  12156. StringHash type;
  12157. /* readonly */
  12158. String typeName;
  12159. bool useDrawRect;
  12160. bool useHotSpot;
  12161. bool useTextureRect;
  12162. uint viewMask;
  12163. /* readonly */
  12164. int weakRefs;
  12165. /* readonly */
  12166. BoundingBox worldBoundingBox;
  12167. uint zoneMask;
  12168. };
  12169. class String
  12170. {
  12171. public:
  12172. ~String();
  12173. String();
  12174. String(const String&in);
  12175. String(int);
  12176. String(uint);
  12177. String(float);
  12178. String(double);
  12179. String(bool);
  12180. String(const char*);
  12181. // Methods:
  12182. void AppendUTF8(uint);
  12183. uint AtUTF8(uint) const;
  12184. uint ByteOffsetUTF8(uint) const;
  12185. void Clear();
  12186. int Compare(const String&, bool = true) const;
  12187. bool Contains(const String&, bool = true) const;
  12188. bool Contains(uint8, bool = true) const;
  12189. bool EndsWith(const String&, bool = true) const;
  12190. uint Find(const String&, uint = 0, bool = true) const;
  12191. uint Find(uint8, uint = 0, bool = true) const;
  12192. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  12193. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  12194. void Join(Array<String>&, const String&);
  12195. uint NextUTF8Char(uint&) const;
  12196. void Replace(const String&, const String&, bool = true);
  12197. void Replace(uint8, uint8, bool = true);
  12198. void ReplaceUTF8(uint, uint);
  12199. String Replaced(const String&, const String&, bool = true) const;
  12200. String Replaced(uint8, uint8, bool = true) const;
  12201. void Resize(uint);
  12202. void SetUTF8FromLatin1(const String&);
  12203. Array<String> Split(uint8, bool = false) const;
  12204. bool StartsWith(const String&, bool = true) const;
  12205. String Substring(uint) const;
  12206. String Substring(uint, uint) const;
  12207. String SubstringUTF8(uint) const;
  12208. String SubstringUTF8(uint, uint) const;
  12209. bool ToBool() const;
  12210. Color ToColor() const;
  12211. double ToDouble() const;
  12212. float ToFloat() const;
  12213. int ToInt(int = 10) const;
  12214. int64 ToInt64(int = 10) const;
  12215. IntRect ToIntRect() const;
  12216. IntVector2 ToIntVector2() const;
  12217. IntVector3 ToIntVector3() const;
  12218. String ToLower() const;
  12219. Matrix3 ToMatrix3() const;
  12220. Matrix3x4 ToMatrix3x4() const;
  12221. Matrix4 ToMatrix4() const;
  12222. Quaternion ToQuaternion() const;
  12223. uint ToUInt(int = 10) const;
  12224. uint64 ToUInt64(int = 10) const;
  12225. String ToUpper() const;
  12226. Vector2 ToVector2() const;
  12227. Vector3 ToVector3() const;
  12228. Vector4 ToVector4(bool = false) const;
  12229. Variant ToVectorVariant() const;
  12230. String Trimmed() const;
  12231. // Properties:
  12232. /* readonly */
  12233. bool empty;
  12234. /* readonly */
  12235. uint length;
  12236. /* readonly */
  12237. uint utf8Length;
  12238. };
  12239. class StringHash
  12240. {
  12241. public:
  12242. StringHash();
  12243. StringHash(const StringHash&in);
  12244. StringHash(const String&in);
  12245. StringHash(uint);
  12246. // Methods:
  12247. String ToString() const;
  12248. // Properties:
  12249. /* readonly */
  12250. uint value;
  12251. };
  12252. class Technique
  12253. {
  12254. public:
  12255. Technique();
  12256. Technique(const String&in);
  12257. // Methods:
  12258. Technique Clone(const String& = String ( )) const;
  12259. Pass CreatePass(const String&);
  12260. Pass GetPass(const String&);
  12261. Pass GetSupportedPass(const String&);
  12262. bool HasPass(const String&) const;
  12263. bool HasSubscribedToEvent(Object, const String&);
  12264. bool HasSubscribedToEvent(const String&);
  12265. bool Load(File);
  12266. bool Load(VectorBuffer&);
  12267. bool Load(const String&);
  12268. void RemovePass(const String&);
  12269. bool Save(File) const;
  12270. bool Save(VectorBuffer&) const;
  12271. bool Save(const String&) const;
  12272. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12273. // Properties:
  12274. /* readonly */
  12275. String category;
  12276. bool desktop;
  12277. /* readonly */
  12278. uint memoryUse;
  12279. String name;
  12280. /* readonly */
  12281. uint numPasses;
  12282. /* readonly */
  12283. Array<String> passNames;
  12284. /* readonly */
  12285. Array<Pass> passes;
  12286. /* readonly */
  12287. int refs;
  12288. /* readonly */
  12289. bool supported;
  12290. /* readonly */
  12291. StringHash type;
  12292. /* readonly */
  12293. String typeName;
  12294. /* readonly */
  12295. uint useTimer;
  12296. /* readonly */
  12297. int weakRefs;
  12298. };
  12299. class TechniqueEntry
  12300. {
  12301. public:
  12302. ~TechniqueEntry();
  12303. TechniqueEntry();
  12304. TechniqueEntry(const TechniqueEntry&in);
  12305. // Properties:
  12306. float lodDistance;
  12307. int qualityLevel;
  12308. Technique technique;
  12309. };
  12310. class Terrain
  12311. {
  12312. public:
  12313. // Methods:
  12314. void ApplyAttributes();
  12315. void ApplyHeightMap();
  12316. void DrawDebugGeometry(DebugRenderer, bool);
  12317. Variant GetAttribute(const String&) const;
  12318. ValueAnimation GetAttributeAnimation(const String&) const;
  12319. float GetAttributeAnimationSpeed(const String&) const;
  12320. float GetAttributeAnimationTime(const String&) const;
  12321. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12322. Variant GetAttributeDefault(const String&) const;
  12323. float GetHeight(const Vector3&) const;
  12324. bool GetInterceptNetworkUpdate(const String&) const;
  12325. TerrainPatch GetNeighborPatch(int, int) const;
  12326. Vector3 GetNormal(const Vector3&) const;
  12327. TerrainPatch GetPatch(int, int) const;
  12328. bool HasSubscribedToEvent(Object, const String&);
  12329. bool HasSubscribedToEvent(const String&);
  12330. Vector3 HeightMapToWorld(const IntVector2&) const;
  12331. bool Load(File);
  12332. bool Load(VectorBuffer&);
  12333. bool LoadJSON(const JSONValue&);
  12334. bool LoadXML(const XMLElement&);
  12335. void MarkNetworkUpdate() const;
  12336. void Remove();
  12337. void RemoveAttributeAnimation(const String&);
  12338. void RemoveInstanceDefault();
  12339. void RemoveObjectAnimation();
  12340. void ResetToDefault();
  12341. bool Save(File) const;
  12342. bool Save(VectorBuffer&) const;
  12343. bool SaveJSON(JSONValue&) const;
  12344. bool SaveXML(XMLElement&) const;
  12345. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12346. void SetAnimationTime(float);
  12347. bool SetAttribute(const String&, const Variant&);
  12348. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12349. void SetAttributeAnimationSpeed(const String&, float);
  12350. void SetAttributeAnimationTime(const String&, float);
  12351. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12352. void SetInterceptNetworkUpdate(const String&, bool);
  12353. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  12354. IntVector2 WorldToHeightMap(const Vector3&) const;
  12355. // Properties:
  12356. bool animationEnabled;
  12357. /* readonly */
  12358. Array<Variant> attributeDefaults;
  12359. /* readonly */
  12360. Array<AttributeInfo> attributeInfos;
  12361. Array<Variant> attributes;
  12362. bool castShadows;
  12363. /* readonly */
  12364. String category;
  12365. float drawDistance;
  12366. Terrain eastNeighbor;
  12367. bool enabled;
  12368. /* readonly */
  12369. bool enabledEffective;
  12370. Image heightMap;
  12371. /* readonly */
  12372. uint id;
  12373. uint lightMask;
  12374. float lodBias;
  12375. Material material;
  12376. uint maxLights;
  12377. uint maxLodLevels;
  12378. /* readonly */
  12379. Node node;
  12380. Terrain northNeighbor;
  12381. /* readonly */
  12382. uint numAttributes;
  12383. /* readonly */
  12384. IntVector2 numPatches;
  12385. /* readonly */
  12386. IntVector2 numVertices;
  12387. ObjectAnimation objectAnimation;
  12388. bool occludee;
  12389. bool occluder;
  12390. uint occlusionLodLevel;
  12391. int patchSize;
  12392. /* readonly */
  12393. Array<TerrainPatch> patches;
  12394. /* readonly */
  12395. int refs;
  12396. /* readonly */
  12397. bool replicated;
  12398. float shadowDistance;
  12399. uint shadowMask;
  12400. bool smoothing;
  12401. Terrain southNeighbor;
  12402. Vector3 spacing;
  12403. bool temporary;
  12404. /* readonly */
  12405. StringHash type;
  12406. /* readonly */
  12407. String typeName;
  12408. uint viewMask;
  12409. /* readonly */
  12410. int weakRefs;
  12411. Terrain westNeighbor;
  12412. uint zoneMask;
  12413. };
  12414. class TerrainPatch
  12415. {
  12416. public:
  12417. // Methods:
  12418. void ApplyAttributes();
  12419. void DrawDebugGeometry(DebugRenderer, bool);
  12420. Variant GetAttribute(const String&) const;
  12421. ValueAnimation GetAttributeAnimation(const String&) const;
  12422. float GetAttributeAnimationSpeed(const String&) const;
  12423. float GetAttributeAnimationTime(const String&) const;
  12424. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12425. Variant GetAttributeDefault(const String&) const;
  12426. bool GetInterceptNetworkUpdate(const String&) const;
  12427. bool HasSubscribedToEvent(Object, const String&);
  12428. bool HasSubscribedToEvent(const String&);
  12429. bool IsInView(Camera) const;
  12430. bool Load(File);
  12431. bool Load(VectorBuffer&);
  12432. bool LoadJSON(const JSONValue&);
  12433. bool LoadXML(const XMLElement&);
  12434. void MarkNetworkUpdate() const;
  12435. void Remove();
  12436. void RemoveAttributeAnimation(const String&);
  12437. void RemoveInstanceDefault();
  12438. void RemoveObjectAnimation();
  12439. void ResetToDefault();
  12440. bool Save(File) const;
  12441. bool Save(VectorBuffer&) const;
  12442. bool SaveJSON(JSONValue&) const;
  12443. bool SaveXML(XMLElement&) const;
  12444. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12445. void SetAnimationTime(float);
  12446. bool SetAttribute(const String&, const Variant&);
  12447. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12448. void SetAttributeAnimationSpeed(const String&, float);
  12449. void SetAttributeAnimationTime(const String&, float);
  12450. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12451. void SetInterceptNetworkUpdate(const String&, bool);
  12452. // Properties:
  12453. bool animationEnabled;
  12454. /* readonly */
  12455. Array<Variant> attributeDefaults;
  12456. /* readonly */
  12457. Array<AttributeInfo> attributeInfos;
  12458. Array<Variant> attributes;
  12459. /* readonly */
  12460. BoundingBox boundingBox;
  12461. bool castShadows;
  12462. /* readonly */
  12463. String category;
  12464. float drawDistance;
  12465. bool enabled;
  12466. /* readonly */
  12467. bool enabledEffective;
  12468. /* readonly */
  12469. uint id;
  12470. /* readonly */
  12471. bool inView;
  12472. uint lightMask;
  12473. float lodBias;
  12474. uint maxLights;
  12475. /* readonly */
  12476. Node node;
  12477. /* readonly */
  12478. uint numAttributes;
  12479. ObjectAnimation objectAnimation;
  12480. bool occludee;
  12481. bool occluder;
  12482. /* readonly */
  12483. int refs;
  12484. /* readonly */
  12485. bool replicated;
  12486. float shadowDistance;
  12487. uint shadowMask;
  12488. bool temporary;
  12489. /* readonly */
  12490. StringHash type;
  12491. /* readonly */
  12492. String typeName;
  12493. uint viewMask;
  12494. /* readonly */
  12495. int weakRefs;
  12496. /* readonly */
  12497. BoundingBox worldBoundingBox;
  12498. uint zoneMask;
  12499. };
  12500. class Text
  12501. {
  12502. public:
  12503. Text();
  12504. Text(const String&in);
  12505. // Methods:
  12506. void AddChild(UIElement);
  12507. void AddTag(const String&);
  12508. void AddTags(const String&, int8 = ';');
  12509. void ApplyAttributes();
  12510. void BringToFront();
  12511. void ClearSelection();
  12512. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  12513. void DisableLayoutUpdate();
  12514. IntVector2 ElementToScreen(const IntVector2&);
  12515. void EnableLayoutUpdate();
  12516. uint FindChild(UIElement) const;
  12517. Variant GetAttribute(const String&) const;
  12518. ValueAnimation GetAttributeAnimation(const String&) const;
  12519. float GetAttributeAnimationSpeed(const String&) const;
  12520. float GetAttributeAnimationTime(const String&) const;
  12521. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12522. Variant GetAttributeDefault(const String&) const;
  12523. UIElement GetChild(const String&, bool = false) const;
  12524. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  12525. Array<UIElement> GetChildren(bool = false) const;
  12526. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  12527. UIElement GetElementEventSender() const;
  12528. bool GetInterceptNetworkUpdate(const String&) const;
  12529. uint GetNumChildren(bool) const;
  12530. bool HasSubscribedToEvent(Object, const String&);
  12531. bool HasSubscribedToEvent(const String&);
  12532. bool HasTag(const String&) const;
  12533. void InsertChild(uint, UIElement);
  12534. bool IsChildOf(UIElement) const;
  12535. bool IsInside(IntVector2, bool);
  12536. bool IsInsideCombined(IntVector2, bool);
  12537. bool Load(File);
  12538. bool Load(VectorBuffer&);
  12539. UIElement LoadChildXML(XMLFile, XMLFile);
  12540. UIElement LoadChildXML(const XMLElement&, XMLFile);
  12541. bool LoadJSON(const JSONValue&);
  12542. bool LoadXML(File);
  12543. bool LoadXML(VectorBuffer&);
  12544. bool LoadXML(XMLFile, XMLFile);
  12545. bool LoadXML(const XMLElement&, XMLFile);
  12546. bool LoadXML(const XMLElement&);
  12547. void MarkNetworkUpdate() const;
  12548. void Remove();
  12549. void RemoveAllChildren();
  12550. void RemoveAllTags();
  12551. void RemoveAttributeAnimation(const String&);
  12552. void RemoveChild(UIElement, uint = 0);
  12553. void RemoveChild(uint);
  12554. void RemoveInstanceDefault();
  12555. void RemoveObjectAnimation();
  12556. bool RemoveTag(const String&);
  12557. void ResetDeepEnabled();
  12558. void ResetToDefault();
  12559. bool Save(File) const;
  12560. bool Save(VectorBuffer&) const;
  12561. bool SaveJSON(JSONValue&) const;
  12562. bool SaveXML(File, const String& = "\t");
  12563. bool SaveXML(VectorBuffer&, const String& = "\t");
  12564. bool SaveXML(XMLElement&) const;
  12565. IntVector2 ScreenToElement(const IntVector2&);
  12566. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12567. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12568. void SetAnimationTime(float);
  12569. bool SetAttribute(const String&, const Variant&);
  12570. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12571. void SetAttributeAnimationSpeed(const String&, float);
  12572. void SetAttributeAnimationTime(const String&, float);
  12573. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12574. void SetDeepEnabled(bool);
  12575. void SetEnabledRecursive(bool);
  12576. void SetFixedHeight(int);
  12577. void SetFixedSize(int, int);
  12578. void SetFixedWidth(int);
  12579. bool SetFont(Font, float);
  12580. bool SetFont(const String&, float);
  12581. void SetInterceptNetworkUpdate(const String&, bool);
  12582. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  12583. void SetMaxAnchor(float, float);
  12584. void SetMaxSize(int, int);
  12585. void SetMinAnchor(float, float);
  12586. void SetMinSize(int, int);
  12587. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  12588. void SetPivot(float, float);
  12589. void SetPosition(int, int);
  12590. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  12591. void SetSize(int, int);
  12592. bool SetStyle(const String&, XMLFile = null);
  12593. bool SetStyle(const XMLElement&);
  12594. bool SetStyleAuto(XMLFile = null);
  12595. void UpdateLayout();
  12596. const Variant& GetVar(const StringHash&);
  12597. // Properties:
  12598. bool animationEnabled;
  12599. /* readonly */
  12600. Array<Variant> attributeDefaults;
  12601. /* readonly */
  12602. Array<AttributeInfo> attributeInfos;
  12603. Array<Variant> attributes;
  12604. bool autoLocalizable;
  12605. bool bringToBack;
  12606. bool bringToFront;
  12607. /* readonly */
  12608. String category;
  12609. /* readonly */
  12610. Array<Vector2> charPositions;
  12611. /* readonly */
  12612. Array<Vector2> charSizes;
  12613. /* readonly */
  12614. IntVector2 childOffset;
  12615. /* readonly */
  12616. Array<UIElement> children;
  12617. IntRect clipBorder;
  12618. bool clipChildren;
  12619. /* writeonly */
  12620. Color color;
  12621. /* readonly */
  12622. bool colorGradient;
  12623. Array<Color> colors;
  12624. /* readonly */
  12625. IntRect combinedScreenRect;
  12626. XMLFile defaultStyle;
  12627. /* readonly */
  12628. float derivedOpacity;
  12629. /* readonly */
  12630. uint dragButtonCombo;
  12631. /* readonly */
  12632. int dragButtonCount;
  12633. uint dragDropMode;
  12634. bool editable;
  12635. Color effectColor;
  12636. bool effectRoundStroke;
  12637. IntVector2 effectShadowOffset;
  12638. int effectStrokeThickness;
  12639. bool elementEventSender;
  12640. bool enableAnchor;
  12641. bool enabled;
  12642. /* readonly */
  12643. bool enabledSelf;
  12644. /* readonly */
  12645. bool fixedHeight;
  12646. /* readonly */
  12647. bool fixedSize;
  12648. /* readonly */
  12649. bool fixedWidth;
  12650. bool focus;
  12651. FocusMode focusMode;
  12652. /* readonly */
  12653. Font font;
  12654. float fontSize;
  12655. int height;
  12656. HorizontalAlignment horizontalAlignment;
  12657. Color hoverColor;
  12658. /* readonly */
  12659. bool hovering;
  12660. int indent;
  12661. int indentSpacing;
  12662. /* readonly */
  12663. int indentWidth;
  12664. bool internal;
  12665. IntRect layoutBorder;
  12666. Vector2 layoutFlexScale;
  12667. LayoutMode layoutMode;
  12668. int layoutSpacing;
  12669. Vector2 maxAnchor;
  12670. int maxHeight;
  12671. IntVector2 maxOffset;
  12672. IntVector2 maxSize;
  12673. int maxWidth;
  12674. Vector2 minAnchor;
  12675. int minHeight;
  12676. IntVector2 minOffset;
  12677. IntVector2 minSize;
  12678. int minWidth;
  12679. String name;
  12680. /* readonly */
  12681. uint numAllChildren;
  12682. /* readonly */
  12683. uint numAttributes;
  12684. /* readonly */
  12685. uint numChars;
  12686. /* readonly */
  12687. uint numChildren;
  12688. /* readonly */
  12689. uint numRows;
  12690. ObjectAnimation objectAnimation;
  12691. float opacity;
  12692. UIElement parent;
  12693. Vector2 pivot;
  12694. IntVector2 position;
  12695. int priority;
  12696. /* readonly */
  12697. int refs;
  12698. /* readonly */
  12699. UIElement root;
  12700. /* readonly */
  12701. float rowHeight;
  12702. float rowSpacing;
  12703. /* readonly */
  12704. Array<float> rowWidths;
  12705. /* readonly */
  12706. IntVector2 screenPosition;
  12707. bool selected;
  12708. Color selectionColor;
  12709. /* readonly */
  12710. uint selectionLength;
  12711. /* readonly */
  12712. uint selectionStart;
  12713. IntVector2 size;
  12714. bool sortChildren;
  12715. String style;
  12716. /* readonly */
  12717. Array<String> tags;
  12718. bool temporary;
  12719. String text;
  12720. HorizontalAlignment textAlignment;
  12721. TextEffect textEffect;
  12722. TraversalMode traversalMode;
  12723. /* readonly */
  12724. StringHash type;
  12725. /* readonly */
  12726. String typeName;
  12727. bool useDerivedOpacity;
  12728. /* readonly */
  12729. VariantMap vars;
  12730. VerticalAlignment verticalAlignment;
  12731. bool visible;
  12732. /* readonly */
  12733. bool visibleEffective;
  12734. /* readonly */
  12735. int weakRefs;
  12736. int width;
  12737. bool wordwrap;
  12738. };
  12739. class Text3D
  12740. {
  12741. public:
  12742. // Methods:
  12743. void ApplyAttributes();
  12744. void DrawDebugGeometry(DebugRenderer, bool);
  12745. Variant GetAttribute(const String&) const;
  12746. ValueAnimation GetAttributeAnimation(const String&) const;
  12747. float GetAttributeAnimationSpeed(const String&) const;
  12748. float GetAttributeAnimationTime(const String&) const;
  12749. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12750. Variant GetAttributeDefault(const String&) const;
  12751. bool GetInterceptNetworkUpdate(const String&) const;
  12752. bool HasSubscribedToEvent(Object, const String&);
  12753. bool HasSubscribedToEvent(const String&);
  12754. bool IsInView(Camera) const;
  12755. bool Load(File);
  12756. bool Load(VectorBuffer&);
  12757. bool LoadJSON(const JSONValue&);
  12758. bool LoadXML(const XMLElement&);
  12759. void MarkNetworkUpdate() const;
  12760. void Remove();
  12761. void RemoveAttributeAnimation(const String&);
  12762. void RemoveInstanceDefault();
  12763. void RemoveObjectAnimation();
  12764. void ResetToDefault();
  12765. bool Save(File) const;
  12766. bool Save(VectorBuffer&) const;
  12767. bool SaveJSON(JSONValue&) const;
  12768. bool SaveXML(XMLElement&) const;
  12769. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12770. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  12771. void SetAnimationTime(float);
  12772. bool SetAttribute(const String&, const Variant&);
  12773. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12774. void SetAttributeAnimationSpeed(const String&, float);
  12775. void SetAttributeAnimationTime(const String&, float);
  12776. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12777. bool SetFont(Font, float);
  12778. bool SetFont(const String&, float);
  12779. void SetInterceptNetworkUpdate(const String&, bool);
  12780. // Properties:
  12781. bool animationEnabled;
  12782. /* readonly */
  12783. Array<Variant> attributeDefaults;
  12784. /* readonly */
  12785. Array<AttributeInfo> attributeInfos;
  12786. Array<Variant> attributes;
  12787. /* readonly */
  12788. BoundingBox boundingBox;
  12789. bool castShadows;
  12790. /* readonly */
  12791. String category;
  12792. /* readonly */
  12793. Array<Vector2> charPositions;
  12794. /* readonly */
  12795. Array<Vector2> charSizes;
  12796. /* writeonly */
  12797. Color color;
  12798. Array<Color> colors;
  12799. float drawDistance;
  12800. Color effectColor;
  12801. float effectDepthBias;
  12802. bool effectRoundStroke;
  12803. IntVector2 effectShadowOffset;
  12804. int effectStrokeThickness;
  12805. bool enabled;
  12806. /* readonly */
  12807. bool enabledEffective;
  12808. FaceCameraMode faceCameraMode;
  12809. bool fixedScreenSize;
  12810. /* readonly */
  12811. Font font;
  12812. float fontSize;
  12813. /* readonly */
  12814. int height;
  12815. HorizontalAlignment horizontalAlignment;
  12816. /* readonly */
  12817. uint id;
  12818. /* readonly */
  12819. bool inView;
  12820. uint lightMask;
  12821. float lodBias;
  12822. Material material;
  12823. uint maxLights;
  12824. /* readonly */
  12825. Node node;
  12826. /* readonly */
  12827. uint numAttributes;
  12828. /* readonly */
  12829. uint numChars;
  12830. /* readonly */
  12831. uint numRows;
  12832. ObjectAnimation objectAnimation;
  12833. bool occludee;
  12834. bool occluder;
  12835. float opacity;
  12836. /* readonly */
  12837. int refs;
  12838. /* readonly */
  12839. bool replicated;
  12840. /* readonly */
  12841. float rowHeight;
  12842. float rowSpacing;
  12843. /* readonly */
  12844. Array<float> rowWidths;
  12845. float shadowDistance;
  12846. uint shadowMask;
  12847. bool temporary;
  12848. String text;
  12849. HorizontalAlignment textAlignment;
  12850. TextEffect textEffect;
  12851. /* readonly */
  12852. StringHash type;
  12853. /* readonly */
  12854. String typeName;
  12855. VerticalAlignment verticalAlignment;
  12856. uint viewMask;
  12857. /* readonly */
  12858. int weakRefs;
  12859. int width;
  12860. bool wordwrap;
  12861. /* readonly */
  12862. BoundingBox worldBoundingBox;
  12863. uint zoneMask;
  12864. };
  12865. class Texture
  12866. {
  12867. public:
  12868. Texture();
  12869. Texture(const String&in);
  12870. // Methods:
  12871. void AddMetadata(const String&, const Variant&);
  12872. void ClearDataLost();
  12873. bool HasSubscribedToEvent(Object, const String&);
  12874. bool HasSubscribedToEvent(const String&);
  12875. bool Load(File);
  12876. bool Load(VectorBuffer&);
  12877. bool Load(const String&);
  12878. void RemoveAllMetadata();
  12879. void RemoveMetadata(const String&);
  12880. bool Save(File) const;
  12881. bool Save(VectorBuffer&) const;
  12882. bool Save(const String&) const;
  12883. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12884. void SetNumLevels(uint);
  12885. // Properties:
  12886. Array<TextureAddressMode> addressMode;
  12887. uint anisotropy;
  12888. /* readonly */
  12889. bool autoResolve;
  12890. Texture backupTexture;
  12891. Color borderColor;
  12892. /* readonly */
  12893. String category;
  12894. /* readonly */
  12895. uint components;
  12896. /* readonly */
  12897. bool compressed;
  12898. /* readonly */
  12899. bool dataLost;
  12900. TextureFilterMode filterMode;
  12901. /* readonly */
  12902. uint format;
  12903. /* readonly */
  12904. bool hasMetadata;
  12905. /* readonly */
  12906. int height;
  12907. /* readonly */
  12908. Array<int> levelHeight;
  12909. /* readonly */
  12910. Array<int> levelWidth;
  12911. /* readonly */
  12912. uint levels;
  12913. /* readonly */
  12914. bool levelsDirty;
  12915. /* readonly */
  12916. uint memoryUse;
  12917. Array<Variant> metadata;
  12918. Array<int> mipsToSkip;
  12919. /* readonly */
  12920. int multiSample;
  12921. String name;
  12922. /* readonly */
  12923. int refs;
  12924. /* readonly */
  12925. bool resolveDirty;
  12926. bool sRGB;
  12927. /* readonly */
  12928. StringHash type;
  12929. /* readonly */
  12930. String typeName;
  12931. /* readonly */
  12932. TextureUsage usage;
  12933. /* readonly */
  12934. uint useTimer;
  12935. /* readonly */
  12936. int weakRefs;
  12937. /* readonly */
  12938. int width;
  12939. };
  12940. class Texture2D
  12941. {
  12942. public:
  12943. Texture2D();
  12944. Texture2D(const String&in);
  12945. // Methods:
  12946. void AddMetadata(const String&, const Variant&);
  12947. void ClearDataLost();
  12948. Image GetImage() const;
  12949. bool HasSubscribedToEvent(Object, const String&);
  12950. bool HasSubscribedToEvent(const String&);
  12951. bool Load(File);
  12952. bool Load(VectorBuffer&);
  12953. bool Load(const String&);
  12954. void RemoveAllMetadata();
  12955. void RemoveMetadata(const String&);
  12956. bool Save(File) const;
  12957. bool Save(VectorBuffer&) const;
  12958. bool Save(const String&) const;
  12959. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  12960. bool SetData(Image, bool = false);
  12961. void SetNumLevels(uint);
  12962. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  12963. // Properties:
  12964. Array<TextureAddressMode> addressMode;
  12965. uint anisotropy;
  12966. /* readonly */
  12967. bool autoResolve;
  12968. Texture backupTexture;
  12969. Color borderColor;
  12970. /* readonly */
  12971. String category;
  12972. /* readonly */
  12973. uint components;
  12974. /* readonly */
  12975. bool compressed;
  12976. /* readonly */
  12977. bool dataLost;
  12978. TextureFilterMode filterMode;
  12979. /* readonly */
  12980. uint format;
  12981. /* readonly */
  12982. bool hasMetadata;
  12983. /* readonly */
  12984. int height;
  12985. /* readonly */
  12986. Array<int> levelHeight;
  12987. /* readonly */
  12988. Array<int> levelWidth;
  12989. /* readonly */
  12990. uint levels;
  12991. /* readonly */
  12992. bool levelsDirty;
  12993. /* readonly */
  12994. uint memoryUse;
  12995. Array<Variant> metadata;
  12996. Array<int> mipsToSkip;
  12997. /* readonly */
  12998. int multiSample;
  12999. String name;
  13000. /* readonly */
  13001. int refs;
  13002. /* readonly */
  13003. RenderSurface renderSurface;
  13004. /* readonly */
  13005. bool resolveDirty;
  13006. bool sRGB;
  13007. /* readonly */
  13008. StringHash type;
  13009. /* readonly */
  13010. String typeName;
  13011. /* readonly */
  13012. TextureUsage usage;
  13013. /* readonly */
  13014. uint useTimer;
  13015. /* readonly */
  13016. int weakRefs;
  13017. /* readonly */
  13018. int width;
  13019. };
  13020. class Texture2DArray
  13021. {
  13022. public:
  13023. Texture2DArray();
  13024. Texture2DArray(const String&in);
  13025. // Methods:
  13026. void AddMetadata(const String&, const Variant&);
  13027. void ClearDataLost();
  13028. bool HasSubscribedToEvent(Object, const String&);
  13029. bool HasSubscribedToEvent(const String&);
  13030. bool Load(File);
  13031. bool Load(VectorBuffer&);
  13032. bool Load(const String&);
  13033. void RemoveAllMetadata();
  13034. void RemoveMetadata(const String&);
  13035. bool Save(File) const;
  13036. bool Save(VectorBuffer&) const;
  13037. bool Save(const String&) const;
  13038. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13039. bool SetData(uint, Image, bool = false);
  13040. void SetNumLevels(uint);
  13041. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13042. // Properties:
  13043. Array<TextureAddressMode> addressMode;
  13044. uint anisotropy;
  13045. /* readonly */
  13046. bool autoResolve;
  13047. Texture backupTexture;
  13048. Color borderColor;
  13049. /* readonly */
  13050. String category;
  13051. /* readonly */
  13052. uint components;
  13053. /* readonly */
  13054. bool compressed;
  13055. /* readonly */
  13056. bool dataLost;
  13057. TextureFilterMode filterMode;
  13058. /* readonly */
  13059. uint format;
  13060. /* readonly */
  13061. bool hasMetadata;
  13062. /* readonly */
  13063. int height;
  13064. uint layers;
  13065. /* readonly */
  13066. Array<int> levelHeight;
  13067. /* readonly */
  13068. Array<int> levelWidth;
  13069. /* readonly */
  13070. uint levels;
  13071. /* readonly */
  13072. bool levelsDirty;
  13073. /* readonly */
  13074. uint memoryUse;
  13075. Array<Variant> metadata;
  13076. Array<int> mipsToSkip;
  13077. /* readonly */
  13078. int multiSample;
  13079. String name;
  13080. /* readonly */
  13081. int refs;
  13082. /* readonly */
  13083. RenderSurface renderSurface;
  13084. /* readonly */
  13085. bool resolveDirty;
  13086. bool sRGB;
  13087. /* readonly */
  13088. StringHash type;
  13089. /* readonly */
  13090. String typeName;
  13091. /* readonly */
  13092. TextureUsage usage;
  13093. /* readonly */
  13094. uint useTimer;
  13095. /* readonly */
  13096. int weakRefs;
  13097. /* readonly */
  13098. int width;
  13099. };
  13100. class Texture3D
  13101. {
  13102. public:
  13103. Texture3D();
  13104. Texture3D(const String&in);
  13105. // Methods:
  13106. void AddMetadata(const String&, const Variant&);
  13107. void ClearDataLost();
  13108. bool HasSubscribedToEvent(Object, const String&);
  13109. bool HasSubscribedToEvent(const String&);
  13110. bool Load(File);
  13111. bool Load(VectorBuffer&);
  13112. bool Load(const String&);
  13113. void RemoveAllMetadata();
  13114. void RemoveMetadata(const String&);
  13115. bool Save(File) const;
  13116. bool Save(VectorBuffer&) const;
  13117. bool Save(const String&) const;
  13118. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13119. bool SetData(Image, bool = false);
  13120. void SetNumLevels(uint);
  13121. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  13122. // Properties:
  13123. Array<TextureAddressMode> addressMode;
  13124. uint anisotropy;
  13125. /* readonly */
  13126. bool autoResolve;
  13127. Texture backupTexture;
  13128. Color borderColor;
  13129. /* readonly */
  13130. String category;
  13131. /* readonly */
  13132. uint components;
  13133. /* readonly */
  13134. bool compressed;
  13135. /* readonly */
  13136. bool dataLost;
  13137. TextureFilterMode filterMode;
  13138. /* readonly */
  13139. uint format;
  13140. /* readonly */
  13141. bool hasMetadata;
  13142. /* readonly */
  13143. int height;
  13144. /* readonly */
  13145. Array<int> levelHeight;
  13146. /* readonly */
  13147. Array<int> levelWidth;
  13148. /* readonly */
  13149. uint levels;
  13150. /* readonly */
  13151. bool levelsDirty;
  13152. /* readonly */
  13153. uint memoryUse;
  13154. Array<Variant> metadata;
  13155. Array<int> mipsToSkip;
  13156. /* readonly */
  13157. int multiSample;
  13158. String name;
  13159. /* readonly */
  13160. int refs;
  13161. /* readonly */
  13162. bool resolveDirty;
  13163. bool sRGB;
  13164. /* readonly */
  13165. StringHash type;
  13166. /* readonly */
  13167. String typeName;
  13168. /* readonly */
  13169. TextureUsage usage;
  13170. /* readonly */
  13171. uint useTimer;
  13172. /* readonly */
  13173. int weakRefs;
  13174. /* readonly */
  13175. int width;
  13176. };
  13177. class TextureCube
  13178. {
  13179. public:
  13180. TextureCube();
  13181. TextureCube(const String&in);
  13182. // Methods:
  13183. void AddMetadata(const String&, const Variant&);
  13184. void ClearDataLost();
  13185. Image GetImage(CubeMapFace) const;
  13186. bool HasSubscribedToEvent(Object, const String&);
  13187. bool HasSubscribedToEvent(const String&);
  13188. bool Load(File);
  13189. bool Load(VectorBuffer&);
  13190. bool Load(const String&);
  13191. void RemoveAllMetadata();
  13192. void RemoveMetadata(const String&);
  13193. bool Save(File) const;
  13194. bool Save(VectorBuffer&) const;
  13195. bool Save(const String&) const;
  13196. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13197. bool SetData(CubeMapFace, Image, bool = false);
  13198. void SetNumLevels(uint);
  13199. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  13200. // Properties:
  13201. Array<TextureAddressMode> addressMode;
  13202. uint anisotropy;
  13203. /* readonly */
  13204. bool autoResolve;
  13205. Texture backupTexture;
  13206. Color borderColor;
  13207. /* readonly */
  13208. String category;
  13209. /* readonly */
  13210. uint components;
  13211. /* readonly */
  13212. bool compressed;
  13213. /* readonly */
  13214. bool dataLost;
  13215. TextureFilterMode filterMode;
  13216. /* readonly */
  13217. uint format;
  13218. /* readonly */
  13219. bool hasMetadata;
  13220. /* readonly */
  13221. int height;
  13222. /* readonly */
  13223. Array<int> levelHeight;
  13224. /* readonly */
  13225. Array<int> levelWidth;
  13226. /* readonly */
  13227. uint levels;
  13228. /* readonly */
  13229. bool levelsDirty;
  13230. /* readonly */
  13231. uint memoryUse;
  13232. Array<Variant> metadata;
  13233. Array<int> mipsToSkip;
  13234. /* readonly */
  13235. int multiSample;
  13236. String name;
  13237. /* readonly */
  13238. int refs;
  13239. /* readonly */
  13240. Array<RenderSurface> renderSurfaces;
  13241. /* readonly */
  13242. bool resolveDirty;
  13243. bool sRGB;
  13244. /* readonly */
  13245. StringHash type;
  13246. /* readonly */
  13247. String typeName;
  13248. /* readonly */
  13249. TextureUsage usage;
  13250. /* readonly */
  13251. uint useTimer;
  13252. /* readonly */
  13253. int weakRefs;
  13254. /* readonly */
  13255. int width;
  13256. };
  13257. class TextureFrame
  13258. {
  13259. public:
  13260. // Properties:
  13261. float time;
  13262. Rect uv;
  13263. };
  13264. class Tile2D
  13265. {
  13266. public:
  13267. // Methods:
  13268. bool HasProperty(const String&) const;
  13269. const String& GetProperty(const String&) const;
  13270. // Properties:
  13271. /* readonly */
  13272. bool flipX;
  13273. /* readonly */
  13274. bool flipY;
  13275. /* readonly */
  13276. uint gid;
  13277. /* readonly */
  13278. int refs;
  13279. /* readonly */
  13280. Sprite2D sprite;
  13281. /* readonly */
  13282. bool swapXY;
  13283. /* readonly */
  13284. int weakRefs;
  13285. };
  13286. class TileMap2D
  13287. {
  13288. public:
  13289. // Methods:
  13290. void ApplyAttributes();
  13291. void DrawDebugGeometry(DebugRenderer, bool);
  13292. Variant GetAttribute(const String&) const;
  13293. ValueAnimation GetAttributeAnimation(const String&) const;
  13294. float GetAttributeAnimationSpeed(const String&) const;
  13295. float GetAttributeAnimationTime(const String&) const;
  13296. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13297. Variant GetAttributeDefault(const String&) const;
  13298. bool GetInterceptNetworkUpdate(const String&) const;
  13299. TileMapLayer2D GetLayer(uint) const;
  13300. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  13301. bool HasSubscribedToEvent(Object, const String&);
  13302. bool HasSubscribedToEvent(const String&);
  13303. bool Load(File);
  13304. bool Load(VectorBuffer&);
  13305. bool LoadJSON(const JSONValue&);
  13306. bool LoadXML(const XMLElement&);
  13307. void MarkNetworkUpdate() const;
  13308. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  13309. void Remove();
  13310. void RemoveAttributeAnimation(const String&);
  13311. void RemoveInstanceDefault();
  13312. void RemoveObjectAnimation();
  13313. void ResetToDefault();
  13314. bool Save(File) const;
  13315. bool Save(VectorBuffer&) const;
  13316. bool SaveJSON(JSONValue&) const;
  13317. bool SaveXML(XMLElement&) const;
  13318. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13319. void SetAnimationTime(float);
  13320. bool SetAttribute(const String&, const Variant&);
  13321. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13322. void SetAttributeAnimationSpeed(const String&, float);
  13323. void SetAttributeAnimationTime(const String&, float);
  13324. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13325. void SetInterceptNetworkUpdate(const String&, bool);
  13326. Vector2 TileIndexToPosition(int, int) const;
  13327. // Properties:
  13328. bool animationEnabled;
  13329. /* readonly */
  13330. Array<Variant> attributeDefaults;
  13331. /* readonly */
  13332. Array<AttributeInfo> attributeInfos;
  13333. Array<Variant> attributes;
  13334. /* readonly */
  13335. String category;
  13336. bool enabled;
  13337. /* readonly */
  13338. bool enabledEffective;
  13339. /* readonly */
  13340. uint id;
  13341. /* readonly */
  13342. TileMapInfo2D info;
  13343. /* readonly */
  13344. Node node;
  13345. /* readonly */
  13346. uint numAttributes;
  13347. /* readonly */
  13348. uint numLayers;
  13349. ObjectAnimation objectAnimation;
  13350. /* readonly */
  13351. int refs;
  13352. /* readonly */
  13353. bool replicated;
  13354. bool temporary;
  13355. TmxFile2D tmxFile;
  13356. /* readonly */
  13357. StringHash type;
  13358. /* readonly */
  13359. String typeName;
  13360. /* readonly */
  13361. int weakRefs;
  13362. };
  13363. class TileMapInfo2D
  13364. {
  13365. public:
  13366. // Properties:
  13367. int height;
  13368. /* readonly */
  13369. float mapHeight;
  13370. /* readonly */
  13371. float mapWidth;
  13372. Orientation2D orientation;
  13373. float tileHeight;
  13374. float tileWidth;
  13375. int width;
  13376. };
  13377. class TileMapLayer2D
  13378. {
  13379. public:
  13380. // Methods:
  13381. void ApplyAttributes();
  13382. void DrawDebugGeometry(DebugRenderer, bool);
  13383. Variant GetAttribute(const String&) const;
  13384. ValueAnimation GetAttributeAnimation(const String&) const;
  13385. float GetAttributeAnimationSpeed(const String&) const;
  13386. float GetAttributeAnimationTime(const String&) const;
  13387. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13388. Variant GetAttributeDefault(const String&) const;
  13389. bool GetInterceptNetworkUpdate(const String&) const;
  13390. TileMapObject2D GetObject(uint) const;
  13391. Node GetObjectNode(uint) const;
  13392. Tile2D GetTile(int, int) const;
  13393. Node GetTileNode(int, int) const;
  13394. bool HasProperty(const String&) const;
  13395. bool HasSubscribedToEvent(Object, const String&);
  13396. bool HasSubscribedToEvent(const String&);
  13397. bool Load(File);
  13398. bool Load(VectorBuffer&);
  13399. bool LoadJSON(const JSONValue&);
  13400. bool LoadXML(const XMLElement&);
  13401. void MarkNetworkUpdate() const;
  13402. void Remove();
  13403. void RemoveAttributeAnimation(const String&);
  13404. void RemoveInstanceDefault();
  13405. void RemoveObjectAnimation();
  13406. void ResetToDefault();
  13407. bool Save(File) const;
  13408. bool Save(VectorBuffer&) const;
  13409. bool SaveJSON(JSONValue&) const;
  13410. bool SaveXML(XMLElement&) const;
  13411. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13412. void SetAnimationTime(float);
  13413. bool SetAttribute(const String&, const Variant&);
  13414. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13415. void SetAttributeAnimationSpeed(const String&, float);
  13416. void SetAttributeAnimationTime(const String&, float);
  13417. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13418. void SetInterceptNetworkUpdate(const String&, bool);
  13419. const String& GetProperty(const String&) const;
  13420. // Properties:
  13421. bool animationEnabled;
  13422. /* readonly */
  13423. Array<Variant> attributeDefaults;
  13424. /* readonly */
  13425. Array<AttributeInfo> attributeInfos;
  13426. Array<Variant> attributes;
  13427. /* readonly */
  13428. String category;
  13429. int drawOrder;
  13430. bool enabled;
  13431. /* readonly */
  13432. bool enabledEffective;
  13433. /* readonly */
  13434. int height;
  13435. /* readonly */
  13436. uint id;
  13437. /* readonly */
  13438. Node imageNode;
  13439. /* readonly */
  13440. TileMapLayerType2D layerType;
  13441. /* readonly */
  13442. Node node;
  13443. /* readonly */
  13444. uint numAttributes;
  13445. /* readonly */
  13446. uint numObjects;
  13447. ObjectAnimation objectAnimation;
  13448. /* readonly */
  13449. int refs;
  13450. /* readonly */
  13451. bool replicated;
  13452. bool temporary;
  13453. /* readonly */
  13454. StringHash type;
  13455. /* readonly */
  13456. String typeName;
  13457. bool visible;
  13458. /* readonly */
  13459. int weakRefs;
  13460. /* readonly */
  13461. int width;
  13462. };
  13463. class TileMapObject2D
  13464. {
  13465. public:
  13466. // Methods:
  13467. bool HasProperty(const String&) const;
  13468. const String& GetProperty(const String&) const;
  13469. const Vector2& GetPoint(uint) const;
  13470. // Properties:
  13471. /* readonly */
  13472. String name;
  13473. /* readonly */
  13474. uint numPoints;
  13475. /* readonly */
  13476. TileObjectType2D objectType;
  13477. /* readonly */
  13478. Vector2 position;
  13479. /* readonly */
  13480. int refs;
  13481. /* readonly */
  13482. Vector2 size;
  13483. /* readonly */
  13484. bool tileFlipX;
  13485. /* readonly */
  13486. bool tileFlipY;
  13487. /* readonly */
  13488. uint tileGid;
  13489. /* readonly */
  13490. Sprite2D tileSprite;
  13491. /* readonly */
  13492. bool tileSwapXY;
  13493. /* readonly */
  13494. String type;
  13495. /* readonly */
  13496. int weakRefs;
  13497. };
  13498. class Time
  13499. {
  13500. public:
  13501. // Methods:
  13502. bool HasSubscribedToEvent(Object, const String&);
  13503. bool HasSubscribedToEvent(const String&);
  13504. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13505. // Properties:
  13506. /* readonly */
  13507. String category;
  13508. /* readonly */
  13509. float elapsedTime;
  13510. /* readonly */
  13511. uint frameNumber;
  13512. /* readonly */
  13513. float framesPerSecond;
  13514. /* readonly */
  13515. int refs;
  13516. /* readonly */
  13517. uint systemTime;
  13518. /* readonly */
  13519. uint timeSinceEpoch;
  13520. /* readonly */
  13521. String timeStamp;
  13522. /* readonly */
  13523. float timeStep;
  13524. /* readonly */
  13525. StringHash type;
  13526. /* readonly */
  13527. String typeName;
  13528. /* readonly */
  13529. int weakRefs;
  13530. };
  13531. class Timer
  13532. {
  13533. public:
  13534. Timer();
  13535. // Methods:
  13536. uint GetMSec(bool);
  13537. void Reset();
  13538. };
  13539. class TmxFile2D
  13540. {
  13541. public:
  13542. TmxFile2D();
  13543. TmxFile2D(const String&in);
  13544. // Methods:
  13545. bool HasSubscribedToEvent(Object, const String&);
  13546. bool HasSubscribedToEvent(const String&);
  13547. bool Load(File);
  13548. bool Load(VectorBuffer&);
  13549. bool Load(const String&);
  13550. bool Save(File) const;
  13551. bool Save(VectorBuffer&) const;
  13552. bool Save(const String&) const;
  13553. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13554. // Properties:
  13555. /* readonly */
  13556. String category;
  13557. float edgeOffset;
  13558. /* readonly */
  13559. uint memoryUse;
  13560. String name;
  13561. /* readonly */
  13562. int refs;
  13563. /* readonly */
  13564. StringHash type;
  13565. /* readonly */
  13566. String typeName;
  13567. /* readonly */
  13568. uint useTimer;
  13569. /* readonly */
  13570. int weakRefs;
  13571. };
  13572. class ToolTip
  13573. {
  13574. public:
  13575. ToolTip();
  13576. ToolTip(const String&in);
  13577. // Methods:
  13578. void AddChild(UIElement);
  13579. void AddTag(const String&);
  13580. void AddTags(const String&, int8 = ';');
  13581. void ApplyAttributes();
  13582. void BringToFront();
  13583. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13584. void DisableLayoutUpdate();
  13585. IntVector2 ElementToScreen(const IntVector2&);
  13586. void EnableLayoutUpdate();
  13587. uint FindChild(UIElement) const;
  13588. Variant GetAttribute(const String&) const;
  13589. ValueAnimation GetAttributeAnimation(const String&) const;
  13590. float GetAttributeAnimationSpeed(const String&) const;
  13591. float GetAttributeAnimationTime(const String&) const;
  13592. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13593. Variant GetAttributeDefault(const String&) const;
  13594. UIElement GetChild(const String&, bool = false) const;
  13595. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13596. Array<UIElement> GetChildren(bool = false) const;
  13597. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13598. UIElement GetElementEventSender() const;
  13599. bool GetInterceptNetworkUpdate(const String&) const;
  13600. uint GetNumChildren(bool) const;
  13601. bool HasSubscribedToEvent(Object, const String&);
  13602. bool HasSubscribedToEvent(const String&);
  13603. bool HasTag(const String&) const;
  13604. void InsertChild(uint, UIElement);
  13605. bool IsChildOf(UIElement) const;
  13606. bool IsInside(IntVector2, bool);
  13607. bool IsInsideCombined(IntVector2, bool);
  13608. bool Load(File);
  13609. bool Load(VectorBuffer&);
  13610. UIElement LoadChildXML(XMLFile, XMLFile);
  13611. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13612. bool LoadJSON(const JSONValue&);
  13613. bool LoadXML(File);
  13614. bool LoadXML(VectorBuffer&);
  13615. bool LoadXML(XMLFile, XMLFile);
  13616. bool LoadXML(const XMLElement&, XMLFile);
  13617. bool LoadXML(const XMLElement&);
  13618. void MarkNetworkUpdate() const;
  13619. void Remove();
  13620. void RemoveAllChildren();
  13621. void RemoveAllTags();
  13622. void RemoveAttributeAnimation(const String&);
  13623. void RemoveChild(UIElement, uint = 0);
  13624. void RemoveChild(uint);
  13625. void RemoveInstanceDefault();
  13626. void RemoveObjectAnimation();
  13627. bool RemoveTag(const String&);
  13628. void Reset();
  13629. void ResetDeepEnabled();
  13630. void ResetToDefault();
  13631. bool Save(File) const;
  13632. bool Save(VectorBuffer&) const;
  13633. bool SaveJSON(JSONValue&) const;
  13634. bool SaveXML(File, const String& = "\t");
  13635. bool SaveXML(VectorBuffer&, const String& = "\t");
  13636. bool SaveXML(XMLElement&) const;
  13637. IntVector2 ScreenToElement(const IntVector2&);
  13638. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13639. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13640. void SetAnimationTime(float);
  13641. bool SetAttribute(const String&, const Variant&);
  13642. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13643. void SetAttributeAnimationSpeed(const String&, float);
  13644. void SetAttributeAnimationTime(const String&, float);
  13645. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13646. void SetDeepEnabled(bool);
  13647. void SetEnabledRecursive(bool);
  13648. void SetFixedHeight(int);
  13649. void SetFixedSize(int, int);
  13650. void SetFixedWidth(int);
  13651. void SetInterceptNetworkUpdate(const String&, bool);
  13652. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  13653. void SetMaxAnchor(float, float);
  13654. void SetMaxSize(int, int);
  13655. void SetMinAnchor(float, float);
  13656. void SetMinSize(int, int);
  13657. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  13658. void SetPivot(float, float);
  13659. void SetPosition(int, int);
  13660. void SetSize(int, int);
  13661. bool SetStyle(const String&, XMLFile = null);
  13662. bool SetStyle(const XMLElement&);
  13663. bool SetStyleAuto(XMLFile = null);
  13664. void UpdateLayout();
  13665. const Variant& GetVar(const StringHash&);
  13666. void add_altTarget(UIElement);
  13667. // Properties:
  13668. bool animationEnabled;
  13669. /* readonly */
  13670. Array<Variant> attributeDefaults;
  13671. /* readonly */
  13672. Array<AttributeInfo> attributeInfos;
  13673. Array<Variant> attributes;
  13674. bool bringToBack;
  13675. bool bringToFront;
  13676. /* readonly */
  13677. String category;
  13678. /* readonly */
  13679. IntVector2 childOffset;
  13680. /* readonly */
  13681. Array<UIElement> children;
  13682. IntRect clipBorder;
  13683. bool clipChildren;
  13684. /* writeonly */
  13685. Color color;
  13686. /* readonly */
  13687. bool colorGradient;
  13688. Array<Color> colors;
  13689. /* readonly */
  13690. IntRect combinedScreenRect;
  13691. XMLFile defaultStyle;
  13692. float delay;
  13693. /* readonly */
  13694. float derivedOpacity;
  13695. /* readonly */
  13696. uint dragButtonCombo;
  13697. /* readonly */
  13698. int dragButtonCount;
  13699. uint dragDropMode;
  13700. bool editable;
  13701. bool elementEventSender;
  13702. bool enableAnchor;
  13703. bool enabled;
  13704. /* readonly */
  13705. bool enabledSelf;
  13706. /* readonly */
  13707. bool fixedHeight;
  13708. /* readonly */
  13709. bool fixedSize;
  13710. /* readonly */
  13711. bool fixedWidth;
  13712. bool focus;
  13713. FocusMode focusMode;
  13714. int height;
  13715. HorizontalAlignment horizontalAlignment;
  13716. /* readonly */
  13717. bool hovering;
  13718. int indent;
  13719. int indentSpacing;
  13720. /* readonly */
  13721. int indentWidth;
  13722. bool internal;
  13723. IntRect layoutBorder;
  13724. Vector2 layoutFlexScale;
  13725. LayoutMode layoutMode;
  13726. int layoutSpacing;
  13727. Vector2 maxAnchor;
  13728. int maxHeight;
  13729. IntVector2 maxOffset;
  13730. IntVector2 maxSize;
  13731. int maxWidth;
  13732. Vector2 minAnchor;
  13733. int minHeight;
  13734. IntVector2 minOffset;
  13735. IntVector2 minSize;
  13736. int minWidth;
  13737. String name;
  13738. /* readonly */
  13739. uint numAllChildren;
  13740. /* readonly */
  13741. uint numAttributes;
  13742. /* readonly */
  13743. uint numChildren;
  13744. ObjectAnimation objectAnimation;
  13745. float opacity;
  13746. UIElement parent;
  13747. Vector2 pivot;
  13748. IntVector2 position;
  13749. int priority;
  13750. /* readonly */
  13751. int refs;
  13752. /* readonly */
  13753. UIElement root;
  13754. /* readonly */
  13755. IntVector2 screenPosition;
  13756. bool selected;
  13757. IntVector2 size;
  13758. bool sortChildren;
  13759. String style;
  13760. /* readonly */
  13761. Array<String> tags;
  13762. bool temporary;
  13763. TraversalMode traversalMode;
  13764. /* readonly */
  13765. StringHash type;
  13766. /* readonly */
  13767. String typeName;
  13768. bool useDerivedOpacity;
  13769. /* readonly */
  13770. VariantMap vars;
  13771. VerticalAlignment verticalAlignment;
  13772. bool visible;
  13773. /* readonly */
  13774. bool visibleEffective;
  13775. /* readonly */
  13776. int weakRefs;
  13777. int width;
  13778. };
  13779. class TouchState
  13780. {
  13781. public:
  13782. // Properties:
  13783. IntVector2 delta;
  13784. IntVector2 lastPosition;
  13785. IntVector2 position;
  13786. float pressure;
  13787. int touchID;
  13788. /* readonly */
  13789. UIElement touchedElement;
  13790. };
  13791. class UI
  13792. {
  13793. public:
  13794. // Methods:
  13795. void Clear();
  13796. void DebugDraw(UIElement);
  13797. UIElement GetElementAt(const IntVector2&, bool = true);
  13798. UIElement GetElementAt(int, int, bool = true);
  13799. bool HasModalElement() const;
  13800. bool HasSubscribedToEvent(Object, const String&);
  13801. bool HasSubscribedToEvent(const String&);
  13802. bool IsDragging() const;
  13803. UIElement LoadLayout(File);
  13804. UIElement LoadLayout(File, XMLFile);
  13805. UIElement LoadLayout(VectorBuffer&);
  13806. UIElement LoadLayout(VectorBuffer&, XMLFile);
  13807. UIElement LoadLayout(XMLFile);
  13808. UIElement LoadLayout(XMLFile, XMLFile);
  13809. bool SaveLayout(File, UIElement);
  13810. bool SaveLayout(VectorBuffer&, UIElement);
  13811. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13812. void SetCustomSize(int, int);
  13813. void SetFocusElement(UIElement, bool = false);
  13814. void SetHeight(float);
  13815. void SetWidth(float);
  13816. const Array<UIElement> GetDragElements();
  13817. // Properties:
  13818. /* readonly */
  13819. String category;
  13820. String clipBoardText;
  13821. Cursor cursor;
  13822. /* readonly */
  13823. IntVector2 cursorPosition;
  13824. IntVector2 customSize;
  13825. float defaultToolTipDelay;
  13826. float doubleClickInterval;
  13827. int dragBeginDistance;
  13828. float dragBeginInterval;
  13829. UIElement focusElement;
  13830. FontHintLevel fontHintLevel;
  13831. int fontOversampling;
  13832. float fontSubpixelThreshold;
  13833. bool forceAutoHint;
  13834. /* readonly */
  13835. UIElement frontElement;
  13836. float maxDoubleClickDistance;
  13837. int maxFontTextureSize;
  13838. /* readonly */
  13839. UIElement modalRoot;
  13840. bool nonFocusedMouseWheel;
  13841. /* readonly */
  13842. int refs;
  13843. /* readonly */
  13844. UIElement root;
  13845. float scale;
  13846. /* readonly */
  13847. StringHash type;
  13848. /* readonly */
  13849. String typeName;
  13850. bool useMutableGlyphs;
  13851. bool useScreenKeyboard;
  13852. bool useSystemClipboard;
  13853. /* readonly */
  13854. int weakRefs;
  13855. };
  13856. class UIComponent
  13857. {
  13858. public:
  13859. // Methods:
  13860. void ApplyAttributes();
  13861. Variant GetAttribute(const String&) const;
  13862. ValueAnimation GetAttributeAnimation(const String&) const;
  13863. float GetAttributeAnimationSpeed(const String&) const;
  13864. float GetAttributeAnimationTime(const String&) const;
  13865. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13866. Variant GetAttributeDefault(const String&) const;
  13867. bool GetInterceptNetworkUpdate(const String&) const;
  13868. bool HasSubscribedToEvent(Object, const String&);
  13869. bool HasSubscribedToEvent(const String&);
  13870. bool Load(File);
  13871. bool Load(VectorBuffer&);
  13872. bool LoadJSON(const JSONValue&);
  13873. bool LoadXML(const XMLElement&);
  13874. void MarkNetworkUpdate() const;
  13875. void Remove();
  13876. void RemoveAttributeAnimation(const String&);
  13877. void RemoveInstanceDefault();
  13878. void RemoveObjectAnimation();
  13879. void ResetToDefault();
  13880. bool Save(File) const;
  13881. bool Save(VectorBuffer&) const;
  13882. bool SaveJSON(JSONValue&) const;
  13883. bool SaveXML(XMLElement&) const;
  13884. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13885. void SetAnimationTime(float);
  13886. bool SetAttribute(const String&, const Variant&);
  13887. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13888. void SetAttributeAnimationSpeed(const String&, float);
  13889. void SetAttributeAnimationTime(const String&, float);
  13890. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13891. void SetInterceptNetworkUpdate(const String&, bool);
  13892. // Properties:
  13893. bool animationEnabled;
  13894. /* readonly */
  13895. Array<Variant> attributeDefaults;
  13896. /* readonly */
  13897. Array<AttributeInfo> attributeInfos;
  13898. Array<Variant> attributes;
  13899. /* readonly */
  13900. String category;
  13901. bool enabled;
  13902. /* readonly */
  13903. bool enabledEffective;
  13904. /* readonly */
  13905. uint id;
  13906. /* readonly */
  13907. Material material;
  13908. /* readonly */
  13909. Node node;
  13910. /* readonly */
  13911. uint numAttributes;
  13912. ObjectAnimation objectAnimation;
  13913. /* readonly */
  13914. int refs;
  13915. /* readonly */
  13916. bool replicated;
  13917. /* readonly */
  13918. UIElement root;
  13919. bool temporary;
  13920. /* readonly */
  13921. Texture2D texture;
  13922. /* readonly */
  13923. StringHash type;
  13924. /* readonly */
  13925. String typeName;
  13926. /* readonly */
  13927. int weakRefs;
  13928. };
  13929. class UIElement
  13930. {
  13931. public:
  13932. UIElement();
  13933. UIElement(const String&in);
  13934. // Methods:
  13935. void AddChild(UIElement);
  13936. void AddTag(const String&);
  13937. void AddTags(const String&, int8 = ';');
  13938. void ApplyAttributes();
  13939. void BringToFront();
  13940. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  13941. void DisableLayoutUpdate();
  13942. IntVector2 ElementToScreen(const IntVector2&);
  13943. void EnableLayoutUpdate();
  13944. uint FindChild(UIElement) const;
  13945. Variant GetAttribute(const String&) const;
  13946. ValueAnimation GetAttributeAnimation(const String&) const;
  13947. float GetAttributeAnimationSpeed(const String&) const;
  13948. float GetAttributeAnimationTime(const String&) const;
  13949. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13950. Variant GetAttributeDefault(const String&) const;
  13951. UIElement GetChild(const String&, bool = false) const;
  13952. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  13953. Array<UIElement> GetChildren(bool = false) const;
  13954. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13955. UIElement GetElementEventSender() const;
  13956. bool GetInterceptNetworkUpdate(const String&) const;
  13957. uint GetNumChildren(bool) const;
  13958. bool HasSubscribedToEvent(Object, const String&);
  13959. bool HasSubscribedToEvent(const String&);
  13960. bool HasTag(const String&) const;
  13961. void InsertChild(uint, UIElement);
  13962. bool IsChildOf(UIElement) const;
  13963. bool IsInside(IntVector2, bool);
  13964. bool IsInsideCombined(IntVector2, bool);
  13965. bool Load(File);
  13966. bool Load(VectorBuffer&);
  13967. UIElement LoadChildXML(XMLFile, XMLFile);
  13968. UIElement LoadChildXML(const XMLElement&, XMLFile);
  13969. bool LoadJSON(const JSONValue&);
  13970. bool LoadXML(File);
  13971. bool LoadXML(VectorBuffer&);
  13972. bool LoadXML(XMLFile, XMLFile);
  13973. bool LoadXML(const XMLElement&, XMLFile);
  13974. bool LoadXML(const XMLElement&);
  13975. void MarkNetworkUpdate() const;
  13976. void Remove();
  13977. void RemoveAllChildren();
  13978. void RemoveAllTags();
  13979. void RemoveAttributeAnimation(const String&);
  13980. void RemoveChild(UIElement, uint = 0);
  13981. void RemoveChild(uint);
  13982. void RemoveInstanceDefault();
  13983. void RemoveObjectAnimation();
  13984. bool RemoveTag(const String&);
  13985. void ResetDeepEnabled();
  13986. void ResetToDefault();
  13987. bool Save(File) const;
  13988. bool Save(VectorBuffer&) const;
  13989. bool SaveJSON(JSONValue&) const;
  13990. bool SaveXML(File, const String& = "\t");
  13991. bool SaveXML(VectorBuffer&, const String& = "\t");
  13992. bool SaveXML(XMLElement&) const;
  13993. IntVector2 ScreenToElement(const IntVector2&);
  13994. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  13995. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  13996. void SetAnimationTime(float);
  13997. bool SetAttribute(const String&, const Variant&);
  13998. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13999. void SetAttributeAnimationSpeed(const String&, float);
  14000. void SetAttributeAnimationTime(const String&, float);
  14001. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14002. void SetDeepEnabled(bool);
  14003. void SetEnabledRecursive(bool);
  14004. void SetFixedHeight(int);
  14005. void SetFixedSize(int, int);
  14006. void SetFixedWidth(int);
  14007. void SetInterceptNetworkUpdate(const String&, bool);
  14008. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14009. void SetMaxAnchor(float, float);
  14010. void SetMaxSize(int, int);
  14011. void SetMinAnchor(float, float);
  14012. void SetMinSize(int, int);
  14013. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14014. void SetPivot(float, float);
  14015. void SetPosition(int, int);
  14016. void SetSize(int, int);
  14017. bool SetStyle(const String&, XMLFile = null);
  14018. bool SetStyle(const XMLElement&);
  14019. bool SetStyleAuto(XMLFile = null);
  14020. void UpdateLayout();
  14021. const Variant& GetVar(const StringHash&);
  14022. // Properties:
  14023. bool animationEnabled;
  14024. /* readonly */
  14025. Array<Variant> attributeDefaults;
  14026. /* readonly */
  14027. Array<AttributeInfo> attributeInfos;
  14028. Array<Variant> attributes;
  14029. bool bringToBack;
  14030. bool bringToFront;
  14031. /* readonly */
  14032. String category;
  14033. /* readonly */
  14034. IntVector2 childOffset;
  14035. /* readonly */
  14036. Array<UIElement> children;
  14037. IntRect clipBorder;
  14038. bool clipChildren;
  14039. /* writeonly */
  14040. Color color;
  14041. /* readonly */
  14042. bool colorGradient;
  14043. Array<Color> colors;
  14044. /* readonly */
  14045. IntRect combinedScreenRect;
  14046. XMLFile defaultStyle;
  14047. /* readonly */
  14048. float derivedOpacity;
  14049. /* readonly */
  14050. uint dragButtonCombo;
  14051. /* readonly */
  14052. int dragButtonCount;
  14053. uint dragDropMode;
  14054. bool editable;
  14055. bool elementEventSender;
  14056. bool enableAnchor;
  14057. bool enabled;
  14058. /* readonly */
  14059. bool enabledSelf;
  14060. /* readonly */
  14061. bool fixedHeight;
  14062. /* readonly */
  14063. bool fixedSize;
  14064. /* readonly */
  14065. bool fixedWidth;
  14066. bool focus;
  14067. FocusMode focusMode;
  14068. int height;
  14069. HorizontalAlignment horizontalAlignment;
  14070. /* readonly */
  14071. bool hovering;
  14072. int indent;
  14073. int indentSpacing;
  14074. /* readonly */
  14075. int indentWidth;
  14076. bool internal;
  14077. IntRect layoutBorder;
  14078. Vector2 layoutFlexScale;
  14079. LayoutMode layoutMode;
  14080. int layoutSpacing;
  14081. Vector2 maxAnchor;
  14082. int maxHeight;
  14083. IntVector2 maxOffset;
  14084. IntVector2 maxSize;
  14085. int maxWidth;
  14086. Vector2 minAnchor;
  14087. int minHeight;
  14088. IntVector2 minOffset;
  14089. IntVector2 minSize;
  14090. int minWidth;
  14091. String name;
  14092. /* readonly */
  14093. uint numAllChildren;
  14094. /* readonly */
  14095. uint numAttributes;
  14096. /* readonly */
  14097. uint numChildren;
  14098. ObjectAnimation objectAnimation;
  14099. float opacity;
  14100. UIElement parent;
  14101. Vector2 pivot;
  14102. IntVector2 position;
  14103. int priority;
  14104. /* readonly */
  14105. int refs;
  14106. /* readonly */
  14107. UIElement root;
  14108. /* readonly */
  14109. IntVector2 screenPosition;
  14110. bool selected;
  14111. IntVector2 size;
  14112. bool sortChildren;
  14113. String style;
  14114. /* readonly */
  14115. Array<String> tags;
  14116. bool temporary;
  14117. TraversalMode traversalMode;
  14118. /* readonly */
  14119. StringHash type;
  14120. /* readonly */
  14121. String typeName;
  14122. bool useDerivedOpacity;
  14123. /* readonly */
  14124. VariantMap vars;
  14125. VerticalAlignment verticalAlignment;
  14126. bool visible;
  14127. /* readonly */
  14128. bool visibleEffective;
  14129. /* readonly */
  14130. int weakRefs;
  14131. int width;
  14132. };
  14133. class UISelectable
  14134. {
  14135. public:
  14136. UISelectable();
  14137. UISelectable(const String&in);
  14138. // Methods:
  14139. void AddChild(UIElement);
  14140. void AddTag(const String&);
  14141. void AddTags(const String&, int8 = ';');
  14142. void ApplyAttributes();
  14143. void BringToFront();
  14144. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14145. void DisableLayoutUpdate();
  14146. IntVector2 ElementToScreen(const IntVector2&);
  14147. void EnableLayoutUpdate();
  14148. uint FindChild(UIElement) const;
  14149. Variant GetAttribute(const String&) const;
  14150. ValueAnimation GetAttributeAnimation(const String&) const;
  14151. float GetAttributeAnimationSpeed(const String&) const;
  14152. float GetAttributeAnimationTime(const String&) const;
  14153. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14154. Variant GetAttributeDefault(const String&) const;
  14155. UIElement GetChild(const String&, bool = false) const;
  14156. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14157. Array<UIElement> GetChildren(bool = false) const;
  14158. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14159. UIElement GetElementEventSender() const;
  14160. bool GetInterceptNetworkUpdate(const String&) const;
  14161. uint GetNumChildren(bool) const;
  14162. bool HasSubscribedToEvent(Object, const String&);
  14163. bool HasSubscribedToEvent(const String&);
  14164. bool HasTag(const String&) const;
  14165. void InsertChild(uint, UIElement);
  14166. bool IsChildOf(UIElement) const;
  14167. bool IsInside(IntVector2, bool);
  14168. bool IsInsideCombined(IntVector2, bool);
  14169. bool Load(File);
  14170. bool Load(VectorBuffer&);
  14171. UIElement LoadChildXML(XMLFile, XMLFile);
  14172. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14173. bool LoadJSON(const JSONValue&);
  14174. bool LoadXML(File);
  14175. bool LoadXML(VectorBuffer&);
  14176. bool LoadXML(XMLFile, XMLFile);
  14177. bool LoadXML(const XMLElement&, XMLFile);
  14178. bool LoadXML(const XMLElement&);
  14179. void MarkNetworkUpdate() const;
  14180. void Remove();
  14181. void RemoveAllChildren();
  14182. void RemoveAllTags();
  14183. void RemoveAttributeAnimation(const String&);
  14184. void RemoveChild(UIElement, uint = 0);
  14185. void RemoveChild(uint);
  14186. void RemoveInstanceDefault();
  14187. void RemoveObjectAnimation();
  14188. bool RemoveTag(const String&);
  14189. void ResetDeepEnabled();
  14190. void ResetToDefault();
  14191. bool Save(File) const;
  14192. bool Save(VectorBuffer&) const;
  14193. bool SaveJSON(JSONValue&) const;
  14194. bool SaveXML(File, const String& = "\t");
  14195. bool SaveXML(VectorBuffer&, const String& = "\t");
  14196. bool SaveXML(XMLElement&) const;
  14197. IntVector2 ScreenToElement(const IntVector2&);
  14198. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14199. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14200. void SetAnimationTime(float);
  14201. bool SetAttribute(const String&, const Variant&);
  14202. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14203. void SetAttributeAnimationSpeed(const String&, float);
  14204. void SetAttributeAnimationTime(const String&, float);
  14205. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14206. void SetDeepEnabled(bool);
  14207. void SetEnabledRecursive(bool);
  14208. void SetFixedHeight(int);
  14209. void SetFixedSize(int, int);
  14210. void SetFixedWidth(int);
  14211. void SetInterceptNetworkUpdate(const String&, bool);
  14212. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14213. void SetMaxAnchor(float, float);
  14214. void SetMaxSize(int, int);
  14215. void SetMinAnchor(float, float);
  14216. void SetMinSize(int, int);
  14217. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14218. void SetPivot(float, float);
  14219. void SetPosition(int, int);
  14220. void SetSize(int, int);
  14221. bool SetStyle(const String&, XMLFile = null);
  14222. bool SetStyle(const XMLElement&);
  14223. bool SetStyleAuto(XMLFile = null);
  14224. void UpdateLayout();
  14225. const Variant& GetVar(const StringHash&);
  14226. // Properties:
  14227. bool animationEnabled;
  14228. /* readonly */
  14229. Array<Variant> attributeDefaults;
  14230. /* readonly */
  14231. Array<AttributeInfo> attributeInfos;
  14232. Array<Variant> attributes;
  14233. bool bringToBack;
  14234. bool bringToFront;
  14235. /* readonly */
  14236. String category;
  14237. /* readonly */
  14238. IntVector2 childOffset;
  14239. /* readonly */
  14240. Array<UIElement> children;
  14241. IntRect clipBorder;
  14242. bool clipChildren;
  14243. /* writeonly */
  14244. Color color;
  14245. /* readonly */
  14246. bool colorGradient;
  14247. Array<Color> colors;
  14248. /* readonly */
  14249. IntRect combinedScreenRect;
  14250. XMLFile defaultStyle;
  14251. /* readonly */
  14252. float derivedOpacity;
  14253. /* readonly */
  14254. uint dragButtonCombo;
  14255. /* readonly */
  14256. int dragButtonCount;
  14257. uint dragDropMode;
  14258. bool editable;
  14259. bool elementEventSender;
  14260. bool enableAnchor;
  14261. bool enabled;
  14262. /* readonly */
  14263. bool enabledSelf;
  14264. /* readonly */
  14265. bool fixedHeight;
  14266. /* readonly */
  14267. bool fixedSize;
  14268. /* readonly */
  14269. bool fixedWidth;
  14270. bool focus;
  14271. FocusMode focusMode;
  14272. int height;
  14273. HorizontalAlignment horizontalAlignment;
  14274. Color hoverColor;
  14275. /* readonly */
  14276. bool hovering;
  14277. int indent;
  14278. int indentSpacing;
  14279. /* readonly */
  14280. int indentWidth;
  14281. bool internal;
  14282. IntRect layoutBorder;
  14283. Vector2 layoutFlexScale;
  14284. LayoutMode layoutMode;
  14285. int layoutSpacing;
  14286. Vector2 maxAnchor;
  14287. int maxHeight;
  14288. IntVector2 maxOffset;
  14289. IntVector2 maxSize;
  14290. int maxWidth;
  14291. Vector2 minAnchor;
  14292. int minHeight;
  14293. IntVector2 minOffset;
  14294. IntVector2 minSize;
  14295. int minWidth;
  14296. String name;
  14297. /* readonly */
  14298. uint numAllChildren;
  14299. /* readonly */
  14300. uint numAttributes;
  14301. /* readonly */
  14302. uint numChildren;
  14303. ObjectAnimation objectAnimation;
  14304. float opacity;
  14305. UIElement parent;
  14306. Vector2 pivot;
  14307. IntVector2 position;
  14308. int priority;
  14309. /* readonly */
  14310. int refs;
  14311. /* readonly */
  14312. UIElement root;
  14313. /* readonly */
  14314. IntVector2 screenPosition;
  14315. bool selected;
  14316. Color selectionColor;
  14317. IntVector2 size;
  14318. bool sortChildren;
  14319. String style;
  14320. /* readonly */
  14321. Array<String> tags;
  14322. bool temporary;
  14323. TraversalMode traversalMode;
  14324. /* readonly */
  14325. StringHash type;
  14326. /* readonly */
  14327. String typeName;
  14328. bool useDerivedOpacity;
  14329. /* readonly */
  14330. VariantMap vars;
  14331. VerticalAlignment verticalAlignment;
  14332. bool visible;
  14333. /* readonly */
  14334. bool visibleEffective;
  14335. /* readonly */
  14336. int weakRefs;
  14337. int width;
  14338. };
  14339. class ValueAnimation
  14340. {
  14341. public:
  14342. ValueAnimation();
  14343. ValueAnimation(const String&in);
  14344. // Methods:
  14345. bool HasSubscribedToEvent(Object, const String&);
  14346. bool HasSubscribedToEvent(const String&);
  14347. bool Load(File);
  14348. bool Load(VectorBuffer&);
  14349. bool Load(const String&);
  14350. bool Save(File) const;
  14351. bool Save(VectorBuffer&) const;
  14352. bool Save(const String&) const;
  14353. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14354. void SetEventFrame(float, const String&, const VariantMap& = VariantMap ( ));
  14355. void SetKeyFrame(float, const Variant&);
  14356. // Properties:
  14357. /* readonly */
  14358. String category;
  14359. InterpMethod interpolationMethod;
  14360. /* readonly */
  14361. uint memoryUse;
  14362. String name;
  14363. /* readonly */
  14364. int refs;
  14365. float splineTension;
  14366. /* readonly */
  14367. StringHash type;
  14368. /* readonly */
  14369. String typeName;
  14370. /* readonly */
  14371. uint useTimer;
  14372. VariantType valueType;
  14373. /* readonly */
  14374. int weakRefs;
  14375. };
  14376. class Variant
  14377. {
  14378. public:
  14379. ~Variant();
  14380. Variant();
  14381. Variant(const Variant&in);
  14382. Variant(int);
  14383. Variant(uint);
  14384. Variant(int64);
  14385. Variant(uint64);
  14386. Variant(const StringHash&in);
  14387. Variant(bool);
  14388. Variant(float);
  14389. Variant(double);
  14390. Variant(const Vector2&in);
  14391. Variant(const Vector3&in);
  14392. Variant(const Vector4&in);
  14393. Variant(const Quaternion&in);
  14394. Variant(const Color&in);
  14395. Variant(const String&in);
  14396. Variant(const ResourceRef&in);
  14397. Variant(const ResourceRefList&in);
  14398. Variant(const Variant[]@);
  14399. Variant(const String[]@);
  14400. Variant(const VariantMap&in);
  14401. Variant(const Rect&in);
  14402. Variant(const IntRect&in);
  14403. Variant(const IntVector2&in);
  14404. Variant(const IntVector3&in);
  14405. Variant(RefCounted@);
  14406. Variant(ScriptObject@);
  14407. Variant(const Matrix3&in);
  14408. Variant(const Matrix3x4&in);
  14409. Variant(const Matrix4&in);
  14410. Variant(const String&in, const String&in);
  14411. Variant(VariantType, const String&in);
  14412. Variant(const VectorBuffer&in);
  14413. // Methods:
  14414. void Clear();
  14415. const Color& GetColor() const;
  14416. void FromString(VariantType, const String&);
  14417. void FromString(const String&, const String&);
  14418. bool GetBool() const;
  14419. VectorBuffer GetBuffer() const;
  14420. double GetDouble() const;
  14421. float GetFloat() const;
  14422. int GetInt() const;
  14423. int GetInt64() const;
  14424. RefCounted GetPtr() const;
  14425. ScriptObject GetScriptObject() const;
  14426. StringHash GetStringHash() const;
  14427. Array<String> GetStringVector() const;
  14428. uint GetUInt() const;
  14429. uint64 GetUInt64() const;
  14430. Array<Variant> GetVariantVector() const;
  14431. const IntRect& GetIntRect() const;
  14432. const IntVector2& GetIntVector2() const;
  14433. const IntVector3& GetIntVector3() const;
  14434. const Matrix3& GetMatrix3() const;
  14435. const Matrix3x4& GetMatrix3x4() const;
  14436. const Matrix4& GetMatrix4() const;
  14437. const Quaternion& GetQuaternion() const;
  14438. const Rect& GetRect() const;
  14439. const ResourceRef& GetResourceRef() const;
  14440. const ResourceRefList& GetResourceRefList() const;
  14441. const String& GetString() const;
  14442. String ToString() const;
  14443. const VariantMap& GetVariantMap() const;
  14444. const Vector2& GetVector2() const;
  14445. const Vector3& GetVector3() const;
  14446. const Vector4& GetVector4() const;
  14447. // Properties:
  14448. /* readonly */
  14449. bool empty;
  14450. /* readonly */
  14451. VariantType type;
  14452. /* readonly */
  14453. String typeName;
  14454. /* readonly */
  14455. bool zero;
  14456. };
  14457. class VariantMap
  14458. {
  14459. public:
  14460. ~VariantMap();
  14461. VariantMap();
  14462. VariantMap(const VariantMap&in);
  14463. // Methods:
  14464. void Clear();
  14465. bool Contains(StringHash) const;
  14466. bool Contains(const String&) const;
  14467. bool Erase(StringHash);
  14468. bool Erase(const String&);
  14469. // Properties:
  14470. /* readonly */
  14471. Array<StringHash> keys;
  14472. /* readonly */
  14473. uint length;
  14474. /* readonly */
  14475. Array<Variant> values;
  14476. };
  14477. class Vector2
  14478. {
  14479. public:
  14480. Vector2();
  14481. Vector2(const Vector2&in);
  14482. Vector2(const IntVector2&in);
  14483. Vector2(float, float);
  14484. Vector2(float[]&inout);
  14485. // Methods:
  14486. Vector2 Abs() const;
  14487. float AbsDotProduct(const Vector2&) const;
  14488. float Angle(const Vector2&) const;
  14489. float DotProduct(const Vector2&) const;
  14490. bool Equals(const Vector2&) const;
  14491. bool IsNaN() const;
  14492. Vector2 Lerp(const Vector2&, float) const;
  14493. void Normalize();
  14494. Vector2 Normalized() const;
  14495. float ProjectOntoAxis(const Vector2&) const;
  14496. String ToString() const;
  14497. // Properties:
  14498. /* readonly */
  14499. Array<float> data;
  14500. /* readonly */
  14501. float length;
  14502. /* readonly */
  14503. float lengthSquared;
  14504. float x;
  14505. float y;
  14506. // Constants:
  14507. static const Vector2 DOWN;
  14508. static const Vector2 LEFT;
  14509. static const Vector2 ONE;
  14510. static const Vector2 RIGHT;
  14511. static const Vector2 UP;
  14512. static const Vector2 ZERO;
  14513. };
  14514. class Vector3
  14515. {
  14516. public:
  14517. Vector3();
  14518. Vector3(const Vector3&in);
  14519. Vector3(const Vector2&in, float);
  14520. Vector3(const Vector2&in);
  14521. Vector3(const IntVector3&in);
  14522. Vector3(float, float, float);
  14523. Vector3(float, float);
  14524. Vector3(float[]&inout);
  14525. // Methods:
  14526. Vector3 Abs() const;
  14527. float AbsDotProduct(const Vector3&) const;
  14528. float Angle(const Vector3&) const;
  14529. Vector3 CrossProduct(const Vector3&) const;
  14530. float DistanceToPlane(const Vector3&, const Vector3&) const;
  14531. float DistanceToPoint(const Vector3&) const;
  14532. float DotProduct(const Vector3&) const;
  14533. bool Equals(const Vector3&) const;
  14534. bool IsNaN() const;
  14535. Vector3 Lerp(const Vector3&, float) const;
  14536. void Normalize();
  14537. Vector3 Normalized() const;
  14538. Vector3 Orthogonalize(const Vector3&) const;
  14539. float ProjectOntoAxis(const Vector3&) const;
  14540. Vector3 ProjectOntoLine(const Vector3&, const Vector3&, bool = false) const;
  14541. Vector3 ProjectOntoPlane(const Vector3&, const Vector3&) const;
  14542. String ToString() const;
  14543. // Properties:
  14544. /* readonly */
  14545. Array<float> data;
  14546. /* readonly */
  14547. float length;
  14548. /* readonly */
  14549. float lengthSquared;
  14550. float x;
  14551. float y;
  14552. float z;
  14553. // Constants:
  14554. static const Vector3 BACK;
  14555. static const Vector3 DOWN;
  14556. static const Vector3 FORWARD;
  14557. static const Vector3 LEFT;
  14558. static const Vector3 ONE;
  14559. static const Vector3 RIGHT;
  14560. static const Vector3 UP;
  14561. static const Vector3 ZERO;
  14562. };
  14563. class Vector4
  14564. {
  14565. public:
  14566. Vector4();
  14567. Vector4(const Vector4&in);
  14568. Vector4(float, float, float, float);
  14569. Vector4(const Vector3&in, float);
  14570. Vector4(float[]&inout);
  14571. // Methods:
  14572. Vector4 Abs() const;
  14573. float AbsDotProduct(const Vector4&) const;
  14574. float DotProduct(const Vector4&) const;
  14575. bool Equals(const Vector4&) const;
  14576. bool IsNaN() const;
  14577. Vector4 Lerp(const Vector4&, float) const;
  14578. float ProjectOntoAxis(const Vector3&) const;
  14579. String ToString() const;
  14580. // Properties:
  14581. /* readonly */
  14582. Array<float> data;
  14583. float w;
  14584. float x;
  14585. float y;
  14586. float z;
  14587. };
  14588. class VectorBuffer
  14589. {
  14590. public:
  14591. ~VectorBuffer();
  14592. VectorBuffer();
  14593. VectorBuffer(const VectorBuffer&in);
  14594. VectorBuffer(Deserializer@, uint);
  14595. // Methods:
  14596. void Clear();
  14597. Array<uint8> Read(uint);
  14598. bool ReadBool();
  14599. BoundingBox ReadBoundingBox();
  14600. int8 ReadByte();
  14601. Color ReadColor();
  14602. double ReadDouble();
  14603. String ReadFileID();
  14604. float ReadFloat();
  14605. int ReadInt();
  14606. int64 ReadInt64();
  14607. IntRect ReadIntRect();
  14608. IntVector2 ReadIntVector2();
  14609. String ReadLine();
  14610. Matrix3 ReadMatrix3();
  14611. Matrix3x4 ReadMatrix3x4();
  14612. Matrix4 ReadMatrix4();
  14613. uint ReadNetID();
  14614. Quaternion ReadPackedQuaternion();
  14615. Vector3 ReadPackedVector3(float);
  14616. Quaternion ReadQuaternion();
  14617. int16 ReadShort();
  14618. String ReadString();
  14619. StringHash ReadStringHash();
  14620. uint8 ReadUByte();
  14621. uint ReadUInt();
  14622. uint64 ReadUInt64();
  14623. uint16 ReadUShort();
  14624. uint ReadVLE();
  14625. Variant ReadVariant();
  14626. VariantMap ReadVariantMap();
  14627. Vector2 ReadVector2();
  14628. Vector3 ReadVector3();
  14629. Vector4 ReadVector4();
  14630. VectorBuffer ReadVectorBuffer(uint);
  14631. void Resize(uint);
  14632. uint Seek(uint);
  14633. uint SeekRelative(int);
  14634. void SetData(Deserializer, uint);
  14635. uint Tell() const;
  14636. uint Write(Array<uint8>);
  14637. bool WriteBool(bool);
  14638. bool WriteBoundingBox(const BoundingBox&);
  14639. bool WriteByte(int8);
  14640. bool WriteColor(const Color&);
  14641. bool WriteDouble(double);
  14642. bool WriteFileID(const String&);
  14643. bool WriteFloat(float);
  14644. bool WriteInt(int);
  14645. bool WriteInt64(int64);
  14646. bool WriteIntRect(const IntRect&);
  14647. bool WriteIntVector2(const IntVector2&);
  14648. bool WriteLine(const String&);
  14649. bool WriteMatrix3(const Matrix3&);
  14650. bool WriteMatrix3x4(const Matrix3x4&);
  14651. bool WriteMatrix4(const Matrix4&);
  14652. bool WriteNetID(uint);
  14653. bool WritePackedQuaternion(const Quaternion&);
  14654. bool WritePackedVector3(const Vector3&, float);
  14655. bool WriteQuaternion(const Quaternion&);
  14656. bool WriteShort(int16);
  14657. bool WriteString(const String&);
  14658. bool WriteStringHash(const StringHash&);
  14659. bool WriteUByte(uint8);
  14660. bool WriteUInt(uint);
  14661. bool WriteUInt64(uint64);
  14662. bool WriteUShort(uint16);
  14663. bool WriteVLE(uint);
  14664. bool WriteVariant(const Variant&);
  14665. bool WriteVariantMap(const VariantMap&);
  14666. bool WriteVector2(const Vector2&);
  14667. bool WriteVector3(const Vector3&);
  14668. bool WriteVector4(const Vector4&);
  14669. bool WriteVectorBuffer(const VectorBuffer&);
  14670. // Properties:
  14671. /* readonly */
  14672. uint checksum;
  14673. /* readonly */
  14674. bool eof;
  14675. /* readonly */
  14676. String name;
  14677. /* readonly */
  14678. uint position;
  14679. /* readonly */
  14680. uint size;
  14681. };
  14682. class VertexBuffer
  14683. {
  14684. public:
  14685. VertexBuffer();
  14686. // Methods:
  14687. VectorBuffer GetData() const;
  14688. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  14689. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14690. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  14691. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  14692. bool HasSubscribedToEvent(Object, const String&);
  14693. bool HasSubscribedToEvent(const String&);
  14694. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14695. bool SetData(VectorBuffer&);
  14696. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  14697. void SetSize(uint, Array<VertexElement>, bool = false);
  14698. void SetSize(uint, uint, bool = false);
  14699. // Properties:
  14700. /* readonly */
  14701. String category;
  14702. /* readonly */
  14703. bool dynamic;
  14704. /* readonly */
  14705. uint elementMask;
  14706. /* readonly */
  14707. Array<VertexElement> elements;
  14708. /* readonly */
  14709. int refs;
  14710. bool shadowed;
  14711. /* readonly */
  14712. StringHash type;
  14713. /* readonly */
  14714. String typeName;
  14715. /* readonly */
  14716. uint vertexCount;
  14717. /* readonly */
  14718. uint vertexSize;
  14719. /* readonly */
  14720. int weakRefs;
  14721. };
  14722. class VertexElement
  14723. {
  14724. public:
  14725. ~VertexElement();
  14726. VertexElement();
  14727. VertexElement(const VertexElement&in);
  14728. VertexElement(VertexElementType, VertexElementSemantic, uint8 index = 0, bool perInstance = false);
  14729. // Properties:
  14730. uint8 index;
  14731. uint offset;
  14732. bool perInstance;
  14733. VertexElementSemantic semantic;
  14734. VertexElementType type;
  14735. };
  14736. class View3D
  14737. {
  14738. public:
  14739. View3D();
  14740. View3D(const String&in);
  14741. // Methods:
  14742. void AddChild(UIElement);
  14743. void AddTag(const String&);
  14744. void AddTags(const String&, int8 = ';');
  14745. void ApplyAttributes();
  14746. void BringToFront();
  14747. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  14748. void DisableLayoutUpdate();
  14749. IntVector2 ElementToScreen(const IntVector2&);
  14750. void EnableLayoutUpdate();
  14751. uint FindChild(UIElement) const;
  14752. Variant GetAttribute(const String&) const;
  14753. ValueAnimation GetAttributeAnimation(const String&) const;
  14754. float GetAttributeAnimationSpeed(const String&) const;
  14755. float GetAttributeAnimationTime(const String&) const;
  14756. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14757. Variant GetAttributeDefault(const String&) const;
  14758. UIElement GetChild(const String&, bool = false) const;
  14759. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  14760. Array<UIElement> GetChildren(bool = false) const;
  14761. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14762. UIElement GetElementEventSender() const;
  14763. bool GetInterceptNetworkUpdate(const String&) const;
  14764. uint GetNumChildren(bool) const;
  14765. bool HasSubscribedToEvent(Object, const String&);
  14766. bool HasSubscribedToEvent(const String&);
  14767. bool HasTag(const String&) const;
  14768. void InsertChild(uint, UIElement);
  14769. bool IsChildOf(UIElement) const;
  14770. bool IsInside(IntVector2, bool);
  14771. bool IsInsideCombined(IntVector2, bool);
  14772. bool Load(File);
  14773. bool Load(VectorBuffer&);
  14774. UIElement LoadChildXML(XMLFile, XMLFile);
  14775. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14776. bool LoadJSON(const JSONValue&);
  14777. bool LoadXML(File);
  14778. bool LoadXML(VectorBuffer&);
  14779. bool LoadXML(XMLFile, XMLFile);
  14780. bool LoadXML(const XMLElement&, XMLFile);
  14781. bool LoadXML(const XMLElement&);
  14782. void MarkNetworkUpdate() const;
  14783. void QueueUpdate();
  14784. void Remove();
  14785. void RemoveAllChildren();
  14786. void RemoveAllTags();
  14787. void RemoveAttributeAnimation(const String&);
  14788. void RemoveChild(UIElement, uint = 0);
  14789. void RemoveChild(uint);
  14790. void RemoveInstanceDefault();
  14791. void RemoveObjectAnimation();
  14792. bool RemoveTag(const String&);
  14793. void ResetDeepEnabled();
  14794. void ResetToDefault();
  14795. bool Save(File) const;
  14796. bool Save(VectorBuffer&) const;
  14797. bool SaveJSON(JSONValue&) const;
  14798. bool SaveXML(File, const String& = "\t");
  14799. bool SaveXML(VectorBuffer&, const String& = "\t");
  14800. bool SaveXML(XMLElement&) const;
  14801. IntVector2 ScreenToElement(const IntVector2&);
  14802. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14803. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14804. void SetAnimationTime(float);
  14805. bool SetAttribute(const String&, const Variant&);
  14806. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14807. void SetAttributeAnimationSpeed(const String&, float);
  14808. void SetAttributeAnimationTime(const String&, float);
  14809. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14810. void SetDeepEnabled(bool);
  14811. void SetEnabledRecursive(bool);
  14812. void SetFixedHeight(int);
  14813. void SetFixedSize(int, int);
  14814. void SetFixedWidth(int);
  14815. void SetFullImageRect();
  14816. void SetHoverOffset(int, int);
  14817. void SetInterceptNetworkUpdate(const String&, bool);
  14818. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  14819. void SetMaxAnchor(float, float);
  14820. void SetMaxSize(int, int);
  14821. void SetMinAnchor(float, float);
  14822. void SetMinSize(int, int);
  14823. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14824. void SetPivot(float, float);
  14825. void SetPosition(int, int);
  14826. void SetSize(int, int);
  14827. bool SetStyle(const String&, XMLFile = null);
  14828. bool SetStyle(const XMLElement&);
  14829. bool SetStyleAuto(XMLFile = null);
  14830. void SetView(Scene, Camera, bool = true);
  14831. void UpdateLayout();
  14832. const Variant& GetVar(const StringHash&);
  14833. // Properties:
  14834. bool animationEnabled;
  14835. /* readonly */
  14836. Array<Variant> attributeDefaults;
  14837. /* readonly */
  14838. Array<AttributeInfo> attributeInfos;
  14839. Array<Variant> attributes;
  14840. bool autoUpdate;
  14841. BlendMode blendMode;
  14842. IntRect border;
  14843. bool bringToBack;
  14844. bool bringToFront;
  14845. /* readonly */
  14846. Node cameraNode;
  14847. /* readonly */
  14848. String category;
  14849. /* readonly */
  14850. IntVector2 childOffset;
  14851. /* readonly */
  14852. Array<UIElement> children;
  14853. IntRect clipBorder;
  14854. bool clipChildren;
  14855. /* writeonly */
  14856. Color color;
  14857. /* readonly */
  14858. bool colorGradient;
  14859. Array<Color> colors;
  14860. /* readonly */
  14861. IntRect combinedScreenRect;
  14862. XMLFile defaultStyle;
  14863. /* readonly */
  14864. Texture2D depthTexture;
  14865. /* readonly */
  14866. float derivedOpacity;
  14867. /* readonly */
  14868. uint dragButtonCombo;
  14869. /* readonly */
  14870. int dragButtonCount;
  14871. uint dragDropMode;
  14872. bool editable;
  14873. bool elementEventSender;
  14874. bool enableAnchor;
  14875. bool enabled;
  14876. /* readonly */
  14877. bool enabledSelf;
  14878. /* readonly */
  14879. bool fixedHeight;
  14880. bool fixedHeightResizing;
  14881. /* readonly */
  14882. bool fixedSize;
  14883. /* readonly */
  14884. bool fixedWidth;
  14885. bool fixedWidthResizing;
  14886. bool focus;
  14887. FocusMode focusMode;
  14888. uint format;
  14889. int height;
  14890. HorizontalAlignment horizontalAlignment;
  14891. IntVector2 hoverOffset;
  14892. /* readonly */
  14893. bool hovering;
  14894. IntRect imageBorder;
  14895. IntRect imageRect;
  14896. int indent;
  14897. int indentSpacing;
  14898. /* readonly */
  14899. int indentWidth;
  14900. bool internal;
  14901. IntRect layoutBorder;
  14902. Vector2 layoutFlexScale;
  14903. LayoutMode layoutMode;
  14904. int layoutSpacing;
  14905. Material material;
  14906. Vector2 maxAnchor;
  14907. int maxHeight;
  14908. IntVector2 maxOffset;
  14909. IntVector2 maxSize;
  14910. int maxWidth;
  14911. Vector2 minAnchor;
  14912. int minHeight;
  14913. IntVector2 minOffset;
  14914. IntVector2 minSize;
  14915. int minWidth;
  14916. bool modal;
  14917. bool modalAutoDismiss;
  14918. Color modalFrameColor;
  14919. IntVector2 modalFrameSize;
  14920. Color modalShadeColor;
  14921. bool movable;
  14922. String name;
  14923. /* readonly */
  14924. uint numAllChildren;
  14925. /* readonly */
  14926. uint numAttributes;
  14927. /* readonly */
  14928. uint numChildren;
  14929. ObjectAnimation objectAnimation;
  14930. float opacity;
  14931. UIElement parent;
  14932. Vector2 pivot;
  14933. IntVector2 position;
  14934. int priority;
  14935. /* readonly */
  14936. int refs;
  14937. /* readonly */
  14938. Texture2D renderTexture;
  14939. bool resizable;
  14940. IntRect resizeBorder;
  14941. /* readonly */
  14942. UIElement root;
  14943. /* readonly */
  14944. Scene scene;
  14945. /* readonly */
  14946. IntVector2 screenPosition;
  14947. bool selected;
  14948. IntVector2 size;
  14949. bool sortChildren;
  14950. String style;
  14951. /* readonly */
  14952. Array<String> tags;
  14953. bool temporary;
  14954. Texture texture;
  14955. bool tiled;
  14956. TraversalMode traversalMode;
  14957. /* readonly */
  14958. StringHash type;
  14959. /* readonly */
  14960. String typeName;
  14961. bool useDerivedOpacity;
  14962. /* readonly */
  14963. VariantMap vars;
  14964. VerticalAlignment verticalAlignment;
  14965. /* readonly */
  14966. Viewport viewport;
  14967. bool visible;
  14968. /* readonly */
  14969. bool visibleEffective;
  14970. /* readonly */
  14971. int weakRefs;
  14972. int width;
  14973. };
  14974. class Viewport
  14975. {
  14976. public:
  14977. Viewport();
  14978. Viewport(Scene&, Camera&, RenderPath& renderPath = null);
  14979. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& renderPath = null);
  14980. // Methods:
  14981. Ray GetScreenRay(int, int) const;
  14982. bool HasSubscribedToEvent(Object, const String&);
  14983. bool HasSubscribedToEvent(const String&);
  14984. Vector3 ScreenToWorldPoint(int, int, float) const;
  14985. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  14986. void SetRenderPath(XMLFile);
  14987. IntVector2 WorldToScreenPoint(const Vector3&) const;
  14988. // Properties:
  14989. Camera camera;
  14990. /* readonly */
  14991. String category;
  14992. Camera cullCamera;
  14993. bool drawDebug;
  14994. IntRect rect;
  14995. /* readonly */
  14996. int refs;
  14997. RenderPath renderPath;
  14998. Scene scene;
  14999. /* readonly */
  15000. StringHash type;
  15001. /* readonly */
  15002. String typeName;
  15003. /* readonly */
  15004. int weakRefs;
  15005. };
  15006. class WeakHandle
  15007. {
  15008. public:
  15009. ~WeakHandle();
  15010. WeakHandle();
  15011. WeakHandle(const WeakHandle&in);
  15012. WeakHandle(RefCounted@);
  15013. // Methods:
  15014. RefCounted Get() const;
  15015. // Properties:
  15016. /* readonly */
  15017. bool expired;
  15018. /* readonly */
  15019. int refs;
  15020. /* readonly */
  15021. int weakRefs;
  15022. };
  15023. class Window
  15024. {
  15025. public:
  15026. Window();
  15027. Window(const String&in);
  15028. // Methods:
  15029. void AddChild(UIElement);
  15030. void AddTag(const String&);
  15031. void AddTags(const String&, int8 = ';');
  15032. void ApplyAttributes();
  15033. void BringToFront();
  15034. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  15035. void DisableLayoutUpdate();
  15036. IntVector2 ElementToScreen(const IntVector2&);
  15037. void EnableLayoutUpdate();
  15038. uint FindChild(UIElement) const;
  15039. Variant GetAttribute(const String&) const;
  15040. ValueAnimation GetAttributeAnimation(const String&) const;
  15041. float GetAttributeAnimationSpeed(const String&) const;
  15042. float GetAttributeAnimationTime(const String&) const;
  15043. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15044. Variant GetAttributeDefault(const String&) const;
  15045. UIElement GetChild(const String&, bool = false) const;
  15046. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  15047. Array<UIElement> GetChildren(bool = false) const;
  15048. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  15049. UIElement GetElementEventSender() const;
  15050. bool GetInterceptNetworkUpdate(const String&) const;
  15051. uint GetNumChildren(bool) const;
  15052. bool HasSubscribedToEvent(Object, const String&);
  15053. bool HasSubscribedToEvent(const String&);
  15054. bool HasTag(const String&) const;
  15055. void InsertChild(uint, UIElement);
  15056. bool IsChildOf(UIElement) const;
  15057. bool IsInside(IntVector2, bool);
  15058. bool IsInsideCombined(IntVector2, bool);
  15059. bool Load(File);
  15060. bool Load(VectorBuffer&);
  15061. UIElement LoadChildXML(XMLFile, XMLFile);
  15062. UIElement LoadChildXML(const XMLElement&, XMLFile);
  15063. bool LoadJSON(const JSONValue&);
  15064. bool LoadXML(File);
  15065. bool LoadXML(VectorBuffer&);
  15066. bool LoadXML(XMLFile, XMLFile);
  15067. bool LoadXML(const XMLElement&, XMLFile);
  15068. bool LoadXML(const XMLElement&);
  15069. void MarkNetworkUpdate() const;
  15070. void Remove();
  15071. void RemoveAllChildren();
  15072. void RemoveAllTags();
  15073. void RemoveAttributeAnimation(const String&);
  15074. void RemoveChild(UIElement, uint = 0);
  15075. void RemoveChild(uint);
  15076. void RemoveInstanceDefault();
  15077. void RemoveObjectAnimation();
  15078. bool RemoveTag(const String&);
  15079. void ResetDeepEnabled();
  15080. void ResetToDefault();
  15081. bool Save(File) const;
  15082. bool Save(VectorBuffer&) const;
  15083. bool SaveJSON(JSONValue&) const;
  15084. bool SaveXML(File, const String& = "\t");
  15085. bool SaveXML(VectorBuffer&, const String& = "\t");
  15086. bool SaveXML(XMLElement&) const;
  15087. IntVector2 ScreenToElement(const IntVector2&);
  15088. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15089. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  15090. void SetAnimationTime(float);
  15091. bool SetAttribute(const String&, const Variant&);
  15092. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15093. void SetAttributeAnimationSpeed(const String&, float);
  15094. void SetAttributeAnimationTime(const String&, float);
  15095. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15096. void SetDeepEnabled(bool);
  15097. void SetEnabledRecursive(bool);
  15098. void SetFixedHeight(int);
  15099. void SetFixedSize(int, int);
  15100. void SetFixedWidth(int);
  15101. void SetFullImageRect();
  15102. void SetHoverOffset(int, int);
  15103. void SetInterceptNetworkUpdate(const String&, bool);
  15104. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  15105. void SetMaxAnchor(float, float);
  15106. void SetMaxSize(int, int);
  15107. void SetMinAnchor(float, float);
  15108. void SetMinSize(int, int);
  15109. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  15110. void SetPivot(float, float);
  15111. void SetPosition(int, int);
  15112. void SetSize(int, int);
  15113. bool SetStyle(const String&, XMLFile = null);
  15114. bool SetStyle(const XMLElement&);
  15115. bool SetStyleAuto(XMLFile = null);
  15116. void UpdateLayout();
  15117. const Variant& GetVar(const StringHash&);
  15118. // Properties:
  15119. bool animationEnabled;
  15120. /* readonly */
  15121. Array<Variant> attributeDefaults;
  15122. /* readonly */
  15123. Array<AttributeInfo> attributeInfos;
  15124. Array<Variant> attributes;
  15125. BlendMode blendMode;
  15126. IntRect border;
  15127. bool bringToBack;
  15128. bool bringToFront;
  15129. /* readonly */
  15130. String category;
  15131. /* readonly */
  15132. IntVector2 childOffset;
  15133. /* readonly */
  15134. Array<UIElement> children;
  15135. IntRect clipBorder;
  15136. bool clipChildren;
  15137. /* writeonly */
  15138. Color color;
  15139. /* readonly */
  15140. bool colorGradient;
  15141. Array<Color> colors;
  15142. /* readonly */
  15143. IntRect combinedScreenRect;
  15144. XMLFile defaultStyle;
  15145. /* readonly */
  15146. float derivedOpacity;
  15147. /* readonly */
  15148. uint dragButtonCombo;
  15149. /* readonly */
  15150. int dragButtonCount;
  15151. uint dragDropMode;
  15152. bool editable;
  15153. bool elementEventSender;
  15154. bool enableAnchor;
  15155. bool enabled;
  15156. /* readonly */
  15157. bool enabledSelf;
  15158. /* readonly */
  15159. bool fixedHeight;
  15160. bool fixedHeightResizing;
  15161. /* readonly */
  15162. bool fixedSize;
  15163. /* readonly */
  15164. bool fixedWidth;
  15165. bool fixedWidthResizing;
  15166. bool focus;
  15167. FocusMode focusMode;
  15168. int height;
  15169. HorizontalAlignment horizontalAlignment;
  15170. IntVector2 hoverOffset;
  15171. /* readonly */
  15172. bool hovering;
  15173. IntRect imageBorder;
  15174. IntRect imageRect;
  15175. int indent;
  15176. int indentSpacing;
  15177. /* readonly */
  15178. int indentWidth;
  15179. bool internal;
  15180. IntRect layoutBorder;
  15181. Vector2 layoutFlexScale;
  15182. LayoutMode layoutMode;
  15183. int layoutSpacing;
  15184. Material material;
  15185. Vector2 maxAnchor;
  15186. int maxHeight;
  15187. IntVector2 maxOffset;
  15188. IntVector2 maxSize;
  15189. int maxWidth;
  15190. Vector2 minAnchor;
  15191. int minHeight;
  15192. IntVector2 minOffset;
  15193. IntVector2 minSize;
  15194. int minWidth;
  15195. bool modal;
  15196. bool modalAutoDismiss;
  15197. Color modalFrameColor;
  15198. IntVector2 modalFrameSize;
  15199. Color modalShadeColor;
  15200. bool movable;
  15201. String name;
  15202. /* readonly */
  15203. uint numAllChildren;
  15204. /* readonly */
  15205. uint numAttributes;
  15206. /* readonly */
  15207. uint numChildren;
  15208. ObjectAnimation objectAnimation;
  15209. float opacity;
  15210. UIElement parent;
  15211. Vector2 pivot;
  15212. IntVector2 position;
  15213. int priority;
  15214. /* readonly */
  15215. int refs;
  15216. bool resizable;
  15217. IntRect resizeBorder;
  15218. /* readonly */
  15219. UIElement root;
  15220. /* readonly */
  15221. IntVector2 screenPosition;
  15222. bool selected;
  15223. IntVector2 size;
  15224. bool sortChildren;
  15225. String style;
  15226. /* readonly */
  15227. Array<String> tags;
  15228. bool temporary;
  15229. Texture texture;
  15230. bool tiled;
  15231. TraversalMode traversalMode;
  15232. /* readonly */
  15233. StringHash type;
  15234. /* readonly */
  15235. String typeName;
  15236. bool useDerivedOpacity;
  15237. /* readonly */
  15238. VariantMap vars;
  15239. VerticalAlignment verticalAlignment;
  15240. bool visible;
  15241. /* readonly */
  15242. bool visibleEffective;
  15243. /* readonly */
  15244. int weakRefs;
  15245. int width;
  15246. };
  15247. class XMLElement
  15248. {
  15249. public:
  15250. ~XMLElement();
  15251. XMLElement();
  15252. XMLElement(const XMLElement&in);
  15253. // Methods:
  15254. bool AppendChild(XMLElement, bool);
  15255. XMLElement CreateChild(const String&);
  15256. String GetAttribute(const String& = String ( )) const;
  15257. String GetAttributeLower(const String&) const;
  15258. Array<String> GetAttributeNames() const;
  15259. String GetAttributeUpper(const String&) const;
  15260. bool GetBool(const String&) const;
  15261. BoundingBox GetBoundingBox() const;
  15262. XMLElement GetChild(const String& = String ( )) const;
  15263. Color GetColor(const String&) const;
  15264. double GetDouble(const String&) const;
  15265. float GetFloat(const String&) const;
  15266. int GetInt(const String&) const;
  15267. int64 GetInt64(const String&) const;
  15268. IntRect GetIntRect(const String&) const;
  15269. IntVector2 GetIntVector2(const String&) const;
  15270. IntVector3 GetIntVector3(const String&) const;
  15271. Matrix3 GetMatrix3(const String&) const;
  15272. Matrix3x4 GetMatrix3x4(const String&) const;
  15273. Matrix4 GetMatrix4(const String&) const;
  15274. XMLElement GetNext(const String& = String ( )) const;
  15275. XMLElement GetOrCreateChild(const String&);
  15276. Quaternion GetQuaternion(const String&) const;
  15277. ResourceRef GetResourceRef() const;
  15278. ResourceRefList GetResourceRefList() const;
  15279. uint GetUInt(const String&) const;
  15280. uint64 GetUInt64(const String&) const;
  15281. String GetValue() const;
  15282. Variant GetVariant() const;
  15283. VariantMap GetVariantMap() const;
  15284. Array<Variant> GetVariantVector() const;
  15285. Vector2 GetVector2(const String&) const;
  15286. Vector3 GetVector3(const String&) const;
  15287. Vector4 GetVector4(const String&) const;
  15288. Variant GetVectorVariant(const String&) const;
  15289. bool HasAttribute(const String&) const;
  15290. bool HasChild(const String&) const;
  15291. bool Remove();
  15292. bool RemoveAttribute(const String& = String ( ));
  15293. bool RemoveChild(const String&);
  15294. bool RemoveChild(const XMLElement&);
  15295. bool RemoveChildren(const String& = String ( ));
  15296. XPathResultSet Select(const String&);
  15297. XPathResultSet SelectPrepared(const XPathQuery&);
  15298. XMLElement SelectSingle(const String&);
  15299. XMLElement SelectSinglePrepared(const XPathQuery&);
  15300. bool SetAttribute(const String&);
  15301. bool SetAttribute(const String&, const String&);
  15302. bool SetBool(const String&, bool);
  15303. bool SetBoundingBox(const BoundingBox&);
  15304. bool SetColor(const String&, const Color&);
  15305. bool SetDouble(const String&, double);
  15306. bool SetFloat(const String&, float);
  15307. bool SetInt(const String&, int);
  15308. bool SetInt64(const String&, int64);
  15309. bool SetIntRect(const String&, const IntRect&);
  15310. bool SetIntVector2(const String&, const IntVector2&);
  15311. bool SetIntVector3(const String&, const IntVector3&);
  15312. bool SetMatrix3(const String&, const Matrix3&);
  15313. bool SetMatrix3x4(const String&, const Matrix3x4&);
  15314. bool SetMatrix4(const String&, const Matrix4&);
  15315. bool SetQuaternion(const String&, const Quaternion&);
  15316. bool SetResourceRef(const String&, const ResourceRef&);
  15317. bool SetResourceRefList(const String&, const ResourceRefList&);
  15318. bool SetUInt(const String&, uint);
  15319. bool SetUInt64(const String&, uint64);
  15320. bool SetValue(const String&);
  15321. bool SetVariant(const Variant&);
  15322. bool SetVariantMap(const VariantMap&);
  15323. bool SetVariantVector(Array<Variant>);
  15324. bool SetVector2(const String&, const Vector2&);
  15325. bool SetVector3(const String&, const Vector3&);
  15326. bool SetVector4(const String&, const Vector4&);
  15327. bool SetVectorVariant(const String&, const Variant&);
  15328. // Properties:
  15329. /* readonly */
  15330. XMLFile file;
  15331. /* readonly */
  15332. bool isNull;
  15333. /* readonly */
  15334. String name;
  15335. /* readonly */
  15336. XMLElement nextResult;
  15337. /* readonly */
  15338. bool notNull;
  15339. /* readonly */
  15340. uint numAttributes;
  15341. /* readonly */
  15342. XMLElement parent;
  15343. String value;
  15344. };
  15345. class XMLFile
  15346. {
  15347. public:
  15348. XMLFile();
  15349. XMLFile(const String&in);
  15350. // Methods:
  15351. XMLElement CreateRoot(const String&);
  15352. bool FromString(const String&);
  15353. XMLElement GetOrCreateRoot(const String&);
  15354. XMLElement GetRoot(const String& = String ( ));
  15355. bool HasSubscribedToEvent(Object, const String&);
  15356. bool HasSubscribedToEvent(const String&);
  15357. bool Load(File);
  15358. bool Load(VectorBuffer&);
  15359. bool Load(const String&);
  15360. void Patch(XMLFile);
  15361. void Patch(const XMLElement&);
  15362. bool Save(File) const;
  15363. bool Save(File, const String&) const;
  15364. bool Save(VectorBuffer&) const;
  15365. bool Save(const String&) const;
  15366. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15367. String ToString(const String& = String ( "\t" )) const;
  15368. // Properties:
  15369. /* readonly */
  15370. String category;
  15371. /* readonly */
  15372. uint memoryUse;
  15373. String name;
  15374. /* readonly */
  15375. int refs;
  15376. /* readonly */
  15377. XMLElement root;
  15378. /* readonly */
  15379. StringHash type;
  15380. /* readonly */
  15381. String typeName;
  15382. /* readonly */
  15383. uint useTimer;
  15384. /* readonly */
  15385. int weakRefs;
  15386. };
  15387. class XPathQuery
  15388. {
  15389. public:
  15390. ~XPathQuery();
  15391. XPathQuery();
  15392. XPathQuery(const String&in, const String&inout arg1 = String ( ));
  15393. // Methods:
  15394. void Bind();
  15395. void Clear();
  15396. XPathResultSet Evaluate(const XMLElement&);
  15397. bool EvaluateToBool(const XMLElement&);
  15398. float EvaluateToFloat(const XMLElement&);
  15399. String EvaluateToString(const XMLElement&);
  15400. bool SetQuery(const String&, const String& = String ( ), bool = true);
  15401. bool SetVariable(const String&, bool);
  15402. bool SetVariable(const String&, const String&);
  15403. bool SetVariable(const String&, const XPathResultSet&);
  15404. bool SetVariable(const String&, float);
  15405. // Properties:
  15406. String query;
  15407. };
  15408. class XPathResultSet
  15409. {
  15410. public:
  15411. ~XPathResultSet();
  15412. XPathResultSet();
  15413. XPathResultSet(const XPathResultSet&in);
  15414. // Properties:
  15415. /* readonly */
  15416. bool empty;
  15417. /* readonly */
  15418. XMLElement firstResult;
  15419. /* readonly */
  15420. uint size;
  15421. };
  15422. class Zone
  15423. {
  15424. public:
  15425. // Methods:
  15426. void ApplyAttributes();
  15427. void DrawDebugGeometry(DebugRenderer, bool);
  15428. Variant GetAttribute(const String&) const;
  15429. ValueAnimation GetAttributeAnimation(const String&) const;
  15430. float GetAttributeAnimationSpeed(const String&) const;
  15431. float GetAttributeAnimationTime(const String&) const;
  15432. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15433. Variant GetAttributeDefault(const String&) const;
  15434. bool GetInterceptNetworkUpdate(const String&) const;
  15435. bool HasSubscribedToEvent(Object, const String&);
  15436. bool HasSubscribedToEvent(const String&);
  15437. bool IsInView(Camera) const;
  15438. bool Load(File);
  15439. bool Load(VectorBuffer&);
  15440. bool LoadJSON(const JSONValue&);
  15441. bool LoadXML(const XMLElement&);
  15442. void MarkNetworkUpdate() const;
  15443. void Remove();
  15444. void RemoveAttributeAnimation(const String&);
  15445. void RemoveInstanceDefault();
  15446. void RemoveObjectAnimation();
  15447. void ResetToDefault();
  15448. bool Save(File) const;
  15449. bool Save(VectorBuffer&) const;
  15450. bool SaveJSON(JSONValue&) const;
  15451. bool SaveXML(XMLElement&) const;
  15452. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  15453. void SetAnimationTime(float);
  15454. bool SetAttribute(const String&, const Variant&);
  15455. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15456. void SetAttributeAnimationSpeed(const String&, float);
  15457. void SetAttributeAnimationTime(const String&, float);
  15458. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15459. void SetInterceptNetworkUpdate(const String&, bool);
  15460. // Properties:
  15461. Color ambientColor;
  15462. /* readonly */
  15463. Color ambientEndColor;
  15464. bool ambientGradient;
  15465. /* readonly */
  15466. Color ambientStartColor;
  15467. bool animationEnabled;
  15468. /* readonly */
  15469. Array<Variant> attributeDefaults;
  15470. /* readonly */
  15471. Array<AttributeInfo> attributeInfos;
  15472. Array<Variant> attributes;
  15473. BoundingBox boundingBox;
  15474. bool castShadows;
  15475. /* readonly */
  15476. String category;
  15477. float drawDistance;
  15478. bool enabled;
  15479. /* readonly */
  15480. bool enabledEffective;
  15481. Color fogColor;
  15482. float fogEnd;
  15483. float fogHeight;
  15484. float fogHeightScale;
  15485. float fogStart;
  15486. bool heightFog;
  15487. /* readonly */
  15488. uint id;
  15489. /* readonly */
  15490. bool inView;
  15491. /* readonly */
  15492. Matrix3x4 inverseWorldTransform;
  15493. uint lightMask;
  15494. float lodBias;
  15495. uint maxLights;
  15496. /* readonly */
  15497. Node node;
  15498. /* readonly */
  15499. uint numAttributes;
  15500. ObjectAnimation objectAnimation;
  15501. bool occludee;
  15502. bool occluder;
  15503. bool override;
  15504. int priority;
  15505. /* readonly */
  15506. int refs;
  15507. /* readonly */
  15508. bool replicated;
  15509. float shadowDistance;
  15510. uint shadowMask;
  15511. bool temporary;
  15512. /* readonly */
  15513. StringHash type;
  15514. /* readonly */
  15515. String typeName;
  15516. uint viewMask;
  15517. /* readonly */
  15518. int weakRefs;
  15519. /* readonly */
  15520. BoundingBox worldBoundingBox;
  15521. uint zoneMask;
  15522. Texture zoneTexture;
  15523. };
  15524. // Enumerations
  15525. enum AnimationBlendMode
  15526. {
  15527. ABM_LERP,
  15528. ABM_ADDITIVE,
  15529. };
  15530. enum AnimationChannel
  15531. {
  15532. CHANNEL_POSITION,
  15533. CHANNEL_ROTATION,
  15534. CHANNEL_SCALE,
  15535. };
  15536. enum AttributeMode
  15537. {
  15538. AM_FILE,
  15539. AM_NET,
  15540. AM_DEFAULT,
  15541. AM_LATESTDATA,
  15542. AM_NOEDIT,
  15543. AM_NODEID,
  15544. AM_COMPONENTID,
  15545. AM_NODEIDVECTOR,
  15546. AM_FILEREADONLY,
  15547. };
  15548. enum AutoRemoveMode
  15549. {
  15550. REMOVE_DISABLED,
  15551. REMOVE_COMPONENT,
  15552. REMOVE_NODE,
  15553. };
  15554. enum BlendMode
  15555. {
  15556. BLEND_REPLACE,
  15557. BLEND_ADD,
  15558. BLEND_MULTIPLY,
  15559. BLEND_ALPHA,
  15560. BLEND_ADDALPHA,
  15561. BLEND_PREMULALPHA,
  15562. BLEND_INVDESTALPHA,
  15563. BLEND_SUBTRACT,
  15564. BLEND_SUBTRACTALPHA,
  15565. };
  15566. enum BodyType2D
  15567. {
  15568. BT_STATIC,
  15569. BT_KINEMATIC,
  15570. BT_DYNAMIC,
  15571. };
  15572. enum ClearTarget
  15573. {
  15574. CLEAR_COLOR,
  15575. CLEAR_DEPTH,
  15576. CLEAR_STENCIL,
  15577. };
  15578. enum CollisionEventMode
  15579. {
  15580. COLLISION_NEVER,
  15581. COLLISION_ACTIVE,
  15582. COLLISION_ALWAYS,
  15583. };
  15584. enum CompareMode
  15585. {
  15586. CMP_ALWAYS,
  15587. CMP_EQUAL,
  15588. CMP_NOTEQUAL,
  15589. CMP_LESS,
  15590. CMP_LESSEQUAL,
  15591. CMP_GREATER,
  15592. CMP_GREATEREQUAL,
  15593. };
  15594. enum CompressedFormat
  15595. {
  15596. CF_NONE,
  15597. CF_RGBA,
  15598. CF_DXT1,
  15599. CF_DXT3,
  15600. CF_DXT5,
  15601. CF_ETC1,
  15602. CF_PVRTC_RGB_2BPP,
  15603. CF_PVRTC_RGBA_2BPP,
  15604. CF_PVRTC_RGB_4BPP,
  15605. CF_PVRTC_RGBA_4BPP,
  15606. };
  15607. enum ConstraintType
  15608. {
  15609. CONSTRAINT_POINT,
  15610. CONSTRAINT_HINGE,
  15611. CONSTRAINT_SLIDER,
  15612. CONSTRAINT_CONETWIST,
  15613. };
  15614. enum ControllerAxis
  15615. {
  15616. CONTROLLER_AXIS_LEFTX,
  15617. CONTROLLER_AXIS_LEFTY,
  15618. CONTROLLER_AXIS_RIGHTX,
  15619. CONTROLLER_AXIS_RIGHTY,
  15620. CONTROLLER_AXIS_TRIGGERLEFT,
  15621. CONTROLLER_AXIS_TRIGGERRIGHT,
  15622. };
  15623. enum ControllerButton
  15624. {
  15625. CONTROLLER_BUTTON_A,
  15626. CONTROLLER_BUTTON_B,
  15627. CONTROLLER_BUTTON_X,
  15628. CONTROLLER_BUTTON_Y,
  15629. CONTROLLER_BUTTON_BACK,
  15630. CONTROLLER_BUTTON_GUIDE,
  15631. CONTROLLER_BUTTON_START,
  15632. CONTROLLER_BUTTON_LEFTSTICK,
  15633. CONTROLLER_BUTTON_RIGHTSTICK,
  15634. CONTROLLER_BUTTON_LEFTSHOULDER,
  15635. CONTROLLER_BUTTON_RIGHTSHOULDER,
  15636. CONTROLLER_BUTTON_DPAD_UP,
  15637. CONTROLLER_BUTTON_DPAD_DOWN,
  15638. CONTROLLER_BUTTON_DPAD_LEFT,
  15639. CONTROLLER_BUTTON_DPAD_RIGHT,
  15640. };
  15641. enum Corner
  15642. {
  15643. C_TOPLEFT,
  15644. C_TOPRIGHT,
  15645. C_BOTTOMLEFT,
  15646. C_BOTTOMRIGHT,
  15647. };
  15648. enum CreateMode
  15649. {
  15650. REPLICATED,
  15651. LOCAL,
  15652. };
  15653. enum CrowdAgentRequestedTarget
  15654. {
  15655. CA_REQUESTEDTARGET_NONE,
  15656. CA_REQUESTEDTARGET_POSITION,
  15657. CA_REQUESTEDTARGET_VELOCITY,
  15658. };
  15659. enum CrowdAgentState
  15660. {
  15661. CA_STATE_INVALID,
  15662. CA_STATE_WALKING,
  15663. CA_STATE_OFFMESH,
  15664. };
  15665. enum CrowdAgentTargetState
  15666. {
  15667. CA_TARGET_NONE,
  15668. CA_TARGET_FAILED,
  15669. CA_TARGET_VALID,
  15670. CA_TARGET_REQUESTING,
  15671. CA_TARGET_WAITINGFORQUEUE,
  15672. CA_TARGET_WAITINGFORPATH,
  15673. CA_TARGET_VELOCITY,
  15674. };
  15675. enum CubeMapFace
  15676. {
  15677. FACE_POSITIVE_X,
  15678. FACE_NEGATIVE_X,
  15679. FACE_POSITIVE_Y,
  15680. FACE_NEGATIVE_Y,
  15681. FACE_POSITIVE_Z,
  15682. FACE_NEGATIVE_Z,
  15683. };
  15684. enum CullMode
  15685. {
  15686. CULL_NONE,
  15687. CULL_CCW,
  15688. CULL_CW,
  15689. };
  15690. enum CursorShape
  15691. {
  15692. CS_NORMAL,
  15693. CS_IBEAM,
  15694. CS_CROSS,
  15695. CS_RESIZEVERTICAL,
  15696. CS_RESIZEDIAGONAL_TOPRIGHT,
  15697. CS_RESIZEHORIZONTAL,
  15698. CS_RESIZEDIAGONAL_TOPLEFT,
  15699. CS_RESIZE_ALL,
  15700. CS_ACCEPTDROP,
  15701. CS_REJECTDROP,
  15702. CS_BUSY,
  15703. CS_BUSY_ARROW,
  15704. };
  15705. enum DBAPI
  15706. {
  15707. DBAPI_SQLITE,
  15708. DBAPI_ODBC,
  15709. };
  15710. enum DragAndDropMode
  15711. {
  15712. DD_DISABLED,
  15713. DD_SOURCE,
  15714. DD_TARGET,
  15715. DD_SOURCE_AND_TARGET,
  15716. };
  15717. enum DumpMode
  15718. {
  15719. DOXYGEN,
  15720. C_HEADER,
  15721. };
  15722. enum EmitterType
  15723. {
  15724. EMITTER_SPHERE,
  15725. EMITTER_BOX,
  15726. EMITTER_SPHEREVOLUME,
  15727. EMITTER_CYLINDER,
  15728. EMITTER_RING,
  15729. };
  15730. enum EmitterType2D
  15731. {
  15732. EMITTER_TYPE_GRAVITY,
  15733. EMITTER_TYPE_RADIAL,
  15734. };
  15735. enum FaceCameraMode
  15736. {
  15737. FC_NONE,
  15738. FC_ROTATE_XYZ,
  15739. FC_ROTATE_Y,
  15740. FC_LOOKAT_XYZ,
  15741. FC_LOOKAT_Y,
  15742. FC_LOOKAT_MIXED,
  15743. FC_DIRECTION,
  15744. };
  15745. enum FileMode
  15746. {
  15747. FILE_READ,
  15748. FILE_WRITE,
  15749. FILE_READWRITE,
  15750. };
  15751. enum FillMode
  15752. {
  15753. FILL_SOLID,
  15754. FILL_WIREFRAME,
  15755. FILL_POINT,
  15756. };
  15757. enum FocusMode
  15758. {
  15759. FM_NOTFOCUSABLE,
  15760. FM_RESETFOCUS,
  15761. FM_FOCUSABLE,
  15762. FM_FOCUSABLE_DEFOCUSABLE,
  15763. };
  15764. enum FontHintLevel
  15765. {
  15766. FONT_HINT_LEVEL_NONE,
  15767. FONT_HINT_LEVEL_LIGHT,
  15768. FONT_HINT_LEVEL_NORMAL,
  15769. };
  15770. enum FontType
  15771. {
  15772. FONT_NONE,
  15773. FONT_FREETYPE,
  15774. FONT_BITMAP,
  15775. };
  15776. enum HatPosition
  15777. {
  15778. HAT_CENTER,
  15779. HAT_UP,
  15780. HAT_RIGHT,
  15781. HAT_DOWN,
  15782. HAT_LEFT,
  15783. };
  15784. enum HighlightMode
  15785. {
  15786. HM_NEVER,
  15787. HM_FOCUS,
  15788. HM_ALWAYS,
  15789. };
  15790. enum HorizontalAlignment
  15791. {
  15792. HA_LEFT,
  15793. HA_CENTER,
  15794. HA_RIGHT,
  15795. HA_CUSTOM,
  15796. };
  15797. enum HttpRequestState
  15798. {
  15799. HTTP_INITIALIZING,
  15800. HTTP_ERROR,
  15801. HTTP_OPEN,
  15802. HTTP_CLOSED,
  15803. };
  15804. enum IKAlgorithm
  15805. {
  15806. ONE_BONE,
  15807. TWO_BONE,
  15808. FABRIK,
  15809. };
  15810. enum InterpMethod
  15811. {
  15812. IM_NONE,
  15813. IM_LINEAR,
  15814. IM_SPLINE,
  15815. };
  15816. enum InterpolationMode
  15817. {
  15818. BEZIER_CURVE,
  15819. CATMULL_ROM_CURVE,
  15820. LINEAR_CURVE,
  15821. CATMULL_ROM_FULL_CURVE,
  15822. };
  15823. enum Intersection
  15824. {
  15825. OUTSIDE,
  15826. INTERSECTS,
  15827. INSIDE,
  15828. };
  15829. enum JSONNumberType
  15830. {
  15831. JSONNT_NAN,
  15832. JSONNT_INT,
  15833. JSONNT_UINT,
  15834. JSONNT_FLOAT_DOUBLE,
  15835. };
  15836. enum JSONValueType
  15837. {
  15838. JSON_NULL,
  15839. JSON_BOOL,
  15840. JSON_NUMBER,
  15841. JSON_STRING,
  15842. JSON_ARRAY,
  15843. JSON_OBJECT,
  15844. };
  15845. enum Key
  15846. {
  15847. KEY_UNKNOWN,
  15848. KEY_A,
  15849. KEY_B,
  15850. KEY_C,
  15851. KEY_D,
  15852. KEY_E,
  15853. KEY_F,
  15854. KEY_G,
  15855. KEY_H,
  15856. KEY_I,
  15857. KEY_J,
  15858. KEY_K,
  15859. KEY_L,
  15860. KEY_M,
  15861. KEY_N,
  15862. KEY_O,
  15863. KEY_P,
  15864. KEY_Q,
  15865. KEY_R,
  15866. KEY_S,
  15867. KEY_T,
  15868. KEY_U,
  15869. KEY_V,
  15870. KEY_W,
  15871. KEY_X,
  15872. KEY_Y,
  15873. KEY_Z,
  15874. KEY_0,
  15875. KEY_1,
  15876. KEY_2,
  15877. KEY_3,
  15878. KEY_4,
  15879. KEY_5,
  15880. KEY_6,
  15881. KEY_7,
  15882. KEY_8,
  15883. KEY_9,
  15884. KEY_BACKSPACE,
  15885. KEY_TAB,
  15886. KEY_RETURN,
  15887. KEY_RETURN2,
  15888. KEY_KP_ENTER,
  15889. KEY_SHIFT,
  15890. KEY_CTRL,
  15891. KEY_ALT,
  15892. KEY_GUI,
  15893. KEY_PAUSE,
  15894. KEY_CAPSLOCK,
  15895. KEY_ESCAPE,
  15896. KEY_SPACE,
  15897. KEY_PAGEUP,
  15898. KEY_PAGEDOWN,
  15899. KEY_END,
  15900. KEY_HOME,
  15901. KEY_LEFT,
  15902. KEY_UP,
  15903. KEY_RIGHT,
  15904. KEY_DOWN,
  15905. KEY_SELECT,
  15906. KEY_PRINTSCREEN,
  15907. KEY_INSERT,
  15908. KEY_DELETE,
  15909. KEY_LGUI,
  15910. KEY_RGUI,
  15911. KEY_APPLICATION,
  15912. KEY_KP_0,
  15913. KEY_KP_1,
  15914. KEY_KP_2,
  15915. KEY_KP_3,
  15916. KEY_KP_4,
  15917. KEY_KP_5,
  15918. KEY_KP_6,
  15919. KEY_KP_7,
  15920. KEY_KP_8,
  15921. KEY_KP_9,
  15922. KEY_KP_MULTIPLY,
  15923. KEY_KP_PLUS,
  15924. KEY_KP_MINUS,
  15925. KEY_KP_PERIOD,
  15926. KEY_KP_DIVIDE,
  15927. KEY_F1,
  15928. KEY_F2,
  15929. KEY_F3,
  15930. KEY_F4,
  15931. KEY_F5,
  15932. KEY_F6,
  15933. KEY_F7,
  15934. KEY_F8,
  15935. KEY_F9,
  15936. KEY_F10,
  15937. KEY_F11,
  15938. KEY_F12,
  15939. KEY_F13,
  15940. KEY_F14,
  15941. KEY_F15,
  15942. KEY_F16,
  15943. KEY_F17,
  15944. KEY_F18,
  15945. KEY_F19,
  15946. KEY_F20,
  15947. KEY_F21,
  15948. KEY_F22,
  15949. KEY_F23,
  15950. KEY_F24,
  15951. KEY_NUMLOCKCLEAR,
  15952. KEY_SCROLLLOCK,
  15953. KEY_LSHIFT,
  15954. KEY_RSHIFT,
  15955. KEY_LCTRL,
  15956. KEY_RCTRL,
  15957. KEY_LALT,
  15958. KEY_RALT,
  15959. KEY_AC_BACK,
  15960. KEY_AC_BOOKMARKS,
  15961. KEY_AC_FORWARD,
  15962. KEY_AC_HOME,
  15963. KEY_AC_REFRESH,
  15964. KEY_AC_SEARCH,
  15965. KEY_AC_STOP,
  15966. KEY_AGAIN,
  15967. KEY_ALTERASE,
  15968. KEY_AMPERSAND,
  15969. KEY_ASTERISK,
  15970. KEY_AT,
  15971. KEY_AUDIOMUTE,
  15972. KEY_AUDIONEXT,
  15973. KEY_AUDIOPLAY,
  15974. KEY_AUDIOPREV,
  15975. KEY_AUDIOSTOP,
  15976. KEY_BACKQUOTE,
  15977. KEY_BACKSLASH,
  15978. KEY_BRIGHTNESSDOWN,
  15979. KEY_BRIGHTNESSUP,
  15980. KEY_CALCULATOR,
  15981. KEY_CANCEL,
  15982. KEY_CARET,
  15983. KEY_CLEAR,
  15984. KEY_CLEARAGAIN,
  15985. KEY_COLON,
  15986. KEY_COMMA,
  15987. KEY_COMPUTER,
  15988. KEY_COPY,
  15989. KEY_CRSEL,
  15990. KEY_CURRENCYSUBUNIT,
  15991. KEY_CURRENCYUNIT,
  15992. KEY_CUT,
  15993. KEY_DECIMALSEPARATOR,
  15994. KEY_DISPLAYSWITCH,
  15995. KEY_DOLLAR,
  15996. KEY_EJECT,
  15997. KEY_EQUALS,
  15998. KEY_EXCLAIM,
  15999. KEY_EXSEL,
  16000. KEY_FIND,
  16001. KEY_GREATER,
  16002. KEY_HASH,
  16003. KEY_HELP,
  16004. KEY_KBDILLUMDOWN,
  16005. KEY_KBDILLUMTOGGLE,
  16006. KEY_KBDILLUMUP,
  16007. KEY_KP_00,
  16008. KEY_KP_000,
  16009. KEY_KP_A,
  16010. KEY_KP_AMPERSAND,
  16011. KEY_KP_AT,
  16012. KEY_KP_B,
  16013. KEY_KP_BACKSPACE,
  16014. KEY_KP_BINARY,
  16015. KEY_KP_C,
  16016. KEY_KP_CLEAR,
  16017. KEY_KP_CLEARENTRY,
  16018. KEY_KP_COLON,
  16019. KEY_KP_COMMA,
  16020. KEY_KP_D,
  16021. KEY_KP_DBLAMPERSAND,
  16022. KEY_KP_DBLVERTICALBAR,
  16023. KEY_KP_DECIMAL,
  16024. KEY_KP_E,
  16025. KEY_KP_EQUALS,
  16026. KEY_KP_EQUALSAS400,
  16027. KEY_KP_EXCLAM,
  16028. KEY_KP_F,
  16029. KEY_KP_GREATER,
  16030. KEY_KP_HASH,
  16031. KEY_KP_HEXADECIMAL,
  16032. KEY_KP_LEFTBRACE,
  16033. KEY_KP_LEFTPAREN,
  16034. KEY_KP_LESS,
  16035. KEY_KP_MEMADD,
  16036. KEY_KP_MEMCLEAR,
  16037. KEY_KP_MEMDIVIDE,
  16038. KEY_KP_MEMMULTIPLY,
  16039. KEY_KP_MEMRECALL,
  16040. KEY_KP_MEMSTORE,
  16041. KEY_KP_MEMSUBTRACT,
  16042. KEY_KP_OCTAL,
  16043. KEY_KP_PERCENT,
  16044. KEY_KP_PLUSMINUS,
  16045. KEY_KP_POWER,
  16046. KEY_KP_RIGHTBRACE,
  16047. KEY_KP_RIGHTPAREN,
  16048. KEY_KP_SPACE,
  16049. KEY_KP_TAB,
  16050. KEY_KP_VERTICALBAR,
  16051. KEY_KP_XOR,
  16052. KEY_LEFTBRACKET,
  16053. KEY_LEFTPAREN,
  16054. KEY_LESS,
  16055. KEY_MAIL,
  16056. KEY_MEDIASELECT,
  16057. KEY_MENU,
  16058. KEY_MINUS,
  16059. KEY_MODE,
  16060. KEY_MUTE,
  16061. KEY_OPER,
  16062. KEY_OUT,
  16063. KEY_PASTE,
  16064. KEY_PERCENT,
  16065. KEY_PERIOD,
  16066. KEY_PLUS,
  16067. KEY_POWER,
  16068. KEY_PRIOR,
  16069. KEY_QUESTION,
  16070. KEY_QUOTE,
  16071. KEY_QUOTEDBL,
  16072. KEY_RIGHTBRACKET,
  16073. KEY_RIGHTPAREN,
  16074. KEY_SEMICOLON,
  16075. KEY_SEPARATOR,
  16076. KEY_SLASH,
  16077. KEY_SLEEP,
  16078. KEY_STOP,
  16079. KEY_SYSREQ,
  16080. KEY_THOUSANDSSEPARATOR,
  16081. KEY_UNDERSCORE,
  16082. KEY_UNDO,
  16083. KEY_VOLUMEDOWN,
  16084. KEY_VOLUMEUP,
  16085. KEY_WWW,
  16086. };
  16087. enum LayoutMode
  16088. {
  16089. LM_FREE,
  16090. LM_HORIZONTAL,
  16091. LM_VERTICAL,
  16092. };
  16093. enum LightType
  16094. {
  16095. LIGHT_DIRECTIONAL,
  16096. LIGHT_SPOT,
  16097. LIGHT_POINT,
  16098. };
  16099. enum LoadMode
  16100. {
  16101. LOAD_RESOURCES_ONLY,
  16102. LOAD_SCENE,
  16103. LOAD_SCENE_AND_RESOURCES,
  16104. };
  16105. enum LoopMode2D
  16106. {
  16107. LM_DEFAULT,
  16108. LM_FORCE_LOOPED,
  16109. LM_FORCE_CLAMPED,
  16110. };
  16111. enum MaterialQuality
  16112. {
  16113. QUALITY_LOW,
  16114. QUALITY_MEDIUM,
  16115. QUALITY_HIGH,
  16116. QUALITY_MAX,
  16117. };
  16118. enum MouseButton
  16119. {
  16120. MOUSEB_LEFT,
  16121. MOUSEB_MIDDLE,
  16122. MOUSEB_RIGHT,
  16123. };
  16124. enum MouseMode
  16125. {
  16126. MM_ABSOLUTE,
  16127. MM_RELATIVE,
  16128. MM_WRAP,
  16129. MM_FREE,
  16130. };
  16131. enum NavigationPushiness
  16132. {
  16133. NAVIGATIONPUSHINESS_LOW,
  16134. NAVIGATIONPUSHINESS_MEDIUM,
  16135. NAVIGATIONPUSHINESS_HIGH,
  16136. NAVIGATIONPUSHINESS_NONE,
  16137. };
  16138. enum NavigationQuality
  16139. {
  16140. NAVIGATIONQUALITY_LOW,
  16141. NAVIGATIONQUALITY_MEDIUM,
  16142. NAVIGATIONQUALITY_HIGH,
  16143. };
  16144. enum NavmeshPartitionType
  16145. {
  16146. NAVMESH_PARTITION_WATERSHED,
  16147. NAVMESH_PARTITION_MONOTONE,
  16148. };
  16149. enum Orientation
  16150. {
  16151. O_HORIZONTAL,
  16152. O_VERTICAL,
  16153. };
  16154. enum Orientation2D
  16155. {
  16156. O_ORTHOGONAL,
  16157. O_ISOMETRIC,
  16158. O_STAGGERED,
  16159. O_HEXAGONAL,
  16160. };
  16161. enum PassLightingMode
  16162. {
  16163. LIGHTING_UNLIT,
  16164. LIGHTING_PERVERTEX,
  16165. LIGHTING_PERPIXEL,
  16166. };
  16167. enum PrimitiveType
  16168. {
  16169. TRIANGLE_LIST,
  16170. LINE_LIST,
  16171. POINT_LIST,
  16172. TRIANGLE_STRIP,
  16173. LINE_STRIP,
  16174. TRIANGLE_FAN,
  16175. };
  16176. enum Qualifier
  16177. {
  16178. QUAL_SHIFT,
  16179. QUAL_CTRL,
  16180. QUAL_ALT,
  16181. QUAL_ANY,
  16182. };
  16183. enum RayQueryLevel
  16184. {
  16185. RAY_AABB,
  16186. RAY_OBB,
  16187. RAY_TRIANGLE,
  16188. RAY_TRIANGLE_UV,
  16189. };
  16190. enum RenderCommandSortMode
  16191. {
  16192. SORT_FRONTTOBACK,
  16193. SORT_BACKTOFRONT,
  16194. };
  16195. enum RenderCommandType
  16196. {
  16197. CMD_NONE,
  16198. CMD_CLEAR,
  16199. CMD_SCENEPASS,
  16200. CMD_QUAD,
  16201. CMD_FORWARDLIGHTS,
  16202. CMD_LIGHTVOLUMES,
  16203. CMD_RENDERUI,
  16204. CMD_SENDEVENT,
  16205. };
  16206. enum RenderSurfaceUpdateMode
  16207. {
  16208. SURFACE_MANUALUPDATE,
  16209. SURFACE_UPDATEVISIBLE,
  16210. SURFACE_UPDATEALWAYS,
  16211. };
  16212. enum RenderTargetSizeMode
  16213. {
  16214. SIZE_ABSOLUTE,
  16215. SIZE_VIEWPORTDIVISOR,
  16216. SIZE_VIEWPORTMULTIPLIER,
  16217. };
  16218. enum Scancode
  16219. {
  16220. SCANCODE_UNKNOWN,
  16221. SCANCODE_CTRL,
  16222. SCANCODE_SHIFT,
  16223. SCANCODE_ALT,
  16224. SCANCODE_GUI,
  16225. SCANCODE_A,
  16226. SCANCODE_B,
  16227. SCANCODE_C,
  16228. SCANCODE_D,
  16229. SCANCODE_E,
  16230. SCANCODE_F,
  16231. SCANCODE_G,
  16232. SCANCODE_H,
  16233. SCANCODE_I,
  16234. SCANCODE_J,
  16235. SCANCODE_K,
  16236. SCANCODE_L,
  16237. SCANCODE_M,
  16238. SCANCODE_N,
  16239. SCANCODE_O,
  16240. SCANCODE_P,
  16241. SCANCODE_Q,
  16242. SCANCODE_R,
  16243. SCANCODE_S,
  16244. SCANCODE_T,
  16245. SCANCODE_U,
  16246. SCANCODE_V,
  16247. SCANCODE_W,
  16248. SCANCODE_X,
  16249. SCANCODE_Y,
  16250. SCANCODE_Z,
  16251. SCANCODE_1,
  16252. SCANCODE_2,
  16253. SCANCODE_3,
  16254. SCANCODE_4,
  16255. SCANCODE_5,
  16256. SCANCODE_6,
  16257. SCANCODE_7,
  16258. SCANCODE_8,
  16259. SCANCODE_9,
  16260. SCANCODE_0,
  16261. SCANCODE_RETURN,
  16262. SCANCODE_ESCAPE,
  16263. SCANCODE_BACKSPACE,
  16264. SCANCODE_TAB,
  16265. SCANCODE_SPACE,
  16266. SCANCODE_MINUS,
  16267. SCANCODE_EQUALS,
  16268. SCANCODE_LEFTBRACKET,
  16269. SCANCODE_RIGHTBRACKET,
  16270. SCANCODE_BACKSLASH,
  16271. SCANCODE_NONUSHASH,
  16272. SCANCODE_SEMICOLON,
  16273. SCANCODE_APOSTROPHE,
  16274. SCANCODE_GRAVE,
  16275. SCANCODE_COMMA,
  16276. SCANCODE_PERIOD,
  16277. SCANCODE_SLASH,
  16278. SCANCODE_CAPSLOCK,
  16279. SCANCODE_F1,
  16280. SCANCODE_F2,
  16281. SCANCODE_F3,
  16282. SCANCODE_F4,
  16283. SCANCODE_F5,
  16284. SCANCODE_F6,
  16285. SCANCODE_F7,
  16286. SCANCODE_F8,
  16287. SCANCODE_F9,
  16288. SCANCODE_F10,
  16289. SCANCODE_F11,
  16290. SCANCODE_F12,
  16291. SCANCODE_PRINTSCREEN,
  16292. SCANCODE_SCROLLLOCK,
  16293. SCANCODE_PAUSE,
  16294. SCANCODE_INSERT,
  16295. SCANCODE_HOME,
  16296. SCANCODE_PAGEUP,
  16297. SCANCODE_DELETE,
  16298. SCANCODE_END,
  16299. SCANCODE_PAGEDOWN,
  16300. SCANCODE_RIGHT,
  16301. SCANCODE_LEFT,
  16302. SCANCODE_DOWN,
  16303. SCANCODE_UP,
  16304. SCANCODE_NUMLOCKCLEAR,
  16305. SCANCODE_KP_DIVIDE,
  16306. SCANCODE_KP_MULTIPLY,
  16307. SCANCODE_KP_MINUS,
  16308. SCANCODE_KP_PLUS,
  16309. SCANCODE_KP_ENTER,
  16310. SCANCODE_KP_1,
  16311. SCANCODE_KP_2,
  16312. SCANCODE_KP_3,
  16313. SCANCODE_KP_4,
  16314. SCANCODE_KP_5,
  16315. SCANCODE_KP_6,
  16316. SCANCODE_KP_7,
  16317. SCANCODE_KP_8,
  16318. SCANCODE_KP_9,
  16319. SCANCODE_KP_0,
  16320. SCANCODE_KP_PERIOD,
  16321. SCANCODE_NONUSBACKSLASH,
  16322. SCANCODE_APPLICATION,
  16323. SCANCODE_POWER,
  16324. SCANCODE_KP_EQUALS,
  16325. SCANCODE_F13,
  16326. SCANCODE_F14,
  16327. SCANCODE_F15,
  16328. SCANCODE_F16,
  16329. SCANCODE_F17,
  16330. SCANCODE_F18,
  16331. SCANCODE_F19,
  16332. SCANCODE_F20,
  16333. SCANCODE_F21,
  16334. SCANCODE_F22,
  16335. SCANCODE_F23,
  16336. SCANCODE_F24,
  16337. SCANCODE_EXECUTE,
  16338. SCANCODE_HELP,
  16339. SCANCODE_MENU,
  16340. SCANCODE_SELECT,
  16341. SCANCODE_STOP,
  16342. SCANCODE_AGAIN,
  16343. SCANCODE_UNDO,
  16344. SCANCODE_CUT,
  16345. SCANCODE_COPY,
  16346. SCANCODE_PASTE,
  16347. SCANCODE_FIND,
  16348. SCANCODE_MUTE,
  16349. SCANCODE_VOLUMEUP,
  16350. SCANCODE_VOLUMEDOWN,
  16351. SCANCODE_KP_COMMA,
  16352. SCANCODE_KP_EQUALSAS400,
  16353. SCANCODE_INTERNATIONAL1,
  16354. SCANCODE_INTERNATIONAL2,
  16355. SCANCODE_INTERNATIONAL3,
  16356. SCANCODE_INTERNATIONAL4,
  16357. SCANCODE_INTERNATIONAL5,
  16358. SCANCODE_INTERNATIONAL6,
  16359. SCANCODE_INTERNATIONAL7,
  16360. SCANCODE_INTERNATIONAL8,
  16361. SCANCODE_INTERNATIONAL9,
  16362. SCANCODE_LANG1,
  16363. SCANCODE_LANG2,
  16364. SCANCODE_LANG3,
  16365. SCANCODE_LANG4,
  16366. SCANCODE_LANG5,
  16367. SCANCODE_LANG6,
  16368. SCANCODE_LANG7,
  16369. SCANCODE_LANG8,
  16370. SCANCODE_LANG9,
  16371. SCANCODE_ALTERASE,
  16372. SCANCODE_SYSREQ,
  16373. SCANCODE_CANCEL,
  16374. SCANCODE_CLEAR,
  16375. SCANCODE_PRIOR,
  16376. SCANCODE_RETURN2,
  16377. SCANCODE_SEPARATOR,
  16378. SCANCODE_OUT,
  16379. SCANCODE_OPER,
  16380. SCANCODE_CLEARAGAIN,
  16381. SCANCODE_CRSEL,
  16382. SCANCODE_EXSEL,
  16383. SCANCODE_KP_00,
  16384. SCANCODE_KP_000,
  16385. SCANCODE_THOUSANDSSEPARATOR,
  16386. SCANCODE_DECIMALSEPARATOR,
  16387. SCANCODE_CURRENCYUNIT,
  16388. SCANCODE_CURRENCYSUBUNIT,
  16389. SCANCODE_KP_LEFTPAREN,
  16390. SCANCODE_KP_RIGHTPAREN,
  16391. SCANCODE_KP_LEFTBRACE,
  16392. SCANCODE_KP_RIGHTBRACE,
  16393. SCANCODE_KP_TAB,
  16394. SCANCODE_KP_BACKSPACE,
  16395. SCANCODE_KP_A,
  16396. SCANCODE_KP_B,
  16397. SCANCODE_KP_C,
  16398. SCANCODE_KP_D,
  16399. SCANCODE_KP_E,
  16400. SCANCODE_KP_F,
  16401. SCANCODE_KP_XOR,
  16402. SCANCODE_KP_POWER,
  16403. SCANCODE_KP_PERCENT,
  16404. SCANCODE_KP_LESS,
  16405. SCANCODE_KP_GREATER,
  16406. SCANCODE_KP_AMPERSAND,
  16407. SCANCODE_KP_DBLAMPERSAND,
  16408. SCANCODE_KP_VERTICALBAR,
  16409. SCANCODE_KP_DBLVERTICALBAR,
  16410. SCANCODE_KP_COLON,
  16411. SCANCODE_KP_HASH,
  16412. SCANCODE_KP_SPACE,
  16413. SCANCODE_KP_AT,
  16414. SCANCODE_KP_EXCLAM,
  16415. SCANCODE_KP_MEMSTORE,
  16416. SCANCODE_KP_MEMRECALL,
  16417. SCANCODE_KP_MEMCLEAR,
  16418. SCANCODE_KP_MEMADD,
  16419. SCANCODE_KP_MEMSUBTRACT,
  16420. SCANCODE_KP_MEMMULTIPLY,
  16421. SCANCODE_KP_MEMDIVIDE,
  16422. SCANCODE_KP_PLUSMINUS,
  16423. SCANCODE_KP_CLEAR,
  16424. SCANCODE_KP_CLEARENTRY,
  16425. SCANCODE_KP_BINARY,
  16426. SCANCODE_KP_OCTAL,
  16427. SCANCODE_KP_DECIMAL,
  16428. SCANCODE_KP_HEXADECIMAL,
  16429. SCANCODE_LCTRL,
  16430. SCANCODE_LSHIFT,
  16431. SCANCODE_LALT,
  16432. SCANCODE_LGUI,
  16433. SCANCODE_RCTRL,
  16434. SCANCODE_RSHIFT,
  16435. SCANCODE_RALT,
  16436. SCANCODE_RGUI,
  16437. SCANCODE_MODE,
  16438. SCANCODE_AUDIONEXT,
  16439. SCANCODE_AUDIOPREV,
  16440. SCANCODE_AUDIOSTOP,
  16441. SCANCODE_AUDIOPLAY,
  16442. SCANCODE_AUDIOMUTE,
  16443. SCANCODE_MEDIASELECT,
  16444. SCANCODE_WWW,
  16445. SCANCODE_MAIL,
  16446. SCANCODE_CALCULATOR,
  16447. SCANCODE_COMPUTER,
  16448. SCANCODE_AC_SEARCH,
  16449. SCANCODE_AC_HOME,
  16450. SCANCODE_AC_BACK,
  16451. SCANCODE_AC_FORWARD,
  16452. SCANCODE_AC_STOP,
  16453. SCANCODE_AC_REFRESH,
  16454. SCANCODE_AC_BOOKMARKS,
  16455. SCANCODE_BRIGHTNESSDOWN,
  16456. SCANCODE_BRIGHTNESSUP,
  16457. SCANCODE_DISPLAYSWITCH,
  16458. SCANCODE_KBDILLUMTOGGLE,
  16459. SCANCODE_KBDILLUMDOWN,
  16460. SCANCODE_KBDILLUMUP,
  16461. SCANCODE_EJECT,
  16462. SCANCODE_SLEEP,
  16463. SCANCODE_APP1,
  16464. SCANCODE_APP2,
  16465. };
  16466. enum ShadowQuality
  16467. {
  16468. SHADOWQUALITY_SIMPLE_16BIT,
  16469. SHADOWQUALITY_SIMPLE_24BIT,
  16470. SHADOWQUALITY_PCF_16BIT,
  16471. SHADOWQUALITY_PCF_24BIT,
  16472. SHADOWQUALITY_VSM,
  16473. SHADOWQUALITY_BLUR_VSM,
  16474. };
  16475. enum ShapeType
  16476. {
  16477. SHAPE_BOX,
  16478. SHAPE_SPHERE,
  16479. SHAPE_STATICPLANE,
  16480. SHAPE_CYLINDER,
  16481. SHAPE_CAPSULE,
  16482. SHAPE_CONE,
  16483. SHAPE_TRIANGLEMESH,
  16484. SHAPE_CONVEXHULL,
  16485. SHAPE_TERRAIN,
  16486. };
  16487. enum TextEffect
  16488. {
  16489. TE_NONE,
  16490. TE_SHADOW,
  16491. TE_STROKE,
  16492. };
  16493. enum TextureAddressMode
  16494. {
  16495. ADDRESS_WRAP,
  16496. ADDRESS_MIRROR,
  16497. ADDRESS_CLAMP,
  16498. ADDRESS_BORDER,
  16499. };
  16500. enum TextureCoordinate
  16501. {
  16502. COORD_U,
  16503. COORD_V,
  16504. COORD_W,
  16505. };
  16506. enum TextureFilterMode
  16507. {
  16508. FILTER_NEAREST,
  16509. FILTER_BILINEAR,
  16510. FILTER_TRILINEAR,
  16511. FILTER_ANISOTROPIC,
  16512. FILTER_NEAREST_ANISOTROPIC,
  16513. FILTER_DEFAULT,
  16514. };
  16515. enum TextureUnit
  16516. {
  16517. TU_DIFFUSE,
  16518. TU_ALBEDOBUFFER,
  16519. TU_NORMAL,
  16520. TU_NORMALBUFFER,
  16521. TU_SPECULAR,
  16522. TU_EMISSIVE,
  16523. TU_ENVIRONMENT,
  16524. TU_LIGHTRAMP,
  16525. TU_LIGHTSHAPE,
  16526. TU_SHADOWMAP,
  16527. TU_CUSTOM1,
  16528. TU_CUSTOM2,
  16529. TU_VOLUMEMAP,
  16530. TU_FACESELECT,
  16531. TU_INDIRECTION,
  16532. TU_DEPTHBUFFER,
  16533. TU_LIGHTBUFFER,
  16534. TU_ZONE,
  16535. MAX_MATERIAL_TEXTURE_UNITS,
  16536. MAX_TEXTURE_UNITS,
  16537. };
  16538. enum TextureUsage
  16539. {
  16540. TEXTURE_STATIC,
  16541. TEXTURE_DYNAMIC,
  16542. TEXTURE_RENDERTARGET,
  16543. TEXTURE_DEPTHSTENCIL,
  16544. };
  16545. enum TileMapLayerType2D
  16546. {
  16547. LT_TILE_LAYER,
  16548. LT_OBJECT_GROUP,
  16549. LT_IMAGE_LAYER,
  16550. LT_INVALID,
  16551. };
  16552. enum TileObjectType2D
  16553. {
  16554. OT_RECTANGLE,
  16555. OT_ELLIPSE,
  16556. OT_POLYGON,
  16557. OT_POLYLINE,
  16558. OT_TILE,
  16559. OT_INVALID,
  16560. };
  16561. enum TrailType
  16562. {
  16563. TT_FACE_CAMERA,
  16564. TT_BONE,
  16565. };
  16566. enum TransformSpace
  16567. {
  16568. TS_LOCAL,
  16569. TS_PARENT,
  16570. TS_WORLD,
  16571. };
  16572. enum TraversalMode
  16573. {
  16574. TM_BREADTH_FIRST,
  16575. TM_DEPTH_FIRST,
  16576. };
  16577. enum VariantType
  16578. {
  16579. VAR_NONE,
  16580. VAR_INT,
  16581. VAR_BOOL,
  16582. VAR_FLOAT,
  16583. VAR_VECTOR2,
  16584. VAR_VECTOR3,
  16585. VAR_VECTOR4,
  16586. VAR_QUATERNION,
  16587. VAR_COLOR,
  16588. VAR_STRING,
  16589. VAR_BUFFER,
  16590. VAR_VOIDPTR,
  16591. VAR_RESOURCEREF,
  16592. VAR_RESOURCEREFLIST,
  16593. VAR_VARIANTVECTOR,
  16594. VAR_VARIANTMAP,
  16595. VAR_INTRECT,
  16596. VAR_INTVECTOR2,
  16597. VAR_INTVECTOR3,
  16598. VAR_PTR,
  16599. VAR_MATRIX3,
  16600. VAR_MATRIX3X4,
  16601. VAR_MATRIX4,
  16602. VAR_DOUBLE,
  16603. VAR_STRINGVECTOR,
  16604. VAR_RECT,
  16605. };
  16606. enum VertexElementSemantic
  16607. {
  16608. SEM_POSITION,
  16609. SEM_NORMAL,
  16610. SEM_BINORMAL,
  16611. SEM_TANGENT,
  16612. SEM_TEXCOORD,
  16613. SEM_COLOR,
  16614. SEM_BLENDWEIGHTS,
  16615. SEM_BLENDINDICES,
  16616. SEM_OBJECTINDEX,
  16617. MAX_VERTEX_ELEMENT_SEMANTICS,
  16618. };
  16619. enum VertexElementType
  16620. {
  16621. TYPE_INT,
  16622. TYPE_FLOAT,
  16623. TYPE_VECTOR2,
  16624. TYPE_VECTOR3,
  16625. TYPE_VECTOR4,
  16626. TYPE_UBYTE4,
  16627. TYPE_UBYTE4_NORM,
  16628. MAX_VERTEX_ELEMENT_TYPES,
  16629. };
  16630. enum VertexMask
  16631. {
  16632. MASK_NONE,
  16633. MASK_POSITION,
  16634. MASK_NORMAL,
  16635. MASK_COLOR,
  16636. MASK_TEXCOORD1,
  16637. MASK_TEXCOORD2,
  16638. MASK_CUBETEXCOORD1,
  16639. MASK_CUBETEXCOORD2,
  16640. MASK_TANGENT,
  16641. MASK_BLENDWEIGHTS,
  16642. MASK_BLENDINDICES,
  16643. MASK_INSTANCEMATRIX1,
  16644. MASK_INSTANCEMATRIX2,
  16645. MASK_INSTANCEMATRIX3,
  16646. MASK_OBJECTINDEX,
  16647. };
  16648. enum VerticalAlignment
  16649. {
  16650. VA_TOP,
  16651. VA_CENTER,
  16652. VA_BOTTOM,
  16653. VA_CUSTOM,
  16654. };
  16655. enum ViewOverride
  16656. {
  16657. VO_NONE,
  16658. VO_LOW_MATERIAL_QUALITY,
  16659. VO_DISABLE_SHADOWS,
  16660. VO_DISABLE_OCCLUSION,
  16661. };
  16662. enum WrapMode
  16663. {
  16664. WM_LOOP,
  16665. WM_ONCE,
  16666. WM_CLAMP,
  16667. };
  16668. // Global functions
  16669. float Abs(float);
  16670. float Acos(float);
  16671. String AddTrailingSlash(const String&);
  16672. float Asin(float);
  16673. float Atan(float);
  16674. float Atan2(float, float);
  16675. float Ceil(float);
  16676. int CeilToInt(float);
  16677. float Clamp(float, float, float);
  16678. int Clamp(int, int, int);
  16679. void ClearDelayedExecute(const String& = String ( ));
  16680. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  16681. float Cos(float);
  16682. uint CountSetBits(uint);
  16683. Object CreateObject(const String&);
  16684. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  16685. void DelayedExecute(float, bool, const String&, const Array<Variant> = null);
  16686. bool Equals(float, float);
  16687. void ErrorDialog(const String&, const String&);
  16688. float Floor(float);
  16689. int FloorToInt(float);
  16690. float Fract(float);
  16691. uint GetAlphaFormat();
  16692. Array<String> GetArguments();
  16693. String GetConsoleInput();
  16694. uint GetDepthStencilFormat();
  16695. Object GetEventSender();
  16696. String GetExtension(const String&, bool = true);
  16697. String GetFileName(const String&);
  16698. String GetFileNameAndExtension(const String&, bool = false);
  16699. String GetFileSizeString(uint64);
  16700. uint GetFloat16Format();
  16701. uint GetFloat32Format();
  16702. uint GetFormat(const String&);
  16703. Variant GetGlobalVar(const String&);
  16704. String GetHostName();
  16705. String GetInternalPath(const String&);
  16706. uint GetLinearDepthFormat();
  16707. String GetLoginName();
  16708. uint GetLuminanceAlphaFormat();
  16709. uint GetLuminanceFormat();
  16710. uint GetMaxBones();
  16711. String GetMiniDumpDir();
  16712. uint GetNumLogicalCPUs();
  16713. uint GetNumPhysicalCPUs();
  16714. String GetOSVersion();
  16715. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  16716. Array<String> GetObjectCategories();
  16717. Array<String> GetObjectsByCategory(const String&);
  16718. String GetParentPath(const String&);
  16719. String GetPath(const String&);
  16720. String GetPlatform();
  16721. uint GetRG16Format();
  16722. uint GetRGBA16Format();
  16723. uint GetRGBAFloat16Format();
  16724. uint GetRGBAFloat32Format();
  16725. uint GetRGBAFormat();
  16726. uint GetRGBFormat();
  16727. uint GetRGFloat16Format();
  16728. uint GetRGFloat32Format();
  16729. uint GetRandomSeed();
  16730. uint GetReadableDepthFormat();
  16731. String GetTextureUnitName(TextureUnit);
  16732. uint64 GetTotalMemory();
  16733. VariantType GetVariantTypeFromName(const String&);
  16734. String GetVariantTypeName(VariantType);
  16735. bool HasSubscribedToEvent(Object, const String&);
  16736. bool HasSubscribedToEvent(const String&);
  16737. float InverseLerp(float, float, float);
  16738. bool IsAbsolutePath(const String&);
  16739. bool IsAlpha(uint);
  16740. bool IsDigit(uint);
  16741. bool IsNaN(double);
  16742. bool IsNaN(float);
  16743. bool IsPowerOfTwo(uint);
  16744. bool IsReplicatedID(uint);
  16745. String Join(Array<String>&, const String&);
  16746. float Lerp(float, float, float);
  16747. float Ln(float);
  16748. uint LogBaseTwo(uint);
  16749. void MarkNetworkUpdate();
  16750. float Max(float, float);
  16751. int Max(int, int);
  16752. float Min(float, float);
  16753. int Min(int, int);
  16754. float Mod(float, float);
  16755. uint NextPowerOfTwo(uint);
  16756. void OpenConsoleWindow();
  16757. float Pow(float, float);
  16758. void Print(bool, bool = false);
  16759. void Print(const String&, bool = false);
  16760. void Print(const Variant&, bool = false);
  16761. void Print(float, bool = false);
  16762. void Print(int, bool = false);
  16763. void Print(int64, bool = false);
  16764. void Print(uint, bool = false);
  16765. void Print(uint64, bool = false);
  16766. void PrintCallStack(bool = false);
  16767. float Random();
  16768. float Random(float);
  16769. float Random(float, float);
  16770. int RandomInt();
  16771. int RandomInt(int);
  16772. int RandomInt(int, int);
  16773. float RandomNormal(float, float);
  16774. void RegisterEventName(const String&);
  16775. void Remove();
  16776. String RemoveTrailingSlash(const String&);
  16777. String ReplaceExtension(const String&, const String&);
  16778. float Round(float);
  16779. int RoundToInt(float);
  16780. uint SDBMHash(uint, uint8);
  16781. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  16782. void SetGlobalVar(const String&, Variant&);
  16783. void SetMiniDumpDir(const String&);
  16784. void SetRandomSeed(uint);
  16785. float Sign(float);
  16786. float Sin(float);
  16787. float SmoothStep(float, float, float);
  16788. float Sqrt(float);
  16789. float StableRandom(const Vector2&);
  16790. float StableRandom(const Vector3&);
  16791. float StableRandom(float);
  16792. const String& GetTypeName(StringHash);
  16793. void SubscribeToEvent(Object, const String&, const String&);
  16794. void SubscribeToEvent(const String&, const String&);
  16795. float Tan(float);
  16796. uint ToLower(uint);
  16797. String ToStringHex(int);
  16798. uint ToUpper(uint);
  16799. void UnsubscribeFromAllEvents();
  16800. void UnsubscribeFromAllEventsExcept(Array<String>);
  16801. void UnsubscribeFromEvent(Object, const String&);
  16802. void UnsubscribeFromEvent(const String&);
  16803. void UnsubscribeFromEvents(Object);
  16804. Vector2 VectorCeil(const Vector2&);
  16805. Vector3 VectorCeil(const Vector3&);
  16806. Vector4 VectorCeil(const Vector4&);
  16807. IntVector2 VectorCeilToInt(const Vector2&);
  16808. IntVector3 VectorCeilToInt(const Vector3&);
  16809. Vector2 VectorFloor(const Vector2&);
  16810. Vector3 VectorFloor(const Vector3&);
  16811. Vector4 VectorFloor(const Vector4&);
  16812. IntVector2 VectorFloorToInt(const Vector2&);
  16813. IntVector3 VectorFloorToInt(const Vector3&);
  16814. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  16815. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  16816. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  16817. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  16818. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  16819. Vector2 VectorMax(const Vector2&, const Vector2&);
  16820. Vector3 VectorMax(const Vector3&, const Vector3&);
  16821. Vector4 VectorMax(const Vector4&, const Vector4&);
  16822. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  16823. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  16824. Vector2 VectorMin(const Vector2&, const Vector2&);
  16825. Vector3 VectorMin(const Vector3&, const Vector3&);
  16826. Vector4 VectorMin(const Vector4&, const Vector4&);
  16827. Vector2 VectorRound(const Vector2&);
  16828. Vector3 VectorRound(const Vector3&);
  16829. Vector4 VectorRound(const Vector4&);
  16830. IntVector2 VectorRoundToInt(const Vector2&);
  16831. IntVector3 VectorRoundToInt(const Vector3&);
  16832. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  16833. // Global properties
  16834. DBAPI DBAPI;
  16835. Audio audio;
  16836. ResourceCache cache;
  16837. Console console;
  16838. Database database;
  16839. DebugHud debugHud;
  16840. DebugRenderer debugRenderer;
  16841. Engine engine;
  16842. FileSystem fileSystem;
  16843. VariantMap globalVars;
  16844. Graphics graphics;
  16845. Input input;
  16846. Localization localization;
  16847. Log log;
  16848. Network network;
  16849. Node node;
  16850. Octree octree;
  16851. PhysicsWorld physicsWorld;
  16852. PhysicsWorld2D physicsWorld2D;
  16853. Renderer renderer;
  16854. ResourceCache resourceCache;
  16855. Scene scene;
  16856. Script script;
  16857. ScriptFile scriptFile;
  16858. ScriptInstance self;
  16859. Time time;
  16860. UI ui;
  16861. // Global constants
  16862. Color BLACK;
  16863. Color BLUE;
  16864. Color CYAN;
  16865. uint DEBUGHUD_SHOW_ALL;
  16866. uint DEBUGHUD_SHOW_EVENTPROFILER;
  16867. uint DEBUGHUD_SHOW_MEMORY;
  16868. uint DEBUGHUD_SHOW_MODE;
  16869. uint DEBUGHUD_SHOW_NONE;
  16870. uint DEBUGHUD_SHOW_PROFILER;
  16871. uint DEBUGHUD_SHOW_STATS;
  16872. uint DEFAULT_LIGHTMASK;
  16873. uint DEFAULT_VIEWMASK;
  16874. uint DRAWABLE_ANY;
  16875. uint DRAWABLE_GEOMETRY;
  16876. uint DRAWABLE_GEOMETRY2D;
  16877. uint DRAWABLE_LIGHT;
  16878. uint DRAWABLE_ZONE;
  16879. uint FIRST_LOCAL_ID;
  16880. uint FIRST_REPLICATED_ID;
  16881. uint FLIP_ALL;
  16882. uint FLIP_DIAGONAL;
  16883. uint FLIP_HORIZONTAL;
  16884. uint FLIP_RESERVED;
  16885. uint FLIP_VERTICAL;
  16886. Color GRAY;
  16887. Color GREEN;
  16888. uint LAST_LOCAL_ID;
  16889. uint LAST_REPLICATED_ID;
  16890. int LOG_DEBUG;
  16891. int LOG_ERROR;
  16892. int LOG_INFO;
  16893. int LOG_NONE;
  16894. int LOG_TRACE;
  16895. int LOG_WARNING;
  16896. Color MAGENTA;
  16897. float M_DEGTORAD;
  16898. float M_DEGTORAD_2;
  16899. float M_EPSILON;
  16900. float M_HALF_PI;
  16901. float M_INFINITY;
  16902. float M_LARGE_EPSILON;
  16903. float M_LARGE_VALUE;
  16904. int M_MAX_INT;
  16905. uint M_MAX_UNSIGNED;
  16906. int M_MIN_INT;
  16907. uint M_MIN_UNSIGNED;
  16908. float M_PI;
  16909. float M_RADTODEG;
  16910. uint NPOS;
  16911. float PIXEL_SIZE;
  16912. Color RED;
  16913. uint SCAN_DIRS;
  16914. uint SCAN_FILES;
  16915. uint SCAN_HIDDEN;
  16916. String SOUND_AMBIENT;
  16917. String SOUND_EFFECT;
  16918. String SOUND_MASTER;
  16919. String SOUND_MUSIC;
  16920. String SOUND_VOICE;
  16921. Color TRANSPARENT_BLACK;
  16922. Color WHITE;
  16923. Color YELLOW;